/* Brondillants – Bron Brillant – Mobile first, rendu pro */
/* Forcer le thème clair (ignorer le mode sombre du téléphone/ordinateur) */
:root {
  color-scheme: light only;
  --bleu-marine: #1e4976;
  --bleu-marine-clair: #2d6a9f;
  --bleu-marine-pale: #e8eef4;
  --or: #d4a84b;
  --or-clair: #e8c26a;
  --or-fonce: #b8923a;
  --noir: #0a0a0a;
  --fond-clair: #f0f4f9;
  --texte: #1e4976;
  --texte-clair: #4a6b8a;
  --blanc: #ffffff;
  --bordure: rgba(30, 73, 118, 0.12);
  --ombre: 0 1px 3px rgba(30, 73, 118, 0.08);
  --ombre-hover: 0 4px 12px rgba(30, 73, 118, 0.1);
  --rayon: 8px;
  --rayon-btn: 6px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light only;
  background-color: var(--blanc);
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--texte);
  line-height: 1.65;
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

/* Fond Hôtel de Ville sur toutes les pages sauf Équipe */
body:not(.page-equipe) {
  position: relative;
}

body:not(.page-equipe)::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("images/hotel de ville_8773.jpg");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

body:not(.page-equipe)::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  z-index: 0;
}

/* Main et footer au-dessus du fond, nav garde son z-index 100 donc reste au-dessus du menu */
body:not(.page-equipe) > main,
body:not(.page-equipe) > footer {
  position: relative;
  z-index: 1;
}

/* ========== MOBILE (base) ========== */

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--blanc);
  border-bottom: 1px solid var(--bordure);
  box-shadow: var(--ombre);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-row {
  display: flex;
  justify-content: center;
  width: 100%;
}

.logo {
  display: block;
  text-decoration: none;
  color: var(--bleu-marine);
}

.logo-img {
  height: 72px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Mobile : barre en flex pour coller le hamburger à droite */
.nav-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  gap: 0.5rem;
}

/* Bouton hamburger (mobile) */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 102;
  transition: transform 0.2s;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bleu-marine);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menu mobile (drawer) – pleine hauteur écran */
.nav-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(320px, 85vw);
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  background: var(--blanc);
  border-left: 1px solid var(--bordure);
  box-shadow: -8px 0 24px rgba(30, 73, 118, 0.1);
  z-index: 101;
  padding: 4.5rem 1.5rem calc(2rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-open .nav-menu {
  transform: translateX(0);
}

.nav-menu .nav-links {
  flex-direction: column;
  gap: 0;
  font-size: 1.1rem;
}

.nav-menu .nav-links li {
  border-bottom: 1px solid var(--bordure);
}

.nav-menu .nav-links a {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  min-height: 44px;
  box-sizing: border-box;
}

.nav-menu .nav-links a::after {
  display: none;
}

.nav-menu .btn-don {
  margin-top: auto;
  text-align: center;
}

.nav-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: rgba(30, 73, 118, 0.35);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--texte-clair);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, box-shadow 0.2s;
  position: relative;
}

.nav-links a:hover {
  color: var(--bleu-marine);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--or);
  border-radius: 1px;
}

.nav-links a.active {
  color: var(--bleu-marine);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-don {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  background: var(--or);
  color: var(--bleu-marine);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--rayon-btn);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-don:hover {
  background: var(--or-fonce);
  color: var(--blanc);
}

/* Contenu principal */
main {
  padding-top: 120px;
  min-height: calc(100vh - 120px);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}


/* Carrousel colistiers */
.carrousel-section {
  padding: 2.5rem 0;
  overflow: hidden;
}

.carrousel-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.carrousel-track {
  display: flex;
  gap: 1.25rem;
  animation: carrousel-scroll 40s linear infinite;
  width: max-content;
}

.carrousel-track:hover {
  animation-play-state: paused;
}

@keyframes carrousel-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.carrousel-item {
  flex-shrink: 0;
  width: 110px;
  text-align: center;
  text-decoration: none;
  color: var(--bleu-marine);
  transition: transform 0.25s ease;
}

.carrousel-item:hover {
  transform: scale(1.08);
}

.carrousel-item img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--or);
  box-shadow: 0 2px 8px rgba(30, 73, 118, 0.12);
  display: block;
  margin: 0 auto 0.4rem;
}

