/* ==========================================================================
   BIC — Bénévoles Ivoiriens du Canada
   Feuille de style globale
   --------------------------------------------------------------------------

   SOMMAIRE
   ─────────
   01. RESET & BASE ........................ Reset CSS minimal
   02. DESIGN TOKENS ....................... Variables (couleurs, fonts, mesures)
   03. TYPOGRAPHIE ......................... Titres, eyebrow, italic-accent
   04. LAYOUT .............................. Container, sections, helpers
   05. NAVIGATION .......................... Header, brand, menu, CTA
   06. BOUTONS ............................. .btn, .btn-primary, .btn-donate
   07. HERO (accueil) ...................... Hero + hero-card
   08. STATS ............................... Section chiffres bleu marine
   09. SECTION HEADER ...................... .section-header générique
   10. CARTES ÉVÉNEMENTS ................... Events grid + cards
   11. COMITÉS ............................. Liste committees
   12. VALEURS / GRILLE 5 .................. .values-grid (4-5 cartes)
   13. CTA BLOCK ........................... Bandeau orange final
   14. PAGES INTÉRIEURES ................... .page-header, .prose
   15. RÉSEAUX SOCIAUX ..................... .socials-grid
   16. PAGE CONTACT ........................ .contact-write, .contact-options
   17. FOOTER .............................. Pied de page navy
   18. ANIMATIONS .......................... fadeUp, etc.
   19. ACCESSIBILITÉ ....................... reduced-motion, focus-visible
   20. MOBILE UX REFINEMENTS ............... Premium compact mobile

   Pour naviguer : Cmd+F "/* 05. NAVIGATION" pour sauter à la section voulue.
   ========================================================================== */


/* ==========================================================================
   01. RESET & BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, picture, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; }


/* ==========================================================================
   02. DESIGN TOKENS
   ========================================================================== */

:root {
  /* Couleurs ─ palette BIC */
  --orange: #C8693E;
  --orange-deep: #A8512A;
  --orange-soft: #E89A6E;
  --teal: #4AAB8C;
  --teal-deep: #2F8A6E;
  --navy: #1F2D3D;
  --navy-soft: #2E4359;
  --cream: #FAF6F0;
  --cream-warm: #F2EAD8;
  --white: #FFFFFF;
  --ink: #1A1A1A;
  --muted: #6B6B6B;
  --line: rgba(31, 45, 61, 0.12);

  /* Typographie */
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Mesures */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 6px;
  --radius-lg: 18px;
  --nav-height: 72px;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(31, 45, 61, 0.06), 0 2px 8px rgba(31, 45, 61, 0.04);
  --shadow-md: 0 4px 12px rgba(31, 45, 61, 0.08), 0 8px 32px rgba(31, 45, 61, 0.06);
  --shadow-lg: 0 12px 40px rgba(31, 45, 61, 0.12);
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--cream);
  overflow-x: hidden;
}

/* Grain texture overlay subtil — donne du caractère sans crier */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.78 0 0 0 0 0.41 0 0 0 0 0.24 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* ==========================================================================
   03. TYPOGRAPHIE
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 144;
}

h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; letter-spacing: -0.01em; }

p { color: var(--navy-soft); }

/* Eyebrow — petite étiquette avec tiret avant chaque titre de section */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

/* Italique accentué utilisé dans les titres pour mettre un mot en relief */
.italic-accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}


/* ==========================================================================
   04. LAYOUT
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(4rem, 9vw, 7rem) 0; }


/* ==========================================================================
   05. NAVIGATION
   --------------------------------------------------------------------------
   Structure 3 zones en desktop :
     [ LOGO + Brand text ]   [ Menu pages centré ]   [ EN | Rejoindre BIC ]
            gauche                   centre                  droite

   En mobile (< 900px) :
     [ LOGO + Brand text ]                          [ EN | Rejoindre BIC | ☰ ]
     Le menu pages devient un panneau déroulant via le hamburger.
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

/* Conteneur principal : grille 3 colonnes en desktop */
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  height: var(--nav-height);
}

/* ----- Zone GAUCHE : Logo + Brand text ----- */
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0; /* permet au texte de tronquer si manque de place */
}

.brand-logo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
  /* Effet "flottant" : ombre douce qui donne du relief sans dominer */
  filter: drop-shadow(0 4px 10px rgba(31, 45, 61, 0.12))
          drop-shadow(0 2px 4px rgba(31, 45, 61, 0.08));
}
.brand:hover .brand-logo {
  transform: scale(1.04) translateY(-1px);
  filter: drop-shadow(0 6px 14px rgba(31, 45, 61, 0.18))
          drop-shadow(0 3px 6px rgba(31, 45, 61, 0.10));
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* Variante multi-lignes : "BÉNÉVOLES / IVOIRIENS / DU CANADA" empilé */
.brand-text.multi-line {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.25;
}
.brand-text.multi-line span {
  display: block;
}

/* ----- Zone CENTRE : Menu pages ----- */
.nav-menu {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  padding: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange); }
.nav-links a.active { color: var(--orange); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
}

/* ----- Zone DROITE : Actions (EN + Rejoindre BIC) ----- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Boutons EN et Rejoindre BIC — taille uniforme (height + padding identiques) */
.nav-lang,
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 40px;
  padding: 0 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  white-space: nowrap;
}

