/* Lingua Space — mini-site. Mobile d'abord. Charte : sarcelle #0F8B8D, nuit #06222B, Barlow Condensed + IBM Plex Sans. */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-600.woff2") format("woff2"); }

:root {
  --teal: #0F8B8D;
  --teal-btn: #0C7A7C;      /* sarcelle un peu plus soutenue : texte blanc lisible */
  --teal-ink: #0A6E70;      /* sarcelle pour du texte sur fond clair */
  --night: #06222B;
  --deep: #0B3A47;
  --deep2: #0B2F3A;
  --light: #7FD1D2;
  --soft: #BFDCDC;
  --paper: #F3F6F5;
  --line: #D6E3E3;
  --navy: #14234B;
  --red: #E0243C;
  --white: #FFFFFF;
  --title: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --arabic: "Segoe UI", "Noto Naskh Arabic", "Geeza Pro", Tahoma, sans-serif;
  --r: 16px;
  --gut: 16px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--night); }
body { margin: 0; background: var(--night); color: var(--white); font: 400 16px/1.6 var(--body); overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--title); font-weight: 700; text-transform: uppercase; line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: .01em; }
h2 { font-size: clamp(32px, 8vw, 54px); }
h3 { font-size: 26px; }
p { margin: 0; }
[lang="ar"] { font-family: var(--arabic); text-transform: none; }
:focus-visible { outline: 3px solid var(--light); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--white); color: var(--night); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.wrap-narrow { max-width: 760px; }
section { position: relative; padding: 64px 0; }
.eyebrow { font: 600 15px/1.2 var(--title); letter-spacing: .32em; text-transform: uppercase; color: var(--light); margin-bottom: 12px; }
.eyebrow-dark { color: var(--teal-ink); }
.section-lead { margin-top: 14px; color: var(--soft); max-width: 640px; font-size: 17px; }
.muted { opacity: .75; font-weight: 400; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 24px; border-radius: 12px; border: 2px solid transparent;
  font: 700 19px/1.1 var(--title); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 46px; padding: 10px 16px; font-size: 17px; }
.btn-lg { min-height: 60px; padding: 16px 34px; font-size: 22px; }
.btn-main { background: var(--teal-btn); color: var(--white); box-shadow: 0 10px 30px rgba(15,139,141,.35); }
.btn-main:hover { background: var(--teal); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--white); border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { border-color: var(--light); }
.btn-light { background: var(--white); color: var(--deep2); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--soft); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn.is-soon { opacity: .8; }
.play-ico { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }

/* Logos */
.ls-badge { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; background: var(--teal); color: var(--white);
  font: 700 23px/1 var(--title); letter-spacing: .02em; box-shadow: 0 0 0 2px rgba(255,255,255,.18); flex: none; }
.ls-badge-sm { width: 30px; height: 30px; font-size: 17px; border-radius: 9px; }
.ls-badge-lg { width: 78px; height: 78px; font-size: 44px; border-radius: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font: 700 20px/1 var(--title); letter-spacing: .12em; text-transform: uppercase; }
.brand-name b { color: var(--light); font-weight: 700; }
.eip-logo { display: inline-flex; flex-direction: column; align-items: center; font-family: var(--title); font-weight: 700; color: var(--white); }
.eip-word { position: relative; font-size: 64px; line-height: .9; letter-spacing: .04em; padding-bottom: 10px; }
.eip-word::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: 0; height: 5px; border-radius: 9px; background: var(--red); }
.eip-i { position: relative; }
.eip-i::before { content: ""; position: absolute; left: 50%; top: -.1em; transform: translateX(-50%); width: .16em; height: .16em; border-radius: 50%; background: var(--red); }
.eip-sub { font-size: 16px; letter-spacing: .03em; margin-top: 8px; }
.eip-sub em { font-style: normal; color: var(--red); }
.eip-logo-sm .eip-word { font-size: 34px; padding-bottom: 6px; }
.eip-logo-sm .eip-word::after { height: 3px; }
.eip-logo-sm .eip-sub { font-size: 10px; margin-top: 5px; }
.eip-logo-lg .eip-word { font-size: 104px; padding-bottom: 14px; }
.eip-logo-lg .eip-word::after { height: 7px; }
.eip-logo-lg .eip-sub { font-size: 24px; }
.eip-mini { font: 700 20px/1 var(--title); letter-spacing: .04em; }
.eip-mini i { font-style: normal; position: relative; }
.eip-mini i::before { content: ""; position: absolute; left: 50%; top: -3px; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--red); }

