/* =========================================================
   CRISTIAN'S 80s PROM NIGHT — Design system
   Esthétique "lycée américain 80-90s" : tableau noir craie,
   panneau en liège, papier ligné, ticket "Admit One",
   onglets de classeur, carnet de notes
   ========================================================= */

:root {
  --chalkboard: #1f3d2b;
  --chalkboard-dark: #16301f;
  --chalk-white: #f7f5ef;
  --wood: #8a5a34;
  --wood-dark: #6e4527;
  --cork: #c68958;
  --cork-dark: #a9713f;
  --maroon: #7a1f2b;
  --gold: #e8b923;
  --navy: #1b2a4a;
  --paper: #f7f1de;
  --paper-line: #b9c7e0;
  --margin-red: #d64550;
  --ink: #262218;
  --ink-soft: #4a4436;

  --font-varsity: 'Bebas Neue', sans-serif;
  --font-chalk: 'Permanent Marker', cursive;
  --font-body: 'Courier Prime', 'Courier New', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--cork);
  background-image:
    radial-gradient(var(--cork-dark) 1px, transparent 1.4px),
    radial-gradient(var(--cork-dark) 1px, transparent 1.4px);
  background-size: 26px 26px;
  background-position: 0 0, 13px 13px;
  font-size: 16px;
}

a { color: var(--navy); }
a:visited { color: var(--maroon); }
a:hover { color: var(--margin-red); }

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

a:focus-visible,
button:focus-visible {
  outline: 3px dashed var(--navy);
  outline-offset: 2px;
}

/* ---------- Panneau d'affichage (reader board) ---------- */
.ticker {
  background: var(--chalkboard-dark);
  color: var(--gold);
  font-family: var(--font-varsity);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 6px solid var(--wood-dark);
}

.ticker__track {
  display: inline-block;
  padding-left: 100%;
  animation: scrollLeft 24s linear infinite;
}

@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ---------- Page = flyer scotché sur le panneau ---------- */
.page {
  max-width: 820px;
  margin: 36px auto 24px;
  position: relative;
  background: var(--paper);
  background-image: repeating-linear-gradient(
    var(--paper) 0 31px,
    var(--paper-line) 31px 32px
  );
  border: 1px solid #d9cfa9;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transform: rotate(-0.6deg);
  padding: 0;
}

.page::before {
  /* Marge rouge façon copie double */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 56px;
  width: 2px;
  background: var(--margin-red);
  opacity: 0.55;
}

/* Scotchs aux coins */
.page::after {
  content: "";
}

.tape {
  position: absolute;
  width: 70px;
  height: 26px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.tape--tl { top: -12px; left: 24px; transform: rotate(-8deg); }
.tape--tr { top: -12px; right: 24px; transform: rotate(7deg); }

.page__inner {
  padding: 28px clamp(20px, 4vw, 44px) 44px 76px;
}

@media (max-width: 560px) {
  .page::before { left: 30px; }
  .page__inner { padding-left: 46px; }
}

/* ---------- Diviseur ---------- */
.rule {
  height: 3px;
  margin: 26px 0;
  background: repeating-linear-gradient(90deg, var(--maroon) 0 14px, var(--gold) 14px 28px);
  border-radius: 2px;
}

/* ---------- Bloc tableau noir (en-tête) ---------- */
.chalkboard {
  background: var(--chalkboard);
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 5px 5px;
  border: 10px solid var(--wood);
  border-bottom-width: 20px;
  padding: 34px 20px 22px;
  text-align: center;
  border-radius: 4px;
}

.wordart {
  font-family: var(--font-chalk);
  font-weight: 400;
  font-size: clamp(1.7rem, 6vw, 3rem);
  margin: 0 0 10px;
  color: var(--chalk-white);
  text-shadow:
    0 0 2px rgba(255,255,255,0.4),
    1px 1px 0 rgba(255,255,255,0.15);
  line-height: 1.25;
}

.subtitle {
  font-family: var(--font-chalk);
  font-size: 1.15rem;
  color: var(--gold);
  margin: 0 0 6px;
}

.tagline {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--chalk-white);
  opacity: 0.85;
  margin: 0;
}