/* Sélecteur de langue : outline */
.nav-lang {
  color: var(--navy);
  background: transparent;
  border: 1.5px solid var(--line);
  letter-spacing: 0.08em;
}
.nav-lang::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.7;
}
.nav-lang:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(200, 105, 62, 0.06);
}

/* Bouton "Rejoindre BIC" : plein navy */
.nav-cta {
  background: var(--navy);
  color: var(--cream);
}
.nav-cta:hover {
  background: var(--orange);
  transform: translateY(-1px);
}

/* ----- Bouton hamburger mobile ----- */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3; /* au-dessus du panneau du menu et du voile flou */
}

/* 3 barres : 1 span pour la barre du milieu, et ::before/::after pour les 2 autres.
   Toutes les transitions partagent la même durée pour synchroniser l'animation. */
.nav-toggle span {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: background 0.25s ease, opacity 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.25s ease;
  transform-origin: center;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }

/* État ouvert : la barre du milieu disparaît,
   les barres haut/bas rotent pour former une croix (×). */
.nav.open .nav-toggle span {
  background: transparent;
}
.nav.open .nav-toggle span::before {
  transform: translateY(7px) rotate(45deg);
}
.nav.open .nav-toggle span::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* ----- Responsive : mobile ----- */
@media (max-width: 900px) {
  /* En mobile : on cache le menu central, le hamburger apparaît dans la zone droite.
     Les boutons EN et Rejoindre BIC restent visibles dans la barre. */
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }

  /* On n'a plus que 2 zones (logo gauche, actions droite) */
  .nav-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  /* Boutons un peu plus compacts */
  .nav-lang,
  .nav-cta {
    height: 36px;
    padding: 0 0.85rem;
    font-size: 0.78rem;
  }

  /* ─── Menu mobile ouvert : voile flou + panneau déroulant ─────────── */

  /* Voile flou — élément placé directement sur <body> par JS pour échapper
     au piège du backdrop-filter de .nav (qui capture position:fixed).
     Z-indexes : voile (40) < .nav (50) — le voile recouvre tout le reste de la page,
     mais le menu reste cliquable car il est dans .nav. */
  .nav-overlay {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(31, 45, 61, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease-out;
  }
  .nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  /* Panneau déroulant des liens, sous la barre */
  .nav.open .nav-menu {
    display: flex;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem var(--gutter);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    z-index: 2;
    box-shadow: 0 8px 24px rgba(31, 45, 61, 0.12);
    animation: slideDown 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .nav.open .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  .nav.open .nav-links a {
    padding: 0.6rem 0;
    font-size: 1rem;
  }
}

/* Sur très petits écrans : compactage supplémentaire */
@media (max-width: 480px) {
  .nav-inner {
    gap: 0.5rem;
  }
  .brand-logo {
    width: 44px;
    height: 44px;
  }
  .brand-text.multi-line {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
  }
  .nav-lang,
  .nav-cta {
    height: 34px;
    padding: 0 0.7rem;
    font-size: 0.7rem;
    gap: 0.3rem;
  }
  .nav-lang::before {
    width: 12px;
    height: 12px;
  }
  .nav-actions {
    gap: 0.4rem;
  }
}

/* Très petits téléphones (iPhone SE 1st gen, vieux Android) : encore plus compact
   pour éviter le chevauchement entre brand et zone actions. */
@media (max-width: 360px) {
  .nav-inner {
    gap: 0.35rem;
  }
  .brand-logo {
    width: 38px;
    height: 38px;
  }
  .brand-text.multi-line {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
  }
  .nav-lang {
    /* Cache l'icône globe pour économiser l'espace, on garde juste "EN" ou "FR" */
    padding: 0 0.55rem;
    font-size: 0.65rem;
  }
  .nav-lang::before {
    display: none;
  }
  .nav-cta {
    padding: 0 0.55rem;
    font-size: 0.65rem;
  }
  .nav-actions {
    gap: 0.3rem;
  }
}


/* ==========================================================================
   06. BOUTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: var(--cream);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--orange-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--cream); }
.btn-arrow::after {
  content: "→";
  transition: transform 0.2s;
  font-size: 1.1em;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* Bouton "Faire un don" — signature teal */
.btn-donate {
  background: var(--teal);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.btn-donate::before {
  content: "♥";
  font-size: 1em;
  margin-right: 0.3em;
}
.btn-donate:hover {
  background: var(--teal-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.cta-block .btn-donate {
  background: var(--cream);
  color: var(--teal-deep);
  border: 1.5px solid var(--cream);
}
.cta-block .btn-donate:hover {
  background: transparent;
  color: var(--cream);
}

/* Groupement de boutons côte à côte */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}


/* ==========================================================================
   07. HERO (page d'accueil)
   ========================================================================== */

.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}

/* --------------------------------------------------------------------------
   LEFT CONTENT OVERLAY
   -------------------------------------------------------------------------- */

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background:
    linear-gradient(
      to right,
      rgba(15, 23, 35, 0.72) 0%,
      rgba(15, 23, 35, 0.52) 30%,
      rgba(15, 23, 35, 0.12) 62%,
      transparent 100%
    );

  pointer-events: none;
}

/* --------------------------------------------------------------------------
   HERO BACKGROUND
   -------------------------------------------------------------------------- */

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

/* Desktop image */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    url("/assets/images/hero-bic-group.webp");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  filter: brightness(0.78) saturate(0.88);
  transform: none;
}

