/* Formation sans tranchée — feuille de style principale */

@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #1E2B30;
  --ink-2: #3B4A50;
  --muted: #5B6A70;
  --paper: #FFFFFF;
  --surface: #F4F7F7;   /* gris béton */
  --line: #D5DBDA;
  --field: #B9C2C1;
  --steel: #2C5A70;
  --steel-dark: #1F4456;
  --signal: #F2B705;
  --signal-dark: #D9A300;
  --ok: #2E7D4F;
  --ok-bg: #EAF4EE;
  --bad: #B3261E;
  --bad-bg: #FBECEA;
  --info-bg: #EAF1F4;
  --st-1: #E6DFCE;
  --st-2: #D2C7AC;
  --st-3: #B9AB8E;
  --st-4: #938770;
  --water: #A9C2CC;
  --sand: #E6D3A8;      /* sable : sol des schémas */
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --radius: 3px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--steel-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--steel); outline-offset: 2px; }
h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.1; }
h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.3rem, 5.2vw, 3.7rem); letter-spacing: -0.005em; line-height: 1.02; }
h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
code { font-size: 0.9em; background: var(--surface); padding: 0.1em 0.35em; border-radius: 2px; }
.lead { font-size: 1.2rem; line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.fine { font-size: 0.875rem; color: var(--muted); margin-top: 0.75rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { margin: 0 0 0.35rem; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow > * { max-width: 780px; }
.narrow:not(.wrap) { max-width: 780px; }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tight { padding: clamp(28px, 4vw, 48px) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 680px; margin-bottom: 2rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.7rem 1.25rem; border: 2px solid var(--signal); border-radius: var(--radius); background: var(--signal); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.08rem; letter-spacing: 0.01em; line-height: 1.1; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--signal-dark); border-color: var(--signal-dark); color: var(--ink); text-decoration: none; }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-small { padding: 0.4rem 0.8rem; font-size: 0.98rem; }
.btn-large { padding: 0.9rem 1.6rem; font-size: 1.2rem; }
.btn-block { display: flex; width: 100%; }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-danger:hover { background: #8E1D17; border-color: #8E1D17; color: #fff; }
.btn-danger-text { color: var(--bad); border-color: var(--bad); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }
.inline-form { display: inline; margin: 0; }

/* En-tête */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: 0.01em; white-space: nowrap; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-mark { width: 48px; height: 32px; flex: none; }
.bm-ground { stroke: var(--ink); stroke-width: 7; stroke-linecap: round; fill: none; }
.bm-bore { stroke: var(--signal); stroke-width: 9; fill: none; stroke-linecap: round; }
.nav-btn { display: none; }
.site-header .wrap { position: relative; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; font-size: 0.98rem; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; text-decoration-color: var(--signal); }
.site-nav .btn { text-decoration: none; }
.nav-account { display: flex; align-items: center; gap: 1.1rem; padding-left: 1.4rem; border-left: 1px solid var(--line); }

/* Messages */
.flashes { margin-top: 1.25rem; }
.flash { border-left: 4px solid var(--steel); background: var(--info-bg); padding: 0.75rem 1rem; margin: 0 0 0.6rem; }
.flash-success { border-color: var(--ok); background: var(--ok-bg); }
.flash-error { border-color: var(--bad); background: var(--bad-bg); }

/* Accueil */
.hero { padding-top: clamp(40px, 7vw, 84px); }
.hero h1 { max-width: 17ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.coupe { margin: clamp(28px, 4vw, 48px) 0 0; height: clamp(190px, 26vw, 340px); }
.coupe svg { width: 100%; height: 100%; display: block; }
.coupe .st-1 { fill: var(--st-1); }
.coupe .st-2 { fill: var(--st-2); }
.coupe .st-3 { fill: var(--st-3); }
.coupe .st-4 { fill: var(--st-4); }
.coupe .water { fill: var(--water); }
.coupe .ground-line { fill: none; stroke: var(--ink); stroke-width: 2; }
.coupe .rig path { stroke: var(--ink); stroke-width: 7; stroke-linecap: round; }
.coupe .rig rect { fill: var(--ink); }
.coupe .bore-shadow { fill: none; stroke: rgba(30, 43, 48, 0.25); stroke-width: 9; stroke-linecap: round; }
.coupe .bore { fill: none; stroke: var(--signal); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: bore 2.4s cubic-bezier(.45, .05, .3, 1) .3s forwards; }
.coupe .bore-exit { fill: var(--signal); stroke: var(--ink); stroke-width: 2; opacity: 0; animation: pop .3s ease-out 2.6s forwards; }
.coupe .strata-labels text { font-family: var(--display); font-weight: 600; font-size: 15px; fill: rgba(30, 43, 48, 0.55); letter-spacing: 0.02em; }
@keyframes bore { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .coupe .bore { animation: none; stroke-dashoffset: 0; }
  .coupe .bore-exit { animation: none; opacity: 1; }
}

/* Liste des modules */
.module-code { font-family: var(--display); font-weight: 600; font-size: 0.98rem; color: var(--steel); letter-spacing: 0.02em; }
.module-main h3 { font-family: var(--display); font-weight: 600; font-size: 1.55rem; margin: 0 0 0.2rem; }
.module-main h3 a { color: var(--ink); text-decoration: none; }
.module-main h3 a:hover { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; }
.module-main p { margin: 0; color: var(--ink-2); max-width: 64ch; }

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1rem; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--steel); margin-bottom: 0.6rem; }
.steps h3 { font-family: var(--display); font-size: 1.35rem; }
.steps p { color: var(--ink-2); margin: 0; }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 1.5rem; margin-bottom: 0.45rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.7rem; height: 3px; background: var(--signal-dark); }
.trainer-card { background: var(--surface); padding: clamp(20px, 3vw, 32px); border-left: 4px solid var(--steel); }

.band { background: var(--ink); color: #fff; padding: clamp(32px, 5vw, 56px) 0; }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.band h2 { color: #fff; margin-bottom: 0.3rem; }
.band p { margin: 0; color: #C9D3D6; max-width: 60ch; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 600; font-size: 1.08rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.8rem; font-family: var(--display); font-size: 1.5rem; color: var(--steel); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 1.1rem; color: var(--ink-2); max-width: 66ch; }

/* En-têtes de page */
.page-head { padding: clamp(36px, 6vw, 72px) 0 clamp(8px, 2vw, 16px); }
.crumbs { padding-top: 1.25rem; font-size: 0.92rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Page module */
.module-hero { padding: clamp(20px, 3vw, 36px) 0 0; }
.module-hero-grid { display: grid; grid-template-columns: 1fr 360px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.module-code-lg { font-family: var(--display); font-weight: 600; color: var(--steel); font-size: 1.1rem; margin: 0 0 0.4rem; }
.module-cover { margin: 1.75rem 0 0; }
.module-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); }
.module-cover figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }
.buy-box { border: 1px solid var(--line); border-top: 4px solid var(--ink); padding: 1.5rem; position: sticky; top: 1.25rem; background: var(--paper); }
.price { font-family: var(--display); font-weight: 600; font-size: 2.3rem; margin: 0 0 1rem; line-height: 1; }
.price span { font-family: var(--text); font-weight: 400; font-size: 0.95rem; color: var(--muted); }
.price-soon { font-size: 1.6rem; color: var(--muted); }
.buy-status { font-weight: 600; margin-bottom: 0.75rem; }
.buy-status.ok { color: var(--ok); }
.buy-box .btn + .btn { margin-top: 0.6rem; }
.facts { margin: 1.4rem 0 0; }
.facts > div { display: grid; grid-template-columns: 10.5rem 1fr; gap: 0.75rem; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 0.92rem; }
.facts dd { margin: 0; font-weight: 500; }
.module-body { display: grid; grid-template-columns: 1fr 300px; gap: clamp(28px, 5vw, 64px); }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.outline { padding-left: 1.4rem; }
.outline li { margin-bottom: 0.4rem; padding-left: 0.25rem; }
.outline li::marker { font-family: var(--display); font-weight: 600; color: var(--steel); }
.module-side h2 { font-size: 1.35rem; margin-top: 0.25rem; }
.plain-list { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.plain-list li { padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.legal h2 { font-size: 1.4rem; margin-top: 2rem; }

.progress { height: 6px; background: #E1E6E5; border-radius: 3px; overflow: hidden; margin: 0.35rem 0 0.5rem; }
.progress span { display: block; height: 100%; background: var(--steel); }

/* Formulaires */
.form label { display: block; font-weight: 500; margin-bottom: 1rem; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea, .filters input, .filters select, .verify-form input {
  display: block; width: 100%; margin-top: 0.35rem; padding: 0.62rem 0.75rem; font: inherit; font-weight: 400; color: var(--ink);
  background: #fff; border: 1px solid var(--field); border-radius: var(--radius);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--steel); outline-offset: 0; border-color: var(--steel); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 1rem; }
.hint { display: block; font-weight: 400; font-size: 0.86rem; color: var(--muted); margin-top: 0.3rem; }
.optional { font-weight: 400; color: var(--muted); font-size: 0.9em; }
.check { display: flex !important; gap: 0.6rem; align-items: flex-start; font-weight: 400 !important; }
.check input { margin-top: 0.3rem; width: 1.05rem; height: 1.05rem; flex: none; accent-color: var(--steel); }
.panel { border: 1px solid var(--line); padding: clamp(18px, 3vw, 28px); margin-bottom: 1.5rem; background: var(--paper); }
.panel h2 { font-size: 1.45rem; }

.auth { padding: clamp(36px, 7vw, 84px) var(--gutter); }
.auth-card { max-width: 440px; margin: 0 auto; }
.auth-wide { max-width: 640px; }
.auth-links { margin-top: 1rem; font-size: 0.95rem; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.checks { list-style: none; padding: 0; margin: 1.25rem 0; }
.checks li { padding: 0.45rem 0.75rem; margin-bottom: 0.3rem; border-left: 4px solid var(--ok); background: var(--ok-bg); }
.checks li.bad { border-color: var(--bad); background: var(--bad-bg); }

.verify-form { display: flex; gap: 0.6rem; max-width: 520px; margin-top: 1.25rem; }
.verify-form input { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: 0.06em; text-transform: uppercase; }
.verdict { border-left: 6px solid var(--ok); background: var(--ok-bg); padding: 1.25rem 1.5rem; }
.verdict-bad { border-color: var(--bad); background: var(--bad-bg); }
.verdict .facts > div { border-color: rgba(30, 43, 48, 0.12); }

/* Espace apprenant */
.empty { border: 1px dashed var(--field); padding: 2rem; text-align: left; }
.course-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.course { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.course h3 { font-family: var(--display); font-size: 1.45rem; margin: 0.1rem 0 0.4rem; }
.course .module-code { margin: 0; }
.course .progress { max-width: 420px; }
.status { margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.status.ok { color: var(--ok); font-weight: 600; }
.status.warn { color: var(--bad); }
.course-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: flex-end; }

.table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
.table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.table th { text-align: left; font-family: var(--display); font-weight: 600; font-size: 0.98rem; color: var(--muted); border-bottom: 2px solid var(--ink); padding: 0.55rem 0.75rem 0.55rem 0; white-space: nowrap; }
.table td { border-bottom: 1px solid var(--line); padding: 0.7rem 0.75rem 0.7rem 0; vertical-align: top; }
.table .num { text-align: right; white-space: nowrap; }
.table tr.is-revoked td { color: var(--muted); }
.tag { display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 0.1rem 0.5rem; border-radius: 2px; background: var(--surface); color: var(--ink-2); vertical-align: middle; white-space: nowrap; }
.tag-paid { background: var(--ok-bg); color: var(--ok); }
.tag-refunded { background: var(--bad-bg); color: var(--bad); }

/* Paiement */
.checkout { display: grid; grid-template-columns: 1fr 360px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.checkout h1 { font-size: clamp(1.9rem, 3.5vw, 2.5rem); }
.summary { background: var(--surface); padding: 1.5rem; position: sticky; top: 1.25rem; }
.summary h2 { font-size: 1.4rem; }
.summary-module { display: flex; flex-direction: column; gap: 0.15rem; font-weight: 600; font-size: 1.1rem; margin-bottom: 1rem; }
.summary-lines { margin: 0; }
.summary-lines > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-top: 1px solid rgba(30, 43, 48, 0.12); }
.summary-lines dt { color: var(--ink-2); }
.summary-lines dd { margin: 0; white-space: nowrap; }
.summary-lines .total { border-top: 2px solid var(--ink); font-weight: 700; font-size: 1.15rem; }
.contract { border: 1px solid var(--line); border-left: 4px solid var(--steel); padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: 0.95rem; }
.contract h2 { font-size: 1.25rem; }
.contract ul { padding-left: 1.1rem; margin: 0 0 1rem; }
.contract li { margin-bottom: 0.35rem; }

/* Administration */
.admin { display: grid; grid-template-columns: 210px 1fr; gap: clamp(20px, 3vw, 44px); padding-top: 1.5rem; padding-bottom: 4rem; }
.admin-nav { display: flex; flex-direction: column; gap: 0.15rem; position: sticky; top: 1rem; align-self: start; }
.admin-nav a { padding: 0.5rem 0.75rem; color: var(--ink); text-decoration: none; border-left: 3px solid transparent; }
.admin-nav a:hover { background: var(--surface); }
.admin-nav a[aria-current="page"] { border-left-color: var(--signal-dark); background: var(--surface); font-weight: 600; }
.admin-main { min-width: 0; }
.admin-main h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.admin-main h2 { font-size: 1.45rem; margin-top: 2rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 1.25rem 0 0.5rem; }
.stats > div { background: var(--paper); padding: 1rem 1.1rem; }
.stats dt { font-size: 0.86rem; color: var(--muted); }
.stats dd { margin: 0.2rem 0 0; font-family: var(--display); font-weight: 600; font-size: 1.9rem; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem; margin: 1rem 0 1.25rem; }
.filters label { font-weight: 500; font-size: 0.92rem; }
.filters input, .filters select { min-width: 220px; }
.filters .input-short, .input-short { min-width: 0; width: 7rem; display: inline-block; }
.export summary, .danger-zone summary, .row-actions summary { cursor: pointer; font-weight: 600; }
.danger-zone { border-color: #E9C2BE; }
.row-actions { min-width: 220px; }
.row-actions .form { margin-top: 0.75rem; font-size: 0.92rem; }

/* Pied de page */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 0; padding: clamp(36px, 5vw, 56px) 0 1.5rem; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.footer-brand, .footer-title { font-family: var(--display); font-weight: 600; font-size: 1.2rem; margin-bottom: 0.6rem; }
.site-footer a { color: var(--ink); }
.footer-legal { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; }
.footer-legal p { margin: 0 0 0.35rem; }

/* Écrans moyens et petits */

/* Langue */
.lang-switch { font-family: var(--display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em; color: var(--steel) !important; text-decoration: none; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 0.2rem 0.55rem; }
.lang-switch:hover { border-color: var(--steel); text-decoration: none !important; }
.lang-switch-mobile { display: none; margin-left: auto; }
.lang-badge { display: inline-block; font-family: var(--display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.06em; line-height: 1; padding: 0.22rem 0.38rem; border: 1px solid rgba(255, 255, 255, 0.75); border-radius: 3px; color: #fff; }
.lang-badge-dark { border-color: var(--steel); color: var(--steel); margin-left: 0.25rem; vertical-align: 0.15em; }
.ccard-langs { display: inline-flex; gap: 0.3rem; }

/* Catalogue en cartes */
.course-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.ccard { position: relative; min-height: 300px; border-radius: 6px; overflow: hidden; background: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; box-shadow: 0 10px 24px rgba(30, 43, 48, 0.12); transition: transform .18s ease, box-shadow .18s ease; }
.ccard:hover, .ccard:focus-within { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(30, 43, 48, 0.2); }
.ccard-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s ease; }
.ccard:hover .ccard-bg { transform: scale(1.04); }
.ccard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30, 43, 48, 0.25) 0%, rgba(30, 43, 48, 0.35) 35%, rgba(30, 43, 48, 0.9) 78%, rgba(30, 43, 48, 0.96) 100%); }
.ccard-top { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.1rem 0; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.ccard-top .lang-badge { background: rgba(30, 43, 48, 0.45); }
.ccard-code { font-family: var(--display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.85); }
.ccard-body { padding: 0 1.1rem 1.1rem; }
.ccard-title { font-family: var(--display); font-weight: 600; font-size: 1.55rem; line-height: 1.08; margin: 0 0 0.35rem; }
.ccard-title a { color: #fff; text-decoration: none; }
.ccard-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ccard-title a:focus-visible { outline: none; }
.ccard:has(.ccard-title a:focus-visible) { outline: 3px solid var(--signal); outline-offset: 2px; }
.ccard-dur { margin: 0 0 0.9rem; color: var(--signal); font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.ccard-buy { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.75rem; min-height: 2.4rem; }
.ccard-btn { position: relative; z-index: 2; text-transform: uppercase; letter-spacing: 0.04em; }
.ccard-price { font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 1; text-align: right; }
.ccard-price small { display: block; font-family: var(--text); font-weight: 400; font-size: 0.75rem; color: rgba(255, 255, 255, 0.75); margin-top: 0.2rem; }
.ccard-soon { font-family: var(--display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.03em; text-transform: uppercase; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.6); border-radius: var(--radius); padding: 0.35rem 0.7rem; }
.ccard.is-soon .ccard-bg { filter: grayscale(0.55); }

/* Aperçu de diapositives sur la page d'un module */
.slide-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.stage.stage-thumb { width: 100%; aspect-ratio: 16 / 9; position: relative; border-radius: 4px; overflow: hidden; background: var(--paper); box-shadow: 0 8px 22px rgba(30, 43, 48, 0.14); pointer-events: none; }
.stage-thumb .slide { position: absolute; inset: 0; }
.stage-thumb .sl-anim-bar { display: none; }
.slide-thumb-cap { margin: 0.55rem 0 0; font-size: 0.88rem; color: var(--ink-2); line-height: 1.3; }
.slide-thumb-cap span { display: block; font-family: var(--display); font-weight: 600; font-size: 0.8rem; color: var(--steel); letter-spacing: 0.03em; }
.small { font-size: 0.88rem; }

@media (max-width: 1100px) {
  .site-header .wrap { position: static; }
  .lang-switch-mobile { display: inline-block; }
  .nav-account .lang-switch { display: none; }
  .nav-btn { display: block; cursor: pointer; background: none; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.1rem; padding: 0.45rem 0.85rem; border: 2px solid var(--ink); border-radius: var(--radius); }
  .site-nav { display: none; }
  .site-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 1rem; box-shadow: 0 12px 24px rgba(30, 43, 48, 0.08); }
  .site-nav > a, .nav-account > a, .nav-account form { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .nav-account { flex-direction: column; align-items: stretch; gap: 0; padding-left: 0; border-left: 0; }
  .nav-account .btn { margin-top: 0.75rem; }
}
@media (max-width: 980px) {
  .course-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slide-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr 1fr; }
  .module-hero-grid, .checkout, .module-body { grid-template-columns: 1fr; }
  .buy-box, .summary { position: static; }
  .admin { grid-template-columns: 1fr; }
  .admin-nav { position: static; flex-direction: row; overflow-x: auto; gap: 0.25rem; border-bottom: 1px solid var(--line); }
  .admin-nav a { border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; }
  .admin-nav a[aria-current="page"] { border-bottom-color: var(--signal-dark); }
}
@media (max-width: 860px) {
  .split, .footer-grid { grid-template-columns: 1fr; }
  .band-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .course-cards { grid-template-columns: 1fr; }
  .ccard { min-height: 260px; }
  body { font-size: 16px; }
  .brand { font-size: 1.15rem; }
  .brand-mark { width: 40px; height: 27px; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .facts > div { grid-template-columns: 1fr; gap: 0.1rem; }
  .course { grid-template-columns: 1fr; }
  .course-actions { justify-content: flex-start; }
  .verify-form { flex-direction: column; }
  .coupe .strata-labels { display: none; }
}

/* Entreprises : formation de groupe en présentiel */
.link-arrow { font-weight: 600; }
.link-arrow::after { content: " →"; }
.group-offer .buy-box { position: static; }
.group-form .flashes { padding: 0; margin: 0 0 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.group-calc { border: 1px solid var(--line); background: var(--paper); padding: clamp(18px, 3vw, 28px); display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 1.5rem 2.5rem; }
.group-calc .fine, .gc-verdict { grid-column: 1 / -1; margin: 0; }
.group-calc-inputs label { margin-bottom: 0.9rem; }
.group-calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.group-calc-col { border-top: 4px solid var(--line); padding-top: 0.8rem; }
.group-calc-col.is-group { border-top-color: var(--signal); }
.gc-label { font-weight: 600; margin: 0 0 0.3rem; }
.gc-total { font-family: var(--display); font-weight: 600; font-size: 2.2rem; line-height: 1.05; margin: 0 0 0.2rem; }
.gc-each { margin: 0; font-weight: 500; }
.gc-detail { margin: 0.4rem 0 0; font-size: 0.88rem; color: var(--muted); }
.gc-verdict { font-weight: 600; color: var(--steel-dark); }
.outline-sheet { max-width: 860px; }
.sheet-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); margin: 1.5rem 0 2rem; }
.sheet-facts div { padding: 0.8rem 1rem 0.8rem 0; }
.sheet-facts dt { font-family: var(--display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.sheet-facts dd { margin: 0.2rem 0 0; font-weight: 500; }
.outline-sheet h2 { font-size: 1.3rem; margin: 1.8rem 0 0.5rem; }
.outline-sheet ol ol { list-style: lower-alpha; margin-top: 0.3rem; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 0; }
@media (max-width: 760px) {
  .group-calc, .group-calc-out { grid-template-columns: 1fr; }
  .sheet-facts { grid-template-columns: 1fr 1fr; }
}
