/* =========================================================
   École du Groove · page d'attente (refonte)
   Couleurs et typo reprises du site actuel (ecoledugroove.com)
   ========================================================= */

:root {
  --teal: #00a5b2;        /* couleur principale du site */
  --teal-dark: #00717a;   /* hover / ombre du ruban */
  --teal-deep: #004d53;
  --red: #c54343;         /* accent secondaire du site */
  --ink: #111111;         /* fond du menu fixe */
  --ink-2: #1a1a1a;
  --grey: #555555;
  --grey-light: #aaaaaa;
  --paper: #f0f0f0;       /* fond des pages */
  --white: #ffffff;

  --font: "Avenir Next", "Avenir LT Std", "Avenir", "Nunito Sans", system-ui, sans-serif;
  --radius: 4px;
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.6;
  color: var(--white);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(48px, 8vh, 96px) 0;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 70% at 85% 45%, rgba(0, 165, 178, .22), transparent 70%),
    linear-gradient(180deg, rgba(17, 17, 17, .35) 0%, rgba(17, 17, 17, .75) 70%, var(--ink) 100%),
    url("img/background-accueil.jpg") center top / cover no-repeat;
  animation: drift 24s ease-in-out infinite alternate;
  transform-origin: 30% 30%;
}

@keyframes drift {
  from { transform: scale(1.04); }
  to   { transform: scale(1.12) translateX(-1.5%); }
}

.hero__grid {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1fr 1.05fr; }
}

/* ---------- Intro ---------- */
.intro { text-align: center; }
@media (min-width: 980px) { .intro { text-align: left; } }

.intro__logo {
  margin: 0 auto 8px;
  width: min(420px, 86%);
}
@media (min-width: 980px) { .intro__logo { margin-left: -12px; } }

.intro__logo img { width: 100%; height: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .45)); }

/* ruban turquoise, clin d'œil au logo */
.ribbon {
  position: relative;
  display: inline-block;
  margin: 8px 0 22px;
  padding: 7px 30px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(180deg, var(--teal) 0%, #0093a0 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%, 12px 50%);
  box-shadow: 0 4px 0 var(--teal-dark);
}
.ribbon::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--white);
  vertical-align: 1px;
  animation: pulse 1.3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(.7); }
}

.intro__title {
  margin: 0 0 18px;
  font-weight: 900;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.intro__title span { color: var(--teal); }

.intro__text {
  max-width: 34em;
  margin: 0 auto 32px;
  font-size: clamp(16px, 1.6vw, 18px);
  color: rgba(255, 255, 255, .82);
}
@media (min-width: 980px) { .intro__text { margin-left: 0; } }

/* ---------- Formulaire ---------- */
.notify {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}
@media (min-width: 980px) { .notify { margin-left: 0; } }

.notify__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.notify__row { display: flex; gap: 8px; }

.notify input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 16px;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius);
  outline: none;
  transition: border-color .2s;
}
.notify input[type="email"]:focus { border-color: var(--teal); }
.notify input[aria-invalid="true"] { border-color: var(--red); }

.notify__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .7);
  cursor: pointer;
}
.notify__consent input {
  flex: none;
  width: 16px; height: 16px;
  margin: 2px 0 0;
  accent-color: var(--teal);
}

.notify__msg { min-height: 1.5em; margin: 10px 0 0; font-weight: 500; font-size: 14px; }
.notify__msg.is-ok { color: var(--teal); }
.notify__msg.is-error { color: #ff7b7b; }

@media (max-width: 480px) {
  .notify__row { flex-direction: column; }
  .notify input[type="email"] { flex: none; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--teal);
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, border-color .2s, transform .1s;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .35); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--white); }

.btn:focus-visible,
.icon-btn:focus-visible,
.link-btn:focus-visible,
.cell:focus-visible,
.social a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.icon-btn {
  width: 30px; height: 30px;
  font: inherit;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  color: var(--white);
  background: rgba(255, 255, 255, .08);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.icon-btn:hover { background: var(--teal); }

.link-btn {
  margin-left: auto;
  padding: 4px 0;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-light);
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
}
.link-btn:hover { color: var(--white); }

/* ---------- Séquenceur ---------- */
.seq {
  padding: clamp(18px, 3vw, 30px);
  background: rgba(17, 17, 17, .72);
  border: 1px solid rgba(255, 255, 255, .08);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.seq__head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.seq__kicker {
  margin: 0;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
}
.seq__title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.15;
  text-transform: uppercase;
}

.seq__tempo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--grey-light);
}
.seq__tempo output {
  min-width: 2.4ch;
  font-weight: 900;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--white);
}

.seq__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  align-items: center;
}

.track-name {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-light);
  white-space: nowrap;
}

.steps {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 4px;
}

.cell {
  position: relative;
  aspect-ratio: 1 / 1.25;
  min-width: 0;
  padding: 0;
  background: rgba(255, 255, 255, .07);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  transition: background .12s, transform .12s, box-shadow .12s;
}
/* repère des temps : chaque noire */
.cell:nth-child(4n + 1) { background: rgba(255, 255, 255, .13); }
.cell:hover { background: rgba(0, 165, 178, .35); }

.cell.is-on { background: var(--teal); box-shadow: inset 0 -3px 0 var(--teal-dark); }
.cell.is-on:hover { background: #12b9c6; }

/* colonne jouée */
.cell.is-now { box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
.cell.is-on.is-now {
  background: var(--white);
  box-shadow: 0 0 18px rgba(0, 165, 178, .9);
  transform: scale(1.08);
}

/* compteur de temps sous la grille */
.beats {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: -2px;
  font-size: 11px;
  font-weight: 800;
  color: var(--grey);
}
.beats span { padding-left: 2px; }

@media (max-width: 520px) {
  .steps { gap: 2px; }
  .cell { border-radius: 2px; }
  .track-name { font-size: 10px; letter-spacing: .04em; }
  .seq__grid { column-gap: 8px; }
}

.seq__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}
.seq__controls .btn { height: 44px; padding: 0 18px; font-size: 13px; }

#play .i-play { display: none; }
#play[aria-pressed="false"] .i-play { display: block; }
#play[aria-pressed="false"] .i-pause { display: none; }

#sound .wave { opacity: .35; }
#sound[aria-pressed="true"] .wave { opacity: 1; }
#sound[aria-pressed="false"] { background: transparent; border-color: var(--teal); }
#sound[aria-pressed="false"]:hover { background: rgba(0, 165, 178, .15); }

/* ---------- Ce qui arrive ---------- */
.coming {
  padding: clamp(56px, 8vw, 96px) 0;
  color: var(--ink);
  background: var(--paper);
}

.coming__grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 760px) { .coming__grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  padding: 28px 26px 30px;
  background: var(--white);
  border-bottom: 4px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, .1); }

.card__num {
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--teal);
}
.card h3 {
  margin: 6px 0 8px;
  font-weight: 900;
  font-size: 20px;
  text-transform: uppercase;
}
.card p { margin: 0; color: var(--grey); }

/* ---------- Pied de page ---------- */
.foot {
  padding: 28px 0;
  font-size: 13px;
  color: var(--grey-light);
  background: var(--ink);
}
.foot__row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.foot p { margin: 0; }

.social { display: flex; gap: 10px; }
.social a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  color: var(--white);
  background: rgba(255, 255, 255, .08);
  border-radius: 50%;
  transition: background .2s;
}
.social a:hover { background: var(--teal); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

@media (max-width: 560px) {
  .foot__row { flex-direction: column-reverse; text-align: center; }
}

/* ---------- Accessibilité ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