/* subtle atmospheric layer */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      ellipse 70% 60% at 78% 18%,
      rgba(74, 171, 140, 0.14),
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 55% at 10% 85%,
      rgba(200, 105, 62, 0.16),
      transparent 60%
    );

  z-index: 1;
}

/* --------------------------------------------------------------------------
   DECOR
   -------------------------------------------------------------------------- */

.hero-decor {
  position: absolute;
  right: -80px;
  top: 40px;
  width: 380px;
  height: 380px;
  z-index: -1;
  opacity: 0.22;
  animation: rotateSlow 60s linear infinite;
}

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

/* --------------------------------------------------------------------------
   GRID
   -------------------------------------------------------------------------- */

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY
   -------------------------------------------------------------------------- */

.hero .eyebrow {
  color: rgba(255,255,255,0.72);
}

.hero h1 {
  margin: 1.5rem 0 1.25rem;
  color: var(--white);

  text-shadow:
    0 2px 6px rgba(0,0,0,0.18);
}

.hero h1 .accent {
  font-style: italic;
  color: #F2B28C;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}

.hero-lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 2.5rem;

  color: rgba(255,255,255,0.96);

  text-shadow:
    0 2px 10px rgba(0,0,0,0.45),
    0 1px 2px rgba(0,0,0,0.35);

  font-weight: 400;
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */

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

.hero .btn-primary {
  background: var(--orange);
  color: var(--white);
  border: none;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.22),
    0 2px 10px rgba(200,105,62,0.22);
}

.hero .btn-primary:hover {
  background: var(--orange-deep);
  transform: translateY(-2px);
}

.hero .btn-secondary {
  background: rgba(255,255,255,0.08);

  border: 1px solid rgba(255,255,255,0.14);

  color: var(--white);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero .btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.22);
}

/* --------------------------------------------------------------------------
   HERO CARD
   -------------------------------------------------------------------------- */

.hero-card {
  background: rgba(255,255,255,0.92);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-radius: var(--radius-lg);

  padding: 2rem;

  box-shadow:
    0 12px 40px rgba(0,0,0,0.18),
    0 4px 12px rgba(31,45,61,0.08);

  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;

  border-radius: var(--radius-lg);

  border: 1px solid rgba(255,255,255,0.22);

  pointer-events: none;
}

.hero-card-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: 0.6rem;
}

.hero-card-quote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--navy);
  font-style: italic;
  font-variation-settings: "SOFT" 100;
  margin-bottom: 1.5rem;
}

.hero-card-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* --------------------------------------------------------------------------
   MOBILE HERO IMAGE
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {

  .hero-bg::before {
    background-image:
      linear-gradient(
        to bottom,
        rgba(15, 23, 35, 0.76) 0%,
        rgba(15, 23, 35, 0.58) 38%,
        rgba(15, 23, 35, 0.34) 100%
      ),
      url("/assets/images/hero-bic-group-mobile.webp");

    background-position: center top;
    background-size: cover;
    filter: none;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .hero h1 {
    margin: 0.75rem 0 1rem;

    text-shadow:
      0 2px 6px rgba(0,0,0,0.18);
  }

  .hero-lede {
    margin-bottom: 1.5rem;

    text-shadow:
      0 1px 3px rgba(0,0,0,0.18);
  }

  .hero-card {
    padding: 1.5rem;
  }

  .hero-ctas {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .hero-decor {
    opacity: 0.12;
    right: -140px;
    top: 80px;
  }
}
/* ==========================================================================
   08. STATS (section chiffres)
   ========================================================================== */

.stats {
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 105, 62, 0.25), transparent 70%);
}
.stats .container { position: relative; z-index: 1; }
.stats h2 { color: var(--cream); }
.stats .eyebrow { color: var(--orange-soft); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.stat {
  border-top: 1px solid rgba(250, 246, 240, 0.15);
  padding-top: 1.5rem;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  color: var(--orange-soft);
  line-height: 1;
  margin-bottom: 0.6rem;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.95rem;
  color: rgba(250, 246, 240, 0.75);
  line-height: 1.4;
}


/* ==========================================================================
   09. SECTION HEADER (générique)
   ========================================================================== */

.section-header {
  max-width: 720px;
  margin-bottom: 4rem;
}
.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-header h2 { margin-top: 1rem; }
.section-header p { margin-top: 1.5rem; font-size: 1.1rem; }


/* ==========================================================================
   10. CARTES ÉVÉNEMENTS
   ========================================================================== */

.events-grid {
  display: grid;

  /* responsive premium */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));

  gap: clamp(1.5rem, 3vw, 2rem);

  align-items: stretch;
}

/* ==========================================================================
   CARD
   ========================================================================== */

.event-card {
  position: relative;

  background: var(--white);

  border-radius: var(--radius-lg);

  overflow: hidden;

  border: 1px solid var(--line);

  display: flex;
  flex-direction: column;

  height: 100%;

  box-shadow: var(--shadow-sm);

  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease,
    border-color 0.3s ease;
}

