/* HeadwayWeb — formation sécurité & confidentialité de la donnée. Thème clair par défaut. */
:root {
  --bg: #f5f8ff;
  --surface: #ffffff;
  --ink: #0b1f4d;
  --muted: #51608a;
  --primary: #2563eb;
  --primary-ink: #ffffff;
  --navy: #0b1f4d;
  --soft: #e3ecff;
  --sand: #eaf1ff;
  --amber: #d97706;
  --amber-ink: #ffffff;
  --ok: #15803d;
  --border: #dbe4f5;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(11, 31, 77, .08);
  --maxw: 1120px;
  --f-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --band-a: #0b1f4d;
  --band-b: #1d4ed8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1224;
    --surface: #111c38;
    --ink: #eaf1ff;
    --muted: #9db4e0;
    --primary: #60a5fa;
    --primary-ink: #0a1224;
    --navy: #93c5fd;
    --soft: #16264d;
    --sand: #0f1a33;
    --amber: #fbbf24;
    --amber-ink: #1c1203;
    --ok: #4ade80;
    --border: #243a66;
    --shadow: 0 12px 40px rgba(0, 0, 0, .45);
    --band-a: #0b1f4d;
    --band-b: #1e40af;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.7 var(--f-sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; background: var(--surface); padding: 8px 12px; z-index: 100; }

h1, h2, h3 { font-family: var(--f-sans); font-weight: 800; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em;  }
h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.3rem; }
h1 em, h2 em { font-style: normal; color: var(--primary); }
p { margin: 0 0 1em; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 58ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 1em; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.section-intro { max-width: 62ch; margin-bottom: 44px; }
.center.section-intro { margin-inline: auto; }

/* Header */
.topbar { background: var(--primary); color: var(--primary-ink); font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding-block: 7px; flex-wrap: wrap; }
.topbar a { color: inherit; }
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.lang-switch { display: flex; gap: 2px; margin-left: auto; margin-right: 16px; font-size: .82rem; font-weight: 700; }
.lang-switch a { color: var(--muted); text-decoration: none; padding: 4px 8px; border-radius: 6px; border: 1px solid transparent; }
.lang-switch a:hover { color: var(--primary, currentColor); }
.lang-switch a[aria-current] { color: var(--primary, currentColor); border-color: var(--border); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); line-height: 1.15; }
.brand img { width: 40px; height: 40px; }
.brand b { font-family: var(--f-sans); font-weight: 600; font-size: 1.2rem; display: block; }
.brand small { font-size: .74rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--primary); text-decoration: underline; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 99px; padding: 8px 16px; color: var(--ink); font: inherit; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; line-height: 1.3; transition: transform .15s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 8px 20px rgba(37, 99, 235, .25); }
.btn-accent { background: var(--amber); color: var(--amber-ink); box-shadow: 0 8px 20px rgba(217, 119, 6, .3); }
.btn-ghost { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-ghost:hover { background: var(--soft); }
.btn-sm { padding: 9px 18px; font-size: .94rem; }
.btn-lg { padding: 16px 30px; font-size: 1.06rem; }

section { padding: 100px 0; }
.alt { background: var(--surface); }
.sand { background: var(--sand); }

/* Hero */
.hero { padding: 64px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.hero-note span::before { content: "✓"; color: var(--primary); font-weight: 700; margin-right: 6px; }
.hero-visual { position: relative; aspect-ratio: 1 / 1.02; }
.blob { position: absolute; inset: 4% 2% 6% 8%; background: var(--soft); border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; }
.hero-visual svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.float-card { position: absolute; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-size: .9rem; line-height: 1.35; border: 1px solid var(--border); }
.float-card b { display: block; font-size: .95rem; }
.float-card small { color: var(--muted); }
.float-card .dot { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--primary); flex: none; font-size: 1.1rem; }
.fc-1 { left: -4%; top: 14%; animation: bob 6s ease-in-out infinite; }
.fc-2 { right: -2%; bottom: 12%; animation: bob 7s ease-in-out infinite reverse; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 32px 0; border-top: 1px solid var(--border); }
.trust div { display: flex; gap: 14px; align-items: baseline; }
.trust b { font-family: var(--f-mono); font-size: 2rem; font-weight: 600; color: var(--primary); line-height: 1; }
.trust span { font-size: .9rem; color: var(--muted); line-height: 1.35; }

/* Grids & cards */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.hover-lift { transition: transform .25s, box-shadow .25s; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(11, 31, 77, .16); }
.icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--soft); color: var(--primary); margin-bottom: 18px; }
.icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); }
.card .more { font-weight: 600; text-decoration: none; display: inline-block; margin-top: 8px; }

