/* ============================================================
   ACCUEIL : minimalisme aere (gabarit Daya).
   Fond blanc casse, texte centre, beaucoup de vide, un grand titre
   qui chevauche la photo, cartes portrait sobres.
   Bleu marine et jaune du logo : de minuscules details seulement.
   Polices : Italiana (titres, capitales fines) + Archivo (texte, etiquettes larges).
   ============================================================ */

:root {
  --m: clamp(20px, 4vw, 64px);
  --r: 24px;
  --rule: rgba(17, 20, 24, 0.14);
  --rule-light: rgba(255, 255, 255, 0.3);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
body.page-home, body.page-inner { background: var(--paper); color: var(--ink); }

.t-label { font-stretch: 125%; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.5; }
.link-line { display: inline-block; font-stretch: 125%; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 1px solid currentColor; transition: color 0.3s var(--ease), border-color 0.3s var(--ease); }
.link-line:hover { color: var(--navy); border-color: var(--navy); }

/* ---- Navigation : pilule flottante (gabarit Regal Crest) ---- */
.site-nav-bar { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 60; width: min(800px, calc(100% - 2 * var(--m))); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 8px 26px; border: 0; border-radius: 999px; background: rgb(247 247 244 / 0.88); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); color: var(--ink); }
.site-nav-bar a, .site-nav-bar .nav-links a { color: var(--ink); border-bottom: 0; padding: 0; }
.site-nav-bar .nav-links { justify-self: start; gap: 22px; }
.site-nav-bar .nav-links a, .nav-cta { font-stretch: 100%; font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; transition: opacity 0.3s var(--ease); }
.site-nav-bar .nav-links a:hover, .nav-cta:hover { opacity: 1; }
.site-nav-bar .logo { justify-self: center; }
.site-nav-bar .logo img { height: 30px; width: auto; }
.nav-right { justify-self: end; }
.nav-cta { border-bottom: 0 !important; padding-bottom: 0 !important; }
.site-nav-bar .nav-toggle, .site-nav-bar .nav-more { display: none; }
@media (max-width: 860px) {
  .site-nav-bar { grid-template-columns: auto 1fr auto; width: calc(100% - 24px); top: 12px; padding: 8px 18px; border-radius: 28px; }
  .site-nav-bar .logo { justify-self: start; order: -1; }
  .nav-right { display: none; }
  .site-nav-bar .nav-toggle { display: flex; justify-self: end; }
  .site-nav-bar .nav-toggle span { background: var(--ink); }
  .site-nav-bar .nav-links { grid-column: 1 / -1; justify-self: stretch; }
  .site-nav-bar .nav-links a { width: 100%; padding: 12px 0; }
}

/* ---- Hero : le film, et le nom qui chevauche son bord bas ---- */
.hero { position: relative; height: 90svh; min-height: 520px; z-index: 2; }
.hero-media { position: absolute; inset: 0; overflow: hidden; background: var(--ink); }
.hero-film { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; filter: saturate(0.4) contrast(1.04); will-change: transform; }
.hero-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0.35), rgb(0 0 0 / 0.05) 40%, rgb(0 0 0 / 0.25)); }
.hero-name { position: absolute; left: 0; right: 0; bottom: 0; transform: translateY(34%); margin: 0; text-align: center; white-space: nowrap; color: #fff; font-family: var(--font-serif); font-weight: 400; text-transform: uppercase; font-size: clamp(3.2rem, 9vw, 10.8rem); line-height: 0.9; letter-spacing: -0.01em; pointer-events: none; }
.hero-name .w { display: inline-block; white-space: nowrap; }
.hero-name .ch { display: inline-block; opacity: 0; transform: translateY(40%); animation: ch-rise 1.2s var(--ease) forwards; animation-delay: calc(var(--i) * 60ms + 200ms); }
@keyframes ch-rise { to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .hero { height: 78svh; } .hero-name { font-size: 13.2vw; transform: translateY(54%); white-space: normal; } .hero-name .w { display: block; } }

/* ---- Mouvement ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .hero-name .ch { opacity: 1; transform: none; animation: none; } }

/* ---- Introduction centree ---- */
.intro { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(110px, 14vw, 220px) var(--m) clamp(80px, 10vw, 150px); }
.intro-thumb { width: clamp(84px, 8vw, 116px); aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); margin-bottom: clamp(48px, 6vw, 88px); }
.intro .t-label { margin-bottom: clamp(24px, 3vw, 40px); }
.intro-title { font-size: clamp(1.92rem, 3vw, 3rem); text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; max-width: 16ch; margin-bottom: clamp(28px, 3.4vw, 48px); }
.intro-text { font-size: 1rem; line-height: 1.7; color: var(--dim); max-width: 46ch; margin-bottom: clamp(32px, 4vw, 56px); }

/* ---- Blocs et titres de section ---- */
.blk { padding: clamp(72px, 9vw, 140px) var(--m); }
.blk-title { text-align: center; text-transform: uppercase; font-size: clamp(1.6rem, 2.16vw, 2.04rem); letter-spacing: 0.06em; margin-bottom: clamp(48px, 6vw, 96px); }

/* ---- Cartes portrait ---- */
.cards { display: grid; gap: clamp(20px, 2.6vw, 40px); max-width: 1280px; margin: 0 auto; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.card-img { display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r); background: var(--rule); margin-bottom: 26px; }
.card-img img, .card-img video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.card:hover .card-img img, .card:hover .card-img video { transform: scale(1.04); }
.card h3 { font-family: var(--font-body); font-stretch: 112%; font-weight: 700; font-size: 0.875rem; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.3; margin-bottom: 10px; }
.card p { font-size: 0.9375rem; line-height: 1.55; color: var(--dim); max-width: 30ch; margin-bottom: 22px; }
.pill { margin-top: auto; display: inline-block; padding: 12px 34px; border: 1px solid var(--ink); border-radius: 999px; font-stretch: 112%; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.card:hover .pill { background: var(--ink); color: #fff; }
@media (max-width: 1000px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .cards-3 { grid-template-columns: 1fr; } .cards-4 { grid-template-columns: 1fr 1fr; gap: 20px 14px; } .card p { display: none; } }

/* ---- Raison d'etre : une photo plein cadre, du texte centre ---- */
.fullbleed { position: relative; color: #fff; text-align: center; padding: clamp(100px, 13vw, 220px) var(--m); background: linear-gradient(rgb(0 0 0 / 0.55), rgb(0 0 0 / 0.62)), var(--bg-img, url(assets/campus-amphi-etudiants.jpg)) center / cover fixed; }
.fullbleed .t-label { margin-bottom: clamp(24px, 3vw, 40px); color: rgb(255 255 255 / 0.85); }
.fullbleed h2 { color: #fff; text-transform: uppercase; font-size: clamp(1.76rem, 2.76vw, 2.76rem); letter-spacing: 0.04em; line-height: 1.05; max-width: 20ch; margin: 0 auto clamp(28px, 3.4vw, 48px); }
.fullbleed .lead { font-size: 1rem; line-height: 1.7; color: rgb(255 255 255 / 0.85); max-width: 52ch; margin: 0 auto clamp(56px, 7vw, 110px); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); max-width: 1100px; margin: 0 auto; padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--rule-light); }
.values span { display: block; font-stretch: 125%; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.16em; color: rgb(255 255 255 / 0.7); margin-bottom: 14px; }
.values h3 { color: #fff; font-family: var(--font-body); font-stretch: 112%; font-weight: 700; font-size: 0.875rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 12px; }
.values p { font-size: 0.9375rem; line-height: 1.6; color: rgb(255 255 255 / 0.78); max-width: 34ch; margin: 0 auto; }
@media (max-width: 860px) { .fullbleed { background-attachment: scroll; } .values { grid-template-columns: 1fr; } }

/* ---- Liste des etablissements ---- */
.list { max-width: 920px; margin: 0 auto; border-top: 1px solid var(--rule); }
.list a { display: grid; grid-template-columns: 3.4rem 1fr auto; align-items: baseline; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.list a > * { transition: transform 0.5s var(--ease); }
.list a:hover > * { transform: translateX(14px); }
.list span { font-stretch: 125%; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.16em; color: var(--navy); }
.list strong { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.3rem, 2.2vw, 1.9rem); letter-spacing: -0.01em; }
.list em { font-style: normal; font-size: 0.9375rem; color: var(--dim); }
@media (max-width: 700px) { .list a { grid-template-columns: 2.6rem 1fr; } .list em { grid-column: 2; } }

/* ---- Heritage ---- */
.heritage { background: none; border: 0; padding: clamp(72px, 9vw, 140px) var(--m); }
.heritage .blk-title { margin-bottom: clamp(40px, 5vw, 72px); }
.heritage-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 96px); max-width: 1080px; margin: 0 auto; }
.heritage-card, .heritage-card-fondateur { background: none; border: 0; border-radius: 0; padding: 0; }
.heritage-dates { display: block; font-stretch: 125%; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy); margin-bottom: 16px; }
.heritage-card h3, .heritage-card-fondateur h3 { color: var(--ink); font-size: clamp(1.44rem, 1.68vw, 1.56rem); margin-bottom: 20px; }
.heritage-card p, .heritage-card-fondateur p { font-size: 1rem; line-height: 1.7; color: var(--dim); margin-bottom: 14px; }
.heritage-card-fondateur .heritage-dates { color: var(--navy); }
@media (max-width: 860px) { .heritage-grid { grid-template-columns: 1fr; } }