/* Glow subtil premium */
.event-card::before {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: inherit;

  pointer-events: none;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.22),
      transparent 30%
    );

  opacity: 0;

  transition: opacity 0.35s ease;

  z-index: 2;
}

.event-card:hover {
  transform: translateY(-8px);

  box-shadow:
    0 10px 24px rgba(31,45,61,0.08),
    0 22px 60px rgba(31,45,61,0.10);

  border-color: rgba(200,105,62,0.18);
}

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

/* ==========================================================================
   IMAGE
   ========================================================================== */

.event-card-img {
  position: relative;

  width: 100%;

  /* ratio desktop premium */
  aspect-ratio: 16 / 10;

  overflow: hidden;

  background: var(--cream-warm);

  isolation: isolate;
}

/* fallback gradients si pas d'image */
.event-card-img.variant-teal {
  background: linear-gradient(
    135deg,
    var(--teal),
    var(--teal-deep)
  );
}

.event-card-img.variant-navy {
  background: linear-gradient(
    135deg,
    var(--navy-soft),
    var(--navy)
  );
}

/* image réelle */
.event-card-img img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  display: block;

  transform: scale(1.001);

  transition:
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease;
}

/* effet hover premium desktop */
.event-card:hover .event-card-img img {
  transform: scale(1.06);

  filter:
    saturate(1.04)
    contrast(1.02);
}

/* overlay éditorial luxe */
.event-card-img::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(15,20,30,0.34),
      rgba(15,20,30,0.10) 38%,
      rgba(255,255,255,0.03)
    );

  pointer-events: none;

  z-index: 1;
}

/* ==========================================================================
   BODY
   ========================================================================== */

.event-card-body {
  position: relative;

  padding: clamp(1.4rem, 3vw, 1.75rem);

  flex-grow: 1;

  display: flex;
  flex-direction: column;
}

.event-card-date {
  font-size: 0.74rem;

  letter-spacing: 0.18em;

  text-transform: uppercase;

  color: var(--orange);

  font-weight: 700;

  margin-bottom: 0.9rem;
}

.event-card h3 {
  font-size: clamp(1.25rem, 2vw, 1.45rem);

  line-height: 1.15;

  margin-bottom: 0.85rem;

  text-wrap: balance;
}

.event-card p {
  font-size: 0.97rem;

  color: var(--navy-soft);

  flex-grow: 1;
}

/* ==========================================================================
   LINK
   ========================================================================== */

.event-card-link {
  margin-top: 1.5rem;

  font-size: 0.92rem;

  font-weight: 600;

  color: var(--navy);

  text-decoration: none;

  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  transition:
    color 0.25s ease,
    gap 0.25s ease;
}

.event-card-link::after {
  content: "→";

  transition: transform 0.25s ease;
}

.event-card:hover .event-card-link {
  color: var(--orange);
  gap: 0.6rem;
}

.event-card:hover .event-card-link::after {
  transform: translateX(3px);
}

/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 900px) {

  .events-grid {
    grid-template-columns: repeat(
      auto-fit,
      minmax(280px, 1fr)
    );
  }

  .event-card-img {
    aspect-ratio: 4 / 3;
  }
}

/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 640px) {

  .events-grid {
    grid-template-columns: 1fr;

    gap: 1.25rem;
  }

  .event-card {
    border-radius: 20px;
  }

  .event-card-img {
    aspect-ratio: 4 / 3;

    min-height: 220px;
  }

  /* pas de zoom agressif mobile */
  .event-card:hover {
    transform: none;
  }

  .event-card:hover .event-card-img img {
    transform: none;
    filter: none;
  }

  .event-card-body {
    padding: 1.35rem;
  }

  .event-card h3 {
    font-size: 1.28rem;
  }

  .event-card p {
    font-size: 0.94rem;
  }
}


/* ==========================================================================
   11. COMITÉS
   ========================================================================== */

.committee-list {
  display: grid;
  gap: 1.5rem;
}
.committee {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 720px) {
  .committee { grid-template-columns: 1fr; }
}

.committee-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--cream-warm);
  display: grid;
  place-items: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.committee:nth-child(2n) .committee-icon { background: rgba(74, 171, 140, 0.18); }
.committee:nth-child(3n) .committee-icon { background: rgba(200, 105, 62, 0.18); }

.committee h3 { margin-bottom: 1rem; }
.committee ul { padding-left: 0; list-style: none; margin-top: 1.25rem; }
.committee ul li {
  padding: 0.45rem 0 0.45rem 1.5rem;
  position: relative;
  color: var(--navy-soft);
  font-size: 0.97rem;
}
.committee ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 8px;
  height: 1.5px;
  background: var(--orange);
}

/* Couleurs d'icônes Lucide (override emoji) */
.committee-icon .icon { color: var(--orange); }
.committee:nth-child(2n) .committee-icon .icon { color: var(--teal-deep); }
.committee:nth-child(3n) .committee-icon .icon { color: var(--orange-deep); }


/* ==========================================================================
   12. VALEURS / GRILLE 5
   --------------------------------------------------------------------------
   Utilisée pour : CA (5 cartes), 5 raisons, Ce que vous y trouverez, Valeurs (4)
   ========================================================================== */

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}
.value {
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}
.value:hover { transform: translateY(-4px); }
.value-emoji { font-size: 2.2rem; margin-bottom: 1rem; }
.value h3 { font-size: 1.3rem; margin-bottom: 0.8rem; }
.value p { font-size: 0.95rem; }

