/* Vecteur — site, direction « le studio » (même décor que les films).
   Téléphone d'abord (390 × 700), puis tablette (≥ 700 px) et ordinateur (≥ 1100 px). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--fond); color: var(--encre); font-family: var(--large); font-size: 17px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
sup { font-size: .62em; line-height: 0; }
mark { background: var(--bleu); color: #fff; padding: 0 .14em; border-radius: .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ——— Boutons ——— */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 14px 24px; border: 0; border-radius: 12px; background: var(--bleu); color: #fff; font-stretch: 106%; font-weight: 750; font-size: 17.5px; letter-spacing: -0.01em; text-decoration: none; transition: background-color .15s, transform .1s; }
.bouton:active { transform: scale(.985); background: var(--bleu-fonce); }
.bouton:disabled { background: #B9B9C8; }
.bouton-petit { width: auto; min-height: 42px; padding: 9px 18px; font-size: 15.5px; border-radius: 10px; }
.bouton-clair { background: var(--surface); color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--encre); }
.bouton-clair:active { background: var(--fond-2); }
.bouton-blanc { background: #fff; color: var(--bleu); }
.lien { background: none; border: 0; padding: 6px 0; color: var(--encre-2); text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }
@media (hover: hover) {
  .bouton:hover { background: var(--bleu-fonce); }
  .bouton-clair:hover { background: var(--encre); color: #fff; }
  .bouton-blanc:hover { background: var(--encre); color: #fff; }
}

/* ——— En-tête ——— */
.entete { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; height: 58px; padding: 0 18px; background: var(--fond); border-bottom: 1px solid var(--trait); }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-right: auto; }
.logo .symbole { width: 25px; height: 25px; color: var(--bleu); }
.logo span { font-stretch: 118%; font-weight: 800; font-size: 21px; letter-spacing: -0.045em; }
.nav { display: none; }
.entete-rentree { font-size: 14px; color: var(--encre-2); }
.entete-rentree strong { color: var(--encre); }
.entete-cta { display: none; }

/* ——— Accueil ——— */
.hero { padding: 18px 16px 34px; display: grid; gap: 26px; }
.sur { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13.5px; }
.sur b { padding: 4px 10px 5px; border-radius: 6px; background: var(--encre); color: #fff; font-weight: 700; }
.sur span { color: var(--encre-2); font-weight: 600; }
.h1 { font-stretch: 112%; font-weight: 800; font-size: clamp(36px, 10vw, 84px); letter-spacing: -0.045em; line-height: .96; }
.lead { margin-top: 12px; font-size: 16px; line-height: 1.45; color: var(--encre-2); max-width: 40ch; }

.carte-test { margin-top: 18px; padding: 16px 14px 14px; background: var(--surface); border-radius: 20px; box-shadow: var(--ombre-forte); }
.carte-tete { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--trait); }
.carte-titre { display: flex; align-items: center; gap: 9px; font-weight: 750; font-size: 15px; }
.carte-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--bleu); color: #fff; font-size: 13px; font-weight: 800; }
.carte-duree { font-size: 13.5px; color: var(--gris); }
.carte-q { font-stretch: 108%; font-weight: 800; font-size: 22px; letter-spacing: -0.025em; line-height: 1.1; margin: 14px 0 12px; }
.reprise { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 12px; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--bleu-voile); color: var(--bleu-fonce); text-align: left; font-size: 14.5px; }
.reprise b { font-weight: 800; }
.reprise span { color: var(--encre-2); flex: 1; }
.reprise svg { width: 20px; height: 20px; flex: none; }

