/* Mise en page de chaque section, dans l'ordre du document. */

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--background);
  border-bottom: var(--stroke-panel) solid var(--panel-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.15em;
  font-family: var(--font-display);
  font-size: 2.1rem;
  letter-spacing: var(--display-spacing);
  line-height: 1;
  color: var(--hero-text);
  -webkit-text-stroke: calc(var(--stroke-text-small) * 2 + 1px) var(--ink);
  paint-order: stroke fill;
  text-shadow: var(--offset-small) var(--offset-small) 0 var(--hard-shadow);
  text-decoration: none;
}

.brand__drop {
  margin-top: -0.2em;
  color: var(--poison);
  overflow: visible;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  font-weight: 900;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

@media (max-width: 54rem) {
  .site-nav {
    display: none;
  }

  .site-header .btn {
    margin-left: auto;
  }
}

/* ---------- Accroche ---------- */

.hero {
  overflow-x: clip;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.hero__copy {
  display: grid;
  justify-items: start;
  gap: 1.6rem;
}

.hero__title {
  display: grid;
  gap: 0.08em;
  margin-block: 0.3rem 0.2rem;
  font-size: clamp(2.6rem, 13vw, 5.1rem);
  line-height: 0.95;
  rotate: var(--tilt-hero);
}

.hero__title .hero-text {
  -webkit-text-stroke-width: calc(var(--stroke-text-giant) * 2);
  text-shadow: var(--offset-giant) var(--offset-giant) 0 var(--hard-shadow);
}

.hero__title .hero-text--poison {
  color: var(--poison);
}

.hero__stamp {
  justify-self: end;
  margin: -0.1em 0.4em 0 0;
  font-size: 0.42em;
  animation: stamp-in 120ms ease-in 900ms both;
}

@keyframes stamp-in {
  from {
    opacity: 0;
    scale: 1.6;
  }
}

.hero__sub {
  max-width: 34rem;
  font-weight: 800;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.45;
}

.hero__scene {
  display: grid;
  place-items: center;
  padding-block: 1.5rem;
}

.hero__aside {
  position: absolute;
  top: -2.5rem;
  left: 0;
  max-width: 14rem;
  rotate: var(--tilt-hero);
}

/* Bulles en alternance à gauche et à droite du téléphone, la queue tournée
   vers celui qui crie, hors de l'écran. */
.shout:nth-child(odd) {
  left: -5rem;
  rotate: -3deg;
}

.shout:nth-child(even) {
  right: -5.5rem;
  rotate: 3deg;
}

.shout:nth-child(even)::before,
.shout:nth-child(even)::after {
  left: auto;
  clip-path: polygon(0 0, 100% 0, 94% 100%);
}

.shout:nth-child(even)::before {
  right: 20px;
}

.shout:nth-child(even)::after {
  right: 24px;
}

.shout:nth-child(odd)::before {
  left: 20px;
}

.shout:nth-child(odd)::after {
  left: 24px;
}

.shout:nth-child(4n + 1) {
  top: 24%;
}

.shout:nth-child(4n + 2) {
  top: 36%;
}

.shout:nth-child(4n + 3) {
  top: 58%;
}

.shout:nth-child(4n) {
  top: 70%;
}

/* ---------- Un tour en quatre cases ---------- */

.strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
  padding: 0;
  list-style: none;
}

.strip__case {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 2.6rem 1.15rem 1.4rem;
}

.strip__case h3 {
  margin-top: 0.4rem;
}

.strip__case p {
  font-size: 1rem;
  color: var(--text-soft);
}

.strip__num {
  position: absolute;
  top: calc(-1 * var(--stroke-panel));
  left: calc(-1 * var(--stroke-panel));
}

.strip__scene {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--background);
  border: var(--stroke-panel) solid var(--panel-border);
  border-radius: var(--radius-sm);
}

.strip__scene--handoff {
  align-content: center;
  gap: 0.2rem;
}

.strip__kicker {
  font-weight: 900;
  font-size: 0.95rem;
}

.strip__name {
  font-size: 3.6rem;
  line-height: 1;
  -webkit-text-stroke-width: calc(var(--stroke-text-giant) * 2);
  text-shadow: var(--offset-giant) var(--offset-giant) 0 var(--hard-shadow);
}

.strip__crowd {
  display: flex;
  align-items: flex-end;
  align-self: end;
  margin-bottom: -6px;
}

.strip__silhouette {
  width: 74px;
  height: 84px;
  margin-inline: -6px;
  color: var(--team-sharks);
}

.strip__silhouette:nth-child(2) {
  width: 84px;
  height: 96px;
  z-index: 1;
}

.strip__peek {
  position: absolute;
  top: 14%;
  right: 12%;
  width: 40px;
  height: 46px;
  rotate: 10deg;
}

.strip__scene--chrono {
  align-content: center;
  gap: 0.6rem;
}

.strip__digits {
  font-family: var(--font-display);
  font-size: 4.6rem;
  letter-spacing: var(--display-spacing);
  line-height: 1;
  color: var(--timer-digits);
  -webkit-text-stroke: calc(var(--stroke-text-hero) * 2) var(--ink);
  paint-order: stroke fill;
  text-shadow: var(--offset-row) var(--offset-row) 0 var(--hard-shadow);
}