/* Couleurs d'icônes Lucide en cycles */
.value-emoji .icon { color: var(--orange); }
.value:nth-child(2n) .value-emoji .icon { color: var(--teal-deep); }
.value:nth-child(3n) .value-emoji .icon { color: var(--navy); }


/* ==========================================================================
   13. CTA BLOCK (bandeau orange en fin de page)
   ========================================================================== */

.cta-block {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(3rem, 7vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(250, 246, 240, 0.08);
}
.cta-block::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(74, 171, 140, 0.18);
}
.cta-block * { position: relative; z-index: 1; }
.cta-block h2 { color: var(--cream); margin-bottom: 1.5rem; }
.cta-block p {
  color: rgba(250, 246, 240, 0.9);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
}
.cta-block .btn-primary {
  background: var(--cream);
  color: var(--navy);
}
.cta-block .btn-primary:hover { background: var(--white); }


/* ==========================================================================
   14. PAGES INTÉRIEURES (header de page, prose)
   ========================================================================== */

.page-header {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(74, 171, 140, 0.15), transparent 60%),
    radial-gradient(ellipse 50% 60% at 15% 80%, rgba(200, 105, 62, 0.18), transparent 60%),
    var(--cream);
}
.page-header h1 { max-width: 14ch; margin-top: 1rem; }
.page-header p { font-size: 1.15rem; max-width: 620px; margin-top: 1.5rem; }

.prose {
  max-width: 720px;
  margin: 0 auto;
}
.prose p { margin-bottom: 1.25rem; font-size: 1.05rem; }
.prose h2 { margin: 3rem 0 1rem; }
.prose h3 { margin: 2.5rem 0 1rem; }
.prose ul { padding-left: 1.5rem; margin: 1.25rem 0; }
.prose li { margin-bottom: 0.6rem; color: var(--navy-soft); }
.prose strong { color: var(--navy); }

/* Icon-list — replaces plain <ul> with icon-prefixed rows */
ul.icon-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
ul.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.05rem;
  color: var(--navy-soft);
  line-height: 1.55;
}
ul.icon-list li .icon {
  margin-top: 0.15em;
}

/* ----- Formulaire intégré (iframe Google Forms avec encart d'accueil) ----- */

/* Conteneur principal : carte blanche avec ombre */
.form-embed {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* Encart d'accueil affiché avant que l'utilisateur ne commence */
.form-intro {
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}
.form-intro-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--cream-warm);
  border-radius: 50%;
  margin-bottom: 1.5rem;
}
.form-intro-icon .icon {
  width: 32px;
  height: 32px;
  color: var(--orange);
}
.form-intro-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}
.form-intro-lede {
  font-size: 1rem;
  color: var(--navy-soft);
  margin-bottom: 1rem;
}
.form-intro-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 2rem;
  max-width: 480px;
  text-align: left;
}
.form-intro-list li {
  padding: 0.6rem 0 0.6rem 1.75rem;
  position: relative;
  color: var(--navy-soft);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
  /* Permet aux mots longs (emails, URLs) de casser proprement */
  overflow-wrap: anywhere;
  word-break: break-word;
}
.form-intro-list li:last-child {
  border-bottom: 0;
}
.form-intro-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.2rem;
  width: 10px;
  height: 1.5px;
  background: var(--orange);
}
.form-intro-list strong {
  color: var(--navy);
  font-weight: 600;
}
.form-intro-btn {
  margin-bottom: 1.25rem;
  /* Sur très petits écrans, autorise le retour à la ligne du texte du bouton */
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
.form-intro-fallback {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.form-intro-fallback a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed var(--orange);
}
.form-intro-fallback a:hover {
  color: var(--orange-deep);
  border-color: var(--orange-deep);
}

/* Wrap qui héberge l'iframe une fois révélée */
.form-iframe-wrap {
  display: none;
  width: 100%;
  min-height: 1400px;
  background: var(--white);
}

.form-iframe-wrap iframe {
  display: block;
  width: 100%;
  height: 1400px;
  border: 0;
}

/* Sur petits écrans : iframe plus haute pour limiter le scroll interne */
@media (max-width: 640px) {
  .form-iframe-wrap iframe { height: 1700px; }
}


/* ==========================================================================
   15. RÉSEAUX SOCIAUX (page Nous suivre)
   ========================================================================== */

.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.social-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}
.social-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.social-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.social-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  color: var(--navy);
}
.social-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--orange);
}

/* Couleur des icônes Lucide */
.social-icon .icon { color: var(--orange); }
.social-card:hover .social-icon .icon { color: var(--orange-deep); }


/* ==========================================================================
   16. PAGE CONTACT
   --------------------------------------------------------------------------
   Section "Écrivez-nous" éditoriale (2 colonnes : texte + blob orange)
   + 3 cartes réseaux sociaux en dessous.
   ========================================================================== */

.contact-write-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 800px) {
  .contact-write-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.contact-write-text .eyebrow { margin-bottom: 1rem; }
.contact-write-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.contact-write-lede {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--navy-soft);
  margin-bottom: 2rem;
  max-width: 520px;
}
.contact-write-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}
.contact-write-mailto {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px dashed var(--orange);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
  word-break: break-all;
}
.contact-write-mailto:hover {
  color: var(--orange);
  border-color: var(--orange-deep);
}

