/* ============================================
   TUNE UPP — Charte graphique & Design System
   ============================================ */

/* Polices auto-hébergées (RGPD — plus d'appel à fonts.googleapis.com) */
@import url('../fonts/fonts.css');

/* ─── Focus visible global (a11y WCAG) ──── */
/* Anneau de focus visible pour tous les éléments interactifs en navigation clavier. */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Pour les éléments déjà arrondis (boutons, inputs), l'outline suit la forme */
.btn:focus-visible, button:focus-visible, .nav-link:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
a:focus-visible { outline-offset: 3px; }

/* ─── Tokens ─────────────────────────────── */
/* Charte Disney+ (mai 2026) : accent bleu vif + fonds bleu nuit profond.
   Les variables --gold* sont conservées sous leur ancien nom (alias)
   pour ne pas refactorer toutes les pages — leur valeur est désormais bleue. */
:root {
  --black:       #050818;
  --dark:        #08102a;
  --dark-2:      #0d1838;
  --dark-3:      #142147;
  --dark-4:      #1d2c5e;
  --gold:        #4a9eff;
  --gold-h:      #79b8ff;
  --gold-dim:    rgba(74, 158, 255, .14);
  --gold-border: rgba(74, 158, 255, .32);
  --white:       #ffffff;
  --light:       #f8f7f2;
  --light-2:     #eeeDE6;
  --text:        #1e1e2c;
  --text-body:   #3d3d52;
  --muted:       #8a8a9e;
  --border-l:    rgba(0, 0, 0, .09);

  --nav-h:  72px;
  --max:    1200px;
  --pad:    clamp(1rem, 4vw, 2.5rem);

  --f-head: 'Playfair Display', Georgia, serif;
  --f-body: 'Inter', system-ui, -apple-system, sans-serif;

  --ease:     cubic-bezier(.4, 0, .2, 1);
  --dur:      .3s;
  --shadow:   0 4px 28px rgba(0, 0, 0, .11);
  --shadow-d: 0 12px 56px rgba(0, 0, 0, .38);
  --r:        6px;
  --r-lg:     14px;
  --r-xl:     24px;
}

/* ─── Reset ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--f-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }

/* ─── Typography ─────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--f-head);
  color: var(--text);
  line-height: 1.18;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
h4 { font-size: 1.05rem; }
p  { line-height: 1.8; }

/* ─── Layout ─────────────────────────────── */
.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-dark  { background: var(--dark); }
.section-light { background: var(--light); }
.section-cream { background: #f3f2ec; }

/* Section header */
.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-header.left { text-align: left; margin-inline: 0; }

.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}

.section-header h2 { margin-bottom: .9rem; }
.section-header p  { color: var(--muted); font-size: 1.05rem; }

.section-header.light h2  { color: var(--white); }
.section-header.light p   { color: rgba(255,255,255,.55); }

/* Gold line decorator */
.gold-line {
  width: 44px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-h));
  margin: 1.2rem auto 0;
  border-radius: 2px;
}
.section-header.left .gold-line { margin-inline: 0; }

/* ─── Buttons ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 2rem;
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--r);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: .01em;
}
.btn-gold {
  background: var(--gold);
  color: var(--black);
}
.btn-gold:hover {
  background: var(--gold-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,168,76,.35);
}
.btn-outline {
  border: 2px solid rgba(255,255,255,.45);
  color: var(--white);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.09);
}
.btn-outline-dark {
  border: 2px solid var(--dark);
  color: var(--text);
}
.btn-outline-dark:hover {
  background: var(--dark);
  color: var(--white);
}
.btn-sm { padding: .6rem 1.25rem; font-size: .85rem; }
.full-width { width: 100%; }

/* ─── Header / Navigation ────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.scrolled {
  background: rgba(10, 10, 15, .97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-shrink: 0;
}
.logo img { height: 38px; width: auto; }
.logo-name {
  font-family: var(--f-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .02em;
}

/* Nav links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-link {
  position: relative;
  padding: .5rem .95rem;
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  border-radius: var(--r);
  transition: color var(--dur);
}
.nav-link::after {
  content: '';
  position: absolute; bottom: 2px; left: .95rem; right: .95rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-link:hover,
.nav-link.active { color: #fff; }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

/* Nav CTA */
.btn-nav {
  background: var(--gold);
  color: var(--black) !important;
  padding: .5rem 1.3rem;
  font-weight: 700;
  font-size: .85rem;
  border-radius: var(--r);
  transition: background var(--dur);
}
.btn-nav::after { display: none; }
.btn-nav:hover { background: var(--gold-h); color: var(--black) !important; }

