/* YTAcademy — page « très prochainement » : héros 3D + liste d'attente, puis
   Programme, Outils, À propos et Contact. Blanc YouTube, rouge YouTube. */
:root {
  --paper: #ffffff;
  --chip: #f2f2f2;
  --line: #e5e5e5;
  --ink: #0f0f0f;
  --ink-2: #1f1f1f;
  --grey: #606060;
  --grey-2: #aaaaaa;
  --red: #ff0033;
  --red-2: #cc0029;

  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --head-h: 68px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: var(--head-h); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; position: relative;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--red); color: #fff; }

.wrap {
  max-width: 1180px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Lueur rouge très douce qui respire derrière le héros */
.glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 70vmax; height: 70vmax; left: 50%; top: 45vh;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 0, 51, .10), rgba(255, 0, 51, .04) 45%, transparent 70%);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.12); } }
main, .foot { position: relative; z-index: 1; }

/* ---------- Menu ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 31; background: var(--paper); }
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top__in { height: var(--head-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo__mark { width: 34px; height: 24px; border-radius: 7px; background: var(--red); display: grid; place-items: center; }
.logo__mark svg { width: 20px; fill: #fff; }
.logo__word { font: 800 1.3rem/1 var(--display); letter-spacing: -0.03em; font-variation-settings: "wdth" 88; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: 9px 14px; border-radius: 999px; transition: background-color .2s, color .2s; }
.nav a:hover { background: var(--chip); }
.nav a.is-active { background: var(--chip); }
.nav .nav__cta { background: var(--red); color: #fff; font-weight: 600; margin-left: 8px; }
.nav .nav__cta:hover { background: var(--ink); }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--chip); cursor: pointer; position: relative; }
.burger i { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, top .3s; }
.burger i:first-of-type { top: 17px; }
.burger i:last-of-type { top: 25px; }
.burger[aria-expanded="true"] i:first-of-type { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-of-type { top: 21px; transform: rotate(-45deg); }

/* ---------- Héros ---------- */
.hero {
  min-height: calc(100svh - var(--head-h));
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: 24px; padding-block: 24px 48px;
}
.copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; min-width: 0; }
.soon { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: .92rem; background: var(--chip); padding: 8px 14px 8px 12px; border-radius: 999px; }
.rec { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: rec 1.4s steps(2, jump-none) infinite; }
@keyframes rec { 50% { opacity: .2; } }
.title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 5.8rem); line-height: .95; letter-spacing: -0.03em;
  font-variation-settings: "wdth" 84, "opsz" 96;
}
.stage { position: relative; order: 2; height: min(620px, 70vh); min-width: 0; }
.stage__canvas { position: absolute; inset: -10% -14% -10% -10%; width: 124%; height: 120%; display: block; }
.stage__fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.stage__fallback span { width: 62%; aspect-ratio: 1.42; border-radius: 22%; background: var(--red); position: relative; box-shadow: 0 40px 80px -30px rgba(255, 0, 51, .6); }
.stage__fallback span::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-left: 70px solid #fff; border-block: 44px solid transparent; }
.has-3d .stage__fallback { display: none; }