/* Blob orange animé + icône au centre */
.contact-write-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-write-blob {
  position: absolute;
  inset: 0;
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  background: linear-gradient(135deg, var(--orange-soft) 0%, var(--orange) 60%, var(--orange-deep) 100%);
  box-shadow: 0 30px 60px -20px rgba(200, 105, 62, 0.45);
  animation: blobFloat 8s ease-in-out infinite;
}
@keyframes blobFloat {
  0%, 100% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transform: translateY(0) rotate(0deg);
  }
  50% {
    border-radius: 60% 40% 40% 60% / 55% 65% 35% 45%;
    transform: translateY(-8px) rotate(-3deg);
  }
}
.contact-write-icon {
  position: relative;
  width: clamp(4rem, 10vw, 6rem);
  height: clamp(4rem, 10vw, 6rem);
  color: var(--cream);
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
}

/* 3 options réseaux sociaux en dessous */
.contact-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 720px) {
  .contact-options { grid-template-columns: 1fr; gap: 1rem; }
}
.contact-option {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: block;
}
.contact-option:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
}
.contact-option-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  line-height: 1;
}
.contact-option-label {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}
.contact-option-handle {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Couleur des icônes Lucide dans les cartes contact */
.contact-option-icon .icon { color: var(--orange); }
.contact-option:hover .contact-option-icon .icon { color: var(--orange-deep); }


/* ==========================================================================
   17. FOOTER
   ========================================================================== */

.footer {
  background: var(--navy);
  color: rgba(250, 246, 240, 0.75);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer h4 {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 0.7rem; }
.footer ul a {
  color: rgba(250, 246, 240, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer ul a:hover { color: var(--orange-soft); }

.footer-brand p {
  color: rgba(250, 246, 240, 0.7);
  margin-top: 1rem;
  font-size: 0.95rem;
  max-width: 320px;
}
.footer-brand-subtitle {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 246, 240, 0.5);
  margin-top: 0.4rem;
}

.footer .brand-text,
.footer .footer-brand .brand-text.multi-line {
  color: var(--cream);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(250, 246, 240, 0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(250, 246, 240, 0.5);
}

/* Badge crème circulaire pour le logo dans le footer (fond navy) */
.brand-logo-footer-badge {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  background: var(--cream);
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 0.5rem;
}
.brand-logo-footer-badge img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

/* Footer social links: by default (desktop), labels show + icons hidden.
   Mobile media query (section 20) flips this — icons show + labels hide. */
.footer-social ul a > .icon { display: none; }


/* ==========================================================================
   18. ANIMATIONS
   ========================================================================== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeUp 0.8s ease-out both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }


/* ==========================================================================
   19. ACCESSIBILITÉ
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .contact-write-blob { animation: none; }
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   20. MOBILE UX REFINEMENTS — Premium compact mobile
   --------------------------------------------------------------------------
   Tighter typography, deliberate spacing, content-sized cards.
   Cards no longer stretch to dead height; vertical air is earned, not given.
   ========================================================================== */

@media (max-width: 640px) {

  /* ─── Global spacing ────────────────────────────────────────── */

  section { padding-block: 3rem; }

  .section-header { margin-bottom: 1.75rem; }
  .section-header p { font-size: 1rem; }

  /* ─── Typography ────────────────────────────────────────────── */

  h1 { line-height: 1.02; }
  h2 { line-height: 1.08; }

  .hero p,
  .prose p { font-size: 1rem; }

  /* ─── Hero ──────────────────────────────────────────────────── */

  .hero { padding-top: 1.5rem; }
  .hero h1 { margin: 0.75rem 0; }
  .hero-lede { margin-bottom: 1.25rem; }
  .hero-card { padding: 1.5rem; }

  .hero-side {
     gap: 1rem;
  }

/* ─── Buttons ───────────────────────────────────────────────── */

.btn {
 min-height: 46px;
 padding-inline: 1rem;
}


  /* ==========================================================
     EVENT CARDS — premium horizontal swipe
     ----------------------------------------------------------
     Image less tall (5/4 instead of 4/3), cards size to content
     instead of stretching to the tallest peer.

     Snap behavior: cards snap to CENTER, not to start. Combined
     with symmetric horizontal padding, this ensures a peek of
     the previous/next card is ALWAYS visible — so the last card
     still feels like it's part of a stack (peek of the prior
     card behind it on the left). App Store / Apple Music feel.
     ========================================================== */

  .events-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;

    overflow-x: auto;
    gap: 0.85rem;

    /* Break out of .container's gutter so the carousel can
       touch the screen edges. Inner padding then defines the
       resting position and peek depth. */
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);

    /* Symmetric inset — the carousel "breathes" inside the
       page gutter, and the snap point pins the active card here. */
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    padding-bottom: 0.5rem;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    /* Phantom scroll-padding so the snap point aligns with the
       padded edge, not the raw scroll-container edge. Without
       this the first card snaps awkwardly. */
    scroll-padding-left: var(--gutter);
    scroll-padding-right: var(--gutter);

    /* Cards in the row match heights so the carousel reads as a
       deliberate stack, not a ragged shelf. Per-card content
       differences are absorbed by .event-card-body flex below. */
    align-items: stretch;
  }

  .events-grid::-webkit-scrollbar { display: none; }
  /* No trailing spacer needed — the right padding handles end peek. */
  .events-grid::after { content: none; }

  .event-card {
    /* Snap to start of the card aligned with the scroll-padding
       inset — net effect at mid-carousel: card centered with
       equal peek either side. At ends: peek only on the inner side. */
    scroll-snap-align: start;
    /* height auto on a stretched item still equalizes to row height */
    height: auto;
    border-radius: 18px;
    min-height: auto;
  }

  .event-card:hover                  { transform: none; }
  .event-card:hover .event-card-img img {
    transform: none;
    filter: none;
  }

  .event-card-img {
    aspect-ratio: 5 / 4;
    min-height: 0;               /* remove 220px floor */
  }

  /* The body becomes a flex column so the "Détails →" link can be
     pinned to the bottom (margin-top: auto). Shorter descriptions
     leave whitespace ABOVE the link, not under it — much cleaner. */
  .event-card-body {
    padding: 1.1rem 1.1rem 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }

  .event-card-date {
    font-size: 0.68rem;
    margin-bottom: 0.55rem;
  }

  .event-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.18;
  }

  .event-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    /* Don't stretch the paragraph itself — pushed via link's auto margin */
    flex-grow: 0;
  }

  .event-card-link {
    /* Pin to bottom of the body so every card ends at the same baseline */
    margin-top: auto;
    padding-top: 0.85rem;
    font-size: 0.85rem;
  }


  /* ==========================================================
     COMMITTEES — premium vertical stack
     ----------------------------------------------------------
     Was a horizontal swipe, which broke with content-heavy cards:
     align-items:stretch on the swipe imposed a fixed height, and
     the inner grid's align-content:normal then stretched the rows
     (152px icon row for a 52px icon — that was the visible bug).
     Solution: vertical stack + flex column inside the card.
     ========================================================== */

  .committee-list {
    /* override the prior swipe declaration */
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 1rem;

    overflow: visible;
    padding-right: 0;
    padding-bottom: 0;

    scroll-snap-type: none;
  }

  .committee-list::after { content: none; }

  .committee {
    display: flex;               /* flex avoids the grid stretch bug */
    flex-direction: column;
    gap: 0.85rem;

    padding: 1.3rem;
    border-radius: 18px;
    min-height: auto;

    scroll-snap-align: none;
  }

  /* Header row: icon + title inline */
  .committee > .committee-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.1rem;
    align-self: flex-start;
  }

  /* The content div (2nd child) — becomes a flex column itself */
  .committee > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }

  .committee .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
  }

  .committee h3 {
    margin: 0 !important;        /* override inline margin-top:0.5rem */
    font-size: 1.2rem;
    line-height: 1.18;
  }

  .committee p {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.55;
  }

  .committee strong {
  display: inline-block;
  margin: 0 0.2rem !important;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 700;
  }

  .committee ul {
    margin: 0.15rem 0 0;
  }

  .committee ul li {
    padding: 0.22rem 0 0.22rem 1.1rem;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .committee ul li::before {
    top: 0.85rem;
    width: 7px;
  }


  /* ==========================================================
     VALUES GRID — vertical stack on mobile, committees-style
     ----------------------------------------------------------
     Used on:
       • a-propos "Nos valeurs" (3 cards with icon + description)
       • benevoles "5 raisons de rejoindre BIC" (5 cards w/ icon + description)
       • a-propos "Conseil d'administration" (5 cards: eyebrow + name + position, NO icon)

     On mobile, we mirror the committees layout: each card spans the
     full width as a horizontal row (icon left, name right). Descriptions
     are hidden — the icon + name reads cleanly as a labeled row.

     The CA cards (no icon) keep a different layout: stacked eyebrow +
     name + position, full width. We distinguish via :has(.value-emoji).
     ========================================================== */

  .values-grid {
    /* Single column — each card takes full width, stacked vertically */
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .value {
    padding: 1rem 1.1rem;
    border-radius: 16px;
  }

  .value:hover { transform: none; }


  /* ----------------------------------------------------------
     Cards WITH an icon (.value-emoji) — horizontal row layout:
     [icon] [name]
     Description hidden on mobile.

     Width: fixed 85% with auto margins so all cards align to the
     same width regardless of their name length (otherwise "Coopération"
     was wider than "Humain", creating a ragged left/right edge).
     ---------------------------------------------------------- */

  .value:has(.value-emoji) {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.95rem;
    padding: 0.95rem 1.1rem;
    min-height: 64px;
    width: 85%;
    margin-inline: auto;
  }

  /* Icon "badge" — small rounded square, like committees */
  .value:has(.value-emoji) .value-emoji {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(200, 105, 62, 0.10);  /* faint orange wash */
    display: grid;
    place-items: center;
    margin: 0;
    font-size: 1rem;
  }

  /* Icon size inside the badge */
  .value:has(.value-emoji) .value-emoji .icon {
    width: 1.2em;
    height: 1.2em;
  }

  /* Tint variations matching the existing nth-child rules in section 12 */
  .value:has(.value-emoji):nth-child(2n) .value-emoji {
    background: rgba(46, 138, 110, 0.10);
  }
  .value:has(.value-emoji):nth-child(3n) .value-emoji {
    background: rgba(31, 45, 61, 0.08);
  }

  /* Name */
  .value:has(.value-emoji) h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.2;
  }

  /* Hide descriptions for icon-cards on mobile (as requested) */
  .value:has(.value-emoji) p {
    display: none;
  }


  /* ----------------------------------------------------------
     "Detailed" variant — used on a-propos values
     ----------------------------------------------------------
     Same horizontal row layout as the default icon-card, but
     the description IS shown. We switch to a vertical layout
     within the card (icon top, name middle, description bottom)
     because a paragraph next to a 40px badge looks cramped.

     This variant is opt-in: add `values-grid-detailed` next to
     `values-grid` on the parent. Reserved for pages where the
     description meaningfully expands the title (e.g. abstract
     values like "Humain", "Rigueur" — not for pages where the
     title is already self-explanatory like benevoles "5 reasons").
     ---------------------------------------------------------- */

  .values-grid-detailed .value:has(.value-emoji) {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 1.15rem 1.2rem;
    min-height: auto;
  }

  .values-grid-detailed .value:has(.value-emoji) p {
    display: block;
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
  }

  /* h3 stays the same size — already styled above */


  /* ----------------------------------------------------------
     Cards WITHOUT icon — CA members (5 of them on a-propos)
     Stacked layout: eyebrow + name + position.
     Description (position) IS kept since it's essential info.
     ---------------------------------------------------------- */

  .value:not(:has(.value-emoji)) {
    padding: 1rem 1.1rem;
  }

  .value:not(:has(.value-emoji)) h3 {
    font-size: 1.05rem;
    margin: 0 0 0.2rem;
    line-height: 1.2;
  }

  .value:not(:has(.value-emoji)) p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
  }


  /* ----------------------------------------------------------
     FALLBACK for browsers without :has() support (very rare in 2026).
     Without :has(), all cards get the same treatment — full-width
     stacked, descriptions visible. Acceptable degradation.
     ---------------------------------------------------------- */

  @supports not selector(:has(*)) {
    .value p { display: block; }
    .value-emoji {
      font-size: 1.4rem;
      margin-bottom: 0.6rem;
    }
  }


  /* ==========================================================
     SOCIAL CARDS (contact page) — 3-col compact chips
     ----------------------------------------------------------
     Hide the handle line on mobile so cards stay tight.
     ========================================================== */

  @media (max-width: 640px) {

     .socials-grid {
       display: grid;
       grid-template-columns: repeat(3, 1fr);
       gap: 0.6rem;
     }
   
     .social-card {
       padding: 1rem 0.4rem;
       border-radius: 14px;
     }
   
     .social-card:hover {
       transform: none;
     }
   
     .social-icon {
       font-size: 1.5rem;
       margin-bottom: 0.55rem;
     }
   
     .social-name {
       font-size: 0.9rem;
       margin-bottom: 0;
     }
   
     .social-link {
       display: none;
     }
   }



  /* ==========================================================
     CONTACT OPTIONS — same 3-col compact treatment
     ========================================================== */

  .contact-options {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }

  .contact-option {
    padding: 1rem 0.4rem;
  }

  .contact-option-icon {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
  }

  .contact-option-label {
    font-size: 0.9rem;
  }

  .contact-option-handle {
    display: none;
  }


  /* ==========================================================
     FOOTER — premium compact
     ----------------------------------------------------------
     Brand spans both columns. Then a 2-col nav grid.
     Social column becomes a horizontal icon row at the bottom.
     ========================================================== */

  .footer {
    padding: 2.5rem 0 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  /* Brand block: full width at the top */
  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-top: 0.75rem;
    max-width: 100%;
  }

  /* Réseaux block: full width as icon row */
  .footer-social {
    grid-column: 1 / -1;
  }

  .footer h4 {
    margin-bottom: 0.7rem;
    font-size: 0.74rem;
  }

  .footer ul li {
    margin-bottom: 0.4rem;
  }

  .footer ul a {
    font-size: 0.9rem;
  }

  /* The social column's <ul> turns into a horizontal icon row */
  .footer-social ul {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
  }

  .footer-social ul li {
    margin: 0;
  }

  .footer-social ul a {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(250, 246, 240, 0.08);
    border: 1px solid rgba(250, 246, 240, 0.1);
    color: rgba(250, 246, 240, 0.85);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }

  .footer-social ul a:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--cream);
  }

  /* Hide the text label on mobile — icon-only row */
  .footer-social ul a > span { display: none; }

  /* Show the icon (which is hidden on desktop — see section 17 override) */
  .footer-social ul a > .icon {
    display: inline-block;
    width: 1.05rem;
    height: 1.05rem;
  }

  .footer-bottom {
    padding-top: 1.25rem;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.78rem;
  }
}


/* ==========================================================================
   Very small phones — fine adjustments
   ========================================================================== */

@media (max-width: 380px) {

  .events-grid { grid-auto-columns: 88%; }

  /* Slightly tighter committee padding on small screens */
  .committee { padding: 1.15rem; }
}

/* On truly tiny screens (e.g. < 320px), drop 2-col grids to 1-col */
@media (max-width: 320px) {

  .values-grid,
  .socials-grid,
  .contact-options {
    grid-template-columns: 1fr;
  }
}