/* ---------- Navigation : onglets de classeur ---------- */
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0 0 30px;
  padding-top: 14px;
}

.nav a {
  font-family: var(--font-varsity);
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--paper);
  padding: 14px 16px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0% 100%);
}

.nav a:visited { color: var(--paper); }

.nav a:nth-child(5n+1) { background: var(--maroon); }
.nav a:nth-child(5n+2) { background: var(--navy); }
.nav a:nth-child(5n+3) { background: var(--wood-dark); }
.nav a:nth-child(5n+4) { background: var(--maroon); }
.nav a:nth-child(5n+5) { background: var(--navy); }

.nav a:hover { filter: brightness(1.25); }

.nav a.is-active {
  box-shadow: inset 0 0 0 2px var(--chalk-white);
  filter: brightness(1.15);
}

/* ---------- Sélecteur de langue ---------- */
.lang-switch {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  gap: 4px;
  background: var(--chalk-white);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 5px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
  transform: rotate(3deg);
}

.lang-switch a {
  font-family: var(--font-varsity);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 5px;
  min-height: 32px;
  display: flex;
  align-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switch a:hover {
  background: #efe8cf;
}

.lang-switch a.is-active {
  background: var(--navy);
  color: var(--paper);
}

@media (max-width: 480px) {
  .lang-switch {
    position: static;
    transform: none;
    justify-content: center;
    width: fit-content;
    margin: 0 auto 16px;
  }
}

/* ---------- Mot de bienvenue ---------- */
.welcome {
  font-size: 0.98rem;
  line-height: 2;
  margin-bottom: 6px;
  color: var(--ink-soft);
}

.welcome strong { color: var(--maroon); }

/* ---------- Compte à rebours : ardoises ---------- */
.countdown-wrap {
  text-align: center;
  margin: 34px 0;
}

.countdown-label {
  font-family: var(--font-chalk);
  font-size: 1rem;
  color: var(--maroon);
  margin-bottom: 12px;
}

.countdown {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.countdown__unit {
  background: var(--chalkboard);
  border: 6px solid var(--wood);
  border-radius: 4px;
  padding: 10px 14px 8px;
  text-align: center;
  min-width: 68px;
}

.countdown__value {
  font-family: var(--font-chalk);
  font-size: 2rem;
  color: var(--chalk-white);
  line-height: 1;
}

.countdown__label {
  font-family: var(--font-varsity);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ---------- Fiche pratique (table façon memo) ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 30px;
  font-size: 0.92rem;
}

.info-table caption {
  font-family: var(--font-varsity);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  color: var(--navy);
  text-align: left;
}

.info-table th,
.info-table td {
  border-bottom: 1px dashed #b8ab7c;
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.info-table th {
  font-family: var(--font-varsity);
  letter-spacing: 0.03em;
  color: var(--maroon);
  width: 34%;
  white-space: nowrap;
}

/* ---------- Ticket "Admit One" ---------- */
.cta-wrap { text-align: center; margin: 24px 0 36px; }

.ticket {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--font-varsity);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  background: var(--gold);
  border: 2px dashed var(--ink);
  padding: 16px 28px;
  min-height: 44px;
  text-decoration: none;
  border-radius: 6px;
  position: relative;
  transform: rotate(-1deg);
  max-width: 100%;
}

.ticket::before,
.ticket::after {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--paper);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.ticket::before { left: -10px; }
.ticket::after { right: -10px; }

.ticket:hover { background: #ffcf4d; }

.ticket__stub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--ink-soft);
  border-left: 1px dashed var(--ink);
  padding-left: 14px;
  white-space: nowrap;
}

/* En dessous de 420px : le ticket s'empile proprement au lieu de se tasser */
@media (max-width: 420px) {
  .ticket {
    flex-direction: column;
    gap: 4px;
    padding: 14px 20px;
  }
  .ticket__stub {
    border-left: none;
    border-top: 1px dashed var(--ink);
    padding-left: 0;
    padding-top: 6px;
    white-space: normal;
  }
}

/* ---------- Programme : fiches façon annuaire ---------- */
.program-title {
  font-family: var(--font-varsity);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: var(--navy);
  margin-bottom: 20px;
}

.program__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  background: var(--chalk-white);
  border: 1px solid #e2dcc4;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  padding: 20px 14px 18px;
  text-align: center;
}

