/* ==========================================================================
   EVA FAMILLY – style.css
   Mobile d’abord. Mode sombre par défaut, mode clair en option.
   Les couleurs --accent et --accent-2 sont remplacées automatiquement par
   « couleur principale » et « couleur secondaire » du Google Sheet.
   ========================================================================== */

/* ---------- 1. Variables (design tokens) ---------- */
:root {
  --bg: #120A1C;          /* prune très profond, fond principal */
  --surface: #1C1129;     /* cartes et blocs */
  --surface-2: #281838;   /* blocs alternés */
  --line: rgba(246, 238, 249, .12);
  --text: #F6EEF9;
  --muted: #BBA9C9;
  --accent: #FF3D8B;      /* rose néon (couleur principale) */
  --accent-2: #25E3EA;    /* cyan électrique (couleur secondaire) */
  --on-accent: #120A1C;   /* texte posé sur la couleur principale (calculé en JS) */
  --live: #FF2D55;
  --discord: #5865F2;

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: .875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 5vw, 2.8rem);

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 32px;
  --header-h: 64px;
  --maxw: 1180px;
  color-scheme: dark;
}

/* Mode clair (bouton lune/soleil dans l’en-tête) */
:root[data-theme="light"] {
  --bg: #FBF6FD;
  --surface: #FFFFFF;
  --surface-2: #F3E9F7;
  --line: rgba(31, 16, 41, .12);
  --text: #1F1029;
  --muted: #5D4A6B;
  color-scheme: light;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px; /* place pour le bouton live mobile */
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--accent); color: var(--on-accent); padding: .6rem 1rem; border-radius: var(--radius-s); font-weight: 700; }
.skip-link:focus { top: 1rem; }
.noscript { text-align: center; padding: 1rem; }

