html {
  color-scheme: only light;
}

:root {
  --color-primary: #002147;   /* bleu foncé */
  --color-accent: #CFA83A;    /* doré ocre */
  --color-bg: #f9f9f9;
  --text-main: #333;
  --text-light: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--color-bg);
  color: var(--text-main);
}

/* Layout de base */
header {
  background: #f3f4f7;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 3px rgba(0,0,0,0.08);
  overflow: visible;
}

header::after {
  content: none;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 110px;            /* hauteur fixe pour éviter que ça “gonfle” */
}

/* Logo / marque */
.brand-link {
  display: flex;
  align-items: center;
  padding: 0.7rem 0.6rem;  /* léger padding vertical */
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 90px;
  width: auto;
  display: block;
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Nav desktop */
nav {
  display: flex;
  align-items: center;
  gap: 1.2rem; /* plus serré = moins de risques de wrap */
}

nav a {
  color: var(--color-primary);
  text-decoration: none;
    margin-left: 0.3rem;
  font-size: 0.95rem;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.2s ease-out;
}

nav a:hover::after {
  width: 100%;
}

/* Conteneur bouton don header (desktop) */
.header-actions {
  display: flex;
  align-items: center;
  margin-left: 1.5rem;
}

/* Bouton “Soutenir le projet” dans le header (desktop) */
.donation-header-btn {
  background: #fffdf7;
  color: #d8a441;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;         /* empêche le retour à la ligne */
  margin-left: 1rem;
  font-size: 1rem;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  border: 1px solid #f0d79d;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.donation-header-btn:hover {
  background: #ffe9b8;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}

/* lien don spécial dans le menu mobile : caché en desktop */
.donation-link-mobile {
  display: none;
}

/* Hero / sections */

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.hero {
  background: linear-gradient(135deg, rgba(0,33,71,0.96), rgba(15,76,129,0.96));
  color: var(--text-light);
  border-radius: 1.2rem;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url('images/route.png') right 30px bottom 10px no-repeat,
    url('images/etoiles.png') right 120px top 40px no-repeat;
  background-size:
    480px auto,
    220px auto;
  opacity: 0.45;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-top: 0;
  font-size: clamp(2rem, 2.6vw + 1.4rem, 2.8rem);
}

.hero p {
  max-width: 680px;
  font-size: 1rem;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #1e1a10;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 24px rgba(0,0,0,0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,0.6);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
}
.contact-form button[type="submit"] {
  display: block;
  margin: 1.5rem auto 0 auto; /* centre horizontalement */
}
/* Blocs de contenu */

.section {
  margin-bottom: 2.5rem;
}

.section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.section p {
  line-height: 1.7;
  margin: 0.4rem 0;
}

.tagline-highlight {
  color: var(--color-accent);
  font-weight: 600;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.2rem 1.3rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(207,168,58,0.12), transparent);
  opacity: 0;
  transition: opacity 0.2s ease-out;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.card p {
  font-size: 0.95rem;
}

/* Sponsors */

.sponsor-logo {
  font-weight: 700;
  color: var(--color-primary);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  margin-top: 0.6rem;
}

.sponsor-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 2rem 1.5rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
  text-align: center;
  margin-top: 1.2rem;
}

.sponsor-img {
  max-width: 260px;
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(9%) sepia(93%) saturate(2800%) hue-rotate(198deg) brightness(93%) contrast(95%);
  /* Optionnel : recoloration proche du bleu Inacio */
}

.sponsor-card p {
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 0.8rem;
}

.sponsor-card a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.sponsor-card a:hover {
  text-decoration: underline;
}

.school-img {
  filter: none !important;
}

/* =============================
     GRILLE SPONSORS ANIMÉE
   ============================= */

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.sponsor-item {
  background: #ffffff;
  border-radius: 14px;
  padding: 2rem 1.4rem;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  overflow: hidden;
}

.sponsor-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(207,168,58,0.18), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.sponsor-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.sponsor-item:hover::before {
  opacity: 1;
}

.sponsor-item img {
  max-width: 180px;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  transition: transform 0.35s ease;
}

.sponsor-item:hover img {
  transform: scale(1.07);
}

/* Empêche le pseudo-élément d'intercepter les clics */
.sponsor-item::before {
  pointer-events: none !important;
}

.sponsor-name {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.15rem;
  margin-top: 0.3rem;
  display: block;
}

.sponsor-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sponsor-link:hover {
  color: #b98d2f;
}

/* Décors flottants */
.decor {
  position: absolute;
  opacity: 0.25;
  pointer-events: none;
  z-index: -1;
}

.decor-stars-1 {
  top: 120px;
  left: -20px;
  width: 160px;
}

.decor-stars-2 {
  top: 420px;
  right: 30px;
  width: 120px;
}

.decor-compass-1 {
  top: 260px;
  right: -10px;
  width: 150px;
  opacity: 0.2;
}

.decor-compass-2 {
  bottom: -30px;
  left: 40%;
  width: 110px;
  opacity: 0.15;
}

.success-box {
  background: #f9f5ec;
  border: 2px solid #e5d4a0;
  padding: 2rem;
  text-align: center;
  border-radius: 16px;
  animation: fadeInUp 0.6s ease-out forwards;
  margin-top: 2rem;
}

.success-box h2 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.success-box p {
  font-size: 1.2rem;
  margin: 0.2rem 0;
}

.error-box {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
  background: #ffe6e6;
  color: #b10000;
  font-weight: bold;
}

.gold {
  color: #CFA83A;
}
/* ================== PAGE TWING RAID ================== */

/* Hero nuit étoilée + désert */
.raid-hero {
  position: relative;
  background: linear-gradient(
              to bottom,
              rgba(18, 58, 116, 0.95) 0%,
              rgba(4, 32, 71, 0.95) 40%,
              rgba(0, 24, 56, 0.92) 65%,
              rgba(204, 185, 105, 0.45) 100%
            );
  color: #f8f9ff;
  border-radius: 1.2rem;
  padding: 2.4rem 2.3rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  overflow: hidden;
}
.twingo-photo {
    width: 100%;
    height: 360px; /* tu peux ajuster : 320, 340, 380 selon ton goût */
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.raid-hero h2 {
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.raid-hero::before {
  content: "";
  position: absolute;
  inset: auto -40%;
  bottom: -55px;
  height: 180px;
  background: radial-gradient(circle at top, #f0d28b 0, transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.raid-hero-text {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

/* Carte Twing Raid dans le hero */
.raid-partner-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.4rem;
  background: rgba(0,0,0,0.12);
  padding: 0.9rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255,255,255,0.18);
}

.raid-logo {
  width: 74px;
  height: auto;
  flex-shrink: 0;
}

.raid-link {
  color: #ffe7a9;
  font-weight: 600;
  text-decoration: none;
}

.raid-link:hover {
  text-decoration: underline;
}

/* Boussole animée */
.compass-wrapper {
  position: absolute;
  right: 2.4rem;
  top: 1.9rem;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.13), transparent 65%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}

.compass-icon {
  width: 64px;
  height: auto;
  animation: spinCompass 26s linear infinite;
}

@keyframes spinCompass {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Timeline */
.raid-timeline {
  margin-top: 1.4rem;
  background: #fff;
  border-radius: 1.1rem;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.03);
}

.timeline {
  list-style: none;
  margin: 1.2rem 0 0;
  padding-left: 1.5rem;
  border-left: 2px dashed rgba(0,33,71,0.25);
}

.timeline-item {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 1.1rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -1.1rem;
  top: 0.45rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(207,168,58,0.25);
}

.timeline-item h3 {
  margin: 0 0 0.15rem;
  font-size: 1.02rem;
  color: var(--color-primary);
}

.timeline-item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Galerie Twingo */
.twingo-gallery {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.twingo-gallery figure {
  margin: 0;
}

.twingo-gallery img {
  width: 100%;
  display: block;
  border-radius: 1rem;
  box-shadow: 0 16px 30px rgba(0,0,0,0.28);
}

.twingo-gallery figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #555;
}
/* ===============================
      ASSOCIATION – HERO (OPTION A)
   =============================== */

.asso-hero {
  text-align: center;
  padding: 3.2rem 1rem 2.6rem;
  background: linear-gradient(180deg, #ffffff, #faf7ef);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  margin: 2rem auto 2.5rem;
  max-width: 1100px;
}

.asso-hero h1 {
  font-size: 2.4rem;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.asso-intro {
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.55;
  color: #333;
}

/* Étoile décorative */
.asso-etoile {
  position: absolute;
  top: 18px;
  left: 22px;
  width: 85px;
  opacity: 0.32;
  pointer-events: none;
}

/* Boussole animée */
.asso-boussole {
  position: absolute;
  bottom: 18px;
  right: 22px;
  width: 120px;
  opacity: 0.32;
  pointer-events: none;
  animation: spin 18s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===============================
       VALEURS – 3 CARTES
   =============================== */

.asso-valeurs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 900px;
  margin: 2.4rem auto;
  flex-wrap: wrap;
}

.asso-valeur {
  background: #ffffff;
  padding: 1.4rem;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  max-width: 260px;
  text-align: center;
}

.asso-valeur h3 {
  margin-bottom: 0.3rem;
  color: var(--color-primary);
}

.asso-valeur p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.45;
}

/* ===============================
       GALERIE – IMAGES ALIGNÉES
   =============================== */

.asso-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.asso-photo {
  background: #ffffff;
  padding: 1rem;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.asso-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.asso-photo-logo img {
  width: 220px;
  height: auto;
  margin: 0 auto;
}

.asso-photo figcaption {
  font-size: 0.92rem;
  margin-top: 0.7rem;
  color: #555;
}

/* Effet doré léger au hover */
.asso-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(207,168,58,0.14), transparent);
  opacity: 0;
  transform: scale(1.05);
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

.asso-photo:hover::before {
  opacity: 1;
  transform: scale(1);
}
.partner-role {
  display: block;
  font-size: 0.85rem;
  color: #777;
  margin-top: 0.2rem;
	padding: 0.2rem;
}

/* Footer */

footer {
  background: #050b16;
  color: rgba(255,255,255,0.85);
  padding: 1.4rem 1rem 1.6rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Animations simples */

.fade-in {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeInUp 0.45s ease-out forwards;
}

.fade-in.delay-1 { animation-delay: 0.12s; }
.fade-in.delay-2 { animation-delay: 0.22s; }
.fade-in.delay-3 { animation-delay: 0.32s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Menu Desktop ---- */
.nav-menu {
  display: flex;
  gap: 0.8rem;
}

/* ---- Animation hamburger ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 20;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 4px;
  transition: 0.35s ease;
}

/* Transformation en croix */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* === BOUTON CAGNOTTE (sections) === */
.btn-donation {
  display: inline-block;
  background: #d8a441;
  color: #fff;
  padding: 0.9rem 1.6rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-donation:hover {
  background: #c29238;
  transform: translateY(-2px);
}

/* === BLOC DONS (fond clair + encadré) === */
.donation-block {
  background: #f9f5ec;
  border: 2px solid #e5d4a0;
  padding: 1.8rem;
  border-radius: 12px;
  margin: 2.5rem 0;
  text-align: center;
}

.donation-block p {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

/* === lien don dans menu mobile === */
.nav-menu .donation-link-mobile {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  color: #d8a441;
  font-weight: bold;
}
/* === ANIMATION GLOBALE : Fade + Slide === */
.site-wrapper {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 0.9s ease-out forwards;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === ANIMATION “TRACE DORÉE” === */
.gold-line {
  width: 0%;
  height: 3px;
  background: #CFA83A;
  margin: 0 auto 1.5rem auto;
  border-radius: 3px;
  animation: drawLine 1.2s ease-out forwards;
  animation-delay: 0.4s;
}

@keyframes drawLine {
  from { width: 0%; }
  to   { width: 140px; } /* largeur du trait */
}

/* Version mobile → un trait légèrement plus court */
@media (max-width: 480px) {
  @keyframes drawLine {
    from { width: 0%; }
    to   { width: 100px; }
  }
}
/* Style élégant pour la school-link en sections normales */
.school-link {
  color: #b48a2c; /* doré plus foncé */
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid rgba(180, 138, 44, 0.4);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.school-link:hover {
  color: #8a6920; /* doré profond chic */
  border-color: #8a6920;
}

/* Lien dans le HERO */
.hero .school-link {
  color: #f8e9c6; /* doré clair lisible sur fond bleu */
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 215, 130, 0.9);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.hero .school-link:hover {
  color: #ffffff;
  border-color: #ffffff;
}


/* ===================== MENU INTERMÉDIAIRE (ANTI-CHEVAUCHEMENT) ===================== */
@media (max-width: 1100px) {

  /* On cache le bouton donation desktop */
  .header-actions {
    display: none;
  }

  /* On active le hamburger */
  .nav-toggle {
    display: flex;
  }

  /* On transforme le menu en dropdown */
  .nav-menu {
    position: absolute;
    top: 100%;
    right: 1rem;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    padding: 1rem 1.5rem;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);

    display: flex;
    flex-direction: column;
    gap: 0.6rem;

    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 10;
  }

  .nav-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  nav a {
    padding: 0.6rem 0;
    margin-left: 0;
    font-size: 1rem;
  }

  .donation-link-mobile {
    display: block;
  }
}

/* ===================== MENU & HEADER MOBILE ===================== */
@media (max-width: 720px) {

  /* HEADER MOBILE */
  .header-inner {
    height: 90px;
    padding-inline: 1rem;
  }

  .brand-logo {
    height: 70px;
  }

  .header-actions {
    display: none;
  }

  /* BUTTON BURGER */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 20;
  }

  .nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 4px;
    transition: 0.35s ease;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* MENU MOBILE (fermé par défaut) */
  .nav-menu {
    position: absolute;
    top: 100%;
    right: 1rem;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    padding: 1rem 1.5rem;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 10;
  }

  /* MENU OUVERT */
  .nav-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* LIENS MOBILE */
  nav a {
    padding: 0.6rem 0;
    color: var(--color-primary);
    font-size: 1.05rem;
    margin-left: 0;
  }

  /* LIEN DON MOBILE */
  .donation-link-mobile {
    display: block;
  }

  /* CONTACT EN COLONNE */
  .contact-grid {
    grid-template-columns: 1fr;
  }
.raid-hero {
    padding: 1.9rem 1.5rem;
  }

  .compass-wrapper {
    position: static;
    margin: 1.4rem auto 0;
  }

  .raid-partner-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .raid-timeline {
    padding: 1.5rem 1.2rem;
  }
	.asso-hero {
    padding: 2.4rem 1rem 2rem;
  }

  .asso-hero h1 {
    font-size: 2rem;
  }

  .asso-intro {
    font-size: 1.05rem;
  }

  .asso-boussole {
    position: static;
    margin: 1rem auto 0;
    display: block;
    animation-duration: 22s;
  }

  .asso-etoile {
    width: 70px;
    left: 10px;
  }

  .asso-valeurs {
    flex-direction: column;
    align-items: center;
    gap: 1.3rem;
  }

  .asso-valeur {
    max-width: 320px;
    width: 100%;
  }
 /* Le livre prend une hauteur contrôlée */
  .book{
    height: 78vh !important;
    min-height: 520px;
  }

  /* La zone image occupe la page */
  .book-page,
  .book-img-wrap{
    height: 100% !important;
  }

  /* Le cadre image : on évite le débordement */
  .book-img-wrap{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 12px 12px 46px !important;
  }

  /* ✅ La règle clé : image bornée par la page */
  .book-img-wrap img{
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 62vh !important;
    object-fit: contain !important;
    border-radius: 12px;
  }

  /* Caption toujours visible */
  .book-caption{
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
  }
	  .book-page:hover img{ transform: none !important; }

} /* ← FERMETURE MEDIA QUERY MOBILE — NE PAS TOUCHER */
.fb-wrap{
  max-width: 520px;
  margin: 2rem auto 0 auto;
}

/* =====================================================
   CARNET DE SOLIDARITÉ – VERSION PREMIUM
===================================================== */

/* HERO */
.carnet-hero2{
  background: linear-gradient(135deg, rgba(0,33,71,0.96), rgba(15,76,129,0.92));
  color: #fff;
  border-radius: 1.2rem;
  padding: 3rem 2.2rem;
  position: relative;
  overflow: hidden;
}

.carnet-hero2-content{
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.carnet-hero2-actions{
  margin-top: 1.5rem;
  display:flex;
  flex-wrap:wrap;
  gap: .75rem;
}

/* TOOLBAR */
.book-toolbar{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 1rem;
}

.book-btn{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,33,71,0.18);
  background: #fff;
  color: var(--color-primary);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
  transition: all .2s ease;
}

.book-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.12);
}

.book-btn:disabled{
  opacity: .4;
  cursor: not-allowed;
}

.book-progress{
  display:flex;
  align-items:center;
  gap: .5rem;
  font-weight: 700;
  color: var(--color-primary);
  background: #fff;
  padding: .6rem 1rem;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.book-sep{ opacity:.4; }

/* CONTROLS */
.book-controls{
  display:flex;
  align-items:center;
  gap:.6rem;
  flex-wrap: wrap;
  justify-content:center;
}

.book-chip{
  border: 1px solid rgba(0,33,71,0.18);
  background: #fff;
  color: var(--color-primary);
  padding: .5rem .9rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.book-chip:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.12);
}

.book-chip.active{
  background: rgba(207,168,58,0.15);
  border-color: rgba(207,168,58,0.55);
}

.book-speed{
  display:flex;
  align-items:center;
  gap:.4rem;
  padding:.45rem .8rem;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(0,33,71,0.18);
  font-weight:700;
  box-shadow:0 8px 18px rgba(0,0,0,0.06);
}

.book-speed select{
  border:none;
  background:transparent;
  font-weight:800;
  color:var(--color-primary);
  outline:none;
  cursor:pointer;
}

/* PROGRESS BAR */
.book-bar{
  width:min(980px, 100%);
  height:8px;
  margin:0 auto 1.5rem;
  border-radius:999px;
  background:rgba(0,33,71,0.10);
  overflow:hidden;
}

.book-bar-fill{
  height:100%;
  width:0%;
  background:rgba(207,168,58,0.9);
  transition:width .25s ease;
}

/* BOOK CONTAINER */
.book-shell{
  display:flex;
  justify-content:center;
}

.book{
  width:min(980px, 100%);
  height:560px;
  display:grid;
  grid-template-columns:1fr 1fr;
  border-radius:18px;
  overflow:hidden;
  background:#f6f1e8;
  box-shadow:0 20px 55px rgba(0,0,0,0.18);
  position:relative;
}

.book::before{
  content:"";
  position:absolute;
  top:0; bottom:0;
  left:50%;
  width:2px;
  background:rgba(0,0,0,0.08);
  z-index:2;
}

/* PAGES */
.book-page{
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
}

.book-img-wrap{
  width:100%;
  height:100%;
  padding:16px 16px 52px;
  position:relative;
}

.book-img-wrap img{
  width:100%;
  height:100%;
  object-fit:contain;
  background:#f4f4f4;
  border-radius:14px;
  box-shadow:0 12px 26px rgba(0,0,0,0.15);
  transition:transform .25s ease, box-shadow .25s ease;
}

.book-page:hover img{
  transform:scale(1.02);
  box-shadow:0 18px 40px rgba(0,0,0,0.2);
}

.book-caption{
  position:absolute;
  bottom:14px;
  left:0;
  right:0;
  text-align:center;
  font-size:.9rem;
  color:#555;
}

/* COVER + END */
.book-cover, .book-end{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:2rem;
  background:linear-gradient(135deg, rgba(0,33,71,0.95), rgba(207,168,58,0.2));
  color:#fff;
}

.book-end{
  background:linear-gradient(135deg, rgba(207,168,58,0.2), rgba(0,33,71,0.95));
}

/* FLIP ANIMATION */
.book.flip-next .right{
  animation:flipNext .22s ease both;
}
.book.flip-prev .left{
  animation:flipPrev .22s ease both;
}

@keyframes flipNext{
  from{ transform:perspective(900px) rotateY(0deg); }
  to{ transform:perspective(900px) rotateY(-10deg); }
}

@keyframes flipPrev{
  from{ transform:perspective(900px) rotateY(0deg); }
  to{ transform:perspective(900px) rotateY(10deg); }
}

/* AUTO MODE IMMERSIF */
.book.auto-mode{
  background:#0c0f17;
}

.book.auto-mode .book-page{
  background:#0c0f17;
}

.book.auto-mode img{
  background:#0c0f17;
  box-shadow:0 25px 70px rgba(0,0,0,0.6);
}

.book.auto-mode .book-caption{
  color:rgba(255,255,255,0.85);
}

/* MOBILE */
@media (max-width:720px){

  .book{
    grid-template-columns:1fr;
    height:520px;
  }

  .book::before{
    display:none;
  }

  .book-page{
    border:none !important;
  }

  .book-toolbar{
    gap:.6rem;
  }

  .book-chip, .book-speed{
    font-size:.9rem;
  }
}

/* Media figure (photos) */
.media-figure{
  margin-top: 1.2rem;
  text-align: center;
}

.media-img{
  width: 100%;
  max-width: 860px;
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(0,0,0,0.18);
  display: block;
  margin: 0 auto;
}

.media-caption{
  margin-top: 0.65rem;
  font-size: 0.95rem;
  color: #555;
}

.media-actions{
  margin-top: 1.2rem;
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.carnet-highlight{
  background: linear-gradient(135deg, rgba(0,33,71,0.05), rgba(207,168,58,0.08));
  padding: 3rem 2rem;
  border-radius: 1.4rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
}

.carnet-highlight-content{
  max-width: 700px;
  margin: 0 auto;
}

.carnet-highlight h2{
  margin-bottom: 1rem;
}

