/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --bg-base:    #0f0010;
  --bg-surface: #0f0f19;
  --red:        #b41e1e;
  --red-light:  #e04040;
  --red-dim:    rgba(180, 30, 30, 0.20);
  --red-border: rgba(180, 30, 30, 0.35);
  --text-1:     rgba(255, 255, 255, 0.92);
  --text-2:     rgba(255, 255, 255, 0.60);
  --titre1:     rgb(75, 4, 22);
  --border:     rgba(255, 255, 255, 0.07);
  --transition: 0.18s ease;
}


/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* ============================================================
   PAGE : le fond général du site
   ============================================================ */
html, body {
  overflow-x: hidden;
  background-color: var(--bg-base);
  color: var(--text-1);
  font-family: sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ============================================================
   NAVBAR : le bandeau
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 120px;
  background: rgba(19, 0, 3, 0.9);
  border-bottom: 1px solid var(--red-border);
  overflow: visible;
}


/* ============================================================
   NAVBAR-INNER : conteneur du bandeau
   ============================================================ */
.navbar-inner {
  width: 100%;
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 120px;
}

/* ============================================================
   NAVBAR-LOGO : le logo
   ============================================================ */
.navbar-logo {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--red-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 101;
  transform: translateY(30%);
}

.navbar-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   NAVBAR-LINKS boutons/onglets
   ============================================================ */
.navbar-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.navbar-links a {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.navbar-links a:hover {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.05);
}

.navbar-links a.active {
  color: var(--red-light);
  background: var(--red-dim);
}

/* ============================================================
   NAVBAR DROPDOWN
   ============================================================ */

.navbar-dropdown {
  position: relative;
}

.navbar-dropdown-btn {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: 6px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}

.navbar-dropdown-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--transition);
}

.navbar-dropdown:hover .navbar-dropdown-btn,
.navbar-dropdown-ouvert .navbar-dropdown-btn {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.05);
}

.navbar-dropdown-ouvert .navbar-dropdown-btn::after {
  transform: rotate(180deg);
}

.navbar-dropdown-btn.active {
  color: var(--red-light);
  background: var(--red-dim);
}

.navbar-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: rgba(19, 0, 3, 0.97);
  border: 1px solid var(--red-border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.navbar-dropdown-ouvert .navbar-dropdown-menu {
  display: block;
  animation: dropdown-entree 0.15s ease;
}

@keyframes dropdown-entree {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.navbar-dropdown-menu a {
  display: block;
  padding: 11px 18px;
  font-size: 15px;
  color: var(--text-2);
  transition: color var(--transition), background var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-dropdown-menu a:last-child {
  border-bottom: none;
}

.navbar-dropdown-menu a:hover,
.navbar-dropdown-menu a.active {
  color: var(--text-1);
  background: var(--red-dim);
}

/* ============================================================
   TITRE : Le titre de l'onglet
   ============================================================ */

.titre-onglet {
  font-size: 2rem;
  color: var(--titre1);
  margin-top: 90px;
  margin-left: 60px;
  font-family: 'Exo 2', sans-serif;
  border-left: 8px solid var(--titre1);
  padding: 12px 12px 12px 12px;
  background: rgba(255, 122, 122, 0.393);
  border-radius: 4px;
  display: inline-block;
  letter-spacing: 2px
} 

/* ============================================================
   HIGHLIGHTS ACCUEIL
   ============================================================ */

.bloc-highlights {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 90%;
  max-width: 780px;
  align-self: center;
}

.highlight-bloc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.highlight-label {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red-light);
}

.highlight-card {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(10, 0, 12, 0.78);
  overflow: hidden;
  transition: border-color var(--transition);
}

.highlight-card:hover {
  border-color: rgba(255, 255, 255, 0.36);
}

.highlight-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  transition: opacity var(--transition);
}

.highlight-card:hover .highlight-bg {
  opacity: 0.45;
}

.highlight-corps {
  position: relative;
  z-index: 1;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  background: linear-gradient(to top, rgba(10,0,12,0.85) 40%, transparent 100%);
  justify-content: flex-end;
}

.highlight-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red-light);
  background: var(--red-dim);
  border: 1px solid var(--red-border);
  border-radius: 3px;
  padding: 2px 8px;
  margin-bottom: 2px;
}

