/* ===== POLICES (préconnexion gérée dans le <head>) ===== */

:root {
  --bg-dark: #000000;
  --bg-light: #111111;
  --bg-card: #161616;
  --accent-green: #00ff88;
  --accent-red: #ff4040;
  --text-light: #f5f5f5;
  --text-muted: #cfcfcf;
  --max-width: 1200px;
  --radius: 22px;
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Évite que les titres soient masqués sous le header sticky
     lorsqu'on navigue vers une ancre (#...). */
  scroll-padding-top: 90px;
}

body {
  background: linear-gradient(280deg, #032a18 0%, #0a0a0a 100%);
  color: var(--text-light);
  font-family: 'DM Sans', sans-serif;
  text-align: center;
  line-height: 1.6;
  min-width: 320px;
}

img { max-width: 100%; }

/* LIEN D'ÉVITEMENT (accessibilité) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-green);
  color: #000;
  padding: 0.75rem 1.25rem;
  font-weight: 800;
  border-radius: 0 0 12px 0;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
}

/* LINKS */
a { color: inherit; text-decoration: none; }

/* HEADER */
header {
  background: linear-gradient(280deg, #032a18 0%, #000000 100%);
  border-bottom: 4px solid var(--accent-green);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.4);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.3rem 0;
  transition: transform 0.3s ease;
}

header.header-hidden {
  transform: translateY(-100%);
}

.nav-container {
  max-width: var(--max-width);
  margin: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 1rem;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo img {
  height: 48px;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 0 15px var(--accent-green);
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-green);
}

/* NAVIGATION */
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  justify-content: center;
}

.nav-toggle {
  display: none;
  border: 2px solid var(--accent-green);
  background: transparent;
  color: var(--accent-green);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-size: 1.2rem;
  cursor: pointer;
}

nav a {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  padding: 0.3rem 0.4rem;
  transition: 0.3s ease;
}

nav a:hover {
  color: var(--accent-green);
}

nav a[aria-current="page"] {
  color: var(--accent-green);
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-green));
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a[aria-current="page"]::after {
  width: 100%;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent-red);
  outline-offset: 3px;
}

/* MAIN */
main {
  max-width: var(--max-width);
  margin: auto;
  padding: clamp(2rem, 5vw, 4rem) 1rem;
}

section {
  max-width: var(--max-width);
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

/* HERO */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem;
  margin-bottom: 3rem;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(0, 0, 0, 0.75), rgba(3, 42, 24, 0.85)),
    radial-gradient(circle at 30% 20%, rgba(0, 255, 136, 0.25), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(255, 64, 64, 0.2), transparent 55%),
    var(--bg-dark);
  box-shadow: 0 0 60px rgba(0, 255, 136, 0.25);
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--text-light);
}

.hero h1 span {
  background: linear-gradient(90deg, var(--accent-green), #7dffc4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Logo affiché dans le hero */
.hero-logo {
  width: clamp(90px, 16vw, 150px);
  height: auto;
  border-radius: 24px;
  box-shadow: 0 0 45px rgba(0, 255, 136, 0.5);
  margin-bottom: 0.5rem;
  animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero p {
  max-width: 720px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* TITRES */
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2.4rem;
  color: var(--accent-green);
}

section > p {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* TEXTES */
p, li {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 1rem;
}

ul {
  list-style: none;
}

/* BOUTONS */
.btn {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 1rem auto;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 0 30px var(--accent-red);
}

.btn-secondary {
  background: var(--accent-green);
  color: #000;
  box-shadow: 0 0 30px var(--accent-green);
}

.btn:hover {
  transform: translateY(-3px) scale(1.04);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-link {
  display: inline-block;
  width: auto;
  margin: 0.5rem;
}

/* STATS / CHIFFRES CLÉS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat {
  padding: 1.5rem 0.75rem;
  background: var(--bg-light);
  border-left: 3px solid var(--accent-green);
  border-radius: 12px;
}

.stat strong {
  display: block;
  color: var(--accent-green);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.stat span {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: block;
}

/* CARTES */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  border-top: 4px solid var(--accent-green);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
  text-align: center;
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.35);
}

.card h2,
.card h3 {
  font-size: 1.3rem;
  color: var(--accent-green);
  margin-bottom: 1rem;
  font-family: 'Space Grotesk', sans-serif;
}

.card p {
  font-size: 1rem;
  color: var(--text-light);
  flex-grow: 1;
}

/* GALERIE */
#galerie {
  margin-top: 3rem;
}

.galerie-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
}

.galerie-item {
  background: var(--bg-light);
  padding: 1.6rem;
  border-radius: var(--radius);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.4);
  transition: 0.3s ease;
  text-align: center;
}

.galerie-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.4);
}

.galerie-item img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 12px;
}

.partner-placeholder {
  display: grid;
  place-items: center;
  height: 200px;
  border: 2px dashed var(--accent-green);
  border-radius: 12px;
  color: var(--accent-green);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.galerie-caption {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
}

/* FORMULAIRE */
form {
  display: grid;
  gap: 1.6rem;
  max-width: 700px;
  margin: auto;
  text-align: left;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-green);
}

input, textarea {
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 3px solid var(--accent-green);
  background: var(--bg-light);
  color: var(--text-light);
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
}

input:invalid:not(:placeholder-shown) {
  border-color: var(--accent-red);
}

textarea {
  min-height: 200px;
  resize: vertical;
}

/* NEWSLETTER */
.newsletter {
  background: var(--bg-light);
  border: 2px solid var(--accent-green);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
}

.newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 640px;
}