.carrousel-item span {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.carrousel-item em {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  font-style: normal;
  color: #6b7a8d;
  line-height: 1.2;
  margin-top: 0.15rem;
}

@media (max-width: 600px) {
  .carrousel-item {
    width: 85px;
  }
  .carrousel-item img {
    width: 68px;
    height: 68px;
  }
  .carrousel-item span {
    font-size: 0.65rem;
  }
  .carrousel-item em {
    font-size: 0.55rem;
  }
  .carrousel-track {
    gap: 0.75rem;
  }
}

/* Carte des quartiers de Bron (Leaflet) */
.carte-bron-section {
  padding: 2rem 0;
}

#carte-bron {
  z-index: 0;
  width: 100%;
  height: 420px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(30, 73, 118, 0.08);
}

@media (max-width: 600px) {
  #carte-bron {
    height: 320px;
  }
}

.quartier-map-label {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  width: auto !important;
  height: auto !important;
}

.quartier-map-label span {
  display: block;
  background: rgba(30, 73, 118, 0.88);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  text-align: center;
  line-height: 1.3;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

@media (max-width: 600px) {
  .quartier-map-label span {
    font-size: 7px;
    padding: 1px 3px;
    border-radius: 3px;
  }
}

/* Hero */
.hero {
  background: var(--bleu-marine);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 168, 75, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, var(--bleu-marine) 0%, var(--bleu-marine-clair) 100%);
  color: var(--blanc);
  padding: 2.75rem 1rem 3.5rem;
  text-align: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.hero h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.hero p {
  opacity: 0.88;
  font-size: 0.9375rem;
  font-weight: 400;
}

.hero-tagline {
  font-size: 1.05rem;
  max-width: 32em;
  margin-left: auto;
  margin-right: auto;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 0.5rem;
  opacity: 0.95;
}

.hero-dates {
  font-size: 0.9375rem;
  margin-top: 0.75rem;
  opacity: 0.9;
}

/* Hero accueil : photo de groupe en arrière-plan avec filtre */
.hero.hero-accueil {
  background-color: var(--bleu-marine);
  background-image:
    linear-gradient(180deg, rgba(30, 73, 118, 0.62) 0%, rgba(30, 73, 118, 0.52) 50%, rgba(30, 73, 118, 0.62) 100%),
    url("photo-groupe.jpg");
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.hero.hero-accueil::after {
  background: rgba(255, 255, 255, 0.08);
}

.hero.hero-accueil .hero-badge {
  color: var(--blanc);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 20px rgba(30, 73, 118, 0.5);
  border-bottom: 2px solid var(--or);
  padding-bottom: 0.2rem;
}

/* Sur mobile : mieux cadrer la photo de groupe dans le hero (voir tout le groupe) */
@media (max-width: 639px) {
  .hero.hero-accueil {
    background-size: auto 100%;
    background-position: center center;
  }
}

/* Hero avec image de fond (pages sauf accueil) */
.hero.hero-photo-ville {
  background-image:
    linear-gradient(180deg, rgba(30, 73, 118, 0.55) 0%, rgba(30, 73, 118, 0.45) 50%, rgba(30, 73, 118, 0.6) 100%),
    url("images/photo%20ville%20.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero.hero-photo2 {
  background-image:
    linear-gradient(180deg, rgba(30, 73, 118, 0.62) 0%, rgba(30, 73, 118, 0.52) 50%, rgba(30, 73, 118, 0.62) 100%),
    url("photo-groupe.jpg");
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

/* Sur mobile : hero photo-groupe (même cadrage que l'accueil) */
@media (max-width: 639px) {
  .hero.hero-photo2 {
    background-size: auto 100%;
    background-position: center center;
  }
}

/* Programme : visuel en tête de section */
.programme-visual {
  margin: 0 auto 2rem;
  max-width: 720px;
}

.programme-visual-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  border: 1px solid var(--bordure);
}

/* Accueil : cartes valeurs avec repère visuel */
.accueil-valeurs .card {
  border-left: 3px solid var(--or);
}

.cta-group-accueil {
  flex-wrap: wrap;
  gap: 1rem;
}

.cta-group-accueil .btn-accueil-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  background: var(--blanc);
  color: var(--bleu-marine);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--rayon-btn);
  border: 2px solid var(--bleu-marine);
  transition: background 0.2s, color 0.2s;
}

.cta-group-accueil .btn-accueil-secondary:hover {
  background: var(--bleu-marine-pale);
}

/* Contraste CTA : renforcer la visibilité du bouton Don / actions principales */
.btn-don:focus-visible {
  outline: 2px solid var(--bleu-marine);
  outline-offset: 2px;
}

.cta-group-accueil .btn-don {
  box-shadow: 0 2px 8px rgba(30, 73, 118, 0.15);
}

.cta-group-accueil .btn-don:hover {
  box-shadow: 0 4px 12px rgba(184, 146, 58, 0.35);
}

/* Message central (citation du brief) */
.message-central {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--bleu-marine);
  text-align: center;
  margin: 0 auto 2.5rem;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  max-width: 24em;
  line-height: 1.45;
  border-left: 3px solid var(--or);
  background: rgba(212, 168, 75, 0.06);
  border-radius: 0 var(--rayon) var(--rayon) 0;
}

