/* ============================================================
   PHON'ETHIK — Refonte v2 « Bleu & blanc, vert réservé à l'éco »
   Bleu = identité, actions, structure · Blanc = fond
   Vert = UNIQUEMENT les éléments écologie
   À charger APRÈS styles.css
   ============================================================ */

:root {
  --pe-encre: #0b1e33;
  --pe-lac: #1e3a5f;
  --pe-lac-vif: #2c5a8f;
  --pe-azur: #3f7ec4;
  --pe-ciel: #dbeafe;
  --pe-ciel-pale: #eef4fb;

  --pe-foret: #0d3320;
  --pe-feuille: #1a5c38;
  --pe-feuille-vive: #0f9d58;
  --pe-menthe: #d1fae5;

  --pe-papier: #ffffff;
  --pe-carte: #ffffff;
  --pe-texte: #14212f;
  --pe-texte-2: #4c5b6b;
  --pe-bordure: #e3e9f0;
  --pe-ambre: #f59e0b;

  --pe-grad-bleu: linear-gradient(135deg, var(--pe-encre) 0%, var(--pe-lac) 55%, var(--pe-lac-vif) 100%);
  --pe-grad-vert: linear-gradient(135deg, var(--pe-foret) 0%, var(--pe-feuille) 55%, var(--pe-feuille-vive) 100%);

  --pe-r-sm: 10px;
  --pe-r: 16px;
  --pe-r-pill: 999px;
  --pe-ombre: 0 8px 28px rgba(11, 30, 51, 0.10);
  --pe-ombre-verte: 0 8px 24px rgba(15, 157, 88, 0.22);
}

html[data-theme="dark"] {
  --pe-papier: #0e1620;
  --pe-carte: #16212e;
  --pe-texte: #e8eef4;
  --pe-texte-2: #9fb0c0;
  --pe-bordure: #26343f;
  --pe-ciel: #12314f;
  --pe-ciel-pale: #101d2c;
  --pe-menthe: #0f3a28;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --pe-papier: #0e1620;
    --pe-carte: #16212e;
    --pe-texte: #e8eef4;
    --pe-texte-2: #9fb0c0;
    --pe-bordure: #26343f;
    --pe-ciel: #12314f;
    --pe-ciel-pale: #101d2c;
    --pe-menthe: #0f3a28;
  }
}