/* Liste d'attente */
.join { width: min(560px, 100%); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 8px; }
.join__title { font: 700 clamp(1.25rem, 2.2vw, 1.6rem)/1.2 var(--display); letter-spacing: -0.02em; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.free { font: 700 .85rem/1 var(--body); letter-spacing: 0; background: var(--red); color: #fff; padding: 7px 11px; border-radius: 999px; }
.waitlist {
  width: 100%; display: flex; flex-wrap: wrap; gap: 8px;
  background: var(--paper); padding: 6px; border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line), 0 24px 50px -24px rgba(15, 15, 15, .35);
  transition: box-shadow .2s;
}
.waitlist:focus-within { box-shadow: 0 0 0 2px var(--ink), 0 24px 50px -24px rgba(15, 15, 15, .35); }
.waitlist input {
  flex: 1 1 200px; min-width: 0; border: 0; background: transparent;
  font: 500 1rem var(--body); color: var(--ink); padding: 14px 18px; border-radius: 999px;
}
.waitlist input:focus { outline: none; }
.waitlist input::placeholder { color: var(--grey); }
.btn {
  border: 0; cursor: pointer; border-radius: 999px; padding: 16px 26px;
  background: var(--red); color: #fff; font: 600 1rem/1 var(--body);
  transition: background-color .2s, transform .15s;
}
.btn:hover { background: var(--ink); }
.btn:active { transform: scale(.97); }
.waitlist__msg { flex-basis: 100%; font-weight: 600; font-size: .92rem; padding: 0 18px 8px; text-align: left; }
.waitlist__msg:empty { display: none; }
.waitlist__msg.is-ok { color: #067d3f; }
.waitlist__msg.is-info { color: var(--ink); }
.waitlist__msg.is-err { color: var(--red-2); }
.join__note { color: var(--grey); font-size: .92rem; max-width: 34em; }

/* ---------- Sections ---------- */
.sec { padding-block: 120px; }
.sec--ink { background: var(--ink); color: #fff; }
.sec--chip { background: var(--chip); }
.sec__head { max-width: 640px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.sec__head p { color: var(--grey); font-size: 1.08rem; }
.sec--ink .sec__head p { color: var(--grey-2); }
.h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: .98; letter-spacing: -0.025em;
  font-variation-settings: "wdth" 86, "opsz" 96;
}
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .88rem; color: var(--red);
  background: rgba(255, 0, 51, .08); padding: 7px 12px 7px 10px; border-radius: 999px;
}
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: rec 1.4s steps(2, jump-none) infinite; }
.tag--light { background: rgba(255, 0, 51, .18); color: #ff6b85; }

/* Programme */
.chapters { margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.chapters li {
  background: var(--chip); border-radius: 18px; padding: 20px 20px 18px;
  min-height: 180px; display: flex; flex-direction: column; gap: 10px;
  transition: background-color .25s, transform .35s cubic-bezier(.2, .7, .1, 1);
}
.chapters li:hover { background: #ebebeb; transform: translateY(-4px); }
.chapters__n { font: 800 2.6rem/1 var(--display); color: var(--red); font-variation-settings: "wdth" 80; }
.chapters h3 { font: 600 1.08rem/1.3 var(--body); flex: 1; }
.lock { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--grey); background: var(--paper); padding: 5px 10px; border-radius: 999px; }
.lock::before {
  content: ""; width: 10px; height: 8px; border-radius: 2px; background: var(--grey);
  box-shadow: 0 -5px 0 -2px var(--paper), 0 -6px 0 -1px var(--grey);
}

/* Outils */
.tools { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tools li {
  border: 1px solid #2c2c2c; border-radius: 18px; padding: 24px;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .25s, background-color .25s;
}
.tools li:hover { border-color: #4a4a4a; background: var(--ink-2); }
.tools b { font: 700 1.2rem/1.2 var(--display); letter-spacing: -0.01em; }
.tools span { color: var(--grey-2); font-size: .95rem; }
.tools b::before {
  content: ""; display: block; width: 34px; height: 24px; border-radius: 7px; margin-bottom: 16px;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 7.5v9l7.5-4.5z' fill='%23fff'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.tools .tools__more { border-style: dashed; }
.tools .tools__more b::before { background-color: #333; }

/* À propos */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.about__photo { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 30%; }
.about__text { min-width: 0; }
.about__text p { color: var(--grey); margin-top: 20px; font-size: 1.06rem; max-width: 36em; }
.about__text strong { color: var(--ink); }
.facts { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.facts li { border-top: 3px solid var(--red); padding-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.facts b { font: 700 1.15rem/1.2 var(--display); letter-spacing: -0.01em; }
.facts span { color: var(--grey); font-size: .9rem; }

/* Contact */
.contact { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.contact > p { color: var(--grey); font-size: 1.08rem; max-width: 30em; }
.contact__links { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.social {
  display: flex; align-items: center; gap: 14px; text-align: left; text-decoration: none;
  background: var(--paper); border-radius: 20px; padding: 18px 26px 18px 18px; min-width: 250px;
  box-shadow: 0 0 0 1px var(--line); transition: transform .3s cubic-bezier(.2, .7, .1, 1), box-shadow .25s;
}
.social svg { width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: var(--ink); fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.social span { display: flex; flex-direction: column; }
.social b { font-size: 1.05rem; }
.social small { color: var(--grey); font-size: .85rem; }
a.social[href]:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 20px 40px -20px rgba(15, 15, 15, .4); }
a.social[href]:hover svg { background: var(--red); }
a.social:not([href]) { cursor: default; }

/* Pied de page */
.foot { padding-block: 28px; border-top: 1px solid var(--line); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; font-size: .85rem; color: var(--grey); }
.by { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.by img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 55% 25%; }
.legal { font-size: .78rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 10px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px));
    box-shadow: 0 20px 30px -20px rgba(15, 15, 15, .25);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility 0s .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; border-radius: 12px; }
  .nav .nav__cta { margin: 8px 0 0; text-align: center; }
  .hero { grid-template-columns: 1fr; gap: 0; padding-block: 0 56px; min-height: 0; }
  .stage { order: 0; height: min(340px, 44vh); }
  .stage__canvas { inset: -6% -10%; width: 120%; height: 112%; }
  .copy { align-items: center; text-align: center; gap: 22px; }
  .join { align-items: center; }
  .join__title { justify-content: center; }
  .sec { padding-block: 88px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__photo { max-width: 420px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .stage { height: 280px; }
  .waitlist { border-radius: 22px; }
  .btn { flex: 1 1 100%; }
  .title { font-size: clamp(2.1rem, 10.2vw, 2.7rem); }
  .chapters, .tools, .facts { grid-template-columns: 1fr; }
  .chapters li { min-height: 0; flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; }
  .chapters__n { font-size: 1.8rem; min-width: 1.2em; }
  .lock { align-self: center; }
  .social { min-width: 0; width: 100%; }
  .foot__in { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