/* Phrase de clôture */
.phrase-cloture {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bleu-marine);
  text-align: center;
  margin: 2rem auto;
  max-width: 28em;
  line-height: 1.55;
}

.grid-2-single {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Même largeur qu’une carte du grid-3 (1 colonne) sur desktop */
@media (min-width: 1024px) {
  .grid-2-single {
    max-width: 360px;
  }
}

/* Grille 4 colonnes (Nos valeurs) – 4 côte à côte sur desktop */
.grid-4 .card {
  min-height: 200px;
}


/* Sections */
.section {
  padding: 2.5rem 0;
}

.section-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--bleu-marine);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  display: inline-block;
  width: 100%;
  letter-spacing: -0.02em;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--or);
  margin: 0.625rem auto 0;
  border-radius: 1px;
}

/* Grilles – 1 colonne sur mobile */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  background: var(--blanc);
  border-radius: var(--rayon);
  border: 1px solid var(--bordure);
  box-shadow: var(--ombre);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  box-shadow: var(--ombre-hover);
  border-color: var(--bordure);
}

/* Cartes programme : incitation au clic */
.programme-axes a.card-link {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.programme-axes a.card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(30, 73, 118, 0.12);
  border-color: var(--or);
}

.programme-axes .card-body {
  position: relative;
  padding-right: 2.5rem;
}

.programme-axes .card-body::after {
  content: 'En savoir plus →';
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--or);
  transition: color 0.2s, transform 0.2s;
}

.programme-axes a.card-link:hover .card-body::after {
  color: var(--or-fonce);
}

/* Sur mobile : pas de hover, on rend la carte clairement cliquable */
@media (max-width: 639px) {
  .programme-axes a.card-link {
    border-left: 3px solid var(--or);
  }

  .programme-axes .card-body::after {
    color: var(--or);
  }
}

/* Retour visuel au toucher (mobile et tablette) */
.programme-axes a.card-link:active {
  transform: translateY(-2px) scale(0.99);
  box-shadow: 0 4px 12px rgba(30, 73, 118, 0.1);
}

@media (min-width: 640px) {
  .programme-axes a.card-link:active {
    transform: translateY(-2px);
  }
}

/* Carte cliquable (ex. programme) */
a.card-link,
a.card-link:link,
a.card-link:visited,
a.card-link:hover,
a.card-link:focus {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.card-placeholder {
  aspect-ratio: 4/3;
  background: var(--fond-clair);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texte-clair);
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--bordure);
}

.card-img-wrap {
  aspect-ratio: 4/3;
  position: relative;
  background: var(--fond-clair);
  border-bottom: 1px solid var(--bordure);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: 50% 28%;
}

/* Alexandre : dézoomé pour montrer le visage complet (moins de zoom) */
#img-alexandre .card-img {
  object-fit: contain;
  object-position: center center;
}

/* Assadillah : cadrage pour montrer le haut de la tête */
#img-assadillah .card-img {
  object-position: 50% 0%;
}

/* Co-listiers (photos dossier) : cadrage portrait pour visage bien visible */
.card-img-wrap.card-img-portrait .card-img {
  object-fit: cover;
  object-position: center 22%;
}

/* Cadrage remonté (visage plus haut dans le cadre) pour ces co-listiers */
#img-heckle-chouchane .card-img,
#img-monique-garcia .card-img,
#img-rajaa-el-ghazouani .card-img,
#img-samantha-hugon .card-img,
#img-yassine-ouchene .card-img {
  object-position: center 38%;
}

#img-yasmina-guelbi .card-img {
  object-position: 55% 48%;
}