/* Tuiles de réponse */
.tuiles { display: grid; gap: 8px; }
.tuile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 58px; padding: 11px 46px 11px 14px; text-align: left; background: var(--surface); border: 1.5px solid var(--trait); border-radius: 12px; transition: background-color .15s, border-color .15s, color .15s, transform .1s; }
.tuile b { font-size: 16.5px; font-weight: 700; line-height: 1.2; }
.tuile small { font-size: 13.5px; color: var(--gris); line-height: 1.25; }
.tuile::after { content: ""; position: absolute; right: 12px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 8px; background: var(--fond) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h12M12 6l6 6-6 6' fill='none' stroke='%230E0E14' stroke-width='2.4'/%3E%3C/svg%3E") center / 16px no-repeat; transition: background-color .15s; }
.tuile:active { transform: scale(.985); }
.tuile.choisie, .tuile:focus-visible { background: var(--bleu); border-color: var(--bleu); color: #fff; outline: none; }
.tuile.choisie small, .tuile:focus-visible small { color: rgba(255,255,255,.82); }
.tuile.choisie::after, .tuile:focus-visible::after { background-color: rgba(255,255,255,.95); }
@media (hover: hover) {
  .tuile:hover { border-color: var(--bleu); }
  .tuile:hover::after { background-color: var(--bleu-voile); }
}

.faits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-top: 16px; }
.faits li { position: relative; padding-left: 24px; font-size: 14px; font-weight: 600; color: var(--encre-2); line-height: 1.3; }
.faits li::before { content: ""; position: absolute; left: 0; top: 1px; width: 16px; height: 16px; border-radius: 5px; background: var(--bleu) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3.2'/%3E%3C/svg%3E") center / 12px no-repeat; }

.planche figcaption { margin-top: 12px; font-size: 14.5px; color: var(--encre-2); line-height: 1.4; }
.planche figcaption b { color: var(--encre); }
.planche-video { position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: var(--fond-2); box-shadow: var(--ombre); }
.planche-video video { width: 100%; height: 100%; object-fit: cover; }

/* ——— Chiffres ——— */
.chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--trait); border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.chiffre { padding: 20px 16px; background: var(--surface); }
.c-val { font-stretch: 112%; font-weight: 800; font-size: 32px; letter-spacing: -0.045em; color: var(--bleu); white-space: nowrap; line-height: 1; }
.c-lib { margin-top: 8px; font-size: 13.5px; color: var(--encre-2); line-height: 1.35; }

/* ——— Blocs ——— */
.bloc { padding: 60px 16px; }
.bloc-tete { max-width: 680px; margin-bottom: 28px; }
.num { font-size: 14px; font-weight: 750; color: var(--rouge); margin-bottom: 10px; }
.h2 { font-stretch: 112%; font-weight: 800; font-size: clamp(30px, 8.4vw, 60px); letter-spacing: -0.04em; line-height: .98; }
.bloc-tete > p:not(.num) { margin-top: 14px; color: var(--encre-2); font-size: 16.5px; }
.bloc > .bouton { margin-top: 28px; }
.note { margin-top: 16px; font-size: 13.5px; color: var(--gris); line-height: 1.45; }
.note a { color: var(--bleu); font-weight: 650; }

/* Comment ça marche : téléphones photographiés au studio */
.parcours { background: var(--surface); }
.etapes { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none; }
.etapes::-webkit-scrollbar { display: none; }
.etapes li { scroll-snap-align: start; }
.etape-img { aspect-ratio: 5 / 7; border-radius: 20px; background: var(--fond-2); overflow: hidden; display: grid; place-items: center; }
.etape-img img { width: 100%; height: 100%; object-fit: contain; }
.etape-n { display: grid; place-items: center; width: 28px; height: 28px; margin: 16px 0 8px; border-radius: 8px; background: var(--bleu); color: #fff; font-weight: 800; font-size: 14px; }
.etapes h3 { font-stretch: 108%; font-weight: 800; font-size: 21px; letter-spacing: -0.025em; line-height: 1.1; }
.etapes li > p:last-child { margin-top: 6px; font-size: 15px; color: var(--encre-2); }

/* Le catalogue */
.onglets { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 18px; padding: 0 16px 4px; scrollbar-width: none; }
.onglets::-webkit-scrollbar { display: none; }
.onglet { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 1.5px solid var(--trait); border-radius: 10px; background: var(--surface); font-size: 15px; font-weight: 700; white-space: nowrap; }
.onglet span { font-size: 12.5px; color: var(--gris); font-weight: 700; }
.onglet.actif { background: var(--encre); border-color: var(--encre); color: #fff; }
.onglet.actif span { color: rgba(255,255,255,.65); }
.grille-formations { display: grid; gap: 12px; }
.formation { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 230px; padding: 20px 18px 18px; border-radius: 20px; box-shadow: var(--ombre); text-decoration: none; transition: transform .2s; }
.formation[data-u="data"] { background: var(--surface); color: var(--encre); }
.formation[data-u="data"] .f-nom { color: var(--bleu); }
.formation[data-u="dev"] { background: var(--encre); color: #fff; }
.formation[data-u="cloud"] { background: var(--lavande); color: var(--encre); }
.formation[data-u="cyber"] { background: var(--rouge); color: #fff; }
.f-haut { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.f-univers { font-size: 12.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; opacity: .72; }
.f-niveau { padding: 4px 9px 5px; border-radius: 7px; font-size: 13px; font-weight: 800; background: rgba(14,14,20,.08); }
.formation[data-u="dev"] .f-niveau, .formation[data-u="cyber"] .f-niveau { background: rgba(255,255,255,.18); }
.f-nom { font-stretch: 110%; font-weight: 800; font-size: 27px; letter-spacing: -0.035em; line-height: 1; }
.f-metier { font-size: 15px; line-height: 1.4; opacity: .9; }
.f-meta { font-size: 13.5px; font-weight: 600; opacity: .72; }
.f-sans { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px 6px; border-radius: 7px; font-size: 12.5px; font-weight: 750; background: var(--bleu); color: #fff; }
.formation[data-u="dev"] .f-sans, .formation[data-u="cyber"] .f-sans { background: #fff; color: var(--encre); }
.f-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid currentColor; border-top-color: rgba(127,127,140,.28); }
.f-voir { font-size: 15px; font-weight: 750; text-decoration: none; }
.f-voir::after { content: " →"; }
.f-test { padding: 8px 12px; border-radius: 9px; border: 0; font-size: 14px; font-weight: 750; background: var(--bleu); color: #fff; }
.formation[data-u="dev"] .f-test, .formation[data-u="cyber"] .f-test { background: #fff; color: var(--encre); }
.formation[hidden] { display: none; }
.formation-cta { background: var(--bleu); color: #fff; min-height: 0; }
.formation-cta .f-univers { opacity: .8; }
.formation-cta .f-nom { font-size: 25px; }
.formation-cta .f-test { background: #fff; color: var(--bleu); }

/* Le salaire : simulateur à roues */
.salaire { background: var(--surface); }
.sim { display: grid; gap: 18px; }
.sim-lab { font-size: 14px; font-weight: 750; margin: 0 0 8px; }
.sim-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.sim-btns button { height: 44px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--trait); background: var(--surface); font-size: 15px; font-weight: 700; }
.sim-btns button.actif { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.sim-res { padding: 20px 18px 16px; border-radius: 20px; background: var(--bleu); color: #fff; box-shadow: var(--ombre-forte); }
.sim-res-lab { font-size: 14.5px; font-weight: 650; opacity: .85; }
.sim-val { display: flex; align-items: center; gap: 12px; margin: 12px 0 8px; }
.sim-eur { font-stretch: 110%; font-weight: 800; font-size: 40px; }
.sim-detail { font-size: 14px; opacity: .85; }
.sim-zero { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #fff; color: var(--encre); font-size: 14.5px; font-weight: 650; }
.sim-zero b { font-family: var(--code); font-size: 18px; color: var(--rouge); }
.roues { display: inline-flex; gap: .08em; font-family: var(--code); font-weight: 700; font-size: 58px; line-height: 1; }
.roue { position: relative; width: .86em; height: 1.28em; overflow: hidden; border-radius: .12em; background: #fff; color: var(--encre); }
.roue.vide { width: 0; margin-right: -.08em; background: transparent; }
.roue.vide > span { visibility: hidden; }
.roue > span { display: block; transition: transform .7s cubic-bezier(.2,.9,.25,1); }
.roue > span > i { display: block; height: 1.28em; line-height: 1.28em; text-align: center; font-style: normal; }

/* Sans entreprise : la frise */
.frise { position: relative; display: grid; gap: 22px; padding-left: 34px; max-width: 720px; }
.frise::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--bleu); }
.frise li { position: relative; padding: 16px 16px 16px; background: var(--surface); border-radius: 16px; box-shadow: var(--ombre); }
.frise li::before { content: ""; position: absolute; left: -32px; top: 20px; width: 17px; height: 17px; border-radius: 50%; background: var(--fond); border: 3.5px solid var(--bleu); }
.f-q { font-size: 13.5px; font-weight: 750; color: var(--bleu); margin-bottom: 4px; }
.frise h3 { font-stretch: 108%; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; line-height: 1.15; }
.frise li > p:last-child { margin-top: 5px; font-size: 15px; color: var(--encre-2); }

/* Le rythme */
.rythme { background: var(--surface); }
.calendrier { max-width: 600px; }
.cal-legende { display: flex; gap: 18px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.cal-legende span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border-radius: 3px; }
.cal-e::before { background: var(--bleu); }
.cal-f::before { background: #fff; box-shadow: inset 0 0 0 2px var(--rouge); }
.cal-grille { display: grid; grid-template-columns: 38px repeat(4, 1fr); gap: 6px; align-items: center; }
.cal-mois { font-size: 13px; font-weight: 650; color: var(--gris); }
.cal-sem { height: 48px; border-radius: 9px; display: flex; align-items: flex-end; padding: 6px 8px; font-size: 12px; font-weight: 700; }
.cal-sem.e { background: var(--bleu); color: rgba(255,255,255,.92); }
.cal-sem.f { background: #fff; box-shadow: inset 0 0 0 2px var(--rouge); color: var(--rouge); }
.cal-note { margin-top: 12px; font-size: 13.5px; color: var(--gris); }

/* L'entreprise */
.arguments { display: grid; gap: 10px; }
.arguments > div { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: baseline; padding: 16px; background: var(--surface); border-radius: 16px; box-shadow: var(--ombre); }
.a-val { font-stretch: 112%; font-weight: 800; font-size: 26px; letter-spacing: -0.04em; color: var(--bleu); white-space: nowrap; }
.arguments p:not(.a-val) { font-size: 15px; color: var(--encre-2); }
.entreprise-pied { margin-top: 20px; display: grid; gap: 14px; max-width: 720px; }
.entreprise-pied p { font-size: 15.5px; color: var(--encre-2); }

/* Questions */
.faq { background: var(--surface); }
.questions { max-width: 760px; }
.questions details { border-top: 1px solid var(--trait); }
.questions details:last-child { border-bottom: 1px solid var(--trait); }
.questions summary { list-style: none; position: relative; padding: 18px 44px 18px 0; font-weight: 750; font-size: 17px; cursor: pointer; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: ""; position: absolute; right: 0; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 9px; background: var(--fond) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' fill='none' stroke='%232A2BE6' stroke-width='2.4'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .2s; }
.questions details[open] summary::after { transform: rotate(45deg); }
.questions details p { padding: 0 0 18px; color: var(--encre-2); font-size: 16px; }

/* Toutes les formations */
.atlas-grille { display: grid; gap: 22px; }
.atlas-groupe h3 { font-stretch: 110%; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; margin-bottom: 8px; }
.atlas-groupe a { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--trait); font-size: 15.5px; font-weight: 650; text-decoration: none; }
.atlas-groupe a span { color: var(--gris); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.atlas-groupe a:hover { color: var(--bleu); }
.atlas-guide { margin-top: 26px; }
.atlas-guide a { font-weight: 750; color: var(--bleu); }

/* Fin */
.fin { padding: 64px 16px 72px; background: var(--bleu); color: #fff; display: grid; gap: 16px; }
.fin .num { color: rgba(255,255,255,.75); margin: 0; }
.fin mark { background: #fff; color: var(--bleu); }
.fin > p:not(.num) { color: rgba(255,255,255,.88); max-width: 46ch; }
.fin .bouton { margin-top: 6px; }

/* Pied */
.pied { padding: 30px 16px 120px; background: var(--encre); color: rgba(255,255,255,.72); font-size: 13.5px; display: grid; gap: 18px; }
.pied-haut { display: grid; gap: 14px; }
.pied-logo { display: flex; align-items: center; gap: 8px; color: #fff; font-stretch: 118%; font-weight: 800; font-size: 20px; letter-spacing: -0.045em; }
.pied-logo .symbole { width: 22px; height: 22px; color: #fff; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.pied-liens a { color: #fff; text-decoration: none; font-weight: 600; }

/* Barre d'action sur téléphone */
.barre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--fond); border-top: 1px solid var(--trait); transition: transform .25s; }
.barre.cachee { transform: translateY(110%); }

/* ——— Le test en plein écran ——— */
.flux { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; height: 100%; height: 100dvh; background: var(--fond); }
.flux-haut { flex: none; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; height: 58px; padding: 0 8px; background: var(--fond); border-bottom: 1px solid var(--trait); }
.flux-retour, .flux-fermer { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; padding: 0; border-radius: 10px; }
.flux-retour svg, .flux-fermer svg { width: 22px; height: 22px; }
.flux-retour:disabled { opacity: .25; }
.progres { height: 8px; border-radius: 4px; background: var(--fond-2); overflow: hidden; }
.progres-plein { height: 100%; width: 0; border-radius: 4px; background: var(--bleu); transition: width .35s cubic-bezier(.2,.8,.2,1); }
.flux-corps { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 22px 16px 28px; }
.flux-pied { flex: none; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--fond); border-top: 1px solid var(--trait); }
.flux-pied .bouton { max-width: 560px; margin: 0 auto; display: flex; }
.ecran { max-width: 560px; margin: 0 auto; display: grid; gap: 14px; animation: entree .32s cubic-bezier(.2,.8,.2,1); }
@keyframes entree { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.e-num { font-size: 14px; font-weight: 750; color: var(--rouge); }
.e-q { font-stretch: 110%; font-weight: 800; font-size: clamp(27px, 7.4vw, 40px); letter-spacing: -0.035em; line-height: 1.02; }
.e-pourquoi { font-size: 14.5px; color: var(--encre-2); line-height: 1.4; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.ecran.compact { gap: 10px; }
.ecran.compact .e-q { font-size: clamp(25px, 6.8vw, 36px); }
.ecran.compact .champs { gap: 9px; }
.ecran.compact .champ label { margin-bottom: 3px; font-size: 13.5px; }
.ecran.compact .champ input { height: 48px; }

/* Champs */
.champs { display: grid; gap: 12px; margin-top: 4px; }
.champs .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.champs .duo.tel { grid-template-columns: 1.45fr 1fr; }
.champ label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.champ input { width: 100%; height: 52px; padding: 0 14px; font: inherit; font-size: 17px; background: var(--surface); color: var(--encre); border: 1.5px solid var(--trait); border-radius: 12px; -webkit-appearance: none; appearance: none; }
.champ input:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px var(--bleu-voile); }
.champ.erreur input { border-color: var(--rouge); }
.champ .msg { font-size: 13px; color: var(--rouge); margin-top: 4px; }
.accord { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 13.5px; color: var(--encre-2); line-height: 1.4; padding: 4px 0; }
.accord input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--bleu); }
.accord.erreur { color: var(--rouge); }
.securite { font-size: 13px; color: var(--gris); text-align: center; }

/* Résultat : la fiche */
.fiche { background: var(--surface); border-radius: 20px; overflow: hidden; box-shadow: var(--ombre-forte); }
.fiche-haut { padding: 18px 16px 16px; color: #fff; background: var(--bleu); }
.fiche-haut[data-u="dev"] { background: var(--encre); }
.fiche-haut[data-u="cloud"] { background: var(--lavande); color: var(--encre); }
.fiche-haut[data-u="cyber"] { background: var(--rouge); }
.fiche-sur { font-size: 13.5px; font-weight: 750; opacity: .82; }
.fiche-nom { font-stretch: 110%; font-weight: 800; font-size: 31px; letter-spacing: -0.035em; line-height: 1; margin: 6px 0 8px; }
.fiche-niveau { font-size: 14.5px; opacity: .9; }
.fiche-trace { display: block; width: 100%; height: auto; background: var(--fond); }
.fiche dl { margin: 0; }
.fiche dl > div { display: grid; grid-template-columns: 108px 1fr; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--trait); font-size: 15px; line-height: 1.35; }
.fiche dt { color: var(--gris); font-size: 13.5px; padding-top: 1px; }
.fiche dd { margin: 0; }
.fiche dd b { font-weight: 750; }
.fiche .zero { color: var(--rouge); font-weight: 750; }
.fiche-note { padding: 12px 16px; background: var(--fond); font-size: 14px; color: var(--encre-2); }
.merci-ref { font-family: var(--code); font-size: 14px; color: var(--encre-2); }
.suite { display: grid; gap: 10px; counter-reset: s; }
.suite li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 8px; font-size: 15.5px; }
.suite li::before { content: counter(s); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--bleu); color: #fff; font-weight: 800; font-size: 13px; }

/* Tracé A → B (résultat) */
.trace-ligne { fill: none; stroke: var(--bleu); stroke-width: 5; stroke-linecap: round; animation: tracer 1.1s .35s cubic-bezier(.6,0,.2,1) forwards; }
.trace-tete { fill: var(--bleu); opacity: 0; animation: tete .2s 1.35s forwards; }
.trace-l { font-family: var(--large); font-size: 15px; font-weight: 700; fill: var(--encre); }
@keyframes tracer { to { stroke-dashoffset: 0; } }
@keyframes tete { to { opacity: 1; } }

/* Bandeau de consentement (mesure.js) */
.cookies { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--encre); color: #fff; font-size: 13.5px; line-height: 1.4; box-shadow: var(--ombre-forte); }
.cookies b { font-weight: 750; }
.cookies div { display: flex; gap: 8px; }
.cookies button { flex: 1; height: 40px; border-radius: 10px; border: 0; font-weight: 750; font-size: 14.5px; }
.cookies [data-choix="non"] { background: rgba(255,255,255,.12); color: #fff; }
.cookies [data-choix="oui"] { background: #fff; color: var(--encre); }
.flux:not([hidden]) ~ .cookies, html.flux-ouvert .cookies { bottom: calc(86px + env(safe-area-inset-bottom)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ——— Écrans de téléphone plus hauts ——— */
@media (min-height: 760px) and (max-width: 699px) {
  .hero { padding-top: 24px; }
  .lead { margin-top: 14px; }
}

/* ——— Tablette ——— */
@media (min-width: 700px) {
  .entete { height: 66px; padding: 0 32px; }
  .entete-cta { display: inline-flex; }
  .hero { padding: 40px 32px 56px; }
  .carte-test { padding: 22px 20px 18px; max-width: 560px; }
  .carte-q { font-size: 25px; }
  .chiffres { grid-template-columns: repeat(4, 1fr); }
  .chiffre { padding: 26px 28px; }
  .c-val { font-size: 40px; }
  .bloc { padding: 88px 32px; }
  .fin { padding: 96px 32px 104px; }
  .bouton { width: auto; min-width: 260px; }
  .etapes { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: 22px; }
  .grille-formations { grid-template-columns: 1fr 1fr; gap: 16px; }
  .formation-cta { grid-column: span 2; }
  .sim { grid-template-columns: 1fr 1fr; align-items: start; gap: 32px; max-width: 980px; }
  .arguments { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .arguments > div { grid-template-columns: 1fr; gap: 6px; padding: 22px; }
  .a-val { font-size: 38px; }
  .atlas-grille { grid-template-columns: 1fr 1fr; gap: 28px 40px; }
  .pied { padding: 40px 32px; }
  .pied-haut { grid-template-columns: auto 1fr; align-items: center; }
  .pied-liens { justify-content: flex-end; }
  .barre { display: none; }
  .flux-corps { padding: 44px 24px 40px; }
  .ecran .tuiles.deux { grid-template-columns: 1fr 1fr; }
  .ecran .bouton { width: 100%; }
  .cookies { left: auto; right: 24px; bottom: 24px; max-width: 420px; }
}

/* ——— Ordinateur ——— */
@media (min-width: 1100px) {
  .nav { display: flex; gap: 26px; margin-right: 10px; }
  .nav a { font-size: 15px; font-weight: 650; text-decoration: none; color: var(--encre-2); }
  .nav a:hover { color: var(--bleu); }
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; padding: 56px max(48px, calc((100vw - 1240px) / 2)) 72px; }
  .planche { position: relative; }
  .bloc, .fin { padding-left: max(48px, calc((100vw - 1240px) / 2)); padding-right: max(48px, calc((100vw - 1240px) / 2)); }
  .chiffres { padding: 0 max(48px, calc((100vw - 1240px) / 2)); background: var(--surface); gap: 0; }
  .chiffre + .chiffre { border-left: 1px solid var(--trait); }
  .grille-formations { grid-template-columns: repeat(4, 1fr); }
  .formation-cta { grid-column: span 2; }
  .f-nom { font-size: 25px; }
  .frise { grid-template-columns: 1fr 1fr; max-width: none; padding-left: 0; gap: 18px; }
  .frise::before, .frise li::before { display: none; }
  .rythme { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .rythme .bloc-tete { margin: 0; }
  .atlas-grille { grid-template-columns: repeat(4, 1fr); }
}

/* ——— Pages formation et guide ——— */
.fil { padding: 14px 16px 0; font-size: 13.5px; color: var(--gris); }
.fil a { color: var(--encre-2); text-decoration: none; font-weight: 600; }
.fil a:hover { color: var(--bleu); }
.pf-hero { margin: 14px 16px 0; padding: 24px 20px 22px; border-radius: 24px; box-shadow: var(--ombre-forte); }
.pf-hero[data-u="data"] { background: var(--surface); }
.pf-hero[data-u="data"] h1 { color: var(--bleu); }
.pf-hero[data-u="dev"] { background: var(--encre); color: #fff; }
.pf-hero[data-u="cloud"] { background: var(--lavande); }
.pf-hero[data-u="cyber"] { background: var(--rouge); color: #fff; }
.pf-hero .f-univers { display: block; margin-bottom: 10px; }
.pf-hero h1 { font-stretch: 112%; font-weight: 800; font-size: clamp(34px, 9vw, 68px); letter-spacing: -0.045em; line-height: .98; }
.pf-hero .pf-sous { margin-top: 12px; font-size: 16.5px; line-height: 1.45; opacity: .92; max-width: 48ch; }
.pf-faits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pf-faits span { padding: 6px 10px 7px; border-radius: 8px; font-size: 13.5px; font-weight: 750; background: rgba(14,14,20,.08); }
.pf-hero[data-u="dev"] .pf-faits span, .pf-hero[data-u="cyber"] .pf-faits span { background: rgba(255,255,255,.16); }
.pf-cta { display: grid; gap: 10px; margin-top: 20px; }
.pf-hero[data-u="dev"] .bouton, .pf-hero[data-u="cyber"] .bouton { background: #fff; color: var(--encre); }
.pf-corps { display: grid; gap: 14px; padding: 18px 16px 60px; }
.pf-carte { padding: 20px 18px; background: var(--surface); border-radius: 20px; box-shadow: var(--ombre); }
.pf-carte h2 { font-stretch: 110%; font-weight: 800; font-size: 23px; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 10px; }
.pf-carte p, .pf-carte li { font-size: 15.5px; color: var(--encre-2); }
.pf-carte ul.puces li { position: relative; padding: 7px 0 7px 22px; border-top: 1px solid var(--trait); }
.pf-carte ul.puces li:first-child { border-top: 0; }
.pf-carte ul.puces li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 9px; height: 9px; border-radius: 3px; background: var(--bleu); }
.pf-outils { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pf-outils span { padding: 5px 9px; border-radius: 7px; background: var(--fond); font-family: var(--code); font-size: 13px; color: var(--encre-2); }
.pf-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pf-table th { text-align: right; font-size: 13px; font-weight: 650; color: var(--gris); padding: 6px 0 6px 10px; }
.pf-table th:first-child, .pf-table td:first-child { text-align: left; padding-left: 0; }
.pf-table td { text-align: right; padding: 10px 0 10px 10px; border-top: 1px solid var(--trait); font-family: var(--code); font-size: 14.5px; white-space: nowrap; }
.pf-carte:has(.pf-table) { overflow-x: auto; }
@media (max-width: 420px) { .pf-table td { font-size: 12.5px; } .pf-table th { font-size: 12px; } .pf-table td:first-child { white-space: normal; font-size: 13.5px; } }
.pf-table td:first-child { font-family: var(--large); font-weight: 650; }
.pf-oui { color: var(--bleu); font-weight: 800; }
.pf-non { color: var(--encre); font-weight: 800; }
.pf-autres { display: grid; gap: 10px; }
.pf-autres a { display: flex; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--fond); text-decoration: none; font-weight: 700; }
.pf-autres a span { color: var(--gris); font-weight: 600; font-size: 14px; }
.guide-txt { max-width: 760px; }
.guide-txt h2 { font-stretch: 110%; font-weight: 800; font-size: 26px; letter-spacing: -0.03em; margin: 34px 0 10px; }
.guide-txt p { font-size: 16.5px; color: var(--encre-2); margin-bottom: 12px; }
.guide-txt .pf-carte { margin: 16px 0; }
@media (min-width: 700px) {
  .fil { padding: 20px 32px 0; }
  .pf-hero { margin: 16px 32px 0; padding: 40px 40px 36px; }
  .pf-cta { grid-auto-flow: column; justify-content: start; }
  .pf-corps { grid-template-columns: 1fr 1fr; gap: 18px; padding: 22px 32px 88px; }
  .pf-carte.large { grid-column: 1 / -1; }
  .pf-autres { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .fil, .pf-corps { padding-left: max(48px, calc((100vw - 1240px) / 2)); padding-right: max(48px, calc((100vw - 1240px) / 2)); }
  .pf-hero { margin-left: max(48px, calc((100vw - 1240px) / 2)); margin-right: max(48px, calc((100vw - 1240px) / 2)); }
  .pf-corps { grid-template-columns: repeat(3, 1fr); }
  .pf-carte.double { grid-column: span 2; }
}

/* ——— Mouvement (anim.js) : transform et opacity seulement ———
   Les états cachés n'existent que sous html.anim (posé par anim.js) : sans JavaScript, tout est visible. */
.anim .m { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .05em .12em; margin: 0 -.05em -.12em; }
.anim .mi { display: inline-block; transform: translate3d(0, 112%, 0) rotate(4deg); transform-origin: 0 100%; transition: transform 1s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * 45ms); }
.anim .vu .mi { transform: none; }
.anim .h1 mark, .anim .h2 mark { background: linear-gradient(var(--bleu), var(--bleu)) no-repeat 0 0 / 0% 100%; color: inherit; transition: background-size .75s cubic-bezier(.65, 0, .35, 1), color .2s; transition-delay: calc(var(--i, 0) * 45ms + 420ms); }
.anim .vu mark { background-size: 100% 100%; color: #fff; }
.anim .fin .h2 mark { background-image: linear-gradient(#fff, #fff); }
.anim .fin .vu mark { color: var(--bleu); }

.anim [data-r]:not(.vu) { opacity: 0; }
.anim [data-r].vu { animation: monte 1s cubic-bezier(.16, 1, .3, 1) var(--d, 0ms) backwards; }
@keyframes monte { from { opacity: 0; transform: translate3d(0, 28px, 0); } to { opacity: 1; transform: none; } }
.hero .lead { --d: 260ms; } .hero .carte-test { --d: 380ms; } .hero .faits { --d: 540ms; } .hero .planche { --d: 300ms; }
.anim .hero .carte-test.vu { animation-name: monteCarte; animation-duration: 1.1s; }
@keyframes monteCarte { from { opacity: 0; transform: translate3d(0, 40px, 0) scale(.97); } to { opacity: 1; transform: none; } }
.anim .hero .planche.vu { animation-name: monteImage; animation-duration: 1.4s; }
@keyframes monteImage { from { opacity: 0; transform: translate3d(0, 50px, 0) scale(.94); } to { opacity: 1; transform: none; } }

/* chiffres à rouleaux */
.c-val { font-variant-numeric: tabular-nums; }
.c-val .rl { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; }
.c-val .rl > span { display: block; transition: transform 1.4s cubic-bezier(.16, 1, .3, 1); }
.c-val .rl i { display: block; height: 1em; line-height: 1; font-style: normal; text-align: center; }

/* calendrier qui se remplit, frise qui se trace */
.anim .cal-grille:not(.vu) .cal-sem { opacity: 0; }
.anim .cal-grille.vu .cal-sem { animation: caseCal .55s cubic-bezier(.16, 1, .3, 1) var(--d, 0ms) backwards; }
@keyframes caseCal { from { opacity: 0; transform: scale(.86) translateY(8px); } to { opacity: 1; transform: none; } }
.anim .frise::before { transform: scaleY(0); transform-origin: 50% 0; transition: transform 1.6s cubic-bezier(.65, 0, .35, 1) .2s; }
.anim .frise.vu::before { transform: none; }

/* en-tête posé, boutons, cartes */
.entete { transition: box-shadow .3s, border-color .3s; }
.entete.posee { border-bottom-color: transparent; box-shadow: 0 8px 28px rgba(14, 14, 40, .07); }
.bouton, .onglet, .sim-btns button, .f-test { position: relative; overflow: hidden; isolation: isolate; }
.bouton { transition: background-color .15s, transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; }
.onde { position: absolute; z-index: -1; border-radius: 50%; background: currentColor; opacity: .16; transform: scale(0); pointer-events: none; animation: onde .65s cubic-bezier(.2, .7, .2, 1) forwards; }
.bouton .onde, .formation-cta .f-test .onde { background: #fff; opacity: .28; }
.tuile .onde { z-index: 0; }
@keyframes onde { to { transform: scale(1); opacity: 0; } }
@media (hover: hover) {
  .bouton:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(42, 43, 230, .22); }
  .formation { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
  .formation:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(14, 14, 40, .14); }
  .tuile { transition: background-color .15s, border-color .15s, color .15s, transform .25s cubic-bezier(.2, .7, .2, 1); }
  .tuile:hover { transform: translateX(3px); }
}
.questions details { overflow: hidden; }

/* planche de l'accueil : relief au défilement (JS) et inclinaison sous la souris (ordinateur) */
.planche { will-change: transform; }
.planche-video { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }

/* ——— L'anneau des formations en 3D ——— */
.anneau { --R: 330px; position: relative; height: 250px; margin: -6px -16px 20px; perspective: 1000px; perspective-origin: 50% 35%; touch-action: pan-y; -webkit-user-select: none; user-select: none; cursor: grab; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.anneau:active { cursor: grabbing; }
.anneau::after { content: ""; position: absolute; left: 50%; bottom: 14px; width: 70%; height: 28px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(14, 14, 40, .16), rgba(14, 14, 40, 0)); pointer-events: none; }
.anneau-rot { position: absolute; left: 50%; top: 46%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.a-carte { position: absolute; left: -96px; top: -62px; width: 192px; height: 124px; padding: 13px 14px 12px; border-radius: 15px; display: flex; flex-direction: column; text-decoration: none; transform: rotateY(var(--a)) translateZ(var(--R)); backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 16px 34px rgba(14, 14, 40, .16), inset 0 0 0 1px rgba(14, 14, 40, .06); -webkit-user-drag: none; transition: box-shadow .3s; }
.a-carte[data-u="data"] { background: #fff; color: var(--bleu); }
.a-carte[data-u="dev"] { background: var(--encre); color: #fff; }
.a-carte[data-u="cloud"] { background: var(--lavande); color: var(--encre); }
.a-carte[data-u="cyber"] { background: var(--rouge); color: #fff; }
.a-u { font-size: 11.5px; font-weight: 750; opacity: .72; }
.a-nom { margin-top: 8px; font-stretch: 110%; font-weight: 800; font-size: 20px; line-height: 1; letter-spacing: -0.035em; }
.a-niv { margin-top: auto; font-size: 12px; font-weight: 650; opacity: .78; }
.a-v { position: absolute; right: 12px; bottom: 11px; width: 18px; height: 18px; }
.a-carte.devant { box-shadow: 0 26px 48px rgba(14, 14, 40, .24), inset 0 0 0 1px rgba(14, 14, 40, .06); }
@media (min-width: 700px) { .anneau { --R: 470px; height: 300px; margin: 0 -32px 26px; } .a-carte { left: -120px; top: -76px; width: 240px; height: 152px; padding: 16px 18px; } .a-nom { font-size: 25px; } }
@media (min-width: 1100px) { .anneau { --R: 560px; margin-left: calc(-1 * max(48px, (100vw - 1240px) / 2)); margin-right: calc(-1 * max(48px, (100vw - 1240px) / 2)); } }

/* ——— Le test : les écrans glissent dans le sens de la marche, leur contenu arrive en cascade ——— */
.ecran { animation: entreeD .5s cubic-bezier(.16, 1, .3, 1) both; }
[data-sens="arriere"] > .ecran { animation-name: entreeG; }
@keyframes entreeD { from { opacity: 0; transform: translate3d(40px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes entreeG { from { opacity: 0; transform: translate3d(-40px, 0, 0); } to { opacity: 1; transform: none; } }
.ecran > .e-q, .ecran > .e-pourquoi, .ecran .tuile, .ecran .champ, .ecran .accord, .ecran > .fiche, .fiche dl > div { animation: monteP .55s cubic-bezier(.16, 1, .3, 1) backwards; }
.ecran > .e-q { animation-delay: 40ms; }
.ecran > .e-pourquoi { animation-delay: 90ms; }
.ecran .tuile:nth-child(1), .ecran .champs > :nth-child(1) { animation-delay: 130ms; }
.ecran .tuile:nth-child(2), .ecran .champs > :nth-child(2) { animation-delay: 175ms; }
.ecran .tuile:nth-child(3), .ecran .champs > :nth-child(3) { animation-delay: 220ms; }
.ecran .tuile:nth-child(4), .ecran .champs > :nth-child(4) { animation-delay: 265ms; }
.ecran .tuile:nth-child(5), .ecran .champs > :nth-child(5) { animation-delay: 310ms; }
.ecran > .fiche { animation-name: fiche; animation-duration: .8s; animation-delay: 60ms; }
.fiche dl > div:nth-child(1) { animation-delay: 380ms; } .fiche dl > div:nth-child(2) { animation-delay: 430ms; } .fiche dl > div:nth-child(3) { animation-delay: 480ms; } .fiche dl > div:nth-child(4) { animation-delay: 530ms; } .fiche dl > div:nth-child(5) { animation-delay: 580ms; }
@keyframes monteP { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes fiche { from { opacity: 0; transform: translate3d(0, 26px, 0) scale(.96); } to { opacity: 1; transform: none; } }
.tuile.choisie { animation: choisie .32s cubic-bezier(.2, .7, .2, 1); }
@keyframes choisie { 40% { transform: scale(.975); } }
.flux:not([hidden]) { animation: fluxEntre .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes fluxEntre { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .anneau-rot { transition: none; }
  .planche, .planche-video { transform: none !important; }
}
