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

body {
  font-family: 'Inter', sans-serif;
  background-color: #0b0c10;
  color: #f1f1f1;
  line-height: 1.5;
}

/* ==========================================================================
   HEADER & NAVIGATION GLOBALE (PLEINE LARGEUR, TOUT GROUPÉ À GAUCHE)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(11, 12, 16, 0.92);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-container {
  width: 100%;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0.75rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5rem;
}

/* Bloc gauche : Burger + Logo + Liens calés à gauche */
.header-left {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.menu-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 17px;
  padding: 0;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #fff;
  border-radius: 2px;
  transition: background-color 0.2s;
}

.menu-toggle:hover span {
  background-color: #ff8a00;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: 65px;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: 0.5rem;
}

.nav a {
  color: #c5c6c7;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav a:hover {
  color: #ff8a00;
}

/* Bloc droit : Réseaux & Don repoussés à l'autre extrémité */
.actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Réseaux sociaux & Icônes SVG */
.socials {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.2rem;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, filter 0.2s;
}

.socials a:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

.social-icon {
  width: 22px;
  height: 22px;
}

.social-icon.instagram {
  fill: #C13584;
}

.social-icon.tiktok {
  fill: #ffffff;
}

.social-icon.facebook {
  fill: #1877F2;
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: transform 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(90deg, #ff8a00, #e52e71);
  color: #fff;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   VOLET LATÉRAL GAUCHE (STYLE PLAYING FOR CHANGE)
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: #090a0d;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
}

.side-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 2.2rem;
}

.drawer-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.2rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  flex: 1;
}

.drawer-nav a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color 0.2s, transform 0.2s;
}

.drawer-nav a:hover {
  color: #ff8a00;
  transform: translateX(6px);
}

.drawer-socials {
  display: flex;
  gap: 1.2rem;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-socials a {
  color: #888;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}

.drawer-socials a:hover {
  color: #ff8a00;
}

.drawer-footer {
  padding-top: 1rem;
}

.drawer-btn-donate {
  display: block;
  text-align: center;
  background: linear-gradient(90deg, #ff8a00, #e52e71);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.85rem;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.drawer-btn-donate:hover {
  opacity: 0.9;
}

/* ==========================================================================
   HERO SECTION (BUREAU)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2.5rem 2rem;
  background: #000 url('../assets/hero.jpg') center 10%/cover no-repeat;
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  max-width: 750px;
  z-index: 10;
}

.hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.hero-content p {
  font-size: 1.1rem;
  color: #ddd;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-large {
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  text-align: center;
  padding: 1.2rem;
  font-size: 0.8rem;
  color: #777;
  background: #070709;
}

/* ==========================================================================
   ADAPTATION MOBILE & TABLETTE (CORRECTIF RESPONSIVE PROPRE)
   ========================================================================== */
@media (max-width: 900px) {
  .header-left .nav {
    display: none;
  }
}

@media (max-width: 850px) {

  /* 1. HERO MOBILE : Plein écran réel, sans bande noire, avec cadrage en haut */
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    padding: 6rem 1.5rem 3rem !important;
    background: linear-gradient(180deg, rgba(11, 12, 16, 0.2) 0%, rgba(11, 12, 16, 0.65) 65%, rgba(11, 12, 16, 0.95) 100%),
      url('../assets/hero.jpg') !important;
    background-size: cover !important;
    background-position: 25% top !important;
    background-repeat: no-repeat !important;
  }

  .hero-content {
    max-width: 100%;
    margin-top: auto;
  }

  .hero-content h1 {
    font-size: 1.85rem;
    line-height: 1.15;
    margin-bottom: 0.85rem;
  }

  .hero-content p {
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 1.6rem;
    color: #e5e5e5;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }

  /* 2. HEADER MOBILE : Aéré, réseaux masqués du bandeau, bouton intact */
  .header-container {
    padding: 0.65rem 1.25rem !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
  }

  .header-left {
    gap: 1rem;
  }

  .logo {
    height: 44px;
  }

  /* Masque les 3 icônes réseaux du header pour éviter tout écrasement */
  .actions .socials {
    display: none !important;
  }

  .actions {
    margin-left: auto;
  }

  .btn-header-donate {
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
  }

  /* ==========================================================================
   NAVIGATION & ACCESSIBILITÉ BOUTON BURGER
   ========================================================================== */

  .header {
    z-index: 1000;
  }

  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    background: transparent;
    border: none;
    -webkit-tap-highlight-color: transparent;
  }

  /* Empêche les barres internes de bloquer la propagation du clic */
  .menu-toggle span {
    pointer-events: none;
  }

  /* ==========================================================================
   DÉGRADÉS DU SLOGAN HERO
   ========================================================================== */

  .gradient-blue {
    background: linear-gradient(90deg, #38bdf8, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
  }

  .gradient-sunset {
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
  }

  /* --- BOUTON RETOUR EN HAUT (BACK TO TOP) --- */
  html {
    scroll-behavior: smooth;
  }

  .back-to-top {
    position: fixed !important;
    bottom: 30px !important;
    right: 25px !important;
    left: auto !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    z-index: 99999 !important;
    backdrop-filter: blur(10px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(15px) !important;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease, border-color 0.2s ease !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5) !important;
  }

  .back-to-top.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  .back-to-top:hover {
    background: rgba(30, 41, 59, 0.95) !important;
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
    transform: translateY(-3px) !important;
  }
}