/* =========================================================
   FESTIVALIDE — FEUILLE DE STYLE DE LA PAGE D'ACCUEIL
   Objectif :
   - centraliser toute la mise en forme
   - éviter les styles directement dans le HTML
   - réutiliser les mêmes classes pour les cartes et boutons
   ========================================================= */


/* =========================================================
   1. VARIABLES DE COULEURS
   Modifier ici les couleurs globales du site.
   ========================================================= */

:root {
  --blood: #c0392b;
  --blood-dark: #7b1c14;
  --gold: #d4a820;
  --gold-light: #f0c940;
  --charcoal: #0d0d0d;
  --mid: #1a1a1a;
  --surface: #222222;
  --text: #e8e8e8;
  --text-muted: #aaaaaa;
  --purple: #7b2d8b;
  --orange: #ff6a00;
}


/* =========================================================
   2. BASE GÉNÉRALE
   Réinitialisation simple et fond global du site.
   ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 50% -10%, rgba(192,57,43,0.16), transparent 34rem),
    radial-gradient(circle at 15% 35%, rgba(123,45,139,0.10), transparent 28rem),
    linear-gradient(180deg, #0d0d0d 0%, #070707 100%);
  color: var(--text);
  font-family: 'Exo 2', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Léger grain visuel en surimpression pour l'ambiance sombre/metal. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

a {
  color: inherit;
}


/* =========================================================
   3. EN-TÊTE ET LOGO
   Zone supérieure avec le logo Festivalide.
   ========================================================= */

.site-header {
  position: relative;
  text-align: center;
  padding: 2.1rem 1rem 1.65rem;
  background:
    radial-gradient(ellipse 75% 55% at 50% 0%, rgba(192,57,43,0.28) 0%, transparent 68%),
    linear-gradient(180deg, #230302 0%, #140101 42%, var(--charcoal) 100%);
  border-bottom: 1px solid rgba(212,168,32,0.18);
  box-shadow: inset 0 -18px 40px rgba(0,0,0,0.45);
  overflow: hidden;
}

/* Trait doré discret sous le logo. */
.site-header::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(760px, 78vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,168,32,0.55), transparent);
  z-index: 1;
}

.logo {
  display: block;
  margin: 0 auto 0.75rem;
  max-width: 90%;
  width: 400px;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 22px rgba(192,57,43,0.26));
}


/* =========================================================
   4. BANDEAUX
   - .alert-banner : avertissement bénévole en bas
   - .ticker-band : message animé en haut
   ========================================================= */