/* Idris Fehrat : dézoomé pour montrer le visage complet */
#img-idris .card-img {
  object-fit: contain;
  object-position: center center;
}

/* Aude Pajon : remonter le cadrage pour voir le menton */
#img-aude-pajon .card-img {
  object-position: center 35%;
}

/* Stevens Bobi : remonter le cadrage pour voir le menton */
#img-stevens-bobi .card-img {
  object-position: center 35%;
}

/* Hakim Melin : voir au-dessus de la tête et en dessous (menton) – image entière */
#img-hakim-melin .card-img {
  object-fit: contain;
  object-position: center center;
}

#img-yassine-ouchene .card-img {
  object-position: 55% 38%;
}

.card-img-wrap .card-img-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--texte-clair);
  font-size: 0.875rem;
}

.card-img-wrap.img-failed .card-img {
  display: none;
}

.card-img-wrap.img-failed .card-img-placeholder {
  display: flex;
}

.card-body {
  padding: 1.25rem;
}

.card-body .titre {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--bleu-marine);
  margin-bottom: 0.375rem;
  letter-spacing: -0.01em;
}

.card-body p {
  font-size: 0.9375rem;
  color: var(--texte-clair);
  line-height: 1.6;
}

/* Colistiers : textes plus aérés */
.page-equipe .grid-3 .card .card-body {
  padding: 1.5rem 1.25rem;
}

.page-equipe .grid-3 .card .card-body .titre {
  margin-bottom: 0.75rem;
}

.page-equipe .grid-3 .card .card-body p {
  line-height: 1.75;
  margin-bottom: 0;
}

.page-equipe .grid-3 .card .card-body p + p {
  margin-top: 0.75rem;
}

.card-role {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--or-fonce);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

/* Bouton Fermer visible uniquement sur mobile (cartes rondes) */
.page-equipe .card .card-close {
  display: none;
}

/* Tête de liste – une seule carte (Ryan) */
.grid-tete-liste {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Tête de liste – mise en avant */
.grid-tete-liste .card-tete-liste {
  border-color: var(--or);
  box-shadow: var(--ombre), 0 0 0 2px rgba(212, 168, 75, 0.15);
}

.grid-tete-liste .card-tete-liste .card-img-wrap {
  aspect-ratio: 3/4;
}

.grid-tete-liste .card-tete-liste .card-body .titre {
  font-size: 1.125rem;
}

.grid-tete-liste .card-body p + p {
  margin-top: 0.75rem;
}

/* « Voir plus » visible uniquement sur mobile (caché sur ordi) */
.page-equipe .card .card-hint {
  display: none;
}

/* Photo de groupe – page équipe */
.equipe-photo-groupe {
  margin: 2rem auto 2.5rem;
  max-width: 900px;
}

.equipe-photo-groupe-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  border: 1px solid var(--bordure);
}

.equipe-photo-groupe-caption {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--texte-clair);
  text-align: center;
}

/* Bandeau alterné */
.section-alt {
  background: var(--fond-clair);
  border-top: 1px solid var(--bordure);
}

/* Liste de liens / blocs */
.liste-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 2rem 0;
}

.liste-pages a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  background: var(--blanc);
  color: var(--bleu-marine);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--rayon-btn);
  border: 1px solid var(--bordure);
  transition: border-color 0.2s, background 0.2s;
}

.liste-pages a:hover {
  border-color: var(--or);
  background: rgba(212, 168, 75, 0.04);
}

