/* JIK — site vitrine
   Un cahier à petits carreaux : papier clair, encre bleue, marge à gauche.
   Aucun rouge : une erreur est une information, jamais une sanction. */

/* ---------- Polices ---------- */
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

/* ---------- Jetons ---------- */
:root {
  --paper: #F1F2EC;
  --paper-deep: #E6E8DD;
  --surface: #FBFBF7;
  --ink: #141A2E;
  --ink-soft: #4A5168;
  --ink-mute: #6B7186;
  --encre: #2440B3;
  --encre-dark: #1A2F86;
  --encre-tint: #E3E7F7;
  --ochre: #B07A12;
  --ochre-tint: #F5E9C8;
  --line: rgba(20, 26, 46, .12);
  --line-strong: rgba(20, 26, 46, .24);
  --grid: rgba(36, 64, 179, .075);
  --accent: var(--encre);
  --accent-tint: var(--encre-tint);

  /* États de maîtrise */
  --neutre: #9AA0AC;
  --decouvrir: #6F80D6;
  --acquisition: #2D7DB3;
  --fragile: #B7800F;
  --maitrise: #2C8155;
  --expert: #6A3E9E;

  --font-title: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(20, 26, 46, .06), 0 8px 24px rgba(20, 26, 46, .06);
  --shadow-lg: 0 2px 4px rgba(20, 26, 46, .06), 0 24px 60px rgba(20, 26, 46, .14);
  --header-h: 72px;
}