/* ---------- Base ---------- */
body {
  background: var(--pe-papier) !important;
  color: var(--pe-texte) !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .section-heading h2, .eco-section-title {
  font-family: 'Sora', 'Inter', sans-serif !important;
  letter-spacing: -0.02em;
}
a { color: var(--pe-lac-vif); }
::selection { background: var(--pe-ciel); color: var(--pe-encre); }
:focus-visible { outline: 2px solid var(--pe-azur) !important; outline-offset: 2px; }

/* ---------- Bandeau annonce ---------- */
.announce-bar {
  background: var(--pe-encre) !important;
  color: #cfe0f2 !important;
  font-size: 0.85rem;
  border: 0 !important;
}
.announce-bar a { color: #fff !important; font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  background: var(--pe-carte) !important;
  border-bottom: 1px solid var(--pe-bordure) !important;
  position: sticky; top: 0; z-index: 50;
}
.main-nav a {
  color: var(--pe-texte-2) !important;
  font-weight: 500;
  border-radius: var(--pe-r-pill);
  padding: 8px 14px;
  transition: background .2s ease, color .2s ease;
}
.main-nav a:hover,
.main-nav a.is-active {
  background: var(--pe-ciel) !important;
  color: var(--pe-lac) !important;
}
.main-nav a.is-active { font-weight: 600; }

/* Écologie : le seul élément vert du menu */
.main-nav a.nav-eco:hover,
.main-nav a.nav-eco.is-active {
  background: var(--pe-grad-vert) !important;
  color: #fff !important;
}

.main-nav .nav-cta, .main-nav a.nav-cta {
  background: var(--pe-grad-bleu) !important;
  color: #fff !important;
  border: 0 !important;
  font-weight: 600;
}
.main-nav .nav-cta:hover { filter: brightness(1.18); }
.menu-toggle span { background: var(--pe-lac) !important; }

/* ---------- Boutons ---------- */
.btn {
  border-radius: var(--pe-r-pill) !important;
  font-weight: 600 !important;
  transition: transform .15s ease, filter .2s ease, box-shadow .2s ease !important;
}
.btn:active { transform: scale(0.97); }

.btn-primary, .btn.btn-primary, .cta-tel {
  background: var(--pe-grad-bleu) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(30, 58, 95, 0.30) !important;
}
.btn-primary:hover, .btn.btn-primary:hover, .cta-tel:hover { filter: brightness(1.18); }

.btn-secondary, .btn.btn-secondary, .cta-rdv {
  background: transparent !important;
  border: 1.5px solid var(--pe-lac-vif) !important;
  color: var(--pe-lac-vif) !important;
}
.btn-secondary:hover, .cta-rdv:hover { background: var(--pe-ciel) !important; }

.btn-ghost, .btn.btn-ghost {
  background: transparent !important;
  border: 1.5px solid var(--pe-bordure) !important;
  color: var(--pe-texte) !important;
}
.btn-ghost:hover { border-color: var(--pe-lac-vif) !important; color: var(--pe-lac) !important; }

/* Boutons écologie : verts, uniquement dans l'univers éco */
.btn-eco-primary, .eco-cta .btn-primary, .eco-hero-actions .btn-primary {
  background: var(--pe-grad-vert) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: var(--pe-ombre-verte) !important;
}
.btn-eco-ghost {
  background: transparent !important;
  border: 1.5px solid var(--pe-feuille-vive) !important;
  color: var(--pe-feuille) !important;
}
.btn-eco-ghost:hover { background: var(--pe-menthe) !important; }

/* ============================================================
   HÉROS ACCUEIL — nouveau visage : grand bandeau bleu nuit
   ============================================================ */
.hero {
  background:
    radial-gradient(48rem 26rem at 85% 8%, rgba(63, 126, 196, 0.35), transparent 60%),
    radial-gradient(40rem 22rem at 5% 100%, rgba(44, 90, 143, 0.45), transparent 55%),
    var(--pe-encre) !important;
  color: #eaf1f9 !important;
  padding-top: clamp(3rem, 7vw, 5.5rem) !important;
  padding-bottom: clamp(3rem, 7vw, 5.5rem) !important;
}
.hero h1 {
  color: #ffffff !important;
  font-size: clamp(2.4rem, 5.2vw, 4rem) !important;
  line-height: 1.05 !important;
}
.hero .hero-subtitle { color: #b9cde3 !important; font-size: 1.12rem; max-width: 34rem; }
.hero .eyebrow {
  display: inline-block;
  background: rgba(219, 234, 254, 0.12);
  border: 1px solid rgba(219, 234, 254, 0.25);
  color: #cfe0f2 !important;
  border-radius: var(--pe-r-pill);
  padding: 6px 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.hero .rotating-text { color: #8fd4ff !important; }

/* Boutons du héros : inversés pour ressortir sur le bleu nuit */
.hero .btn-primary {
  background: #ffffff !important;
  color: var(--pe-encre) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
}
.hero .btn-primary:hover { filter: none; background: var(--pe-ciel) !important; }
.hero .btn-secondary {
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
}
.hero .btn-secondary:hover { background: rgba(255, 255, 255, 0.12) !important; }

/* Garanties : puces verre dépoli */
.hero .hero-tags { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; }
.hero .hero-tags li {
  list-style: none;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #dce8f5 !important;
  border-radius: var(--pe-r-pill);
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Visuel du héros */
.hero .hero-media {
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--pe-lac), var(--pe-lac-vif)) !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.40);
  min-height: 320px;
}
.hero .hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero .hero-badge {
  background: #ffffff !important;
  color: var(--pe-encre) !important;
  border: 0 !important;
  border-radius: var(--pe-r) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.30);
}
.hero .hero-badge .google-rating-count { color: var(--pe-texte-2) !important; }

/* ---------- Héros des pages intérieures : clair, bleu ---------- */
.page-hero, .reviews-hero, .res-hero {
  background:
    radial-gradient(50rem 20rem at 90% -20%, var(--pe-ciel), transparent 60%),
    var(--pe-ciel-pale) !important;
}

/* Héros écologie : l'univers vert assumé */
.eco-hero {
  background:
    radial-gradient(50rem 26rem at 85% -10%, rgba(15, 157, 88, 0.30), transparent 60%),
    var(--pe-grad-vert) !important;
  color: #eafff3 !important;
}
.eco-hero h1, .eco-hero .eco-hero-sub { color: #eafff3 !important; }
.eco-hero .eco-eyebrow { color: #7fe0ae !important; }

/* ---------- Sections ---------- */
.eyebrow { color: var(--pe-lac-vif) !important; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.78rem; }
.eco-eyebrow, .eco-section .eyebrow { color: var(--pe-feuille-vive) !important; }

.section-heading h2 { position: relative; padding-bottom: 0.5em; }
.section-heading h2::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 56px; height: 3px; border-radius: 2px;
  background: var(--pe-lac-vif);
}
.eco-section-title { position: relative; padding-bottom: 0.5em; }
.eco-section-title::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 56px; height: 3px; border-radius: 2px;
  background: var(--pe-feuille-vive);
}

/* ---------- Cartes ---------- */
.service-card, .review-card, .contact-card, .mini-panel,
.quick-action, .map-card, .credit-box, .info-notice,
.brand-tile, .model-tile, .stat-mini {
  background: var(--pe-carte) !important;
  border: 1px solid var(--pe-bordure) !important;
  border-radius: var(--pe-r) !important;
  box-shadow: none !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover, .review-card:hover, .quick-action:hover,
.brand-tile:hover, .model-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--pe-ombre);
  border-color: transparent !important;
}
.contact-icon, .quick-action-icon { background: var(--pe-ciel) !important; color: var(--pe-lac) !important; }
.hero-badge, .page-badge, .contact-tag {
  background: var(--pe-ciel) !important;
  color: var(--pe-lac) !important;
  border: 0 !important;
  border-radius: var(--pe-r-pill) !important;
  font-weight: 600;
}

