/* ============================================================
   TOPAZE ASSURANCES - DESIGN SYSTEM
   Courtier d'assurance de dommages · Laurentides
   Palette : #5F8575 vert · #080C10 noir · #C9A96E or (accent discret)
   Typo : Playfair Display (titres) + DM Sans (corps / labels)
   Direction : professionnel, affirmé, percutant - zéro émoji.
   Mobile-first · CSS custom.
   ============================================================ */

/* ---------- 1. VARIABLES ---------- */
:root {
  /* Couleurs */
  --c-green: #5F8575;
  --c-green-dark: #4c6c5f;
  --c-green-deep: #3a5347;
  --c-green-soft: #eef3f1;
  --c-green-line: #d6e1dc;
  --c-noir: #080C10;
  --c-noir-2: #11171c;
  --c-or: #C9A96E;
  --c-blanc: #ffffff;
  --c-gris-bg: #f5f7f6;
  --c-gris-bord: #e4e9e7;
  --c-gris-texte: #4a565c;
  --c-gris-clair: #8b9893;

  /* Typographie */
  --font-titre: 'Playfair Display', Georgia, serif;
  --font-corps: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-h1: clamp(2.25rem, 5.5vw, 3.75rem);
  --fs-h2: clamp(1.7rem, 3.8vw, 2.6rem);
  --fs-h3: clamp(1.2rem, 2.4vw, 1.45rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;

  /* Spacing */
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 1.75rem;
  --sp-lg: 3rem;
  --sp-xl: 5.5rem;

  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 2px 10px rgba(8, 12, 16, 0.06);
  --shadow-md: 0 14px 40px rgba(8, 12, 16, 0.14);
  --maxw: 1180px;
  --transition: 0.2s ease;
}

/* ---------- 2. RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-corps);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-noir);
  background: var(--c-blanc);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-titre); font-weight: 800; line-height: 1.08; color: var(--c-noir); }
h1 { font-size: var(--fs-h1); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); }
p { margin-bottom: var(--sp-sm); color: var(--c-gris-texte); }
a { color: var(--c-green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
strong { color: var(--c-noir); }

/* ---------- 3. LAYOUT ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: var(--sp-xl); }
.section--tight { padding-block: var(--sp-lg); }
.section--gris { background: var(--c-gris-bg); }
.section--noir { background: var(--c-noir); }
.section--green { background: var(--c-green-deep); }
.section--noir h1, .section--noir h2, .section--noir h3,
.section--green h1, .section--green h2, .section--green h3 { color: var(--c-blanc); }
.section--noir p, .section--green p { color: #c4cdd3; }

.section-head { max-width: 760px; margin: 0 auto var(--sp-lg); }
.section-head--center { text-align: center; }
.section-head .eyebrow { margin-bottom: var(--sp-sm); }
.section-head h2 { margin-bottom: var(--sp-md); }
.section-head p { font-size: 1.125rem; }

/* Titre à deux niveaux, style « POURQUOI CHOISIR / TOPAZE » */
.kicker {
  display: block; font-family: var(--font-corps); font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.25rem); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-green); margin-bottom: 0.35rem;
}

/* ---------- 4. EYEBROW / LABELS ---------- */
.eyebrow {
  display: inline-block; font-family: var(--font-corps); font-weight: 700;
  font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-green);
}
.eyebrow--light { color: #9dc3b6; }

/* ---------- 5. NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-noir);
  border-bottom: 1px solid #1c242b;
}
.nav__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 0.55rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav__logo img { width: 172px; height: auto; }
.nav__logo .fallback { font-family: var(--font-titre); font-weight: 800; font-size: 1.2rem; color: var(--c-blanc); }
.nav__links { display: none; align-items: center; gap: 1.6rem; }
.nav__links a {
  color: #e9eded; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none;
}
.nav__links a:hover { color: var(--c-green); }
.nav__phone { display: none; color: var(--c-blanc); font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.nav__phone:hover { color: var(--c-green); text-decoration: none; }
.nav__cta { display: none; }
@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__phone { display: inline-block; }
  .nav__cta { display: inline-flex; }
}

/* ---------- 6. BOUTONS / CTA ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-corps); font-weight: 700; font-size: 0.9375rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 2px solid transparent; border-radius: var(--radius);
  padding: 17px 30px; cursor: pointer; text-decoration: none; line-height: 1.1;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--c-green); color: var(--c-noir); box-shadow: 0 6px 18px rgba(95, 133, 117, 0.4); }
.btn--primary:hover { background: var(--c-green-dark); color: var(--c-blanc); box-shadow: 0 10px 26px rgba(95, 133, 117, 0.5); }
.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn--ghost:hover { background: var(--c-noir); color: var(--c-blanc); border-color: var(--c-noir); }
.btn--ghost-light { background: transparent; color: var(--c-blanc); border-color: rgba(255,255,255,0.55); }
.btn--ghost-light:hover { background: var(--c-blanc); color: var(--c-noir); border-color: var(--c-blanc); }
.btn--sm { padding: 11px 20px; font-size: 0.8125rem; }
.btn--block { width: 100%; }

.cta-reassure {
  margin-top: 0.7rem; font-size: 0.875rem; color: var(--c-gris-clair);
  letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600;
}

/* ---------- 7. HERO (plein cadre, sombre) ---------- */
.hero {
  position: relative; background: var(--c-noir); color: var(--c-blanc);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,12,16,0.55) 0%, rgba(8,12,16,0.82) 100%),
    linear-gradient(120deg, var(--c-green-deep) 0%, var(--c-noir) 70%);
  background-size: cover; background-position: center;
}
.hero__bg--photo { /* remplacer par la vraie photo : background-image */ }
.hero__inner { position: relative; z-index: 2; padding-block: clamp(4rem, 12vw, 8.5rem); max-width: 880px; }
.hero .eyebrow { margin-bottom: var(--sp-md); }
.hero h1 { color: var(--c-blanc); text-transform: uppercase; margin-bottom: var(--sp-md); }
.hero__lede { font-size: 1.1875rem; color: #d4dbd9; max-width: 52ch; margin-bottom: var(--sp-lg); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero__trust { margin-top: var(--sp-lg); display: flex; flex-wrap: wrap; gap: 1.5rem; }
.hero__trust span {
  font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; color: #9dc3b6; position: relative; padding-left: 1.4rem;
}
.hero__trust span::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px;
  transform: translateY(-50%) rotate(45deg); background: var(--c-green);
}

