/* =========================================================================
   CH CONSULTING — style.css (feuille unique, mobile-first)
   1.  Tokens (:root)
   2.  Reset & base
   3.  Typographie (.eyebrow, .lead, .accent)
   4.  Layout (.container, .section, .grid, .cluster)
   5.  Boutons (.btn)
   6.  Header & navigation (+ menu mobile <details>)
   7.  Hero (.hero--split)
   8.  Cartes & placeholder
   9.  Sections : promesse, mission, fondateur/secteurs, services,
       comparaison (zéro ballotage), valeurs, étapes, partenaires, CTA sombre
   10. Formulaires
   11. Footer
   12. WhatsApp flottant
   13. Utilitaires & accessibilité
   ========================================================================= */

/* 1. TOKENS ------------------------------------------------------------- */
:root {
  /* Palette */
  --gold: #C19A2E;
  --gold-bright: #E0BC4E;
  --bronze: #8A6D3B;
  --dark: #25211A;
  --bg: #FBF8F1;
  --bg-2: #F3EDE0;
  --card: #FFFDF7;
  --border: #E9E2D1;
  --border-2: #E4DCC9;
  --border-strong: #B3A786;
  --text: #5C5546;
  --text-strong: #3A352B;
  --muted: #6E6657;
  --muted-2: #8A8270;
  --muted-3: #A39A87;
  --light: #F3EDE0;
  --ph-a: #EFE8D8;
  --ph-b: #F6F1E4;
  --ph-border: #C9B98F;
  --whatsapp: #25D366;
  --green: #3FA75B;
  --err: #B3261E;

  /* Typographie */
  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Karla", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --fs-hero: clamp(2.625rem, 1.55rem + 3.4vw, 4.625rem);
  --fs-h2: clamp(1.875rem, 1.3rem + 2.1vw, 2.75rem);
  --fs-h3: clamp(1.4rem, 1.15rem + 1vw, 1.7rem);
  --fs-lead: clamp(1rem, 0.95rem + 0.35vw, 1.1875rem);
  --fs-body: 1.0625rem;
  --fs-eyebrow: 0.75rem;

  /* Espacement & formes */
  --container: 1240px;
  --container-narrow: 760px;
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 4rem);
  --section-y: clamp(3.5rem, 2rem + 6vw, 6.5rem);
  --radius-card: 18px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(37,33,26,.04), 0 10px 30px rgba(37,33,26,.07);
  --shadow-float: 0 10px 28px rgba(37,33,26,.30);
  --focus-ring: 0 0 0 3px rgba(193,154,46,.55);
}