/* Dropdown */
.has-dropdown { position: relative; }

/* Pont transparent comblant le gap entre le bouton et le menu */
.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%; left: -1rem; right: -1rem;
  height: .85rem;
  background: transparent;
  z-index: 999;
}

.dropdown-menu {
  position: absolute; top: calc(100% + .7rem); left: 0;
  background: rgba(13, 24, 56, .98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(74, 158, 255, .45);
  border-radius: var(--r-lg);
  min-width: 240px;
  padding: .55rem;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(74, 158, 255, .12),
    0 4px 20px rgba(74, 158, 255, .18);
  z-index: 1000;
}
/* Flèche indicative au-dessus du menu */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -7px; left: 1.4rem;
  width: 12px; height: 12px;
  background: rgba(13, 24, 56, .98);
  border-left: 1.5px solid rgba(74, 158, 255, .45);
  border-top: 1.5px solid rgba(74, 158, 255, .45);
  transform: rotate(45deg);
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.is-open .dropdown-menu {
  opacity: 1; pointer-events: all; transform: translateY(0);
}
.dropdown-menu li a {
  display: block;
  padding: .75rem 1rem;
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  border-radius: var(--r);
  transition: background var(--dur), color var(--dur), padding-left var(--dur);
}
.dropdown-menu li a:hover {
  background: rgba(74, 158, 255, .18);
  color: #fff;
  padding-left: 1.25rem;
}

/* Hamburger — zone tap min 44×44px (Apple HIG / Material Design) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 12px 10px;
  /* Compense visuellement le padding sans réduire la cible tap */
  margin-right: -10px;
}
.menu-toggle span {
  display: block; height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Hero ───────────────────────────────── */
.hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute; inset: 0;
}

/* Photo de fond */
.hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Overlay sombre sur la photo */
.hero-bg::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(8, 8, 14, .82) 0%,
    rgba(12, 12, 20, .72) 60%,
    rgba(15, 15, 24, .60) 100%
  );
}

/* Accent doré subtil */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 60% 70% at 60% 50%, rgba(201,168,76,.06) 0%, transparent 60%);
}

.hero-content {
  position: relative; z-index: 2;
  padding-top: calc(var(--nav-h) + 2.5rem);
  padding-bottom: 3.5rem;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero h1 em {
  color: var(--gold);
  font-style: italic;
}

.hero-lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,.6);
  max-width: 560px;
  margin-bottom: 2.75rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-scroll { display: none; }