.highlight-titre {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.1rem;
  color: var(--text-1);
  line-height: 1.3;
}

.highlight-date {
  font-size: 0.85rem;
  color: var(--red-light);
}

.highlight-desc {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.highlight-vide {
  padding: 24px 18px;
  color: var(--text-2);
  font-size: 0.9rem;
  text-align: center;
}

.highlight-btn {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--text-2);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  padding: 7px 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.highlight-btn:hover {
  color: var(--red-light);
  border-color: var(--red-border);
  background: var(--red-dim);
}

@media (max-width: 900px) {
  .bloc-highlights {
    grid-template-columns: 1fr;
    padding: 32px 28px 0;
  }
}

/* ============================================================
   FOND ACCUEIL : fond image parallax
   ============================================================ */

.fond-accueil1 {
  position: relative;          /* Pour ajouter ::before */
  min-height: 100vh;           /* prend toute la hauteur de l'écran */
  background-image: url('../assets/images/RCW_62_(accueil).png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* ← l'effet parallax */
  padding-top: 1px;
}

.fond-accueil1::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index:0;
}

.fond-accueil1 > *{
  position: relative;
  z-index: 1;
}

.bloc-accueil1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: var(--space-16) 0;
}

.bloc-accueil1-texte {
  flex: 0 0 auto;
}

.bloc-accueil1-texte h2 {
  font-family: 'Exo 2', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.2;
}

.bloc-accueil1-img {
  width: 45%;
}

.bloc-accueil1-img img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.bloc-accueil2 {
  position: relative;
  z-index: 1;
  background: var(--bg-base);
  margin-top: 36px;
  padding: 48px 32px 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* Cadre chiffres clés */
.chiffres-cles {
  display: flex;
  justify-content: center;
  gap: 48px;                    /* plus d'espace entre les chiffres */
  width: 100%;
  margin-top: 40px;             /* espace au-dessus des chiffres clés */
  transform: translate(6px, 4px);
}

.chiffre-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: 8px;
  min-width: 120px;
}

.chiffre {
  font-size: 2rem;
  font-weight: bold;
}

.chiffre-label {
  font-size: 0.9rem;
  color: var(--text-2);
}

/* Texte d'introduction */
.bloc-texte {
  padding: 8px 24px;
  margin-top: 46px;             /* décalage vers le bas */
  max-width: 800px;
  text-align: center;
}

.bloc-texte h2 {
  margin-bottom: 14px;
  color: var(--text-1);
  font-size: 1.5rem;
}

/* ============================================================
   PAGE ASSO
   ============================================================ */

.page-asso {
  min-height: 100vh;
  background:
    linear-gradient(rgba(15, 0, 16, 0.88), rgba(15, 0, 16, 0.96)),
    url('../assets/images/RCW_62_(accueil).png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 1px 60px 96px;
}

.asso-hero {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(320px, 1fr);
  align-items: center;
  gap: 72px;
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 72px;
}

.asso-intro .titre-onglet {
  margin-top: 0;
  margin-left: 0;
}

.asso-intro h2 {
  margin-top: 22px;
  font-family: 'Exo 2', sans-serif;
  font-size: 2.4rem;
  color: var(--text-1);
}

.asso-intro p {
  max-width: 380px;
  margin-top: 12px;
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.6;
}

.asso-photo-groupe {
  justify-self: center;
  width: min(430px, 100%);
  aspect-ratio: 16 / 9;
  padding: 8px;
  border-left: 2px solid rgba(255, 255, 255, 0.28);
  border-right: 2px solid rgba(255, 255, 255, 0.28);
}

.asso-photo-groupe img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.bureau-liste {
  max-width: 1120px;
  margin: 72px auto 0;
}

.bureau-membre {
  position: relative;
  display: grid;
  grid-template-columns: 140px minmax(260px, 1fr);
  align-items: center;
  gap: 56px;
  min-height: 154px;
  padding: 28px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.bureau-membre > * {
  position: relative;
  z-index: 1;
}

.bureau-membre-avec-fond::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(15, 0, 16, 0.88), rgba(15, 0, 16, 0.68)),
    var(--bureau-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.38;
}

.bureau-membre:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.bureau-membre-inverse {
  grid-template-columns: minmax(260px, 1fr) 140px;
}

.bureau-membre-inverse .bureau-photo {
  grid-column: 2;
}

.bureau-membre-inverse .bureau-texte {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
}

.bureau-photo {
  position: relative;
  width: 116px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.bureau-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.bureau-photo-vide::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 50%;
  width: 28px;
  aspect-ratio: 1;
  border: 3px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  transform: translateX(-50%);
}

.bureau-photo-vide::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 48px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.68);
  border-bottom: none;
  border-radius: 48px 48px 0 0;
  transform: translateX(-50%);
}