/* En-tête */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(6,34,43,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
.top-in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.top-partner { color: var(--soft); font: 600 16px/1 var(--title); display: inline-flex; align-items: center; gap: 6px; }
.top-nav { display: none; }
.top .btn { margin-left: auto; white-space: nowrap; min-height: 42px; padding: 8px 12px; font-size: 15px; }
.top .brand-name { white-space: nowrap; font-size: 18px; letter-spacing: .08em; }
.top .ls-badge { width: 36px; height: 36px; font-size: 21px; }

/* Ondes (reprise des vidéos) */
.waves { position: absolute; inset: 0; overflow: hidden; pointer-events: none; display: grid; place-items: center; }
.waves span { position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 2px solid var(--teal); opacity: 0; animation: wave 8s linear infinite; }
.waves span:nth-child(2) { animation-delay: 2s; }
.waves span:nth-child(3) { animation-delay: 4s; }
.waves span:nth-child(4) { animation-delay: 6s; }
.waves-soft span { border-color: rgba(127,209,210,.5); }
@keyframes wave { 0% { transform: scale(.4); opacity: .35; } 100% { transform: scale(5); opacity: 0; } }

/* Accueil */
.hero { padding: 40px 0 72px; background: radial-gradient(circle at 50% 30%, var(--deep) 0%, var(--night) 72%); overflow: hidden; }
.hero-in { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hello { height: 76px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.hello-word { display: inline-block; font: 700 60px/1 var(--title); color: var(--white); transition: opacity .3s, transform .3s; }
.hello-word.alt { color: var(--light); }
.hello-word[lang="ar"] { font-family: var(--arabic); font-weight: 700; }
.hello-word.out { opacity: 0; transform: translateY(14px); }
.hero h1 { font-size: clamp(40px, 11vw, 84px); max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--light); }
.lead { margin-top: 18px; color: var(--soft); font-size: 18px; max-width: 36rem; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 420px; margin-top: 28px; }
.hero-free { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hero-free li { padding: 6px 14px; border-radius: 999px; border: 2px solid var(--light); color: var(--light); font: 700 15px/1.2 var(--title); letter-spacing: .1em; text-transform: uppercase; }
.partner-line { margin-top: 26px; color: var(--soft); font-size: 14px; }
.partner-link { color: var(--white); font-weight: 600; text-decoration-color: var(--red); text-underline-offset: 4px; }

/* Vidéo vedette */
.feature { background: var(--paper); color: var(--deep2); padding-top: 0; }
.feature .wrap { display: grid; gap: 26px; }
.player { position: relative; margin-top: -44px; border-radius: var(--r); overflow: hidden; background: var(--night); aspect-ratio: 16 / 9; box-shadow: 0 24px 60px rgba(6,34,43,.35); border: 3px solid var(--deep); }
.player img, .player video { width: 100%; height: 100%; object-fit: cover; }
.player-btn { position: absolute; inset: 0; border: 0; background: linear-gradient(180deg, rgba(6,34,43,0) 40%, rgba(6,34,43,.55)); cursor: pointer; display: grid; place-items: center; }
.play-big { width: 76px; height: 76px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 10px rgba(15,139,141,.3); position: relative; transition: transform .2s; }
.play-big::after { content: ""; position: absolute; left: 30px; top: 23px; border-left: 24px solid var(--white); border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
.player-btn:hover .play-big { transform: scale(1.08); }
.player-tag { position: absolute; left: 14px; top: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(6,34,43,.8); color: var(--white); font: 700 14px/1.2 var(--title); letter-spacing: .14em; text-transform: uppercase; pointer-events: none; }
.feature-text h2 { margin-bottom: 12px; }
.feature-text p:last-child { color: #34525B; font-size: 17px; }

/* Portes */
.doors { background: var(--paper); color: var(--deep2); padding-top: 8px; }
.doors h2 { margin-bottom: 22px; }
.door-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.door-list li { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2; }
.door-list img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.door-list li:hover img { transform: scale(1.04); }
.door-list span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; background: linear-gradient(transparent, rgba(6,34,43,.85)); color: var(--white); font: 700 26px/1 var(--title); letter-spacing: .1em; text-transform: uppercase; }

/* Séries */
.series { background: radial-gradient(circle at 80% 0%, var(--deep) 0%, var(--night) 60%); }
.serie-grid { display: grid; gap: 18px; margin-top: 32px; }
.serie { border-radius: 20px; padding: 24px 20px; display: flex; flex-direction: column; gap: 12px; }
.serie-on { background: linear-gradient(160deg, var(--teal) 0%, #0B6F71 100%); box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.serie-soon { background: rgba(255,255,255,.05); border: 2px solid rgba(255,255,255,.16); }
.serie-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.serie h3 { font-size: 52px; text-transform: none; letter-spacing: 0; }
.serie h3[lang="ar"] { font-size: 46px; }
.chip { flex: none; padding: 6px 14px; border-radius: 999px; font: 700 14px/1.2 var(--title); letter-spacing: .14em; text-transform: uppercase; }
.chip-on { background: var(--white); color: var(--deep2); }
.chip-new { background: var(--night); color: var(--light); }
.chip-soon { border: 2px solid var(--soft); color: var(--soft); }
.serie-fr { font: 600 16px/1.3 var(--title); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.serie-soon .serie-fr { color: var(--light); }
.serie-hello { font-size: 19px; font-weight: 600; font-style: italic; }
.serie-hello [lang="ar"] { font-style: normal; font-size: 22px; }
.serie-hello i { font-weight: 400; opacity: .85; }
.serie p:not(.serie-fr):not(.serie-hello) { color: rgba(255,255,255,.9); }
.serie-soon p:not(.serie-fr):not(.serie-hello) { color: var(--soft); }
.serie-meta { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.serie-meta li { padding: 4px 10px; border-radius: 8px; background: rgba(6,34,43,.28); font-size: 14px; font-weight: 600; }
.serie-soon .serie-meta li { background: rgba(255,255,255,.07); }
.serie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.serie-actions .btn { flex: 1 1 auto; }
.serie-on .btn-main { background: var(--night); box-shadow: none; }
.serie-on .btn-main:hover { background: var(--deep2); }

/* Fonctionnement */
.how { background: var(--paper); color: var(--deep2); }
.steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; }
.step { position: relative; background: var(--white); border-radius: 18px; padding: 22px 20px 20px 20px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.step-n { width: 50px; height: 50px; border-radius: 50%; background: var(--teal-btn); color: var(--white); display: grid; place-items: center; font: 700 28px/1 var(--title); }
.step h3 { font-size: 30px; }
.step p { color: #34525B; }
.step-vis { margin-top: 6px; border-radius: 12px; background: var(--paper); padding: 14px; font-size: 13px; }
.vis-level span { display: block; font-weight: 600; margin-bottom: 4px; }
.vis-level span::after { content: ""; display: block; height: 9px; margin: 4px 0 8px; border-radius: 9px; background: linear-gradient(90deg, var(--teal) var(--w), var(--line) var(--w)); }
.vis-level .w70 { --w: 70%; } .vis-level .w80 { --w: 80%; } .vis-level .w45 { --w: 45%; } .vis-level .w55 { --w: 55%; }
.vis-ep { display: flex; flex-direction: column; gap: 6px; }
.vis-ep span { padding: 8px 12px; border-radius: 10px; background: var(--white); border-left: 4px solid var(--teal); font-weight: 600; }
.vis-pdf b { display: block; font: 700 17px/1 var(--title); color: var(--teal-ink); letter-spacing: .08em; margin-bottom: 10px; }
.vis-pdf i { display: block; height: 9px; border-radius: 9px; background: var(--line); margin-top: 9px; }
.vis-pdf i:nth-child(odd) { width: 78%; }
.vis-cert { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--white); border: 6px solid var(--deep2); }
.vis-cert b { font: 700 19px/1 var(--title); letter-spacing: .14em; text-transform: uppercase; }
.vis-cert small { color: #55707A; font-size: 13px; }
.how-cta { margin-top: 30px; display: flex; justify-content: center; }
.how-cta .btn { width: 100%; max-width: 420px; }

/* Formules */
.plans { background: radial-gradient(circle at 20% 0%, var(--deep) 0%, var(--night) 65%); }
.period { display: inline-flex; margin-top: 26px; padding: 5px; border-radius: 14px; background: rgba(255,255,255,.08); gap: 4px; max-width: 100%; }
.period button { border: 0; background: transparent; color: var(--soft); min-height: 44px; padding: 8px 16px; border-radius: 10px; font: 700 17px/1 var(--title); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.period button[aria-checked="true"] { background: var(--white); color: var(--deep2); }
.plan-grid { display: grid; gap: 14px; margin-top: 22px; }
.plan { position: relative; background: var(--paper); color: var(--deep2); border-radius: 18px; padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.plan h3 { font-size: 36px; }
.plan-desc { color: #34525B; }
.price { margin-top: auto; padding-top: 8px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-v { font: 700 36px/1 var(--title); color: var(--teal-ink); letter-spacing: .04em; }
.price-p { color: #55707A; font-size: 15px; }
.plan-top { background: linear-gradient(160deg, var(--teal) 0%, #0B6F71 100%); color: var(--white); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.plan-top .plan-desc, .plan-top .price-p { color: rgba(255,255,255,.9); }
.plan-top .price-v { color: var(--white); }
.plan-flag { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--night); color: var(--light); font: 700 13px/1.2 var(--title); letter-spacing: .14em; text-transform: uppercase; }
.plan-notes { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; color: var(--soft); }
.plan-notes li { padding-left: 28px; position: relative; }
.plan-notes li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 3px solid var(--light); border-bottom: 3px solid var(--light); transform: rotate(-45deg); }
.plan-notes b { color: var(--white); font-weight: 600; }

/* Étudiants EIP */
.students { background: var(--paper); color: var(--deep2); }
.students-in { display: grid; gap: 34px; align-items: center; }
.students h2 { margin-bottom: 14px; }
.students p { color: #34525B; font-size: 17px; }
.mini-steps { margin: 20px 0 24px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.mini-steps li { counter-increment: s; position: relative; padding-left: 42px; min-height: 30px; }
.mini-steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font: 700 17px/1 var(--title); }
.id-card { width: 100%; max-width: 440px; justify-self: center; aspect-ratio: 1.6; border-radius: 22px; background: linear-gradient(135deg, #0F1D45, #16295E); color: var(--white); padding: 22px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 26px 60px rgba(20,35,75,.35); transform: rotate(-2deg); }
.id-top { display: flex; justify-content: space-between; align-items: flex-start; }
.id-kind { font: 600 14px/1 var(--title); letter-spacing: .16em; text-transform: uppercase; color: #C9D2EA; }
.id-lab { margin-top: auto; font: 700 20px/1 var(--title); text-transform: uppercase; letter-spacing: .06em; }
.id-num { font: 500 26px/1.2 Consolas, "Courier New", monospace; letter-spacing: .14em; }
.id-pill { align-self: flex-start; margin-top: 6px; padding: 6px 12px; border-radius: 999px; background: var(--teal); font: 700 14px/1.2 var(--title); letter-spacing: .1em; text-transform: uppercase; }

/* Partenaire */
.partner { background: radial-gradient(circle at 50% 50%, var(--deep) 0%, var(--night) 70%); overflow: hidden; padding: 80px 0; }
.partner-in { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.partner-in .eyebrow { margin: 0; }
.partner-official { display: flex; align-items: center; gap: 14px; font: 700 24px/1 var(--title); letter-spacing: .2em; text-transform: uppercase; }
.partner-official span { width: 40px; height: 3px; background: var(--teal); }
.partner-in p:not(.eyebrow):not(.partner-official) { color: var(--soft); max-width: 34rem; }
.tagline { font: 600 20px/1.2 var(--title); letter-spacing: .1em; color: var(--light) !important; text-transform: uppercase; }

/* FAQ */
.faq { background: var(--paper); color: var(--deep2); }
.faq h2 { margin-bottom: 20px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin-top: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; position: relative; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 700 28px/1 var(--title); color: var(--teal-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 18px; color: #34525B; }

/* Appel final */
.final { background: radial-gradient(circle at 50% 40%, var(--deep) 0%, var(--night) 72%); overflow: hidden; padding: 84px 0 96px; }
.final-in { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.duo { display: flex; align-items: center; gap: 18px; }
.duo .x { font: 700 40px/1 var(--title); color: var(--soft); }
.final h2 { font-size: clamp(34px, 9vw, 64px); max-width: 16ch; }
.final .btn { width: 100%; max-width: 440px; }
.final-help { color: var(--soft); }
.final-help a { color: var(--white); font-weight: 600; }
.wa { display: inline-flex; align-items: center; gap: 10px; color: var(--light); font-weight: 600; text-decoration: none; padding: 10px 4px; }
.wa:hover { text-decoration: underline; }
.wa-ico { width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; position: relative; }
.wa-ico::after { content: ""; position: absolute; left: -3px; bottom: -3px; border-top: 7px solid currentColor; border-right: 6px solid transparent; transform: rotate(20deg); }

/* Pied */
.foot { background: #041A21; color: var(--soft); padding: 36px 0 110px; font-size: 14px; }
.foot-in { display: grid; gap: 10px; }
.brand-foot { margin-bottom: 6px; }
.brand-foot .brand-name { color: var(--white); }
.credits summary { cursor: pointer; color: var(--light); font-weight: 600; padding: 6px 0; }
.credits ul { margin: 6px 0 0; padding-left: 18px; }
.credits a { color: var(--light); }

/* Bouton collant */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: rgba(6,34,43,.94); border-top: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sticky-cta .btn { width: 100%; }
.sticky-cta[hidden] { display: none; }

/* Fenêtre vidéo */
.modal { width: min(960px, calc(100% - 24px)); max-width: none; padding: 0; border: 0; border-radius: 18px; background: var(--deep2); color: var(--white); box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.modal::backdrop { background: rgba(2,14,18,.82); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 20px; }
.modal-head h2 { font-size: 24px; letter-spacing: .06em; }
.modal-x { width: 48px; height: 48px; border-radius: 12px; border: 0; background: rgba(255,255,255,.1); color: var(--white); font: 400 32px/1 var(--body); cursor: pointer; }
.modal-body video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.modal-note { padding: 0 20px 14px; color: var(--soft); font-size: 17px; }
.modal-note:last-child { padding-bottom: 24px; }
.modal-route { padding: 0 20px 24px; }
.modal-route code { background: rgba(255,255,255,.1); padding: 4px 8px; border-radius: 6px; font-size: 14px; word-break: break-all; }

/* Apparitions */
/* Visible au repos ; un léger glissement seulement quand le script est actif */
.js .reveal:not(.in) { transform: translateY(22px); opacity: .35; }
.reveal { transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.door-list .reveal:nth-child(2), .serie-grid .reveal:nth-child(2), .steps .reveal:nth-child(2), .plan-grid .reveal:nth-child(2) { transition-delay: .08s; }
.door-list .reveal:nth-child(3), .serie-grid .reveal:nth-child(3), .steps .reveal:nth-child(3), .plan-grid .reveal:nth-child(3) { transition-delay: .16s; }
.serie-grid .reveal:nth-child(4), .steps .reveal:nth-child(4), .plan-grid .reveal:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js .reveal:not(.in) { opacity: 1; transform: none; transition: none; }
  .waves span { animation: none; opacity: 0; }
  .btn, .door-list img, .play-big { transition: none; }
}

/* Tablette */
@media (min-width: 720px) {
  :root { --gut: 28px; }
  section { padding: 88px 0; }
  .hero { padding: 64px 0 104px; }
  .hello { height: 100px; }
  .hello-word { font-size: 84px; }
  .hero-cta { flex-direction: row; max-width: none; justify-content: center; }
  .door-list { grid-template-columns: repeat(3, 1fr); }
  .serie-grid, .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .students-in { grid-template-columns: 1.1fr .9fr; }
  .foot { padding-bottom: 36px; }
  .sticky-cta { display: none !important; }
}
/* Ordinateur */
@media (min-width: 1024px) {
  .top-nav { display: flex; gap: 22px; margin-left: 28px; }
  .top-nav a { text-decoration: none; font: 600 17px/1 var(--title); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); padding: 8px 0; }
  .top-nav a:hover { color: var(--white); }
  .feature .wrap { grid-template-columns: 1.5fr 1fr; align-items: end; }
  .steps, .plan-grid { grid-template-columns: repeat(4, 1fr); }
  .serie { padding: 28px; }
}

/* Ajustements téléphone */
@media (max-width: 719px) {
  .hero-cta .muted { display: none; }
  .partner-official { font-size: 20px; letter-spacing: .12em; gap: 10px; }
  .partner-official span { width: 24px; }
}
.eip-logo-lg { margin-top: 18px; }
.final .duo { margin-top: 12px; }

/* ===== Rubriques en onglets (22/10, demande d'Issa : accès facile, peu de défilement) ===== */
html { scroll-behavior: auto; }
.top-in { min-height: 56px; }
.tabs-in { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs-in::-webkit-scrollbar { display: none; }
.tabs a { flex: none; position: relative; padding: 10px 10px 12px; text-decoration: none; font: 600 16px/1 var(--title); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); white-space: nowrap; }
.tabs a:hover, .tabs a[aria-current="page"] { color: var(--white); }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px; background: var(--light); }
[tabindex="-1"]:focus { outline: none; }

.view { padding: 28px 0 40px; scroll-margin-top: 140px; overflow: hidden; }
.view-light { background: var(--paper); color: var(--deep2); }
.view-dark { background: radial-gradient(circle at 80% 0%, var(--deep) 0%, var(--night) 60%); }
.view-cta { margin-top: 22px; display: flex; }
.view-cta .btn { width: 100%; max-width: 420px; }

/* Accueil */
.view-home { padding: 22px 0 36px; background: radial-gradient(circle at 50% 25%, var(--deep) 0%, var(--night) 72%); }
.home-in { position: relative; display: grid; gap: 18px; }
.view-home .eyebrow { display: flex; align-items: center; gap: 12px; }
.view-home .hello-word { font: 700 30px/1 var(--title); letter-spacing: 0; text-transform: none; color: var(--white); min-width: 3.4em; }
.view-home h1 { font-size: clamp(34px, 9.4vw, 68px); max-width: 16ch; }
.view-home h1 em { font-style: normal; color: var(--light); }
.view-home .lead { margin-top: 12px; font-size: 16px; }
.view-home .hero-cta { margin-top: 16px; flex-direction: row; max-width: 420px; }
.view-home .hero-cta .btn { width: 100%; }
p.hero-free { display: block; margin-top: 10px; font: 700 15px/1.3 var(--title); letter-spacing: .1em; text-transform: uppercase; color: var(--light); }
.view-home .player { margin-top: 0; }
.lang-strip { position: relative; list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lang-strip a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px; border-radius: 12px; text-decoration: none; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.lang-strip a:hover { background: rgba(255,255,255,.12); }
.lang-strip b { font: 700 24px/1 var(--title); }
.lang-strip b[lang="ar"] { font-family: var(--arabic); font-size: 22px; }
.lang-strip .chip { font-size: 11px; padding: 4px 8px; }
.view-home .partner-line { position: relative; margin-top: 16px; }

/* Séries : l'essentiel visible, le détail replié */
.view .serie-grid { margin-top: 18px; gap: 12px; }
.serie { padding: 18px 16px; gap: 10px; }
.serie h3 { font-size: 44px; }
.serie h3[lang="ar"] { font-size: 40px; }
.more summary { cursor: pointer; font: 700 15px/1.2 var(--title); letter-spacing: .12em; text-transform: uppercase; padding: 4px 0; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: " +"; }
.more[open] summary::after { content: " –"; }
.more p { margin-top: 8px; }
.serie-actions { padding-top: 2px; }
.view .door-list { margin-top: 18px; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.view .door-list li { aspect-ratio: 1; border-radius: 10px; }
.view .door-list span { font-size: 15px; padding: 24px 8px 8px; letter-spacing: .06em; }

/* Comment ça marche */
.view .steps { margin-top: 18px; gap: 8px; }
.view .steps > li { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.view .steps .step-n { width: 40px; height: 40px; font-size: 22px; }
.view .steps h3 { font-size: 22px; }
.view .steps p { color: #34525B; font-size: 15px; line-height: 1.45; margin-top: 2px; }

/* Formules */
.view .period { margin-top: 18px; }
.view .plan-grid { margin-top: 14px; gap: 8px; grid-template-columns: 1fr 1fr; }
.view .plan { padding: 14px; gap: 4px; }
.view .plan h3 { font-size: 26px; }
.view .plan-desc { font-size: 14px; line-height: 1.4; }
.view .price-v { font-size: 28px; }
.view .plan-flag { font-size: 11px; padding: 3px 8px; }
.view .plan-notes { margin-top: 16px; gap: 6px; font-size: 15px; }
.view .faq { margin-top: 24px; padding: 0; background: transparent; color: var(--white); }
.view .faq h3 { font-size: 22px; margin-bottom: 6px; }
.view .faq details { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); margin-top: 8px; }
.view .faq summary { font-size: 16px; padding: 14px 46px 14px 16px; }
.view .faq summary::after { color: var(--light); }
.view .faq details p { color: var(--soft); padding: 0 16px 16px; }
.view .faq a { color: var(--white); font-weight: 600; }

/* Étudiants EIP + partenaire */
.view .students-in { display: grid; gap: 24px; align-items: center; }
.view .students-in p { color: #34525B; }
.view .mini-steps { margin: 14px 0 18px; }
.view .id-card { max-width: 340px; padding: 18px; }
.partner-box { margin-top: 26px; background: var(--night); color: var(--white); border-radius: 18px; padding: 22px 18px; display: grid; gap: 16px; justify-items: start; }
.partner-box .eip-word { font-size: 52px; }
.partner-box .partner-official { font: 700 20px/1 var(--title); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 8px; color: var(--light); }
.partner-box p:not(.partner-official) { color: var(--soft); margin-bottom: 14px; }

.foot { padding: 22px 0 96px; }
.foot-in { gap: 6px; }
.foot a { color: var(--light); }
.on-home .foot { padding-bottom: 22px; }

@media (min-width: 720px) {
  .view { padding: 44px 0 56px; }
  .view-home { padding: 40px 0 52px; }
  .lang-strip { grid-template-columns: repeat(4, 1fr); }
  .view .serie-grid { grid-template-columns: 1fr 1fr; }
  .view .steps { grid-template-columns: 1fr 1fr; }
  .view .students-in { grid-template-columns: 1.2fr .8fr; }
  .partner-box { grid-template-columns: auto 1fr; align-items: center; gap: 32px; padding: 26px 30px; }
  .foot { padding-bottom: 22px; }
}
@media (min-width: 1024px) {
  .tabs a { font-size: 17px; padding-inline: 14px; }
  .home-in { grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
  .view .plan-grid { grid-template-columns: repeat(4, 1fr); }
  .view .steps { grid-template-columns: repeat(4, 1fr); }
  .view .door-list li { aspect-ratio: 16 / 9; }
}

/* Annonce publiée depuis SAVIX (masquée si vide) */
.notice { background: var(--teal-btn); color: var(--white); font-weight: 600; font-size: 15px; padding: 10px 0; }

/* Un élément masqué (attribut hidden) le reste, quel que soit son display */
[hidden] { display: none !important; }