@keyframes floatDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ─── Stats Bar ──────────────────────────── */
.stats-bar {
  background: var(--dark-3);
  border-top:    1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
  padding-block: 1.75rem;
}
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  gap: 0;
}
.stat {
  flex: 1 1 calc(100% / 7);
  min-width: 130px;
  padding: 1rem .75rem;
  border-right: 1px solid rgba(255,255,255,.06);
}
.stat:last-child { border-right: none; }
.stat-num {
  display: block;
  font-family: var(--f-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .4rem;
}
.stat-range {
  display: block;
  font-family: var(--f-head);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .4rem;
  white-space: nowrap;
}
.stat-label {
  font-size: .7rem;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ─── Teachers ───────────────────────────── */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.teacher-card {
  background: var(--white);
  border: 1px solid var(--border-l);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 56px rgba(0,0,0,.14);
}

.teacher-photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--dark-3) 0%, var(--dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.teacher-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .6s var(--ease);
}
.teacher-card:hover .teacher-photo img { transform: scale(1.04); }

.teacher-initials {
  font-family: var(--f-head);
  font-size: 6rem;
  font-weight: 700;
  color: rgba(255,255,255,.08);
  user-select: none;
  line-height: 1;
}
.teacher-placeholder-label {
  position: absolute; bottom: 1.5rem; left: 0; right: 0;
  text-align: center;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
}

.teacher-info {
  padding: 2rem 2.25rem 2.25rem;
}
.teacher-info h3 {
  font-size: 1.55rem;
  margin-bottom: .3rem;
}
.teacher-role {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.teacher-info p {
  font-size: .95rem;
  color: var(--text-body);
  margin-bottom: 1.5rem;
}
.teacher-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.teacher-tags span {
  padding: .3rem .85rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--gold-border);
  border-radius: 100px;
  text-transform: uppercase;
}

/* ─── Course Cards ───────────────────────── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.course-card {
  display: block;
  position: relative;
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-xl);
  padding: 2.5rem 2rem;
  overflow: hidden;
  transition: all var(--dur) var(--ease);
}
.course-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-h));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.course-card:hover {
  border-color: var(--gold-border);
  background: var(--dark-3);
  transform: translateY(-5px);
}
.course-card:hover::before { transform: scaleX(1); }

.course-icon {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
  display: block;
}
.course-card h3 {
  color: var(--white);
  margin-bottom: .75rem;
}
.course-card p {
  color: rgba(255,255,255,.48);
  font-size: .9rem;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}
.course-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: gap var(--dur);
}
.course-card:hover .course-link { gap: .7rem; }

/* ─── Pricing ────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 820px;
  margin-inline: auto;
}

.pricing-card {
  position: relative;
  text-align: center;
  padding: 2.75rem 2rem 2.5rem;
  border: 2px solid var(--light-2);
  border-radius: var(--r-xl);
  background: var(--white);
  overflow: hidden;
  transition: all var(--dur) var(--ease);
}
.pricing-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 36px rgba(201,168,76,.16);
  transform: translateY(-5px);
}
.pricing-card.featured {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(201,168,76,.05), rgba(201,168,76,.09));
}

.pricing-badge {
  position: absolute; top: 1rem; right: 1rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--black);
  padding: .25rem .7rem;
  border-radius: 100px;
}

.pricing-duration {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .85rem;
}
.pricing-price {
  font-family: var(--f-head);
  font-size: 3.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .85rem;
}
.pricing-price small {
  font-size: 1.5rem;
  font-weight: 400;
  vertical-align: super;
  margin-right: .1rem;
}
.pricing-desc {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.6;
}
.pricing-note {
  text-align: center;
  margin-top: 2.5rem;
  font-size: .875rem;
  color: var(--muted);
  max-width: 560px;
  margin-inline: auto;
}
.pricing-note strong { color: var(--text-body); }

/* ─── News Cards ─────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news-card {
  background: var(--white);
  border: 1px solid var(--border-l);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--dur) var(--ease);
}
.news-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.news-img {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--dark-3), var(--dark));
  overflow: hidden;
  position: relative;
}
.news-img img { width: 100%; height: 100%; object-fit: cover; }

.news-img-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,.1);
}

.news-content { padding: 1.5rem 1.75rem 1.75rem; }
.news-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.news-content h3 {
  font-size: 1.1rem;
  margin-bottom: .65rem;
  line-height: 1.35;
}
.news-content p {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-date {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
}

.center-cta { text-align: center; margin-top: 3rem; }

/* ─── Partners ───────────────────────────── */
.partners-bar {
  padding-block: 3rem;
  background: var(--white);
  border-top:    1px solid var(--light-2);
  border-bottom: 1px solid var(--light-2);
}
.partners-label {
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem 3rem;
}
.partner-logo {
  height: 36px;
  display: flex; align-items: center;
  opacity: .35;
  transition: opacity var(--dur);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-body);
}
.partner-logo:hover { opacity: .75; }
.partner-logo img { max-height: 36px; width: auto; filter: grayscale(1); }

