/* ================================================================
   ALEXANDRE ARNAUD — FEUILLE DE STYLE PRINCIPALE
   ================================================================

   COMMENT MODIFIER LES COULEURS ET POLICES EN 1 SEUL ENDROIT :
   Toutes les valeurs de base sont définies dans :root ci-dessous.
   Modifier une valeur ici la change sur tout le site.
   ================================================================ */

/* ================================================================
   VARIABLES — MODIFIER ICI POUR CHANGER L'APPARENCE GLOBALE
   ================================================================ */
:root {
  /* Couleurs principales */
  --color-bg:         #1A1A1A;   /* Fond principal (noir profond) */
  --color-bg-alt:     #111111;   /* Fond alternatif (sections sombres) */
  --color-bg-card:    #222222;   /* Fond des cartes/articles */
  --color-bordeaux:   #8B2E2E;   /* Bordeaux (accents forts) */
  --color-or:         #C9963A;   /* Or/ambre (titres, ornements) */
  --color-or-light:   #DEB96A;   /* Or clair (hover) */
  --color-text:       #E8DCC8;   /* Texte principal (blanc cassé chaud) */
  --color-text-muted: #9A8F7E;   /* Texte secondaire (gris chaud) */
  --color-border:     #333333;   /* Bordures subtiles */

  /* Typographie */
  --font-display: 'Playfair Display', Georgia, serif;   /* Titres */
  --font-body:    'Lato', 'Helvetica Neue', sans-serif; /* Corps de texte */

  /* Tailles de police */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  2rem;      /* 32px */
  --text-4xl:  2.75rem;   /* 44px */
  --text-5xl:  3.75rem;   /* 60px */

  /* Espacements */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;
  --space-2xl: 9rem;

  /* Largeur max du contenu */
  --container-max: 1100px;

  /* Transitions */
  --transition: 0.3s ease;
  --transition-slow: 0.6s ease;

  /* Navigation hauteur */
  --nav-height: 70px;
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ================================================================
   UTILITAIRES
   ================================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 400;
  color: var(--color-or);
  line-height: 1.15;
  margin-bottom: var(--space-xs);
}

.section-title.centered {
  text-align: center;
}

/* Ornement décoratif sous les titres */
.title-ornament {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-bordeaux), var(--color-or));
  margin-bottom: var(--space-md);
}

.title-ornament.centered {
  margin-left: auto;
  margin-right: auto;
}

/* ================================================================
   NAVIGATION
   ================================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Logo / Nom dans la nav */
.nav-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-or);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.nav-logo:hover {
  color: var(--color-or-light);
}

/* Liens de navigation */
.nav-links {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-or);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-or);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Bouton menu mobile (hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--color-or);
  transition: transform var(--transition), opacity var(--transition);
}

/* Animation du hamburger quand ouvert */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(9.25px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-9.25px) rotate(-45deg);
}

/* ================================================================
   SECTION HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Photo de fond */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.hero:hover .hero-bg {
  transform: scale(1);
}

/* Overlay gradient sombre */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(17, 17, 17, 0.4) 0%,
    rgba(17, 17, 17, 0.65) 60%,
    rgba(17, 17, 17, 0.92) 100%
  );
}

/* Contenu centré */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-md);
  max-width: 700px;
  animation: fadeUp 1.2s ease both;
}

.hero-pretitle {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-or);
  margin-bottom: var(--space-sm);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.hero-title em {
  font-style: italic;
  color: var(--color-or);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

/* Bouton CTA hero */
.hero-cta {
  display: inline-block;
  padding: 0.8em 2.5em;
  border: 1px solid var(--color-or);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-or);
  transition: background var(--transition), color var(--transition);
}

.hero-cta:hover {
  background: var(--color-or);
  color: var(--color-bg);
}

/* Indicateur de défilement */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--color-or));
  animation: scrollPulse 2s ease infinite;
}

/* ================================================================
   SECTION BIOGRAPHIE
   ================================================================ */
.bio-section {
  background: var(--color-bg-alt);
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-xl);
  align-items: start;
}

/* Photo avec décoration */
.bio-image-wrap {
  position: relative;
}

.bio-image-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Cadre décoratif décalé derrière la photo */
.bio-image-deco {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-bordeaux);
  z-index: -1;
  pointer-events: none;
}