/* ---- Cartes portrait : titre sur l'image, bouton rond (gabarit Regal Crest) ---- */
.card-o { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r); background: var(--ink); color: #fff; }
.card-o img, .card-o video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card-o:hover img, .card-o:hover video { transform: scale(1.05); }
.card-o::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(0 0 0 / 0.68)); }
.card-o-cap { position: absolute; z-index: 1; left: 22px; right: 76px; bottom: 22px; display: flex; flex-direction: column; gap: 4px; }
.card-o-cap strong { font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.card-o-cap small { font-size: 0.875rem; color: rgb(255 255 255 / 0.8); line-height: 1.35; }
.card-o-go { position: absolute; z-index: 1; right: 20px; bottom: 20px; width: 40px; height: 40px; border-radius: 999px; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 1.05rem; transition: transform 0.4s var(--ease); }
.card-o:hover .card-o-go { transform: translateX(4px); }

/* ---- Bande arrondie des licences : pictogrammes (gabarit Regal Crest) ---- */
.band { margin: clamp(48px, 6vw, 96px) var(--m); padding: clamp(72px, 9vw, 140px) var(--m); border-radius: clamp(36px, 5vw, 72px); background: #ECECE9; color: var(--ink); text-align: center; }
.band .blk-title { color: var(--ink); margin-bottom: clamp(48px, 6vw, 96px); }
.icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 5vw, 72px) clamp(16px, 3vw, 48px); max-width: 860px; margin: 0 auto; }
.icons-4 { grid-template-columns: repeat(4, 1fr); max-width: 1080px; }
/* les pictogrammes n'ont pas les memes marges internes : on les ramene a la meme taille visible */
.icon-item img[src*="maternelle"] { scale: 1.8; } .icon-item img[src*="primaire"] { scale: 0.9; } .icon-item img[src*="college-lycee"] { scale: 0.87; } .icon-item img[src*="universite"] { scale: 1.3; }
/* licences : memes tailles visibles malgre des marges internes differentes */
.icon-item img[src*="icon-droit"] { scale: 0.74; } .icon-item img[src*="icon-grh"] { scale: 0.98; } .icon-item img[src*="icon-comptabilite"] { scale: 1.22; }
.icon-item img[src*="icon-marketing"] { scale: 1.45; } .icon-item img[src*="icon-informatique"] { scale: 0.84; } .icon-item img[src*="icon-qhse"] { scale: 1.5; }
.icon-item img[src*="icon-banque"] { scale: 2.1; } .icon-item img[src*="icon-reseaux"] { scale: 1.43; } .icon-item img[src*="icon-logistique"] { scale: 1.45; }
.icon-item { display: flex; flex-direction: column; align-items: center; gap: 18px; transition: transform 0.5s var(--ease); }
.icon-item:hover { transform: translateY(-6px); }
.icon-item img { width: clamp(64px, 7vw, 104px); height: clamp(64px, 7vw, 104px); object-fit: contain; }
.icon-item span { font-size: 0.9375rem; line-height: 1.35; max-width: 16ch; color: var(--ink); }
.band-foot { margin-top: clamp(48px, 6vw, 88px); }
@media (max-width: 800px) { .icons { grid-template-columns: repeat(2, 1fr); } .icons > :last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ---- Pages interieures ---- */
.site-nav-bar .nav-links a.is-active { border-bottom: 1px solid var(--navy) !important; padding-bottom: 3px !important; }
.hero-short { height: 66svh; min-height: 420px; }
.intro-compact { padding-top: clamp(130px, 17vw, 260px); padding-bottom: clamp(72px, 9vw, 140px); }
.validate-flag { color: var(--dim); font-size: 0.875rem; font-weight: 600; margin-top: 18px; }
.blk-flag { text-align: center; margin: -40px 0 48px; }
.blk-lead { text-align: center; max-width: 56ch; margin: -48px auto clamp(48px, 6vw, 88px); font-size: 1rem; line-height: 1.7; color: var(--dim); }
.blk-sub { text-align: center; color: var(--dim); margin: clamp(48px, 6vw, 88px) 0 28px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-2 .card-o { aspect-ratio: 4 / 3; }
@media (max-width: 700px) { .cards-2 { grid-template-columns: 1fr; } }

/* Licences : une ligne par licence, media a gauche puis a droite */
.lics { padding: 0 var(--m) clamp(40px, 5vw, 80px); max-width: 1280px; margin: 0 auto; }
.lic { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 120px); align-items: center; padding: clamp(40px, 6vw, 96px) 0; border-top: 1px solid var(--rule); }
.lic:nth-child(even) .lic-media { order: 2; }
.lic-media { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--rule); }
.lic-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lic-text { display: flex; flex-direction: column; align-items: flex-start; }
.lic-no { font-stretch: 125%; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.16em; color: var(--navy); margin-bottom: 28px; }
.lic-icon { width: 48px; height: 48px; margin-bottom: 28px; }
.lic-text h2 { font-size: clamp(1.6rem, 2.28vw, 2.16rem); text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.08; margin-bottom: 18px; max-width: 14ch; }
.lic-sub { font-stretch: 112%; font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.lic-desc { font-size: 1rem; line-height: 1.7; color: var(--dim); max-width: 44ch; }
@media (max-width: 800px) { .lic { grid-template-columns: 1fr; } .lic:nth-child(even) .lic-media { order: 0; } .lic-media { aspect-ratio: 4 / 3; } }

/* Fermeture : inscriptions */
.closing { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(80px, 10vw, 160px) var(--m); border-top: 1px solid var(--rule); }
.closing .t-label { margin-bottom: 28px; color: var(--dim); }
.closing .intro-title { max-width: 18ch; margin-bottom: 40px; }

/* Institut */
.list-static a, .list-row { display: grid; grid-template-columns: 3.4rem 1fr auto; align-items: baseline; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.list-row span { font-stretch: 125%; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.16em; color: var(--navy); }
.list-row strong { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.3rem, 2.2vw, 1.9rem); }
.list-row em { font-style: normal; font-size: 0.9375rem; color: var(--dim); }
.fullbleed-values { background: linear-gradient(rgb(0 0 0 / 0.55), rgb(0 0 0 / 0.62)), url(assets/campus-amphi-plongeante.jpg) center / cover fixed; }
.fullbleed-values .t-label { margin-bottom: clamp(40px, 5vw, 72px); }
.fullbleed-values .values { border-top: 0; padding-top: 0; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 24px); max-width: 1280px; margin: 0 auto; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); display: block; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr 1fr; } }
.videos { align-items: start; }
.vcard { margin: 0; }
.vcard video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); background: var(--ink); display: block; margin-bottom: 18px; }
.vcard figcaption { font-size: 0.9375rem; line-height: 1.5; color: var(--dim); text-align: center; max-width: 34ch; margin: 0 auto; }
.agrement { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(80px, 10vw, 160px) var(--m); }
.agrement .t-label { color: var(--dim); margin-bottom: 28px; }
.agrement .intro-title { margin-bottom: 24px; }
.agrement-no { font-stretch: 125%; font-weight: 600; font-size: 0.875rem; letter-spacing: 0.1em; color: var(--navy); }
.contact-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 5vw, 80px); max-width: 1000px; margin: 0 auto; text-align: center; }
.contact-cols h3 { font-family: var(--font-body); font-stretch: 112%; font-weight: 700; font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.contact-cols p, .contact-cols a { display: block; font-size: 1rem; line-height: 1.6; color: var(--dim); margin-bottom: 8px; }
.contact-cols a { color: var(--ink); font-weight: 600; }
.contact-cols a:hover { color: var(--navy); }
@media (max-width: 800px) { .contact-cols { grid-template-columns: 1fr; } }

/* ---- Pied de page ---- */
.site-footer { background: var(--paper); border-top: 1px solid var(--rule); }
.footer-top { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 64px); padding: clamp(56px, 7vw, 100px) var(--m) 40px; }
.footer-brand img { height: 44px; width: auto; max-width: 100%; align-self: flex-start; object-fit: contain; margin-bottom: 18px; } /* largeur automatique : le logo garde ses proportions */
.footer-brand p, .footer-col p, .footer-col a { font-size: 0.9375rem; line-height: 1.6; color: var(--dim); }
.info-label { display: block; font-stretch: 125%; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.footer-phone { font-weight: 600; color: var(--ink) !important; }
.footer-bottom { padding: 22px var(--m); border-top: 1px solid var(--rule); font-size: 0.8125rem; color: var(--dim); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

@media (max-width: 860px) {
  .site-nav-bar .nav-links:not(.is-open) { border: 0; }
  .hero-short .hero-name { font-size: 9.6vw; white-space: nowrap; transform: translateY(40%); }
  .hero-short .hero-name .w { display: inline-block; }
}

/* ============================================================
   Page L'institut : melange Flowblox + Regal Crest
   ============================================================ */
.btn-dark { display: inline-flex; align-items: center; gap: 18px; padding: 6px 6px 6px 28px; border-radius: 999px; background: var(--ink); color: #fff; font-stretch: 112%; font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.06em; transition: background 0.3s var(--ease); }
.btn-dark i { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-style: normal; font-size: 1rem; }
.btn-dark:hover { background: #2B3038; }

/* Hero en carte arrondie (Regal Crest) */
.hc { padding: 14px; }
.hc-card { position: relative; height: calc(88svh - 28px); min-height: 520px; overflow: hidden; border-radius: clamp(28px, 4vw, 56px); background: var(--ink); color: #fff; display: grid; place-items: center; text-align: center; }
.hc-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
img.hc-bg { filter: saturate(0.4) contrast(1.03); }
video.hc-bg + .hc-veil::after { content: ""; position: absolute; inset: 0; background: #808080; mix-blend-mode: saturation; opacity: 0.6; }
.hc-veil { position: absolute; inset: 0; background: rgb(0 0 0 / 0.55); }
.hc-body { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 var(--m); }
.hc-body .t-label { margin-bottom: 20px; color: rgb(255 255 255 / 0.9); }
.hc-title { color: #fff; text-transform: uppercase; font-size: clamp(2.72rem, 6.6vw, 6.6rem); line-height: 0.95; letter-spacing: 0.01em; margin-bottom: 22px; }
.hc-sub { text-shadow: 0 1px 18px rgb(0 0 0 / 0.5); max-width: 40ch; font-size: 1.0625rem; line-height: 1.55; color: rgb(255 255 255 / 0.9); margin-bottom: 34px; }
.hc-body .btn-dark { background: #fff; color: var(--ink); }
.hc-body .btn-dark i { background: var(--ink); color: #fff; }
.hc-body .btn-dark:hover { background: rgb(255 255 255 / 0.85); }

/* Titre en deux styles (Flowblox) */
.duo { text-align: center; }
.duo-a { display: block; font-family: var(--font-serif); text-transform: uppercase; letter-spacing: 0.06em; font-size: clamp(1.3rem, 1.38vw, 1.3rem); font-weight: 400; margin-bottom: 0.25em; }
.duo-b { display: block; font-family: var(--font-body); font-weight: 800; font-stretch: 100%; letter-spacing: -0.035em; text-transform: none; font-size: clamp(1.92rem, 3.36vw, 3.24rem); line-height: 1; }
.duo-intro { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(80px, 11vw, 170px) var(--m) clamp(48px, 6vw, 96px); }
.duo-intro .intro-text { margin: clamp(24px, 3vw, 40px) 0 0; }
.blk-lead-flow { margin: clamp(20px, 2.4vw, 32px) auto clamp(48px, 6vw, 88px); }

/* Rangee de photos en perspective (Flowblox) */
.arc { display: flex; justify-content: center; align-items: center; gap: 1.1vw; perspective: 1300px; overflow: hidden; padding: 24px 0 40px; }
.arc-i { flex: none; width: 15vw; object-fit: cover; border-radius: 22px; }
.arc-i:nth-child(1) { height: 31vw; transform: rotateY(24deg); }
.arc-i:nth-child(2) { height: 25vw; transform: rotateY(16deg); }
.arc-i:nth-child(3) { height: 19vw; transform: rotateY(8deg); }
.arc-i:nth-child(4) { height: 16vw; }
.arc-i:nth-child(5) { height: 19vw; transform: rotateY(-8deg); }
.arc-i:nth-child(6) { height: 25vw; transform: rotateY(-16deg); }
.arc-i:nth-child(7) { height: 31vw; transform: rotateY(-24deg); }
@media (max-width: 800px) { .arc-i { width: 26vw; } .arc-i:nth-child(1), .arc-i:nth-child(7) { display: none; } .arc-i:nth-child(2) { height: 52vw; } .arc-i:nth-child(6) { height: 52vw; } .arc-i:nth-child(3), .arc-i:nth-child(5) { height: 38vw; } .arc-i:nth-child(4) { height: 32vw; } }

/* Trois colonnes de valeurs */
.feat3 { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1100px; margin: 0 auto; padding: clamp(24px, 3vw, 48px) var(--m) clamp(72px, 9vw, 140px); text-align: center; }
.feat3 > div { padding: 0 clamp(16px, 3vw, 48px); }
.feat3 > div + div { border-left: 1px solid var(--rule); }
.feat3 h3 { font-weight: 700; font-size: 1rem; margin-bottom: 10px; }
.feat3 p { font-size: 0.9375rem; line-height: 1.6; color: var(--dim); }
@media (max-width: 800px) { .feat3 { grid-template-columns: 1fr; gap: 32px; } .feat3 > div + div { border-left: 0; border-top: 1px solid var(--rule); padding-top: 32px; } }

/* Grille de cartes de tailles variees, en gris (Flowblox) */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1280px; margin: 0 auto; }
.bt { position: relative; min-height: clamp(260px, 26vw, 360px); border-radius: clamp(22px, 2.4vw, 34px); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(22px, 2.6vw, 36px); }
.bt-w2 { grid-column: span 2; }
.bt strong { font-weight: 600; font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.2; margin-bottom: 8px; }
.bt small { font-size: 0.9375rem; line-height: 1.5; max-width: 38ch; }
.bt-photo { color: #fff; background: var(--ink); }
.bt-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bt-photo:hover img { transform: scale(1.04); }
.bt-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgb(0 0 0 / 0.65)); }
.bt-cap { position: relative; z-index: 1; display: flex; flex-direction: column; }
.bt-cap small { color: rgb(255 255 255 / 0.85); }
.bt-light { background: var(--navy); color: #fff; }
.bt-mid { background: var(--gold); color: var(--ink); }
.bt-light small { color: rgb(255 255 255 / 0.82); }
.bt-mid small { color: rgb(17 20 24 / 0.78); }
.bt-mid .inst-btn { border-color: rgb(17 20 24 / 0.35); color: var(--ink); }
@media (max-width: 800px) { .bento { grid-template-columns: 1fr; } .bt-w2 { grid-column: auto; } }

/* Carte noire : agrement */
.bt-dark { max-width: 1280px; margin: 0 auto; border-radius: clamp(22px, 2.4vw, 34px); background: var(--ink); color: #fff; text-align: center; padding: clamp(56px, 7vw, 110px) var(--m); }
.bt-dark .t-label { color: rgb(255 255 255 / 0.7); margin-bottom: 24px; }
.bt-dark h2 { color: #fff; text-transform: uppercase; letter-spacing: 0.04em; font-size: clamp(1.76rem, 2.76vw, 2.76rem); line-height: 1.05; margin-bottom: 24px; }
.bt-dark .agrement-no { color: rgb(255 255 255 / 0.85); }

/* ============================================================
   Nos filieres : une licence par ecran, animation plein ecran
   ============================================================ */
.lf { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 0 var(--m); overflow: hidden; }
.lf-media { position: absolute; top: 0; bottom: 0; right: 0; width: min(100svh, 64vw); -webkit-mask-image: linear-gradient(to right, transparent, #000 28%), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 28%), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent); mask-composite: intersect; }
.lf-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lf:nth-of-type(even) { justify-content: flex-end; }
.lf:nth-of-type(even) .lf-media { right: auto; left: 0; -webkit-mask-image: linear-gradient(to left, transparent, #000 28%), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(to left, transparent, #000 28%), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent); }
.lf-text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; width: min(44vw, 640px); }
.lf-no { font-stretch: 125%; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.16em; color: var(--navy); margin-bottom: clamp(24px, 3vw, 44px); }
.lf-name { font-size: clamp(2.08rem, 3.84vw, 4.2rem); text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.02; margin-bottom: clamp(20px, 2.4vw, 36px); }
.lf-sub { font-stretch: 112%; font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.lf-desc { font-size: 1.0625rem; line-height: 1.7; color: var(--dim); max-width: 42ch; }
@media (max-width: 860px) {
  .lf { flex-direction: column; justify-content: flex-start; align-items: stretch; padding-top: 0; padding-bottom: 56px; min-height: 100svh; }
  .lf-media, .lf:nth-of-type(even) .lf-media { position: relative; inset: auto; width: calc(100% + 2 * var(--m)); margin: 0 calc(-1 * var(--m)); aspect-ratio: 1; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 85%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 85%, transparent); }
  .lf-text { width: 100%; margin-top: -24px; }
}

/* Bouton de lecture quand les animations sont reduites par le systeme */
.play-btn { position: absolute; z-index: 5; left: 50%; bottom: 32px; transform: translateX(-50%); padding: 14px 28px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; cursor: pointer; font-stretch: 112%; font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.06em; }
.play-btn:hover { background: #2B3038; }
.play-btn-hero { bottom: 24px; background: #fff; color: var(--ink); }
.hero .play-btn-hero { bottom: 48px; }

/* ============================================================
   Bandeau reseaux : scene orbitale (Figma "symbol-exploration-motion",
   fichier 27p1YvQLrtckMRQtO0beJ3, frame 1:271) a gauche, ancien bandeau a droite.
   Valeurs et courbes copiees du Figma : ne pas modifier.
   ============================================================ */
@property --rotate-transform { syntax: '<angle>'; initial-value: 0rad; inherits: false; }
.duo-social { display: flex; flex-wrap: nowrap; justify-content: center; background: #0A0A0A; overflow: hidden; }
.duo-cell { position: relative; overflow: hidden; flex: none; }
.duo-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.duo-stage-a { width: 720px; height: 900px; }
.duo-stage-b { width: 1440px; height: 900px; }
.duo-stage-b .social-banner { width: 1440px; height: 900px; min-height: 900px; padding: 44px 86px; flex-direction: row; justify-content: normal; }
.duo-stage-b .social-banner-inner { margin-bottom: 0; }
.duo-stage-b .figma-trail { right: 58px; top: 50%; transform: translateY(-50%); }
.duo-stage-b .figma-headline { text-align: left; }
.duo-stage-b .figma-headline-line { font-size: 5.2rem; }
@media (max-width: 860px) { .duo-social { flex-direction: column; } }

.orb-frame { position: relative; width: 720px; height: 900px; overflow: hidden; background: #0A0A0A; }
.orb-label { position: absolute; left: 276px; top: 366px; width: 168px; height: 168px; box-sizing: border-box; justify-content: center; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; background: #000; border-radius: 20px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.09); margin: 0; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 15px; line-height: normal; letter-spacing: -0.2px; color: rgba(255, 255, 255, 0.8); white-space: nowrap; animation: kf_1_272_opacity_0 7s linear, kf_1_272_translate_0 7s linear; animation-iteration-count: infinite; }
.orb-sqs { display: flex; gap: 5px; }
.orb-sqs i { display: grid; place-items: center; width: 26px; height: 26px; font: normal 800 12px/1 'Inter', sans-serif; }
.orb-sqs .g { background: var(--gold); color: #0A0A0A; }
.orb-sqs .o { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8); color: rgba(255, 255, 255, 0.8); }
.orb-name { font-size: 15px; line-height: 1.25; }
.orb-orbit { position: absolute; left: 0; top: 90px; width: 720px; height: 720px; animation: kf_1_273_rotate_0 7s linear; animation-iteration-count: infinite; }
.orb-tile { position: absolute; width: 168px; height: 168px; background: #000; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.09); display: block; }
a.orb-tile { cursor: pointer; }
a.orb-tile:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.orb-icon { position: absolute; left: 36px; top: 36px; width: 96px; height: 96px; }
.orb-icon img { position: absolute; display: block; max-width: none; }
.orb-glass { position: absolute; left: -174px; top: 0; width: 168px; height: 168px; }
.orb-glare-wrap { position: absolute; display: flex; align-items: center; justify-content: center; }
.orb-glare-wrap > div { flex: none; transform: rotate(22deg); }
.orb-glare-wrap .g1 { width: 64px; height: 320px; }
.orb-glare-wrap .g2 { width: 16px; height: 320px; }
.orb-w1 { left: -5.61px; top: -76.34px; width: 179.214px; height: 320.674px; }
.orb-w2 { left: 66.65px; top: -67.35px; width: 134.709px; height: 302.693px; }
@keyframes kf_1_272_opacity_0 { 0% { opacity: 0; } 17.143% { animation-timing-function: ease-out; opacity: 0; } 25.714% { opacity: 1; } 64.286% { animation-timing-function: ease-in-out; opacity: 1; } 70.714% { opacity: 0; } 100% { opacity: 0; } }
@keyframes kf_1_272_translate_0 { 0% { translate: 0px 10px; } 17.143% { animation-timing-function: ease-out; translate: 0px 10px; } 27.143% { translate: 0px 0px; } 64.286% { animation-timing-function: ease-in-out; translate: 0px 0px; } 70.714% { translate: 0px 10px; } 100% { translate: 0px 10px; } }
@keyframes kf_1_273_rotate_0 { 0% { rotate: 0deg; } 100% { rotate: 90deg; } }
@media (prefers-reduced-motion: reduce) { .orb-label, .orb-orbit, .orb-tile, .orb-glass { animation: none !important; } .orb-orbit { rotate: none; } }
.orb-fb { left: 156px; top: 68px; animation: kf_fb_br 7s linear, kf_fb_op 7s linear, kf_fb_rot 7s linear, kf_fb_tr 7s linear, kf_fb_sc 7s linear; animation-iteration-count: infinite; }
.orb-fb .orb-icon img { left: 8px; top: 8px; width: 80px; height: 80px; }
.orb-fb .orb-glass { animation: kf_fb_gl 7s linear; animation-iteration-count: infinite; }
.orb-fb .g1 { background: linear-gradient(to right, rgba(158,171,199,0), rgba(158,171,199,0.12) 50%, rgba(158,171,199,0)); }
.orb-fb .g2 { background: linear-gradient(to right, rgba(158,171,199,0), rgba(158,171,199,0.08) 50%, rgba(158,171,199,0)); }
@keyframes kf_fb_br { 0% { border-radius: 20px; } 12.143% { animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); border-radius: 20px; } 21.429% { border-radius: 60px; } 71.429% { animation-timing-function: ease-in-out; border-radius: 60px; } 82.857% { border-radius: 20px; } 100% { border-radius: 20px; } }
@keyframes kf_fb_op { 0% { opacity: 0; } 8.571% { animation-timing-function: ease-out; opacity: 0; } 11.429% { opacity: 1; } 82.857% { animation-timing-function: ease-in-out; opacity: 1; } 87.143% { opacity: 0; } 100% { opacity: 0; } }
@keyframes kf_fb_rot { 0% { rotate: 0deg; } 100% { rotate: -90deg; } }
@keyframes kf_fb_tr { 0% { translate: 100px 223.85px; } 12.143% { animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); translate: 100px 223.85px; } 21.429% { translate: 0px 0px; } 71.429% { animation-timing-function: ease-in-out; translate: 0px 0px; } 82.857% { translate: 100px 223.85px; } 100% { translate: 100px 223.85px; } }
@keyframes kf_fb_sc { 0% { scale: 0.92 0.92; } 12.143% { animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); scale: 0.92 0.92; } 21.429% { scale: 1 1; } 71.429% { animation-timing-function: ease-in-out; scale: 1 1; } 82.857% { scale: 0.92 0.92; } 100% { scale: 0.92 0.92; } }
@keyframes kf_fb_gl { 0% { translate: 0px 0px; } 28.571% { animation-timing-function: ease-in-out; translate: 0px 0px; } 42.143% { translate: 360px 0px; } 100% { translate: 360px 0px; } }
.orb-ig { left: 396px; top: 68px; animation: kf_ig_br 7s linear, kf_ig_op 7s linear, kf_ig_rot 7s linear, kf_ig_tr 7s linear, kf_ig_sc 7s linear; animation-iteration-count: infinite; }
.orb-ig .orb-icon img { left: 8px; top: 8px; width: 80px; height: 80px; }
.orb-ig .orb-glass { animation: kf_ig_gl 7s linear; animation-iteration-count: infinite; }
.orb-ig .g1 { background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.26) 50%, rgba(255,255,255,0)); }
.orb-ig .g2 { background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.18) 50%, rgba(255,255,255,0)); }
@keyframes kf_ig_br { 0% { border-radius: 20px; } 12.143% { animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); border-radius: 20px; } 21.429% { border-radius: 60px; } 71.429% { animation-timing-function: ease-in-out; border-radius: 60px; } 82.857% { border-radius: 20px; } 100% { border-radius: 20px; } }
@keyframes kf_ig_op { 0% { opacity: 0; } 8.571% { animation-timing-function: ease-out; opacity: 0; } 11.429% { opacity: 1; } 82.857% { animation-timing-function: ease-in-out; opacity: 1; } 87.143% { opacity: 0; } 100% { opacity: 0; } }
@keyframes kf_ig_rot { 0% { rotate: 0deg; } 100% { rotate: -90deg; } }
@keyframes kf_ig_tr { 0% { translate: -130px 215.85px; } 12.143% { animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); translate: -130px 215.85px; } 21.429% { translate: 0px 0px; } 71.429% { animation-timing-function: ease-in-out; translate: 0px 0px; } 82.857% { translate: -130px 215.85px; } 100% { translate: -130px 215.85px; } }
@keyframes kf_ig_sc { 0% { scale: 0.92 0.92; } 12.143% { animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); scale: 0.92 0.92; } 21.429% { scale: 1 1; } 71.429% { animation-timing-function: ease-in-out; scale: 1 1; } 82.857% { scale: 0.92 0.92; } 100% { scale: 0.92 0.92; } }
@keyframes kf_ig_gl { 0% { translate: 0px 0px; } 50% { animation-timing-function: ease-in-out; translate: 0px 0px; } 63.571% { translate: 360px 0px; } 100% { translate: 360px 0px; } }
.orb-web { left: 516px; top: 276px; animation: kf_web_br 7s linear, kf_web_op 7s linear, kf_web_rot 7s linear, kf_web_tr 7s linear, kf_web_sc 7s linear; animation-iteration-count: infinite; }
.orb-web .orb-icon img { left: 6px; top: 6px; width: 84px; height: 84px; }
.orb-web .orb-glass { animation: kf_web_gl 7s linear; animation-iteration-count: infinite; }
.orb-web .g1 { background: linear-gradient(to right, rgba(158,171,199,0), rgba(158,171,199,0.12) 50%, rgba(158,171,199,0)); }
.orb-web .g2 { background: linear-gradient(to right, rgba(158,171,199,0), rgba(158,171,199,0.08) 50%, rgba(158,171,199,0)); }
@keyframes kf_web_br { 0% { border-radius: 20px; } 12.143% { animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); border-radius: 20px; } 21.429% { border-radius: 60px; } 71.429% { animation-timing-function: ease-in-out; border-radius: 60px; } 82.857% { border-radius: 20px; } 100% { border-radius: 20px; } }
@keyframes kf_web_op { 0% { opacity: 0; } 8.571% { animation-timing-function: ease-out; opacity: 0; } 11.429% { opacity: 1; } 82.857% { animation-timing-function: ease-in-out; opacity: 1; } 87.143% { opacity: 0; } 100% { opacity: 0; } }
@keyframes kf_web_rot { 0% { rotate: 0deg; } 100% { rotate: -90deg; } }
@keyframes kf_web_tr { 0% { translate: -240px 0px; } 12.143% { animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); translate: -240px 0px; } 21.429% { translate: 0px 0px; } 71.429% { animation-timing-function: ease-in-out; translate: 0px 0px; } 82.857% { translate: -240px 0px; } 100% { translate: -240px 0px; } }
@keyframes kf_web_sc { 0% { scale: 0.92 0.92; } 12.143% { animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); scale: 0.92 0.92; } 21.429% { scale: 1 1; } 71.429% { animation-timing-function: ease-in-out; scale: 1 1; } 82.857% { scale: 0.92 0.92; } 100% { scale: 0.92 0.92; } }
@keyframes kf_web_gl { 0% { translate: 0px 0px; } 39.286% { animation-timing-function: ease-in-out; translate: 0px 0px; } 52.857% { translate: 360px 0px; } 100% { translate: 360px 0px; } }
.orb-mail { left: 156px; top: 484px; animation: kf_mail_br 7s linear, kf_mail_op 7s linear, kf_mail_rot 7s linear, kf_mail_tr 7s linear, kf_mail_sc 7s linear; animation-iteration-count: infinite; }
.orb-mail .orb-icon img { left: 6px; top: 6px; width: 84px; height: 84px; }
.orb-mail .orb-glass { animation: kf_mail_gl 7s linear; animation-iteration-count: infinite; }
.orb-mail .g1 { background: linear-gradient(to right, rgba(158,171,199,0), rgba(158,171,199,0.12) 50%, rgba(158,171,199,0)); }
.orb-mail .g2 { background: linear-gradient(to right, rgba(158,171,199,0), rgba(158,171,199,0.08) 50%, rgba(158,171,199,0)); }
@keyframes kf_mail_br { 0% { border-radius: 20px; } 12.143% { animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); border-radius: 20px; } 21.429% { border-radius: 60px; } 71.429% { animation-timing-function: ease-in-out; border-radius: 60px; } 82.857% { border-radius: 20px; } 100% { border-radius: 20px; } }
@keyframes kf_mail_op { 0% { opacity: 0; } 8.571% { animation-timing-function: ease-out; opacity: 0; } 11.429% { opacity: 1; } 82.857% { animation-timing-function: ease-in-out; opacity: 1; } 87.143% { opacity: 0; } 100% { opacity: 0; } }
@keyframes kf_mail_rot { 0% { rotate: 0deg; } 100% { rotate: -90deg; } }
@keyframes kf_mail_tr { 0% { translate: 130px -215.85px; } 12.143% { animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); translate: 130px -215.85px; } 21.429% { translate: 0px 0px; } 71.429% { animation-timing-function: ease-in-out; translate: 0px 0px; } 82.857% { translate: 130px -215.85px; } 100% { translate: 130px -215.85px; } }
@keyframes kf_mail_sc { 0% { scale: 0.92 0.92; } 12.143% { animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); scale: 0.92 0.92; } 21.429% { scale: 1 1; } 71.429% { animation-timing-function: ease-in-out; scale: 1 1; } 82.857% { scale: 0.92 0.92; } 100% { scale: 0.92 0.92; } }
@keyframes kf_mail_gl { 0% { translate: 0px 0px; } 55.714% { animation-timing-function: ease-in-out; translate: 0px 0px; } 69.286% { translate: 360px 0px; } 100% { translate: 360px 0px; } }
.orb-tt { left: 36px; top: 276px; animation: kf_tt_br 7s linear, kf_tt_op 7s linear, kf_tt_rot 7s linear, kf_tt_tr 7s linear, kf_tt_sc 7s linear; animation-iteration-count: infinite; }
.orb-tt .orb-icon img { left: 8px; top: 8px; width: 80px; height: 80px; }
.orb-tt .orb-glass { animation: kf_tt_gl 7s linear; animation-iteration-count: infinite; }
.orb-tt .g1 { background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.26) 50%, rgba(255,255,255,0)); }
.orb-tt .g2 { background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.18) 50%, rgba(255,255,255,0)); }
@keyframes kf_tt_br { 0% { border-radius: 20px; } 12.143% { animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); border-radius: 20px; } 21.429% { border-radius: 60px; } 71.429% { animation-timing-function: ease-in-out; border-radius: 60px; } 82.857% { border-radius: 20px; } 100% { border-radius: 20px; } }
@keyframes kf_tt_op { 0% { opacity: 0; } 8.571% { animation-timing-function: ease-out; opacity: 0; } 11.429% { opacity: 1; } 82.857% { animation-timing-function: ease-in-out; opacity: 1; } 87.143% { opacity: 0; } 100% { opacity: 0; } }
@keyframes kf_tt_rot { 0% { rotate: 0deg; } 100% { rotate: -90deg; } }
@keyframes kf_tt_tr { 0% { translate: 260px -16px; } 12.143% { animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); translate: 260px -16px; } 21.429% { translate: 0px 0px; } 71.429% { animation-timing-function: ease-in-out; translate: 0px 0px; } 82.857% { translate: 260px -16px; } 100% { translate: 260px -16px; } }
@keyframes kf_tt_sc { 0% { scale: 0.92 0.92; } 12.143% { animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); scale: 0.92 0.92; } 21.429% { scale: 1 1; } 71.429% { animation-timing-function: ease-in-out; scale: 1 1; } 82.857% { scale: 0.92 0.92; } 100% { scale: 0.92 0.92; } }
@keyframes kf_tt_gl { 0% { translate: 0px 0px; } 33.571% { animation-timing-function: ease-in-out; translate: 0px 0px; } 47.143% { translate: 360px 0px; } 100% { translate: 360px 0px; } }
.orb-tel { left: 396px; top: 484px; animation: kf_tel_br 7s linear, kf_tel_rot 7s linear, kf_tel_tr 7s linear, kf_tel_sc 7s linear; animation-iteration-count: infinite; }
.orb-tel .orb-icon img { left: 6px; top: 6px; width: 84px; height: 84px; }
.orb-tel .orb-glass { animation: kf_tel_gl 7s linear; animation-iteration-count: infinite; }
.orb-tel .g1 { background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.26) 50%, rgba(255,255,255,0)); }
.orb-tel .g2 { background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.18) 50%, rgba(255,255,255,0)); }
@keyframes kf_tel_br { 0% { border-radius: 20px; } 12.143% { animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); border-radius: 20px; } 21.429% { border-radius: 60px; } 71.429% { animation-timing-function: ease-in-out; border-radius: 60px; } 82.857% { border-radius: 20px; } 100% { border-radius: 20px; } }
@keyframes kf_tel_rot { 0% { rotate: 0deg; } 100% { rotate: -90deg; } }
@keyframes kf_tel_tr { 0% { translate: -120px -207.85px; } 12.143% { animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); translate: -120px -207.85px; } 21.429% { translate: 0px 0px; } 71.429% { animation-timing-function: ease-in-out; translate: 0px 0px; } 82.857% { translate: -120px -207.85px; } 100% { translate: -120px -207.85px; } }
@keyframes kf_tel_sc { 0% { scale: 1.25 1.25; } 12.143% { animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); scale: 1.25 1.25; } 21.429% { scale: 1 1; } 82.857% { animation-timing-function: ease-in-out; scale: 1 1; } 91.429% { scale: 1.25 1.25; } 100% { scale: 1.25 1.25; } }
@keyframes kf_tel_gl { 0% { translate: 0px 0px; } 44.286% { animation-timing-function: ease-in-out; translate: 0px 0px; } 57.857% { translate: 360px 0px; } 100% { translate: 360px 0px; } }