/* ---------- 8. BANDE DE STATS (style Buck) ---------- */
.statband { background: var(--c-green-deep); }
.statband__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(255,255,255,0.12);
}
.statband__item {
  background: var(--c-green-deep); padding: var(--sp-lg) var(--sp-sm); text-align: center;
}
.statband__num { font-family: var(--font-titre); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3rem); color: var(--c-blanc); line-height: 1; }
.statband__label { margin-top: 0.6rem; font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: #b9cfc7; font-weight: 600; }
@media (min-width: 760px) { .statband__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 9. SPLIT (texte + média) ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: var(--sp-lg); align-items: center; }
.split--reverse .split__media { order: -1; }
@media (min-width: 920px) {
  .split { grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.5rem, 5vw, 4.5rem); }
  .split--reverse .split__media { order: 0; }
}

/* Placeholder média (en attendant les vraies photos) */
.media-placeholder {
  background: var(--c-noir-2); border: 1px solid #232c33; color: #6f7d84;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  min-height: 360px; padding: 1.5rem; border-radius: var(--radius-lg);
}
.media-placeholder--portrait { aspect-ratio: 4 / 5; min-height: 0; }
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); display: block; }

/* ---------- 10. CARTES PRODUITS ---------- */
.grid { display: grid; gap: var(--sp-md); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--c-blanc); border: 1px solid var(--c-gris-bord); border-top: 3px solid var(--c-green);
  border-radius: var(--radius-lg); padding: var(--sp-md);
  box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition);
  height: 100%; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon { width: 46px; height: 46px; color: var(--c-green); margin-bottom: var(--sp-sm); }
.card__icon svg { width: 100%; height: 100%; }
.card h3 { text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 0.5rem; font-family: var(--font-corps); font-weight: 700; font-size: 1.15rem; }
.card p { font-size: var(--fs-small); margin-bottom: var(--sp-md); }
.card__link { margin-top: auto; font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-green-dark); }
.card__link::after { content: " →"; }

/* ---------- 11. LISTE À COCHES ---------- */
.checklist { display: grid; gap: 0.75rem; margin: var(--sp-md) 0; }
.checklist li { position: relative; padding-left: 2rem; color: var(--c-gris-texte); }
.checklist li strong { color: var(--c-noir); }
.section--noir .checklist li, .section--green .checklist li { color: #c4cdd3; }
.section--noir .checklist li strong, .section--green .checklist li strong { color: var(--c-blanc); font-weight: 700; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 11px; height: 6px;
  border-left: 2.5px solid var(--c-green); border-bottom: 2.5px solid var(--c-green);
  transform: rotate(-45deg);
}

/* ---------- 12. POURQUOI / FEATURES ---------- */
.feature { padding: var(--sp-md) 0; border-top: 1px solid rgba(255,255,255,0.14); }
.feature:first-child { border-top: 0; }
.feature h3 { color: var(--c-blanc); text-transform: uppercase; font-family: var(--font-corps); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.04em; margin-bottom: 0.4rem; }
.feature p { color: #b6c0c5; font-size: var(--fs-small); margin: 0; }
.features-grid { display: grid; gap: var(--sp-md); grid-template-columns: 1fr; margin-top: var(--sp-lg); }
.features-grid .feature { border-top: 3px solid var(--c-green); padding: var(--sp-md) 0 0; }
@media (min-width: 760px) { .features-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-lg); } }
@media (min-width: 760px) { .features-grid.features-grid--4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 13. TÉMOIGNAGES ---------- */
.quote {
  background: var(--c-blanc); border: 1px solid var(--c-gris-bord);
  border-radius: var(--radius-lg); padding: var(--sp-md); box-shadow: var(--shadow-sm); height: 100%;
}
.quote p { font-size: 1.0625rem; color: var(--c-noir); }
.quote__author { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-gris-clair); margin: 0.8rem 0 0; }
.quote__stars { color: var(--c-or); letter-spacing: 3px; margin-bottom: 0.7rem; font-size: 0.9rem; }