/* ─── Contact ────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1.25rem; }
.contact-info > p { color: var(--muted); margin-bottom: 2.25rem; font-size: 1rem; }

.contact-details {
  display: flex; flex-direction: column;
  gap: .9rem;
  margin-bottom: 2.25rem;
}
.contact-detail-item {
  display: flex; align-items: flex-start;
  gap: .9rem;
  font-size: .95rem;
  color: var(--text-body);
}
.contact-detail-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.contact-detail-item a { color: var(--gold); font-weight: 500; }
.contact-detail-item a:hover { color: var(--gold-h); }

.social-links {
  display: flex; flex-wrap: wrap; gap: .7rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border: 1.5px solid var(--border-l);
  border-radius: var(--r);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-body);
  transition: all var(--dur);
}
.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

/* Form */
.contact-form {
  display: flex; flex-direction: column;
  gap: 1.2rem;
  background: var(--light);
  padding: 2.5rem;
  border-radius: var(--r-xl);
  border: 1px solid var(--light-2);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex; flex-direction: column;
  gap: .45rem;
}
.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .85rem 1rem;
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid rgba(0,0,0,.12);
  border-radius: var(--r);
  outline: none;
  transition: border-color var(--dur), box-shadow var(--dur);
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.14);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ─── Footer ─────────────────────────────── */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-block: 4rem 3rem;
  align-items: start;
}
.footer-logo {
  height: 38px;
  width: auto;
  margin-bottom: 1.25rem;
}
.footer-brand-name {
  font-family: var(--f-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  max-width: 280px;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.footer-social {
  display: flex; gap: .6rem; flex-wrap: wrap;
}
.footer-social-link {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r);
  color: rgba(255,255,255,.45);
  font-size: .85rem;
  transition: all var(--dur);
}
.footer-social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}
.footer-social-link img {
  width: 18px; height: 18px;
  object-fit: contain;
  transition: transform var(--dur);
  display: block;
}
.footer-social-link:hover img { transform: scale(1.12); }

.footer h4 {
  font-family: var(--f-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 1.25rem;
}
.footer ul { display: flex; flex-direction: column; gap: .6rem; }
.footer ul a {
  font-size: .875rem;
  color: rgba(255,255,255,.45);
  transition: color var(--dur);
}
.footer ul a:hover { color: var(--gold); }

.footer-contact-item {
  font-size: .875rem;
  color: rgba(255,255,255,.45);
  margin-bottom: .65rem;
  line-height: 1.6;
}
.footer-contact-item a { color: var(--gold); }
.footer-contact-item a:hover { color: var(--gold-h); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-block: 1.5rem;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: .78rem;
  color: rgba(255,255,255,.22);
}
.footer-bottom-links {
  display: flex; gap: 1.5rem;
}
.footer-bottom-links a {
  font-size: .78rem;
  color: rgba(255,255,255,.22);
  transition: color var(--dur);
}
.footer-bottom-links a:hover { color: var(--gold); }

/* ─── Page Hero (inner pages) ────────────── */
.page-hero {
  background: var(--dark);
  padding-top: calc(var(--nav-h) + 4.5rem);
  padding-bottom: 4.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 15% 50%, rgba(201,168,76,.06), transparent);
}
.page-hero-content { position: relative; z-index: 1; }

.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 1.75rem;
}
.breadcrumb a { color: rgba(255,255,255,.55); transition: color var(--dur); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: rgba(255,255,255,.2); }

.page-hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.page-hero .lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,.58);
  max-width: 620px;
  line-height: 1.8;
}

/* ─── Content Blocks (image + text) ──────── */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.content-block + .content-block {
  border-top: 1px solid var(--border-l);
}
.content-block.reverse .content-block-img { order: 2; }
.content-block.reverse .content-block-text { order: 1; }

.content-block-img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--dark-3), var(--dark-2));
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
}
.content-block-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.img-placeholder-emoji {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  color: rgba(255,255,255,.07);
}

.content-block-text h2 { margin-bottom: 1.25rem; }
.content-block-text p { color: var(--text-body); margin-bottom: 1.25rem; }

/* ─── Feature List ───────────────────────── */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.feature-item {
  display: flex; align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  background: var(--light);
  border: 1px solid var(--border-l);
  border-radius: var(--r-lg);
  transition: all var(--dur);
}
.feature-item:hover {
  border-color: var(--gold-border);
  background: rgba(201,168,76,.04);
}
.feature-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-dim);
  border-radius: var(--r);
  font-size: 1.2rem;
}
.feature-text h4 { margin-bottom: .2rem; font-size: .95rem; }
.feature-text p  { font-size: .85rem; color: var(--muted); line-height: 1.6; }

/* ─── Showcase / Student ─────────────────── */
.showcase-card {
  background: var(--dark-2);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
}
.showcase-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--dark-4);
  border: 2px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.showcase-info h4 { color: var(--white); margin-bottom: .3rem; }