/* ---------- 3. Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 44px; padding: .7rem 1.3rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 var(--step-0)/1.1 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background-color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent), 0 0 28px color-mix(in srgb, var(--accent) 55%, transparent); }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent-2); box-shadow: 0 0 22px color-mix(in srgb, var(--accent-2) 30%, transparent); }
.btn--discord { background: var(--discord); color: #fff; }
.btn--discord:hover { box-shadow: 0 0 26px color-mix(in srgb, var(--discord) 60%, transparent); }
.btn--small { min-height: 38px; padding: .45rem .95rem; font-size: var(--step--1); }
.btn--large { padding: .95rem 1.6rem; }
.btn--xl { padding: 1.15rem 2rem; font-size: var(--step-1); width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: transparent; color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- 4. Pastille de statut live ---------- */
.status-dot { width: .6em; height: .6em; border-radius: 50%; background: var(--muted); flex: none; }
.is-live .status-dot { background: var(--live); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 70%, transparent); }
  50% { box-shadow: 0 0 0 .4em transparent; }
}
.live-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .85rem; border-radius: 999px;
  background: var(--surface-2); color: var(--muted);
  font: 700 var(--step--1)/1 var(--font-display); letter-spacing: .04em;
}
.is-live .live-badge { background: var(--live); color: #fff; }
.is-live .live-badge .status-dot { background: #fff; }
.live-badge--big { font-size: var(--step-0); padding: .5rem 1.1rem; }

/* ---------- 5. Chargement ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-content: center; gap: 1rem; text-align: center;
  background: var(--bg); transition: opacity .4s ease, visibility .4s;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__mark {
  font: 900 3.5rem/1 var(--font-display);
  text-shadow: -.05em 0 var(--accent-2), .05em 0 var(--accent);
  animation: breathe 1.2s ease-in-out infinite;
}
.loader__text { color: var(--muted); font-size: var(--step--1); }
@keyframes breathe { 50% { opacity: .55; transform: scale(.96); } }

/* ---------- 6. En-tête et navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { text-decoration: none; display: flex; align-items: center; }
.logo__text { font: 900 1.05rem/1 var(--font-display); letter-spacing: .02em; text-shadow: -1.5px 0 var(--accent-2), 1.5px 0 var(--accent); }
.logo img { height: 40px; width: auto; }
.header__actions { display: flex; align-items: center; gap: .25rem; }
.header__live { display: none; }

.nav {
  position: fixed; inset: var(--header-h) 0 0; background: var(--bg);
  padding: 1.5rem 1.25rem; transform: translateX(100%); visibility: hidden;
  transition: transform .3s ease, visibility .3s;
}
.nav.is-open { transform: none; visibility: visible; }
.nav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.nav__list a {
  display: block; padding: .85rem .5rem; text-decoration: none;
  font: 700 var(--step-2)/1.2 var(--font-display); border-bottom: 1px solid var(--line);
}
.nav__list a:hover { color: var(--accent); }

.burger { flex-direction: column; gap: 5px; display: inline-flex; }
.burger span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 7. Hero ---------- */
.hero { padding: calc(var(--header-h) + 2rem) 0 3.5rem; overflow: hidden; position: relative; }
.hero::before { /* halo néon discret derrière le visuel */
  content: ""; position: absolute; width: 70vmax; height: 70vmax; right: -30vmax; top: -10vmax; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
}
.hero__inner { display: grid; gap: 2.5rem; }
.hero__copy { display: grid; justify-items: start; gap: 1.1rem; }

/* Le wordmark : l’élément signature, décalage rose/cyan façon TikTok */
.wordmark {
  font: 900 clamp(3.3rem, 17vw, 8.5rem)/.88 var(--font-display);
  letter-spacing: -.02em; display: grid;
  text-shadow: -.035em 0 var(--accent-2), .035em 0 var(--accent);
  animation: split-in 1.1s cubic-bezier(.2, .8, .2, 1) both;
}
.wordmark__l2 { font-size: .52em; letter-spacing: .02em; }
@keyframes split-in {
  from { text-shadow: -.35em 0 transparent, .35em 0 transparent; opacity: 0; }
  60% { opacity: 1; }
  to { text-shadow: -.035em 0 var(--accent-2), .035em 0 var(--accent); }
}
.hero__slogan { font-size: var(--step-1); max-width: 32ch; color: var(--text); margin: 0; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__next { color: var(--muted); font-size: var(--step--1); margin: 0; }

/* Écran vertical 9:16 */
.hero__visual { display: grid; place-items: center; }
.phone {
  position: relative; width: min(78vw, 340px); aspect-ratio: 9 / 16;
  border-radius: var(--radius-l); overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--accent) 55%, transparent),
              0 0 0 8px color-mix(in srgb, var(--surface) 80%, transparent);
  rotate: 2deg;
}
.phone__photo { width: 100%; height: 100%; object-fit: cover; }
.phone__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 70%, transparent), transparent 55%),
    radial-gradient(circle at 75% 80%, color-mix(in srgb, var(--accent-2) 55%, transparent), transparent 55%),
    var(--surface-2);
}
.phone__placeholder span { font: 900 9rem/1 var(--font-display); color: rgba(255,255,255,.9); text-shadow: -6px 0 var(--accent-2), 6px 0 var(--accent); }
.has-photo .phone__placeholder { display: none; }
.phone__top {
  position: absolute; inset: 1rem 1rem auto; display: flex; justify-content: space-between; align-items: center; gap: .5rem;
  font-size: var(--step--1); font-weight: 700; color: #fff;
}
.phone__handle { background: rgba(0,0,0,.45); padding: .3rem .7rem; border-radius: 999px; backdrop-filter: blur(6px); }
.phone__status { background: rgba(0,0,0,.45); padding: .3rem .7rem; border-radius: 6px; font-family: var(--font-display); font-size: .7rem; }
.is-live .phone__status { background: var(--live); }
.phone__bottom { position: absolute; inset: auto 1rem 1.2rem; display: grid; gap: .4rem; justify-items: start; }
.phone__comment { background: rgba(0,0,0,.45); color: #fff; font-size: .8rem; padding: .3rem .65rem; border-radius: 999px; backdrop-filter: blur(6px); }
.phone__hearts { position: absolute; right: .9rem; bottom: 4rem; width: 48px; height: 60%; pointer-events: none; }
.heart { position: absolute; bottom: 0; left: 50%; font-size: 1.4rem; animation: float-up 2.6s ease-out forwards; }
@keyframes float-up {
  0% { transform: translate(-50%, 0) scale(.6); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx, 0px)), -260px) scale(1.1); opacity: 0; }
}