/* La scene orbitale ne demarre que lorsqu'elle est visible, joue une fois puis se fige (voir script.js) */
.orb-frame:not(.is-live) .orb-label, .orb-frame:not(.is-live) .orb-orbit, .orb-frame:not(.is-live) .orb-tile, .orb-frame:not(.is-live) .orb-glass { animation-play-state: paused; }

/* Menu mobile : panneau arrondi sous la barre, avec Contact */
.nav-contact-m { display: none; }
@media (max-width: 860px) {
  .nav-contact-m { display: block; }
  /* Panneau toujours a sa taille finale (hauteur et marges fixes) ; le deploiement se joue en recadrage (clip-path) et fondu, sans jamais toucher la mise en page */
  .site-nav-bar .nav-links { position: absolute; top: calc(100% + 8px); left: 0; right: 0; grid-column: auto; flex-direction: column; align-items: stretch; gap: 0; max-height: 340px; overflow: hidden; padding: 6px 22px; border: 1px solid var(--rule); border-radius: 24px; background: var(--paper); clip-path: inset(0 0 100% 0 round 24px); opacity: 0; pointer-events: none; transition: clip-path 0.45s var(--ease), opacity 0.3s var(--ease); }
  .site-nav-bar .nav-links.is-open { clip-path: inset(0 0 0% 0 round 24px); opacity: 1; pointer-events: auto; }
  .site-nav-bar .nav-links a { display: block; width: 100%; padding: 16px 0 !important; border-bottom: 1px solid var(--rule) !important; }
  .site-nav-bar .nav-links a:last-child { border-bottom: 0 !important; }
  .site-nav-bar .nav-links a.is-active { color: var(--navy); border-bottom: 1px solid var(--rule) !important; padding-bottom: 16px !important; }
  .site-nav-bar .nav-links a.is-active:last-child { border-bottom: 0 !important; }
}

