@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Instrument+Serif:ital@0;1&display=swap');

:root, [data-theme="light"] {
  /* BACKGROUNDS CLAIRS */
  --bg: #f4f8fb;
  --surface: #ffffff;
  --surface2: #e9f2f9; /* Bleu très très clair pour le fond des "Etapes" */
  --border: rgba(24, 110, 171, 0.12); /* Base primaire en transparence */

  /* TEXTES */
  --text: #0d2236;
  --muted: #4a6a82;
  --faint: #9ab5c8;
  --inv: #ffffff;

  /* COULEURS DE MARQUE */
  /* Primaire : Bleu Foncé */
  --primary: #186EAB;
  --primary-h: #125584;
  --primary-l: #d0e4f2;
  
  /* Accent : Vert Clair */
  --green: #89C765;
  --green-h: #75b352;
  --green-l: #e6f7e0;
  
  /* Secondaire : Turquoise */
  --secondary: #3EBCCF;
  --secondary-h: #2ca8bb;

  /* OMBRES DOUCES "STYLE APPLE/MODERNE" */
  --shadow-s: 0 2px 8px rgba(24, 110, 171, 0.08);
  --shadow-m: 0 6px 24px rgba(24, 110, 171, 0.12);
  --shadow-l: 0 16px 48px rgba(24, 110, 171, 0.15);

  /* ARRONDIS ET ESPACEMENTS */
  --r-s: .5rem;
  --r-m: .75rem;
  --r-l: 1.25rem;
  --r-xl: 1.75rem;
  --r-f: 9999px;

  /* TYPOGRAPHIE AFFINÉE (Plus fine, élégante et parfaitement lisible) */
  --tx-xs: clamp(.75rem, .7vw + .1rem, .85rem);
  --tx-s: clamp(.85rem, .8vw + .15vw, .95rem);
  --tx-b: clamp(0.95rem, .9rem + .3vw, 1.05rem); /* Base ~15-17px */
  --tx-l: clamp(1.1rem, 1.05rem + .3vw, 1.25rem);
  --tx-xl: clamp(1.3rem, 1.2rem + .5vw, 1.75rem);
  --tx-2xl: clamp(1.6rem, 1.4rem + 1vw, 2.5rem);

  /* FAMILLES DE POLICES */
  --fd: 'Instrument Serif', Georgia, serif; /* Titres très élégants type "Journal" */
  --fb: 'Plus Jakarta Sans', system-ui, sans-serif; /* Corps de texte très lisible */
  
  --ease: 200ms cubic-bezier(.16, 1, .3, 1);
}

/* THÈME SOMBRE INTELLIGENT */
[data-theme="dark"] {
  --bg: #091319;
  --surface: #0e1e28;
  --surface2: #142836;
  --border: rgba(62, 188, 207, 0.15);
  
  --text: #d6e6f0;
  --muted: #8aaabe;
  --faint: #34566c;
  --inv: #091319;
  
  /* Le bleu primaire devient plus "néon" sur fond noir */
  --primary: #5cbef2;
  --primary-h: #8dd1f5;
  --primary-l: #16364a;
  
  /* Le vert reste lumineux */
  --green: #89C765;
  --green-h: #a3d984;
  --green-l: #19381e;
  
  --secondary: #3EBCCF;
  --secondary-h: #5cd0e2;

  --shadow-s: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-m: 0 6px 24px rgba(0,0,0,0.4);
  --shadow-l: 0 16px 48px rgba(0,0,0,0.5);
}

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--fb); font-size: var(--tx-b); color: var(--text); background: var(--bg); line-height: 1.6; min-height: 100dvh; }
img, svg { display: block; max-width: 100%; }
a, button { transition: color var(--ease), background var(--ease), box-shadow var(--ease), transform var(--ease), border-color var(--ease); }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: var(--r-s); }
h1, h2, h3 { text-wrap: balance; line-height: 1.15; }
p, li { text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* CONTENEUR GLOBAL */
.wrap { max-width: 1100px; margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }
section { padding-block: clamp(3.5rem, 6vw, 5.5rem); }

/* ==== HEADER & NAVIGATION ==== */
header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklch, var(--surface) 90%, transparent);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; gap: 1.5rem;
  max-width: 1100px; margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}
.logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; flex-shrink: 0; }
.logo-img {
  height: 52px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}
.logo-name { font-size: var(--tx-s); font-weight: 800; color: var(--primary); line-height: 1.1; }
.logo-sub { font-size: var(--tx-xs); color: var(--muted); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 1rem; }

