/* ==========================================================================
   KODEX Académie — feuille du sous-domaine (layouts/academy.blade.php)
   Typographie du site public (Space Grotesk titres, Be Vietnam Pro texte),
   noir de marque, accent orange de l'Académie. Sans le JS du thème Liquid.
   Le site public n'a pas de mode sombre : l'Académie reste en clair.
   ========================================================================== */

:root {
    color-scheme: light;
    --ac-ink: #111111;
    --ac-text: #3d3d3d;
    --ac-muted: #6b6b6b;
    --ac-faint: #8a8a8a;
    --ac-line: #e8e8e8;
    --ac-line-strong: #d6d6d6;
    --ac-soft: #f4f4f3;
    --ac-soft-2: #ececea;
    --ac-bg: #ffffff;
    --ac-accent: #e8601c;          /* repères visuels (pastilles, barres) */
    --ac-accent-text: #b44a0f;     /* texte orange lisible (contraste AA sur blanc) */
    --ac-accent-soft: #fdf0e8;
    --ac-success: #1f7a4d;
    --ac-danger: #b42318;
    --ac-radius: 14px;
    --ac-radius-sm: 10px;
    --ac-shadow: 0 14px 36px rgba(17, 17, 17, 0.08);
    --ac-gutter: clamp(16px, 4vw, 52px);
    --ac-max: 1320px;
    --ac-font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ac-font-head: 'Space Grotesk', 'Be Vietnam Pro', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body.ac-body { margin: 0; background: var(--ac-bg); color: var(--ac-text); font-family: var(--ac-font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--ac-font-head); color: var(--ac-ink); margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ac-ink); outline-offset: 3px; border-radius: 4px; }