/* Hero de l'accueil : video verticale nette au centre, sa copie floue remplit les cotes */
.hero-vid-bg { position: absolute; left: -10%; top: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(34px) brightness(0.7); }
.hero-fg { position: absolute; inset: 0; display: flex; justify-content: center; overflow: hidden; }
.hero-fg video { height: 100%; width: auto; aspect-ratio: 9 / 16; object-fit: cover; display: block; will-change: transform; }
.hero-media .hero-veil::after { content: ""; position: absolute; inset: 0; background: #808080; mix-blend-mode: saturation; opacity: 0.45; }
@media (max-width: 860px) { .hero-fg video { height: 100%; } }

/* Cartes video : on recadre les bandes noires incrustees dans les sources (70 px sur 720) */
.card-o-vid video { transform: scale(1.24); }
.card-o-vid:hover video { transform: scale(1.3); }

/* Lecteur en superposition translucide, sur la meme page */
.lb { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: clamp(16px, 4vw, 56px); background: rgb(12 12 12 / 0.55); backdrop-filter: blur(22px) saturate(0.8); -webkit-backdrop-filter: blur(22px) saturate(0.8); opacity: 0; transition: opacity 0.5s var(--ease); }
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }
.lb-inner { width: min(1120px, 100%); transform: translateY(18px) scale(0.98); transition: transform 0.6s var(--ease); }
.lb.is-open .lb-inner { transform: none; }
.lb-frame { aspect-ratio: 1280 / 580; overflow: hidden; border-radius: var(--r); background: #000; }
.lb-frame video { display: block; width: 100%; height: auto; margin-top: -5.469%; }
.lb-bar { display: flex; align-items: center; gap: 18px; margin-top: 18px; color: #fff; }
.lb-btn, .lb-close { background: none; border: 0; padding: 0; color: #fff; cursor: pointer; font-family: inherit; font-stretch: 125%; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; }
.lb-btn:hover, .lb-close:hover { opacity: 0.6; }
.lb-close { display: block; margin: 0 0 16px auto; }
.lb-range { flex: 1; accent-color: #fff; height: 2px; cursor: pointer; }
.lb-time { font-variant-numeric: tabular-nums; font-size: 0.8125rem; color: rgb(255 255 255 / 0.8); min-width: 3.2em; text-align: right; }
.lb-title { margin: 14px 0 0; font-size: 0.9375rem; color: rgb(255 255 255 / 0.85); }
body.lb-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .lb, .lb-inner { transition: none; } }

/* Hero accueil : plein ecran, video de la lecon inaugurale (10 premieres secondes, bandeaux de la chaine retires par recadrage) */
body.page-home .hero { height: 100svh; min-height: 560px; }
body.page-home .hero-film { top: -4%; height: 108%; filter: saturate(0.6) contrast(1.03); }
body.page-home .hero-media .hero-veil { background: linear-gradient(180deg, rgb(0 0 0 / 0.38), rgb(0 0 0 / 0.08) 38%, rgb(0 0 0 / 0.3)); }

/* Section etablissements cliquable + fenetre d'informations */
button.bt { border: 0; font: inherit; text-align: left; cursor: pointer; width: 100%; align-items: flex-start; }
.bt-go { position: absolute; z-index: 1; right: 20px; bottom: 20px; width: 40px; height: 40px; border-radius: 999px; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 1.4rem; font-weight: 300; line-height: 1; transition: transform 0.4s var(--ease); }
button.bt:hover .bt-go { transform: rotate(90deg); }
.bt-mid { justify-content: space-between; }
.inst-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; width: 100%; }
.inst-btn { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 16px; border: 1px solid rgba(17, 20, 24, 0.22); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.inst-btn span { font-weight: 300; font-size: 1.15rem; line-height: 1; }
.inst-btn:hover { background: var(--ink); color: #fff; }
@media (max-width: 800px) { .inst-list { grid-template-columns: 1fr; } }

.sm { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgb(12 12 12 / 0.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.4s var(--ease); }
.sm[hidden] { display: none; }
.sm.is-open { opacity: 1; }
.sm-win { position: relative; width: min(560px, 100%); max-height: calc(100svh - 32px); overflow-y: auto; padding: clamp(24px, 3vw, 36px); border-radius: 28px; background: rgb(247 247 244 / 0.84); backdrop-filter: blur(26px) saturate(1.1); -webkit-backdrop-filter: blur(26px) saturate(1.1); border: 1px solid rgb(255 255 255 / 0.5); color: var(--ink); transform: translateY(16px) scale(0.98); transition: transform 0.5s var(--ease); }
.sm.is-open .sm-win { transform: none; }
.sm-close { display: block; margin: 0 0 14px auto; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-stretch: 125%; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.sm-close:hover { opacity: 0.55; }
.sm-photo { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 18px; margin-bottom: 20px; }
.sm-kind { color: var(--dim); margin-bottom: 10px; }
.sm-title { font-size: clamp(1.36rem, 1.8vw, 1.38rem); line-height: 1.08; margin-bottom: 22px; }
.sm-list { margin: 0; border-top: 1px solid var(--rule); }
.sm-list > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.sm-list dt { font-stretch: 125%; font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); padding-top: 0.2rem; }
.sm-list dd { margin: 0; font-size: 0.9375rem; line-height: 1.55; }
.sm-list dd a { font-weight: 600; border-bottom: 1px solid var(--rule); }
.sm-list dd a:hover { color: var(--navy); border-color: var(--navy); }
.sm-list .validate-flag { margin: 0; }
.sm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.sm-actions .btn-dark { font-size: 0.8125rem; }
body.sm-lock { overflow: hidden; }
@media (max-width: 520px) { .sm-list > div { grid-template-columns: 1fr; gap: 4px; } }
@media (prefers-reduced-motion: reduce) { .sm, .sm-win { transition: none; } }

/* Heritage : deux portraits */
.her-photo { margin: 0 0 26px; }
.her-photo img { display: block; width: 100%; max-width: 300px; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 22%; border-radius: var(--r); }
.her-photo figcaption { margin-top: 10px; font-size: 0.75rem; color: var(--dim); }
.her-photo figcaption a { border-bottom: 1px solid var(--rule); }
.her-photo figcaption a:hover { color: var(--navy); border-color: var(--navy); }
.her-photo-tbd { display: grid; place-items: center; width: 100%; max-width: 300px; aspect-ratio: 3 / 4; border-radius: var(--r); background: #ECECE9; padding: 24px; text-align: center; }

/* Photo de terrain sous le texte d'une licence */
.lf-photo { margin: clamp(20px, 2.4vw, 32px) 0 0; width: min(100%, 320px); }
.lf-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; border-radius: var(--r); }
.lf-photo figcaption { margin-top: 10px; font-size: 0.75rem; color: var(--dim); }

/* Temps forts de L'institut : videos verticales (format telephone) */
.videos-tall .vcard video { aspect-ratio: 9 / 16; max-height: 640px; width: 100%; object-fit: cover; }
@media (max-width: 700px) { .videos-tall .vcard video { max-height: none; } }

/* ============================================================
   Temps forts de L'institut : quatre bandes video (gabarit « Destination »).
   Clic : les autres bandes se retirent, la bande choisie glisse a gauche
   puis s'ouvre sur toute la largeur pour lire la video. Retour : les bandes
   remontent une a une depuis le bas.
   ============================================================ */
.vs { position: relative; max-width: 1280px; margin: 0 auto; background: #141619; color: #fff; border-radius: var(--r); padding: clamp(18px, 2.4vw, 32px) clamp(18px, 2.4vw, 32px) clamp(18px, 2.4vw, 32px) clamp(64px, 6vw, 88px); overflow: hidden; }
.vs-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: clamp(16px, 2vw, 26px); }
.vs-back { position: absolute; left: 0; top: 0; bottom: 0; width: clamp(48px, 4.6vw, 64px); border: 0; border-right: 1px solid rgb(255 255 255 / 0.08); background: rgb(255 255 255 / 0.03); color: #fff; font-size: 1.25rem; cursor: pointer; display: flex; align-items: flex-start; justify-content: center; padding-top: clamp(20px, 2.6vw, 34px); transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.vs-back:disabled { color: rgb(255 255 255 / 0.25); cursor: default; }
.vs-back:not(:disabled):hover { background: rgb(255 255 255 / 0.1); }
.vs-kicker { margin: 0 0 6px; font-stretch: 125%; font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; }
.vs-sub { margin: 0; font-size: 0.875rem; color: rgb(255 255 255 / 0.55); }
.vs-head > div { flex: 1; padding-bottom: 14px; border-bottom: 1px solid rgb(255 255 255 / 0.1); }
.vs-row { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); height: clamp(380px, 46vw, 600px); }
.vs-strip { position: relative; overflow: hidden; border: 0; padding: 0; background: #202328; cursor: pointer; color: #fff; text-align: center; transform-origin: bottom center; }
.vs-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 1.2s var(--ease), filter 0.6s var(--ease); }
.vs-strip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0.15), rgb(0 0 0 / 0.1) 45%, rgb(0 0 0 / 0.65)); transition: background 0.5s var(--ease); }
.vs-cap { position: absolute; z-index: 1; left: 10px; right: 10px; top: 56%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.vs-title { font-stretch: 125%; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.35; text-shadow: 0 1px 10px rgb(0 0 0 / 0.6); }
.vs-more { font-size: 0.8125rem; color: rgb(255 255 255 / 0.85); opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.vs-more::after { content: ""; display: block; width: 1px; height: 26px; margin: 10px auto 0; background: rgb(255 255 255 / 0.7); }
.vs-row:hover .vs-strip:not(:hover) .vs-media { filter: brightness(0.55) saturate(0.7); }
.vs-strip:hover .vs-media, .vs-strip:focus-visible .vs-media { transform: scale(1.05); }
.vs-strip:hover .vs-more, .vs-strip:focus-visible .vs-more { opacity: 1; transform: none; }
.vs-strip:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.vs-stage { position: absolute; z-index: 3; top: 0; bottom: 0; left: 0; overflow: hidden; background: #0d0e10; }
.vs-stage[hidden] { display: none; }
.vs-stage-bg { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; filter: blur(28px) brightness(0.45); }
.vs-stage-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.5s var(--ease); }
.vs-stage.is-open .vs-stage-video { opacity: 1; }
@media (max-width: 700px) {
  .vs { padding-left: 52px; }
  .vs-row { height: 460px; gap: 6px; }
  .vs-cap { top: auto; bottom: 16px; }
  .vs-title { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.6875rem; }
  .vs-more { display: none; }
}

/* Temps forts : sans panneau sombre ni bordures, les bandes se fondent dans la page */
.vs { background: transparent; color: var(--ink); border-radius: 0; padding: 0; overflow: visible; }
.vs-head { margin-bottom: clamp(18px, 2.2vw, 28px); align-items: center; }
.vs-head > div { border-bottom: 0; padding-bottom: 0; }
.vs-back { position: static; width: 44px; height: 44px; flex: none; border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--ink); padding: 0; align-items: center; font-size: 1.1rem; }
.vs-back:not(:disabled):hover { background: var(--ink); color: #fff; }
.vs-back:disabled { color: rgb(17 20 24 / 0.25); border-color: rgb(17 20 24 / 0.1); }
.vs-kicker { color: var(--ink); }
.vs-sub { color: var(--dim); }
.vs-strip { background: transparent; border-radius: var(--r); }
.vs-stage { background: transparent; border-radius: var(--r); }
.vs-stage-bg { filter: blur(30px) brightness(0.85) saturate(1.1); }
@media (max-width: 700px) { .vs { padding-left: 0; } }
.vs-stage { background: #2a2c30; }
.vs-stage-bg { inset: 0; width: 100%; height: 100%; transform: scale(1.35); }
.vs-desc { margin: 8px 0 0; font-size: 0.8125rem; line-height: 1.55; color: var(--dim); max-width: 58ch; }

/* ============================================================
   Heritage : "Henri Lopes a l'IUHL", preuve photographique
   d'un patronage reel (archives de l'institut, 16/10/2026)
   ============================================================ */
/* Archives : grille simple de photos en noir et blanc, l'annee de fondation au milieu
   (reference : page Events, grille asymetrique avec un mot dans une case vide). */
.archives { padding: clamp(80px, 10vw, 150px) var(--m) clamp(90px, 11vw, 160px); }
.ag-head { text-align: center; max-width: 52ch; margin: 0 auto clamp(40px, 5vw, 72px); }
.ag-head .t-label { color: var(--navy); margin-bottom: 14px; }
.ag-title { text-transform: uppercase; font-size: clamp(2.4rem, 4.8vw, 4.5rem); letter-spacing: 0.04em; line-height: 0.95; margin: 0 0 18px; }
.ag-intro { font-size: 0.95rem; line-height: 1.65; color: var(--dim); margin: 0; }
.ag-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 15vw, 230px); gap: clamp(10px, 1.2vw, 16px); max-width: 1180px; margin: 0 auto;
  grid-template-areas: "a b b c" "d y y e" "g f f h"; }
.ag-1 { grid-area: a; } .ag-2 { grid-area: b; } .ag-3 { grid-area: c; } .ag-4 { grid-area: d; } .ag-5 { grid-area: e; } .ag-6 { grid-area: f; }
.ag-cell { position: relative; margin: 0; overflow: hidden; background: var(--rule); }
.ag-cell img { display: block; width: 100%; height: 100%; object-fit: cover; scale: 1.06; filter: grayscale(1) contrast(1.08) brightness(1.03); transition: scale 0.8s var(--ease); }
.ag-cell:hover img { scale: 1.1; }
.ag-cell figcaption { position: absolute; left: 14px; right: 14px; bottom: 12px; font-size: 0.78rem; line-height: 1.35; color: #fff; text-shadow: 0 1px 12px rgb(0 0 0 / 0.8); }
.ag-year { grid-area: y; margin: 0; display: grid; place-items: center; font-family: var(--font-serif); font-size: clamp(3.2rem, 6.6vw, 6rem); line-height: 1; letter-spacing: 0.02em; color: var(--ink); }
@media (max-width: 760px) {
  .ag-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 34vw; grid-template-areas: "a b" "y y" "c d" "e f"; }
  .ag-year { font-size: 3.6rem; }
  .ag-cell figcaption { font-size: 0.68rem; left: 10px; bottom: 8px; }
}

/* Licence Droit : citation attribuee (credibilite web, voir methodes-metier) */
.lf-quote { margin: clamp(18px, 2.2vw, 28px) 0 0; padding-left: 18px; border-left: 2px solid var(--navy); max-width: 44ch; }
.lf-quote p { margin: 0 0 8px; font-family: var(--font-serif); font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.45; color: var(--ink); }
.lf-quote footer { font-size: 0.78rem; color: var(--dim); font-style: normal; }

/* Transition entre les pages (reference Exo Ape) : la nouvelle page monte comme un rideau,
   l'ancienne remonte plus lentement et s'assombrit. View Transitions entre documents (W3C, MDN) :
   Chrome, Edge et Safari recents ; les autres navigateurs changent de page sans animation. */
@media (prefers-reduced-motion: no-preference) {

  ::view-transition-group(root) { animation-duration: 1s; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); }
  ::view-transition-old(root) { animation: vt-out 1s cubic-bezier(0.76, 0, 0.24, 1) both; }
  ::view-transition-new(root) { animation: vt-in 1s cubic-bezier(0.76, 0, 0.24, 1) both; }
  @keyframes vt-out { to { transform: translateY(-22%); filter: brightness(0.45); } }
  @keyframes vt-in { from { transform: translateY(100%); } }

  /* Arrivee sur la page : le titre se devoile ligne par ligne, l'image de fond se recadre */
  .hc-bg { animation: hc-bg-in 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
  .hc-body .t-label, .hc-title, .hc-sub, .hc-body .btn-dark { animation: hc-rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hc-body .t-label { animation-delay: 0.55s; }
  .hc-title { animation-name: hc-title-in; animation-delay: 0.65s; }
  .hc-sub { animation-delay: 0.85s; }
  .hc-body .btn-dark { animation-delay: 0.95s; }
  @keyframes hc-bg-in { from { scale: 1.12; } }
  @keyframes hc-rise { from { opacity: 0; translate: 0 24px; } }
  @keyframes hc-title-in { from { clip-path: inset(0 0 100% 0); translate: 0 0.45em; } to { clip-path: inset(0 0 -20% 0); translate: 0 0; } }
}

/* Rendu du drapeau, partage par la barre du haut et la barre sous les titres du menu */
:root { --flag-bg: linear-gradient(rgb(0 0 0 / 0.3), rgb(0 0 0 / 0.3)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2' preserveAspectRatio='none'><g fill-opacity='0.78'><path fill='%23FBDE4A' d='M0 0H3V2H0z'/><path fill='%23009543' d='M0 0H1.9L0.1 2H0z'/><path fill='%23DC241F' d='M2.9 0H3V2H1.1z'/></g></svg>") 0 0 / 100% 100% no-repeat; --flag-filter: saturate(0.4) contrast(1.03); }

/* Drapeau de la Republique du Congo en barre de chargement : visible a chaque chargement de page,
   il se remplit de gauche a droite tout en haut de l'ecran, puis s'efface. 3 mm de haut, jamais par-dessus le hero.
   Geometrie officielle du drapeau, avec l'etalonnage du site : voile noir 35 %, couleurs desaturees, legere transparence. */
.flag-edge { position: fixed; top: 0; left: 0; right: 0; height: 3mm; z-index: 80; pointer-events: none; visibility: hidden; view-transition-name: flag-load;
  /* drapeau officiel de la Republique du Congo (3 x 2) : triangle vert en haut a gauche, bande jaune en diagonale
     du coin inferieur gauche au coin superieur droit, triangle rouge en bas a droite ; etire sur toute la barre */
  /* separations 10 % moins inclinees que la geometrie officielle (meme milieu), voile 5 % plus clair (30 % au lieu de 35 %) */
  background: var(--flag-bg);
  filter: var(--flag-filter); }
@media (max-width: 760px) { .flag-edge { height: 2mm; } }
@media (prefers-reduced-motion: no-preference) {
  .flag-edge.is-deploying { visibility: visible; animation: flag-load 1s both; }
  /* la barre reste fixe en haut de l'ecran pendant que la page monte en rideau */
  ::view-transition-group(flag-load), ::view-transition-new(flag-load) { animation: none; }
  ::view-transition-old(flag-load) { display: none; }
  @keyframes flag-load {
    0% { clip-path: inset(0 100% 0 0); opacity: 1; animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1); }
    55% { clip-path: inset(0 28% 0 0); animation-timing-function: cubic-bezier(0.6, 0, 0.4, 1); }
    80% { clip-path: inset(0 0 0 0); opacity: 1; }
    100% { clip-path: inset(0 0 0 0); opacity: 0; }
  }
}



/* Menu (ordinateur) : la page active est soulignee par une barre marine (elle remplace l'ancienne bordure) */
@media (min-width: 861px) {
  .site-nav-bar .nav-links a.is-active { border-bottom: 0 !important; padding-bottom: 0 !important; }
  .site-nav-bar .nl { position: relative; }
  .site-nav-bar .nl::before { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--navy); pointer-events: none; transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
  .site-nav-bar .nl:hover::before { transform: scaleX(1); transform-origin: left; }
  .site-nav-bar .nl.is-active::before { transform: scaleX(1); }
}

/* Page Nos filieres facon guide editorial (reference MNTN), sur fond blanc : licences en rangs alternes,
   grand numero en filigrane, surtitre or avec un trait, animation reduite a une carte, navigation verticale a droite. */
body.page-filieres, body.page-filieres main { background: var(--paper); color: var(--ink); }
body.page-filieres .hc { padding-bottom: 14px; }
.page-filieres main > .lf { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: clamp(40px, 7vw, 120px); align-items: center;
  max-width: 1120px; margin: 0 auto; padding: clamp(64px, 8vw, 120px) var(--m); overflow: visible; }
.page-filieres main > .lf:nth-of-type(even) { grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); justify-content: initial; }
.page-filieres main > .lf:nth-of-type(odd) .lf-card { order: 2; }
.page-filieres .lf-card, .page-filieres .lf:nth-of-type(even) .lf-card { position: relative; inset: auto; left: auto; right: auto; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: #EDEDEA;
  -webkit-mask-image: none; mask-image: none; box-shadow: 0 30px 60px -34px rgb(17 20 24 / 0.35); }
.page-filieres .lf-card video { width: 100%; height: 100%; object-fit: cover; }
.page-filieres .lf-text { position: relative; width: auto; padding-left: clamp(0px, 4vw, 64px); }
.page-filieres .lf-big { position: absolute; left: -0.08em; top: -0.8em; z-index: -1; font: 800 clamp(7rem, 13vw, 12rem)/1 var(--font-body); font-stretch: 100%;
  color: rgb(1 42 85 / 0.06); letter-spacing: -0.02em; pointer-events: none; }
.page-filieres .lf-kicker { position: relative; display: flex; align-items: center; gap: 16px; margin: 0 0 18px; color: var(--navy); font-size: 0.75rem; letter-spacing: 0.22em; }
.page-filieres .lf-kicker::before { content: ""; flex: none; width: 48px; height: 1px; background: var(--gold); }
.page-filieres .lf-name { color: var(--ink); text-transform: none; font-size: clamp(1.76rem, 2.16vw, 2.04rem); line-height: 1.1; letter-spacing: 0; margin-bottom: 22px; }
.page-filieres .lf-desc { color: var(--dim); font-size: 1rem; max-width: 46ch; }
.page-filieres .lf-more { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; color: var(--navy); font-size: 0.875rem; font-weight: 600; }
.page-filieres .lf-more i { font-style: normal; transition: transform 0.4s var(--ease); }
.page-filieres .lf-more:hover i { transform: translateX(6px); }

.page-filieres .lf-quote { border-left-color: var(--gold); }

/* navigation verticale : Debut, 01 a 09, trait qui suit la licence en cours */
.fl-nav { position: fixed; right: clamp(16px, 2.4vw, 40px); top: 50%; translate: 0 -50%; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
  padding-right: 14px; border-right: 1px solid var(--rule); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease); }
.fl-nav.is-on { opacity: 1; pointer-events: auto; }
.fl-nav a { color: rgb(17 20 24 / 0.4); transition: color 0.3s var(--ease); }
.fl-nav a.is-active, .fl-nav a:hover { color: var(--navy); }
.fl-nav a.is-active { position: relative; }
.fl-nav a.is-active::after { content: ""; position: absolute; right: -15px; top: -4px; bottom: -4px; width: 2px; background: var(--gold); }






@media (max-width: 860px) {
  .page-filieres main > .lf, .page-filieres main > .lf:nth-of-type(even) { grid-template-columns: 1fr; gap: 36px; padding: 72px var(--m); }
  .page-filieres main > .lf:nth-of-type(odd) .lf-card { order: 0; }
  .page-filieres .lf-card { max-width: 340px; }
  .page-filieres .lf-text { padding-left: 0; }
  .page-filieres .lf-big { font-size: 4.68rem; top: -0.55em; }
}

/* Nos filieres : les carres du logo I U H L se deplient un a un, du haut vers le bas, au fil du defilement (script.js) */
.fl-logo { position: fixed; left: clamp(16px, 2.4vw, 40px); top: 50%; translate: 0 -50%; z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 8px;
  perspective: 600px; opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease); }
.fl-logo.is-on { opacity: 1; }
.fl-sq { display: grid; place-items: center; width: 34px; height: 34px; font: 800 15px/1 var(--font-body); transform-origin: 50% 0; backface-visibility: hidden; will-change: transform; }
.fl-sq.gold { background: var(--gold); color: var(--navy); }
.fl-sq.out { box-shadow: inset 0 0 0 2px var(--navy); color: var(--navy); }
.fl-bar { position: relative; display: block; width: 2px; height: 120px; margin-top: 10px; background: var(--rule); }
.fl-bar i { position: absolute; left: 0; top: 0; width: 2px; height: 100%; background: var(--gold); transform-origin: 50% 0; transform: scaleY(0); }
@media (max-width: 860px) { .fl-logo { display: none; } }

/* Page Heritage : trame noire (references Alpine Escapes, Queenston, Travel News) :
   photo de fond en noir et blanc assombrie, cadre en equerres dorees, blocs noirs a barre doree qui chevauchent
   les portraits, cartes d'archives legendees, navigation numerotee a droite. */
body.page-heritage, body.page-heritage main { background: #0B0C0E; color: var(--paper); }
.hd-hero, .hd-arch { position: relative; overflow: hidden; }
.hd-hero { min-height: 100svh; display: flex; align-items: center; padding: 140px var(--m) 90px; }
.hd-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(0.9); }
.hd-veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(11 12 14 / 0.92) 0%, rgb(11 12 14 / 0.62) 55%, rgb(11 12 14 / 0.45) 100%), linear-gradient(0deg, #0B0C0E 0%, rgb(11 12 14 / 0) 35%); }
.hd-frame { position: relative; max-width: 640px; margin-left: clamp(0px, 6vw, 110px); padding: clamp(36px, 4vw, 56px) clamp(32px, 4vw, 56px); }
.hd-frame::before, .hd-frame::after { content: ""; position: absolute; width: 46%; height: 55%; pointer-events: none; }
.hd-frame::before { left: 0; top: 0; border-left: 2px solid var(--gold); border-top: 2px solid var(--gold); }
.hd-frame::after { right: 0; bottom: 0; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); }
.hd-label { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font-size: 0.72rem; font-weight: 600; font-stretch: 125%; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.hd-label::before { content: ""; width: 40px; height: 1px; background: var(--gold); }
.hd-no-in { font-weight: 800; color: var(--paper); }
.hd-title { margin: 0; color: var(--paper); font-family: var(--font-body); font-weight: 800; font-stretch: 100%; text-transform: uppercase; font-size: clamp(2.56rem, 4.8vw, 4.44rem); line-height: 0.95; letter-spacing: -0.01em; }
.hd-kicker { margin: 14px 0 26px; font-family: var(--font-serif); font-size: clamp(1.3rem, 1.68vw, 1.56rem); line-height: 1; color: var(--gold); }
.hd-sub { max-width: 46ch; margin: 0; font-size: 1.0625rem; line-height: 1.7; color: rgb(247 247 244 / 0.78); }
.hd-more { display: inline-flex; gap: 12px; margin-top: 30px; padding-bottom: 6px; border-bottom: 1px solid currentColor; color: var(--paper); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.hd-more i { font-style: normal; }
/* biographies : portrait + bloc noir a barre doree qui le chevauche */
.hd-bio { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; max-width: 1120px; margin: 0 auto; padding: clamp(80px, 10vw, 140px) var(--m); }
.hd-photo { grid-column: 1 / 2; grid-row: 1; margin: 0; aspect-ratio: 4 / 5; max-height: 640px; overflow: hidden; }
.hd-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: grayscale(1) contrast(1.05); }
.hd-box { grid-column: 2 / 3; grid-row: 1; position: relative; margin-left: -18%; padding: clamp(32px, 4vw, 52px); background: #0B0C0E; box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.8); }
.hd-box::after { content: ""; position: absolute; right: -14px; top: 6%; bottom: 6%; width: 3px; background: var(--gold); }
.hd-rev { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.hd-rev .hd-photo { grid-column: 2 / 3; }
.hd-rev .hd-box { grid-column: 1 / 2; margin: 0 -18% 0 0; z-index: 1; }
.hd-rev .hd-box::after { right: auto; left: -14px; }
.hd-no { position: absolute; right: clamp(20px, 3vw, 40px); top: -0.55em; font: 800 clamp(4.5rem, 8vw, 7rem)/1 var(--font-body); color: rgb(247 247 244 / 0.07); pointer-events: none; }
.hd-date { margin: 0 0 12px; font-size: 0.72rem; font-weight: 700; font-stretch: 125%; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.hd-name { margin: 0 0 8px; color: var(--paper); font-family: var(--font-body); font-weight: 800; text-transform: uppercase; font-size: clamp(1.36rem, 1.56vw, 1.44rem); line-height: 1.08; letter-spacing: 0.01em; }
.hd-role { margin: 0 0 22px; font-family: var(--font-serif); font-size: 1.3rem; color: rgb(247 247 244 / 0.85); }
.hd-box p[data-cms] { margin: 0 0 14px; font-size: 0.98rem; line-height: 1.72; color: rgb(247 247 244 / 0.72); }
.hd-box .her-quote { margin: 18px 0 0; padding-left: 18px; border-left: 2px solid var(--gold); font-family: var(--font-serif); font-size: 1.2rem; color: var(--paper); }
/* archives : photo de fond, cadre dore, puis cartes legendees */
.hd-arch { padding: clamp(120px, 14vw, 200px) var(--m) clamp(80px, 10vw, 140px); }
.hd-frame-arch { margin: 0 auto clamp(56px, 7vw, 100px); }
.hd-year { font-size: clamp(1.92rem, 3vw, 2.64rem); }
.hd-cards { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 28px); max-width: 1120px; margin: 0 auto; }
.hd-card { margin: 0; }
.hd-card-img { aspect-ratio: 3 / 2; overflow: hidden; background: #1A1C20; }
.hd-card-img img { width: 100%; height: 100%; object-fit: cover; scale: 1.04; filter: grayscale(1) contrast(1.08); transition: scale 0.8s var(--ease), filter 0.8s var(--ease); }
.hd-card:hover .hd-card-img img { scale: 1.09; filter: grayscale(0.2) contrast(1.05); }
.hd-card figcaption { margin-top: 14px; font-size: 0.8rem; font-weight: 700; font-stretch: 112%; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.4; color: var(--paper); text-align: center; }
/* navigation numerotee sur fond noir */
.page-heritage .fl-nav { border-right-color: rgb(247 247 244 / 0.22); }
.page-heritage .fl-nav a { color: rgb(247 247 244 / 0.45); }
.page-heritage .fl-nav a.is-active, .page-heritage .fl-nav a:hover { color: var(--paper); }
@media (max-width: 860px) {
  .hd-frame { margin-left: 0; }
  .hd-veil { background: linear-gradient(0deg, #0B0C0E 0%, rgb(11 12 14 / 0.78) 40%, rgb(11 12 14 / 0.7) 100%); }
  .hd-bio, .hd-rev { grid-template-columns: 1fr; padding: 64px var(--m); }
  .hd-photo, .hd-rev .hd-photo { grid-column: 1; grid-row: 1; max-height: 460px; }
  .hd-box, .hd-rev .hd-box { grid-column: 1; grid-row: 2; margin: -60px 16px 0; }
  .hd-box::after, .hd-rev .hd-box::after { left: auto; right: -10px; }
  .hd-cards { grid-template-columns: 1fr 1fr; gap: 14px; }
  .hd-card figcaption { font-size: 0.7rem; }
}

/* Menu a quatre pages : les liens restent sur une ligne */
.site-nav-bar .nav-links { gap: clamp(14px, 1.8vw, 28px); }
.site-nav-bar .nav-links a { white-space: nowrap; }
.site-nav-bar { width: min(940px, calc(100% - 2 * var(--m))); }

/* Barre de navigation (ordinateur) : logo a gauche, les quatre pages au centre, Contact a droite */
@media (min-width: 861px) {
  .site-nav-bar .logo { order: -1; justify-self: start; }
  .site-nav-bar .nav-links { justify-self: center; }
}


/* Heritage : la photo du haut est l'originale ; seul le passage en noir et blanc est applique (pas de contraste ajoute) */
.hd-hero .hd-bg { filter: grayscale(1) blur(2px) brightness(0.9); scale: 1.02; }

/* Heritage : grain argentique fin sur le haut de page */
.hd-grain { position: absolute; inset: 0; pointer-events: none; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
  background-size: 220px 220px; }

/* Heritage, partie Archives : photo de fond originale (petite), floutee pour masquer le manque de detail */
.hd-arch .hd-bg { filter: grayscale(1) blur(6px) brightness(0.5); scale: 1.04; }
@media (max-width: 860px) { .hd-hero .hd-bg { object-position: 74% center; } }

/* Temps forts sur telephone : grille 2 x 2 au lieu de 4 bandes de 80 px (videos trop recadrees),
   titres a l'horizontale, la video s'ouvre en grand depuis la case touchee */
@media (max-width: 700px) {
  .vs-row { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; height: auto; gap: 10px; }
  .vs-strip { aspect-ratio: 4 / 5; }
  .vs-cap { left: 12px; right: 12px; top: auto; bottom: 14px; }
  .vs-title { writing-mode: horizontal-tb; transform: none; font-size: 0.625rem; letter-spacing: 0.1em; line-height: 1.4; }
  .vs-stage-video { object-fit: contain; }
}

/* ============================================================
   Telephone : echelle reduite pour garder la meme vision que sur ordinateur (titres, cartes, espacements)
   ============================================================ */
@media (max-width: 700px) {
  .hc-title { font-size: 1.98rem; margin-bottom: 16px; }
  .hc-sub { font-size: 0.95rem; margin-bottom: 26px; }
  .hc-card { height: calc(78svh - 28px); min-height: 460px; }
  .blk-title { font-size: 1.55rem; margin-bottom: 36px; }
  .intro-title { font-size: 1.6rem; line-height: 1.12; }
  .duo-a { font-size: 1.05rem; }
  .duo-b { font-size: 1.9rem; }
  .intro-text, .lf-desc, .hd-sub { font-size: 0.95rem; }
  .blk, .band, .closing, .duo-intro, .intro { padding-top: 56px; padding-bottom: 56px; }
  .band { margin-top: 32px; margin-bottom: 32px; }
  main .fullbleed h2, main .agrement h2, main .bt-dark h2 { font-size: 1.8rem; }
  /* Nos filieres : animations reduites et rangs plus courts */
  .page-filieres main > .lf, .page-filieres main > .lf:nth-of-type(even) { padding: 44px var(--m); gap: 24px; }
  .page-filieres .lf-card { max-width: 230px; }
  .page-filieres .lf-name { font-size: 1.75rem; margin-bottom: 14px; }
  .page-filieres .lf-big { font-size: 3.31rem; }
  /* Heritage */
  .hd-title { font-size: 1.87rem; }
  .hd-kicker { font-size: 1.5rem; margin: 10px 0 18px; }
  .hd-name { font-size: 1.45rem; }
  .hd-bio, .hd-rev { padding-top: 44px; padding-bottom: 44px; }
  .hd-arch { padding-top: 80px; }
}

/* ---- Nos filieres : une seule police (Italiana, celle du titre « Nos filieres »), une seule taille, aucune graisse ----
   Trois couleurs : bleu marine, blanc, or. Couleurs pleines, sans transparence. La hierarchie vient de l'or et des espacements. */
.page-filieres .lf-text { display: flex; flex-direction: column; align-items: flex-start; --fz: 1.2rem; }
.page-filieres .lf-text > *, .page-filieres .lf-text .lf-quote p, .page-filieres .lf-text .lf-quote footer { font-family: var(--font-serif); font-size: var(--fz); font-weight: 400; font-stretch: 100%; font-style: normal; line-height: 1.5; letter-spacing: 0.015em; text-transform: none; }
.page-filieres .lf-name { order: 1; margin: 0 0 6px; color: var(--navy); letter-spacing: 0.04em; text-wrap: balance; }
.page-filieres .lf-kicker { order: 2; gap: 14px; margin: 0 0 24px; color: var(--navy); }
.page-filieres .lf-kicker::before { width: 28px; background: var(--gold); }
.page-filieres .lf-desc { order: 3; color: var(--navy); max-width: 36ch; }
.page-filieres .lf-quote { order: 4; margin: 24px 0 0; padding-left: 18px; border-left: 1px solid var(--gold); max-width: 36ch; }
.page-filieres .lf-quote p { margin: 0 0 8px; color: var(--navy); }
.page-filieres .lf-quote footer { color: var(--navy); }
.page-filieres .lf-more { order: 5; gap: 10px; margin-top: 26px; color: var(--navy); }
.page-filieres .lf-more i { color: var(--gold); }
.page-filieres .lf-big { display: none; }
.page-filieres .fl-nav a { font-weight: 300; color: rgb(1 42 85 / 0.66); }
@media (max-width: 760px) { .page-filieres .lf-text { --fz: 1.05rem; } }

/* ---- Nos filieres : scene epinglee (activee par script.js ; sinon la mise en page classique reste) ----
   Fond : la photo du haut de page (script.js la reprend de l'admin) sous un voile bleu marine.
   Chaque animation est presentee comme une gravure encadree : cadre blanc, filet dore interieur, ombre portee. */
.lf-staged .lf-stage { position: relative; }
.lf-staged .lf-pin { --card: min(54svh, 38vw); position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; background: var(--navy); }
.lf-staged .lf-bg, .lf-staged .lf-bg i { position: absolute; inset: 0; }
.lf-staged .lf-bg-photo { background: url("assets/filieres-hero-plage.jpg") center / cover no-repeat; filter: blur(4px); transform: scale(1.04); }
.lf-staged .lf-bg-veil { background: linear-gradient(to right, rgb(1 42 85 / 0.72), rgb(1 42 85 / 0.88) 62%); }
.lf-staged .lf-pin > .lf { position: absolute; inset: 0; display: grid; grid-template-columns: var(--card) minmax(0, 28rem); column-gap: clamp(56px, 7vw, 128px); align-items: center; align-content: center; justify-content: center; min-height: 0; margin: 0; padding: 96px clamp(84px, 9vw, 150px) 40px; overflow: visible; background: none; }
.lf-staged .lf-pin > .lf .lf-card { grid-column: 1; grid-row: 1; position: relative; inset: auto; width: var(--card); height: var(--card); max-width: none; aspect-ratio: auto; margin: 0; border-radius: 0; overflow: hidden; -webkit-mask-image: none; mask-image: none; background: #fff; box-shadow: 0 34px 60px -34px rgb(0 0 0 / 0.6); }
.lf-staged .lf-pin > .lf .lf-card::after { content: ""; position: absolute; inset: 14px; border: 1px solid var(--gold); pointer-events: none; }
.lf-staged .lf-pin > .lf .lf-card video { width: 100%; height: 100%; object-fit: cover; }
.lf-staged .lf-pin > .lf .lf-text { grid-column: 2; grid-row: 1; width: auto; margin: 0; padding: 0; }
.lf-staged .lf-pin > .lf .lf-text > * { opacity: 1; transform: none; transition: none; }
.lf-staged .lf-pin > .lf .play-btn { display: none; }
/* Texte en blanc plein sur le bleu marine, le metier et le lien en or */
.lf-staged .lf-pin .lf-name, .lf-staged .lf-pin .lf-desc, .lf-staged .lf-pin .lf-quote p, .lf-staged .lf-pin .lf-quote footer { color: #fff; }
.lf-staged .lf-pin .lf-kicker, .lf-staged .lf-pin .lf-more { color: var(--gold); }
/* Logo et navigation fixes : en clair tant que la scene sombre occupe l'ecran */
.lf-on-stage .fl-nav a { color: rgb(255 255 255 / 0.62); }
.lf-on-stage .fl-nav a.is-active, .lf-on-stage .fl-nav a:hover { color: #fff; }
.lf-on-stage .fl-sq.out { box-shadow: inset 0 0 0 2px #fff; color: #fff; }
.lf-on-stage .fl-bar { background: rgb(255 255 255 / 0.25); }
/* Telephone et tablette en portrait : l'animation en haut, le texte dessous */
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px) {
  .lf-staged .lf-pin { --card: min(56vw, 27svh); }
  .lf-staged .lf-pin > .lf { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; justify-items: center; row-gap: 16px; padding: 72px 22px 16px; }
  .lf-staged .lf-pin > .lf .lf-text { --fz: 0.95rem; }
  .lf-staged .lf-pin > .lf .lf-kicker { margin-bottom: 12px; }
  .lf-staged .lf-pin > .lf .lf-name { font-size: 1.5rem; margin-bottom: 8px; }
  .lf-staged .lf-pin > .lf .lf-more { margin-top: 12px; }
  .lf-staged .lf-pin > .lf .lf-text { grid-column: 1; grid-row: 2; justify-self: stretch; max-width: 32rem; margin: 0 auto; }
  .lf-staged .lf-pin > .lf .lf-card::after { inset: 10px; }
  .lf-staged .lf-bg-veil { background: linear-gradient(to bottom, rgb(1 42 85 / 0.72), rgb(1 42 85 / 0.9) 45%); }
}


/* ---- Pages d'enjeux par licence : entree en deux colonnes (texte, photo), puis trois articles en colonnes avec filet, etiquette et sources ---- */
.ed-split { min-height: 88svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--paper); }
.ed-split-text { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 140px var(--m) 72px; max-width: 40rem; margin-left: auto; }
.ed-split-text .t-label { color: var(--gold-text); }
.ed-h1 { margin: 0; font-weight: 800; font-stretch: 110%; font-size: clamp(1.52rem, 4.2vw, 3.6rem); line-height: 1.02; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; overflow-wrap: break-word; hyphens: manual; }
.ed-h1-long { font-size: clamp(1.52rem, 2.34vw, 2.1rem); }
.ed-kicker { margin: 0; font-family: "Italiana", serif; font-size: clamp(1.3rem, 1.56vw, 1.3rem); line-height: 1.2; color: var(--navy); }
.ed-sub { margin: 0; max-width: 40ch; color: var(--dim); line-height: 1.7; }
.ed-split-photo { position: relative; margin: 0; min-height: 52svh; }
.ed-split-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ed-split-doc { position: absolute; left: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 40px); display: grid; gap: 4px; max-width: 18rem; padding: 16px 18px; background: var(--white); border-top: 3px solid var(--gold); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18); color: var(--ink); }
.ed-split-doc span { font-stretch: 125%; font-weight: 600; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); }
.ed-split-doc strong { font-weight: 600; font-size: 0.95rem; line-height: 1.4; }
.ed-split-doc:hover strong { color: var(--navy); }
.ed-story { max-width: 76rem; margin: 0 auto; padding: clamp(56px, 8vw, 100px) var(--m) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(28px, 5vw, 72px); }
.ed-story-head { display: grid; gap: 14px; align-content: start; }
.ed-story-head .t-label { color: var(--gold-text); }
.ed-story-head h2 { margin: 0; font-family: "Italiana", serif; font-weight: 400; font-size: clamp(1.52rem, 2.04vw, 1.62rem); line-height: 1.1; color: var(--navy); text-wrap: balance; }
.ed-story-photo { margin: 8px 0 0; display: grid; gap: 8px; max-width: 20rem; }
.ed-story-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; display: block; }
.ed-story-photo figcaption { font-size: 0.85rem; color: var(--dim); }
.ed-story-body { display: grid; align-content: start; gap: 16px; padding-left: clamp(0px, 3vw, 40px); border-left: 1px solid var(--rule); }
.ed-story-body p { margin: 0; font-size: 1.05rem; line-height: 1.75; color: var(--ink-soft); max-width: 62ch; }
.ed-story-body .ed-src { margin-top: 8px; }
.ed-story-body .ed-src span { color: var(--dim); }
@media (max-width: 860px) { .ed-story { grid-template-columns: 1fr; } .ed-story-body { padding-left: 0; border-left: 0; } }
.ed-body { max-width: 76rem; margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--m) clamp(72px, 9vw, 130px); display: grid; gap: clamp(32px, 5vw, 56px); }
.ed-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
.ed-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ed-card-top > span:last-child { text-align: right; }
.ed-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 3px solid var(--ink); font-size: 0.78rem; color: var(--dim); }
.ed-tag { flex: none; white-space: nowrap; font-stretch: 125%; font-weight: 600; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); }
.ed-card h2 { margin: 6px 0 0; font-family: "Italiana", serif; font-weight: 400; font-size: clamp(1.3rem, 1.44vw, 1.3rem); line-height: 1.14; color: var(--navy); text-wrap: balance; }
.ed-card p { margin: 0; font-size: 1rem; line-height: 1.7; color: var(--ink-soft); }
.ed-src { list-style: none; margin: auto 0 0; padding: 14px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 8px; font-size: 0.82rem; line-height: 1.5; }
.ed-src li::before { content: "Source"; display: block; margin-bottom: 2px; font-stretch: 125%; font-weight: 600; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); }
.ed-src a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; overflow-wrap: anywhere; }
.ed-src a:hover { color: var(--ink); }
.ed-note { margin: 0; font-size: 0.88rem; line-height: 1.6; color: var(--dim); max-width: 62ch; }
.ed-actions { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.ed-split-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); min-height: 70svh; }
.ed-split-wide .ed-h1 { font-size: clamp(1.52rem, 2.76vw, 2.64rem); }
.ed-split-wide .ed-split-text { padding-top: 130px; }
@media (max-width: 860px) { .ed-split-wide { grid-template-columns: 1fr; } .ed-split-wide .ed-split-photo { min-height: 0; aspect-ratio: 3 / 2; } }
@media (max-width: 960px) { .ed-cards { grid-template-columns: 1fr; } .ed-card { max-width: 40rem; } }
@media (max-width: 860px) { .ed-split { grid-template-columns: 1fr; min-height: 0; } .ed-split-text { max-width: none; margin: 0; padding-top: 120px; padding-bottom: 40px; } .ed-split-photo { min-height: 48svh; } }