/* ---------- 8. Sections génériques ---------- */
.section { padding: 4.5rem 0; }
.section--alt { background: var(--surface); }
.section__head { max-width: 60ch; margin-bottom: 2rem; }
.section__title { font: 700 var(--step-3)/1.1 var(--font-display); margin-bottom: .6rem; }
.section__lead { color: var(--muted); margin: 0; }
.section__foot { margin-top: 2rem; display: flex; justify-content: center; }
.prose p { max-width: 65ch; }

/* Apparition au scroll (désactivée si l’utilisateur préfère moins d’animations) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 9. À propos ---------- */
.about { display: grid; gap: 2.5rem; }
.about__sub { font: 700 var(--step-1)/1.2 var(--font-display); margin: 1.6rem 0 .8rem; }
.about__side .about__sub { margin-top: 0; }
.values { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.values li {
  padding: .55rem 1rem; border-radius: 999px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--line);
}
.values li:nth-child(odd) { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.values li:nth-child(even) { border-color: color-mix(in srgb, var(--accent-2) 55%, transparent); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 3rem 0 0; background: var(--line); border-radius: var(--radius-m); overflow: hidden; }
.stats > div { background: var(--bg); padding: 1.4rem 1.2rem; display: flex; flex-direction: column-reverse; gap: .25rem; }
.stats dt { color: var(--muted); font-size: var(--step--1); }
.stats dd { margin: 0; font: 900 var(--step-2)/1 var(--font-display); }
.stats--compact { margin: 0; }
.stats--compact > div { background: var(--surface); }

/* ---------- 10. Planning ---------- */
.schedule-wrap { border-radius: var(--radius-m); background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.schedule { width: 100%; border-collapse: collapse; }
.schedule thead { display: none; }
.schedule tr { display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.schedule tr:last-child { border-bottom: 0; }
.schedule td { padding: 0; }
.schedule .s-day { font: 700 var(--step-0)/1.3 var(--font-display); }
.schedule .s-time { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.schedule .s-type { grid-column: 1 / -1; color: var(--muted); }
.schedule .s-tag { grid-column: 1 / -1; }
.schedule .s-tag:empty { display: none; }
.schedule tr.is-next { background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: inset 4px 0 0 var(--accent); }
.tag { display: inline-block; padding: .2rem .65rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .78rem; font-weight: 700; }
.schedule-empty { padding: 1.5rem; color: var(--muted); margin: 0; }

/* ---------- 11. Bloc Live ---------- */
.live-panel {
  position: relative; display: grid; gap: 2rem; padding: 2rem 1.4rem;
  border-radius: var(--radius-l); background: var(--surface);
  border: 1px solid var(--line); overflow: hidden;
}
.live-panel::before { /* liseré dégradé, s’anime seulement en live */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55;
}
.is-live .live-panel { box-shadow: 0 0 60px -10px color-mix(in srgb, var(--live) 55%, transparent); }
.is-live .live-panel::before { opacity: 1; }
.live-panel__body { display: grid; gap: .9rem; justify-items: start; }
.live-panel__title { font: 700 var(--step-3)/1.1 var(--font-display); }
.live-panel__next { font-size: var(--step-1); margin: 0; }
.live-panel__countdown { color: var(--accent-2); font-weight: 700; margin: 0; }
.live-panel__countdown:empty { display: none; }
.live-panel__hint { color: var(--muted); font-size: var(--step--1); margin: .8rem 0 0; }

/* ---------- 12. Meilleurs moments (vidéos 9:16) ---------- */
.clips {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 290px); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem 1.25rem 1.25rem;
  scrollbar-width: thin;
}
.clip { scroll-snap-align: center; display: grid; gap: .6rem; align-content: start; }
.clip__frame { position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius-m); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.clip__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .4s; }
.clip__frame.is-loaded iframe { opacity: 1; }
.clip__poster {
  position: absolute; inset: 0; display: grid; place-items: center; text-decoration: none; color: #fff;
  background:
    radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 60%),
    radial-gradient(circle at 85% 90%, color-mix(in srgb, var(--accent-2) 40%, transparent), transparent 60%),
    var(--surface-2);
}
.clip__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip__play {
  position: relative; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
  background: rgba(0,0,0,.5); backdrop-filter: blur(6px); transition: transform .2s;
}
.clip__play::after { content: ""; border-left: 20px solid #fff; border-block: 12px solid transparent; margin-left: 5px; }
.clip__poster:hover .clip__play { transform: scale(1.08); }
.clip__poster-label { position: absolute; bottom: .9rem; left: .9rem; right: .9rem; font-size: var(--step--1); font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.clip__frame.is-loaded .clip__poster { visibility: hidden; }
.clip__title { font: 600 var(--step-0)/1.35 var(--font-body); }
.clip__date { color: var(--muted); font-size: var(--step--1); margin: 0; }
.clips-empty { padding: 0 1.25rem; color: var(--muted); }

/* ---------- 13. La Family ---------- */
.family-discord {
  display: grid; gap: 1.2rem; padding: 1.6rem; margin-bottom: 3rem;
  border-radius: var(--radius-m);
  background: linear-gradient(135deg, color-mix(in srgb, var(--discord) 30%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--discord) 50%, transparent);
}
.family-discord h3 { font: 700 var(--step-1)/1.2 var(--font-display); margin-bottom: .5rem; }
.family-discord p { margin: 0; color: var(--muted); max-width: 55ch; }
.family__sub { font: 700 var(--step-1)/1.2 var(--font-display); margin-bottom: 1.2rem; }
.members { list-style: none; margin: 0 0 3rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1.2rem 1rem; }
.member { display: grid; justify-items: center; text-align: center; gap: .45rem; }
.member__avatar {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  padding: 3px; background: linear-gradient(135deg, var(--accent-2), var(--accent));
}
.member__initials { display: grid; place-items: center; font: 900 1.6rem/1 var(--font-display); color: var(--text); }
.member__initials span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--surface-2); }
.member__name { font-weight: 700; overflow-wrap: anywhere; }
.member__role { font-size: .78rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.member__role--modo { background: color-mix(in srgb, var(--accent-2) 22%, transparent); color: var(--text); }
.member__role--vip { background: color-mix(in srgb, var(--accent) 25%, transparent); color: var(--text); }

.family-grid { display: grid; gap: 1.2rem; }
.family-card { padding: 1.6rem; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); }
.family-card h3 { font: 700 var(--step-1)/1.2 var(--font-display); margin-bottom: 1rem; }
.rules { margin: 0; padding-left: 1.3rem; display: grid; gap: .6rem; }
.rules li::marker { color: var(--accent); font-weight: 700; }
.support { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.support li { padding-left: 1.6rem; position: relative; }
.support li::before { content: "💜"; position: absolute; left: 0; }

/* ---------- 14. Boutique ---------- */
.shop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }
.product { display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius-m); overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.product__img { aspect-ratio: 1; width: 100%; object-fit: cover; background: var(--surface-2); }
.product__img--empty { display: grid; place-items: center; font: 900 2rem/1 var(--font-display); color: var(--muted); }
.product__body { padding: 1.1rem; display: grid; gap: .5rem; align-content: start; }
.product__name { font: 600 var(--step-0)/1.3 var(--font-body); }
.product__price { font: 700 var(--step-1)/1 var(--font-display); color: var(--accent); margin: 0 0 .4rem; }

/* ---------- 15. Partenaires et collaboration ---------- */
.partners { list-style: none; margin: 0 0 3rem; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.partners a, .partners span.partner {
  display: grid; place-items: center; height: 96px; padding: 1rem; text-decoration: none;
  border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line);
  font: 700 var(--step-0)/1.2 var(--font-display); text-align: center; transition: border-color .2s;
}
.partners a:hover { border-color: var(--accent-2); }
.partners img { max-height: 52px; width: auto; object-fit: contain; filter: grayscale(1) brightness(1.6); opacity: .85; transition: filter .25s, opacity .25s; }
:root[data-theme="light"] .partners img { filter: grayscale(1); }
.partners a:hover img { filter: none; opacity: 1; }

.collab { display: grid; gap: 2rem; padding: 1.8rem 1.4rem; border-radius: var(--radius-l); background: var(--surface-2); }
.collab__title { font: 700 var(--step-2)/1.15 var(--font-display); margin-bottom: .8rem; }
.collab__text p { color: var(--text); max-width: 60ch; }
.collab__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.2rem; }

