/* =========================================================
   Dr Audrey Bonnelance — feuille de style
   ========================================================= */

/* --- Polices (copiées dans /assets/fonts par `npm run fonts`) --- */
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/hanken-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* --- Charte de couleur ------------------------------------
   Charte active : « Sauge et encre ».
   Pour changer de charte, remplacer le bloc :root par l'un
   des blocs commentés plus bas.
   ---------------------------------------------------------- */
:root {
  --accent: #1F5C55;        /* boutons, liens, étiquettes */
  --accent-hover: #163F3B;
  --ink: #18232B;           /* titres, sections sombres */
  --ground: #F5F7F6;        /* fond de page */
  --tint: #E3EDEA;          /* section Formation, encadrés */
  --line: #DDE4E2;          /* bordures de cartes */
  --line-strong: #C9D3D0;   /* bordures de champs */
  --line-soft: #EEF2F1;
  --text: #3E4D53;          /* texte courant */
  --muted: #4A5A60;         /* petites étiquettes */
  --text-strong: #23343A;
  --on-dark: #C9D6D3;       /* texte sur fond sombre */
  --on-dark-label: #9FCFC6;
  --on-dark-muted: #9FB1AE;
  --dark-line: #33454D;
}

/* Charte 1 — Bleu clinique
:root { --accent:#2B5A8A; --accent-hover:#1E4269; --ink:#14202E; --ground:#F5F8FB; --tint:#E3ECF5; --line:#DCE3EC; --line-strong:#C7D2DF; --line-soft:#EEF2F7; --text:#3D4B5C; --muted:#4A5868; --text-strong:#22303F; --on-dark:#C8D4E2; --on-dark-label:#A9C7E8; --on-dark-muted:#9DAEC0; --dark-line:#2E3D4F; }
*/
/* Charte 2 — Terracotta douce
:root { --accent:#A14E2C; --accent-hover:#7D3A1F; --ink:#2A1F1A; --ground:#FAF6F2; --tint:#F2E6DC; --line:#EADFD5; --line-strong:#D9C9BB; --line-soft:#F3ECE5; --text:#54453C; --muted:#5F5047; --text-strong:#3A2C24; --on-dark:#E3D6CB; --on-dark-label:#EDB99D; --on-dark-muted:#B9A698; --dark-line:#463830; }
*/
/* Charte 3 — Prune et lin
:root { --accent:#6B3F5E; --accent-hover:#4F2D45; --ink:#241A22; --ground:#F8F6F4; --tint:#EDE5EA; --line:#E3DCE0; --line-strong:#CFC4CB; --line-soft:#F1ECEF; --text:#4B3F48; --muted:#574A53; --text-strong:#33272F; --on-dark:#DDD0D9; --on-dark-label:#D9B4CD; --on-dark-muted:#AE9DA8; --dark-line:#3E2F39; }
*/

/* --- Base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 16px; color: #fff; }
.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; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; }

.eyebrow { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.label { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; letter-spacing: -.02em; }
.lead { font-size: 18px; color: var(--text); }

/* --- En-tête ------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; padding: 0; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__name { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 15px; font-weight: 500; }
.main-nav a { text-decoration: none; color: var(--ink); padding: 12px 0; }
.main-nav a:hover { color: var(--accent); }

/* --- Hero ---------------------------------------------------- */
.hero { padding-top: 72px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero__text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(38px, 6vw, 56px); line-height: 1.08; letter-spacing: -.025em; font-weight: 700; }
.hero__intro { font-size: 20px; color: var(--text); max-width: 600px; }
.hero__media { flex: 1 1 360px; min-width: 0; }
.hero__media img { width: 100%; max-width: 440px; aspect-ratio: 1 / 1; height: auto; object-fit: cover; border-radius: 20px; }