.alert-banner {
  background: linear-gradient(90deg, #120101, var(--blood-dark), #120101);
  border-top: 1px solid rgba(212,168,32,0.20);
  border-bottom: 1px solid rgba(212,168,32,0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 26px rgba(0,0,0,0.32);
  padding: 0.9rem 1.5rem;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
}

.intro-space {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.45rem 1.5rem 0.5rem;
}

.intro-ticker-wrap {
  border: 1px solid rgba(212,168,32,0.18);
  background: linear-gradient(135deg, rgba(212,168,32,0.08), rgba(192,57,43,0.12), rgba(13,13,13,0));
  padding: 0.4rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}

.ticker-band {
  overflow: hidden;
  background: #0F0706;
  color: #fff;
  border-top: 1px solid #c0392b;
  border-bottom: 1px solid #c0392b;
  padding: 0.65rem 0.5rem;
  font-family: 'Cinzel', serif;
  font-size: clamp(0.48rem, 2.4vw, 0.75rem);
  font-weight: 700;
  letter-spacing: clamp(0.04em, 0.8vw, 0.18em);
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
}

.ticker-text {
  display: inline-block;
  animation: festivalide-balancier 8s ease-in-out infinite;
}

@keyframes festivalide-balancier {
  0% { transform: translateX(0); }
  25% { transform: translateX(-6%); }
  50% { transform: translateX(0); }
  75% { transform: translateX(6%); }
  100% { transform: translateX(0); }
}


/* =========================================================
   5. MENU PRINCIPAL
   Boutons de navigation du haut.
   ========================================================= */

.page-nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem 1.5rem;
  background:
    radial-gradient(ellipse 70% 130% at 50% 0%, rgba(192,57,43,0.20), transparent 72%),
    linear-gradient(180deg, #1a0000 0%, #0f0706 56%, #090909 100%);
  border-top: 1px solid rgba(192,57,43,0.28);
  border-bottom: 1px solid rgba(212,168,32,0.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 8px 24px rgba(0,0,0,0.35);
}

.page-nav a {
  background: linear-gradient(180deg, #6b5515 0%, #3a2b08 52%, #1a1200 100%);
  border-color: rgba(212,168,32,0.72);
  color: #fff7d0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -10px 18px rgba(0,0,0,0.28),
    0 0 14px rgba(212,168,32,0.12);
}

.page-nav a:hover {
  background: linear-gradient(180deg, #8a6d1c 0%, #4c390b 55%, #211700 100%);
  border-color: var(--gold-light);
  color: #fff;
  box-shadow: 0 0 20px rgba(212,168,32,0.26);
}


/* =========================================================
   6. BOUTONS RÉUTILISABLES
   .button-link : bouton standard
   .button-link--gold : variante dorée/orange
   ========================================================= */

.page-nav a,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  border: 1px solid var(--blood);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--blood-dark);
  box-shadow: 0 0 14px rgba(192,57,43,0.12);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.button-link:hover {
  background: linear-gradient(180deg, var(--blood), var(--blood-dark));
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(212,168,32,0.20);
}

.button-link--gold {
  background: linear-gradient(180deg, #2a1000, #130600);
  color: #fff;
  border-color: rgba(255,106,0,0.88);
}

.button-link--gold:hover {
  background: linear-gradient(180deg, var(--blood), var(--blood-dark));
  border-color: var(--gold);
}


/* =========================================================
   7. STRUCTURE DE PAGE
   Conteneur principal et séparateurs.
   ========================================================= */

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 2.55rem 1.5rem 3rem;
}

.section-heading {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
  text-shadow: 0 0 14px rgba(212,168,32,0.18);
}

.section-heading::before,
.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
}

.section-heading::before {
  background: linear-gradient(90deg, transparent, var(--blood-dark), rgba(212,168,32,0.32));
}

.section-heading::after {
  background: linear-gradient(90deg, rgba(212,168,32,0.32), var(--blood-dark), transparent);
}

.rune-divider {
  text-align: center;
  color: rgba(212,168,32,0.22);
  font-size: 1rem;
  letter-spacing: 0.5em;
  margin: 2.25rem 0;
  user-select: none;
  text-shadow: 0 0 12px rgba(192,57,43,0.18);
}


/* =========================================================
   8. CARTES RÉUTILISABLES
   Base commune pour toutes les cartes de contenu.
   ========================================================= */

.method-card,
.feature-card,
.looking-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid #333;
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: 0 16px 36px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.025);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

/* Halo discret dans les cartes. */
.method-card::before,
.feature-card::before,
.looking-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.035), transparent 46%);
  pointer-events: none;
}

.method-card:hover,
.feature-card:hover,
.looking-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212,168,32,0.55);
  box-shadow: 0 20px 42px rgba(0,0,0,0.36), 0 0 22px rgba(192,57,43,0.10);
}


/* =========================================================
   9. BLOCS DES 2 MÉTHODES OFFICIELLES
   Cartes principales plus larges.
   ========================================================= */

.methods-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.method-card {
  background: linear-gradient(135deg, rgba(34,34,34,0.96), rgba(12,12,12,0.98));
  border-color: #3a2520;
  border-top: 3px solid var(--blood);
}

.method-number {
  font-family: 'Metal Mania', cursive;
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.78;
  text-shadow: 0 0 16px rgba(212,168,32,0.20);
}

.method-card h2 {
  font-family: 'Cinzel', serif;
  font-size: 0.98rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.7rem;
}

.method-card ul,
.teaser-list {
  list-style: none;
  padding: 0;
}

.method-card li,
.teaser-list li {
  font-size: 0.88rem;
  padding: 0.35rem 0 0.35rem 1.2rem;
  position: relative;
  color: var(--text-muted);
  border-bottom: 1px solid #2a2a2a;
}

.method-card li:last-child,
.teaser-list li:last-child {
  border-bottom: none;
}

.method-card li::before,
.teaser-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--blood);
  font-weight: bold;
}

.method-card strong {
  color: var(--text);
  font-weight: 600;
}