.showcase-info p  { font-size: .875rem; color: rgba(255,255,255,.5); }
.showcase-link {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .75rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gold);
}
.showcase-link:hover { color: var(--gold-h); }

/* ─── Scroll Reveal ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }
.reveal.revealed { opacity: 1; transform: none; }

/* ─── Responsive ─────────────────────────── */
@media (max-width: 1024px) {
  .teachers-grid      { grid-template-columns: 1fr; }
  .courses-grid       { grid-template-columns: repeat(2, 1fr); }
  .contact-grid       { grid-template-columns: 1fr; gap: 3rem; }
  .content-block      { grid-template-columns: 1fr; gap: 2.5rem; }
  .content-block.reverse .content-block-img,
  .content-block.reverse .content-block-text { order: 0; }
  .footer-inner       { grid-template-columns: 1fr 1fr; }
  .footer-brand       { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  /* Header toujours visible sur mobile, même non-scrolled (pas toujours d'image hero derrière) */
  .site-header {
    background: rgba(10, 10, 15, .85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  /* Mobile nav : utilisation de 100dvh (dynamic viewport height) pour iOS Safari
     dont la barre URL se rétracte/déploie et casse le calcul de inset:0. */
  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    height: calc(100vh - var(--nav-h));       /* fallback */
    height: calc(100dvh - var(--nav-h));      /* iOS/Android moderne */
    background: rgba(8, 8, 14, .99);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem var(--pad) 4rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform .38s var(--ease);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;        /* scroll fluide iOS */
    overscroll-behavior: contain;             /* évite le pull-to-refresh parasite */
  }
  .nav-menu.open { transform: translateX(0); }

  .nav-link {
    display: block;
    padding: 1rem .5rem;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    border-radius: 0;
    width: 100%;
  }
  .nav-link::after { display: none; }

  .has-dropdown .dropdown-menu {
    position: static;
    opacity: 1; pointer-events: all;
    transform: none;
    background: rgba(255,255,255,.04);
    border: none;
    border-radius: 8px;
    padding: .25rem 0 .25rem 1rem;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .2s ease;
    padding-block: 0;
  }
  .has-dropdown.mobile-open .dropdown-menu {
    max-height: 200px;
    padding-block: .25rem;
  }
  .has-dropdown > .nav-link::after { display: none; }

  .menu-toggle { display: flex; }
  .btn-nav {
    margin-top: 1.5rem;
    width: 100%; justify-content: center;
    padding: 1rem;
    font-size: 1rem;
  }

  /* Grids */
  .courses-grid   { grid-template-columns: 1fr; }
  .pricing-grid   { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; }
  .news-grid      { grid-template-columns: 1fr; }
  .stat           { flex: 1 1 calc(50% - 1px); border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); }
  .footer-inner   { grid-template-columns: 1fr; gap: 2.5rem; }
  .teachers-grid  { grid-template-columns: 1fr; }
  .feature-list   { grid-template-columns: 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  .showcase-card  { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Button reset for nav usage ─────────── */
/* Sans font-family: inherit, le <button> prend la police de l'OS (≠ Inter).
   Les autres props matchent .nav-link desktop. La surcharge mobile est plus bas. */
button.nav-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 500;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  white-space: nowrap;
}
/* En mobile, override pour matcher exactement les <a class="nav-link">.
   !important nécessaire car spécificité égale à la règle desktop button.nav-link,
   et certains user-agent styles peuvent interférer. */
@media (max-width: 768px) {
  button.nav-link {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    gap: 0 !important;
    font-size: 1.1rem !important;
    padding: 1rem .5rem !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
    border-radius: 0 !important;
  }
}

/* ─── Espace Élève nav button (encadré Disney+) ─── */
.nav-btn-espace {
  border: 2px solid var(--gold) !important;
  border-radius: var(--r) !important;
  padding: .5rem 1.1rem !important;
  font-size: .85rem !important;
  font-weight: 700 !important;
  color: var(--gold) !important;
  background: var(--gold-dim) !important;
  box-shadow: 0 0 0 0 rgba(74, 158, 255, .35), 0 2px 14px rgba(74, 158, 255, .18) !important;
  transition: box-shadow var(--dur), background var(--dur), color var(--dur), transform var(--dur) !important;
}
.nav-btn-espace:hover {
  background: var(--gold) !important;
  color: #fff !important;
  box-shadow: 0 0 0 4px rgba(74, 158, 255, .25), 0 4px 22px rgba(74, 158, 255, .45) !important;
  transform: translateY(-1px);
}
.nav-btn-espace::after { display: none !important; }

/* ─── Login Modal ────────────────────────── */
.login-overlay {
  position: fixed; inset: 0;
  background: rgba(8, 8, 14, .7);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s var(--ease);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.login-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.login-modal {
  background: var(--white);
  border-radius: 22px;
  padding: 2.25rem;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-d);
  transform: translateY(14px) scale(.97);
  transition: transform .28s var(--ease);
}
.login-overlay.active .login-modal {
  transform: none;
}
.login-modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: .6rem;
}
.login-modal-top h3 {
  font-family: var(--f-head);
  font-size: 1.3rem;
  line-height: 1.2;
}
.login-modal-close {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--light);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: background .2s;
}
.login-modal-close:hover { background: var(--light-2); }
.login-modal-sub {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}
.login-error-msg {
  display: none;
  padding: .65rem 1rem;
  background: rgba(239, 68, 68, .08);
  border: 1px solid rgba(239, 68, 68, .22);
  border-radius: 8px;
  font-size: .83rem;
  color: #dc2626;
  text-align: center;
  margin-bottom: .85rem;
}
.login-error-msg.visible { display: block; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-7px); }
  40%       { transform: translateX(7px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}
.shake { animation: shake .4s ease; }

/* ══════════════════════════════════════════
   BOUTON TOGGLE THÈME (☀️ / 🌙)
   ══════════════════════════════════════════ */
.theme-toggle-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.09);
  border: 1.5px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.82);
  font-size: .9rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .22s, border-color .22s;
  cursor: pointer;
}
.theme-toggle-btn:hover {
  background: rgba(255,255,255,.17);
  border-color: rgba(255,255,255,.35);
}

