/* ==========================================================================
   STAGELINK : feuille de style
   ========================================================================== */
@font-face { font-family: "Outfit"; src: url("../fonts/Outfit.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/Figtree.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --blue: #1F4BFF; --blue-deep: #1639C9; --coral: #FF6B4A; --navy: #0A1640;
  --bg: #FFFFFF; --bg-soft: #F6F8FD; --tint: #EEF2FF;
  --ink: #0A1640; --muted: #4A5578; --line: #DDE3F3;
  --green: #0B6B3A; --green-bg: #DFF6E9; --red: #A3231A; --red-bg: #FDE4E1; --coral-bg: #FFE6DF; --coral-ink: #A23A1F;
  --font-display: "Outfit", "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 20px;
  color-scheme: light;
}
:root.contrast { --muted: #0A1640; --line: #0A1640; --bg-soft: #FFFFFF; --tint: #FFFFFF; --coral-ink: #0A1640; --green: #064d29; }
:root.big { font-size: 118%; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3, .h3 { font-size: 1.25rem; font-family: var(--font-display); font-weight: 700; margin: 0 0 .6em; letter-spacing: -0.01em; }
.h4, h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.mt { margin-top: 2rem; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: .75rem 1rem; z-index: 200; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }
.link { font-weight: 600; color: var(--blue-deep); text-decoration: none; }
.link:hover { text-decoration: underline; }
.inline-form { display: inline; margin: 0; }
code { background: var(--tint); padding: .1em .4em; border-radius: 6px; font-size: .9em; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 1rem/1 var(--font-display); padding: 1rem 1.5rem; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; background: none; color: inherit; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-danger { border-color: var(--red); color: var(--red); background: #fff; }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm { padding: .65rem 1.1rem; font-size: .93rem; }
.btn.block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; align-items: center; }
.btn-row.tight { margin-top: 0; }

/* Barre utilitaire + en-tête */
.utility { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: .9rem; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.utility nav, .utility .right { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.utility a, .utility button { color: var(--muted); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: .25rem 0; }
.utility a:hover, .utility button:hover { color: var(--ink); text-decoration: underline; }
.a11y-wrap { position: relative; }
.a11y-panel { display: none; position: absolute; right: 0; top: 100%; z-index: 70; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.25rem; box-shadow: 0 16px 36px -18px rgba(10,22,64,.35); min-width: 240px; }
.a11y-panel.open { display: block; }
.a11y-panel label { display: flex; gap: .6rem; align-items: center; padding: .4rem 0; cursor: pointer; color: var(--ink); }

header.site { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 78px; }
.brand img { height: 36px; width: auto; }
nav.main { display: flex; gap: .15rem; }
.dd { position: relative; }
.dd > button { font: 600 1rem var(--font-display); color: var(--ink); background: none; border: 0; padding: .8rem .9rem; border-radius: 999px; cursor: pointer; display: flex; align-items: center; gap: .4rem; }
.dd > button::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.dd > button:hover, .dd.open > button { background: var(--tint); }
.dd ul { display: none; position: absolute; left: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: .5rem; min-width: 250px; box-shadow: 0 18px 40px -20px rgba(10,22,64,.4); z-index: 60; }
.dd.open ul { display: block; }
.dd ul a { display: block; padding: .65rem .9rem; border-radius: 12px; text-decoration: none; font-weight: 500; }
.dd ul a:hover { background: var(--tint); }
.bar-actions { display: flex; gap: .6rem; align-items: center; }
.menu-btn { display: none; background: #fff; border: 2px solid var(--line); color: var(--ink); border-radius: 12px; width: 46px; height: 46px; cursor: pointer; place-items: center; }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: .5rem 0 1.5rem; max-height: calc(100vh - 120px); overflow-y: auto; }
.mobile-nav.open { display: block; }
.mobile-nav h3 { font-size: .9rem; color: var(--muted); font-weight: 600; margin: 1.1rem 0 .2rem; letter-spacing: 0; }
.mobile-nav a { display: block; padding: .7rem 0; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 1rem; width: 100%; border-bottom: 2px solid transparent; }
.mobile-nav .inline-form { display: block; }
.mobile-nav .inline-form .btn { width: 100%; }

/* Messages flash */
.flashes { padding-top: 1.25rem; display: grid; gap: .6rem; }
.flash { padding: .9rem 1.1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--tint); font-weight: 500; margin-bottom: 1rem; }
.flashes .flash { margin-bottom: 0; }
.flash-success { background: var(--green-bg); border-color: #b9e6cb; color: #08502b; }
.flash-error { background: var(--red-bg); border-color: #f5b9b3; color: var(--red); }
.flash-warning { background: var(--coral-bg); border-color: #ffc9ba; color: #7a2b15; }
.flash-info { background: var(--tint); border-color: var(--line); }

/* Accueil : hero */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.tight { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 4.5rem); }
.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.lead { margin-top: 1.25rem; font-size: 1.2rem; color: var(--muted); max-width: 35rem; }
.lead-sm { color: var(--muted); font-size: 1.1rem; max-width: 42rem; }
.search { margin-top: 2rem; background: #fff; border: 2px solid var(--ink); border-radius: 24px; padding: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.search .wide { grid-column: 1 / -1; }
.panel { position: relative; background: var(--tint); border: 1px solid var(--line); border-radius: 32px; padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 1rem; overflow: hidden; isolation: isolate; }
.panel .hook { position: absolute; right: -36px; top: -28px; width: 170px; height: 240px; z-index: -1; color: var(--coral); }
.example-tag { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: .85rem; font-weight: 600; padding: .3rem .8rem; border-radius: 999px; }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.2rem 1.3rem; box-shadow: 0 14px 32px -22px rgba(10,22,64,.45); }
.mock-offer { margin-right: 2rem; } .mock-track { margin-left: 2rem; }
.badge-ok { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 600; color: var(--green); background: var(--green-bg); padding: .25rem .6rem; border-radius: 999px; }
.badge-ok svg { width: 14px; height: 14px; }
.mock h3 { margin-top: .7rem; }
.where { color: var(--muted); font-size: .95rem; margin: 0; }
.where.big { font-size: 1.1rem; margin-bottom: 1.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .85rem; }
.chip { display: inline-block; font-size: .85rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; background: #E8EDFF; color: var(--blue-deep); }
.chip-pfmp { background: var(--coral-bg); color: var(--coral-ink); }
.chip-alternance { background: var(--green-bg); color: var(--green); }
.chip-apprentissage { background: #EDE7FF; color: #4B2BB0; }
.mock .row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.fake-btn { background: var(--blue); color: #fff; font: 600 .95rem var(--font-display); padding: .6rem 1.2rem; border-radius: 999px; }
.mock-track h4 { font: 700 1.05rem var(--font-display); margin-bottom: 1rem; }
.steps-line { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.steps-line::before, .steps-line::after { content: ""; position: absolute; top: 13px; left: 16.6%; right: 16.6%; height: 4px; border-radius: 4px; }
.steps-line::before { background: #DDE4FA; } .steps-line::after { background: var(--coral); transform-origin: left; }
.step-dot { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; }
.step-dot i { width: 30px; height: 30px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; }
.step-dot i svg { width: 16px; height: 16px; color: #fff; }
.reply { margin: 1rem 0 0; font-size: .95rem; background: var(--bg-soft); border-radius: 12px; padding: .7rem .9rem; }
@media (prefers-reduced-motion: no-preference) {
  .steps-line::after { transform: scaleX(0); animation: grow 2.4s .6s cubic-bezier(.5,0,.2,1) forwards; }
  .step-dot i { background: #DDE4FA; animation: dotOn .01s var(--d) forwards; }
  .step-dot i svg { opacity: 0; animation: fadeIn .3s var(--d) forwards; }
  .step-dot:nth-child(1) { --d: .4s; } .step-dot:nth-child(2) { --d: 1.8s; } .step-dot:nth-child(3) { --d: 3s; }
  .reply { opacity: 0; animation: fadeIn .4s 3.2s forwards; }
}
@keyframes grow { to { transform: scaleX(1); } } @keyframes dotOn { to { background: var(--coral); } } @keyframes fadeIn { to { opacity: 1; } }

.quick { padding: 0 0 clamp(2.5rem, 6vw, 4rem); }
.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: .8rem; text-align: center; text-decoration: none; padding: 1.4rem .75rem; border: 1px solid var(--line); border-radius: 20px; font: 600 1rem var(--font-display); background: #fff; transition: border-color .15s, background-color .15s; height: 100%; }
.quick a:hover { border-color: var(--blue); background: var(--tint); }
.quick .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--tint); color: var(--blue); display: grid; place-items: center; }
.quick li:nth-child(even) .ic { background: var(--coral-bg); color: var(--coral-ink); }
.quick .ic svg { width: 26px; height: 26px; }

.section-head { max-width: 42rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.center-head { margin-inline: auto; text-align: center; margin-bottom: 2rem; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.head-row h1, .head-row h2, .head-row h3 { margin: 0; }
.page-head { padding: clamp(2rem, 5vw, 3.5rem) 0 1rem; }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.dispo-list { border-top: 2px solid var(--ink); }
.dispo { display: grid; grid-template-columns: 11rem 1fr auto; gap: 1.25rem; align-items: baseline; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.dispo h3 { font-size: 1.45rem; margin: 0; }
.dispo .who { font-weight: 600; font-size: .9rem; color: var(--muted); display: block; margin-top: .25rem; }
.dispo p { color: var(--muted); margin: 0; }
.dispo a { white-space: nowrap; }

.tabs { display: inline-flex; background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: .3rem; margin-top: 2rem; }
.tab { font: 600 1rem var(--font-display); border: 0; background: transparent; color: var(--muted); padding: .7rem 1.4rem; border-radius: 999px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--blue); color: #fff; }
.flow { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; }
.flow[hidden] { display: none; }
.flow li { counter-increment: s; position: relative; padding-top: 4.25rem; }
.flow li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; font: 700 1.3rem var(--font-display); background: var(--blue); color: #fff; }
.flow li:nth-child(even)::before { background: var(--coral); color: var(--navy); }
.flow li::after { content: ""; position: absolute; top: 1.5rem; left: 3.5rem; right: .5rem; height: 2px; background: var(--line); }
.flow li:last-child::after { display: none; }
.flow h3 { font-size: 1.2rem; } .flow p { color: var(--muted); }

.trust-grid { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.trust-item { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.6rem; }
.trust-item .ic { width: 3rem; height: 3rem; border-radius: 14px; background: var(--tint); color: var(--blue); display: grid; place-items: center; margin-bottom: 1.1rem; }
.trust-item:nth-child(even) .ic { background: var(--coral-bg); color: var(--coral-ink); }
.trust-item .ic svg { width: 24px; height: 24px; }
.trust-item p { color: var(--muted); font-size: 1rem; margin: 0; }

.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); margin-top: 2rem; }
.col-title h3 { font-size: 1.5rem; }
.news-list { border-top: 2px solid var(--ink); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: block; text-decoration: none; padding: 1.1rem 0; }
.news-list a:hover h4 { text-decoration: underline; }
.cat { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--blue-deep); background: var(--tint); padding: .15rem .6rem; border-radius: 999px; margin-bottom: .35rem; }
.news-list h4 { font-size: 1.15rem; margin: 0; }
.news-list p { color: var(--muted); margin: .3rem 0 0; }
.agenda-list { border-top: 2px solid var(--ink); }
.agenda-list li { display: grid; grid-template-columns: 4.25rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.agenda-list.past { opacity: .75; }
.date { text-align: center; border: 1px solid var(--line); border-radius: 14px; padding: .45rem 0; background: #fff; }
.date b { display: block; font: 700 1.5rem/1 var(--font-display); }
.date span { font-size: .8rem; font-weight: 600; color: var(--coral-ink); }
.agenda-list h4 { font-size: 1.1rem; margin: 0; } .agenda-list p { color: var(--muted); font-size: .95rem; margin: .2rem 0 0; }
.col-foot { margin-top: 1.1rem; display: flex; gap: 1.5rem; flex-wrap: wrap; }

.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.values { display: grid; gap: 1rem; }
.values li { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.2rem 1.4rem; }
.values strong { font: 700 1.1rem var(--font-display); display: block; } .values span { color: var(--muted); }
.faq { max-width: 52rem; margin-top: 2rem; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.3rem 0; font: 600 1.18rem var(--font-display); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.4rem; color: var(--muted); max-width: 44rem; margin: 0; }
.cta-band { background: var(--tint); border-top: 1px solid var(--line); }
.cta-band p { color: var(--muted); font-size: 1.1rem; max-width: 34rem; }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

/* Annonces */
.filters { margin-top: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.1rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; align-items: end; }
.filters.inline { display: flex; flex-wrap: wrap; border: 0; padding: 0; background: none; margin: 0 0 1.25rem; }
.filters-actions { grid-column: 1 / -1; display: flex; gap: .6rem; flex-wrap: wrap; }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1rem; }
.offer-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.4rem; display: flex; flex-direction: column; gap: .35rem; transition: border-color .15s, box-shadow .15s; }
.offer-card:hover { border-color: var(--blue); box-shadow: 0 16px 32px -24px rgba(31,75,255,.6); }
.offer-card h3 { font-size: 1.2rem; margin: .4rem 0 0; }
.offer-card h3 a { text-decoration: none; } .offer-card h3 a::after { content: ""; position: absolute; inset: 0; }
.offer-card { position: relative; }
.offer-card h3 a:hover { text-decoration: underline; }
.offer-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.offer-excerpt { color: var(--muted); font-size: .98rem; margin: .4rem 0 0; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.meta li { font-size: .82rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .6rem; }
.crumb { margin: 0 0 1rem; } .crumb a { text-decoration: none; color: var(--muted); font-weight: 500; } .crumb a:hover { text-decoration: underline; }
.offer-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.offer-main h2 { font-size: 1.3rem; margin-top: 1.75rem; }
.offer-side { display: grid; gap: 1rem; position: sticky; top: 100px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0 0 1rem; }
.facts dt { color: var(--muted); font-weight: 500; } .facts dd { margin: 0; font-weight: 600; word-break: break-word; }
.empty { text-align: center; padding: 3rem 1rem; background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 22px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2rem; }
.report summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.report-form { display: grid; gap: .5rem; margin-top: .8rem; }
.report-form label { font-size: .9rem; font-weight: 600; }

/* Formulaires */
.form { display: grid; gap: 1.1rem; }
.form.card, .card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 1.75rem); margin-bottom: 1.25rem; }
.card > :last-child { margin-bottom: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field.wide, .form-grid .wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.req { color: var(--coral-ink); }
.field input:not([type=checkbox]):not([type=file]), .field select, .field textarea { font: 500 1rem var(--font-body); color: var(--ink); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; width: 100%; }
.field input[type=file] { font: inherit; padding: .5rem 0; }
.field textarea { resize: vertical; min-height: 5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--coral); outline-offset: 1px; background: #fff; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); background: #fff8f7; }
.hint { color: var(--muted); font-size: .88rem; margin: 0; }
.error { color: var(--red); font-weight: 600; font-size: .92rem; margin: 0; }
.counter { font-size: .8rem; color: var(--muted); text-align: right; }
.field.check { gap: .25rem; }
.check-label, .inline-check { display: flex; gap: .65rem; align-items: flex-start; font-weight: 500; cursor: pointer; font-size: .98rem; }
.check-label input, .inline-check input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--blue); flex: none; }
.inline-check { display: inline-flex; font-size: .92rem; }
.file-line { margin: 0 0 .4rem; font-weight: 500; }
fieldset.parent-box { border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.2rem; margin: 0; background: var(--bg-soft); }
fieldset.parent-box[hidden] { display: none; }
fieldset.parent-box legend { font: 700 1.05rem var(--font-display); padding: 0 .4rem; }
progress { width: 100%; height: 14px; border-radius: 999px; overflow: hidden; border: 0; background: var(--line); accent-color: var(--blue); }
progress::-webkit-progress-bar { background: var(--line); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--blue); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--blue); border-radius: 999px; }
.auth { max-width: 460px; } .auth.wide { max-width: 760px; }
.auth h1 { margin-bottom: .4em; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 900px; margin: 0 auto 2rem; }
.choice { border: 1px solid var(--line); border-radius: 28px; padding: clamp(1.5rem, 4vw, 2.2rem); display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; background: #fff; }
.choice-blue { background: var(--tint); }
.choice ul { display: grid; gap: .35rem; margin-bottom: .8rem; } .choice li::before { content: "✓ "; color: var(--blue); font-weight: 700; }
.bullets { display: grid; gap: .5rem; margin: 0 0 1rem; } .bullets li { padding-left: 1.2rem; position: relative; } .bullets li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.danger-zone { border-color: #f5b9b3; }
.err-code { font: 800 5rem/1 var(--font-display); color: var(--blue); margin: 0; }

/* Espaces connectés */
.space { display: grid; grid-template-columns: 240px 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); padding: 1.5rem 0 4rem; align-items: start; }
.space-nav { position: sticky; top: 100px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 22px; padding: 1rem; }
.space-label { font: 700 .85rem var(--font-display); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: .2rem .6rem .6rem; }
.space-nav ul { display: grid; gap: .15rem; }
.space-nav a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .65rem .8rem; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: .98rem; }
.space-nav a:hover { background: #fff; }
.space-nav a.active { background: var(--blue); color: #fff; }
.count { background: var(--coral); color: var(--navy); border-radius: 999px; font-size: .78rem; padding: .05rem .5rem; font-weight: 700; }
.space-main { min-width: 0; }
.space-main > h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: .6em; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.stat { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.2rem; text-decoration: none; }
a.stat:hover { border-color: var(--blue); }
.stat b { font: 700 2rem/1.1 var(--font-display); } .stat span { color: var(--muted); font-size: .92rem; }
.stat-alert { border-color: var(--coral); background: #fff8f5; }
.row-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.row-list li:last-child { border-bottom: 0; }
.row-list.card { padding-block: .5rem; }
.row-end { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.offer-row { align-items: flex-start; }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; white-space: nowrap; }
.b-blue { background: #E8EDFF; color: var(--blue-deep); } .b-green { background: var(--green-bg); color: var(--green); }
.b-coral { background: var(--coral-bg); color: var(--coral-ink); } .b-grey { background: #ECEFF7; color: var(--muted); } .b-red { background: var(--red-bg); color: var(--red); }
.todo-list { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: .8rem 0 1rem; color: var(--muted); } .todo-list .done { color: var(--green); font-weight: 600; }
.two-panel { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.25rem; align-items: start; }
.tabs-simple { display: flex; gap: .5rem; margin-bottom: 1rem; }
.tabs-simple a { padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.tabs-simple a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; margin-bottom: 1rem; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--bg-soft); font: 700 .88rem var(--font-display); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.quote { margin: .5rem 0 1rem; padding: .7rem 1rem; border-left: 4px solid var(--coral); background: var(--bg-soft); border-radius: 0 12px 12px 0; }
.timeline { margin: .5rem 0 1rem; display: grid; gap: .5rem; } .timeline li { padding-left: 1.6rem; position: relative; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.timeline li.done { color: var(--ink); font-weight: 500; } .timeline li.done::before { background: var(--coral); border-color: var(--coral); }
.prose p, .prose li { max-width: 70ch; } .prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.sitemap { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; } .sitemap h2 { font-size: 1.2rem; } .sitemap ul { display: grid; gap: .4rem; } .sitemap a { text-decoration: none; color: var(--blue-deep); font-weight: 600; } .sitemap a:hover { text-decoration: underline; }
.article h1 { margin-top: .5rem; }

/* Chat */
.chat h2 { font-size: 1.25rem; }
.chat-log { display: flex; flex-direction: column; gap: .6rem; max-height: 420px; overflow-y: auto; padding: .5rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; margin-bottom: .9rem; }
.chat-log.static { max-height: none; }
.msg { max-width: 82%; padding: .6rem .9rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.msg p { margin: 0; word-break: break-word; } .msg time { display: block; font-size: .75rem; color: var(--muted); margin-top: .2rem; }
.msg.mine { align-self: flex-end; background: var(--blue); color: #fff; border-color: var(--blue); } .msg.mine time { color: #d6defd; }
.msg.theirs { align-self: flex-start; }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: end; margin-bottom: .6rem; }
.chat-form textarea { font: 500 1rem var(--font-body); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; background: var(--bg-soft); resize: vertical; }

/* Pied de page */
footer.site { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; margin-top: 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.25rem; }
.foot-grid img { height: 36px; width: auto; }
.foot-grid p { margin-top: 1rem; color: var(--muted); max-width: 23rem; font-size: .98rem; }
.foot-grid h3 { font: 700 1.05rem var(--font-display); margin-bottom: .9rem; letter-spacing: 0; }
.foot-grid li { margin-bottom: .55rem; color: var(--muted); font-size: .98rem; }
.foot-grid a { text-decoration: none; } .foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.social { display: flex; gap: .6rem; flex-wrap: wrap; }
.social a { border: 1px solid var(--line); background: #fff; padding: .45rem .9rem; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.legal ul { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; } .legal a { text-decoration: none; } .legal a:hover { text-decoration: underline; color: var(--ink); }
.cookie { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90; max-width: 640px; margin-inline: auto; background: #fff; border: 2px solid var(--ink); border-radius: 20px; padding: 1rem 1.25rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between; box-shadow: 0 18px 40px -20px rgba(10,22,64,.5); font-size: .95rem; }
.cookie[hidden] { display: none; }

/* Adaptatif */
@media (max-width: 1100px) {
  nav.main, .hide-sm { display: none; }
  .menu-btn { display: grid; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid, .split, .about, .two-col, .offer-layout, .two-panel { grid-template-columns: 1fr; }
  .offer-side { position: static; }
  .flow { grid-template-columns: repeat(2, 1fr); } .flow li::after { display: none; }
  .dispo { grid-template-columns: 1fr; gap: .5rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .space { grid-template-columns: 1fr; }
  .space-nav { position: static; padding: .6rem; }
  .space-label { display: none; }
  .space-nav ul { display: flex; overflow-x: auto; gap: .3rem; padding-bottom: .2rem; }
  .space-nav a { white-space: nowrap; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .utility nav { display: none; }
  .search, .form-grid, .choice-grid, .sitemap { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .flow, .trust-grid, .offer-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .mock-offer { margin-right: 0; } .mock-track { margin-left: 0; }
  .tabs { display: flex; width: 100%; } .tab { flex: 1; padding-inline: .5rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .cookie { flex-direction: column; align-items: stretch; }
  .msg { max-width: 94%; }
  .chat-form { grid-template-columns: 1fr; }
}
@media print { .utility, header.site, footer.site, .cookie, .space-nav { display: none; } }
