/* EBoostMe : accueil de la plateforme (5 nov. 2026). Pleine largeur, mobile d'abord, mouvement au défilement.
   Remplace hero.css / boutique.css pour la page d'accueil uniquement. */
:root { --h-max: 1560px; --h-pad: clamp(1rem, 4.2vw, 4.5rem); --papier: #fbfaf6; }
html, body { overflow-x: clip; }
body.central { background: var(--papier); }
.h-wrap { width: 100%; max-width: var(--h-max); margin: 0 auto; padding-inline: var(--h-pad); }

/* En-tête */
body.central header.site { background: rgba(251, 250, 246, .92); backdrop-filter: blur(8px); border-bottom: 1px solid #e8e5dc; }
body.central header.site .h-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.2rem; }
body.central header.site nav { display: flex; align-items: center; gap: .3rem 1.6rem; font-weight: 600; font-size: .95rem; }
body.central header.site nav a { text-decoration: none; color: var(--accent); padding: .4rem 0; position: relative; }
body.central header.site nav a:not(.cta-nav)::after { content: ""; position: absolute; left: 0; bottom: .15rem; height: 2px; width: 100%; background: var(--pop); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
body.central header.site nav a:not(.cta-nav):hover::after { transform: scaleX(1); }
body.central header.site nav .cta-nav { background: var(--accent); color: #fff; padding: .55rem 1.1rem; border-radius: 99px; }
@media (max-width: 560px) { body.central header.site nav .cache-mobile { display: none; } }

/* Hero */
.h-hero { position: relative; overflow: hidden; border-bottom: 1px solid #e8e5dc; }
.h-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#ece8dc 1px, transparent 1px), linear-gradient(90deg, #ece8dc 1px, transparent 1px); background-size: 64px 64px; opacity: .55; -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); }
.h-grid { position: relative; display: grid; gap: .5rem; align-items: center; padding-block: clamp(2rem, 5vw, 5rem) clamp(1.5rem, 4vw, 4rem); }
@media (min-width: 960px) { .h-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 2rem; } }
.h-texte h1 { font-size: clamp(2.3rem, 5.4vw, 4.7rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; margin: 0 0 1.2rem; text-wrap: balance; color: var(--texte); }
.h-texte h1 .l { display: block; }
.h-texte h1 .mot { white-space: nowrap; }
.h-texte .chapeau { font-size: clamp(1.02rem, 1.6vw, 1.3rem); max-width: 34rem; margin: 0 0 1.8rem; color: var(--doux); }
.h-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.h-actions .bouton { margin: 0; padding: 1.05rem 1.9rem; font-size: 1.05rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .6rem; }
.h-actions .bouton.second { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.h-actions .bouton.second:hover { background: var(--accent); color: #fff; }
@media (max-width: 480px) { .h-actions .bouton { width: 100%; justify-content: center; } }
.h-preuve { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 1.6rem 0 0; padding: 0; list-style: none; font-weight: 700; color: var(--accent); font-size: .95rem; }
.h-preuve li { display: inline-flex; align-items: center; gap: .5rem; }
.h-preuve li::before { content: ""; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--pop) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='%2315294B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; flex: none; }
/* Entrée du texte du héros, ligne par ligne, depuis la gauche */
.js .h-texte > * { opacity: 0; transform: translateX(-42px); animation: h-in .8s cubic-bezier(.2, .8, .2, 1) forwards; }
.js .h-texte > *:nth-child(1) { animation-delay: .05s; } .js .h-texte > *:nth-child(2) { animation-delay: .2s; } .js .h-texte > *:nth-child(3) { animation-delay: .35s; } .js .h-texte > *:nth-child(4) { animation-delay: .5s; }
@keyframes h-in { to { opacity: 1; transform: none; } }

/* Scène : pile de livres en 3D, attestation qui arrive de la gauche, carte de formation */
.h-scene { --rx: 0deg; --ry: 0deg; --sy: 0deg; position: relative; height: clamp(330px, 44vw, 600px); width: 100%; }
.h-disque { position: absolute; left: 50%; top: 52%; width: min(78%, 520px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--pop); opacity: .92; animation: h-respire 8s ease-in-out infinite alternate; }
@keyframes h-respire { to { transform: translate(-50%, -50%) scale(1.045); } }
.h-anneau { position: absolute; left: 50%; top: 52%; width: min(98%, 640px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 2px dashed #c8c2ad; animation: h-tourne 60s linear infinite; }
@keyframes h-tourne { to { transform: translate(-50%, -50%) rotate(360deg); } }
.h-pile { position: absolute; left: 50%; top: 55%; width: min(100%, 560px); transform: translate(-50%, -50%) translate(var(--mx, 0px), var(--my, 0px)); transition: transform .3s ease-out; }
.h-pile svg { display: block; width: 100%; height: auto; overflow: visible; animation: h-flotte 6s ease-in-out infinite alternate; }
@keyframes h-flotte { from { translate: 0 6px; } to { translate: 0 -12px; } }
.h-pile .lv { animation: lv-arrive .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * .16s + .25s); }
@keyframes lv-arrive { from { opacity: 0; transform: translate(-160px, -40px); } to { opacity: 1; transform: none; } }
.h-pile .signet { transform-box: fill-box; transform-origin: top; animation: signet 3s 1.6s ease-in-out infinite alternate; }
@keyframes signet { to { transform: skewY(6deg) scaleY(1.08); } }
.h-ombre { display: none; position: absolute; left: 50%; top: 82%; width: 60%; height: 7%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(21,41,75,.28), transparent); filter: blur(4px); }

.h-att { position: absolute; left: 0; top: 4%; width: min(52%, 330px); aspect-ratio: 1.5; background: #fff; border: 1px solid #d9d4c3; border-radius: 6px; box-shadow: 0 30px 50px -28px rgba(21,41,75,.55); padding: .9rem 1rem; transform-origin: 20% 80%; animation: att 9s cubic-bezier(.2,.8,.2,1) infinite; z-index: 3; }
.h-att::before { content: ""; position: absolute; inset: 7px; border: 1.5px solid var(--accent); border-radius: 3px; opacity: .85; }
.h-att small { display: block; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--doux); font-weight: 700; }
.h-att strong { display: block; font-size: clamp(.8rem, 1.3vw, 1.02rem); line-height: 1.15; color: var(--accent); margin: .2rem 0 .5rem; font-weight: 800; }
.h-att .ligne { height: 5px; background: #e6e9f0; border-radius: 3px; margin: .3rem 0; }
.h-att .ligne.c { width: 62%; background: #cfd7e6; } .h-att .ligne.m { width: 80%; }
.h-att .sceau { position: absolute; right: 1rem; bottom: .8rem; width: 2.5rem; aspect-ratio: 1; border-radius: 50%; background: var(--pop); display: grid; place-items: center; animation: sceau 9s cubic-bezier(.2,.8,.2,1) infinite; }
.h-att .sceau::after { content: ""; width: 55%; height: 30%; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg) translate(1px, -2px); }
.h-att .qr { position: absolute; left: 1rem; bottom: .8rem; width: 2.4rem; aspect-ratio: 1; background: conic-gradient(var(--accent) 25%, #fff 0 50%, var(--accent) 0 75%, #fff 0) 0 0 / 8px 8px; border: 3px solid var(--accent); border-radius: 2px; }
.h-att .num { position: absolute; left: 4rem; bottom: .95rem; font-size: .62rem; font-weight: 700; color: var(--doux); }
@keyframes att { 0% { opacity: 0; transform: translate(-140px, 30px) rotate(-14deg); } 10%, 82% { opacity: 1; transform: translate(0, 0) rotate(-5deg); } 92%, 100% { opacity: 0; transform: translate(40px, -10px) rotate(-3deg); } }
@keyframes sceau { 0%, 14% { transform: scale(0) rotate(-40deg); } 22% { transform: scale(1.35) rotate(8deg); } 28%, 100% { transform: scale(1) rotate(0); } }

.h-mini { position: absolute; right: 0; bottom: 3%; width: min(46%, 270px); background: #fff; border-radius: 14px; border: 1px solid #e2ddcc; box-shadow: 0 28px 44px -26px rgba(21,41,75,.55); overflow: hidden; z-index: 3; animation: h-mini-in 1s .8s cubic-bezier(.2,.8,.2,1) both, h-flotte 5s 2s ease-in-out infinite alternate; }
@keyframes h-mini-in { from { opacity: 0; translate: -160px 40px; } to { opacity: 1; translate: 0 0; } }
.h-mini img, .h-mini .vide { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; background: #dce6fb; }
.h-mini div { padding: .6rem .75rem .75rem; }
.h-mini b { display: block; font-size: .8rem; line-height: 1.25; color: var(--accent); }
.h-mini span { font-size: .78rem; font-weight: 800; color: var(--texte); }
.h-mini span s { color: var(--doux); font-weight: 600; margin-left: .35rem; }
@media (max-width: 959px) { .h-scene { max-width: 560px; margin: 0 auto; } .h-att { left: 0; width: 50%; } .h-mini { width: 44%; } }

/* Bandeau de chiffres réels */
.h-chiffres { display: flex; flex-wrap: wrap; gap: .4rem 2.6rem; padding-block: 1.1rem; font-size: .95rem; color: var(--doux); }
.h-chiffres b { font-size: 1.5rem; color: var(--accent); margin-right: .4rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* Section formations */
.h-section { padding-block: clamp(2rem, 4vw, 3.5rem); }
.h-titre { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.h-titre h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); letter-spacing: -.03em; margin: 0; line-height: 1.05; font-weight: 800; position: relative; padding-bottom: .5rem; }
.h-titre h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 3.2rem; height: 5px; border-radius: 3px; background: var(--pop); transform-origin: left; }
.js .h-titre.vu h2::after { animation: souligne .8s .25s cubic-bezier(.2,.8,.2,1) both; }
.h-recherche { position: relative; flex: 1 1 22rem; max-width: 36rem; }
.h-recherche input { width: 100%; padding: 1rem 3.4rem 1rem 3rem; border: 2px solid #d9d4c3; border-radius: 999px; background: #fff; font-size: 1.05rem; transition: border-color .2s ease, box-shadow .2s ease; }
.h-recherche input:focus { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(21, 41, 75, .1); outline: 0; }
.h-recherche svg { position: absolute; left: 1.1rem; top: 50%; width: 1.25rem; height: 1.25rem; transform: translateY(-50%); stroke: var(--doux); fill: none; stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.h-recherche button { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 2.7rem; height: 2.7rem; border-radius: 50%; border: 0; background: var(--pop); color: var(--accent); cursor: pointer; font-weight: 800; }
.h-recherche button svg { position: static; transform: none; stroke: var(--accent); }
.h-rub { display: flex; flex-wrap: wrap; gap: .2rem 1.3rem; margin: 0 0 1.4rem; font-size: .9rem; }
.h-rub a { text-decoration: none; color: var(--doux); padding: .25rem 0; border-bottom: 2px solid transparent; font-weight: 600; transition: color .2s ease, border-color .2s ease; }
.h-rub a:hover { color: var(--accent); }
.h-rub a[aria-current="true"] { color: var(--accent); border-color: var(--pop); }
.h-sug { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.h-sug a { text-decoration: none; background: var(--accent); color: #fff; border-radius: 99px; padding: .4rem .9rem; font-size: .86rem; font-weight: 600; }
.h-sug a:hover { background: var(--accent-fonce); }
.h-sug[hidden], .h-rien[hidden], li[hidden] { display: none !important; }
.h-rien { padding: 2.5rem 0; color: var(--doux); font-size: 1.05rem; }

/* Grille de cartes : 2 par ligne sur téléphone, 3 puis 4 sur grand écran, couvertures bien visibles */
.h-cartes { display: grid; gap: clamp(.7rem, 1.8vw, 1.8rem); grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .h-cartes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .h-cartes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cf { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: 18px; border: 1px solid #e6e2d4; overflow: hidden; text-decoration: none; color: inherit; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .2s ease; }
.cf:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(21, 41, 75, .5); border-color: #c9c2a8; }
.cf-couv { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e8eefb; }
.cf-couv img { width: 100%; height: 100% !important; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.cf:hover .cf-couv img { transform: scale(1.06); }
.cf-vide { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, #e8eefb, #c9d7f6); color: var(--accent); font-weight: 800; font-size: 1.4rem; padding: 1rem; text-align: center; }
.cf-puce { position: absolute; left: .7rem; top: .7rem; background: #d62f2f; color: #fff; font-weight: 800; font-size: .78rem; padding: .22rem .65rem; border-radius: 99px; }
.cf-puce.badge { background: var(--accent); }
.cf-corps { padding: .85rem 1rem 1.05rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.cf-meta { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf h3 { margin: 0; font-size: clamp(.95rem, 1.25vw, 1.15rem); line-height: 1.25; letter-spacing: -.01em; color: var(--texte); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cf-res { margin: 0; font-size: .88rem; color: var(--doux); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cf-bas { margin-top: auto; padding-top: .55rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .6rem; }
.cf-bas strong { font-size: 1.15rem; color: var(--accent); letter-spacing: -.01em; }
.cf-bas s { color: var(--doux); font-size: .85rem; }
.cf-type { margin-left: auto; font-size: .74rem; font-weight: 700; color: var(--accent); background: #fff2cc; padding: .15rem .55rem; border-radius: 99px; }
@media (max-width: 759px) { .cf { border-radius: 14px; } .cf-res { display: none; } .cf-corps { padding: .65rem .7rem .8rem; } .cf-type { display: none; } .cf-meta { font-size: .66rem; } }

/* Logos des écoles : défilement continu, on peut glisser */
.h-logos { margin-top: clamp(2.2rem, 5vw, 4rem); }
.h-logos > p { margin: 0 0 1rem; color: var(--doux); font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.h-defile { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); touch-action: pan-x pan-y; }
.h-defile::-webkit-scrollbar { display: none; }
.h-defile.glisse { cursor: grabbing; user-select: none; }
.h-piste { display: flex; align-items: center; gap: clamp(2rem, 5vw, 4.5rem); width: max-content; padding: .6rem 2rem; }
.h-piste a, .h-piste span { display: flex; align-items: center; justify-content: center; height: clamp(3.2rem, 7vw, 4.6rem); min-width: 6rem; filter: grayscale(1); opacity: .65; transition: filter .3s ease, opacity .3s ease, transform .3s ease; }
.h-piste a:hover, .h-piste span:hover { filter: none; opacity: 1; transform: scale(1.06); }
.h-piste img { height: 100%; width: auto; max-width: 11rem; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }

/* Appel : école ou formateur indépendant */
.h-appel { display: grid; gap: 1rem; margin: clamp(2.2rem, 5vw, 4.5rem) 0; }
@media (min-width: 860px) { .h-appel { grid-template-columns: 1fr 1fr; } }
.h-appel > div { position: relative; overflow: hidden; border-radius: 24px; padding: clamp(1.5rem, 3vw, 2.6rem); }
.h-appel .ecole { background: var(--accent); color: #fff; }
.h-appel .formateur { background: #fff; border: 2px solid var(--accent); color: var(--texte); }
.h-appel h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.02em; margin: 0 0 .6rem; line-height: 1.15; color: inherit; }
.h-appel p { max-width: 30rem; margin: 0 0 1.3rem; }
.h-appel .ecole p { color: #d6def0; } .h-appel .formateur p { color: var(--doux); }
.h-appel .ecole::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 240px; height: 240px; border-radius: 50%; background: rgba(242, 169, 0, .3); animation: h-respire 9s ease-in-out infinite alternate; }
.h-appel .bouton { margin: 0; border-radius: 999px; position: relative; z-index: 1; }
.h-appel .formateur .bouton { background: var(--accent); color: #fff; }

/* Apparition au défilement : depuis la gauche */
.js [data-reveal] { opacity: 0; transform: translateX(-44px); transition: opacity .7s ease var(--d, 0ms), transform .8s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms); }
.js [data-reveal="haut"] { transform: translateY(26px); }
.js [data-reveal].vu { opacity: 1; transform: none; }
.js .h-cartes [data-reveal] { transform: translateX(-30px) scale(.97); }
.js .h-cartes [data-reveal].vu { transform: none; }

/* Pied de page */
body.central footer.site { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .js .h-texte > *, .lv, .h-mini, .h-att, .h-disque, .h-anneau, .h-pile svg, .signet { animation: none !important; opacity: 1 !important; transform: none; }
  .h-att { opacity: 1 !important; transform: rotate(-5deg) !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* Le bouton de la recherche : les règles générales des formulaires ne s'appliquent pas ici */
form.h-recherche button[type=submit]:not(.bouton):not(.lien) { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 2.7rem; height: 2.7rem; margin: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; background: var(--pop); }
form.h-recherche button[type=submit]:not(.bouton):not(.lien) svg { position: static; transform: none; stroke: var(--accent); width: 1.15rem; height: 1.15rem; }

/* Type de formation sur la couverture */
.cf-genre { position: absolute; left: .7rem; bottom: .7rem; max-width: calc(100% - 1.4rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .74rem; font-weight: 800; padding: .3rem .7rem; border-radius: 99px; background: #fff; color: var(--accent); box-shadow: 0 6px 14px -8px rgba(21,41,75,.5); }
.cf-genre.suivi { background: var(--accent); color: #fff; }
.cf-genre.officiel { background: var(--pop); color: var(--accent); }
@media (max-width: 759px) { .cf-genre { font-size: .64rem; padding: .22rem .5rem; left: .45rem; bottom: .45rem; } }

/* Animation d'ouverture du logo */
.h-intro { display: none; }
.intro .h-intro { display: grid; place-content: center; justify-items: center; gap: 1.4rem; position: fixed; inset: 0; z-index: 100; background: var(--accent); color: #fff; clip-path: inset(0 0 0 0); transition: clip-path .7s cubic-bezier(.7, 0, .2, 1); }
.intro.intro-fin .h-intro { clip-path: inset(0 0 100% 0); }
.intro body { overflow: hidden; }
.h-intro-logo { display: grid; gap: .55rem; justify-items: start; position: relative; width: 17.5rem; }
.h-intro-logo .b { display: block; height: 1.25rem; border-radius: 99px; background: #fff; width: 0; animation: barre .55s cubic-bezier(.2, .8, .2, 1) forwards; }
.h-intro-logo .b1 { animation-delay: .1s; --l: 2.6rem; } .h-intro-logo .b2 { animation-delay: .3s; --l: 4.3rem; } .h-intro-logo .b3 { animation-delay: .5s; --l: 6rem; background: var(--pop); }
@keyframes barre { to { width: var(--l); } }
.mot-intro { position: absolute; left: 7.2rem; top: 50%; transform: translateY(-50%); font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; opacity: 0; clip-path: inset(0 100% 0 0); animation: mot-intro .6s .8s cubic-bezier(.2, .8, .2, 1) forwards; }
.mot-intro span { color: var(--pop); }
@keyframes mot-intro { to { opacity: 1; clip-path: inset(0 0 0 0); } }
.h-intro-ligne { width: min(70vw, 320px); height: 3px; background: rgba(255,255,255,.18); border-radius: 3px; overflow: hidden; }
.h-intro-ligne i { display: block; height: 100%; width: 0; background: var(--pop); animation: remplir 1.5s .2s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes remplir { to { width: 100%; } }
.h-intro-txt { margin: 0; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: #aebbd6; opacity: 0; animation: h-in .5s .6s ease forwards; }
@media (max-width: 560px) { .h-intro { transform: scale(.82); } }
.intro .h-texte > *, .intro .h-pile .lv, .intro .h-mini, .intro .h-att { animation-play-state: paused; }

/* Assistant dans l'écran du parcours */
.p-chat { display: grid; gap: .35rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s ease, opacity .4s ease; }
.p-chat p { margin: 0; padding: .45rem .7rem; border-radius: 12px; font-size: .82rem; line-height: 1.4; max-width: 88%; }
.p-chat .q { justify-self: end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.p-chat .r { background: #fff; border: 1px solid #e3dece; border-bottom-left-radius: 4px; }
.p-ecran[data-etape="3"] .p-chat { max-height: 9rem; opacity: 1; }
.p-ecran[data-etape="3"] .p-chat .r { animation: h-in .5s .5s both; }

/* Parcours au défilement : l'écran d'une formation reste en place et avance à chaque étape */
.h-parcours { padding-block: clamp(2.5rem, 5vw, 4.5rem) 1rem; background: #fff; border-block: 1px solid #ebe7da; }
.p-grille { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .p-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; } }
.p-collant { position: sticky; top: 4.6rem; z-index: 2; align-self: start; padding-block: .5rem; background: linear-gradient(#fff 85%, rgba(255,255,255,0)); }
@media (min-width: 900px) { .p-collant { top: 12vh; background: none; padding: 0; } }
.p-ecran { position: relative; max-width: 440px; margin: 0 auto; background: var(--papier); border: 1px solid #e3dece; border-radius: 22px; padding: 1rem; box-shadow: 0 40px 70px -40px rgba(21, 41, 75, .5); font-size: .9rem; }
@media (max-width: 899px) { .p-ecran { padding: .7rem; font-size: .8rem; max-width: 360px; } .p-mods { display: none; } }
.p-tete { display: flex; gap: .75rem; align-items: center; }
.p-tete img, .p-vignette { width: 5.2rem; aspect-ratio: 16/10; height: auto; object-fit: cover; border-radius: 10px; background: #dce6fb; flex: none; }
.p-tete b { display: block; color: var(--accent); line-height: 1.25; }
.p-tete span { font-weight: 800; }
.p-bouton { margin: .8rem 0 .2rem; text-align: center; background: var(--pop); color: var(--accent); font-weight: 800; border-radius: 99px; padding: .55rem; transition: transform .3s ease, opacity .3s ease; }
.p-ecran[data-etape="0"] .p-bouton { animation: pouls 1.6s ease-in-out infinite; }
@keyframes pouls { 50% { transform: scale(1.04); box-shadow: 0 0 0 8px rgba(242, 169, 0, .2); } }
.p-paie { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s ease, opacity .4s ease; }
.p-paie .op { border: 1.5px solid #d9d4c3; border-radius: 99px; padding: .2rem .7rem; font-weight: 700; background: #fff; }
.p-paie .op:first-child { border-color: var(--accent); }
.p-paie .ok { margin-left: auto; color: #1f8a4c; font-weight: 800; }
.p-ecran:not([data-etape="0"]) .p-paie { max-height: 4rem; opacity: 1; }
.p-jauge { height: 10px; background: #e8e4d6; border-radius: 99px; overflow: hidden; margin-top: .6rem; }
.p-jauge i { display: block; height: 100%; width: var(--pc, 0%); background: linear-gradient(90deg, var(--accent), #3F6FD8); border-radius: 99px; transition: width .7s cubic-bezier(.2,.8,.2,1); }
.p-pct { margin: .35rem 0 .5rem; font-weight: 700; color: var(--doux); font-variant-numeric: tabular-nums; }
.p-mods { list-style: none; padding: 0; margin: 0 0 .6rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; }
.p-mods li { min-width: 0; }
.p-mods li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; background: #fff; border: 1px solid #e8e4d6; border-radius: 10px; padding: .45rem .65rem; transition: border-color .3s ease, background-color .3s ease; }
.p-mods li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-mods li i { flex: none; width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 2px solid #d9d4c3; transition: background-color .3s ease, border-color .3s ease, transform .4s cubic-bezier(.2,.8,.2,1); }
.p-mods li.fait { border-color: #b9dcc7; background: #f2faf5; }
.p-mods li.fait i { background: #1f8a4c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; border-color: #1f8a4c; transform: scale(1.15); }
.p-quiz { display: flex; align-items: center; gap: .7rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s ease, opacity .4s ease; }
.p-quiz svg { width: 3rem; height: 3rem; transform: rotate(-90deg); flex: none; }
.p-quiz circle { fill: none; stroke: #e8e4d6; stroke-width: 4; }
.p-quiz circle.v { stroke: #1f8a4c; stroke-dasharray: 100.5; stroke-dashoffset: 100.5; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1) .2s; }
.p-quiz b { display: block; color: #1f8a4c; } .p-quiz span { color: var(--doux); }
.p-ecran[data-etape="4"] .p-quiz, .p-ecran[data-etape="5"] .p-quiz { max-height: 4rem; opacity: 1; }
.p-ecran[data-etape="4"] .p-quiz circle.v, .p-ecran[data-etape="5"] .p-quiz circle.v { stroke-dashoffset: 15; }
.p-att { position: absolute; left: 8%; right: 8%; bottom: 10%; background: #fff; border: 1px solid #d9d4c3; border-radius: 8px; padding: .9rem 1rem 2.6rem; box-shadow: 0 30px 50px -24px rgba(21,41,75,.6); opacity: 0; transform: translateY(40px) rotate(-6deg) scale(.9); transition: opacity .5s ease, transform .7s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.p-att::before { content: ""; position: absolute; inset: 6px; border: 1.5px solid var(--accent); border-radius: 4px; }
.p-att small { display: block; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--doux); font-weight: 700; }
.p-att b { display: block; color: var(--accent); font-size: 1.05rem; margin-top: .2rem; }
.p-att .qr { position: absolute; left: 1rem; bottom: .7rem; width: 1.9rem; aspect-ratio: 1; background: conic-gradient(var(--accent) 25%, #fff 0 50%, var(--accent) 0 75%, #fff 0) 0 0 / 7px 7px; border: 2px solid var(--accent); }
.p-att .sceau { position: absolute; right: 1rem; bottom: .6rem; width: 2.2rem; aspect-ratio: 1; border-radius: 50%; background: var(--pop); transform: scale(0); transition: transform .5s cubic-bezier(.3,1.6,.5,1) .5s; }
.p-ecran[data-etape="5"] .p-att { opacity: 1; transform: rotate(-3deg); }
.p-ecran[data-etape="5"] .p-att .sceau { transform: scale(1); }
@media (max-width: 899px) { .p-mods { display: none; } }
.p-pops { position: absolute; right: -1rem; top: -1rem; display: grid; gap: .4rem; justify-items: end; width: 70%; pointer-events: none; }
@media (max-width: 899px) { .p-pops { right: -.3rem; top: -.6rem; width: 80%; } }
.pop { margin: 0; background: var(--accent); color: #fff; font-weight: 700; font-size: .8rem; padding: .5rem .85rem .5rem 2rem; border-radius: 12px; position: relative; box-shadow: 0 16px 30px -16px rgba(21,41,75,.7); opacity: 0; transform: translateX(30px) scale(.9); transition: opacity .35s ease, transform .5s cubic-bezier(.3,1.5,.5,1); display: none; }
.pop::before { content: ""; position: absolute; left: .65rem; top: 50%; width: .85rem; height: .85rem; margin-top: -.425rem; border-radius: 50%; background: var(--pop); }
.pop.vu { display: block; } .pop.vu.on { opacity: 1; transform: none; }
.p-etapes { list-style: none; margin: 0; padding: 0 0 22vh; position: relative; }
.p-etapes::before { content: ""; position: absolute; left: 1.2rem; top: 1rem; bottom: 22vh; width: 3px; background: #ebe7da; border-radius: 3px; }
.p-etapes::after { content: ""; position: absolute; left: 1.2rem; top: 1rem; width: 3px; height: calc(var(--fil, 0) * (100% - 22vh - 1rem)); background: var(--pop); border-radius: 3px; }
.p-etapes li { position: relative; min-height: 44vh; padding: 0 0 0 3.6rem; display: flex; flex-direction: column; justify-content: center; opacity: .3; transform: translateX(-10px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
@media (max-width: 899px) { .p-etapes li { min-height: 46vh; } }
.p-etapes li.actif, .p-etapes li.passe { opacity: 1; transform: none; }
.p-etapes .n { position: absolute; left: 0; top: 50%; width: 2.6rem; height: 2.6rem; margin-top: -1.3rem; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid #ebe7da; font-weight: 800; font-size: .8rem; color: var(--doux); z-index: 1; transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .4s cubic-bezier(.3,1.6,.5,1); }
.p-etapes li.actif .n, .p-etapes li.passe .n { background: var(--accent); border-color: var(--accent); color: #fff; }
.p-etapes li.actif .n { transform: scale(1.15); }
.p-etapes h3 { margin: 0 0 .5rem; font-size: clamp(1.3rem, 2.4vw, 2rem); letter-spacing: -.02em; line-height: 1.15; }
.p-etapes p { margin: 0; color: var(--doux); max-width: 32rem; font-size: clamp(.98rem, 1.3vw, 1.1rem); }
@media (prefers-reduced-motion: reduce) { .p-etapes li { opacity: 1; transform: none; } }

/* Recherche : propositions au fil de la frappe */
.h-recherche { z-index: 5; }
.h-recherche .vider { position: absolute; right: 3.4rem; top: 50%; transform: translateY(-50%); width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: #efece2; color: var(--doux); font-size: 1.3rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; margin: 0; }
.h-recherche .vider[hidden] { display: none; }
.h-recherche input { padding-right: 6rem; }
.propositions { position: absolute; left: 0; right: 0; top: calc(100% + .5rem); background: #fff; border: 1px solid #e3dece; border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(21, 41, 75, .55); padding: .4rem; max-height: min(70vh, 34rem); overflow-y: auto; animation: pr-in .22s cubic-bezier(.2,.8,.2,1); }
.propositions[hidden] { display: none; }
@keyframes pr-in { from { opacity: 0; transform: translateY(-6px); } }
.pr-item { display: flex; align-items: center; gap: .8rem; padding: .5rem .6rem; border-radius: 14px; text-decoration: none; color: var(--texte); transition: background-color .15s ease; }
.pr-item:hover, .pr-item.sel { background: #f5f2e8; }
.pr-item img, .pr-img { width: 4.6rem; aspect-ratio: 16/10; height: auto; object-fit: cover; border-radius: 9px; flex: none; background: #dce6fb; }
.pr-ecole img { object-fit: contain; background: #fff; border: 1px solid #ebe7da; padding: .25rem; }
.pr-txt { flex: 1; min-width: 0; }
.pr-txt b { display: block; font-size: .95rem; line-height: 1.3; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-txt b mark { background: #ffe9b0; color: inherit; border-radius: 3px; padding: 0 1px; }
.pr-txt small { display: block; color: var(--doux); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-prix { font-weight: 800; color: var(--accent); font-size: .9rem; white-space: nowrap; }
.pr-prix.gratuit { color: #1f8a4c; }
.pr-tous { display: block; width: 100%; margin: .3rem 0 0; padding: .75rem; border: 0; border-top: 1px solid #ebe7da; background: none; font: inherit; font-weight: 700; color: var(--accent); cursor: pointer; border-radius: 0 0 14px 14px; }
.pr-tous:hover, .pr-tous.sel { background: #f5f2e8; }
.pr-vide { margin: 0; padding: 1rem; color: var(--doux); }
@media (max-width: 640px) { .pr-item img, .pr-img { width: 3.8rem; } .pr-prix { font-size: .82rem; } }

/* Rubriques + filtres sur une ligne discrète */
.h-outils { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; margin: 0 0 1.2rem; }
.h-outils .h-rub { margin: 0; }
.h-filtres { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.h-filtres button { border: 1.5px solid #ddd8c7; background: #fff; color: var(--texte); border-radius: 99px; padding: .35rem .85rem; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; width: auto; margin: 0; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.h-filtres button:hover { border-color: var(--accent); }
.h-filtres button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.h-filtres select { width: auto; border: 1.5px solid #ddd8c7; border-radius: 99px; padding: .35rem .8rem; font-size: .85rem; font-weight: 600; background: #fff; }
@media (max-width: 640px) { .h-outils .h-rub { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; } .h-outils .h-rub a { flex: none; } }

/* Vignette générique de l'écran du parcours : trois barres (le logo) qui se remplissent avec la progression */
.p-vignette { display: grid; align-content: center; gap: 5px; padding: 0 .8rem; background: var(--accent); }
.p-vignette i { display: block; height: 6px; border-radius: 3px; background: #fff; transition: width .7s cubic-bezier(.2,.8,.2,1); width: 30%; }
.p-vignette i:nth-child(2) { width: 50%; } .p-vignette i:nth-child(3) { width: 70%; background: var(--pop); }
.p-ecran:not([data-etape="0"]) .p-vignette i:nth-child(3) { width: 90%; }

/* ===== Héros, version du 5 nov. (après-midi) : lumière, mot en italique, recherche, vitrine 3D ===== */
.h-hero { --sx: 70%; --sy: 30%; isolation: isolate; }
.h-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(520px circle at var(--sx) var(--sy), rgba(242, 169, 0, .16), transparent 62%); }
.h-lumiere { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.h-lumiere i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.h-lumiere .t1 { width: 42vw; height: 42vw; left: -12vw; top: -18vw; background: #dfe7f7; animation: h-derive 18s ease-in-out infinite alternate; }
.h-lumiere .t2 { width: 30vw; height: 30vw; right: -6vw; top: 8%; background: #ffe7a6; animation: h-derive 22s -6s ease-in-out infinite alternate-reverse; }
.h-lumiere .t3 { width: 26vw; height: 26vw; left: 38%; bottom: -16vw; background: #d9f0e6; animation: h-derive 26s -3s ease-in-out infinite alternate; }
@keyframes h-derive { from { transform: translate(0, 0) scale(1); } to { transform: translate(6vw, 4vw) scale(1.15); } }

.h-sur { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .1rem .35rem; margin: 0 0 1.1rem; padding: .42rem .95rem .42rem .7rem; border-radius: 99px; background: rgba(255,255,255,.8); border: 1px solid #e6e1d0; box-shadow: 0 8px 22px -16px rgba(21,41,75,.5); font-size: .88rem; color: var(--doux); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.h-sur b { color: var(--accent); font-variant-numeric: tabular-nums; }
.h-sur .pt { width: .55rem; height: .55rem; border-radius: 50%; background: #1f9d6b; box-shadow: 0 0 0 0 rgba(31,157,107,.5); animation: h-pouls 2s ease-out infinite; margin-right: .3rem; }
@keyframes h-pouls { to { box-shadow: 0 0 0 .55rem rgba(31,157,107,0); } }

/* Le mot qui change : autre police (italique à empattements), autre couleur, lettres qui arrivent une à une. */
.h-texte h1 .mot2 { display: inline-block; white-space: nowrap; font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; font-size: 1.16em; letter-spacing: -.005em; line-height: .95; padding: 0 .1em .08em 0; color: #e07a1f; }
.mot2 .c { display: inline-block; background: linear-gradient(100deg, #f2a900, #e8862a 55%, #d9572b); background-size: var(--w, 6em) 100%; background-position: calc(var(--x, 0em) * -1) 0; -webkit-background-clip: text; background-clip: text; color: transparent; transform-origin: 50% 80%; animation: lettre-in .7s cubic-bezier(.2,.9,.2,1) both; animation-delay: calc(var(--i) * 38ms); }
.mot2 .c.e { width: .24em; }
.mot2.sort .c { animation: lettre-out .32s ease-in both; animation-delay: calc(var(--i) * 18ms); }
@keyframes lettre-in { from { opacity: 0; transform: translateY(.45em) rotateX(-75deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes lettre-out { to { opacity: 0; transform: translateY(-.35em) rotateX(60deg); filter: blur(4px); } }

/* Recherche du héros : le chemin le plus court vers une formation. */
.h-cherche { position: relative; display: flex; align-items: center; gap: .4rem; max-width: 36rem; margin: 0 0 .9rem; padding: .38rem .38rem .38rem 1.1rem; background: #fff; border: 1.5px solid #e3dfd0; border-radius: 99px; box-shadow: 0 22px 44px -26px rgba(21,41,75,.55), 0 2px 0 rgba(21,41,75,.04); transition: border-color .2s ease, box-shadow .3s ease, transform .3s ease; }
.h-cherche:focus-within { border-color: var(--accent); box-shadow: 0 26px 50px -24px rgba(21,41,75,.6), 0 0 0 4px rgba(242,169,0,.25); transform: translateY(-2px); }
.h-cherche > svg { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: var(--doux); stroke-width: 2.2; stroke-linecap: round; }
.h-cherche input { flex: 1; min-width: 0; width: auto; border: 0; outline: 0; background: transparent; margin: 0; padding: .7rem .2rem; font: inherit; font-size: 1.04rem; color: var(--texte); box-shadow: none; }
form.h-cherche button[type=submit]:not(.bouton):not(.lien) { flex: none; width: auto; margin: 0; border: 0; border-radius: 99px; padding: .85rem 1.35rem; background: var(--accent); color: #fff; font: inherit; font-weight: 700; font-size: .98rem; cursor: pointer; transition: background .2s ease, transform .2s ease; }
form.h-cherche button[type=submit]:not(.bouton):not(.lien):hover { background: #0e1c36; transform: scale(1.03); }
@media (max-width: 520px) { .h-cherche { flex-wrap: wrap; border-radius: 18px; padding: .4rem; } .h-cherche > svg { margin-left: .6rem; } form.h-cherche button[type=submit]:not(.bouton):not(.lien) { width: 100%; } }
.h-puces { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 1.6rem; font-size: .86rem; }
.h-puces span { color: var(--doux); margin-right: .2rem; }
.h-puces a { text-decoration: none; padding: .3rem .8rem; border-radius: 99px; border: 1px solid #e0dccc; background: rgba(255,255,255,.75); color: var(--accent); font-weight: 600; transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease; }
.h-puces a:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); }

/* Vitrine : trois vraies couvertures qui se succèdent en se retournant. */
.h-mini[data-vitrine] { perspective: 900px; background: transparent; border: 0; overflow: visible; box-shadow: none; display: grid; }
.h-diapo { position: relative; grid-area: 1 / 1; display: block; text-decoration: none; color: inherit; background: #fff; border-radius: 14px; border: 1px solid #e2ddcc; box-shadow: 0 28px 44px -26px rgba(21,41,75,.55); overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; opacity: 0; transform: rotateY(-70deg) translateZ(-40px); transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .6s ease; pointer-events: none; }
.h-diapo.on { opacity: 1; transform: none; pointer-events: auto; transition-delay: .4s; }
.h-diapo.sort { transition-duration: .45s; transition-timing-function: ease-in; }
.h-diapo.sort { opacity: 0; transform: rotateY(70deg) translateZ(-40px); }
.h-diapo em { display: inline-block; margin-left: .45rem; font-style: normal; font-size: .64rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: #fff2cc; padding: .08rem .45rem; border-radius: 99px; vertical-align: 1px; }

/* Petites notifications qui apparaissent tour à tour dans la scène. */
.h-toast { position: absolute; z-index: 4; margin: 0; padding: .55rem .85rem .55rem 2.1rem; border-radius: 12px; background: #fff; border: 1px solid #e3dfd0; box-shadow: 0 18px 34px -20px rgba(21,41,75,.6); font-size: .8rem; font-weight: 700; color: var(--accent); white-space: nowrap; opacity: 0; pointer-events: none; }
.h-toast::before { content: ""; position: absolute; left: .7rem; top: 50%; width: .95rem; height: .95rem; margin-top: -.475rem; border-radius: 50%; background: #1f9d6b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }
.h-toast.t-a { right: 4%; top: 6%; animation: h-toast 9s 2.2s ease-in-out infinite; }
.h-toast.t-b { left: 2%; bottom: 22%; animation: h-toast 9s 6.7s ease-in-out infinite; }
.h-toast.t-b::before { background-color: #e07a1f; }
@keyframes h-toast { 0% { opacity: 0; transform: translateY(14px) scale(.9); } 6%, 38% { opacity: 1; transform: none; } 46%, 100% { opacity: 0; transform: translateY(-10px) scale(.96); } }
@media (max-width: 560px) { .h-toast { font-size: .66rem; padding: .38rem .55rem .38rem 1.6rem; } .h-toast::before { left: .45rem; width: .78rem; height: .78rem; margin-top: -.39rem; } }

/* La scène entière s'incline avec la souris (3D). */
.h-scene { transform-style: preserve-3d; transform: perspective(1200px) rotateY(calc(var(--mx, 0px) / 1px * .35deg)) rotateX(calc(var(--my, 0px) / 1px * -.35deg)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }

/* ===== Cartes de formation : relief, ombre portée, reflet qui suit la souris ===== */
.h-cartes > li { perspective: 1000px; }
.cf { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 0%; position: relative; transform-style: preserve-3d; box-shadow: 0 1px 0 rgba(21,41,75,.04), 0 14px 28px -24px rgba(21,41,75,.45); }
.cf::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(255,255,255,.5), transparent 45%); transition: opacity .3s ease; }
.cf:hover { transform: translateY(-8px) rotateX(var(--rx)) rotateY(var(--ry)); box-shadow: 0 2px 0 rgba(21,41,75,.04), 0 40px 60px -32px rgba(21,41,75,.6), 0 18px 30px -24px rgba(242,169,0,.45); border-color: #cfc6a6; }
.cf:hover::after { opacity: 1; }
.cf .cf-genre, .cf .cf-puce { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.cf:hover .cf-genre { transform: translateY(-3px); }
.cf:hover .cf-puce { transform: rotate(-4deg) scale(1.08); }
.cf-bas strong { display: inline-block; transition: transform .3s ease; transform-origin: left center; }
.cf:hover .cf-bas strong { transform: scale(1.06); }
.cf:active { transform: translateY(-2px) scale(.985); }

/* « Voir plus » : les formations arrivent par lots (la recherche couvre toujours tout). */
.h-cartes > li.plus-tard { display: none; }
.h-plus { display: flex; justify-content: center; margin: 1.8rem 0 0; }
.h-plus .bouton { width: auto; border-radius: 99px; padding: .9rem 1.8rem; }
.h-cartes > li.arrive { animation: arrive .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--k, 0) * 45ms); }
@keyframes arrive { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }

/* Rubriques nombreuses : une seule ligne qui défile (glisser au doigt ou à la souris). */
.h-rub { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 2.5rem; scroll-snap-type: x proximity; }
.h-rub::-webkit-scrollbar { display: none; }
.h-rub a { flex: none; scroll-snap-align: start; }

@media (prefers-reduced-motion: reduce) {
  .h-lumiere i, .mot2 .c, .h-toast, .h-sur .pt { animation: none !important; }
  .h-toast.t-a { opacity: 1; } .h-toast.t-b { display: none; }
  .h-scene, .cf:hover { transform: none !important; }
  .h-diapo { transition: none; }
}
.h-rub { min-width: 0; max-width: 100%; }
@media (max-width: 520px) { .h-sur { font-size: .74rem; padding: .32rem .7rem .32rem .55rem; } .h-puces a:nth-of-type(n+4) { display: none; } }
.cf-type { display: inline-flex; align-items: center; gap: .3rem; }
.cf-type img { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; background: #fff; }
@media (max-width: 759px) { .cf-type { display: inline-flex; margin-left: auto; font-size: .66rem; padding: .1rem .4rem; } .cf-type img { width: 14px; height: 14px; } }

/* Un élément masqué (attribut hidden) reste masqué, même avec la classe .bouton */
[hidden] { display: none !important; }

/* « Comment ça marche » : liens vers les pages par public */
.p-publics { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin: 1.5rem 0 0; position: relative; z-index: 2; }
.p-publics a { display: block; padding: 1rem 1.15rem; border-radius: 16px; background: #fff; border: 1px solid #e9e5d8; text-decoration: none; color: inherit; transition: transform .2s ease, border-color .2s ease; }
.p-publics a:hover { transform: translateY(-2px); border-color: var(--pop, #F2A900); }
.p-publics b { display: block; font-size: 1.02rem; margin-bottom: .2rem; }
.p-publics b::after { content: " →"; color: var(--pop, #F2A900); }
.p-publics span { color: var(--doux); font-size: .9rem; }

/* Bandeau des atouts (défilement doux, pause au survol ; fixe si l'utilisateur limite les animations) */
.h-atouts { overflow: hidden; border-block: 1px solid #ece8da; background: #fffdf6; padding: .85rem 0; }
.h-atouts ul { display: flex; gap: 2.2rem; width: max-content; margin: 0; padding: 0; list-style: none; animation: atouts 60s linear infinite; }
.h-atouts:hover ul, .h-atouts:focus-within ul { animation-play-state: paused; }
.h-atouts a { display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; text-decoration: none; color: var(--texte, #16213a); font-weight: 600; font-size: .95rem; }
.h-atouts a::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--pop, #F2A900); flex: none; }
@keyframes atouts { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .h-atouts ul { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: .8rem 1.6rem; padding: 0 1rem; } .h-atouts li[aria-hidden] { display: none; } }

/* Rangées de l'accueil (nouveautés, plus suivies, tendances) : défilement horizontal, sans charger tout le catalogue */
.h-rangee { margin: 0 0 2.2rem; }
.h-rangee-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.h-rangee-tete h2 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.h-rangee-tete a { font-weight: 600; white-space: nowrap; }
.h-rangee-liste { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 280px); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0; padding: 0 0 .6rem; list-style: none; scrollbar-width: thin; }
.h-rangee-liste > li { scroll-snap-align: start; }