/* ══════════════════════════════════════════
   MODE SOMBRE — html.dark-mode
   ══════════════════════════════════════════ */
html.dark-mode body {
  /* Disney+ : dégradé bleu nuit + halo central, étoiles via pseudo-élément */
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(40, 90, 200, .45), transparent 70%),
    radial-gradient(ellipse 110% 80% at 50% 100%, rgba(10, 25, 90, .9), transparent 75%),
    linear-gradient(180deg, #060d28 0%, #0a1745 45%, #050b22 100%);
  background-attachment: fixed;
  color-scheme: dark;
  /* Remap palette claire → sombre */
  --white:     #0f1b3a;
  --light:     #142347;
  --light-2:   #1a2b54;
  --text:      rgba(255,255,255,.92);
  --text-body: rgba(255,255,255,.70);
  --muted:     rgba(255,255,255,.40);
  --border-l:  rgba(255,255,255,.09);
}

/* ── Ciel étoilé : nappe d'étoiles fixée derrière le contenu ── */
html.dark-mode body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 13% 24%, rgba(255,255,255,.92), transparent 60%),
    radial-gradient(1px 1px   at 26% 71%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(2px 2px   at 41% 13%, rgba(255,255,255,.95), transparent 60%),
    radial-gradient(1px 1px   at 57% 88%, rgba(255,255,255,.6),  transparent 60%),
    radial-gradient(1px 1px   at 68% 39%, rgba(255,255,255,.8),  transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 17%, rgba(160,200,255,.85), transparent 60%),
    radial-gradient(1px 1px   at 89% 62%, rgba(255,255,255,.7),  transparent 60%),
    radial-gradient(2px 2px   at 95% 8%,  rgba(255,255,255,.95), transparent 60%),
    radial-gradient(1px 1px   at 7% 51%,  rgba(255,255,255,.65), transparent 60%),
    radial-gradient(1px 1px   at 32% 47%, rgba(160,200,255,.75), transparent 60%),
    radial-gradient(1px 1px   at 48% 67%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(1.5px 1.5px at 84% 84%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(1px 1px   at 19% 92%, rgba(255,255,255,.7),  transparent 60%),
    radial-gradient(1px 1px   at 64% 3%,  rgba(255,255,255,.75), transparent 60%),
    radial-gradient(1.5px 1.5px at 3% 18%, rgba(160,200,255,.8), transparent 60%);
  background-repeat: repeat;
  background-size: 520px 520px;
  animation: tu-twinkle 5.5s ease-in-out infinite alternate;
}
@keyframes tu-twinkle {
  from { opacity: .55; }
  to   { opacity: 1; }
}
/* Les contenus de page doivent rester au-dessus du tapis d'étoiles.
   On exclut les overlays (intro Disney+, modals) et les éléments avec leur propre
   position: fixed (header, barre social flottante) pour préserver leur z-index natif. */
html.dark-mode body > *:not(.tu-intro):not([class*="overlay"]):not(.site-header):not(.social-float):not(.role-bar):not(.cookie-banner) { position: relative; z-index: 1; }

/* Éléments qui utilisent var(--white) comme couleur de TEXTE (pas fond) */
html.dark-mode .hero h1,
html.dark-mode .page-hero h1,
html.dark-mode .section-header.light h2,
html.dark-mode .course-card h3,
html.dark-mode .logo-name,
html.dark-mode .footer-brand-name { color: #fff; }

html.dark-mode .btn-outline      { color: rgba(255,255,255,.88); }
html.dark-mode .btn-outline-dark { border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.75); }

/* Sections hardcodées en clair */
html.dark-mode .section-cream   { background: #1a1730; }

/* Formulaires */
html.dark-mode .form-group input,
html.dark-mode .form-group select,
html.dark-mode .form-group textarea {
  border-color: rgba(255,255,255,.14);
  color: rgba(255,255,255,.85);
}
html.dark-mode .form-group input::placeholder,
html.dark-mode .form-group textarea::placeholder { color: rgba(255,255,255,.28); }

/* Partenaires */
html.dark-mode .partners-bar { border-color: rgba(255,255,255,.06); }

/* ══════════════════════════════════════════
   COOKIE BANNER (RGPD informatif — design pro)
   ══════════════════════════════════════════ */
.cookie-banner {
  position: fixed !important;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 9000 !important;
  max-width: 420px;
  background: linear-gradient(155deg, rgba(20, 36, 76, .98), rgba(13, 24, 56, .98));
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(74, 158, 255, .4);
  border-radius: 16px;
  padding: 1.15rem 1.25rem 1.1rem;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(74, 158, 255, .1),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  opacity: 0;
  transform: translateY(24px) scale(.96);
  transition: opacity .45s cubic-bezier(.22, 1, .36, 1), transform .45s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.cookie-banner-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold);
}
.cookie-banner-icon {
  font-size: 1.1rem;
  filter: drop-shadow(0 0 8px rgba(74, 158, 255, .5));
}
.cookie-banner p {
  font-size: .85rem;
  color: rgba(255, 255, 255, .82);
  margin: 0;
  line-height: 1.6;
}
.cookie-banner strong { color: #fff; font-weight: 600; }
.cookie-banner a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--dur);
}
.cookie-banner a:hover { color: var(--gold-h); }
.cookie-banner-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .6rem;
  margin-top: .25rem;
}
.cookie-ok {
  background: linear-gradient(135deg, var(--gold), var(--gold-h));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .6rem 1.2rem;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(74, 158, 255, .35);
  transition: box-shadow .2s, transform .15s;
}
.cookie-ok:hover {
  box-shadow: 0 6px 22px rgba(74, 158, 255, .55);
  transform: translateY(-1px);
}
.cookie-ok:active { transform: translateY(0); }