.card:nth-child(even) { transform: rotate(1.2deg); }
.card:nth-child(odd) { transform: rotate(-1deg); }

.card::before {
  /* pastille de scotch en haut */
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 18px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.card__icon { font-size: 1.6rem; margin-bottom: 8px; }

.card__title {
  font-family: var(--font-varsity);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}

.card__text {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.card__tag {
  display: inline-block;
  font-family: var(--font-chalk);
  font-size: 0.85rem;
  color: var(--margin-red);
  transform: rotate(-3deg);
  text-decoration: none;
}

/* ---------- Intégration Spotify ---------- */
.spotify-embed-wrap {
  border: 6px solid var(--wood);
  border-radius: 12px;
  overflow: hidden;
  background: var(--chalkboard);
  padding: 8px;
  margin: 10px 0 34px;
}

.spotify-embed-wrap iframe {
  display: block;
  width: 100%;
  border: none;
  border-radius: 8px;
}

.spotify-missing {
  font-family: var(--font-chalk);
  color: var(--ink-soft);
  text-align: center;
  padding: 30px 14px;
}

/* ---------- Bannière de succès ---------- */
.success-banner {
  font-family: var(--font-chalk);
  font-size: 1rem;
  color: #1f7a3d;
  background: #f1f9f2;
  border: 2px dashed #1f7a3d;
  padding: 12px 18px;
  margin-bottom: 22px;
}

/* ---------- Mur de suggestions de morceaux ---------- */
.songwall-title {
  font-family: var(--font-varsity);
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  color: var(--navy);
  margin: 40px 0 20px;
}

.song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 10px;
}

.song-card {
  position: relative;
  background: var(--chalk-white);
  border: 1px solid #e2dcc4;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  padding: 18px 16px 16px;
}

.song-card:nth-child(3n+1) { transform: rotate(-1deg); }
.song-card:nth-child(3n+2) { transform: rotate(0.8deg); }
.song-card:nth-child(3n+3) { transform: rotate(-0.6deg); }

.song-card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 18px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.song-card__title {
  font-family: var(--font-varsity);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 2px;
}

.song-card__artist {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.song-card__msg {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.song-card__by {
  font-family: var(--font-chalk);
  font-size: 0.82rem;
  color: var(--maroon);
}

.song-card__link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.75rem;
}

.songwall-empty {
  font-family: var(--font-chalk);
  color: var(--ink-soft);
  text-align: center;
  padding: 20px 10px;
}
.admin-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 6px 0 30px;
}

.admin-stats__item {
  font-family: var(--font-varsity);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--chalk-white);
  background: var(--chalkboard);
  border: 4px solid var(--wood);
  border-radius: 6px;
  padding: 10px 16px;
}

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

.admin-toolbar .btn-3d {
  font-size: 0.75rem;
  padding: 10px 16px;
}

.admin-table-wrap {
  overflow-x: auto;
  margin-bottom: 30px;
  border: 1px solid #d9cfa9;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  white-space: nowrap;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #d9cfa9;
  padding: 10px 12px;
  text-align: left;
  white-space: normal;
}