/* Auto-évaluation (quiz) */
.quiz { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; }
.quiz-form { padding: 40px; }
.quiz-form fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.quiz-form legend { font-weight: 700; margin-bottom: 10px; font-size: 1rem; padding: 0; }
.quiz-form legend .q-n { font-family: var(--f-mono); font-size: .78rem; color: var(--primary); background: var(--soft); border-radius: 6px; padding: 2px 7px; margin-right: 8px; vertical-align: 2px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; width: 100%; height: 100%; margin: 0; }
.seg span { display: inline-block; padding: 9px 16px; border-radius: 12px; border: 1.5px solid var(--border); font-size: .92rem; cursor: pointer; transition: all .15s; background: var(--bg); line-height: 1.4; }
.seg input:hover + span { border-color: var(--primary); }
.seg input:checked + span { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.seg input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.quiz-out { background: linear-gradient(160deg, var(--band-a), var(--band-b)); color: #e6eeff; padding: 40px; position: relative; display: flex; flex-direction: column; }
.quiz-out h3 { color: #fff; font-size: 1.5rem; margin-bottom: .3em; }
.quiz-progress { font-family: var(--f-mono); font-size: .82rem; color: #b8cbf5; letter-spacing: .04em; margin-bottom: 14px; }
.quiz-score { font-family: var(--f-mono); font-size: 3.4rem; line-height: 1; color: #fff; font-weight: 600; }
.quiz-score small { font-size: 1.2rem; color: #b8cbf5; font-weight: 400; }
.meter { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .15); margin: 16px 0 20px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 99px; background: #93c5fd; transition: width .5s ease; }
.meter i[data-level="0"] { background: #fbbf24; }
.meter i[data-level="3"] { background: #86efac; }
.quiz-result { display: none; }
.quiz-out.done .quiz-result { display: block; animation: fadein .35s ease; }
.quiz-out.done .quiz-idle { display: none; }
.quiz-idle p { color: #cfdcfa; }
.quiz-list { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; }
.quiz-list li { background: rgba(255, 255, 255, .09); border-radius: 12px; padding: 12px 14px; font-size: .92rem; line-height: 1.5; }
.quiz-list b { color: #fff; display: block; }
.quiz-list a { color: #bfdbfe; font-weight: 600; }
.quiz-out .btn { background: #fff; color: #0b1f4d; align-self: flex-start; }
.quiz-out .btn-link { background: none; border: 0; color: #bfdbfe; text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; margin-top: 12px; padding: 0; align-self: flex-start; }
.quiz-out .disclaimer { font-size: .78rem; color: #a9bff0; margin-top: auto; padding-top: 16px; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }

/* Problème : chiffres clés */
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat .num { font-family: var(--f-mono); font-size: 2.6rem; font-weight: 600; color: var(--primary); line-height: 1.05; }
.stat .num small { font-size: 1.1rem; color: var(--muted); font-weight: 500; margin-left: 4px; }
.stat h3 { font-size: 1.05rem; margin: 0; }
.stat p { font-size: .94rem; margin: 0; }
.src-note { font-size: .84rem; color: var(--muted); margin-top: 22px; }

/* Modules (catalogue) */
.module { display: flex; flex-direction: column; }
.tag { font-family: var(--f-mono); font-size: .74rem; font-weight: 500; letter-spacing: .04em; color: var(--primary); background: var(--soft); border-radius: 6px; padding: 3px 8px; align-self: flex-start; margin-bottom: 14px; }
.module .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.chips span { font-size: .8rem; color: var(--muted); border: 1px solid var(--border); border-radius: 99px; padding: 3px 11px; }
.module .more { margin-top: auto; }

/* Méthode */
.mode .icon { margin-bottom: 14px; }
.mode .mode-meta { font-family: var(--f-mono); font-size: .8rem; color: var(--primary); margin-top: 12px; }

/* Parcours salarié */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.journey::before { content: ""; position: absolute; left: 8%; right: 8%; top: 30px; border-top: 2px dotted var(--primary); }
.journey li { list-style: none; text-align: center; padding: 0 14px; position: relative; }
.journey .n { font-family: var(--f-mono); width: 60px; height: 60px; border-radius: 50%; background: var(--surface); border: 2px solid var(--primary); color: var(--primary); display: grid; place-items: center; margin: 0 auto 16px; font-family: var(--f-sans); font-size: 1.4rem; }
.journey p { color: var(--muted); font-size: .95rem; }
ol.journey { padding: 0; margin: 0; }

/* Sessions / ateliers */
.events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.event { display: flex; flex-direction: column; gap: 6px; }
.event .date { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.event .cal { width: 58px; text-align: center; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); flex: none; }
.event .cal i { display: block; background: var(--amber); color: #fff; font-style: normal; font-size: .7rem; font-weight: 700; text-transform: uppercase; padding: 2px 0; }
.event .cal b { display: block; font-family: var(--f-sans); font-size: 1.5rem; font-weight: 500; padding: 2px 0; }
.event .kind { font-size: .78rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .06em; }
.event h3 { font-size: 1.15rem; margin: 0; }
.event .meta { font-size: .9rem; color: var(--muted); }
.event .btn { margin-top: auto; align-self: flex-start; }
.event .spacer { flex: 1; min-height: 10px; }
.notice { font-size: .86rem; color: var(--muted); text-align: center; margin-top: 22px; }

/* Équipe */
.member { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start; }
.member img { width: 96px; height: 96px; border-radius: 50%; background: var(--soft); }
.member h3 { margin: 0; font-size: 1.2rem; }
.member .role { color: var(--primary); font-weight: 600; font-size: .88rem; margin-bottom: 8px; }
.member p { font-size: .95rem; }

/* Témoignages */
.quote { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.quote p { font-size: 1.08rem; line-height: 1.6; color: var(--ink); }
.quote footer { font-size: .9rem; color: var(--muted); margin-top: auto; display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; }
.quote footer img { width: 48px; height: 48px; border-radius: 50%; background: var(--soft); }
.quote footer strong { color: var(--ink); display: block; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px; margin-bottom: 12px; }
details[open] { box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); color: var(--primary); display: grid; place-items: center; flex: none; font-weight: 500; }
details[open] summary::after { content: "−"; }
details p { margin: .8em 0 0; color: var(--muted); }

/* CTA */
.cta-band { background: linear-gradient(135deg, var(--band-a), var(--band-b)); color: #fff; border-radius: 32px; padding: 64px 48px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .06); right: -120px; top: -140px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d3e1ff; }
.cta-actions { display: grid; gap: 12px; position: relative; }
.cta-band .btn-accent { box-shadow: none; }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .1); }

.todo { font-weight: inherit; } /* placeholders désormais remplis ; remettre un fond jaune ici pour repérer les futurs [à compléter] */

.sticky-cta { position: fixed; z-index: 60; left: 50%; bottom: 16px; transform: translate(-50%, 160%); transition: transform .3s; display: none; white-space: nowrap; }
.sticky-cta.show, .sticky-cta.show:hover { transform: translate(-50%, 0); }

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .1s; }
.js .reveal.d2 { transition-delay: .2s; }
.js .reveal.d3 { transition-delay: .3s; }

.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 0 96px; color: var(--muted); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.site-footer a { color: var(--muted); }
.site-footer strong { color: var(--ink); font-family: var(--f-sans); font-weight: 600; font-size: 1.05rem; }

/* Page services */
.page-hero { padding: 72px 0 56px; background: var(--soft); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 80px; }
.split.rev > :first-child { order: 2; }
.panel { background: var(--surface); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.panel dl { margin: 0; display: grid; gap: 14px; }
.panel dt { font-weight: 600; }
.panel dd { margin: 0; color: var(--muted); font-size: .95rem; }
ul.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
ul.ticks li { padding-left: 32px; position: relative; }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--soft); color: var(--primary); display: grid; place-items: center; font-size: .75rem; font-weight: 800; }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.price { display: flex; flex-direction: column; gap: 10px; }
.price .amount { font-family: var(--f-sans); font-size: 2.2rem; color: var(--primary); line-height: 1.1; }
.price .amount small { font-family: var(--f-sans); font-size: .9rem; color: var(--muted); }
.price.featured { border: 2px solid var(--primary); }
.price .btn { margin-top: auto; }

@media (max-width: 920px) {
  section { padding: 68px 0; }
  .hero { padding: 40px 0 64px; }
  .hero-grid, .grid-2, .grid-3, .grid-4, .quiz, .faq-grid, .cta-band, .split, .pricing, .events { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .trust { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .journey { grid-template-columns: 1fr; gap: 26px; }
  .journey::before { display: none; }
  .journey li { display: grid; grid-template-columns: 60px 1fr; gap: 16px; text-align: left; padding: 0; }
  .journey .n { font-family: var(--f-mono); margin: 0; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .quiz-form, .quiz-out { padding: 28px 22px; }
  .cta-band { padding: 44px 24px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); padding: 16px 20px; border-bottom: 1px solid var(--border); gap: 14px; }
  .nav.open { display: flex; }
  .sticky-cta { display: inline-flex; }
  .topbar .hide-sm { display: none; }
}
@media (max-width: 520px) {
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .member { grid-template-columns: 1fr; }
  .fc-1 { left: 0; } .fc-2 { right: 0; }
  .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .fc-1, .fc-2, .quiz-list li { animation: none; }
  .btn, .hover-lift, .sticky-cta { transition: none; }
}

/* Page formations */
.page-hero .crumbs { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); margin-bottom: 14px; }
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--border); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-family: var(--f-mono); font-size: .78rem; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; padding-top: 3px; }
.facts dd { margin: 0; color: var(--ink); font-size: .95rem; }
.cert-box { background: var(--soft); border-radius: var(--radius); padding: 28px 30px; border: 1px solid var(--border); }
.cert-box h3 { margin-top: 0; }
.cert-box p:last-child { margin-bottom: 0; }
.panel .price-line { font-family: var(--f-mono); font-size: 1.5rem; font-weight: 600; color: var(--primary); margin: 14px 0 0; }
.panel .price-line small { font-size: .8rem; color: var(--muted); font-weight: 400; }
.price .amount { font-family: var(--f-mono); }
.price .amount small { font-family: var(--f-sans); }