/* Mode jour : adapté */
html:not(.dark-mode) .cookie-banner {
  background: linear-gradient(155deg, #ffffff, #f9fbff);
  border-color: rgba(74, 158, 255, .25);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, .12),
    0 0 0 1px rgba(0, 0, 0, .04);
}
html:not(.dark-mode) .cookie-banner p { color: var(--text-body); }
html:not(.dark-mode) .cookie-banner strong { color: var(--text); }

@media (max-width: 540px) {
  .cookie-banner {
    left: 1rem; right: 1rem;
    bottom: 1rem;
    max-width: none;
    padding: 1rem;
  }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-ok { width: 100%; padding: .7rem; }
}
@media (hover: none) {
  .cookie-ok:hover { transform: none; box-shadow: 0 4px 14px rgba(74, 158, 255, .35); }
}

/* ══════════════════════════════════════════
   INTRO DISNEY+ — Animation d'ouverture
   ══════════════════════════════════════════ */
.tu-intro {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483647 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 35%, rgba(60, 120, 220, .55), transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 100%, rgba(8, 20, 70, .95), transparent 75%),
    linear-gradient(180deg, #02050f 0%, #08184a 45%, #02050f 100%);
  opacity: 1;
  transition: opacity .7s ease;
  cursor: pointer;
  overflow: hidden;
}
.tu-intro.fade-out { opacity: 0; pointer-events: none; }