.bio-text p {
  margin-bottom: var(--space-sm);
  color: var(--color-text);
  font-size: var(--text-base);
  line-height: 1.8;
}

.bio-text p:last-child {
  margin-bottom: 0;
}

/* ================================================================
   SECTION GROUPES
   ================================================================ */
.groupes-section {
  background: var(--color-bg);
}

/* Carte de groupe — alternance image/texte */
.groupe-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

.groupe-card:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Version inversée : texte à gauche, image à droite */
.groupe-card.reverse {
  direction: rtl;
}

.groupe-card.reverse > * {
  direction: ltr;
}

/* Image du groupe */
.groupe-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform var(--transition-slow);
}

.groupe-image:hover img {
  transform: scale(1.03);
}

/* Overflow caché pour l'effet de zoom */
.groupe-image {
  overflow: hidden;
}

/* Contenu texte du groupe */
.groupe-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--color-or);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.groupe-content p {
  color: var(--color-text);
  font-size: var(--text-base);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

/* Boutons vidéo YouTube */
.groupe-videos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.btn-video {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.5em 1.2em;
  background: transparent;
  border: 1px solid var(--color-bordeaux);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-video svg {
  width: 18px;
  height: 18px;
  fill: var(--color-bordeaux);
  transition: fill var(--transition);
  flex-shrink: 0;
}

.btn-video:hover {
  background: var(--color-bordeaux);
  color: var(--color-text);
  border-color: var(--color-bordeaux);
}

.btn-video:hover svg {
  fill: var(--color-text);
}

/* ================================================================
   SECTION ALEX SWING EVENTS
   ================================================================ */
.ase-section {
  background: var(--color-bg-alt);
}

.ase-intro {
  max-width: 700px;
  margin: 0 auto var(--space-lg);
  text-align: center;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* Grille d'affiches */
.ase-affiches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.ase-affiche {
  overflow: hidden;
  margin: 0;
}

.ase-affiche img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.ase-affiche:hover img {
  transform: scale(1.04);
}

/* Bouton programme Instagram */
.ase-programme {
  text-align: center;
}

.ase-programme p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  font-size: var(--text-base);
}

/* Bouton principal (réutilisable) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 2.2em;
  background: var(--color-bordeaux);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--color-bordeaux);
  transition: background var(--transition), color var(--transition);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-primary:hover {
  background: transparent;
  color: var(--color-bordeaux);
}

/* ================================================================
   SECTION CONTACT
   ================================================================ */
.contact-section {
  background: var(--color-bg);
}

.contact-inner {
  text-align: center;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-style: italic;
  color: var(--color-text);
  margin: var(--space-md) 0 var(--space-lg);
  transition: color var(--transition);
  border-bottom: 1px solid transparent;
}

.contact-email:hover {
  color: var(--color-or);
  border-bottom-color: var(--color-or);
}

/* Icônes réseaux sociaux */
.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-link:hover {
  border-color: var(--color-or);
  color: var(--color-or);
  background: rgba(201, 150, 58, 0.08);
}

/* ================================================================
   PIED DE PAGE
   ================================================================ */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: var(--space-md);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* Animation d'apparition au scroll */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   RESPONSIVE — TABLETTE (max 900px)
   ================================================================ */
@media (max-width: 900px) {

  .bio-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .bio-image-wrap {
    max-width: 420px;
    margin: 0 auto;
  }

  .groupe-card {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .groupe-card.reverse {
    direction: ltr;
  }

  .ase-affiches {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================================================================
   RESPONSIVE — MOBILE (max 640px)
   ================================================================ */
@media (max-width: 640px) {

  :root {
    --space-xl: 4rem;
    --space-lg: 2.5rem;
  }

  /* Navigation mobile */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(17, 17, 17, 0.98);
    flex-direction: column;
    gap: 0;
    padding: var(--space-sm) 0;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-base);
  }

  .nav-links a::after {
    display: none;
  }

  /* Hero mobile */
  .hero-title {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  .hero-tagline {
    font-size: var(--text-sm);
  }

  /* Titres de section */
  .section-title {
    font-size: var(--text-3xl);
  }

  /* Affiches : 1 colonne sur mobile */
  .ase-affiches {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-email {
    font-size: var(--text-xl);
    word-break: break-all;
  }

  .groupe-content h3 {
    font-size: var(--text-2xl);
  }
}