.admin-table th {
  font-family: var(--font-varsity);
  letter-spacing: 0.03em;
  color: var(--navy);
  background: #efe8cf;
  position: sticky;
  top: 0;
}

.admin-table tr:nth-child(even) td { background: #faf7ec; }

.admin-table .yes { color: #1f7a3d; font-weight: bold; }
.admin-table .no { color: var(--margin-red); font-weight: bold; }

.admin-empty {
  text-align: center;
  font-family: var(--font-chalk);
  color: var(--ink-soft);
  padding: 30px 10px;
}
.quiz-intro {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.quiz-error {
  font-family: var(--font-chalk);
  color: var(--margin-red);
  background: #fff3f0;
  border: 2px dashed var(--margin-red);
  padding: 12px 16px;
  margin-bottom: 22px;
  font-size: 1rem;
}

.quiz-scale-legend {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--ink-soft);
  border-bottom: 1px dashed #b8ab7c;
  padding-bottom: 10px;
  margin-bottom: 6px;
}

.quiz-q {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 14px 0;
  border-bottom: 1px dashed #b8ab7c;
}

.quiz-q__num {
  font-family: var(--font-varsity);
  color: var(--navy);
  min-width: 22px;
}

.quiz-q__text {
  flex: 1 1 240px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.quiz-scale {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.bubble {
  position: relative;
  cursor: pointer;
}

.bubble input {
  position: absolute;
  opacity: 0;
  width: 34px;
  height: 34px;
  margin: 0;
  cursor: pointer;
}

.bubble__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-body);
  font-weight: bold;
  font-size: 0.85rem;
  color: var(--ink);
  background: #fffdf6;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bubble input:hover + .bubble__mark {
  border-color: var(--navy);
}

.bubble input:checked + .bubble__mark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.bubble input:focus-visible + .bubble__mark {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

button.ticket {
  appearance: none;
  -webkit-appearance: none;
  border: 2px dashed var(--ink);
  font: inherit;
  cursor: pointer;
}

/* ---------- Formulaire RSVP façon fiche à remplir ---------- */
.form-field {
  margin-bottom: 24px;
}

.form-field label {
  display: block;
  font-family: var(--font-varsity);
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-field .required-mark {
  color: var(--margin-red);
  font-family: var(--font-body);
}

.form-field .hint {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: normal;
  letter-spacing: normal;
  margin-top: 3px;
}

.form-legend {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.form-legend .required-mark {
  color: var(--margin-red);
  font-family: var(--font-body);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fffdf6;
  border: 2px solid var(--ink);
  border-radius: 5px;
  padding: 12px 14px;
  resize: vertical;
}

.form-field input[type="text"]::placeholder,
.form-field input[type="email"]::placeholder,
.form-field input[type="password"]::placeholder,
.form-field textarea::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}

.form-field input[type="text"]:hover,
.form-field input[type="email"]:hover,
.form-field input[type="password"]:hover,
.form-field textarea:hover {
  border-color: var(--navy);
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="password"]:focus,
.form-field textarea:focus {
  outline: 3px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
  background: #ffffff;
}

.form-field textarea { min-height: 90px; }

/* ---------- Auto-complétion de recherche Spotify ---------- */
.autocomplete-wrap {
  position: relative;
}

.autocomplete-list {
  position: absolute;
  z-index: 50;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-top: none;
  max-height: 260px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0;
  box-shadow: 3px 4px 0 rgba(0,0,0,0.15);
}

.autocomplete-list:empty { display: none; }

.autocomplete-item {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px dashed #b8ab7c;
  font-size: 0.88rem;
}

.autocomplete-item:last-child { border-bottom: none; }

.autocomplete-item:hover,
.autocomplete-item.is-active {
  background: var(--gold);
}

.autocomplete-item__title {
  font-family: var(--font-varsity);
  letter-spacing: 0.02em;
  color: var(--ink);
}

.autocomplete-item__artist {
  font-style: italic;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.autocomplete-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* Honeypot anti-spam : invisible pour les humains */
.form-field--trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Choix Oui / Non en grosses bulles */
.choice-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.choice {
  position: relative;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.choice__mark {
  display: block;
  font-family: var(--font-varsity);
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: #fffdf6;
  border: 3px solid var(--ink);
  border-radius: 8px;
  padding: 12px 22px;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.choice input:hover + .choice__mark {
  border-color: var(--navy);
}

.choice input:checked + .choice__mark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.choice input:focus-visible + .choice__mark {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.checkbox-field input {
  width: 24px;
  height: 24px;
  cursor: pointer;
  accent-color: var(--navy);
}

.checkbox-field label {
  font-family: var(--font-varsity);
  font-size: 0.95rem;
  color: var(--navy);
  cursor: pointer;
}

.conditional-fields {
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  margin-bottom: 6px;
}

/* ---------- Confirmation d'envoi ---------- */
.confirmation {
  text-align: center;
  padding: 20px 10px 10px;
}

.confirmation__icon {
  font-size: 2.6rem;
  margin-bottom: 10px;
}

.confirmation__title {
  font-family: var(--font-chalk);
  font-size: 1.6rem;
  color: var(--maroon);
  margin: 0 0 14px;
}

.confirmation__text {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto 26px;
  line-height: 1.8;
}
.result-card {
  position: relative;
  background: var(--chalk-white);
  border: 1px solid #e2dcc4;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  padding: 40px 28px 32px;
  text-align: center;
  margin: 10px 0 30px;
}

.result-card::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 22px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.result-card__emoji {
  font-size: 3.4rem;
  margin-bottom: 10px;
}

.result-card__name {
  font-family: var(--font-chalk);
  font-size: 1.8rem;
  color: var(--maroon);
  margin: 0 0 16px;
}

.result-card__desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 22px;
}

.result-card__looktitle {
  font-family: var(--font-varsity);
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: var(--navy);
  margin: 0 0 8px;
}

.result-card__look {
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto;
}

/* ---------- Pied de page ---------- */
.footer {
  text-align: center;
  padding: 10px 5% 40px;
}

.stamp {
  display: inline-block;
  font-family: var(--font-varsity);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--maroon);
  border: 3px double var(--maroon);
  border-radius: 50%;
  width: 88px;
  height: 88px;
  line-height: 1.2;
  padding-top: 26px;
  transform: rotate(-8deg);
  margin: 0 auto 16px;
  opacity: 0.85;
}

.made-with {
  font-family: var(--font-chalk);
  font-size: 1rem;
  color: var(--navy);
}

/* ---------- Craie qui suit le curseur ---------- */
.sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 999;
  font-size: 0.8rem;
  user-select: none;
  color: var(--chalk-white);
  animation: sparkleFade 0.7s ease-out forwards;
}

@keyframes sparkleFade {
  from { opacity: 0.9; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-14px) scale(0.4); }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .ticker__track {
    animation: none !important;
    padding-left: 0;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .page { transform: none; }
  .card:nth-child(even), .card:nth-child(odd) { transform: none; }
  .song-card:nth-child(3n+1),
  .song-card:nth-child(3n+2),
  .song-card:nth-child(3n+3) { transform: none; }
  .countdown__value { font-size: 1.6rem; }
  .ticker { font-size: 1.1rem; }
}

@media (max-width: 420px) {
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
    padding: 6px 4px;
  }
  .info-table th { border-bottom: none; padding-bottom: 0; }
  .info-table td { border-bottom: 1px dashed #b8ab7c; padding-top: 2px; }
  .countdown { gap: 8px; }
  .countdown__unit { min-width: 58px; padding: 8px 8px 6px; }

  .bubble input,
  .bubble__mark { width: 30px; height: 30px; }
  .quiz-scale { gap: 5px; }
  .quiz-scale-legend { font-size: 0.65rem; }
}