/* Pied de page */
.footer {
  background: var(--bleu-marine);
  color: var(--blanc);
  padding: 2rem 1rem;
  text-align: center;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo-wrap {
  display: inline-block;
  padding: 0.5rem 0;
  margin-bottom: 0.75rem;
}

.footer-logo {
  height: 56px;
  width: auto;
  display: block;
}

.footer p {
  opacity: 0.88;
  font-size: 0.8125rem;
  max-width: 36em;
  margin: 0 auto;
  line-height: 1.5;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1rem;
}

.footer-social a {
  color: var(--blanc);
  opacity: 0.9;
  text-decoration: none;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: opacity 0.2s;
}

.footer-social a:hover {
  opacity: 1;
}

.footer-legal {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  opacity: 0.85;
}

.footer-legal a {
  color: var(--blanc);
  text-decoration: none;
}

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

.footer a:focus-visible,
.nav-links a:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Contact */
.form-placeholder {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background: var(--fond-clair);
  border-radius: var(--rayon);
  padding: 1.5rem;
  border: 1px solid var(--bordure);
  color: var(--texte-clair);
  text-align: center;
  font-size: 0.875rem;
}

/* Bloc intro texte */
.intro-text {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.intro-text p {
  font-size: 1rem;
  color: var(--texte-clair);
  margin-bottom: 1rem;
  line-height: 1.65;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

.intro-text strong {
  color: var(--bleu-marine);
}

/* Pages programme détaillé */
.programme-content {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.programme-content .section-title {
  text-align: center;
}

.programme-block {
  margin-bottom: 2rem;
}

.programme-block h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--bleu-marine);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.programme-block p {
  font-size: 0.9375rem;
  color: var(--texte-clair);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.programme-block p:last-child {
  margin-bottom: 0;
}

.programme-note {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--texte-clair);
  opacity: 0.9;
}

.programme-back {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bordure);
}

.programme-back a {
  color: var(--bleu-marine);
  font-weight: 500;
  text-decoration: none;
}

.programme-back a:hover {
  text-decoration: underline;
}

/* Section CTA */
.cta-section {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.cta-group {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.liste-pages-link {
  color: var(--bleu-marine);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 1px solid var(--or);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.liste-pages-link:hover {
  color: var(--or-fonce);
  border-color: var(--or-fonce);
}

/* Utilitaires */
.texte-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }

/* Page Équipe – mobile : cartes petites, rondes, côte à côte par section */
@media (max-width: 639px) {
  .page-equipe .grid-tete-liste,
  .page-equipe .grid-3 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    position: relative;
  }

  .page-equipe .grid-tete-liste .card,
  .page-equipe .grid-3 .card {
    position: relative;
    z-index: 1;
    width: 100px;
    min-width: 100px;
    min-height: 0;
    text-align: center;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .page-equipe .grid-tete-liste .card .card-img-wrap,
  .page-equipe .grid-3 .card.card-expandable .card-img-wrap,
  .page-equipe .grid-tete-liste .card .card-placeholder {
    cursor: pointer;
  }

  .page-equipe .grid-3 .card.card-static .card-img-wrap {
    cursor: default;
  }

  .page-equipe .grid-3 .card .card-hint {
    display: none;
  }

  .page-equipe .grid-3 .card.card-expandable .card-hint {
    display: block;
    font-size: 0.7rem;
    color: var(--bleu-marine);
    margin-top: 0.25rem;
    text-decoration: underline;
  }

  .page-equipe .grid-3 .card.card-expanded .card-hint {
    display: none;
  }

  .page-equipe .grid-tete-liste .card-tete-liste {
    width: 120px;
    min-width: 120px;
  }

  .page-equipe .grid-tete-liste .card-tete-liste .card-img-wrap {
    width: 120px;
    height: 120px;
  }

  .page-equipe .card .card-img-wrap {
    width: 100px;
    height: 100px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: none;
  }

  .page-equipe .card .card-placeholder {
    width: 100px;
    height: 100px;
    min-height: 100px;
    aspect-ratio: 1;
    border-radius: 50%;
    margin: 0 auto;
  }

  .page-equipe .card .card-body {
    padding: 0.5rem 0 0;
  }

  .page-equipe .card .card-body .titre {
    font-size: 0.75rem;
    line-height: 1.2;
    margin-bottom: 0;
  }

  .page-equipe .card .card-body p {
    display: none;
  }

  .page-equipe .card .card-body .card-role {
    display: block;
    font-size: 0.7rem;
    margin-bottom: 0;
  }

  .page-equipe .card .card-close {
    display: none;
    margin-top: 0.5rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    background: var(--bleu-marine);
    color: var(--blanc);
    border: none;
    border-radius: var(--rayon-btn);
    cursor: pointer;
    width: 100%;
  }

  .page-equipe .card.card-expanded {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    background: var(--blanc);
    border: 1px solid var(--bordure);
    box-shadow: var(--ombre);
    border-radius: var(--rayon);
    padding: 1rem;
  }

  .page-equipe .card.card-expanded .card-img-wrap,
  .page-equipe .card.card-expanded .card-placeholder {
    width: 100px;
    height: 100px;
    margin-left: auto;
    margin-right: auto;
  }

  .page-equipe .grid-tete-liste .card-tete-liste.card-expanded .card-img-wrap {
    width: 120px;
    height: 120px;
  }

  .page-equipe .card.card-expanded .card-body p {
    display: block;
    font-size: 0.875rem;
    line-height: 1.75;
    margin-top: 0.5rem;
    text-align: left;
  }

  .page-equipe .card.card-expanded .card-body p + p {
    margin-top: 0.75rem;
  }

  .page-equipe .card.card-expanded .card-close {
    display: block !important;
  }

  .page-equipe .card.card-expanded .card-close-icon {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--texte-clair);
    background: var(--fond-clair);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon-btn);
    cursor: pointer;
    box-shadow: var(--ombre);
  }

  .page-equipe .card.card-expanded .card-close-icon:hover,
  .page-equipe .card.card-expanded .card-close-icon:focus {
    color: var(--bleu-marine);
    background: var(--blanc);
  }

}

/* ========== TABLETTE (min-width: 640px) ========== */
@media (min-width: 640px) {
  .nav-inner {
    padding: 0.6rem 1.25rem;
  }

  .nav-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .nav-bar .nav-toggle {
    order: 1;
    justify-self: start;
  }

  .nav-bar .nav-menu {
    order: 3;
    justify-self: end;
  }

  .nav-toggle {
    visibility: hidden;
    pointer-events: none;
  }

  .nav-menu {
    position: static;
    width: auto;
    min-height: 0;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 0;
    box-shadow: none;
    transform: none;
    overflow: visible;
    gap: 1.5rem;
  }

  .nav-menu .nav-links {
    flex-direction: row;
    gap: 1.5rem;
    font-size: 1rem;
  }

  .nav-menu .nav-links li {
    border-bottom: none;
  }

  .nav-menu .nav-links a {
    padding: 0;
  }

  .nav-menu .nav-links a::after {
    display: block;
  }

  .nav-menu .btn-don {
    margin-top: 0;
  }

  .nav-backdrop {
    display: none;
  }

  .logo-img {
    height: 80px;
  }

  .nav-links {
    gap: 1.5rem;
    font-size: 1rem;
  }

  main {
    padding-top: 132px;
    min-height: calc(100vh - 132px);
  }

  .container {
    padding: 0 1.25rem;
  }

  .hero {
    padding: 3rem 1.25rem 4rem;
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.75rem;
  }

  .section-title::after {
    width: 48px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    gap: 1.5rem;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-equipe .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }

  .page-equipe .grid-3 .card {
    max-width: 320px;
    width: 100%;
  }

  .page-equipe .grid-3 .card .card-body {
    padding: 1.75rem 1.5rem;
  }

  .page-equipe .grid-3 .card .card-body p {
    line-height: 1.8;
  }

  .card-body {
    padding: 1.5rem;
  }

  .footer {
    padding: 2.25rem 1.25rem;
  }

  .footer-logo-wrap {
    padding: 0.5rem 0;
  }

  .footer-logo {
    height: 64px;
  }

  .footer p {
    font-size: 0.9rem;
  }

  .form-placeholder {
    padding: 2rem;
  }

  .cta-section {
    padding-top: 2rem;
    padding-bottom: 3.5rem;
  }

  .cta-group {
    flex-direction: row;
  }

  .message-central {
    font-size: 1.25rem;
    padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  }
}

/* ========== DESKTOP (min-width: 1024px) ========== */
@media (min-width: 1024px) {
  .nav-inner {
    padding: 0.6rem 1.5rem;
  }

  .logo-img {
    height: 88px;
  }

  .nav-links {
    gap: 2rem;
  }

  main {
    padding-top: 144px;
    min-height: calc(100vh - 144px);
  }

  .container {
    padding: 0 1.5rem;
  }

  .hero {
    padding: 4rem 1.5rem 5rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 1.625rem;
    margin-bottom: 2rem;
  }

  .section-title::after {
    margin: 0.75rem auto 0;
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-tete-liste {
    max-width: 420px;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-equipe .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    gap: 1.5rem;
  }

  .page-equipe .grid-3 .card {
    max-width: 320px;
    width: 100%;
  }

  .page-equipe .grid-3 .card .card-body {
    padding: 1.75rem 1.5rem;
  }

  .page-equipe .grid-3 .card .card-body p {
    line-height: 1.8;
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer {
    padding: 2.5rem 1.5rem;
  }

  .footer-logo-wrap {
    padding: 0.5rem 0;
  }

  .footer-logo {
    height: 72px;
  }

  .cta-section {
    padding-bottom: 4rem;
  }
}