.bureau-texte h2 {
  font-family: 'Exo 2', sans-serif;
  color: var(--text-1);
  font-size: 1.75rem;
}

.bureau-nom {
  margin-top: 4px;
  color: var(--red-light);
  font-size: 1.65rem;
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.bureau-texte p {
  max-width: 520px;
  margin-top: 10px;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.55;
}

.bureau-membre-inverse .bureau-texte p {
  margin-left: auto;
}

@media (max-width: 900px) {
  .page-asso {
    padding-right: 28px;
    padding-left: 28px;
  }

  .asso-hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .bureau-membre,
  .bureau-membre-inverse {
    grid-template-columns: 104px minmax(220px, 1fr);
    gap: 28px;
    padding-right: 0;
    padding-left: 0;
  }

  .bureau-membre-inverse .bureau-photo,
  .bureau-membre-inverse .bureau-texte {
    grid-column: auto;
    grid-row: auto;
    text-align: left;
  }

  .bureau-membre-inverse .bureau-texte p {
    margin-left: 0;
  }

  .bureau-photo {
    width: 96px;
  }
}

/* ============================================================
   PAGES INTERNES
   ============================================================ */

.page-interne {
  min-height: 100vh;
  background:
    linear-gradient(rgba(15, 0, 16, 0.9), rgba(15, 0, 16, 0.98)),
    url('../assets/images/RCW_62_(accueil).png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 84px 72px 110px;
}

.page-interne .titre-onglet {
  margin-top: 0;
  margin-left: 0;
}

.section-entete {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-bottom: 28px;
}

.section-entete h2 {
  font-family: 'Exo 2', sans-serif;
  color: var(--text-1);
  font-size: 1.8rem;
  text-decoration: underline;
  text-underline-offset: 8px;
}

.lien-tout-voir {
  color: var(--text-1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.04);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.lien-tout-voir:hover {
  color: var(--red-light);
  border-color: var(--red-border);
  background: var(--red-dim);
}

.page-texte-court {
  max-width: 560px;
  margin-top: 28px;
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ============================================================
   EVENEMENTS
   ============================================================ */

.evenement-section {
  max-width: 1120px;
  margin: 58px auto 0;
}

.evenement-section + .evenement-section {
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.cartes-defilement {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cartes-fenetre {
  flex: 1;
  overflow: hidden;
}

.cartes-piste {
  display: flex;
  gap: 24px;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.event-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-height: 150px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition);
}

.event-card:not(.event-card-vide):hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.10);
}

.event-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  transition: opacity var(--transition);
}

.event-card:hover .event-card-img {
  opacity: 0.40;
}

.event-card h3 {
  position: relative;
  color: var(--text-1);
  font-family: 'Exo 2', sans-serif;
  font-size: 1.6rem;
}

.event-card p {
  position: relative;
  color: var(--text-2);
  font-size: 0.9rem;
}

.event-card-vide {
  border-style: dashed;
  opacity: 0.82;
  justify-content: center;
}

/* ============================================================
   MODALE ÉVÈNEMENT
   ============================================================ */

.event-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.event-modal.event-modal-ouvert {
  display: flex;
}

.event-modal-fond {
  position: absolute;
  inset: 0;
  background: rgba(8, 0, 9, 0.82);
  backdrop-filter: blur(4px);
}

.event-modal-fiche {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  animation: modal-entree 0.22s ease;
}

@keyframes modal-entree {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

.event-modal-fermer {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  color: var(--text-1);
  font-size: 1rem;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: background var(--transition);
}

.event-modal-fermer:hover {
  background: rgba(255, 255, 255, 0.16);
}

.event-modal-img-wrap {
  width: 100%;
  height: 200px;
}

.event-modal-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
}

.event-modal-corps {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-modal-titre {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.9rem;
  color: var(--text-1);
}

.event-modal-date {
  color: var(--red-light);
  font-size: 0.95rem;
}

.event-modal-desc {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.65;
}

.fleche-defilement {
  width: 0;
  height: 0;
  display: block;
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.58;
  transition: opacity var(--transition);
}

.fleche-defilement:hover {
  opacity: 1;
}

.fleche-defilement.fleche-inactive {
  opacity: 0.15;
  cursor: default;
  pointer-events: none;
}

.fleche-gauche {
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-right: 18px solid rgba(255, 255, 255, 0.58);
}

.fleche-droite {
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 18px solid rgba(255, 255, 255, 0.58);
}

/* ============================================================
   TOUT VOIR
   ============================================================ */

.tout-voir-entete {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 32px;
}

.lien-retour {
  color: var(--text-2);
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  padding: 6px 14px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  white-space: nowrap;
}

.lien-retour:hover {
  color: var(--text-1);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.05);
}

.tout-voir-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 56px;
}

.tout-voir-nav a {
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  color: var(--text-2);
  font-size: 0.95rem;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.tout-voir-nav a:hover {
  color: var(--text-1);
  border-color: var(--red-border);
  background: var(--red-dim);
}

.tout-voir-section {
  max-width: 1120px;
  margin: 0 auto;
  scroll-margin-top: 140px;
}

.tout-voir-section + .tout-voir-section {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.tout-voir-titre {
  font-family: 'Exo 2', sans-serif;
  color: var(--text-1);
  font-size: 1.8rem;
  text-decoration: underline;
  text-underline-offset: 8px;
  margin-bottom: 32px;
}

.tout-voir-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ============================================================
   GALERIE
   ============================================================ */

.galerie-grille {
  max-width: 1120px;
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.galerie-case {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition);
}

.galerie-case:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.galerie-placeholder {
  font-family: 'Exo 2', sans-serif;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.18);
  user-select: none;
}

.galerie-case-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 12px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.galerie-case:hover .galerie-case-overlay {
  opacity: 1;
}

.galerie-case-overlay span {
  color: var(--text-1);
  font-size: 0.88rem;
  font-family: 'Exo 2', sans-serif;
}

/* ============================================================
   LIGHTBOX GALERIE
   ============================================================ */

.galerie-lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  align-items: center;
  justify-content: center;
}

.galerie-lightbox-modal.galerie-lightbox-ouvert {
  display: flex;
}

.galerie-lightbox-fond {
  position: absolute;
  inset: 0;
  background: rgba(5, 0, 6, 0.92);
  backdrop-filter: blur(6px);
}

.galerie-lb-contenu {
  position: relative;
  z-index: 1;
  width: min(700px, 90vw);
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  animation: modal-entree 0.22s ease;
}

.galerie-lb-fermer {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  color: var(--text-1);
  font-size: 1rem;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: background var(--transition);
}

.galerie-lb-fermer:hover {
  background: rgba(255, 255, 255, 0.16);
}

.galerie-lb-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.galerie-lb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.galerie-lb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: 'Exo 2', sans-serif;
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.12);
}

