/* ============================================================
   AS Droit de Rêver — Feuille de style globale
   Palette officielle : Bleu marine #1a1f6e | Or #f5b800
   ============================================================ */

/* ---- Variables ---- */
:root {
  --navy:          #2d3470;
  --navy-dark:     #232a5c;
  --navy-mid:      #3a4283;
  --navy-light:    #4750a0;
  --gold:          #c9a449;
  --gold-dark:     #a8853a;
  --gold-light:    #d6bb6e;
  --gold-pale:     #faf6ea;
  --white:         #ffffff;
  --gray-light:    #f4f5f9;
  --gray-mid:      #9ca3af;
  --gray-dark:     #374151;
  --text:          #2a2e4d;
  --shadow:        0 4px 24px rgba(45,52,112,0.08);
  --shadow-lg:     0 8px 40px rgba(45,52,112,0.14);
  --radius:        12px;
  --radius-sm:     8px;
  --transition:    0.3s ease;
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Nunito', 'Segoe UI', sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--gray-light);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ---- Typographie ---- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem,   5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

/* ---- Utilitaires ---- */
.container   { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section     { padding: 5rem 0; }
.section-alt { background: var(--white); }
.text-center { text-align: center; }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--navy);
}
.section-title span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.4rem;
}

/* Badge */
.badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
}

/* ---- Boutons ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,164,73,0.35);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45,52,112,0.22);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.asdr-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(45,52,112,0.25);
  border-bottom: 3px solid var(--gold);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  background: var(--gold);
}
.nav-brand-text strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.1;
}
.nav-brand-text span {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav-link {
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  font-family: var(--font-body);
}
.nav-link:hover {
  color: var(--gold);
  background: rgba(201,164,73,0.08);
}
.nav-link.nav-active {
  color: var(--navy);
  background: var(--gold);
  border-radius: 999px;
}

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}
.nav-burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(45,52,112,0.75) 0%,
    rgba(45,52,112,0.50) 60%,
    rgba(0,0,0,0.45) 100%
  );
}
/* Bande décorative dorée en bas du hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
  max-width: 820px;
}
.hero-content h1 {
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 2rem;
  opacity: 0.92;
}
.hero-sm { height: 52vh; min-height: 300px; }
.hero-lg { height: 88vh; min-height: 520px; }

/* ============================================================
   BARRE DE STATS
   ============================================================ */
.stats-bar {
  background: linear-gradient(90deg, var(--navy-dark), var(--navy-mid));
  padding: 2.5rem 0;
  border-bottom: 3px solid var(--gold);
}
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-num {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--gold);
  font-family: var(--font-display);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card-body  { padding: 1.5rem; }
.card-img   { width: 100%; height: 200px; object-fit: cover; }
.card-title { color: var(--navy); margin-bottom: 0.5rem; }

/* Accent doré en haut de card */
.card-accent {
  border-top: 4px solid var(--gold);
}

/* Grilles */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2rem; }

/* ============================================================
   FORMULAIRES
   ============================================================ */
.form-group  { margin-bottom: 1.25rem; }
.form-label  { display: block; font-weight: 700; margin-bottom: 0.4rem; font-size: 0.9rem; color: var(--navy); }
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #d1d5db;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,164,73,0.15);
}
textarea.form-control { resize: vertical; min-height: 130px; }

/* ============================================================
   FOOTER
   ============================================================ */
.asdr-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.82);
  padding: 4rem 0 0;
  border-top: 4px solid var(--gold);
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
.footer-col h3 {
  font-family: var(--font-display);
  color: var(--gold);
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}
.footer-col p     { margin-bottom: 0.55rem; font-size: 0.95rem; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  font-size: 0.95rem;
  transition: color var(--transition);
  color: rgba(255,255,255,0.75);
}
.footer-col ul li a:hover { color: var(--gold); padding-left: 4px; }

/* Logo footer */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-logo img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.footer-logo strong {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.05rem;
}

/* Réseaux sociaux */
.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.footer-socials a:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.footer-socials svg { width: 18px; height: 18px; }

.footer-bottom {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   ALERTES
   ============================================================ */
.alert         { padding: 1rem 1.5rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-weight: 600; }
.alert-success { background: #fef9e7; color: #7a5a00; border-left: 4px solid var(--gold); }
.alert-error   { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }

/* ============================================================
   SECTIONS SPÉCIALES
   ============================================================ */
/* Section CTA */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 5rem 0;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '⚽';
  position: absolute;
  font-size: 18rem;
  opacity: 0.04;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Divider décoratif doré */
.gold-divider {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border: none;
  margin: 0;
}

/* Quick links */
.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border-top: 4px solid transparent;
  color: var(--text);
}
.quick-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--gold);
}
.quick-link .ql-icon { font-size: 2.5rem; }
.quick-link h3       { color: var(--navy); font-size: 1rem; margin-bottom: 0; }
.quick-link p        { color: var(--gray-mid); font-size: 0.84rem; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in   { animation: fadeInUp 0.6s ease both; }
.fade-in-1 { animation-delay: 0.1s; }
.fade-in-2 { animation-delay: 0.25s; }
.fade-in-3 { animation-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-container { grid-template-columns: 1fr 1fr; }
  .footer-col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }

  /* Nav mobile */
  .nav-burger { display: flex; }
  .nav-links {
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.2rem;
    display: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    border-top: 2px solid var(--gold);
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 0.65rem 0.75rem; font-size: 1rem; width: 100%; border-radius: var(--radius-sm); }
  .nav-link.nav-active { border-radius: var(--radius-sm); }

  /* Hero */
  .hero-lg { height: 75vh; }
  .hero-sm { height: 45vh; }

  /* Footer */
  .footer-container { grid-template-columns: 1fr; gap: 2rem; }
  .footer-col:first-child { grid-column: auto; }

  /* Grid responsive */
  .grid-3, .grid-2 { grid-template-columns: 1fr; }

  /* 2 colonnes sur tablet */
  @media (min-width: 480px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
  }
}