/* Étoiles de l'intro (calque dédié pour ne pas dépendre du body) */
.tu-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.95), transparent 60%),
    radial-gradient(1px 1px at 28% 70%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(2px 2px at 41% 14%, rgba(255,255,255,1), transparent 60%),
    radial-gradient(1px 1px at 56% 89%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 70% 38%, rgba(160,200,255,.9), transparent 60%),
    radial-gradient(2px 2px at 80% 18%, rgba(255,255,255,.95), transparent 60%),
    radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(2px 2px at 95% 9%, rgba(255,255,255,1), transparent 60%),
    radial-gradient(1px 1px at 6% 50%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 33% 46%, rgba(160,200,255,.85), transparent 60%),
    radial-gradient(1.5px 1.5px at 48% 66%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(1.5px 1.5px at 85% 85%, rgba(255,255,255,.95), transparent 60%);
  background-repeat: repeat;
  background-size: 520px 520px;
  animation: tu-twinkle 3.2s ease-in-out infinite alternate, tu-intro-stars-fade 2.4s ease-out forwards;
}
@keyframes tu-intro-stars-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Bloc central : logo + halo + arc — occupe la quasi-totalité de la fenêtre */
.tu-intro-stage {
  position: relative;
  width: min(95vw, 95vh);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Halo radial qui pulse derrière le logo */
.tu-intro-halo {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 180, 255, .55) 0%, rgba(74, 158, 255, .25) 40%, transparent 70%);
  filter: blur(18px);
  opacity: 0;
  animation: tu-intro-halo 2.6s cubic-bezier(.22,1,.36,1) .2s forwards;
}
@keyframes tu-intro-halo {
  0%   { opacity: 0; transform: scale(.4); }
  35%  { opacity: 1; transform: scale(1.05); }
  70%  { opacity: .9; transform: scale(1.0); }
  100% { opacity: .8; transform: scale(1.1); }
}

/* Arc lumineux qui se trace autour du logo */
.tu-intro-arc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: rgba(160, 210, 255, .95);
  border-right-color: rgba(80, 150, 240, .7);
  box-shadow:
    0 0 30px rgba(120, 180, 255, .6),
    inset 0 0 30px rgba(120, 180, 255, .3);
  opacity: 0;
  transform: scale(.6) rotate(-90deg);
  animation: tu-intro-arc 2.4s cubic-bezier(.22,1,.36,1) .4s forwards;
}
@keyframes tu-intro-arc {
  0%   { opacity: 0; transform: scale(.6) rotate(-90deg); }
  20%  { opacity: 1; }
  100% { opacity: .85; transform: scale(1) rotate(270deg); }
}

/* Logo : fade-in + léger zoom */
.tu-intro-logo {
  position: relative;
  width: 58%;
  height: auto;
  z-index: 2;
  opacity: 0;
  transform: scale(.85);
  filter: drop-shadow(0 0 24px rgba(120, 180, 255, .7));
  animation: tu-intro-logo 2.6s cubic-bezier(.22,1,.36,1) .35s forwards;
}
@keyframes tu-intro-logo {
  0%   { opacity: 0; transform: scale(.85); }
  35%  { opacity: 1; transform: scale(1.04); }
  70%  { transform: scale(1); }
  100% { opacity: 1; transform: scale(1.02); }
}

/* Skip hint discret en bas */
.tu-intro-skip {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  opacity: 0;
  animation: tu-intro-skip-fade .6s ease-out 1.2s forwards;
}
@keyframes tu-intro-skip-fade { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .tu-intro,
  .tu-intro-halo,
  .tu-intro-arc,
  .tu-intro-logo,
  .tu-intro::before,
  .tu-intro-skip { animation: none; }
}