/* ---- Documentation (page Nos filieres) : l'affiche de l'IUHL et ses informations en texte ---- */
.doc { padding: clamp(72px, 9vw, 130px) var(--m); border-top: 1px solid var(--rule); display: grid; gap: 14px; justify-items: center; }
.doc .t-label { color: var(--dim); }
.doc-title { margin: 0; font-family: "Italiana", serif; font-weight: 400; font-size: clamp(1.52rem, 2.4vw, 1.68rem); line-height: 1.1; color: var(--navy); text-align: center; text-wrap: balance; }
.doc-grid { width: min(60rem, 100%); margin-top: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.doc-flyer { margin: 0; display: grid; gap: 8px; }
.doc-flyer img { width: 100%; height: auto; display: block; box-shadow: 0 0 0 1px var(--rule); }
.doc-flyer figcaption { font-size: 0.78rem; color: var(--dim); }
.doc-list { margin: 0; display: grid; }
.doc-list > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 4px 20px; padding: 16px 0; border-top: 1px solid var(--rule); }
.doc-list > div:first-child { border-top: 0; padding-top: 0; }
.doc-list dt { font-stretch: 125%; font-weight: 600; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); line-height: 1.8; }
.doc-list dd { margin: 0; line-height: 1.6; color: var(--ink-soft); overflow-wrap: anywhere; }
@media (max-width: 760px) { .doc-grid { grid-template-columns: 1fr; } .doc-flyer { max-width: 24rem; } .doc-list > div { grid-template-columns: 1fr; } }