.galerie-lb-infos {
  padding: 18px 22px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.galerie-lb-titre {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.2rem;
  color: var(--text-1);
}

.galerie-lb-legende {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.5;
}

.galerie-lb-date {
  font-size: 0.85rem;
  color: var(--red-light);
}

.galerie-lb-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 18px;
}

.galerie-lb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}

.galerie-lb-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.galerie-lb-dot-actif {
  background: var(--red-light);
  transform: scale(1.25);
}

.galerie-lb-nav {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  color: var(--text-1);
  font-size: 2rem;
  width: 48px;
  height: 64px;
  cursor: pointer;
  margin: 0 12px;
  transition: background var(--transition);
  line-height: 1;
}

.galerie-lb-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
}

.galerie-lb-nav:disabled {
  opacity: 0.2;
  cursor: default;
}

/* ============================================================
   PUBLICATIONS
   ============================================================ */

.publi-section {
  max-width: 1120px;
  margin: 58px auto 0;
}

.publi-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
}

.publi-card:not(.publi-card-vide):hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.10);
}

.publi-card-vide {
  border-style: dashed;
  opacity: 0.82;
}

.publi-card-icone {
  width: 40px;
  opacity: 0.7;
}

.publi-card-icone svg {
  width: 100%;
  height: auto;
}