/* 2. RESET & BASE ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }
::selection { background: var(--gold); color: var(--dark); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 3. TYPOGRAPHIE -------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--dark);
  text-wrap: balance;
}
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
.accent { font-style: italic; color: var(--bronze); }
.section--dark .accent { color: var(--gold-bright); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--bronze);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
}
.section--dark .eyebrow { color: var(--gold-bright); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--text);
  text-wrap: pretty;
}
.section--dark .lead { color: rgba(243,237,224,.82); }

.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }

/* 4. LAYOUT ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-2); }
.section--dark { background: var(--dark); color: var(--light); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--light); }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }

.cluster { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.stack { display: flex; flex-direction: column; }
.section__head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section__head--center { align-items: center; text-align: center; margin-inline: auto; }

/* 5. BOUTONS ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--gold); color: var(--dark); font-weight: 700; }
.btn--primary:hover { background: var(--dark); color: #F8F4E9; }
.btn--secondary { background: transparent; color: var(--dark); border-color: var(--border-strong); }
.btn--secondary:hover { border-color: var(--dark); background: #FFFDF7; }
.btn--small { padding: 11px 20px; font-size: .92rem; }
.btn--block { width: 100%; }
.section--dark .btn--secondary { color: var(--light); border-color: rgba(243,237,224,.35); }
.section--dark .btn--secondary:hover { border-color: var(--gold-bright); background: rgba(243,237,224,.06); }

/* 6. HEADER & NAV ------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 200;
  background: var(--dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  transition: top .15s;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 241, .92);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 80px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-seal {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 600; font-size: 1.3rem;
  color: var(--bronze);
  flex-shrink: 0;
}
.brand-seal--light { border-color: var(--gold); color: var(--gold-bright); }
.brand__text { display: flex; flex-direction: column; gap: 1px; }
.brand__name { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; letter-spacing: .02em; line-height: 1; }
.brand__tag { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze); }

.nav-desktop { display: none; }
.nav-desktop__list { display: flex; align-items: center; gap: 30px; }
.nav-link { color: var(--muted); font-weight: 600; font-size: .95rem; transition: color .15s; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.nav-link:hover { color: var(--dark); }
.nav-link.is-active { color: var(--dark); border-bottom-color: var(--gold); }

/* Menu mobile = <details> (fonctionne sans JS) */
.nav-mobile { margin-left: auto; position: static; }
.nav-mobile > summary {
  list-style: none;
  cursor: pointer;
  width: 46px; height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile > summary span { display: block; width: 20px; height: 2px; background: var(--dark); border-radius: 2px; }
.nav-mobile > summary span:last-child { background: var(--gold); width: 14px; }
.nav-mobile[open] > summary span:last-child { width: 20px; }
.nav-mobile__panel {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(37,33,26,.08);
  padding: 10px var(--gutter) 22px;
  display: flex; flex-direction: column; gap: 2px;
}
.nav-mobile__panel a:not(.btn) {
  padding: 14px 4px;
  font-weight: 600; font-size: 1.05rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.nav-mobile__panel a.is-active { color: var(--dark); }
.nav-mobile__panel .btn { margin-top: 14px; }

@media (min-width: 64em) {
  .nav-desktop { display: flex; align-items: center; gap: 30px; margin-left: auto; }
  .nav-mobile { display: none; }
}

/* 7. HERO (split) ------------------------------------------------------- */
.hero {
  padding-block: clamp(2.75rem, 6vw, 6.5rem);
  background: linear-gradient(180deg, var(--bg) 0%, #F6F0E2 100%);
}
.hero__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__content { flex: 1 1 430px; min-width: 0; display: flex; flex-direction: column; gap: 1.6rem; align-items: flex-start; }
.hero__title { font-size: var(--fs-hero); line-height: 1.04; }
.hero__media { flex: 1 1 400px; min-width: 0; width: 100%; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; color: var(--muted-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* 8. CARTES & PLACEHOLDER ----------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  display: flex; flex-direction: column; gap: .7rem;
  transition: border-color .2s, transform .2s;
}
.card--value:hover { border-color: var(--gold); transform: translateY(-2px); }
.card__diamond { width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); margin-bottom: 6px; }
.card__title { font-family: var(--font-head); font-weight: 600; font-size: 1.6rem; }
.card__text { color: var(--muted); font-size: .98rem; line-height: 1.65; text-wrap: pretty; }

/* Carte service : trait doré en haut, sans fond */
.card--service {
  background: transparent;
  border: none;
  border-top: 1.5px solid var(--gold);
  border-radius: 0;
  padding: 1.4rem 0 0;
}
.card__num { font-family: var(--font-head); font-style: italic; font-size: 1.2rem; color: var(--muted-3); }

/* Placeholder image annoté */
.placeholder {
  position: relative;
  border: 1px dashed var(--ph-border);
  border-radius: var(--radius-lg);
  background: repeating-linear-gradient(45deg, var(--ph-a), var(--ph-a) 14px, var(--ph-b) 14px, var(--ph-b) 28px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.placeholder__label {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: .76rem;
  color: var(--bronze);
  background: var(--bg);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-2);
  text-align: center;
  line-height: 1.5;
  max-width: 80%;
}
.placeholder--4x3 { aspect-ratio: 4 / 3.3; }
.placeholder--portrait { aspect-ratio: 4 / 5; }
.placeholder--square { aspect-ratio: 1; }
.placeholder--pano { aspect-ratio: 21 / 8; min-height: 220px; }
.placeholder__caption {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(251,248,241,.94);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex; flex-direction: column; gap: 2px;
}
.placeholder__caption strong { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; }
.placeholder__caption span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bronze); }

/* 9. SECTIONS ----------------------------------------------------------- */

/* Promesse (callout doré omniprésent) */
.promise {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: #3A2D0C;
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1.5rem, 4vw, 3rem);
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  text-align: center;
}
.promise__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 1rem + 2.4vw, 2.6rem); line-height: 1.1; color: #2E2305; }
.promise__sub { font-weight: 600; font-size: .95rem; color: #4A3A12; max-width: 60ch; text-wrap: pretty; }

/* Mission / fondateur */
.media-text { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 56em) { .media-text { grid-template-columns: 1.05fr .95fr; } .media-text--rev > :first-child { order: 2; } }

.sectors { display: grid; gap: 0; margin-top: .5rem; border-top: 1px solid var(--border); }
.sector { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.sector__num { font-family: var(--font-head); font-style: italic; font-size: 1.05rem; color: var(--gold); flex-shrink: 0; width: 26px; }
.sector__name { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; line-height: 1.1; }
.sector__desc { font-size: .85rem; color: var(--muted-2); }

/* Comparaison (zéro ballotage) */
.compare { display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: stretch; }
.compare__card { border-radius: var(--radius-card); padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 1rem; }
.compare__card--problem { background: var(--card); border: 1px solid var(--border-2); }
.compare__card--solution { background: var(--dark); color: var(--light); }
.compare__card--solution .compare__label { color: var(--gold-bright); }
.compare__label { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 600; color: var(--muted-2); }
.compare__chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { background: var(--ph-a); color: var(--muted); font-size: .8rem; font-weight: 600; padding: 7px 14px; border-radius: var(--radius-pill); }
.compare__one { display: flex; align-items: center; gap: 14px; }
.compare__badge { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; color: var(--gold-bright); flex-shrink: 0; }
.compare__card p { color: var(--muted); font-size: .98rem; line-height: 1.7; text-wrap: pretty; }
.compare__card--solution p { color: rgba(243,237,224,.78); }
.compare__strong { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; line-height: 1.25; }

/* Étapes (process) */
.steps { display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: step; }
.step { display: flex; flex-direction: column; gap: .6rem; }
.step__num { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; color: var(--bronze); }
.step__title { font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; }
.step__text { color: var(--muted); font-size: .96rem; line-height: 1.6; text-wrap: pretty; }

/* Partenaires */
.partners { display: flex; flex-wrap: wrap; gap: clamp(.85rem, 2vw, 1.5rem); justify-content: center; width: 100%; }
.partners__item { flex: 0 1 150px; height: 52px; border: 1px dashed var(--ph-border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-family: monospace; font-size: .7rem; color: var(--muted-3); }

/* CTA sombre final */
.cta { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; max-width: 760px; margin-inline: auto; }

/* Helpers de section */
.chip-sep { color: var(--muted-3); font-weight: 600; }
.promise-band { padding-block: clamp(2.5rem, 5vw, 4rem); }
.partners-note { text-align: center; margin-top: 2rem; margin-inline: auto; max-width: 64ch; color: var(--muted-2); font-size: .95rem; line-height: 1.6; }

/* 10. FORMULAIRES ------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 1.15rem; max-width: 640px; margin-inline: auto; width: 100%; }
.form__row { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }
@media (min-width: 40em) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field__label { font-weight: 600; font-size: .92rem; }
.field__label .req { color: var(--gold); }
.field__hint { font-size: .8rem; color: var(--muted-2); }
.field__control {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--dark);
  transition: border-color .15s, box-shadow .15s;
}
.field__control::placeholder { color: var(--muted-3); }
.field__control:focus-visible { border-color: var(--gold); box-shadow: var(--focus-ring); }
textarea.field__control { min-height: 130px; resize: vertical; }
.field__control[aria-invalid="true"] { border-color: var(--err); }
.field__error { color: var(--err); font-size: .85rem; }

.form__consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.form__consent input { margin-top: .2rem; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--gold); }
.form__consent a { color: var(--bronze); text-decoration: underline; }

.form__honeypot { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form__status { padding: .9rem 1.1rem; border-radius: var(--radius-md); font-size: .96rem; line-height: 1.5; }
.form__status--success { background: #E8F4EC; color: #1E6B38; border: 1px solid #BFE0CB; }
.form__status--error { background: #FBE9E7; color: #8A2018; border: 1px solid #F0C5BE; }

/* 11. FOOTER ------------------------------------------------------------ */
.site-footer { background: var(--dark); color: var(--light); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-footer__grid { display: flex; flex-wrap: wrap; gap: clamp(2rem, 5vw, 5rem); }
.site-footer__brand { flex: 1 1 280px; min-width: 240px; display: flex; flex-direction: column; gap: 14px; }
.site-footer__desc { font-size: .92rem; line-height: 1.7; color: rgba(243,237,224,.7); max-width: 38ch; text-wrap: pretty; }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; }
.site-footer__col h2 { font-family: var(--font-body); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-bright); font-weight: 600; }
.site-footer__col a, .site-footer__col span { color: var(--light); font-size: .95rem; transition: color .15s; }
.site-footer__col a:hover { color: var(--gold-bright); }
.site-footer__muted a { color: rgba(243,237,224,.7); }
.site-footer__bottom { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid rgba(243,237,224,.15); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: .82rem; color: rgba(243,237,224,.55); }
.site-footer__bottom a { color: rgba(243,237,224,.55); }
.site-footer__bottom a:hover { color: var(--gold-bright); }

/* 12. WHATSAPP FLOTTANT ------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-float);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* 13. UTILITAIRES & A11Y ------------------------------------------------ */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.u-center { text-align: center; }
.u-mt-1 { margin-top: 1rem; }
.is-hidden { display: none !important; }

/* Pages légales : confort de lecture */
.prose h1 { font-size: var(--fs-h2); margin-bottom: .5rem; }
.prose h2 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; margin-top: 2.25rem; margin-bottom: .6rem; }
.prose p, .prose li { color: var(--text); line-height: 1.75; text-wrap: pretty; }
.prose p + p { margin-top: 1rem; }
.prose ul { display: flex; flex-direction: column; gap: .5rem; padding-left: 1.1rem; margin-top: .5rem; }
.prose ul li { list-style: disc; }
.prose a { color: var(--bronze); text-decoration: underline; }
.prose .muted-note { font-size: .9rem; color: var(--muted-2); font-style: italic; }