.doc-more { width: min(60rem, 100%); margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 16px; }
.doc-sub { margin: 24px 0 0; font-family: "Italiana", serif; font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--navy); }
.doc-sub:first-child { margin-top: 0; }
.doc-year, .doc-note { margin: 0; font-size: 0.88rem; line-height: 1.6; color: var(--dim); max-width: 62ch; }
.doc-table-wrap { overflow-x: auto; border: 1px solid var(--rule); }
.doc-table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.doc-table th, .doc-table td { padding: 14px 16px; text-align: right; border-top: 1px solid var(--rule); color: var(--ink-soft); }
.doc-table thead th { border-top: 0; font-stretch: 125%; font-weight: 600; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); vertical-align: bottom; }
.doc-table th:first-child, .doc-table td:first-child { text-align: left; }
.doc-table tbody th { font-weight: 600; color: var(--navy); }
.doc-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 36px; }
.doc-cols h4 { margin: 0 0 10px; font-stretch: 125%; font-weight: 600; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); }
.doc-cols ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; line-height: 1.55; color: var(--ink-soft); }
.doc-cols li { padding-left: 14px; position: relative; }
.doc-cols li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 5px; height: 1px; background: var(--gold); }
@media (max-width: 860px) { .doc-cols { grid-template-columns: 1fr; } }


/* Telephone : la navigation Debut, 01 a 09, Infos passe en barre fixe en bas de l'ecran, pour atteindre une licence ou le bas de la page sans tout defiler */
@media (max-width: 860px) {
  .page-filieres { padding-bottom: 58px; }
  .fl-nav { right: 0; left: 0; top: auto; bottom: 0; translate: none; flex-direction: row; align-items: center; justify-content: flex-start; gap: 2px; padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px)); border-right: 0; border-top: 1px solid var(--rule); background: rgb(247 247 244 / 0.95); backdrop-filter: blur(8px); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; z-index: 55; }
  .fl-nav::-webkit-scrollbar { display: none; }
  .fl-nav a, .page-filieres .fl-nav a, .lf-on-stage .fl-nav a { flex: none; padding: 10px 13px; font-size: 0.8rem; color: rgb(1 42 85 / 0.7); }
  .fl-nav a.is-active, .fl-nav a:hover, .lf-on-stage .fl-nav a.is-active, .lf-on-stage .fl-nav a:hover { color: var(--navy); }
  .fl-nav a.is-active::after { right: 13px; left: 13px; top: auto; bottom: 3px; width: auto; height: 2px; }
}

/* Le numero de Brazzaville ouvre WhatsApp : on le dit a cote du numero, pour qu'on sache ce qui va s'ouvrir */
.footer-col .tel-note { display: block; margin: 2px 0 0; }
.tel-note { margin-left: 0.5em; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
/* Accueil : deux liens cote a cote sous le texte d'introduction (licences, puis frais et inscription) */
.intro-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 36px; margin: 0; }

/* Page Le groupe scolaire : frise « Notre histoire ». Dates a gauche, recit a droite, un fil marine fin qui relie les etapes,
   un point or par etape. Une etape sans date est masquee (champs laisses vides dans l'admin). */
.hx { --hx-date: 11.5rem; --hx-gap: clamp(22px, 4vw, 48px); list-style: none; margin: 0 auto; padding: 0; max-width: 48rem; display: grid; }
.hx-item { position: relative; display: grid; grid-template-columns: var(--hx-date) minmax(0, 1fr); gap: 0 var(--hx-gap); padding-bottom: clamp(28px, 4vw, 44px); }
.hx-item:has(.hx-date[hidden]) { display: none; }
.hx-item::before { content: ""; position: absolute; left: calc(var(--hx-date) + var(--hx-gap) / 2); top: 0.9em; bottom: -0.5em; width: 1px; background: var(--navy-line); }
.hx-item:last-child::before { display: none; }
.hx-item::after { content: ""; position: absolute; left: calc(var(--hx-date) + var(--hx-gap) / 2 - 4px); top: 0.62em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.hx-date { margin: 0; text-align: right; white-space: nowrap; font-stretch: 125%; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; line-height: 2; color: var(--navy); }
.hx-text { margin: 0; max-width: 60ch; font-size: 1.02rem; line-height: 1.7; color: var(--ink-soft); }
@media (max-width: 640px) {
  .hx-item { grid-template-columns: 1fr; padding-left: 26px; }
  .hx-date { text-align: left; }
  .hx-item::before { left: 4px; }
  .hx-item::after { left: 0; }
}

/* Page Le groupe scolaire : les cinq etablissements en liste defilante (reference « why join us »). Panneau marine,
   intitule a gauche, anneau pointille qui tourne avec le defilement, noms a droite. L'etablissement en cours est clair et
   ses informations s'affichent a cote de son nom. Sans epinglage (telephone, ecran bas, mouvement reduit) : liste simple, tout visible. */
.ets { padding: clamp(48px, 6vw, 96px) var(--m); }
.ets-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: clamp(28px, 4vw, 52px); border-radius: clamp(28px, 4vw, 48px); background: var(--white); color: var(--ink); border: 1px solid var(--rule); }
.ets-label { margin: 0; font-family: var(--font-body); font-stretch: 125%; font-weight: 600; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.7; color: var(--dim); max-width: 14rem; }
.ets-dial { display: none; }
.ets-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.ets-item { display: grid; gap: 12px; }
.ets .ets-name { color: var(--ink); }
.ets-name { margin: 0; font-family: "Italiana", serif; font-weight: 400; font-size: clamp(1.25rem, 1.7vw, 1.6rem); line-height: 1.1; text-transform: uppercase; letter-spacing: 0.02em; }
.ets-name button { all: unset; cursor: pointer; color: inherit; }
.ets-name button:focus-visible { outline: 2px solid var(--navy); outline-offset: 6px; border-radius: 4px; }
.ets-rows { margin: 0; display: grid; gap: 8px; }
.ets-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; font-size: 0.875rem; line-height: 1.5; }
.ets-row:has(dd[hidden]), .ets-row:has(a[hidden]) { display: none; }
.ets-row dt { font-stretch: 125%; font-weight: 600; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; line-height: 2.2; color: var(--navy); }
.ets-row dd { margin: 0; color: var(--ink-soft); }
.ets-row a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ets .tel-note { color: var(--dim); }
.ets-more { display: inline-block; margin-top: 14px; font-stretch: 125%; font-weight: 600; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy); padding-bottom: 5px; border-bottom: 2px solid var(--gold); }

/* Version epinglee (ordinateur) */
.ets.ets-on { height: calc(100vh + 4 * 45vh); padding-block: 0; }
.ets-on .ets-stage { position: sticky; top: max(96px, 12vh); height: min(52vh, 440px); grid-template-columns: minmax(0, 9rem) 6rem minmax(0, 1fr); align-items: center; gap: clamp(20px, 3vw, 40px); overflow: hidden; }
.ets-on .ets-label { align-self: center; }
.ets-on .ets-dial { position: relative; display: grid; place-items: center; width: 6rem; aspect-ratio: 1; }
.ets-ring { position: absolute; inset: 0; width: 100%; height: 100%; rotate: calc(var(--p, 0) * 300deg); transition: rotate 0.4s var(--ease); }
.ets-ring circle { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 0.01 1.6; opacity: 0.85; }
.ets-count { font-stretch: 112%; font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; color: var(--navy); }
.ets-on .ets-track { position: relative; height: 100%; overflow: hidden; -webkit-mask: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.ets-on .ets-list { position: absolute; left: 0; right: 0; top: 0; gap: clamp(20px, 3.5vh, 34px); transition: transform 0.7s var(--ease); }
.ets-on .ets-item { grid-template-columns: minmax(0, 14rem) minmax(0, 24rem); gap: 0 clamp(20px, 2.5vw, 36px); align-items: center; }
.ets.ets-on .ets-name { color: rgb(1 42 85 / 0.26); transition: color 0.4s ease, opacity 0.4s ease; }
.ets.ets-on .ets-item[data-far] .ets-name { opacity: 0.55; }
.ets.ets-on .ets-item.is-active .ets-name { color: var(--ink); opacity: 1; }
.ets-on .ets-info { opacity: 0; translate: 0 8px; transition: opacity 0.45s ease, translate 0.45s var(--ease); pointer-events: none; }
.ets-on .ets-item.is-active .ets-info { opacity: 1; translate: 0 0; pointer-events: auto; }
/* Fond blanc (12/11/2026) : petits details bleu marine et jaune du logo. Repere au-dessus du nom : trait jaune et carre bleu,
   visible sur chaque nom en liste simple (telephone), seulement sur l'etablissement en cours dans la liste defilante. */
.ets-name::before { content: ""; display: block; width: 34px; height: 3px; margin-bottom: 10px; background: linear-gradient(90deg, var(--gold) 0 24px, transparent 24px 28px, var(--navy) 28px); }
.ets.ets-on .ets-name::before { width: 0; transition: width 0.5s var(--ease); }
.ets.ets-on .ets-item.is-active .ets-name::before { width: 34px; }
.ets-label::before { content: ""; display: block; width: 8px; height: 8px; margin-bottom: 14px; border-radius: 50%; background: var(--gold); }
@media (max-width: 1180px) { .ets-on .ets-stage { grid-template-columns: 6.5rem minmax(0, 1fr); } .ets-on .ets-label { display: none; } .ets-on .ets-dial { width: 6.5rem; } }
@media (prefers-reduced-motion: reduce) { .ets-on .ets-list, .ets-ring, .ets-on .ets-info, .ets-on .ets-name { transition: none; } }

/* ============================================================
   ACCUEIL, INTRODUCTION ET NOS CAMPUS (12/11/2026)
   D'apres deux gabarits fournis par Kekely :
   - Melali / Visa Travels : pastilles, grand titre sur deux lignes
     decalees, lentille qui suit la souris, poignee sur fil pointille,
     texte et bouton a gauche, cartes de tailles differentes a droite
     avec Precedent / Suivant.
   - Duke University : trois cartes sombres icone + titre + texte,
     bande noire au grand titre serif, photo qui deborde de la bande.
   Couleurs : papier (60 %), encre (30 %), bleu marine en accent (10 %).
   Polices : Italiana pour les titres, Archivo pour tout le reste.
   ============================================================ */

/* Icones dessinees : un seul trait, une seule epaisseur */
.ix svg, .cpx svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* --- Introduction --- */
.ix { position: relative; padding: clamp(80px, 9vw, 140px) var(--m) clamp(150px, 17vw, 240px); }
.ix-top { position: relative; display: flex; justify-content: center; align-items: center; max-width: 1280px; margin: 0 auto; }
.ix-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ix-pill, .cpx-pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--rule); font-size: 0.8125rem; font-weight: 500; line-height: 1.2; color: var(--ink); }
.ix-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--navy); flex: none; }