.publi-card h3 {
  color: var(--text-1);
  font-family: 'Exo 2', sans-serif;
  font-size: 1.2rem;
}

.publi-card p {
  color: var(--text-2);
  font-size: 0.88rem;
}

.publi-piste {
  display: flex;
  gap: 24px;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.publi-grille-tout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 42px;
}

.publi-grille-tout .publi-card {
  flex: unset;
}

/* ============================================================
   MODALE PUBLICATION
   ============================================================ */

.publi-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.publi-modal.publi-modal-ouvert {
  display: flex;
}

.publi-modal-fond {
  position: absolute;
  inset: 0;
  background: rgba(8, 0, 9, 0.82);
  backdrop-filter: blur(4px);
}

.publi-modal-fiche {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: 90vh;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  animation: modal-entree 0.22s ease;
  display: flex;
  flex-direction: column;
}

.publi-modal-entete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 28px 0;
}

.publi-modal-titre {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.7rem;
  color: var(--text-1);
}

.publi-modal-date {
  color: var(--red-light);
  font-size: 0.92rem;
  margin-top: 4px;
}

.publi-modal-fermer {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  color: var(--text-1);
  font-size: 1rem;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: background var(--transition);
}

.publi-modal-fermer:hover {
  background: rgba(255, 255, 255, 0.16);
}

.publi-modal-desc {
  padding: 14px 28px 20px;
  color: var(--text-2);
  font-size: 0.97rem;
  line-height: 1.65;
}

.publi-modal-pdf-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 28px 28px;
}

.publi-pdf-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.publi-pdf-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  color: var(--text-1);
  font-size: 0.85rem;
  padding: 6px 14px;
  cursor: pointer;
  transition: background var(--transition);
}

.publi-pdf-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.16);
}

.publi-pdf-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.publi-pdf-pages {
  color: var(--text-2);
  font-size: 0.9rem;
  min-width: 60px;
  text-align: center;
}

.publi-pdf-canvas {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: #fff;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-contenu {
  max-width: 980px;
  margin: 54px auto 0;
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(260px, 1fr);
  gap: 72px;
  align-items: center;
}

.contact-map {
  height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  overflow: hidden;
}

.contact-infos {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--text-1);
  font-style: normal;
}

.contact-infos h2 {
  margin-bottom: 8px;
  font-family: 'Exo 2', sans-serif;
  font-size: 2rem;
}

.contact-infos a {
  width: fit-content;
  color: var(--text-2);
  font-size: 1.05rem;
  transition: color var(--transition);
}

.contact-infos a:hover {
  color: var(--red-light);
}


/* ============================================================
   HAMBURGER (mobile)
   ============================================================ */

.navbar-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  z-index: 200;
}

