/* Site Exaudis — reprise de la charte des supports Exaudis (deck « Projet IA », nov. 2026) :
   police Quicksand, bleu Exaudis, vert, bleu ciel, jaune d'accent ; cartes gris-bleu à liseré coloré,
   bandeaux bleus à mot surligné en jaune, anneaux décoratifs sur les fonds bleus. */
@font-face { font-family: "Quicksand"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url("fonts/quicksand-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Quicksand"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url("fonts/quicksand-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* marque — identiques dans les deux thèmes */
  --brand: #164494;
  --brand-deep: #0f2f6e;
  --band-ink: #ffffff;
  --sky: #8dcdf5;
  --sun: #f6b53d;
  --leaf: #00a47a;
  --berry: #d64541;
  /* surfaces et textes */
  --bg: #ffffff;
  --card: #f2f5fa;
  --line: #dde4ef;
  --ink: #1b2740;
  --muted: #5b6780;
  --title: #164494;
  --eyebrow: #00845f;
  --link: #164494;
  --font: "Quicksand", "Aptos", "Segoe UI", system-ui, sans-serif;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.6rem, 3vw, 2.15rem);
  --step-3: clamp(2.1rem, 5vw, 3.6rem);
  --r: 14px;
  --maxw: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1730; --card: #13244a; --line: #24396a; --ink: #e8eef8; --muted: #a9b8d4;
    --title: #c5dcfa; --eyebrow: #4fd3a8; --link: #9fd2f7; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1730; --card: #13244a; --line: #24396a; --ink: #e8eef8; --muted: #a9b8d4;
  --title: #c5dcfa; --eyebrow: #4fd3a8; --link: #9fd2f7; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-0); line-height: 1.6; font-weight: 450; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; font-weight: 700; letter-spacing: -0.005em; }
strong { font-weight: 700; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--bg); padding: 8px 12px; z-index: 20; }
.select { user-select: all; }
[hidden] { display: none !important; }

/* sur-titre vert espacé */
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.85rem; color: var(--eyebrow); margin: 0 0 14px; font-weight: 700; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.on-brand .eyebrow { color: var(--sky); }
mark { background: none; color: var(--sun); }

/* barre espaces clients */
.topbar { background: var(--brand-deep); color: #c9daf3; font-size: 0.88rem; }
.topbar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-block: 7px; }
.topbar-label { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; font-weight: 700; color: var(--sky); }
.clients { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.clients a { color: #ffffff; text-decoration: none; font-weight: 600; }
.clients a:hover { text-decoration: underline; }
.topbar-tel { margin-left: auto; color: #ffffff; font-weight: 600; font-variant-numeric: tabular-nums; }

/* en-tête */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.header-in { display: flex; align-items: center; gap: 24px; padding-block: 12px; flex-wrap: wrap; }
.logo { display: block; line-height: 0; }
.logo img { height: 40px; width: auto; }
.logo .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo .logo-light { display: none; } :root:not([data-theme="light"]) .logo .logo-dark { display: block; } }
:root[data-theme="dark"] .logo .logo-light { display: none; }
:root[data-theme="dark"] .logo .logo-dark { display: block; }
.site-header nav { margin-left: auto; }
.menu { display: flex; flex-wrap: wrap; gap: 4px 24px; list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; color: var(--ink); font-weight: 600; padding-block: 6px; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--title); border-bottom-color: var(--leaf); }
.menu-btn { display: none; margin-left: auto; font: inherit; font-weight: 700; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 6px 16px; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .site-header nav { width: 100%; margin-left: 0; }
  .menu { display: none; flex-direction: column; gap: 0; }
  .menu.open { display: flex; }
  .menu a { display: block; padding-block: 11px; border-bottom: 1px solid var(--line); }
}

/* boutons */
.btn { display: inline-block; font: inherit; font-weight: 700; text-decoration: none; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; background: var(--brand); color: #ffffff; }
.btn:hover { background: var(--leaf); color: #ffffff; }
.btn-leaf { background: var(--leaf); }
.btn-leaf:hover { background: #ffffff; color: var(--brand); }
.btn-line { background: transparent; border-color: rgba(255,255,255,.6); color: #ffffff; }
.btn-line:hover { background: #ffffff; color: var(--brand); }
.more { font-weight: 700; text-decoration: none; color: var(--eyebrow); }
.more::after { content: " →"; }

/* fonds bleus avec anneaux */
.on-brand { background: var(--brand); color: var(--band-ink); position: relative; overflow: hidden; isolation: isolate; }
.rings { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.rings i { position: absolute; border-radius: 50%; border: 3px solid; }
.rings .r1 { width: 300px; height: 300px; right: -80px; top: -140px; border-color: var(--sky); }
.rings .r2 { width: 380px; height: 380px; right: -170px; bottom: -150px; border-color: var(--leaf); }
.rings .r3 { width: 190px; height: 190px; right: 120px; bottom: -110px; border-color: var(--sun); }
@media (max-width: 760px) { .rings .r1 { width: 180px; height: 180px; right: -70px; top: -80px; } .rings .r2, .rings .r3 { display: none; } }

/* accueil */
.hero-in { padding-block: 72px 64px; display: grid; gap: 28px; }
.hero h1 { font-size: var(--step-3); max-width: 15ch; }
.hero-sub { border-left: 3px solid var(--sky); padding-left: 18px; color: var(--sky); font-size: var(--step-1); font-weight: 600; max-width: 46ch; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 0; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 10px 0 0; padding: 0; }
.hero-facts div { display: flex; align-items: baseline; gap: 8px; }
.hero-facts dt { order: 2; color: #c9daf3; font-size: 0.95rem; }
.hero-facts dd { margin: 0; font-size: 1.6rem; font-weight: 700; color: var(--sun); font-variant-numeric: tabular-nums; }
.seasons { position: relative; margin-top: 8px; }
.seasons { margin: 8px 0 0; }
.seasons img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 18px 40px rgba(5, 20, 55, .35); }
.seasons figcaption { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; color: #ffffff; letter-spacing: 0.14em; font-weight: 600; font-size: clamp(0.85rem, 1.8vw, 1.25rem); text-shadow: 0 1px 8px rgba(0,0,0,.35); padding-inline: 16px; }

.section { padding-block: 72px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 32px; }
.section-title { font-size: var(--step-2); color: var(--title); max-width: 28ch; }
.section-alt { background: var(--card); }

/* cartes à liseré (repris du deck) */
.cards, .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.tile, .card { background: var(--card); border-radius: var(--r); border-top: 6px solid var(--brand); padding: 26px 28px 24px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.section-alt .tile, .section-alt .card { background: var(--bg); }
.tile .kicker, .card .kicker { color: var(--eyebrow); font-weight: 700; font-size: 0.95rem; margin: 0; }
.tile h3, .card h3 { color: var(--title); font-size: var(--step-1); }
.tile p, .card p { margin: 0; }
.tile { text-decoration: none; color: var(--ink); transition: transform .15s ease; }
.tile:hover { transform: translateY(-2px); }
.tile:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.c-leaf { border-top-color: var(--leaf); }
.c-sun { border-top-color: var(--sun); }
.c-sky { border-top-color: var(--sky); }
.c-brand { border-top-color: var(--brand); }
.c-berry { border-top-color: var(--berry); }

.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card:hover h3 a { text-decoration: underline; text-underline-offset: 4px; }
.card .summary { color: var(--muted); }
.card-ref { font-size: 0.85rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px !important; }
.card-date { margin-top: auto !important; padding-top: 6px; font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* bandeau bleu à mot surligné */
.callout { display: flex; gap: 18px; align-items: center; background: var(--brand); color: #ffffff; border-radius: var(--r); padding: 22px 28px; font-size: 1.12rem; margin: 32px 0 0; }
.callout svg { flex: none; width: 28px; height: 28px; stroke: var(--sky); }
.callout p { margin: 0; max-width: none; }
.callout a { color: var(--sun); }

/* liste numérotée 01 / 02 / 03 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--card); border-radius: var(--r); padding: 18px 24px 18px 84px; position: relative; max-width: none; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 24px; top: 50%; transform: translateY(-50%); color: var(--leaf); font-weight: 700; font-size: 1.7rem; }

/* encadré bleu « le constat » + piliers */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: stretch; }
.panel { background: var(--brand); color: #ffffff; border-radius: var(--r); padding: 30px 32px; }
.panel h2 { font-size: var(--step-2); margin-bottom: 14px; color: #ffffff; }
.panel p { color: #dbe6f7; margin: 0 0 18px; }
.panel .more { color: var(--sun); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* pages intérieures */
.page-head .wrap { padding-block: 56px 48px; }
.page-head h1 { font-size: var(--step-3); max-width: 20ch; }
.page-head .lead { border-left: 3px solid var(--sky); padding-left: 18px; color: var(--sky); font-size: var(--step-1); font-weight: 600; max-width: 56ch; margin: 22px 0 0; }
.fiche-date { margin: 18px 0 0; font-size: 0.95rem; color: var(--sun); font-weight: 700; }
.prose-wrap { padding-block: 48px 80px; }
.prose { max-width: 76ch; }
.prose h2 { font-size: var(--step-2); color: var(--title); margin: 52px 0 16px; scroll-margin-top: 110px; }
.prose > h2:first-child, .prose > .draft + h2 { margin-top: 0; }
.prose h2::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--leaf); margin-bottom: 14px; }
.prose p, .prose li { max-width: 70ch; }
.prose ol:not(.steps), .prose ul { padding-left: 1.3em; }
.prose li::marker { color: var(--leaf); font-weight: 700; }
.prose table { border-collapse: collapse; width: 100%; margin: 20px 0; font-variant-numeric: tabular-nums; display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }
.prose th { background: var(--brand); color: #ffffff; text-align: left; padding: 11px 14px; font-weight: 700; }
.prose td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.prose td + td, .prose th + th { border-left: 1px solid var(--line); }
.prose td:first-child { color: var(--title); font-weight: 600; }
.prose tr:nth-child(even) td { background: var(--card); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.toc a { font-weight: 600; font-size: 0.95rem; text-decoration: none; padding: 7px 14px; border-radius: 999px; background: var(--card); color: var(--title); }
.toc a:hover { background: var(--leaf); color: #ffffff; }
.draft { background: #fff3d6; color: #6b4a00; border-radius: var(--r); padding: 12px 18px; margin: 0 0 28px; max-width: 76ch; font-weight: 600; }
.placeholder { border: 2px solid var(--leaf); border-radius: var(--r); padding: 16px 20px; }
.placeholder p { margin: 0; }
.cta-line { margin-top: 40px; }
.fiche-ref { font-size: 0.92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 36px; }
.disclaimer { display: block; margin-top: 18px; font-size: 0.95rem; color: var(--ink); background: var(--card); padding: 16px 20px; border-radius: var(--r); }
.video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; margin: 0 0 28px; background: var(--brand-deep); border-radius: var(--r); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-link, .pdf-link { margin: 0 0 28px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* filtres ressources */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 28px; }
.chip { font: inherit; font-weight: 600; font-size: 0.95rem; border: 0; background: var(--card); color: var(--title); border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--brand); color: #ffffff; }
.sep { width: 1px; height: 24px; background: var(--line); margin-inline: 6px; }
.empty { color: var(--muted); }

/* simulateur */
.sim { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; background: var(--card); border-top: 6px solid var(--leaf); border-radius: var(--r); padding: 26px; margin: 0 0 40px; }
.sim-inputs { display: grid; gap: 16px; }
.sim-results { background: var(--brand); color: #ffffff; border-radius: var(--r); padding: 22px 24px; min-width: 0; }
.sim-example { margin: 0 0 12px; font-size: 0.85rem; color: var(--sky); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }
.sim-results dl { margin: 0; display: grid; gap: 12px; }
.sim-results dt { font-size: 0.9rem; color: #c9daf3; }
.sim-results dd { margin: 0; font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sim-key dd { font-size: 2.1rem; color: var(--sun); }
.sim-bar { position: relative; height: 10px; background: rgba(255,255,255,.2); border-radius: 5px; margin: 18px 0 8px; }
.sim-bar span { position: absolute; inset: 0 auto 0 0; background: var(--sky); border-radius: 5px; }
.sim-bar i { position: absolute; top: -6px; width: 4px; height: 22px; background: var(--sun); border-radius: 2px; transform: translateX(-2px); }
.sim-msg { margin: 6px 0 0; font-size: 0.98rem; color: #ffffff; }
@media (max-width: 760px) { .sim { grid-template-columns: 1fr; padding: 18px; } }

/* formulaires */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; max-width: 780px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field small { display: block; font-weight: 500; color: var(--muted); }
.field input, .field textarea { font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); width: 100%; }
.sim .field input { background: var(--bg); }
.field input:focus, .field textarea:focus { border-color: var(--leaf); outline: 2px solid rgba(0,164,122,.2); }
.field-wide { grid-column: 1 / -1; }
.check { flex-direction: row; align-items: flex-start; gap: 10px; }
.check input { width: auto; margin-top: 6px; }
.check label { font-weight: 500; }
.form-note { color: var(--eyebrow); margin-left: 10px; font-weight: 600; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; margin-bottom: 16px; }
.contact-card { background: var(--card); border-top: 6px solid var(--leaf); border-radius: var(--r); padding: 24px 26px; }
.contact-card + .contact-card { border-top-color: var(--brand); }
.contact-card h2 { font-size: var(--step-1); color: var(--title); margin: 0 0 10px; }
.contact-card h2::before { display: none; }
.big { font-size: 1.6rem; font-weight: 700; color: var(--title); font-variant-numeric: tabular-nums; }

/* pied de page */
.site-footer { background: var(--brand); color: #c9daf3; padding-block: 52px 22px; font-size: 0.95rem; position: relative; overflow: hidden; isolation: isolate; }
.site-footer a { color: #ffffff; }
.footer-in { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.footer-logo { height: 92px; width: auto; margin-bottom: 14px; }
.footer-title { color: var(--sky); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.75rem; font-weight: 700; margin: 0 0 12px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.2); margin-top: 32px; padding-top: 16px; font-size: 0.82rem; color: #a9bfe3; }
.site-footer .rings .r1 { top: auto; bottom: -200px; right: -60px; border-color: rgba(141,205,245,.5); }
.site-footer .rings .r2, .site-footer .rings .r3 { display: none; }
@media (max-width: 760px) { .footer-in { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tile { transition: none; } }

/* espacement sous l'en-tête bleu des pages de liste */
.page-head + .wrap:not(.prose-wrap) { padding-block: 44px 72px; }