.ix-stack { position: absolute; right: 0; top: 50%; translate: 0 -50%; display: flex; align-items: center; padding: 4px; border-radius: 999px; transition: background 0.4s var(--ease); }
.ix-stack img, .ix-stack-go { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 3px solid var(--paper); margin-left: -12px; transition: translate 0.5s var(--ease); }
.ix-stack img:first-child { margin-left: 0; }
.ix-stack-go { display: grid; place-items: center; background: var(--ink); color: var(--paper); }
.ix-stack-go svg { width: 16px; height: 16px; }
.ix-stack:hover img:nth-child(1) { translate: -6px 0; }
.ix-stack:hover img:nth-child(2) { translate: -3px 0; }
.ix-stack:hover .ix-stack-go { translate: 4px 0; background: var(--navy); }

.ix-head { position: relative; width: fit-content; max-width: 100%; margin: clamp(40px, 5vw, 72px) auto 0; text-align: center; }
.ix-title { font-size: clamp(1.92rem, 3vw, 3rem); line-height: 1.05; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); text-wrap: balance; }
.ix-title .ix-l { display: block; white-space: nowrap; }
.ix-title .ix-l2 { padding-left: 0; }
.ix-w { display: inline-block; overflow: clip; vertical-align: top; padding: 0.14em 0 0.1em; margin: -0.14em 0 -0.1em; }
.ix-wi { display: inline-block; }
.ix-anim .ix-wi { translate: 0 105%; }
.ix-anim.is-in .ix-wi { translate: 0 0; transition: translate 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms); }

/* Trois entrees, comme les colonnes du reste du site (.feat3) : centrees, separees par un filet, lien souligne */
.ix-cards { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1100px; margin: clamp(56px, 6vw, 88px) auto 0; padding: 0; list-style: none; text-align: center; }
.ix-cards > li + li { border-left: 1px solid var(--rule); }
.ix-card { display: block; height: 100%; padding: 4px clamp(16px, 3vw, 48px); color: var(--ink); }
.ix-card-body { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ix-card-body strong { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.ix-card-text { font-size: 0.9375rem; line-height: 1.6; color: var(--dim); max-width: 32ch; }
.ix-card-more { display: inline-block; margin-top: 8px; padding-bottom: 6px; font-stretch: 125%; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: color 0.3s var(--ease); }
.ix-card:hover .ix-card-more { color: var(--navy); }
.ix-card:focus-visible, .ix-stack:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .ix-card:hover .ix-card-more { animation: line-redraw 0.7s var(--ease); } }
.ix-cards.ix-anim-cards > li { opacity: 0; translate: 0 28px; }
.ix-cards.ix-anim-cards.is-in > li { opacity: 1; translate: 0 0; transition: opacity 0.8s var(--ease), translate 1s var(--ease); transition-delay: calc(var(--i) * 90ms + 150ms); }

/* --- Nos campus : bande noire --- */
.cpx { --rise: clamp(56px, 9vw, 150px); --w-lg: clamp(250px, 27vw, 430px); --w-sm: clamp(140px, 16vw, 250px); position: relative; z-index: 2; display: grid; grid-template-columns: minmax(260px, 0.78fr) 1.5fr; gap: clamp(32px, 5vw, 88px); align-items: center; padding: clamp(64px, 7vw, 110px) var(--m); background: var(--ink); color: var(--paper); overflow-x: clip; }
.cpx-text { display: flex; flex-direction: column; align-items: flex-start; }
.cpx-pill { margin-bottom: clamp(40px, 6vw, 96px); background: rgb(255 255 255 / 0.06); border-color: rgb(255 255 255 / 0.16); color: var(--paper); }
.cpx-pill .ix-dot { background: var(--paper); }
.cpx-title { color: var(--paper); font-size: clamp(2.24rem, 3.36vw, 3.24rem); line-height: 1; letter-spacing: -0.005em; margin-bottom: clamp(20px, 2.4vw, 30px); }
.cpx-lead { max-width: 38ch; font-size: 1rem; line-height: 1.7; color: rgb(247 247 244 / 0.72); margin-bottom: clamp(28px, 3.4vw, 44px); }
.cpx .btn-dark { background: var(--paper); color: var(--ink); }
.cpx .btn-dark i { background: var(--ink); color: var(--paper); }
.cpx .btn-dark i svg { width: 16px; height: 16px; stroke-width: 2; }
.cpx .btn-dark:hover { background: #fff; }
.cpx .btn-dark:focus-visible, .cpx-card:focus-visible, .cpx-step:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }

.cpx-rail { min-width: 0; margin-top: calc(-2 * var(--rise)); margin-right: calc(-1 * var(--m)); }
.cpx-track { display: flex; align-items: flex-end; gap: clamp(12px, 1.6vw, 22px); touch-action: pan-y; }
.cpx-card { position: relative; flex: none; width: var(--w-sm); display: flex; flex-direction: column; gap: 16px; color: var(--paper); }
.cpx-card.is-active { width: var(--w-lg); }
.cpx-card[data-pos="1"] { margin-bottom: clamp(40px, 6vw, 92px); }
.cpx-card[data-pos="2"] { margin-bottom: clamp(70px, 9vw, 140px); }
.cpx-media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r); background: #23272E; }
.cpx-card.is-active .cpx-media { aspect-ratio: 4 / 5; box-shadow: 0 30px 60px -28px rgb(0 0 0 / 0.6); }
.cpx-card[data-pos="2"] .cpx-media { aspect-ratio: 1 / 1; }
.cpx-media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.cpx-card:hover .cpx-media img { scale: 1.05; }
.cpx-go { position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); opacity: 0; scale: 0.6; transition: opacity 0.4s var(--ease), scale 0.5s var(--ease), translate 0.4s var(--ease); }
.cpx-go svg { width: 18px; height: 18px; stroke-width: 2; }
.cpx-card.is-active .cpx-go { opacity: 1; scale: 1; }
.cpx-card.is-active:hover .cpx-go { translate: 4px 0; }

/* Legende : sous la photo pour la carte active, en pastille sur la photo pour les autres */
.cpx-cap { display: flex; flex-direction: column; gap: 4px; }
.cpx-cap strong { font-weight: 600; font-size: 1.125rem; line-height: 1.25; }
.cpx-cap small { font-size: 0.875rem; line-height: 1.4; color: rgb(247 247 244 / 0.68); }
.cpx-card:not(.is-active) .cpx-cap { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 7px 14px; border-radius: 999px; background: rgb(17 20 24 / 0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cpx-card:not(.is-active) .cpx-cap strong { font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpx-card:not(.is-active) .cpx-cap small { display: none; }

.cpx-nav { display: flex; gap: 4px; width: fit-content; margin: clamp(24px, 3vw, 40px) var(--m) 0 auto; padding: 4px; border-radius: 999px; background: rgb(255 255 255 / 0.08); }
.cpx-step { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--paper); cursor: pointer; font-size: 0.8125rem; font-weight: 600; transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.cpx-step svg { width: 15px; height: 15px; stroke-width: 2; transition: translate 0.4s var(--ease); }
.cpx-step:hover { background: var(--paper); color: var(--ink); }
.cpx-step[data-dir="-1"]:hover svg { translate: -3px 0; }
.cpx-step[data-dir="1"]:hover svg { translate: 3px 0; }
.cpx-step:active { scale: 0.96; }

/* Changement de carte : transition de vue (le navigateur anime la taille et la place) */
::view-transition-group(cpx-0), ::view-transition-group(cpx-1), ::view-transition-group(cpx-2) { animation-duration: 0.75s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
::view-transition-old(cpx-0), ::view-transition-old(cpx-1), ::view-transition-old(cpx-2),
::view-transition-new(cpx-0), ::view-transition-new(cpx-1), ::view-transition-new(cpx-2) { animation-duration: 0.45s; height: 100%; object-fit: cover; overflow: clip; }

@media (max-width: 1000px) {
  .ix-cards { grid-template-columns: 1fr; max-width: 560px; gap: 36px; }
  .ix-cards > li + li { border-left: 0; border-top: 1px solid var(--rule); padding-top: 36px; }
  .cpx { grid-template-columns: 1fr; --rise: 48px; --w-lg: min(66vw, 420px); --w-sm: min(38vw, 240px); }
  .cpx-rail { margin-top: 8px; }
  .cpx-pill { margin-bottom: 28px; }
  .cpx-nav { margin-right: var(--m); }
}
@media (max-width: 700px) {
  .ix-top { flex-direction: column; gap: 18px; }
  .ix-stack { position: static; translate: none; }
  .ix-title .ix-l { white-space: normal; }
  .ix-title .ix-l2 { padding-left: 0; }
  
  .cpx-card[data-pos="1"] { margin-bottom: 36px; }
  .cpx-card[data-pos="2"] { margin-bottom: 64px; }
  .cpx-step { padding: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ix-anim .ix-wi, .ix-cards.ix-anim-cards > li { translate: none; opacity: 1; }
}

/* ============================================================
   SURVOLS (12/11/2026) : courts, discrets, courants
   - boutons pleins : un anneau jaune se dessine autour de la fleche, comme un petit chargement ;
   - liens soulignes : le trait se retire vers la droite puis se redessine depuis la gauche ;
   - menu : le trait marine se dessine sous le titre survole (voir plus haut).
   ============================================================ */
@property --load { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.btn-dark i { position: relative; }
.btn-dark i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; pointer-events: none; background: conic-gradient(var(--gold) var(--load), transparent 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px)); transition: --load 0.6s cubic-bezier(0.45, 0, 0.25, 1); }
.btn-dark i svg { transition: translate 0.4s var(--ease); }
.link-line { border-bottom: 0; background: linear-gradient(currentColor, currentColor) 0 100% / 100% var(--lw, 1px) no-repeat; }
.ets-more { border-bottom: 0; --lw: 2px; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% var(--lw) no-repeat; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn-dark:hover i::after { --load: 360deg; }
  .btn-dark:hover i svg { translate: 2px 0; }
  .link-line:hover, .ets-more:hover { animation: line-redraw 0.7s var(--ease); }
}
@keyframes line-redraw {
  0% { background-position: 100% 100%; background-size: 100% var(--lw, 1px); }
  45% { background-position: 100% 100%; background-size: 0% var(--lw, 1px); }
  46% { background-position: 0 100%; background-size: 0% var(--lw, 1px); }
  100% { background-position: 0 100%; background-size: 100% var(--lw, 1px); }
}

/* ============================================================
   NOS FILIERES (12/11/2026) : les neuf licences en damier, d'apres deux gabarits fournis par Kekely.
   - Rune Studio : damier animation / texte en alternance, bouton encadre « Voir la licence ».
   - Global Fish : numero « 01. » avec un trait, numero en filigrane.
   Le haut de page d'origine est conserve, la citation reste dans le bloc Droit.
   ============================================================ */
.gl svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* --- Les neuf licences en damier --- */
.gl { max-width: 1120px; margin: 0 auto clamp(64px, 8vw, 120px); padding: 0 var(--m); }
.gl-row { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(min(calc(50vw - var(--m)), 520px), auto); scroll-margin-top: 90px; }
.gl-row:nth-of-type(even) .gl-media { order: 2; }
.gl-media { position: relative; overflow: hidden; background: #fff center / cover no-repeat; background-image: var(--poster, none); } /* fond blanc et image d'attente : plus d'eclair bleu pendant le chargement de l'animation */
.gl-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: transparent; }
.gl-text { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(32px, 5vw, 72px); background: var(--white); }
.gl-ghost { position: absolute; right: clamp(16px, 3vw, 40px); top: clamp(10px, 2vw, 24px); font: 800 clamp(4rem, 7.5vw, 7rem)/1 var(--font-body); font-stretch: 125%; color: rgb(1 42 85 / 0.05); pointer-events: none; }
.gl-no { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-weight: 700; font-size: 0.875rem; letter-spacing: 0.04em; color: var(--navy); }
.gl-no i { width: 40px; height: 2px; background: var(--gold); }
.gl-name { color: var(--ink); font-size: clamp(1.6rem, 2.4vw, 2.3rem); line-height: 1.12; margin-bottom: 12px; }
.gl-sub { font-weight: 600; font-size: 0.9375rem; line-height: 1.45; color: var(--ink); margin-bottom: 12px; }
.gl-desc { font-size: 0.9375rem; line-height: 1.65; color: var(--dim); max-width: 44ch; margin-bottom: 28px; }
.gl-quote { margin: -8px 0 28px; padding-left: 16px; border-left: 2px solid var(--gold); max-width: 44ch; }
.gl-quote p { font-family: var(--font-serif); font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.45; color: var(--ink); }
.gl-quote footer { margin-top: 8px; font-size: 0.75rem; line-height: 1.5; color: var(--dim); }
.gl-btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px; border: 1px solid var(--ink); color: var(--ink); font-weight: 600; font-size: 0.8125rem; transition: color 0.45s var(--ease), border-color 0.45s var(--ease); }
.gl-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform 0.55s cubic-bezier(0.45, 0, 0.25, 1); }
.gl-btn svg { width: 18px; height: 16px; transition: translate 0.4s var(--ease); }
.gl-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }

/* Survols : le fond se remplit de gauche a droite, comme un petit chargement */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gl-btn:hover::before { transform: scaleX(1); }
  .gl-btn:hover { color: var(--white); border-color: var(--navy); }
  .gl-btn:hover svg { translate: 4px 0; }
}
@media (prefers-reduced-motion: no-preference) {
  /* Apparition au defilement : le texte monte, l'animation de la licence reste fixe (classe posee par script.js) */
  .gl-anim .gl-text > :not(.gl-ghost) { opacity: 0; translate: 0 22px; transition: opacity 0.8s var(--ease), translate 1s var(--ease); }
  .gl-anim.is-in .gl-text > :not(.gl-ghost) { opacity: 1; translate: 0 0; }
  .gl-anim.is-in .gl-text > :nth-child(3) { transition-delay: 0.08s; }
  .gl-anim.is-in .gl-text > :nth-child(4) { transition-delay: 0.16s; }
  .gl-anim.is-in .gl-text > :nth-child(5) { transition-delay: 0.24s; }
  .gl-anim.is-in .gl-text > :nth-child(6) { transition-delay: 0.32s; }
  .gl-anim.is-in .gl-text > :nth-child(7) { transition-delay: 0.4s; }
}