.code-pill {
  display: inline-block;
  background: #111;
  border: 1px solid #444;
  padding: 2px 8px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  color: var(--gold-light);
  word-break: break-all;
}

.warning-line {
  margin-top: 1rem;
  border-left: 2px solid var(--blood);
  padding-left: 0.8rem;
  font-size: 0.8rem;
  color: #ff8a7f;
  font-weight: 600;
}


/* =========================================================
   10. MODULES D'ACCÈS RAPIDE
   Cartes plus étroites que les 2 méthodes officielles.
   ========================================================= */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.45rem;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.feature-card {
  border-left: 5px solid var(--orange);
  background: linear-gradient(135deg, rgba(20,11,8,0.98), rgba(9,9,16,0.98));
  border-color: rgba(255,106,0,0.30);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  min-height: 100%;
}

/* Variante violette : utilisée pour FAQ et Contact. */
.feature-card--purple {
  border-left-color: var(--purple);
  background: linear-gradient(135deg, rgba(21,8,21,0.98), rgba(9,9,16,0.98));
}

/* Variante rouge : utilisée pour le Quiz. */
.feature-card--blood {
  border-left-color: var(--blood);
  background: linear-gradient(135deg, rgba(23,4,4,0.98), rgba(9,9,16,0.98));
}

.feature-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.feature-icon svg {
  filter: drop-shadow(0 0 10px rgba(192,57,43,0.25));
}

.feature-kicker {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.2rem;
}

.feature-text,
.teaser-list li,
.looking-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.feature-actions {
  margin-top: auto;
  padding-top: 0.5rem;
}

.teaser-list {
  width: 100%;
  max-width: 520px;
}

.teaser-list li {
  text-align: left;
  background: rgba(0,0,0,0.14);
  border-bottom-color: rgba(255,255,255,0.05);
  border-radius: 3px;
  padding-right: 0.6rem;
}


/* =========================================================
   11. MODULE SÉANCE DE RATTRAPAGE
   Carte spéciale mise en avant.
   ========================================================= */

.looking-card {
  background: linear-gradient(135deg, #1a0a1a, #110011);
  border-color: var(--purple);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  margin-bottom: 0;
}

.looking-card--featured {
  border: 2px solid var(--gold);
  background:
    radial-gradient(circle at 50% 0%, rgba(212,168,32,0.16), transparent 50%),
    linear-gradient(135deg, #1a1200, #090909);
  box-shadow: 0 0 26px rgba(212,168,32,0.12), 0 16px 36px rgba(0,0,0,0.36);
}

.logo-small {
  display: block;
  max-width: 180px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  filter: drop-shadow(0 0 18px rgba(212,168,32,0.18));
}

.looking-text {
  max-width: 360px;
  width: 100%;
  line-height: 1.8;
}

.looking-label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.looking-link {
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: underline;
}


/* =========================================================
   12. BOUTON FLOTTANT
   Raccourci permanent vers les vérificateurs.
   ========================================================= */

.floating-checker {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(192,57,43,0.4);
  border-radius: 50px;
}

.floating-checker .button-link {
  background: linear-gradient(180deg, var(--blood), var(--blood-dark));
  border-color: var(--gold);
  box-shadow: 0 0 22px rgba(192,57,43,0.34);
}


/* =========================================================
   13. FOOTER
   Pied de page final.
   ========================================================= */

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(212,168,32,0.10);
  background: linear-gradient(180deg, #090909, #050505);
  font-size: 0.75rem;
  color: #444;
  letter-spacing: 0.1em;
}

footer span {
  color: var(--blood-dark);
}


/* =========================================================
   14. RESPONSIVE
   Ajustements pour tablettes et mobiles.
   ========================================================= */

@media (max-width: 720px) {
  .methods-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 2rem 1.25rem 2.5rem;
  }

  .intro-space {
    padding: 1rem 1.25rem 0.35rem;
  }

  .page-nav a {
    flex: 1 1 auto;
  }

  .floating-checker {
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 500px) {
  .alert-banner {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
  }

  .section-heading {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
  }

  .section-heading::before {
    display: none;
  }

  .page-nav {
    gap: 0.55rem;
    padding: 0.85rem 0.9rem;
  }

  .page-nav a {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }

  .floating-checker {
    width: auto;
  }

  .floating-checker .button-link {
    width: auto;
  }
}