/* ---------- 16. Contact ---------- */
.contact { display: grid; gap: 2.5rem; }
.contact__mail { font-weight: 600; color: var(--muted); }
.contact__mail a { font: 700 var(--step-1)/1.4 var(--font-display); color: var(--text); overflow-wrap: anywhere; }
.contact__note { color: var(--muted); font-size: var(--step--1); }
.form { display: grid; gap: 1.1rem; padding: 1.6rem; border-radius: var(--radius-m); background: var(--bg); border: 1px solid var(--line); }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; border-radius: var(--radius-s);
  border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-size: 16px; /* évite le zoom automatique sur iPhone */
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 30%, transparent); }
.field [aria-invalid="true"] { border-color: var(--live); }
.form button { justify-self: start; }
.form__status { margin: 0; font-weight: 600; }
.form__status.is-error { color: #FF7A93; }
.form__status.is-ok { color: var(--accent-2); }
:root[data-theme="light"] .form__status.is-ok { color: #08706F; }
:root[data-theme="light"] .form__status.is-error { color: #B3123A; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 17. Footer ---------- */
.footer { padding: 3rem 0 2rem; border-top: 1px solid var(--line); }
.footer__inner { display: grid; gap: 1.5rem; justify-items: center; text-align: center; }
.footer__brand { font: 900 var(--step-2)/1 var(--font-display); text-shadow: -2px 0 var(--accent-2), 2px 0 var(--accent); margin: 0; }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.socials a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.socials a:hover { border-color: var(--accent); }
.socials li:first-child a { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.2rem; color: var(--muted); font-size: var(--step--1); margin: 0; }

/* ---------- 18. Bouton live mobile (toujours visible) ---------- */
.mobile-live {
  position: fixed; left: 1rem; right: 1rem; bottom: calc(.8rem + env(safe-area-inset-bottom, 0px)); z-index: 90;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 54px; border-radius: 999px; text-decoration: none;
  background: var(--accent); color: var(--on-accent);
  font: 700 var(--step-0)/1 var(--font-display);
  box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
.is-live .mobile-live { background: var(--live); color: #fff; }
.is-live .mobile-live .status-dot { background: #fff; }

/* ---------- 19. Mentions légales ---------- */
.legal {
  width: min(92vw, 620px); max-height: 85vh; border: 1px solid var(--line); border-radius: var(--radius-m);
  background: var(--surface); color: var(--text); padding: 1.8rem;
}
.legal::backdrop { background: rgba(10, 4, 16, .7); backdrop-filter: blur(4px); }
.legal h2 { font: 700 var(--step-2)/1.2 var(--font-display); margin-bottom: 1rem; }

/* ==========================================================================
   20. Tablette et ordinateur
   ========================================================================== */
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats--compact { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .family-discord { grid-template-columns: 1fr auto; align-items: center; padding: 2rem 2.2rem; }
  .family-grid { grid-template-columns: 1fr 1fr; }
  .live-panel { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 3rem; }
  .collab { grid-template-columns: 1.3fr 1fr; align-items: center; padding: 2.6rem; }

  .schedule thead { display: table-header-group; }
  .schedule tr { display: table-row; padding: 0; }
  .schedule th, .schedule td { padding: 1rem 1.4rem; text-align: left; border-bottom: 1px solid var(--line); }
  .schedule th { color: var(--muted); font-size: var(--step--1); font-weight: 600; }
  .schedule tbody tr:last-child td { border-bottom: 0; }
  .schedule .s-time { text-align: left; }
  .schedule .s-tag:empty { display: table-cell; }
  .schedule tr.is-next td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
  .schedule tr.is-next { box-shadow: none; }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .mobile-live { display: none; }
  .hero { padding: calc(var(--header-h) + 3rem) 0 5rem; }
  .hero__inner { grid-template-columns: 1.25fr 1fr; align-items: center; }
  .about { grid-template-columns: 1.6fr 1fr; gap: 4rem; }
  .contact { grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: start; }
  .partners { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 6rem 0; }
  .clips {
    grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible;
    width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; padding: 0;
  }
}

@media (min-width: 1100px) {
  .header__live { display: inline-flex; }
  .burger { display: none; }
  .nav { position: static; transform: none; visibility: visible; background: none; padding: 0; }
  .nav__list { display: flex; gap: .2rem; }
  .nav__list a { font: 600 var(--step--1)/1 var(--font-body); border: 0; padding: .6rem .7rem; border-radius: 999px; }
  .nav__list a:hover { background: var(--surface-2); color: var(--text); }
}

/* ---------- Respect des préférences « moins d’animations » ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