.ac-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ac-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ac-ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.ac-skip:focus { top: 12px; }
.ac-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Conteneurs ───────────────────────────────────────────────────────── */
.ac-wrap { width: 100%; max-width: var(--ac-max); margin: 0 auto; padding: 0 var(--ac-gutter); }
.ac-section { padding: clamp(56px, 8vw, 104px) 0; }
.ac-section + .ac-section { border-top: 1px solid var(--ac-line); }
.ac-section.is-soft { background: var(--ac-soft); border-top: 0; }
.ac-section.is-soft + .ac-section { border-top: 0; }
.ac-section.is-dark { background: var(--ac-ink); color: rgba(255, 255, 255, .78); border-top: 0; }
.ac-section.is-dark h2, .ac-section.is-dark h3 { color: #fff; }

/* ── Titres de section ────────────────────────────────────────────────── */
.ac-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ac-accent-text); margin-bottom: 14px; }
.ac-kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ac-accent); }
.is-dark .ac-kicker { color: #f6a36f; }
.ac-h1 { font-size: clamp(44px, 7.2vw, 96px); font-weight: 700; letter-spacing: -0.045em; line-height: .95; }
.ac-h1 .is-faint { color: #c4c4c4; display: block; }
.ac-h2 { font-size: clamp(30px, 4.2vw, 54px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.ac-h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.ac-lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; color: var(--ac-text); max-width: 62ch; }
.ac-muted { color: var(--ac-muted); }
.ac-small { font-size: 14px; }
.ac-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.ac-head > div { max-width: 760px; }
.ac-head .ac-lead { margin-top: 16px; }

/* ── Boutons ──────────────────────────────────────────────────────────── */
.ac-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 100px; border: 1.5px solid var(--ac-ink); background: var(--ac-ink); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.ac-btn:hover { background: #2b2b2b; border-color: #2b2b2b; }
.ac-btn .ac-icon { width: 14px; height: 14px; }
.ac-btn-ghost { background: transparent; color: var(--ac-ink); border-color: var(--ac-line-strong); }
.ac-btn-ghost:hover { background: var(--ac-soft); border-color: var(--ac-ink); }
.ac-btn-light { background: #fff; color: var(--ac-ink); border-color: #fff; }
.ac-btn-light:hover { background: #f1f1f1; border-color: #f1f1f1; }
.ac-btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.ac-btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.ac-btn-sm { min-height: 38px; padding: 8px 16px; font-size: 11px; }
.ac-btn-block { width: 100%; }
.ac-btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ac-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ac-ink); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.ac-link:hover { color: var(--ac-accent-text); }

/* ── En-tête ──────────────────────────────────────────────────────────── */
.ac-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--ac-line); }
.ac-header-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
/* ── Loader ─────────────────────────────────────────────────────────────
   .ac-js .ac-first : 1re page de la visite (écran de marque) ; .ac-ready : chargement fini ;
   .ac-leaving : clic vers une autre page (barre de progression). Sans JS : rien ne s'affiche. */
.ac-loader { display: none; }
.ac-js.ac-first .ac-loader { display: flex; position: fixed; inset: 0; z-index: 9999; flex-direction: column; align-items: center; justify-content: center; gap: 28px; background: #fff; transition: opacity .5s ease, visibility .5s ease; }
.ac-js.ac-first.ac-ready .ac-loader { opacity: 0; visibility: hidden; }
.ac-brand.ac-loader-brand { --ac-logo-h: 40px; animation: ac-loader-in .6s ease both; }
.ac-loader-bar { width: 148px; height: 2px; border-radius: 2px; background: var(--ac-line); overflow: hidden; }
.ac-loader-bar i { display: block; width: 40%; height: 100%; border-radius: 2px; background: var(--ac-ink); animation: ac-loader-slide 1.1s ease-in-out infinite; }
@keyframes ac-loader-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes ac-loader-slide { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
.ac-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 10000; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
.ac-progress i { display: block; height: 100%; width: 0; background: var(--ac-accent); box-shadow: 0 0 8px rgba(232, 96, 28, .5); }
.ac-js:not(.ac-ready):not(.ac-first) .ac-progress, .ac-js.ac-leaving .ac-progress { opacity: 1; }
.ac-js:not(.ac-ready):not(.ac-first) .ac-progress i, .ac-js.ac-leaving .ac-progress i { animation: ac-progress-run 8s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes ac-progress-run { 0% { width: 0; } 10% { width: 35%; } 100% { width: 92%; } }
@media (prefers-reduced-motion: reduce) {
    .ac-loader-brand, .ac-loader-bar i { animation: none; }
    .ac-loader-bar i { width: 100%; }
}

/* Lockup « kodex académie » : le wordmark est dessiné en Sora (tracés vectorisés).
   « académie » reprend Sora, à la même taille de lettres, posé sur la ligne de base du logo :
   le <img> s'aligne par son bord bas, la ligne de base du wordmark est à 84 % de sa hauteur
   (112,62 / 134,08 du viewBox), d'où la remontée de 16 % de --ac-logo-h. */
.ac-brand { --ac-logo-h: 26px; display: inline-flex; align-items: baseline; gap: .3em; text-decoration: none; color: var(--ac-ink); flex-shrink: 0; line-height: 1; }
.ac-brand img { align-self: baseline; }
.ac-brand-name { font-family: 'Sora', var(--ac-font-head); font-weight: 600; font-size: calc(var(--ac-logo-h) * .98); letter-spacing: -0.035em; line-height: 1; color: #9a9a9a; position: relative; top: calc(var(--ac-logo-h) * -0.16); white-space: nowrap; }
.ac-brand.is-light .ac-brand-name { color: rgba(255, 255, 255, .55); }
.ac-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.ac-nav > a, .ac-nav summary { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ac-text); text-decoration: none; cursor: pointer; list-style: none; }
.ac-nav summary::-webkit-details-marker { display: none; }
.ac-nav > a:hover, .ac-nav summary:hover, .ac-nav > a[aria-current="page"] { color: var(--ac-ink); background: var(--ac-soft); }
.ac-nav > a[aria-current="page"] { font-weight: 600; }
.ac-nav .ac-icon { width: 14px; height: 14px; }
.ac-drop { position: relative; }
.ac-drop-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; background: #fff; border: 1px solid var(--ac-line); border-radius: 12px; box-shadow: var(--ac-shadow); padding: 8px; z-index: 60; }
.ac-drop-menu a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 8px; font-size: 14px; text-decoration: none; color: var(--ac-text); }
.ac-drop-menu a:hover { background: var(--ac-soft); color: var(--ac-ink); }
.ac-drop-menu a span { color: var(--ac-faint); font-size: 13px; }
.ac-drop-menu hr { border: 0; border-top: 1px solid var(--ac-line); margin: 6px 4px; }
.ac-header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ac-header-actions .ac-signin { font-size: 14px; font-weight: 600; color: var(--ac-ink); text-decoration: none; padding: 10px 12px; border-radius: 8px; }
.ac-header-actions .ac-signin:hover { background: var(--ac-soft); }
.ac-account summary { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; padding: 4px 8px 4px 4px; border-radius: 100px; border: 1px solid var(--ac-line); }
.ac-account summary::-webkit-details-marker { display: none; }
.ac-account summary:hover { border-color: var(--ac-line-strong); }
.ac-account .ac-drop-menu { left: auto; right: 0; }
.ac-account-name { font-size: 14px; font-weight: 600; color: var(--ac-ink); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ac-ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; overflow: hidden; }
.ac-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ac-drop-menu form { margin: 0; }
.ac-drop-menu button { width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 8px; font-size: 14px; cursor: pointer; color: var(--ac-text); }
.ac-drop-menu button:hover { background: var(--ac-soft); color: var(--ac-ink); }
.ac-burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--ac-line); background: #fff; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.ac-mobile { display: none; border-top: 1px solid var(--ac-line); padding: 12px 0 20px; }
.ac-mobile a, .ac-mobile button { display: flex; width: 100%; padding: 12px 4px; font-size: 16px; font-weight: 500; color: var(--ac-ink); text-decoration: none; background: none; border: 0; border-bottom: 1px solid var(--ac-line); cursor: pointer; text-align: left; }
.ac-mobile .ac-btns { padding-top: 16px; }
.ac-mobile .ac-btns a { display: inline-flex; width: auto; border-bottom: 1.5px solid var(--ac-ink); padding: 12px 22px; }
.ac-mobile .ac-btns a.ac-btn-ghost { border-color: var(--ac-line-strong); }
.ac-mobile form { margin: 0; }
.ac-header.is-open .ac-mobile { display: block; }
@media (max-width: 1023px) {
    .ac-nav, .ac-header-actions { display: none; }
    .ac-burger { display: inline-flex; }
}

/* ── Messages ─────────────────────────────────────────────────────────── */
.ac-flash { margin: 20px 0 0; padding: 14px 18px; border-radius: 12px; font-size: 15px; font-weight: 500; background: #edf7f1; color: var(--ac-success); border: 1px solid #cfe9da; }
.ac-flash.is-error { background: #fdf0ef; color: var(--ac-danger); border-color: #f5d0cc; }
.ac-flash.is-warning { background: #fff8eb; color: #8a5300; border-color: #f4e1b8; }

/* ── Cartes de formation ──────────────────────────────────────────────── */
.ac-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ac-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ac-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .ac-grid, .ac-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ac-grid, .ac-grid-4, .ac-grid-2 { grid-template-columns: minmax(0, 1fr); } }
.ac-card { display: flex; flex-direction: column; background: var(--ac-soft); border-radius: var(--ac-radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease; min-width: 0; }
a.ac-card:hover { transform: translateY(-4px); box-shadow: var(--ac-shadow); }
.ac-card-media { position: relative; aspect-ratio: 16 / 9; background: var(--ac-soft-2); overflow: hidden; }
.ac-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
a.ac-card:hover .ac-card-media img { transform: scale(1.03); }
.ac-card-ph { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 18px; font-family: var(--ac-font-head); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: #c4c4c4; }
.ac-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 100px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--ac-ink); color: #fff; }
.ac-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--ac-accent); }
.ac-badge.is-light { background: #fff; color: var(--ac-ink); }
.ac-badge.is-soon { background: var(--ac-accent-soft); color: var(--ac-accent-text); }
.ac-card-flags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.ac-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 22px; flex: 1; }
.ac-card-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ac-faint); }
.ac-card-title { font-family: var(--ac-font-head); font-size: 21px; font-weight: 700; color: var(--ac-ink); letter-spacing: -0.02em; line-height: 1.15; }
.ac-card-desc { font-size: 14px; line-height: 1.65; color: var(--ac-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ac-card-meta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ac-line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: var(--ac-muted); flex-wrap: wrap; }
.ac-card-price { font-weight: 700; color: var(--ac-ink); }
.ac-card-price small { display: block; font-weight: 500; color: var(--ac-faint); font-size: 12px; }

/* ── Pastilles de catégories ──────────────────────────────────────────── */
.ac-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ac-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 100px; border: 1px solid var(--ac-line-strong); background: #fff; color: var(--ac-ink); font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color .2s, background .2s; }
.ac-chip span { font-weight: 500; color: var(--ac-faint); font-size: 13px; }
.ac-chip:hover { border-color: var(--ac-ink); }
.ac-chip[aria-current="true"], .ac-chip.is-active { background: var(--ac-ink); color: #fff; border-color: var(--ac-ink); }
.ac-chip[aria-current="true"] span, .ac-chip.is-active span { color: rgba(255, 255, 255, .7); }

/* ── Pied de page ─────────────────────────────────────────────────────── */
.ac-footer { background: var(--ac-ink); color: rgba(255, 255, 255, .66); padding: 64px 0 28px; font-size: 14px; }
.ac-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.ac-footer a:hover { color: #fff; text-decoration: underline; }
.ac-footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.ac-footer h2 { font-family: var(--ac-font); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.ac-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ac-footer-brand p { margin-top: 18px; max-width: 34ch; line-height: 1.7; }
.ac-footer-back { display: inline-flex !important; align-items: center; gap: 8px; margin-top: 22px; padding: 10px 16px; border-radius: 100px; border: 1px solid rgba(255, 255, 255, .25); font-weight: 600; }
.ac-footer-back:hover { border-color: #fff; text-decoration: none !important; }
.ac-footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 900px) { .ac-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ac-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ac-footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── Formulaires (connexion, filtres) ─────────────────────────────────── */
.ac-field { display: grid; gap: 8px; margin-bottom: 18px; }
.ac-field label, .ac-label { font-size: 14px; font-weight: 600; color: var(--ac-ink); }
.ac-input, .ac-select { width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--ac-line-strong); border-radius: 10px; background: #fff; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.ac-input:focus, .ac-select:focus { outline: none; border-color: var(--ac-ink); box-shadow: 0 0 0 3px rgba(17, 17, 17, .08); }
.ac-input.is-invalid { border-color: var(--ac-danger); }
.ac-error { font-size: 13px; color: var(--ac-danger); }
.ac-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ac-muted); }
.ac-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ac-ink); flex-shrink: 0; }
.ac-check a { color: var(--ac-ink); }

/* ── Utilitaires ──────────────────────────────────────────────────────── */
.ac-mb { margin-bottom: 28px; }
.ac-row-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ac-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ac-empty { padding: 40px; border-radius: var(--ac-radius); background: var(--ac-soft); text-align: center; color: var(--ac-muted); }
.ac-panel { background: #fff; border: 1px solid var(--ac-line); border-radius: var(--ac-radius); padding: clamp(22px, 3vw, 32px); min-width: 0; }
.ac-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ac-split-faq { align-items: start; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
@media (max-width: 960px) { .ac-split, .ac-split-faq { grid-template-columns: minmax(0, 1fr); } }
.ac-progress { height: 6px; border-radius: 6px; background: var(--ac-soft-2); overflow: hidden; }
.ac-progress span { display: block; height: 100%; background: var(--ac-ink); border-radius: 6px; }
.ac-avatar-lg { width: 56px; height: 56px; font-size: 18px; }
.ac-avatar-xl { width: 96px; height: 96px; font-size: 30px; }
.ac-prose { max-width: 72ch; color: var(--ac-text); line-height: 1.8; }
.ac-prose p + p { margin-top: 14px; }
.ac-btn.is-disabled { opacity: .4; pointer-events: none; }

/* ── Accueil : hero ───────────────────────────────────────────────────── */
/* Pleine largeur : photo de fond assombrie, texte centré, recherche au centre. */
.ac-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #0d0d0d;
    min-height: clamp(560px, calc(100svh - 72px), 860px); display: flex; align-items: center; padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 72px); }
.ac-hero-bg { position: absolute; inset: 0; z-index: -1; }
.ac-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(1.04); animation: ac-hero-zoom 14s ease-out forwards; }
.ac-hero-bg::after { content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 70% at 50% 45%, rgba(10, 10, 10, .45) 0%, rgba(10, 10, 10, .78) 70%), linear-gradient(180deg, rgba(10, 10, 10, .55) 0%, rgba(10, 10, 10, .25) 40%, rgba(10, 10, 10, .85) 100%); }
@keyframes ac-hero-zoom { to { transform: scale(1); } }
.ac-hero-in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }
.ac-hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 100px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .9); }
.ac-hero-kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--ac-accent); box-shadow: 0 0 0 4px rgba(232, 96, 28, .25); }
.ac-hero-title { margin-top: 26px; font-family: var(--ac-font-head); font-size: clamp(46px, 8.4vw, 118px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: #fff; text-wrap: balance; padding-top: .06em; }
.ac-hero-title span { color: rgba(255, 255, 255, .42); }
.ac-hero-lead { margin: 26px auto 0; max-width: 62ch; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.65; color: rgba(255, 255, 255, .78); }
.ac-hero-search { margin-top: 38px; width: min(100%, 720px); display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 20px; border-radius: 100px; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.ac-hero-search:focus-within { box-shadow: 0 0 0 4px rgba(255, 255, 255, .28), 0 24px 60px rgba(0, 0, 0, .35); }
.ac-hero-search-icon { display: inline-flex; color: var(--ac-faint); flex-shrink: 0; }
.ac-hero-search-icon svg { width: 20px; height: 20px; }
.ac-hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ac-ink); padding: 12px 4px; }
.ac-hero-search input::placeholder { color: var(--ac-faint); }
.ac-hero-search input::-webkit-search-cancel-button { cursor: pointer; }
.ac-hero-search .ac-btn { flex-shrink: 0; border-radius: 100px; }
.ac-hero-tags { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.ac-hero-tags a { padding: 6px 13px; border-radius: 100px; border: 1px solid rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .9); text-decoration: none; transition: background .2s, border-color .2s; }
.ac-hero-tags a:hover, .ac-hero-tags a:focus-visible { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45); }
.ac-hero-foot { margin-top: clamp(40px, 6vw, 72px); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ac-hero-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 3px; }
.ac-hero-link:hover { border-color: #fff; }
.ac-hero-link svg { width: 16px; height: 16px; }
.ac-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; font-size: 14px; color: rgba(255, 255, 255, .65); }
.ac-facts strong { font-family: var(--ac-font-head); font-size: 24px; color: #fff; margin-right: 5px; letter-spacing: -0.02em; }
@media (max-width: 600px) {
    .ac-hero { min-height: auto; }
    .ac-hero-search { flex-wrap: wrap; border-radius: 22px; padding: 8px; }
    .ac-hero-search-icon { padding-left: 10px; }
    .ac-hero-search input { font-size: 15px; }
    .ac-hero-search .ac-btn { width: 100%; justify-content: center; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) { .ac-hero-bg img { animation: none; transform: none; } }

/* Formation à la une, sous le héros : carte horizontale */
.ac-featured-band { padding: clamp(40px, 5vw, 72px) 0; }
.ac-featured-band .ac-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.ac-featured-band .ac-feature-media { aspect-ratio: auto; min-height: 320px; }
.ac-featured-band .ac-feature-body { padding: clamp(24px, 3vw, 40px); justify-content: center; }
@media (max-width: 900px) { .ac-featured-band .ac-feature { grid-template-columns: minmax(0, 1fr); } .ac-featured-band .ac-feature-media { aspect-ratio: 16 / 10; min-height: 0; } }
.ac-feature { display: flex; flex-direction: column; border-radius: 18px; background: var(--ac-soft); overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease; min-width: 0; }
.ac-feature:hover { transform: translateY(-4px); box-shadow: var(--ac-shadow); }
.ac-feature-media { position: relative; aspect-ratio: 16 / 10; background: var(--ac-soft-2); overflow: hidden; }
.ac-feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ac-feature:hover .ac-feature-media img { transform: scale(1.03); }
.ac-feature-badge { position: absolute; top: 14px; left: 14px; }
.ac-feature-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; }
.ac-feature-title { font-family: var(--ac-font-head); font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; color: var(--ac-ink); letter-spacing: -0.03em; line-height: 1.05; }
.ac-feature-meta { margin: 8px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.ac-feature-meta div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--ac-line); font-size: 13px; min-width: 0; }
.ac-feature-meta dt { color: var(--ac-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; padding-top: 2px; }
.ac-feature-meta dd { margin: 0; color: var(--ac-ink); font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.ac-feature-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.ac-feature-price { font-family: var(--ac-font-head); font-size: 24px; letter-spacing: -0.02em; }
@media (max-width: 520px) { .ac-feature-meta { grid-template-columns: minmax(0, 1fr); } .ac-btns .ac-btn { flex: 1 1 auto; } }

/* ── Accueil : piliers, étapes, fonctionnalités ───────────────────────── */
.ac-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ac-pillars-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ac-pillar { background: #fff; border-radius: var(--ac-radius); padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ac-section:not(.is-soft) .ac-pillar { background: var(--ac-soft); }
.ac-pillar p { font-size: 15px; color: var(--ac-muted); line-height: 1.7; }
.ac-pillar-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--ac-ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ac-pillar-icon .ac-icon { width: 20px; height: 20px; }
@media (max-width: 1100px) { .ac-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ac-pillars, .ac-pillars-2 { grid-template-columns: minmax(0, 1fr); } }
.ac-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: none; }
.ac-step { position: relative; padding: 28px 24px 26px; border-top: 2px solid var(--ac-ink); background: #fff; border-radius: 0 0 var(--ac-radius) var(--ac-radius); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ac-step p { font-size: 15px; color: var(--ac-muted); line-height: 1.7; }
.ac-step-num { font-family: var(--ac-font-head); font-size: 14px; font-weight: 700; color: var(--ac-accent-text); letter-spacing: .04em; }
@media (max-width: 1100px) { .ac-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ac-steps { grid-template-columns: minmax(0, 1fr); } }
.ac-features { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 22px; }
.ac-features li { display: flex; gap: 16px; align-items: flex-start; }
.ac-features strong { display: block; color: var(--ac-ink); font-size: 16px; margin-bottom: 4px; }
.ac-features p { font-size: 15px; color: var(--ac-muted); line-height: 1.65; }

/* ── Accueil : illustration du lecteur ────────────────────────────────── */
.ac-shot { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--ac-line); box-shadow: var(--ac-shadow); }
.ac-mock { border-radius: 16px; border: 1px solid var(--ac-line); background: #fff; box-shadow: var(--ac-shadow); overflow: hidden; font-size: 12px; min-width: 0; user-select: none; }
.ac-mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--ac-soft); border-bottom: 1px solid var(--ac-line); }
.ac-mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d4d4d4; }
.ac-mock-bar span { margin-left: 10px; padding: 3px 12px; border-radius: 100px; background: #fff; color: var(--ac-faint); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-mock-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); min-height: 340px; }
.ac-mock-side { padding: 18px 16px; border-right: 1px solid var(--ac-line); display: flex; flex-direction: column; gap: 7px; background: #fcfcfb; min-width: 0; }
.ac-mock-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ac-accent-text); }
.ac-mock-ftitle { font-family: var(--ac-font-head); font-size: 14px; color: var(--ac-ink); line-height: 1.2; }
.ac-mock-progress { height: 5px; border-radius: 5px; background: var(--ac-soft-2); overflow: hidden; margin-top: 4px; }
.ac-mock-progress span { display: block; width: 38%; height: 100%; background: var(--ac-ink); }
.ac-mock-small { font-size: 10px; color: var(--ac-faint); margin-bottom: 6px; }
.ac-mock-mod { font-size: 10px; font-weight: 700; color: var(--ac-ink); margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-mock-item { display: flex; align-items: center; gap: 7px; color: var(--ac-muted); font-size: 11px; padding: 4px 6px; border-radius: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ac-mock-item i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #c9c9c9; flex-shrink: 0; }
.ac-mock-item.is-current { background: var(--ac-ink); color: #fff; }
.ac-mock-item.is-current i { border-color: #fff; }
.ac-mock-main { padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.ac-mock-title { font-family: var(--ac-font-head); font-size: 18px; color: var(--ac-ink); line-height: 1.15; margin-bottom: 6px; }
.ac-mock-line { height: 7px; border-radius: 7px; background: var(--ac-soft-2); }
.ac-mock-line.is-short { width: 62%; }
.ac-mock-notes { margin-top: 10px; border: 1px solid var(--ac-line); border-radius: 10px; padding: 12px; display: grid; gap: 6px; background: #fff; }
.ac-mock-notes b { font-size: 11px; color: var(--ac-ink); }
.ac-mock-notes span { color: var(--ac-faint); font-size: 11px; line-height: 1.5; }
.ac-mock-foot { margin-top: auto; display: flex; justify-content: flex-end; padding-top: 10px; }
.ac-mock-btn { padding: 7px 14px; border-radius: 100px; background: var(--ac-ink); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 520px) { .ac-mock-body { grid-template-columns: minmax(0, 1fr); } .ac-mock-side { border-right: 0; border-bottom: 1px solid var(--ac-line); } }

/* ── Formateurs ───────────────────────────────────────────────────────── */
.ac-trainer-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1100px) { .ac-trainer-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ac-trainer-row { grid-template-columns: minmax(0, 1fr); } }
.ac-trainer { display: flex; gap: 16px; align-items: flex-start; padding: 24px; background: #fff; border-radius: var(--ac-radius); text-decoration: none; color: inherit; border: 1px solid var(--ac-line); transition: border-color .2s, box-shadow .2s; min-width: 0; }
a.ac-trainer:hover { border-color: var(--ac-ink); box-shadow: var(--ac-shadow); }
.ac-trainer > div { min-width: 0; display: grid; gap: 6px; }
.ac-trainer-name { font-family: var(--ac-font-head); font-weight: 700; font-size: 18px; color: var(--ac-ink); }
.ac-trainer-role { font-size: 13px; color: var(--ac-accent-text); font-weight: 600; }
.ac-mini-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.ac-mini-list a { color: var(--ac-ink); }
.ac-trainer-cta { padding: 26px; border-radius: var(--ac-radius); background: var(--ac-ink); color: rgba(255, 255, 255, .78); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-width: 0; }
.ac-trainer-cta h2, .ac-trainer-cta h3 { color: #fff; }
.ac-trainer-cta .ac-btn { background: #fff; color: var(--ac-ink); border-color: #fff; margin-top: auto; }
.ac-trainer-cta .ac-btn:hover { background: #f1f1f1; }
.ac-trainer-cta-wide { margin-top: 40px; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ac-trainer-cta-wide > div { max-width: 640px; display: grid; gap: 8px; }
.ac-trainer-cta-wide .ac-btn { margin-top: 0; }
.ac-profile { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

/* ── Tarifs ───────────────────────────────────────────────────────────── */
.ac-price-card { padding: 30px; border-radius: var(--ac-radius); background: var(--ac-soft); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-width: 0; }
.ac-price-card p { color: var(--ac-muted); line-height: 1.7; }
.ac-price-card.is-dark { background: var(--ac-ink); color: rgba(255, 255, 255, .78); }
.ac-price-card.is-dark h3 { color: #fff; }
.ac-price-card.is-dark p { color: rgba(255, 255, 255, .75); }
.ac-flow { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ac-flow li { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border: 1px solid var(--ac-line); border-radius: var(--ac-radius); min-width: 0; }
.ac-flow li > span { width: 40px; height: 40px; border-radius: 10px; background: var(--ac-accent-soft); color: var(--ac-accent-text); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ac-flow strong { display: block; color: var(--ac-ink); margin-bottom: 4px; }
.ac-flow p { font-size: 14px; color: var(--ac-muted); line-height: 1.6; }
@media (max-width: 900px) { .ac-flow { grid-template-columns: minmax(0, 1fr); } }
.ac-methods { margin-top: 28px; display: grid; gap: 12px; }
.ac-methods .ac-chips { list-style: none; margin: 0; padding: 0; }
.ac-methods .ac-chip { font-weight: 500; cursor: default; }
.ac-methods .ac-chip:hover { border-color: var(--ac-line-strong); }

/* ── Organisations, FAQ, appel final ──────────────────────────────────── */
.ac-org { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.ac-org > div:first-child { max-width: 720px; }
.ac-faq { display: grid; gap: 0; border-top: 1px solid var(--ac-line); }
.ac-faq details { border-bottom: 1px solid var(--ac-line); }
.ac-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font-family: var(--ac-font-head); font-weight: 700; font-size: 18px; color: var(--ac-ink); letter-spacing: -0.01em; }
.ac-faq summary::-webkit-details-marker { display: none; }
.ac-faq summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--ac-muted); flex-shrink: 0; }
.ac-faq details[open] summary::after { content: '−'; }
.ac-faq details p { padding: 0 0 22px; color: var(--ac-muted); line-height: 1.75; max-width: 70ch; }
.ac-final-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
@media (max-width: 900px) { .ac-final-in { grid-template-columns: minmax(0, 1fr); } }

/* ── En-têtes de page, catalogue ──────────────────────────────────────── */
.ac-page-head { padding: clamp(32px, 5vw, 64px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--ac-line); }
.ac-page-head .ac-lead { max-width: 70ch; }
.ac-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ac-faint); margin-bottom: 22px; }
.ac-crumbs a { color: var(--ac-muted); text-decoration: none; }
.ac-crumbs a:hover { color: var(--ac-ink); text-decoration: underline; }
.ac-crumbs [aria-current] { color: var(--ac-ink); font-weight: 600; }
.ac-catalog { padding: 32px 0 clamp(56px, 8vw, 96px); }
.ac-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.ac-search { position: relative; flex: 1 1 280px; min-width: 0; display: block; }
.ac-search .ac-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ac-faint); pointer-events: none; }
.ac-search input { width: 100%; min-height: 48px; padding: 10px 16px 10px 44px; border: 1.5px solid var(--ac-line-strong); border-radius: 100px; background: #fff; font-size: 15px; }
.ac-search input:focus { outline: none; border-color: var(--ac-ink); }
.ac-filter { flex: 0 1 220px; min-width: 0; }
.ac-filter .ac-select { min-height: 48px; border-radius: 100px; padding: 10px 40px 10px 16px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; cursor: pointer; }
.ac-count { font-size: 14px; color: var(--ac-muted); margin-bottom: 18px; }
.ac-pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 40px; }
@media (max-width: 640px) { .ac-filter { flex: 1 1 100%; } .ac-filters > .ac-btn { flex: 1 1 100%; } }

/* ── Mon apprentissage, notes ─────────────────────────────────────────── */
.ac-learn { background: #fff; border: 1px solid var(--ac-line); }
.ac-learn .ac-card-title a { color: inherit; }
.ac-notes-list { display: grid; gap: 18px; }
.ac-note-items { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; }
.ac-note-items li { padding: 16px 0; border-top: 1px solid var(--ac-line); display: grid; gap: 4px; }
.ac-note-title { font-weight: 600; color: var(--ac-ink); }
.ac-note-body { white-space: pre-line; color: var(--ac-text); font-size: 15px; margin-top: 6px; overflow-wrap: anywhere; }

/* ── Connexion / inscription ──────────────────────────────────────────── */
.ac-auth { padding: clamp(36px, 6vw, 88px) 0; background: var(--ac-soft); }
.ac-auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ac-auth-card { box-shadow: var(--ac-shadow); border: 0; }
.ac-ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; color: var(--ac-ink); font-weight: 500; }
.ac-ticks li { display: flex; gap: 10px; align-items: center; }
.ac-ticks .ac-icon { color: var(--ac-success); }
.ac-auth .oauth-buttons + .oauth-separator { margin: 20px 0; }
@media (max-width: 900px) { .ac-auth-grid { grid-template-columns: minmax(0, 1fr); } .ac-auth-side .ac-lead { display: none; } .ac-ticks { display: none; } }

/* ── Fiche formation et lecteur (vues partagées formations/*) dans cette mise en page ── */
/* Marges alignées sur l'en-tête de l'Académie ; le lecteur garde sa pleine largeur. */
body.ac-body #lqd-site-content { display: block; }
body.ac-body #lqd-site-content .fd-hero,
body.ac-body #lqd-site-content .fd-body {
    padding-left: max(var(--ac-gutter), calc((100% - var(--ac-max)) / 2 + var(--ac-gutter)));
    padding-right: max(var(--ac-gutter), calc((100% - var(--ac-max)) / 2 + var(--ac-gutter)));
}
body.ac-body #lqd-site-content .fd-page { min-height: 0; }
body.ac-body #lqd-site-content h1, body.ac-body #lqd-site-content h2 { font-family: var(--ac-font-head); }