/* BOUTONS GENERIQUES */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .6rem 1.5rem; border-radius: var(--r-f);
  font-size: var(--tx-s); font-weight: 700; text-decoration: none; white-space: nowrap;
  min-height: 44px; border: none; cursor: pointer; box-sizing: border-box;
}
.btn-p { background: var(--primary); color: #fff; }
.btn-p:hover { background: var(--primary-h); transform: translateY(-2px); box-shadow: var(--shadow-m); }
.btn-g { background: var(--green); color: #fff; }
.btn-g:hover { background: var(--green-h); transform: translateY(-2px); box-shadow: var(--shadow-m); }
.btn-o { background: var(--surface); border: 2px solid var(--border); color: var(--text); }
.btn-o:hover { border-color: var(--primary); color: var(--primary); }

.theme-btn {
  width: 48px; height: 48px; border-radius: var(--r-m);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.theme-btn:hover { background: var(--surface2); color: var(--text); }

/* ==== SECTION HERO (En-tête de page) ==== */
.hero { padding-block: clamp(3rem, 10vw, 6rem); position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  /* Double Halo lumineux (Bleu et Vert clair) en arrière plan */
  background: 
    radial-gradient(circle at 75% 40%, color-mix(in oklch, var(--secondary) 15%, transparent), transparent 50%),
    radial-gradient(circle at 20% 85%, color-mix(in oklch, var(--green) 12%, transparent), transparent 50%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; }
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--green-l); color: var(--green);
  padding: .4rem 1.25rem; border-radius: var(--r-f);
  font-size: var(--tx-s); font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 1.5rem;
  border: 1px solid color-mix(in oklch, var(--green) 20%, transparent);
}
.dot { width: 10px; height: 10px; background: var(--green); border-radius: 50%; animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(1.3)} }
.hero h1 { font-family: var(--fd); font-size: var(--tx-2xl); color: var(--text); margin-bottom: 1.25rem; letter-spacing: -1px; }
.hero h1 em { font-style: italic; color: var(--primary); }
.hero-sub { font-size: var(--tx-l); color: var(--muted); line-height: 1.5; margin-bottom: 2.5rem; max-width: 48ch; font-weight: 500;}
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.trust { display: flex; align-items: center; gap: 1rem; }
.stars { color: #f59e0b; font-size: var(--tx-l); letter-spacing: 2px; }
.trust-txt { font-size: var(--tx-s); color: var(--muted); line-height: 1.4; font-weight: 500; }
.trust-txt strong { color: var(--text); font-weight: 800; }

/* ==== HERO CARD (Résumé des atouts) ==== */
.hcard {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--shadow-l); padding: clamp(1.5rem, 4vw, 2.5rem); position: relative;
}
.hcard-tag {
  position: absolute; top: -16px; left: 2rem;
  background: var(--primary); color: #fff; font-size: var(--tx-s); font-weight: 800;
  padding: .3rem 1.25rem; border-radius: var(--r-f);
}
.hcard ul { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; margin-top: 1rem; }
.hcard li { display: flex; align-items: flex-start; gap: 1rem; }
.ck {
  width: 28px; height: 28px; min-width: 28px;
  background: var(--green-l); color: var(--green); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 800; margin-top: 2px;
}
.hcard li .t { font-size: var(--tx-b); font-weight: 800; color: var(--text); line-height: 1.2; margin-bottom: .1rem; }
.hcard li .s { font-size: var(--tx-s); color: var(--muted); font-weight: 500; }
.hcard-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hcard-btns a { flex: 1; min-width: 130px; }
.hours {
  text-align: center; margin-top: 1.5rem; font-size: var(--tx-s); font-weight: 600;
  color: var(--muted); display: flex; align-items: center; justify-content: center; gap: .5rem;
}

/* ==== BANDEAU DES ZONES ==== */
.zone-bar { background: var(--primary); padding: 1rem 0; }
.zone-inner {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center;
  max-width: 1100px; margin-inline: auto; padding-inline: 1.5rem;
}
.zone-lbl { font-size: var(--tx-s); font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: .08em; flex-shrink: 0; }
.zone-pills { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.zpill { background: rgba(255,255,255,.2); color: #fff; padding: .3rem .9rem; border-radius: var(--r-f); font-size: var(--tx-s); font-weight: 700; }

/* ==== GRILLE DE SERVICES ==== */
.sec-lbl { font-size: var(--tx-s); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); display: block; margin-bottom: .75rem; }
.sec-h { font-family: var(--fd); font-size: var(--tx-xl); color: var(--text); margin-bottom: 1rem; letter-spacing: -0.5px; }
.sec-sub { font-size: var(--tx-l); color: var(--muted); max-width: 55ch; margin-bottom: 3rem; font-weight: 500; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.5rem; }
.svc {
  background: var(--surface); border: 2px solid transparent; border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3vw, 2.225rem); box-shadow: var(--shadow-s); transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--secondary); }
.svc-ico { font-size: 2.8rem; margin-bottom: 1.25rem; }
.svc h3 { font-size: var(--tx-l); font-weight: 800; color: var(--text); margin-bottom: .5rem; }
.svc p { font-size: var(--tx-b); color: var(--muted); line-height: 1.5; font-weight: 500; }
.svc-tag {
  display: inline-block; margin-top: 1.5rem; font-size: var(--tx-s); font-weight: 800;
  color: var(--primary); background: var(--primary-l); padding: .25rem 1rem; border-radius: var(--r-f);
}