/* --- Consultations ------------------------------------------ */
.consult { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 72px; padding-bottom: 80px; }
.consult .consult__card { border-color: var(--line-strong); }
.consult__grid { display: flex; flex-wrap: wrap; gap: 24px; }
.consult__card { flex: 1 1 420px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.consult__card h3 { font-size: 22px; letter-spacing: -.01em; }
.consult__logo { height: 44px; width: auto; align-self: flex-start; }
.consult__logo-link { align-self: flex-start; display: inline-block; border-radius: 6px; }
.consult__logo-link:hover { opacity: .85; }
.consult__logo--one { height: 60px; }
.info-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.45; color: var(--text-strong); }
.info-list li { display: flex; gap: 14px; align-items: center; }
.info-list__icon { flex: none; width: 40px; height: 40px; border-radius: 999px; background: var(--tint); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.info-list__strong { font-weight: 600; color: var(--ink); text-decoration: none; }
.info-list__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.consult__card--wide { flex: 1 1 100%; }
.consult__cols { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; }
.consult__col { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.consult__col p { font-size: 17px; color: var(--text); }
.info-list__sub { font-size: 14px; color: var(--text); }
.consult__cta { align-self: flex-start; margin-top: 4px; }
.consult__note { font-size: 14px; color: var(--text); margin-top: -6px; }

/* --- Boutons ------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; border: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--small { min-height: 44px; padding: 8px 14px; font-size: 14px; }
.btn--outline-dark { background: transparent; color: var(--on-dark-label); border: 1px solid var(--dark-line); align-self: flex-start; margin-top: 6px; }
.btn--outline-dark:hover { border-color: var(--on-dark-label); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* --- Engagements -------------------------------------------- */
.section { padding-top: 88px; padding-bottom: 88px; }
.section__head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
/* Chaque carte partage les lignes de la grille (subgrid) : logos, étiquette, titre, texte et lien
   s'alignent d'une carte à l'autre. Sans subgrid, la carte reste une grille simple. */
.card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: grid; grid-template-rows: subgrid; grid-row: span 5; align-content: start; gap: 18px; }
.card__media { align-self: end; }
.card__body { display: flex; flex-direction: column; gap: 18px; }
.card h3 { font-size: 26px; line-height: 1.2; }
.card p { font-size: 17px; color: var(--text); }
.card__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.card__logo { height: 40px; width: auto; max-width: 100%; align-self: flex-start; }
.card__logo--tall { height: 64px; }
.card__icon { color: var(--accent); }
.card__link { justify-self: start; align-self: end; text-decoration: none; font-weight: 600; padding: 10px 0; }

/* --- Sections sombres -------------------------------------- */
.dark { background: var(--ink); color: var(--ground); }
.dark .eyebrow { color: var(--on-dark-label); }
.dark .lead, .dark p { color: var(--on-dark); }
.dark a { color: var(--on-dark-label); }
.split { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: flex-start; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split__text { display: flex; flex-direction: column; gap: 20px; }
.split__full { flex: 1 1 100%; }
.about-cols { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: flex-start; }
.about-col { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.about-col h3 { font-size: 24px; }
.timeline { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.timeline li { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--dark-line); }
.timeline li:last-child { border-bottom: none; }
.timeline__date { flex: 0 0 110px; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 14px; color: var(--on-dark-label); padding-top: 2px; }
.timeline__body { flex: 1 1 260px; min-width: 0; font-size: 16px; color: var(--on-dark); display: flex; flex-direction: column; gap: 4px; }
.def-list { margin: 0; padding: 0; list-style: none; }
.def-list li { padding: 18px 0; border-bottom: 1px solid var(--dark-line); display: flex; flex-direction: column; gap: 4px; }
.def-list li:last-child { border-bottom: none; }
.def-list strong { font-size: 17px; }
.def-list span { font-size: 16px; color: var(--on-dark); }

/* --- Formation ---------------------------------------------- */
.training { background: var(--tint); }
.training .lead { color: var(--text-strong); }
.training__grid { display: flex; flex-direction: column; gap: 32px; }
.training__intro { max-width: 760px; }
.training__row { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-start; }
.training__row .panel { flex: 1 1 560px; max-width: 760px; }
.form__more { display: flex; flex-direction: column; gap: 14px; }

/* --- Formulaires -------------------------------------------- */
.panel { flex: 1 1 380px; min-width: 0; background: #fff; color: var(--ink); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.panel h3 { font-size: 21px; }
.panel__intro { font-size: 15px; color: var(--text) !important; }
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field__help { font-size: 13px; font-weight: 400; color: var(--muted); }
.field__label { display: inline; }
.req { color: var(--accent); font-weight: 700; }
.form__note { font-size: 13px; color: var(--muted); margin-top: -6px; }
.field-row { display: flex; flex-wrap: wrap; gap: 12px; }
.field-row > .field { flex: 1 1 160px; }
.input, .select, .textarea {
  min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px;
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: #fff; width: 100%;
}
.textarea { resize: vertical; min-height: 110px; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.choices { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; min-width: 0; }
.choices legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 4px; }
.choice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.choice > label { flex: 1 1 200px; display: flex; gap: 10px; align-items: center; min-height: 40px; font-size: 15px; cursor: pointer; }
.choice > .input, .choice > .select { flex: 1 1 200px; width: auto; min-height: 40px; padding: 8px 12px; font-size: 15px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-strong); }
.check--small { font-size: 13px; color: var(--text); }
.check input, .choice input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.callout { background: var(--tint); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.callout strong { font-size: 15px; }
.callout span { font-size: 14px; color: var(--text-strong); }
.wa-link { display: inline-flex; align-items: center; gap: 5px; vertical-align: -3px; white-space: nowrap; text-decoration: none; }
.wa-link:hover strong { text-decoration: underline; }
.form-error { background: #FDECEA; color: #8A1C12; border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.channels { display: flex; flex-direction: column; }
.channels > div { padding: 16px 0; border-bottom: 1px solid var(--dark-line); display: flex; flex-direction: column; gap: 4px; }
.channels > div:last-child { border-bottom: none; }
.channels strong { font-size: 17px; }
.channels span { font-size: 15px; color: var(--on-dark); }
.small-note { font-size: 14px; color: var(--on-dark-muted) !important; }

/* Variante claire de la section contact (après la section sombre « À propos ») */
.light { background: var(--ground); border-top: 1px solid var(--line); }
.light .channels > div { border-color: var(--line); }
.light .channels span { color: var(--text); }
.light .small-note { color: var(--muted) !important; }
.light .panel { border: 1px solid var(--line); }

/* --- Pied de page ------------------------------------------ */
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 14px; color: var(--muted); }
.site-footer strong { color: var(--ink); font-size: 16px; }
.footer-plain { color: inherit; }
.footer-social { display: inline-flex; align-items: center; gap: 4px; color: inherit; vertical-align: -4px; }
.footer-social:hover { color: var(--accent); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-start; }

/* --- Pages légales ------------------------------------------ */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 88px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { font-size: 17px; color: var(--text); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal .updated { font-size: 14px; color: var(--muted); }

/* --- Menu mobile : bouton hamburger, navigation repliée (si JavaScript) ------ */
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { flex: 1 1 100%; flex-direction: column; gap: 0; padding: 4px 0 8px; border-top: 1px solid var(--line-soft); }
  .main-nav a { padding: 12px 0; font-size: 16px; }
  html.js .main-nav:not(.is-open) { display: none; }
}

@media (max-width: 600px) {
  .hero { padding-top: 40px; padding-bottom: 40px; gap: 32px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .consult { padding-top: 56px; padding-bottom: 56px; }
  .card, .consult__card { padding: 24px; }
  .panel { padding: 22px; }
}