/* Cartes écologie : seul endroit vert hors page éco */
.eco-card {
  background: var(--pe-carte) !important;
  border: 1px solid var(--pe-bordure) !important;
  border-radius: var(--pe-r) !important;
  transition: transform .2s ease, box-shadow .2s ease;
}
.eco-card:hover { transform: translateY(-3px); box-shadow: var(--pe-ombre-verte); }
.eco-card-icon, .eco-stat-icon, .eco-step-num { background: var(--pe-menthe) !important; color: var(--pe-feuille) !important; }
.eco-card-tag { background: var(--pe-menthe) !important; color: var(--pe-feuille) !important; border-radius: var(--pe-r-pill) !important; }
.eco-stat-val { color: var(--pe-feuille-vive) !important; }

/* ---------- Avis ---------- */
.stars, .review-stars, .big-score-stars { color: var(--pe-ambre) !important; }
.review-avatar { background: var(--pe-grad-bleu) !important; color: #fff !important; }
.review-filter-btn.is-active {
  background: var(--pe-lac) !important;
  color: #fff !important;
  border-color: var(--pe-lac) !important;
}

/* ---------- Tarifs / configurateur ---------- */
.device-tabs .is-active, [class^="device-tab"].is-active {
  background: var(--pe-grad-bleu) !important;
  color: #fff !important;
  border-color: transparent !important;
}
.step-item.is-active .step-dot { background: var(--pe-azur) !important; }
.model-tile-from, .repair-row-price { color: var(--pe-lac-vif) !important; font-weight: 700; }
.cart-total-bar { background: var(--pe-encre) !important; color: #fff !important; border-radius: var(--pe-r) !important; }
.cart-total-value { color: #8fd4ff !important; }
.selected-repair-bar { border-color: var(--pe-azur) !important; }
.product-tag { background: var(--pe-ciel) !important; color: var(--pe-lac) !important; }

/* ---------- Formulaires ---------- */
.res-form input, .res-form select, .res-form textarea,
.res-field input, .res-field select, .res-field textarea {
  border: 1.5px solid var(--pe-bordure) !important;
  border-radius: var(--pe-r-sm) !important;
  background: var(--pe-carte) !important;
  color: var(--pe-texte) !important;
}
.res-form input:focus, .res-form select:focus, .res-form textarea:focus,
.res-field input:focus, .res-field select:focus, .res-field textarea:focus {
  border-color: var(--pe-azur) !important;
  box-shadow: 0 0 0 3px rgba(63, 126, 196, 0.18) !important;
}

/* ---------- Bandes & CTA ---------- */
.highlight-section { background: var(--pe-ciel-pale) !important; border-block: 1px solid var(--pe-bordure) !important; }
.cta-section {
  background: var(--pe-grad-bleu) !important;
  color: #fff !important;
  border-radius: var(--pe-r);
}
.cta-section h2, .cta-section p { color: #fff !important; }
.eco-cta { background: var(--pe-grad-vert) !important; color: #fff !important; border-radius: var(--pe-r); }
.eco-cta h2, .eco-cta p { color: #fff !important; }
.eco-muted-band { background: var(--pe-menthe) !important; }

.sticky-cta { background: var(--pe-grad-bleu) !important; color: #fff !important; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pe-encre) !important;
  color: #b9c9da !important;
  border-top: none !important;
}
.site-footer a { color: #cfe0f2 !important; }
.site-footer a:hover { color: #8fd4ff !important; }
.site-footer strong { color: #fff !important; }
.footer-copy { color: #7a8ea3 !important; }

/* ---------- Divers ---------- */
.theme-switch button {
  border: 1px solid var(--pe-bordure) !important;
  background: var(--pe-carte) !important;
  color: var(--pe-texte-2) !important;
  border-radius: var(--pe-r-pill) !important;
}
.skip-link:focus { background: var(--pe-encre); color: #fff; border-radius: var(--pe-r-sm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   HÉROS « L'ATELIER » — accueil uniquement
   Photo pleine largeur, contenu sur voile bleu nuit,
   badge Google + bandeau de garanties en surimpression
   ============================================================ */
.hero.hero-atelier {
  position: relative;
  padding: 0 !important;
  min-height: 640px;
  overflow: hidden;
  background: #061424 !important;
  isolation: isolate;
}
.hero-atelier-bg { position: absolute; inset: 0; z-index: 0; }
.hero-atelier-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 65% center;
  display: block;
}
.hero-atelier-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(96deg,
      rgba(6, 20, 36, 0.94) 0%,
      rgba(11, 30, 51, 0.88) 32%,
      rgba(11, 30, 51, 0.55) 58%,
      rgba(11, 30, 51, 0.25) 100%),
    radial-gradient(40rem 24rem at 92% 12%, rgba(63, 126, 196, 0.28), transparent 60%);
}

.hero-atelier .hero-atelier-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem) clamp(6rem, 10vw, 8rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.5rem;
  align-items: end;
}
.hero-atelier .hero-copy { max-width: 36rem; color: #eaf1f9; }
.hero-atelier h1 {
  color: #fff !important;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem) !important;
  line-height: 1.02 !important;
  margin: 0.6rem 0 1rem !important;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}
.hero-atelier .hero-subtitle {
  color: #cbd9ea !important;
  font-size: 1.1rem;
  max-width: 32rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.hero-atelier .eyebrow {
  display: inline-block;
  background: rgba(219, 234, 254, 0.12);
  border: 1px solid rgba(219, 234, 254, 0.28);
  color: #dce8f5 !important;
  padding: 6px 14px;
  border-radius: var(--pe-r-pill);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-atelier .rotating-text { color: #8fd4ff !important; }

.hero-atelier .hero-actions { margin-top: 1.75rem; }
.hero-atelier .btn-primary {
  background: #fff !important;
  color: var(--pe-encre) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45) !important;
}
.hero-atelier .btn-primary:hover { background: var(--pe-ciel) !important; filter: none; }
.hero-atelier .btn-secondary {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #fff !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-atelier .btn-secondary:hover { background: rgba(255, 255, 255, 0.14) !important; }

/* Colonne latérale : badge Google + légende live */
.hero-atelier-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  min-width: 200px;
}
.hero-atelier-badge {
  background: #fff;
  color: var(--pe-encre);
  border-radius: 18px;
  padding: 18px 24px;
  text-align: center;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55);
  min-width: 190px;
}
.hero-atelier-badge-stars {
  color: var(--pe-ambre);
  letter-spacing: 3px;
  font-size: 1rem;
  margin-bottom: 4px;
}
.hero-atelier-badge .google-rating-value {
  display: block;
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--pe-encre);
}
.hero-atelier-badge .google-rating-count {
  display: block;
  color: var(--pe-texte-2);
  font-size: 0.82rem;
  margin-top: 4px;
}
.hero-atelier-caption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: #dce8f5;
  padding: 7px 14px;
  border-radius: var(--pe-r-pill);
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.hero-atelier-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: hero-pulse 2s ease-out infinite;
}
@keyframes hero-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Bandeau de garanties qui chevauche le bas du héros */
.hero-atelier-strip {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  margin: -4rem auto 0;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.hero-stat {
  background: var(--pe-carte);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 18px 40px rgba(11, 30, 51, 0.22);
  border: 1px solid var(--pe-bordure);
  border-top: 3px solid var(--pe-lac-vif);
}
.hero-stat-icon {
  font-size: 1.7rem;
  line-height: 1;
  flex-shrink: 0;
}
.hero-stat strong {
  display: block;
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 1.05rem;
  color: var(--pe-encre);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.hero-stat span {
  display: block;
  color: var(--pe-texte-2);
  font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero.hero-atelier { min-height: 560px; }
  .hero-atelier-bg img { object-position: 60% center; }
  .hero-atelier-overlay {
    background:
      linear-gradient(180deg,
        rgba(6, 20, 36, 0.55) 0%,
        rgba(11, 30, 51, 0.85) 55%,
        rgba(11, 30, 51, 0.96) 100%);
  }
  .hero-atelier .hero-atelier-inner {
    grid-template-columns: 1fr;
    padding-bottom: 7rem;
  }
  .hero-atelier-side { align-items: flex-start; }
  .hero-atelier-strip { grid-template-columns: repeat(2, 1fr); margin-top: -3.5rem; }
}
@media (max-width: 560px) {
  .hero-atelier h1 { font-size: 2.15rem !important; }
  .hero-atelier-strip { grid-template-columns: 1fr; gap: 10px; }
  .hero-atelier .hero-actions { flex-wrap: wrap; }
  .hero-atelier .btn-lg { width: 100%; text-align: center; }
}

/* ============================================================
   SECTION SERVICES — mosaïque : carte principale + grille 2×2
   ============================================================ */
.services-mosaic {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
  margin-top: 2rem;
}
.services-secondary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* Cartes standard — override plus doux du look existant */
.services-mosaic .service-card {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  padding: 20px !important;
  text-decoration: none;
  color: var(--pe-texte);
}
.services-mosaic .service-card h3 {
  font-family: 'Sora', 'Inter', sans-serif;
  color: var(--pe-encre);
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.services-mosaic .service-card p {
  color: var(--pe-texte-2);
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0;
}
.services-mosaic .service-visual {
  height: 92px;
  border-radius: 12px;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* Carte mise en avant : hauteur = grille droite */
.service-card-featured {
  grid-row: 1 / span 2;
  padding: 28px !important;
  gap: 0 !important;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #f2f7fc 0%, #dbeafe 100%) !important;
  border: 1px solid transparent !important;
  display: grid !important;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
}
.service-card-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(30rem 20rem at 100% -10%, rgba(63, 126, 196, 0.22), transparent 55%),
    radial-gradient(20rem 14rem at -10% 110%, rgba(30, 58, 95, 0.15), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.service-card-featured > * { position: relative; z-index: 1; }

.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: #ffffff;
  color: var(--pe-lac) !important;
  border-radius: var(--pe-r-pill);
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.12);
  justify-self: start;
  margin-bottom: 8px;
}

.service-card-featured-visual {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 12px 0;
}
.phone-showcase {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

/* Halo lumineux qui pulse doucement */
.phone-showcase-halo {
  position: absolute;
  top: 50%; left: 50%;
  width: 55%;
  height: 55%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(63, 126, 196, 0.45) 0%, rgba(63, 126, 196, 0.15) 40%, transparent 70%);
  filter: blur(24px);
  z-index: 0;
  animation: halo-pulse 4s ease-in-out infinite;
}
@keyframes halo-pulse {
  0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.12); }
}

/* Téléphone : léger flottement vertical */
.phone-showcase-phone {
  position: absolute;
  top: 50%; left: 50%;
  height: 62%;
  z-index: 2;
  transform: translate(-50%, -50%);
  animation: phone-float 5s ease-in-out infinite;
}
.phone-showcase-phone svg {
  height: 100%;
  width: auto;
  display: block;
  filter: drop-shadow(0 22px 30px rgba(11, 30, 51, 0.32));
}
@keyframes phone-float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50%      { transform: translate(-50%, -50%) translateY(-8px); }
}

/* Orbite : chaque bulle est portée par un « bras » invisible qui tourne.
   La bulle contre-tourne à la même vitesse pour rester droite. */
.brand-orbit {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.orbit-slot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  animation: orbit-spin 32s linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.brand-bubble {
  position: absolute;
  top: -175px;   /* rayon + demi-hauteur */
  left: -27px;   /* -demi-largeur */
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(11, 30, 51, 0.18), 0 2px 4px rgba(11, 30, 51, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px;
  animation: bubble-upright 32s linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes bubble-upright {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
.brand-bubble img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Pause au survol */
.service-card-featured:hover .orbit-slot,
.service-card-featured:hover .brand-bubble {
  animation-play-state: paused;
}

/* Responsive : bulles plus proches sur écrans étroits */
@media (max-width: 1080px) {
  .brand-bubble { top: -160px; left: -25px; width: 50px; height: 50px; padding: 10px; }
}
@media (max-width: 560px) {
  .service-card-featured-visual { min-height: 260px; }
  .brand-bubble { top: -128px; left: -22px; width: 44px; height: 44px; padding: 8px; }
}

/* Respect du choix "moins d'animation" */
@media (prefers-reduced-motion: reduce) {
  .orbit-slot, .brand-bubble, .phone-showcase-phone, .phone-showcase-halo {
    animation: none !important;
  }
}

.service-card-featured .service-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(30, 58, 95, 0.15);
}
.service-card-featured h3 {
  color: var(--pe-encre) !important;
  font-size: 1.7rem !important;
  font-weight: 700;
  margin: 0 !important;
  letter-spacing: -0.02em;
  font-family: 'Sora', 'Inter', sans-serif !important;
}
.service-card-featured .service-card-body p {
  color: var(--pe-texte-2) !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  max-width: 34rem;
}
.service-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pe-lac-vif);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 6px;
  transition: gap .2s ease;
}
.service-card-featured:hover .service-card-cta { gap: 12px; }
.service-card-featured:hover {
  border-color: transparent !important;
  box-shadow: 0 18px 40px rgba(30, 58, 95, 0.22) !important;
}

/* Responsive */
@media (max-width: 960px) {
  .services-mosaic {
    grid-template-columns: 1fr;
  }
  .service-card-featured {
    grid-row: auto;
  }
  .service-card-featured-visual { min-height: 220px; }
}
@media (max-width: 560px) {
  .services-secondary { grid-template-columns: 1fr; }
  .service-card-featured { padding: 22px !important; }
  .service-card-featured h3 { font-size: 1.4rem !important; }
}

/* ============================================================
   CARTE CONTACT — épingle Phon'Ethik + carte d'infos flottante
   ============================================================ */
.map-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--pe-r) !important;
  border: 1px solid var(--pe-bordure) !important;
  aspect-ratio: 16 / 10;
  background: #eef4fb !important;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(0.9);
}

/* Épingle centrale avec logo Phon'Ethik */
.map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  pointer-events: none;
  z-index: 4;
  animation: map-pin-bounce 2s ease-in-out infinite;
}
.map-pin-badge {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, #1e3a5f 0%, #0b1e33 100%);
  box-shadow: 0 12px 24px rgba(11, 30, 51, 0.35), 0 0 0 4px rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-pin-badge img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transform: rotate(45deg);
  filter: brightness(0) invert(1);
}
.map-pin-shadow {
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 24px;
  height: 8px;
  background: rgba(11, 30, 51, 0.25);
  border-radius: 50%;
  transform: translateX(-50%);
  filter: blur(3px);
  animation: map-pin-shadow 2s ease-in-out infinite;
}
@keyframes map-pin-bounce {
  0%, 100% { transform: translate(-50%, -100%); }
  50%      { transform: translate(-50%, -108%); }
}
@keyframes map-pin-shadow {
  0%, 100% { opacity: 0.35; transform: translateX(-50%) scale(1); }
  50%      { opacity: 0.2;  transform: translateX(-50%) scale(0.8); }
}

/* Carte d'infos flottante en bas */
.map-info {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 12px 30px rgba(11, 30, 51, 0.18);
  z-index: 5;
  flex-wrap: wrap;
}
.map-info-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.map-info-header strong {
  font-family: 'Sora', 'Inter', sans-serif;
  color: var(--pe-encre);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.map-info-header span {
  color: var(--pe-texte-2);
  font-size: 0.82rem;
}
.map-info-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.map-info-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--pe-r-pill);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--pe-lac);
  border: 1px solid var(--pe-bordure);
  background: #fff;
  transition: background .2s ease, border-color .2s ease;
}
.map-info-btn:hover { background: var(--pe-ciel); border-color: var(--pe-lac-vif); }
.map-info-btn-primary {
  background: linear-gradient(135deg, #0b1e33 0%, #1e3a5f 55%, #2c5a8f 100%);
  color: #fff !important;
  border-color: transparent;
}
.map-info-btn-primary:hover { filter: brightness(1.15); background: linear-gradient(135deg, #0b1e33 0%, #1e3a5f 55%, #2c5a8f 100%); }

@media (max-width: 560px) {
  .map-info { flex-direction: column; align-items: flex-start; }
  .map-info-actions { width: 100%; }
  .map-info-btn { flex: 1; justify-content: center; }
  .map-pin-badge { width: 46px; height: 46px; }
  .map-pin-badge img { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .map-pin, .map-pin-shadow { animation: none !important; }
}

/* ============================================================
   OPTIMISATIONS MOBILE — passe finale
   ============================================================ */

/* Écrans étroits standards (< 480px) */
@media (max-width: 480px) {
  /* Hero atelier : réduire la hauteur, augmenter le contraste */
  .hero.hero-atelier { min-height: 500px; }
  .hero-atelier .hero-atelier-inner {
    padding: 3rem 1rem 6.5rem;
    gap: 1.5rem;
  }
  .hero-atelier h1 { font-size: 2rem !important; }
  .hero-atelier .hero-subtitle { font-size: 1rem; }
  .hero-atelier-badge { padding: 14px 18px; min-width: 0; }
  .hero-atelier-badge .google-rating-value { font-size: 1.75rem; }
  .hero-atelier-strip { margin-top: -3rem; padding: 0 1rem; }

  /* Services : phone showcase et bulles resserrés pour ne pas déborder */
  .service-card-featured { padding: 20px !important; }
  .service-card-featured h3 { font-size: 1.3rem !important; }
  .phone-showcase { max-width: 260px; }
  .service-card-featured-visual { min-height: 240px; }
  .brand-bubble { top: -110px; left: -20px; width: 40px; height: 40px; padding: 7px; }

  /* Section headings : centrer et resserrer */
  .section-heading h2 { font-size: 1.5rem; }

  /* CTAs : cibles de touche plus généreuses (44px min recommandé) */
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .main-nav a { min-height: 40px; display: inline-flex; align-items: center; }

  /* Carte contact : superposition claire */
  .map-wrap { aspect-ratio: 4 / 5; }
  .map-info { left: 10px; right: 10px; bottom: 10px; padding: 12px; }
  .map-info-header strong { font-size: 0.9rem; }
  .map-info-header span { font-size: 0.78rem; }
}

/* Très petits écrans (< 360px, ex: iPhone SE 1re génération) */
@media (max-width: 360px) {
  .hero-atelier h1 { font-size: 1.75rem !important; }
  .phone-showcase { max-width: 240px; }
  .brand-bubble { top: -100px; left: -18px; width: 36px; height: 36px; padding: 6px; }
  .service-card-featured-visual { min-height: 220px; }
  .services-mosaic { gap: 12px; }
  .services-secondary { gap: 10px; }
}

/* Prévenir les débordements horizontaux inattendus */
html, body { overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