.newsletter input[type="email"] {
  flex: 1 1 260px;
  border-radius: 999px;
}

.newsletter .btn {
  margin: 0;
  flex: 0 0 auto;
  width: auto;
}

/* ENCART CTA */
.cta-box {
  background: linear-gradient(135deg, rgba(255, 64, 64, 0.15), rgba(0, 255, 136, 0.15));
  border: 2px solid var(--accent-green);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
}

/* INFO LIST (contact) */
.contact-info {
  margin-top: 2.5rem;
  display: grid;
  gap: 0.5rem;
}
.contact-info p {
  margin: 0;
}

/* FOOTER */
footer {
  padding: 3rem 1.6rem;
  font-size: 1rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(0, 255, 136, 0.25);
  background: rgba(0, 0, 0, 0.3);
}

footer span {
  color: var(--accent-green);
  font-weight: 900;
  letter-spacing: 0.16em;
}

.footer-content {
  max-width: var(--max-width);
  margin: auto;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}

.footer-links a {
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer-content a:hover {
  color: var(--accent-green);
}

.footer-social {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-social .icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: normal;
  font-weight: 400;
}

/* RESPONSIVE */
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .galerie-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .btn { width: auto; }
  .footer-content { flex-direction: row; justify-content: space-between; }
}

@media (max-width: 760px) {
  .nav-container {
    flex-wrap: wrap;
    padding: 0.4rem 0.75rem;
  }

  .logo img {
    height: 42px;
  }

  .logo-text {
    font-size: 0.72rem;
  }

  .nav-toggle { display: block; }

  nav { display: none; width: 100%; }

  nav.is-open { display: block; }

  nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding-top: 0.5rem;
  }

  nav a {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    padding: 0.55rem 0.3rem;
  }

  nav a::after { display: none; }

  .hero { min-height: auto; }

  .card,
  .galerie-item {
    padding: 1.25rem;
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* BOUTON RETOUR EN HAUT */
.scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent-green);
  background: var(--bg-light);
  color: var(--accent-green);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--accent-green);
  color: #000;
}

/* FAQ */
.faq {
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}

.faq details {
  background: var(--bg-light);
  border-left: 3px solid var(--accent-green);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent-green);
  font-family: 'Space Grotesk', sans-serif;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::before {
  content: "＋ ";
  color: var(--accent-red);
  font-weight: 900;
}

.faq details[open] summary::before {
  content: "－ ";
}

.faq details p {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* ANIMATIONS AU DÉFILEMENT
   Le contenu reste visible par défaut : on ne le masque que si
   le JavaScript est actif (classe .js ajoutée sur <html>), pour
   éviter tout contenu invisible si le JS échoue ou est désactivé. */
.reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* BARRE DE DÉFILEMENT PERSONNALISÉE */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent-green), #046b3d);
  border-radius: 999px;
  border: 3px solid #0a0a0a;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-green); }

/* SÉLECTION DE TEXTE */
::selection { background: var(--accent-green); color: #000; }

/* IMPRESSION */
@media print {
  header, footer, .nav-toggle, .hero-actions, .newsletter, .scroll-top { display: none; }
  body { background: #fff; color: #000; }
}

/* =========================================================
   AMÉLIORATIONS – composants additionnels
   (badge hero, barre de confiance, icônes de carte,
   citation, équipe, étapes, paliers de don)
   ========================================================= */

/* Badge en haut du hero */
.hero-badge {
  display: inline-block;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 136, 0.5);
  background: rgba(0, 255, 136, 0.08);
  color: var(--accent-green);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Liste de réassurance sous les boutons du hero */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0;
}

.hero-trust li {
  position: relative;
  padding-left: 1.4rem;
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.hero-trust li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: 900;
}

/* Chapô d'introduction de section */
.mission-lead {
  max-width: 780px;
  margin: 0 auto 2.4rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-light);
}

/* Icônes illustratives dans les cartes */
.card-icon {
  display: block;
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 0.9rem;
}

/* Citation / encart de confiance */
.quote-block {
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 2.4rem 1.6rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.08), rgba(255, 64, 64, 0.08));
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.quote-block blockquote {
  margin: 0;
}

.quote-block p {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-style: italic;
  color: var(--text-light);
  font-weight: 500;
}

.quote-block footer {
  margin-top: 1rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent-green);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* Grille équipe */
.team {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.team-member {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.2rem 1.4rem;
  background: var(--bg-card);
  border-left: 3px solid var(--accent-green);
  border-radius: 12px;
  text-align: left;
}

.team-role {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-red);
}

.team-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
}

/* Étapes numérotées (process) */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  max-width: 920px;
  margin: 0 auto;
  padding: 0;
  text-align: left;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.4rem 1.5rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 255, 136, 0.2);
  margin: 0;
}

.steps h3 {
  margin: 0 0 0.3rem;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--accent-green);
  font-size: 1.15rem;
}

.steps p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
}

.step-num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-green);
  color: #000;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
}

/* Paliers de don */
.don-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  max-width: 900px;
  margin: 0 auto;
}

.don-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.8rem 1.2rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border-top: 4px solid var(--accent-green);
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.15);
  transition: 0.3s ease;
}

.don-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 34px rgba(0, 255, 136, 0.3);
}

.don-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--accent-green);
}

.don-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Responsive pour les nouvelles grilles */
@media (min-width: 700px) {
  .team {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps li {
    flex-direction: column;
    align-items: flex-start;
  }
  .don-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Focus renforcé sur les liens de navigation (accessibilité) */
nav a:focus-visible {
  color: var(--accent-green);
}