.navbar-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.navbar-hamburger.ouvert span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-hamburger.ouvert span:nth-child(2) { opacity: 0; }
.navbar-hamburger.ouvert span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {

  /* Navbar */
  .navbar {
    height: 70px;
  }

  .navbar-inner {
    padding: 0 20px;
  }

  .navbar-logo {
    width: 80px;
    height: 80px;
    transform: translateY(20%);
  }

  .navbar-hamburger {
    display: flex;
  }

  .navbar-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(19, 0, 3, 0.98);
    border-bottom: 1px solid var(--red-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    z-index: 999;
  }

  .navbar-links.ouvert {
    display: flex;
  }

  .navbar-links > a {
    padding: 13px 24px;
    font-size: 1rem;
    border-radius: 0;
  }

  .navbar-dropdown {
    position: static;
  }

  .navbar-dropdown-btn {
    width: 100%;
    padding: 13px 24px;
    font-size: 1rem;
    border-radius: 0;
    justify-content: space-between;
  }

  .navbar-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    border-left: 3px solid var(--red-border);
    border-right: none;
    border-top: none;
    border-bottom: none;
    margin-left: 24px;
    min-width: 0;
  }

  .navbar-dropdown-ouvert .navbar-dropdown-menu {
    animation: none;
  }

  /* Titre onglet */
  .titre-onglet {
    margin-top: 40px;
    margin-left: 0;
    font-size: 1.5rem;
  }

  /* Pages internes */
  .page-interne {
    padding: 48px 20px 72px;
    background-attachment: scroll;
  }

  .page-asso {
    padding: 48px 20px 72px;
    background-attachment: scroll;
  }

  .fond-accueil1 {
    background-attachment: scroll;
  }

  /* Accueil */
  .bloc-accueil1-texte h2 {
    font-size: 1.8rem;
    text-align: center;
    padding: 0 16px;
  }

  .bloc-accueil1-img {
    width: 90%;
  }

  .chiffres-cles {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    transform: none;
  }

  .chiffre-item {
    min-width: 90px;
    padding: 16px;
  }

  /* Asso */
  .asso-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 40px;
  }

  .bureau-membre,
  .bureau-membre-inverse {
    grid-template-columns: 80px 1fr;
    gap: 20px;
    padding: 20px 0;
  }

  .bureau-membre-inverse .bureau-photo,
  .bureau-membre-inverse .bureau-texte {
    grid-column: auto;
    grid-row: auto;
    text-align: left;
  }

  .bureau-membre-inverse .bureau-texte p {
    margin-left: 0;
  }

  .bureau-photo {
    width: 72px;
  }

  .bureau-texte h2 {
    font-size: 1.3rem;
  }

  .bureau-nom {
    font-size: 1.2rem;
  }

  /* Carousels → 1 carte visible */
  .event-card {
    flex: 0 0 calc(100% - 0px);
  }

  .publi-card {
    flex: 0 0 calc(100% - 0px);
  }

  .fleche-defilement {
    display: none;
  }

  .cartes-fenetre {
    width: 100%;
  }

  /* Grilles → 1 colonne */
  .tout-voir-grille,
  .galerie-grille,
  .publi-grille-tout {
    grid-template-columns: 1fr;
  }

  .section-entete {
    flex-wrap: wrap;
    gap: 12px;
  }

  /* Contact */
  .contact-contenu {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-map {
    height: 240px;
  }


  /* Tout-voir nav */
  .tout-voir-nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  .tout-voir-entete {
    flex-wrap: wrap;
    gap: 12px;
  }

}


/* ============================================================
   MENTIONS LÉGALES
   ============================================================ */

.mentions-contenu {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 720px;
  padding-top: 12px;
}

.mentions-bloc h2 {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--red-light);
  margin-bottom: 10px;
}

.mentions-bloc p {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.7;
}

.mentions-bloc p + p {
  margin-top: 4px;
}

.mentions-bloc a {
  color: var(--red-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mentions-bloc a:hover {
  color: var(--text-1);
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--red-border);
  padding: 48px 0 0;
  margin-top: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px 40px;
}

.footer-col-logo .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  text-decoration: none;
}

.footer-col-logo .footer-logo img {
  height: 40px;
  width: auto;
}

.footer-col-logo .footer-logo span {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-1);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.6;
}

.footer-col-titre {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red-light);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul a {
  font-size: 0.88rem;
  color: var(--text-2);
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--text-1);
}

.footer-bas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 32px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-2);
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bas {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