/* ==== COMMENT ÇA MARCHE ==== */
.steps-bg { background: var(--surface2); } /* Le fond bleuté clair */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; position: relative; }
/* La ligne qui lie les étapes sur PC */
.steps::before {
  content: ''; position: absolute; top: 38px; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--green)); opacity: 0.2; border-radius: 4px;
}
.step { text-align: center; position: relative; }
.step-n {
  width: 72px; height: 72px; background: var(--primary); color: #fff; border-radius: 50%;
  font-size: var(--tx-xl); font-weight: 900; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem; box-shadow: 0 0 0 8px var(--surface2); position: relative; z-index: 2;
}
.step h3 { font-size: var(--tx-l); font-weight: 800; margin-bottom: .5rem; }
.step p { font-size: var(--tx-b); color: var(--muted); max-width: 24ch; margin-inline: auto; font-weight: 500; }

/* ==== AVIS CLIENTS (Testimonials) ==== */
.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.5rem; }
.tcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 2rem; box-shadow: var(--shadow-s); }
.t-stars { color: #f59e0b; font-size: var(--tx-l); margin-bottom: 1rem; letter-spacing: 2px; }
.t-txt { font-size: var(--tx-b); color: var(--muted); font-style: italic; line-height: 1.6; margin-bottom: 1.5rem; }
.t-author { font-size: var(--tx-s); font-weight: 800; color: var(--text); }
.t-via { font-size: var(--tx-xs); color: var(--faint); font-weight: 600; display: block; margin-top: .2rem; }

/* ==== BANDEAU D'APPEL FINALE (CTA) ==== */
.cta-band { background: linear-gradient(135deg, color-mix(in oklch, var(--primary) 85%, #000 15%), var(--secondary)); text-align: center; color: white; padding-block: clamp(2.5rem, 5vw, 4rem) !important; }
.cta-band h2 { font-family: var(--fd); font-size: clamp(1.75rem, 3.5vw, 2.5rem); color: #fff; margin-bottom: 1rem; letter-spacing: -0.5px; }
.cta-band p { color: rgba(255,255,255,.9); font-size: var(--tx-b); line-height: 1.5; margin-bottom: 2rem; max-width: 50ch; margin-inline: auto; font-weight: 500; }
.cta-phone { font-size: clamp(1.5rem, 3.5vw, 2.75rem); font-weight: 800; color: #fff; text-decoration: none; display: inline-block; margin-bottom: 1.5rem; text-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.2s;}
.cta-phone:hover { transform: scale(1.02); }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.btn-w { background: #fff; color: var(--primary); font-weight: 700; }.btn-w:hover { background: rgba(255,255,255,.95); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.15); color: var(--primary); }
.btn-wg { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }.btn-wg:hover { background: rgba(255,255,255,.1); border-color: white; color: white; }
.cta-meta { color: rgba(255,255,255,.8); font-size: var(--tx-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* ==== FOOTER COMPLET ==== */
footer { background: #0A1924; color: #9ab5c8; padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem; }
footer nav { display: block; height: auto; padding: 0; margin: 0; max-width: none; }
.footer-g { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 5vw, 5rem); margin-inline: auto; max-width: 900px; margin-bottom: 2.5rem; align-items: start; }
footer h4 { font-size: var(--tx-b); font-weight: 800; color: #fff; margin-bottom: 1.25rem; }
footer .footer-desc { font-size: var(--tx-s); line-height: 1.6; max-width: 100%; font-weight: 400; color: rgba(154, 181, 200, 0.85); }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
footer ul li { font-size: var(--tx-s); font-weight: 500; display: flex; align-items: center; gap: 1rem; }
footer ul li i { width: 16px; text-align: center; font-size: 1rem; color: var(--primary); flex-shrink: 0; }
footer ul a { color: #9ab5c8; text-decoration: none; font-weight: 500; transition: color var(--ease); display: flex; align-items: center; gap: 1rem; }
footer ul a i { width: 16px; text-align: center; font-size: 1rem; color: var(--primary); flex-shrink: 0; transition: color var(--ease); }
footer ul a:hover { color: var(--secondary); }
footer ul a:hover i { color: var(--secondary); }
.footer-bot { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; font-size: var(--tx-xs); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center; font-weight: 500; color: rgba(154, 181, 200, 0.6); }
.footer-bot span { margin-inline: 1rem; text-align: center; }

/* ==== PERFECTION MOBILE ==== */
@media (max-width: 850px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-btns, .trust { justify-content: center; }
  .hcard { order: -1; text-align: left; } /* La carte info passe en premier sur mobile */
  .footer-g { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  footer .footer-desc { margin-inline: auto; }
  .nav-right a.btn { padding: 0; width: 48px; height: 48px; min-height: 48px; min-width: 48px; justify-content: center; border-radius: 50%; font-size: 0; }
  .nav-right a.btn i { font-size: 1.25rem; margin: 0; }
  .steps::before { display: none; }
}

@media (max-width: 480px) {
  .hcard-btns { flex-direction: column; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.75rem); }
}