.strip__badges {
  display: flex;
  gap: 0.4rem;
}

.strip__badges .badge {
  min-width: 0;
}

.strip__tremble {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--text);
}

.strip__gasp {
  width: 78px;
  height: 90px;
}

.strip__question {
  position: absolute;
  top: 10%;
  right: 16%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding-top: 0.12em;
  background: var(--bubble);
  color: var(--ink);
  border: var(--stroke-panel) solid var(--bubble-border);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
}

/* ---------- Le poison ---------- */

.split {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.split__media {
  display: grid;
  place-items: center;
}

.split__copy {
  display: grid;
  justify-items: start;
  gap: 1.4rem;
}

.split__copy h2 {
  rotate: var(--tilt-hero);
}

.split__lead {
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.5;
}

.ticks {
  display: grid;
  gap: 1.1rem;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 0.9rem;
}

.ticks strong {
  font-weight: 900;
}

.ticks__icon {
  width: 28px;
  height: 30px;
}

.ticks__icon--check {
  color: var(--found);
}

/* ---------- La révélation ---------- */

.section--reveal {
  overflow-x: clip;
}

.verdict {
  display: grid;
  justify-items: center;
  gap: 1rem;
  max-width: 560px;
  margin-inline: auto;
}

.verdict .caption {
  justify-self: start;
}

.verdict__bubble {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1.5rem 2rem 1.3rem;
}

.verdict__name {
  padding-top: 0.08em;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 3.4rem);
  letter-spacing: var(--display-spacing);
  line-height: 1;
}

.verdict__value {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.verdict__drop {
  width: 40px;
  height: 46px;
}

.outcomes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 2rem;
  max-width: 920px;
  margin: clamp(2.5rem, 6vw, 3.5rem) auto 0;
}

.outcome {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.7rem;
  text-align: center;
}

.outcome__burst {
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 0.6rem;
  padding: 0 1.2rem 0.8rem;
}

.outcome__stamp {
  position: absolute;
  right: 0;
  bottom: 0;
}

.outcome .emblem {
  font-size: 1.2rem;
  text-align: left;
}

/* ---------- Les thèmes ---------- */

.duel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  max-width: 920px;
  margin-inline: auto;
}

.theme-card {
  position: relative;
  min-height: 100%;
  padding: 2.8rem 1.4rem 1.6rem;
  border-radius: var(--radius-md);
}

.theme-card__tag {
  position: absolute;
  top: calc(-1 * var(--stroke-panel));
  left: calc(-1 * var(--stroke-panel));
}

.theme-card__title {
  font-weight: 900;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  line-height: 1.18;
  text-wrap: balance;
}

.burst--or {
  --burst-width: 116px;
  --burst-text: 2.75rem;
  z-index: 1;
}

.theme-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  max-width: 920px;
  margin: clamp(2.5rem, 6vw, 3.5rem) auto 0;
  padding: 0;
  list-style: none;
}

.theme-list li {
  display: grid;
  align-content: start;
  gap: 0.3rem;
  padding: 0.8rem 1rem;
  background: var(--panel);
  color: var(--text);
  border: var(--stroke-panel) solid var(--panel-border);
  border-radius: var(--radius-md);
  box-shadow: var(--offset-row) var(--offset-row) 0 var(--hard-shadow);
  font-weight: 900;
  line-height: 1.25;
}

.theme-list span {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--display-spacing);
  color: var(--text-soft);
}

/* ---------- Pensé pour la soirée ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.feature {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.75rem;
  padding: 1.5rem 1.4rem 1.6rem;
}

.feature p {
  font-size: 1rem;
  color: var(--text-soft);
}

.feature__icon {
  width: 52px;
  height: 52px;
  padding: 10px;
  background: var(--caption);
  color: var(--ink);
  border: var(--stroke-panel) solid var(--ink);
  border-radius: 50%;
}

.feature__icon--teams {
  display: flex;
  align-items: center;
  gap: 6px;
  width: auto;
  padding-inline: 12px;
  border-radius: var(--radius-pill);
}

.feature__icon--teams svg {
  width: 26px;
  height: 26px;
}

/* ---------- FAQ ---------- */

#faq .section-head {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

/* ---------- Bandeau final ---------- */

.cta-band {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: var(--section-y);
  background: var(--background);
  color: var(--text);
  border-block: var(--stroke-panel) solid var(--panel-border);
  text-align: center;
}

.cta-band__inner {
  display: grid;
  justify-items: center;
  gap: 1.4rem;
}

.cta-band h2 {
  max-width: 18ch;
  rotate: var(--tilt-hero);
}

.cta-band p:not([class]) {
  max-width: 34rem;
  font-size: 1.15rem;
  color: var(--text-soft);
  text-wrap: balance;
}

.cta-band__mascot {
  position: relative;
}

.cta-band__fall {
  width: 108px;
  height: 170px;
  overflow: visible;
}

.cta-band__plop {
  position: absolute;
  right: -4.4rem;
  bottom: 0.4rem;
}