@media (max-width: 860px) {
  .gl-row { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .gl-media { aspect-ratio: 1; }
  .gl-row:nth-of-type(even) .gl-media { order: 0; }
  .gl-text { padding: 32px 24px 44px; }
}

/* ============================================================
   NOS FILIERES, suite (12/11/2026) : « Inscriptions et dossier » et fin de page, meme langage que le damier.
   Rune Studio : titre et informations a gauche, affiche a droite ; Global Fish : « 01. » et trait jaune,
   bande de trois blocs de contact. Contenu inchange.
   ============================================================ */
.page-filieres .doc { counter-reset: docsec; display: block; max-width: 1120px; margin: 0 auto; padding: clamp(72px, 9vw, 120px) var(--m); border-top: 0; justify-items: normal; }
.page-filieres .doc > .t-label { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--white); font-stretch: 100%; font-weight: 500; font-size: 0.8125rem; letter-spacing: 0; text-transform: none; color: var(--ink); }
.page-filieres .doc > .t-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--navy); }
.page-filieres .doc-title { margin: 22px 0 0; text-align: left; color: var(--ink); font-size: clamp(1.9rem, 3vw, 2.8rem); }
.page-filieres .doc-grid { width: 100%; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 0; margin-top: clamp(28px, 4vw, 48px); align-items: stretch; }
.page-filieres .doc-list { order: 1; padding: clamp(28px, 4vw, 56px); background: var(--white); }
.page-filieres .doc-flyer { order: 2; align-self: start; position: sticky; top: 110px; padding: 0 0 0 clamp(24px, 4vw, 56px); background: none; } /* affiche imprimee : cadre blanc, ombre legere, reste visible pendant que la liste defile */
.page-filieres .doc-flyer img { border: 10px solid var(--white); box-shadow: 0 26px 50px -26px rgb(17 20 24 / 0.38); }
.page-filieres .doc-flyer figcaption { display: flex; align-items: center; gap: 10px; margin-top: 6px; color: var(--dim); }
.page-filieres .doc-flyer figcaption::before { content: ""; width: 24px; height: 2px; background: var(--gold); }
.page-filieres .doc-list > div { grid-template-columns: 9.5rem minmax(0, 1fr); }
.page-filieres .doc-list dt { font-stretch: 100%; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: none; color: var(--navy); font-weight: 700; }
.page-filieres .doc-more { width: 100%; margin-top: clamp(56px, 7vw, 96px); gap: 18px; }
.page-filieres .doc-sub { counter-increment: docsec; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: clamp(40px, 5vw, 64px); color: var(--ink); font-size: clamp(1.6rem, 2.4vw, 2.3rem); }
.page-filieres .doc-sub:first-child { margin-top: 0; }
.page-filieres .doc-sub::before { content: counter(docsec, decimal-leading-zero) "."; display: flex; align-items: center; gap: 14px; font-family: var(--font-body); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.04em; color: var(--navy); padding-right: 54px; background: linear-gradient(var(--gold), var(--gold)) right center / 40px 2px no-repeat; }
.page-filieres .doc-table-wrap { border: 0; background: var(--white); }
.page-filieres .doc-table thead th { font-stretch: 100%; font-size: 0.75rem; letter-spacing: 0.02em; text-transform: none; color: var(--navy); font-weight: 700; }
.page-filieres .doc-table th, .page-filieres .doc-table td { padding: 16px 20px; }
.page-filieres .doc-cols { gap: 0; }
.page-filieres .doc-cols > div { padding: clamp(24px, 3vw, 36px); background: var(--white); }
.page-filieres .doc-cols > div + div { border-left: 1px solid var(--rule); }
.page-filieres .doc-cols h4 { font-stretch: 100%; font-size: 0.875rem; letter-spacing: 0; text-transform: none; color: var(--navy); font-weight: 700; }

.closing { max-width: 1120px; margin: 0 auto; padding: clamp(72px, 9vw, 120px) var(--m) clamp(80px, 10vw, 140px); border-top: 1px solid var(--rule); }
.closing .t-label { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--white); font-stretch: 100%; font-weight: 500; font-size: 0.8125rem; letter-spacing: 0; text-transform: none; color: var(--ink); }
.closing .t-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.closing .intro-title { max-width: 24ch; margin-bottom: 22px; font-size: clamp(1.7rem, 2.8vw, 2.6rem); line-height: 1.15; }
.closing-frais { max-width: 60ch; margin: 0 auto; font-size: 0.9375rem; line-height: 1.65; color: var(--dim); }
.cs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin-top: clamp(40px, 5vw, 64px); text-align: left; }
.cs-item { position: relative; display: flex; align-items: center; gap: 16px; padding: 22px clamp(18px, 2vw, 28px); background: var(--navy); color: var(--white); overflow: hidden; }
.cs-item:nth-child(2) { background: var(--navy-soft); }
.cs-item:nth-child(3) { background: var(--ink); }
.cs-item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.6s cubic-bezier(0.45, 0, 0.25, 1); }
.cs-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: rgb(255 255 255 / 0.1); }
.cs-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cs-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cs-txt small { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; color: rgb(255 255 255 / 0.7); }
.cs-txt a { color: var(--white); font-weight: 600; font-size: 0.9375rem; overflow-wrap: anywhere; }
.cs-txt a::before { content: ""; position: absolute; inset: 0; }
.cs-txt a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .cs-item:hover::after { transform: scaleX(1); } }

@media (max-width: 860px) {
  .page-filieres .doc-grid { grid-template-columns: 1fr; }
  .page-filieres .doc-flyer { order: 0; position: static; padding: 0; margin-bottom: 28px; }
  .page-filieres .doc-list > div { grid-template-columns: 1fr; }
  .page-filieres .doc-cols { grid-template-columns: 1fr; }
  .page-filieres .doc-cols > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .cs { grid-template-columns: 1fr; }
}

/* Page Le groupe scolaire (12/11/2026) : memes cartes video et meme lecteur que l'accueil ; description sous le titre */
.lb-desc { max-width: 62ch; margin: 6px 0 0; font-size: 0.875rem; line-height: 1.55; text-align: left; color: rgb(255 255 255 / 0.75); }
/* Bandes « De la maternelle a l'universite » (Le groupe scolaire) et « Neuf licences professionnelles » (accueil), reduites de moitie a la demande de Kekely (12/11/2026) */
.band-half { margin: clamp(24px, 3vw, 48px) var(--m); padding: clamp(36px, 4.5vw, 70px) var(--m); border-radius: clamp(24px, 3vw, 40px); }
.band-half .blk-title { margin-bottom: clamp(24px, 3vw, 48px); }
.band-half .icons { gap: clamp(18px, 2.5vw, 36px) clamp(12px, 2vw, 32px); }
.band-half .icon-item { gap: 10px; }
.band-half .icon-item img { width: clamp(36px, 3.5vw, 52px); height: clamp(36px, 3.5vw, 52px); }
.band-half .icon-item span { font-size: 0.875rem; }
/* Page Nos filieres : la colonne IUHL et la navigation 01 a 09 s'effacent quand le pied de page arrive (elles passaient sur le logo) */
.fl-logo, .fl-nav { transition: opacity 0.4s var(--ease); }
body.at-footer .fl-logo, body.at-footer .fl-nav { opacity: 0 !important; pointer-events: none !important; }
.band-half .band-foot { margin-top: clamp(24px, 3vw, 44px); }

/* Nos campus (12/11/2026) : en fond de la bande, une photo de campus propre a la carte en cours (salle, plage, amphi), assombrie ;
   elle change avec Precedent / Suivant et n'apparait que lorsque la section est a l'ecran */
.cpx > :not(.cpx-bg) { position: relative; z-index: 1; }
.cpx-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--ink); opacity: 0; transition: opacity 0.9s var(--ease); }
/* Deux calques qui s'echangent en fondu : la photo change sans passer au-dessus du texte */
.cpx-bg i { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 0.8s var(--ease); }
.cpx-bg i.is-on { opacity: 1; }
.cpx-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(17 20 24 / 0.94) 0%, rgb(17 20 24 / 0.86) 38%, rgb(17 20 24 / 0.62) 100%); }
.cpx.is-seen .cpx-bg { opacity: 1; }
@media (max-width: 1000px) { .cpx-bg::after { background: rgb(17 20 24 / 0.84); } }

/* Panneau des cartes « Nos campus » (12/11/2026) : tiroir a droite, textes et photos de l'ancien site */
.cv { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: flex-end; background: rgb(12 12 12 / 0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.4s var(--ease); }
.cv[hidden] { display: none; }
.cv.is-open { opacity: 1; }
.cv-panel { position: relative; width: min(620px, 100%); height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: clamp(28px, 4vw, 52px); background: var(--paper); color: var(--ink); translate: 100% 0; transition: translate 0.6s var(--ease); }
.cv.is-open .cv-panel { translate: 0 0; }
.cv-close { position: sticky; top: 0; float: right; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--rule); border-radius: 999px; background: var(--white); color: var(--ink); cursor: pointer; font-weight: 600; font-size: 0.8125rem; }
.cv-close:hover { border-color: var(--navy); color: var(--navy); }
.cv-close:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.cv-kicker { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--white); font-weight: 500; font-size: 0.8125rem; }
.cv-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.cv-title { clear: both; margin: 20px 0 22px; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.12; color: var(--ink); }
.cv-hero { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; margin-bottom: 22px; }
.cv-rows { margin: 0 0 24px; display: grid; }
.cv-rows > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 0.9375rem; line-height: 1.55; }
.cv-rows dt { font-weight: 700; font-size: 0.75rem; color: var(--navy); line-height: 2; }
.cv-rows dd { margin: 0; color: var(--ink-soft); }
.cv-rows a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cv-note { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; color: var(--dim); }
.cv-sec { margin: 40px 0 0; font-weight: 700; font-size: 0.875rem; color: var(--navy); }
.cv-art { padding: 26px 0; border-top: 1px solid var(--rule); }
.cv-sec + .cv-art { border-top: 0; padding-top: 14px; }
.cv-date { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-weight: 700; font-size: 0.8125rem; color: var(--navy); }
.cv-date::after { content: ""; width: 32px; height: 2px; background: var(--gold); }
.cv-art h3 { margin-bottom: 10px; font-size: 1.0625rem; line-height: 1.35; }
.cv-art > p:not(.cv-date) { font-size: 0.9375rem; line-height: 1.65; color: var(--dim); }
.cv-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 16px; }
.cv-photos img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.cv-photos img:only-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
body.cv-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .cv, .cv-panel { transition: none; } }

/* Etablissements (Le groupe scolaire), simplifies le 13/11/2026 : une grille de cartes, sans defilement epingle */
.ets { padding: clamp(56px, 7vw, 110px) var(--m); }
.ets .ets-stage { display: block; max-width: 1180px; margin: 0 auto; padding: 0; border: 0; border-radius: 0; background: none; }
.ets .ets-title { margin-bottom: clamp(32px, 4vw, 56px); }
.ets .ets-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.ets .ets-item { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.4vw, 32px); border: 1px solid var(--rule); border-radius: 20px; background: var(--white); }
.ets .ets-name { font-size: clamp(1.15rem, 1.5vw, 1.4rem); }
.ets .ets-name::before { width: 34px; }
.ets .ets-row { grid-template-columns: 7rem minmax(0, 1fr); }
.ets .ets-more { align-self: flex-start; margin-top: 4px; }
@media (max-width: 1000px) { .ets .ets-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ets .ets-list { grid-template-columns: 1fr; } }

/* Carrousel « Nos campus » (13/11/2026) : ses changements de carte passent par une transition de vue sur la meme page.
   Sans cette regle, le rideau des changements de page (vt-out / vt-in) s'appliquait aussi : toute la page s'assombrissait
   et remontait depuis le bas a chaque clic. Pendant le carrousel, la page reste immobile ; seules les cartes et le fond bougent. */
html.vt-local::view-transition-group(root) { animation: none; }
html.vt-local::view-transition-old(root) { animation: none; display: none; }
html.vt-local::view-transition-new(root) { animation: none; }

/* Etablissements en bande noire, comme « Nos campus » de l'accueil (13/11/2026) */
.ets { background: var(--ink); color: var(--paper); }
.ets .ets-title { color: var(--paper); }
.ets .ets-item { border-color: rgb(255 255 255 / 0.12); background: rgb(255 255 255 / 0.04); transition: border-color 0.4s var(--ease), background 0.4s var(--ease); }
.ets .ets-item:hover { border-color: rgb(255 255 255 / 0.28); background: rgb(255 255 255 / 0.07); }
.ets .ets-name, .ets.ets-on .ets-name { color: var(--paper); }
.ets .ets-name::before { background: linear-gradient(90deg, var(--gold) 0 24px, transparent 24px 28px, var(--paper) 28px); }
.ets .ets-row dt { font-stretch: 100%; font-size: 0.75rem; letter-spacing: 0.02em; text-transform: none; font-weight: 700; line-height: 1.9; color: var(--gold); }
.ets .ets-row dd { color: rgb(247 247 244 / 0.8); }
.ets .ets-row a { color: var(--paper); text-decoration-color: var(--gold); }
.ets .tel-note { color: rgb(247 247 244 / 0.55); }
.ets .ets-more { color: var(--paper); }

/* Bouton « Documentation » des pages de licence (13/11/2026) : on voit que c'est un bouton.
   Fleche toujours visible ; au survol la carte se souleve, la fleche avance, le trait jaune s'epaissit. */
.ed-split-doc { padding-right: 64px; transition: translate 0.45s var(--ease), box-shadow 0.45s var(--ease), border-top-width 0.3s var(--ease); }
.ed-split-doc::after { content: ""; position: absolute; right: 18px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 15px no-repeat; transition: translate 0.45s var(--ease), background-color 0.3s var(--ease); }
.ed-split-doc strong { transition: color 0.3s var(--ease); }
.ed-split-doc:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ed-split-doc:hover { translate: 0 -4px; box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26); border-top-width: 5px; }
  .ed-split-doc:hover::after { translate: 4px 0; }
}
.ed-split-doc:active { translate: 0 -1px; }

/* ============================================================
   NOTRE HISTOIRE (13/11/2026) : frise animee.
   Un trait jaune se dessine au defilement le long du fil gris ; chaque anneau se remplit quand le trait l'atteint ;
   les etapes arrivent en glissant ; l'etape au centre de l'ecran est mise en avant.
   ============================================================ */
.hx { --hx-date: 10rem; --hx-gap: clamp(28px, 4.5vw, 56px); --hx-axis: calc(var(--hx-date) + var(--hx-gap) / 2); --hx-top: 34px; --p: 0; position: relative; max-width: 56rem; }
.hx::before, .hx::after { content: ""; position: absolute; left: var(--hx-axis); top: var(--hx-top); bottom: 48px; width: 2px; margin-left: -1px; border-radius: 2px; }
.hx::before { background: var(--rule); }
.hx::after { background: var(--gold); transform: scaleY(var(--p)); transform-origin: top; }
.hx-item { padding-bottom: clamp(16px, 2vw, 24px); }
.hx-item::before { display: none; }
.hx-item::after { z-index: 1; left: var(--hx-axis); top: var(--hx-top); width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border: 2px solid var(--navy); border-radius: 50%; background: var(--paper); box-sizing: border-box; transition: background 0.4s var(--ease), border-color 0.4s var(--ease), scale 0.5s var(--ease); }
.hx-item.is-past::after { background: var(--gold); border-color: var(--gold); }
.hx-item.is-now::after { scale: 1.35; box-shadow: 0 0 0 5px rgb(230 164 53 / 0.18); }
.hx-date { padding-top: calc(var(--hx-top) - 0.75em); font-family: var(--font-serif); font-stretch: 100%; font-weight: 400; font-size: clamp(1.2rem, 1.6vw, 1.45rem); letter-spacing: 0.01em; text-transform: none; line-height: 1.5; color: var(--navy); transition: color 0.4s var(--ease); }
.hx-text { max-width: none; padding: 20px 24px; border: 1px solid var(--rule); border-radius: 16px; background: var(--white); font-size: 0.98rem; line-height: 1.7; color: var(--ink-soft); transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.hx-item.is-now .hx-text { border-color: rgb(1 42 85 / 0.3); box-shadow: 0 16px 34px -24px rgb(1 42 85 / 0.45); }
@media (prefers-reduced-motion: no-preference) {
  .hx.hx-anim .hx-item .hx-text, .hx.hx-anim .hx-item .hx-date { opacity: 0; translate: 26px 0; transition: opacity 0.7s var(--ease), translate 0.9s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), color 0.4s var(--ease); }
  .hx.hx-anim .hx-item .hx-date { translate: -18px 0; }
  .hx.hx-anim .hx-item.is-in .hx-text, .hx.hx-anim .hx-item.is-in .hx-date { opacity: 1; translate: 0 0; }
  .hx.hx-anim .hx-item.is-in .hx-text { transition-delay: 0.08s; }
}
@media (max-width: 760px) {
  .hx { --hx-axis: 7px; --hx-top: 12px; }
  .hx-item { padding-left: 30px; }
  .hx-item::after { left: var(--hx-axis); }
  .hx-date { padding: 0 0 8px; }
}
#histoire { overflow-x: clip; } /* le glissement d'entree des etapes ne cree pas de defilement horizontal sur telephone */

/* Niveaux d'enseignement dans la bande noire des etablissements (13/11/2026) : icones dans des pastilles claires */
.ets .ets-levels { max-width: 900px; margin: 0 auto clamp(40px, 5vw, 64px); gap: clamp(18px, 2.5vw, 36px) clamp(12px, 2vw, 32px); }
.ets .ets-levels .icon-item { position: relative; isolation: isolate; gap: 22px; }
.ets .ets-levels .icon-item::before { content: ""; position: absolute; z-index: -1; top: -14px; left: 50%; width: 68px; height: 68px; margin-left: -34px; border-radius: 50%; background: var(--paper); }
.ets .ets-levels .icon-item img { width: 40px; height: 40px; }
.ets .ets-levels .icon-item span { font-size: 0.875rem; color: rgb(247 247 244 / 0.85); }
@media (max-width: 800px) { .ets .ets-levels { row-gap: 44px; } }