body[data-product="prepa"]  { --accent: #9A5B12; --accent-tint: #F4E4CC; }
body[data-product="code"]   { --accent: #0D7563; --accent-tint: #D6EEE7; }
body[data-product="cibel"]  { --accent: #5E3A9A; --accent-tint: #E8E0F4; }
body[data-product="classe"] { --accent: #1F6E9E; --accent-tint: #DCEBF4; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
::selection { background: var(--encre); color: var(--paper); }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 600; line-height: 1.12; letter-spacing: -.012em; text-wrap: balance; font-variation-settings: "opsz" 72, "SOFT" 30; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.65rem); font-weight: 550; }
h2 { font-size: clamp(1.75rem, 3vw, 2.45rem); font-weight: 550; }
h3 { font-size: 1.22rem; line-height: 1.25; font-variation-settings: "opsz" 24; }
h4 { font-size: 1.12rem; font-variation-settings: "opsz" 24; }
p { text-wrap: pretty; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 28px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: 8px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }
.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; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(20, 26, 46, .05); }
.nav-shell { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 100px; height: 30px; }
.brand-slogan { font-family: var(--font-title); font-style: italic; font-size: .95rem; color: var(--ink-soft); padding-left: 14px; border-left: 1px solid var(--line-strong); white-space: nowrap; }
#nav-principale { margin-left: auto; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-links a { display: block; padding: 8px 11px; border-radius: 8px; text-decoration: none; font-size: .95rem; color: var(--ink-soft); white-space: nowrap; transition: color .15s, background-color .15s; }
.nav-links a:hover { color: var(--ink); background: rgba(20, 26, 46, .05); }
.nav-links a[aria-current="page"] { color: var(--encre); font-weight: 700; background: var(--encre-tint); }
.nav-links .nav-mobile { display: none; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-login { font-size: .95rem; font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; }
.nav-login:hover { color: var(--encre); }
.nav-cta .btn { padding: 10px 16px; font-size: .95rem; }

.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1240px) { .brand-slogan { display: none; } }
@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  #nav-principale {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(20, 26, 46, .1);
    padding: 12px 28px 24px; display: none;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  #nav-principale.is-open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 12px 14px; font-size: 1.05rem; }
  .nav-links .nav-mobile { display: block; }
  .nav-links .nav-mobile:first-of-type { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
  .nav-links .nav-mobile .btn { justify-content: center; color: var(--paper); margin-top: 6px; }
}

/* ---------- Boutons et liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper);
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { background: #262E48; border-color: #262E48; }
.btn:active { transform: translateY(1px); }
.btn-encre { background: var(--encre); border-color: var(--encre); color: #fff; }
.btn-encre:hover { background: var(--encre-dark); border-color: var(--encre-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(20, 26, 46, .05); border-color: var(--ink); }

.link { color: var(--encre); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--encre) 40%, transparent); }
.link:hover { text-decoration-color: currentColor; }
.product-meta .link { text-decoration: none; }
.product-meta .link::after { content: " →"; }

/* ---------- Héros ---------- */
.hero { padding: 72px 0 96px; position: relative; }
.ruled { background-image: none; } /* quadrillage de fond retiré (2026-10-16) */
.hero:not(:has(.hero-grid)) { padding-bottom: 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1, .hero-grid h1 { max-width: 16ch; }
.hero .container > h1 { max-width: 22ch; }
.hero .lead, .hero-grid .lead { margin-top: 22px; }
.crumb { font-size: .9rem; color: var(--ink-mute); margin-bottom: 20px; }
.crumb a { color: inherit; text-underline-offset: 3px; }
.crumb a:hover { color: var(--encre); }
.product-tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent);
  font-size: .85rem; font-weight: 700; letter-spacing: .02em;
}
.product-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lead { font-size: 1.18rem; line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.proof-line { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: .92rem; color: var(--ink-soft); }
.proof-line li { display: inline-flex; align-items: center; gap: 8px; }
.proof-line li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.signature { font-family: var(--font-title); font-style: italic; color: var(--encre); font-variation-settings: "opsz" 24; }
.hero .signature { display: block; margin-top: 22px; font-size: 1.15rem; }
.mark { background: linear-gradient(transparent 58%, rgba(240, 196, 70, .5) 58%, rgba(240, 196, 70, .5) 92%, transparent 92%); padding: 0 2px; color: var(--ink); }

/* ---------- Photos ---------- */
.photo { position: relative; }
.photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--paper-deep); }
.photo-note {
  position: absolute; left: 18px; bottom: 18px; max-width: calc(100% - 36px);
  padding: 10px 14px; border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow); font-size: .9rem; line-height: 1.4; color: var(--ink);
}
.photo-note::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.tight { padding: 40px 0; }
.section-deep { background: var(--paper-deep); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink h1, .section-ink h2, .section-ink h3 { color: var(--paper); }
.section-ink .lead { color: rgba(241, 242, 236, .78); }
.section-ink .note { color: rgba(241, 242, 236, .66); }
.section-ink .crumb a:hover { color: var(--paper); }
.section-ink.ruled { padding: 72px 0 96px; }
.section-ink .feature-list li { color: rgba(241, 242, 236, .86); }
.section-ink .feature-list li::before { background-color: rgba(241, 242, 236, .14); }

.section-head { margin-bottom: 40px; }
.section-head h2 { max-width: 24ch; }
.section-head .lead { margin-top: 16px; }

.margin-grid { display: grid; grid-template-columns: 190px 1fr; gap: 0 56px; }
.marge { position: relative; padding-right: 24px; border-right: 1.5px solid color-mix(in srgb, var(--accent) 32%, transparent); }
.marge span { position: sticky; top: calc(var(--header-h) + 28px); display: block; font-family: var(--font-title); font-style: italic; font-size: 1.05rem; line-height: 1.35; color: var(--accent); font-variation-settings: "opsz" 24; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.grid-2 > div > h2 + .lead, .grid-2 > div > h2 + .feature-list, .grid-2 > div > h2 + .steps { margin-top: 20px; }
.grid-2 > div > .lead + .feature-list { margin-top: 24px; }

/* ---------- Cartes ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card h3::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--accent); margin-bottom: 16px; }
.card p { color: var(--ink-soft); font-size: 1rem; }
.section-deep .card { background: var(--surface); }

/* ---------- Listes ---------- */
.feature-list { list-style: none; display: grid; gap: 12px; }
.feature-list li { position: relative; padding-left: 32px; color: var(--ink-soft); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14.2 7.4' fill='none' stroke='%232440B3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
body[data-product="code"] .feature-list li::before, body[data-product="cibel"] .feature-list li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14.2 7.4' fill='none' stroke='%237FD1B9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
body[data-product="code"] .section:not(.section-ink) .feature-list li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14.2 7.4' fill='none' stroke='%230D7563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
body[data-product="cibel"] .section:not(.section-ink) .feature-list li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14.2 7.4' fill='none' stroke='%235E3A9A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.steps { list-style: none; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: 18px; position: relative; padding-bottom: 26px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1.5px solid var(--accent); color: var(--accent);
  font-family: var(--font-title); font-size: 1.15rem; font-weight: 600; position: relative; z-index: 1;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 46px; bottom: 0; width: 1.5px; background: color-mix(in srgb, var(--accent) 28%, transparent); }
.steps h3 { margin: 9px 0 6px; }
.steps p { color: var(--ink-soft); font-size: 1rem; }

.states { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.states li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; color: var(--ink-soft); }
.states i { width: 10px; height: 10px; border-radius: 50%; }
.st-neutre { background: var(--neutre); }
.st-decouvrir { background: var(--decouvrir); }
.st-acquisition { background: var(--acquisition); }
.st-fragile { background: var(--fragile); }
.st-maitrise { background: var(--maitrise); }
.st-expert { background: var(--expert); }

.product-list { list-style: none; border-top: 1px solid var(--line-strong); }
.product-list li { display: grid; grid-template-columns: 240px 1fr auto; gap: 12px 40px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line-strong); }
.product-list p { color: var(--ink-soft); }
.product-meta { display: flex; align-items: center; justify-content: flex-end; gap: 16px; white-space: nowrap; }
.status, .badge-soon { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; background: var(--ochre-tint); color: #7A5408; font-size: .82rem; font-weight: 700; }
.status::before, .badge-soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ochre); }
.badge-soon { font-size: .9rem; padding: 6px 14px; }
.section-ink .badge-soon { background: rgba(240, 196, 70, .16); color: #F2CF73; }
.section-ink .badge-soon::before { background: #F2CF73; }

/* ---------- Écrans d'aperçu ---------- */
.screen { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; font-size: .92rem; }
.screen-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; background: var(--paper-deep); border-bottom: 1px solid var(--line); color: var(--ink-mute); font-size: .82rem; }
.screen-bar img { width: 60px; height: 18px; }
.screen-body { display: grid; grid-template-columns: 148px 1fr; min-height: 300px; }
.screen-side { display: flex; flex-direction: column; gap: 3px; padding: 16px 12px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 60%, var(--surface)); }
.screen-side b { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); padding: 0 10px 8px; }
.screen-side span { padding: 7px 10px; border-radius: 8px; color: var(--ink-soft); }
.screen-side .active { background: var(--encre-tint); color: var(--encre); font-weight: 700; }
.screen-main { padding: 22px; min-width: 0; }
.screen-main h4 { margin-bottom: 4px; }
.screen-main > p { color: var(--ink-mute); font-size: .86rem; }
.formula { margin: 16px 0; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--paper); font-family: var(--font-mono); font-size: .92rem; color: var(--ink); }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.answers span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-family: var(--font-mono); font-size: .84rem; }
.answers .revise { grid-column: 1 / -1; font-family: var(--font-ui); font-size: .88rem; border-style: dashed; border-color: color-mix(in srgb, var(--encre) 45%, transparent); color: var(--encre); background: var(--encre-tint); }
.mastery { display: grid; gap: 7px; margin-top: 18px; font-size: .84rem; color: var(--ink-soft); }
.mastery-bar { display: block; height: 8px; border-radius: 99px; background: var(--paper-deep); overflow: hidden; }
.mastery-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--acquisition), var(--encre)); }
.graph { margin: 4px 0 6px; border-radius: 10px; border: 1px solid var(--line); background-color: var(--paper); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 16px 16px; padding: 8px; }
.graph svg { width: 100%; height: auto; }
.dashboard { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.dash { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.dash b { font-family: var(--font-title); font-size: 1.45rem; font-weight: 600; line-height: 1.15; }
.dash b.state { font-family: var(--font-ui); font-size: .95rem; font-weight: 700; }
.dash span { font-size: .82rem; color: var(--ink-mute); line-height: 1.35; }
.screen .formula + .formula, .dashboard + .formula { margin-bottom: 0; }

.code-screen { background: #0F1424; border-color: rgba(241, 242, 236, .1); color: #D8DCEA; }
.code-screen .screen-bar { background: #161C31; border-bottom-color: rgba(241, 242, 236, .08); color: #8C93AA; }
.code-screen .screen-side { background: #12182A; border-right-color: rgba(241, 242, 236, .08); }
.code-screen .screen-side b { color: #6F7690; }
.code-screen .screen-side span { color: #A9AFC4; font-family: var(--font-mono); font-size: .82rem; }
.code-screen .screen-side .active { background: rgba(127, 209, 185, .12); color: #7FD1B9; }
.code { padding: 22px; font-family: var(--font-mono); font-size: .86rem; line-height: 1.75; overflow-x: auto; min-width: 0; white-space: nowrap; }
.code .kw { color: #9DB1FF; }
.code .fn { color: #7FD1B9; }
.code .str { color: #F2CF73; }
.code .cm { color: #6F7690; font-style: italic; }

/* ---------- Citations, notes, bandeaux ---------- */
.quote blockquote { font-family: var(--font-title); font-size: clamp(1.4rem, 2.3vw, 1.85rem); line-height: 1.32; font-weight: 450; font-variation-settings: "opsz" 72, "SOFT" 60; padding-left: 26px; border-left: 3px solid var(--accent); text-wrap: pretty; }
.quote blockquote::before { content: "« "; color: var(--accent); }
.quote blockquote::after { content: " »"; color: var(--accent); }
.quote p { margin-top: 16px; padding-left: 29px; font-size: .92rem; color: var(--ink-mute); }
.quote p::before { content: "— "; }
.section-ink .quote p { color: rgba(241, 242, 236, .6); }

.note { font-size: .92rem; color: var(--ink-mute); line-height: 1.5; }
.notice { padding: 18px 22px; border-radius: 12px; background: var(--encre-tint); border-left: 4px solid var(--encre); color: var(--ink); font-size: 1rem; }
.notice .link { margin-left: 4px; }

.cta-band {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  padding: 48px 52px; border-radius: var(--radius-lg);
  background-color: var(--ink); color: var(--paper);
}
.cta-band h2 { color: var(--paper); font-size: clamp(1.55rem, 2.6vw, 2.1rem); max-width: 26ch; }
.cta-band p { margin-top: 10px; color: rgba(241, 242, 236, .76); max-width: 60ch; }
.cta-band .actions { margin-top: 0; justify-content: flex-end; }
.cta-band .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta-band .btn:hover { background: #fff; border-color: #fff; }
.cta-band .btn-ghost { background: transparent; color: var(--paper); border-color: rgba(241, 242, 236, .35); }
.cta-band .btn-ghost:hover { background: rgba(241, 242, 236, .08); border-color: var(--paper); }

.photo-band { display: grid; grid-template-columns: 1.1fr 1fr; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.photo-band img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.photo-band-copy { padding: 52px; display: flex; flex-direction: column; justify-content: center; }
.photo-band-copy p { margin-top: 16px; color: var(--ink-soft); }

/* ---------- Tarifs ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.price-grid-4 { grid-template-columns: repeat(2, 1fr); }
.price-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px 28px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.price-card .who { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.price-card h3 { font-size: 1.45rem; }
.price { font-family: var(--font-title); font-size: 2.3rem; font-weight: 600; line-height: 1.05; letter-spacing: -.02em; font-variation-settings: "opsz" 72; }
.price small { font-family: var(--font-ui); font-size: .95rem; font-weight: 400; letter-spacing: 0; color: var(--ink-mute); }
.price-card .alt { margin-top: -6px; font-size: .92rem; color: var(--ink-mute); }
.price-card > p:not(.alt):not(.small) { color: var(--ink-soft); font-size: 1rem; }
.price-card .feature-list { gap: 9px; font-size: .97rem; padding: 14px 0 6px; border-top: 1px dashed var(--line-strong); margin-top: 4px; }
.price-card .btn { margin-top: auto; align-self: flex-start; }
.price-card .feature-list + .btn { margin-top: auto; }
.price-card .small { font-size: .86rem; color: var(--ink-mute); line-height: 1.45; }
.price-card.featured { border: 2px solid var(--encre); box-shadow: 0 18px 40px rgba(36, 64, 179, .12); }
.price-card.featured::before { content: "Le plus choisi"; position: absolute; top: -13px; left: 26px; padding: 3px 11px; border-radius: 999px; background: var(--encre); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
#etablissements .price-card.featured::before, #concours .price-card.featured::before { content: "Recommandé"; }

.comparison { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: .98rem; }
.comparison th, .comparison td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.comparison thead th { background: color-mix(in srgb, var(--paper) 70%, var(--surface)); font-family: var(--font-title); font-weight: 600; font-size: 1rem; }
.comparison tbody tr:last-child td { border-bottom: 0; }
.comparison td:first-child { font-weight: 700; white-space: nowrap; }
.comparison td:last-child { color: var(--ink-soft); }
.section-head + .comparison, .comparison + .actions { margin-top: 0; }
.comparison + .actions { margin-top: 22px; }

.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-family: var(--font-title); font-size: 1.15rem; font-weight: 550; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M14 9v10M9 14h10' stroke='%23141A2E' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--encre); }
.faq details p { padding: 0 48px 22px 0; color: var(--ink-soft); max-width: 72ch; }

/* ---------- Texte long ---------- */
.prose { max-width: 74ch; }
.container.prose { max-width: 1200px; }
.container.prose > * { max-width: 74ch; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 52px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 30px 0 10px; }
.prose p, .prose ul { margin-bottom: 14px; color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 22px; display: grid; gap: 8px; }
.prose li::marker { color: var(--accent); }
.prose .note { margin-top: 40px; padding: 14px 18px; border-radius: 10px; background: var(--ochre-tint); color: #5E420A; }
.toc { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.toc a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); text-decoration: none; font-size: .95rem; font-weight: 700; }
.toc a:hover { border-color: var(--encre); color: var(--encre); }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 18px; padding: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 7px; font-weight: 700; font-size: .95rem; }
.form input:not([type="checkbox"]), .form select, .form textarea, .form-inline input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 10px;
  background: #fff; font-weight: 400; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.form select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%234A5168' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center / 12px no-repeat; }
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus, .form-inline input:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 4px rgba(36, 64, 179, .15); }
.form .consent { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; font-size: .92rem; color: var(--ink-soft); line-height: 1.45; }
.form .consent input { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--encre); }
.form .consent a { color: var(--encre); }
.form [aria-invalid="true"] { border-color: var(--ochre) !important; box-shadow: 0 0 0 4px rgba(176, 122, 18, .15) !important; }
.form-inline { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; max-width: 560px; }
.form-inline input { flex: 1 1 240px; width: auto; }
.section-ink .form-inline input { background: rgba(241, 242, 236, .08); border-color: rgba(241, 242, 236, .24); color: var(--paper); }
.section-ink .form-inline input::placeholder { color: rgba(241, 242, 236, .5); }
.form-feedback { padding: 14px 18px; border-radius: 12px; font-size: .95rem; line-height: 1.5; background: var(--encre-tint); border-left: 4px solid var(--encre); color: var(--ink); }
.form-feedback.is-warning { background: var(--ochre-tint); border-left-color: var(--ochre); }
.form-inline + .form-feedback, .form-inline .form-feedback { flex-basis: 100%; }
.section-ink .form-feedback { background: rgba(241, 242, 236, .1); color: var(--paper); border-left-color: #7FD1B9; }

/* ---------- Pages de l'application (connexion, candidature, mot de passe…) ----------
   Ces écrans gardent leur balisage d'origine ; ils prennent ici l'habillage JIK. */
.auth { padding-bottom: 96px; }
.hero.auth { -webkit-mask-image: none; mask-image: none; }
.auth-card { max-width: 520px; margin-inline: auto; }
.auth-card h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.auth-card .lead { margin: 12px 0 26px; }
.auth-card .form { gap: 16px; }
.auth-alt { margin-top: 20px; text-align: center; }

.page-hero { position: relative; padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero .deco { display: none; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); max-width: 22ch; }
.page-hero p { margin-top: 14px; font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.page-hero .crumbs { font-size: .9rem; color: var(--ink-mute); margin-bottom: 16px; }
.page-hero + .section { padding-top: 56px; }
.eyebrow { display: inline-block; margin-bottom: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.text-center { text-align: center; }
.mt-lg { margin-top: 24px; }
.reveal { opacity: 1; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 760px) { .g2, .split { grid-template-columns: 1fr; } }
.list { padding-left: 20px; display: grid; gap: 8px; color: var(--ink-soft); }
.card h3 + p, .card p + p { margin-top: 10px; }
.card .list { margin-top: 12px; }
.card-form { padding: 32px; }
.btn-primary { background: var(--encre); border-color: var(--encre); color: #fff; }
.btn-primary:hover { background: var(--encre-dark); border-color: var(--encre-dark); }
.notice + .card, .notice + .form, .notice + .notice { margin-top: 16px; }
.notice-alerte { background: var(--ochre-tint); border-left-color: var(--ochre); }
.notice-alerte .list { color: var(--ink); }
.form-note { padding: 14px 18px; border-radius: 12px; font-size: .95rem; background: var(--encre-tint); border-left: 4px solid var(--encre); margin-bottom: 16px; }
.form-note-error { background: var(--ochre-tint); border-left-color: var(--ochre); }
.form-note ul { padding-left: 20px; margin-top: 6px; }
.form-feedback ul { padding-left: 20px; margin-top: 6px; }
.form .field { display: grid; gap: 7px; }
.form .field > label, .form legend { font-weight: 700; font-size: .95rem; }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.field .opt { font-weight: 400; color: var(--ink-mute); }
.form .field input:not([type="checkbox"]):not([type="radio"]), .form .field textarea, .form .field select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: #fff; font-size: 1rem; }
.form .field input:focus, .form .field textarea:focus, .form .field select:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 4px rgba(36, 64, 179, .15); }
.form .field textarea { min-height: 140px; resize: vertical; }
.avis-essai .avis-aide { font-size: .9rem; color: var(--ink-mute); }
.avis-essai .avis-options, .avis-essai .avis-note { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.avis-essai label.avis-choix { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: #fff; font-weight: 400; font-size: .95rem; cursor: pointer; }
.avis-essai label.avis-choix input { width: 16px; height: 16px; accent-color: var(--encre); }
.avis-essai label.avis-choix:has(input:checked) { border-color: var(--encre); background: var(--encre-tint); }
.avis-essai label.avis-choix-note { min-width: 48px; justify-content: center; }
.avis-essai .avis-rappel { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.avis-essai .avis-rappel-detail { margin-top: 14px; display: grid; gap: 7px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--paper-deep); border-top: 1px solid var(--line); padding: 64px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-copy { margin-top: 16px; color: var(--ink-soft); max-width: 38ch; line-height: 1.55; }
.footer-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-col strong { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); margin-bottom: 4px; }
.footer-col a { color: var(--ink-soft); text-decoration: none; }
.footer-col a:hover { color: var(--encre); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-strong); font-size: .88rem; color: var(--ink-mute); }
.footer-bottom .signature { font-size: .98rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .margin-grid { grid-template-columns: 1fr; gap: 0; }
  .marge { border-right: 0; padding: 0 0 14px; margin-bottom: 26px; border-bottom: 1.5px solid color-mix(in srgb, var(--accent) 32%, transparent); max-width: 220px; }
  .marge span { position: static; }
}
@media (max-width: 960px) {
  .hero { padding: 48px 0 72px; }
  .hero-grid, .grid-2 { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { max-width: 20ch; }
  .section { padding: 72px 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .product-list li { grid-template-columns: 1fr; gap: 8px; }
  .product-meta { justify-content: flex-start; margin-top: 6px; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 32px; }
  .cta-band .actions { justify-content: flex-start; }
  .photo-band { grid-template-columns: 1fr; }
  .photo-band img { min-height: 0; aspect-ratio: 3 / 2; }
  .photo-band-copy { padding: 36px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  body { font-size: 1rem; }
  .container { padding-inline: 18px; }
  #nav-principale { padding-inline: 18px; }
  .section { padding: 60px 0; }
  .grid-3, .price-grid-4, .form .row { grid-template-columns: 1fr; }
  .screen-body { grid-template-columns: 1fr; min-height: 0; }
  .screen-side { display: none; }
  .answers, .dashboard { grid-template-columns: 1fr; }
  .form { padding: 24px 20px; }
  .actions .btn, .form-inline .btn { flex: 1 1 auto; }
  .comparison { display: block; overflow-x: auto; }
  .comparison td:first-child { white-space: normal; min-width: 120px; }
  .faq details p { padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .photo-note { position: static; margin-top: 12px; max-width: none; box-shadow: none; background: transparent; padding: 0; color: var(--ink-soft); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .cta-band, .skip-link { display: none; }
  body { background: #fff; }
  .ruled { background: none; }
}