/* ---------- 14. BANDEAU CTA ---------- */
.cta-band { text-align: center; max-width: 760px; margin-inline: auto; }
.cta-band h2 { color: var(--c-blanc); text-transform: uppercase; margin-bottom: var(--sp-sm); }
.cta-band p { color: #c4cdd3; max-width: 52ch; margin-inline: auto; margin-bottom: var(--sp-lg); }

/* ---------- 15. FAQ ---------- */
.faq__item { border-bottom: 1px solid var(--c-gris-bord); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 1.2rem 0;
  font-weight: 700; font-size: 1.0625rem; color: var(--c-noir);
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--c-green); font-size: 1.6rem; font-weight: 400; flex-shrink: 0; line-height: 1; }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { padding-bottom: 1.2rem; font-size: var(--fs-small); margin: 0; }

/* ---------- 16. FOOTER ---------- */
.footer { background: var(--c-noir); color: #aeb8bd; padding-block: var(--sp-lg) var(--sp-md); }
.footer a { color: #aeb8bd; }
.footer a:hover { color: var(--c-green); text-decoration: none; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-md); margin-bottom: var(--sp-lg); }
.footer__logo img { width: 190px; margin-bottom: var(--sp-sm); }
.footer__logo .fallback { font-family: var(--font-titre); font-weight: 800; font-size: 1.3rem; color: var(--c-blanc); }
.footer h4 { color: var(--c-blanc); font-family: var(--font-corps); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.95rem; }
.footer__col a { display: block; font-size: var(--fs-small); margin-bottom: 0.6rem; }
.footer__legal { border-top: 1px solid #1c242b; padding-top: var(--sp-md); font-size: 0.8125rem; color: #6f7d84; display: grid; gap: 0.5rem; }
.footer__legal a { font-size: 0.8125rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.7fr 1fr 1fr; } }

/* ---------- 16b. TAGS RÉGIONS ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; max-width: 840px; margin-inline: auto; }
.tag {
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.55rem 1.1rem; border-radius: 999px;
  background: var(--c-blanc); border: 1px solid var(--c-green-line); color: var(--c-gris-texte);
}
.tag--all { background: var(--c-green); border-color: var(--c-green); color: var(--c-noir); font-weight: 700; }

/* ---------- 16c. ÉTAPES NUMÉROTÉES ---------- */
.card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-green-soft); color: var(--c-green-dark);
  font-family: var(--font-titre); font-weight: 800; font-size: 1.2rem; margin-bottom: var(--sp-sm);
}

/* ---------- 16d. LOGOS PARTENAIRES (placeholder) ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 600px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }
.logo-box {
  aspect-ratio: 3 / 2; border: 1px solid var(--c-gris-bord); border-radius: var(--radius-lg);
  background: var(--c-blanc); display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--c-gris-clair); font-size: 0.9375rem; font-weight: 700; padding: 1rem;
  text-decoration: none; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.logo-box:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--c-green); text-decoration: none; }
.logo-box img { max-height: 56px; max-width: 85%; width: auto; object-fit: contain; }

/* ---------- 16e. PROSE LÉGALE ---------- */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 {
  font-family: var(--font-corps); font-weight: 700; font-size: 1.1rem;
  text-transform: uppercase; letter-spacing: 0.03em; margin: var(--sp-lg) 0 var(--sp-sm); color: var(--c-noir);
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: var(--sp-sm); }
.prose ul.bullets { list-style: disc; padding-left: 1.4rem; margin-bottom: var(--sp-sm); }
.prose ul.bullets li { margin-bottom: 0.4rem; color: var(--c-gris-texte); }

/* ---------- 16f. BLOC CONTACT ---------- */
.contact-line { display: flex; gap: 0.6rem; margin-bottom: 0.9rem; font-size: 1.0625rem; }
.contact-line strong { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-green-dark); margin-bottom: 0.1rem; }

/* ---------- 17. UTILITAIRES ---------- */
.text-center { text-align: center; }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mb-0 { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--c-green); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