.cta-band .waitlist {
  justify-items: stretch;
  width: 100%;
  text-align: left;
}

/* ---------- Pied de page ---------- */

.site-footer {
  padding-block: 2.5rem 3rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-weight: 900;
}

.site-footer__legal {
  width: 100%;
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* ---------- Page de confidentialité ---------- */

.legal {
  display: grid;
  gap: 1.1rem;
}

.legal h1 {
  font-size: clamp(2.8rem, 9vw, 4.2rem);
  rotate: var(--tilt-hero);
}

.legal h2 {
  margin-top: 1.4rem;
  font-size: clamp(1.9rem, 5vw, 2.4rem);
}

.legal ul {
  display: grid;
  gap: 0.8rem;
  padding-left: 1.25rem;
}

.legal__date {
  color: var(--text-soft);
}

/* ---------- Écrans moyens ---------- */

@media (max-width: 75rem) {
  .shout:nth-child(odd) {
    left: -2rem;
  }

  .shout:nth-child(even) {
    right: -2rem;
  }
}

@media (max-width: 62rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__scene {
    position: relative;
  }

  .strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .split__media {
    order: 2;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Téléphones ---------- */

@media (max-width: 40rem) {
  .phone {
    --scale: 0.66;
    --bezel: 10px;
  }

  .brand {
    font-size: 1.9rem;
  }

  .hero__copy {
    gap: 1.25rem;
  }

  /* La légende et chaque ligne du titre tiennent sur une ligne, tilt compris. */
  .hero__copy > .caption {
    font-size: min(1.375rem, 7.2vw - 0.3rem);
    white-space: nowrap;
  }

  .hero__title {
    font-size: calc(11.4vw - 0.3rem);
    transform-origin: 0 0;
  }

  .hero__title .hero-text {
    white-space: nowrap;
  }

  .hero__stamp {
    font-size: 0.5em;
  }

  .hero__scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-block: 0;
  }

  /* Pas de place à côté du téléphone : les réponses criées passent au-dessus,
     la queue mordant sur le haut du cadre, et l'aparté descend dessous. */
  .shouts {
    position: relative;
    inset: auto;
    order: -1;
    width: 100%;
    height: 4rem;
  }

  html:not(.js) .shouts {
    display: none;
  }

  .shout {
    font-size: 1.2rem;
  }

  .shout:nth-child(n) {
    top: 0.9rem;
  }

  .shout:nth-child(odd) {
    left: 1rem;
  }

  .shout:nth-child(even) {
    right: 1rem;
  }

  .hero__aside {
    position: relative;
    top: auto;
    left: auto;
    margin: 2.25rem 0 0;
  }

  .hero__aside::before,
  .hero__aside::after {
    top: auto;
    bottom: 100%;
    clip-path: polygon(0 100%, 100% 100%, 6% 0);
  }

  /* Un tour : la planche défile au doigt, bord à bord, case par case. */
  .strip {
    grid-template-columns: none;
    grid-auto-columns: 85%;
    grid-auto-flow: column;
    gap: 1rem;
    margin-inline: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) calc(var(--offset-row) + 2px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .strip::-webkit-scrollbar {
    display: none;
  }

  .strip__case {
    scroll-snap-align: start;
  }

  html.js .strip__case.reveal {
    opacity: 1;
    transform: none;
  }

  .chips--center {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chips--center li {
    display: grid;
    place-items: center;
    padding: 0.55rem 0.7rem;
    border-radius: var(--radius-lg);
    text-align: center;
    text-wrap: balance;
  }

  .outcomes {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Révélation : la ligne sans emblème s'aligne sur le texte des autres. */
  .outcome {
    --burst-width: 15.5rem;
  }

  .outcome .emblem {
    justify-self: stretch;
    padding-inline: 0.5rem;
  }

  .outcome .emblem:not(:has(svg)) {
    padding-left: calc(0.5rem + 24px + 0.6rem);
  }

  .duel {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .duel .theme-card {
    width: 100%;
  }

  .burst--or {
    margin-block: -0.5rem;
  }

  /* Les thèmes en une seule liste plutôt qu'une pile de cases. */
  .theme-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    background: var(--panel);
    border: var(--stroke-panel) solid var(--panel-border);
    border-radius: var(--radius-md);
    box-shadow: var(--offset-row) var(--offset-row) 0 var(--hard-shadow);
  }

  .theme-list li {
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .theme-list li + li {
    border-top: var(--stroke-badge) solid var(--panel-border);
  }

  .features {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 1.1rem 1.15rem 1.25rem;
  }

  .feature h3 {
    font-size: 1.5rem;
  }

  .feature p {
    grid-column: 1 / -1;
  }

  .feature__icon {
    width: 46px;
    height: 46px;
    padding: 8px;
  }

  .feature__icon--teams {
    width: auto;
    padding-inline: 10px;
  }

  .faq__item summary {
    font-size: 1.1rem;
  }
}

/* Sans la minute rejouée, la file des réponses criées resterait vide. */
@media (max-width: 40rem) and (prefers-reduced-motion: reduce) {
  .shouts {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__stamp {
    animation: none;
  }
}
