/* =========================================================
   PRIX PHILOXENIA — Landing page
   Vanilla HTML / CSS / JS
   ========================================================= */

/* ---------- Police d'affichage (locale) ---------- */
@font-face {
  font-family: "Anton";
  src: url("../assets/fonts/Anton-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables ---------- */
:root {
  --black: #0a0a0a;
  --yellow: #f5c518;
  --orange: #d95627;
  --white: #ffffff;

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Barlow", -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--white);
  background: var(--black);
  overflow-x: hidden;
  /* Dégradé global : noir à gauche -> orange à droite (le noir domine, cf. bg-gradient.png) */
  background-image: linear-gradient(90deg, var(--black) 0%, var(--black) 55%, var(--orange) 100%);
  background-attachment: fixed;
}

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

a { text-decoration: none; color: inherit; }

.container {
  width: 100%;
  padding-inline: 40px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 1.25rem;
  line-height: 1;
  padding: 16px 28px;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-light:hover { background: transparent; color: var(--yellow); border-color: var(--yellow); }

.btn-yellow { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.btn-yellow:hover { background: transparent; color: var(--yellow); }

.btn-lg { font-size: 1.6rem; padding: 20px 40px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: relative;
  z-index: 2;
  padding: 22px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo img { height: 96px; width: auto; }

.nav { display: flex; gap: 18px; }

/* Burger (masqué en desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 28px;
  height: 3px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
/* Burger -> croix quand le menu est ouvert */
.nav-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 60px;
}
/* Mégaphone en fond : en haut à droite, agrandi, retourné à 180°,
   collé juste sous le header (le cadrage compense le halo transparent
   du visuel pour que la main apparaisse dès le haut de la section) */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: -6%;
  width: 55%;
  height: 120%;
  background-image: url("../assets/img/megaphone.png");
  background-repeat: no-repeat;
  background-position: top right;
  background-size: auto 160%;
  transform: rotate(180deg);
  z-index: 0;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; align-items: center; }
.hero-copy { max-width: 640px; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--yellow);
  text-transform: uppercase;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 1px;
  margin: 0;
}

/* =========================================================
   TEASER
   ========================================================= */
.teaser { padding: 20px 0 70px; }
.teaser-frame {
  position: relative;
  aspect-ratio: 16 / 7;
  border: 3px solid var(--yellow);
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.teaser-frame iframe,
.teaser-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.teaser-label {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--yellow);
  opacity: 0.9;
}

/* =========================================================
   PITCH / CTA
   ========================================================= */
.pitch { padding: 40px 0 70px; }
.pitch-inner {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: center;
  gap: 20px;
}
.pitch-visual { justify-self: start; margin-left: -40px; } /* colle l'image au bord réel du site, au-delà du gutter du .container */
.pitch-visual img { max-height: 420px; width: auto; }

.pitch-copy { text-align: center; }

.badge {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.4rem, 2.6vw, 2.3rem);
  color: var(--black);
  background: var(--yellow);
  padding: 10px 22px;
  margin-bottom: 22px;
}
.pitch-text {
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 20px;
}
.pitch-prize {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--yellow);
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  line-height: 1;
  margin: 0 0 30px;
}
.pitch-actions { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }

/* =========================================================
   STATS
   ========================================================= */
.stats {
  border-top: 2px solid var(--yellow);
  border-bottom: 2px solid var(--yellow);
  padding: 46px 0;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  padding: 0 40px;
  text-align: center;
}
.stat + .stat { border-left: 2px solid var(--yellow); }
.stat-value {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--yellow);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  margin-bottom: 14px;
}
.stat-label {
  display: block;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.2;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { position: relative; overflow: hidden; padding: 70px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  padding-bottom: 80px;
}
.footer-logo img { height: 90px; width: auto; }
.footer-slogan {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--yellow);
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  line-height: 1.02;
  margin: 0;
}
/* Mégaphone du footer : agrandi, retourné gauche-droite, collé à la base de la page */
.footer-visual {
  position: absolute;
  right: 40px;
  bottom: 0;
}
.footer-visual img {
  max-height: 340px;
  width: auto;
  transform: scaleX(-1);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .container { padding-inline: 24px; }

  /* Header : bascule en menu burger */
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 20px 24px 26px;
    background: rgba(6, 6, 6, 0.97);
    border-top: 2px solid var(--yellow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }

  /* Hero empilé */
  .hero-inner { text-align: center; }
  .hero-copy { max-width: none; }
  .hero::before { width: 100%; height: 70%; opacity: 0.7; }

  /* Pitch empilé */
  .pitch-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .pitch-visual { display: none; } /* illustration décorative masquée en mobile */

  /* Stats en colonne */
  .stats-inner { grid-template-columns: 1fr; gap: 34px; }
  .stat { padding: 0 16px; }
  .stat + .stat { border-left: 0; border-top: 2px solid var(--yellow); padding-top: 34px; }

  /* Footer empilé */
  .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 24px; padding-bottom: 260px; }
  .footer-visual { right: auto; left: 50%; transform: translateX(-50%); }
  .footer-visual img { max-height: 220px; }
}

@media (max-width: 480px) {
  .btn { font-size: 1.1rem; padding: 14px 20px; }
  .btn-lg { font-size: 1.25rem; padding: 16px 26px; }
  .teaser-frame { aspect-ratio: 16 / 10; }
}
