/* ===== Reset / Base ===== */
* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0b0b0b;
  color: #fff;
}

a { color: inherit; text-decoration: none; }

/* ===== Bloc 1 : HERO plein écran ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;

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

  transition: background-image 250ms ease, background-color 250ms ease;
}

/* Voile sombre pour lisibilité */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
  z-index: 0;
  pointer-events: none;
}

/* AFTR en haut à gauche */
.site-mark {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 1;

  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.95;
}

/* Logo AFTR visible sur toutes les pages */
.site-mark--global{
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 1000;
  color: #fff;
}

.site-mark--global:hover{
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Contenu central */
.hero-inner {
  width: 100%;
  max-width: 1200px;
  padding: 48px 24px;
  z-index: 1;
}

/* Navigation */
.hero-nav {
  display: grid;
  gap: 14px;
}

/* Liens principaux */
.hero-link {
  display: inline-block;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;

  font-size: clamp(38px, 6vw, 86px);
  line-height: 0.95;

  padding: 6px 0;
  width: fit-content;

  opacity: 0.95;
  transform: translateX(0);
  transition: transform 160ms ease, opacity 160ms ease;
}

.hero-link:hover {
  opacity: 1;
  transform: translateX(6px);
  text-decoration: underline;
  text-underline-offset: 10px;
}

.hero-link:focus {
  outline: 3px solid #fff;
  outline-offset: 6px;
}

/* ===== Images de fond au hover (admin-friendly) ===== */
.hero:has(.hero-link:hover) {
  background-image: var(--active-hero-bg);
  --active-hero-bg: var(--hover-bg);
}

/* ===== Sponsors (Accueil) ===== */
.sponsors-strip{
  width: 100%;
  max-width: 1200px;
  margin: 18px auto 0 auto;
  padding: 10px 24px 24px;

  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.sponsor-item{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* zone plus grande */
  padding: 10px 14px;
  border-radius: 999px;

  /* léger fond pour rendre visible sur fond clair */
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(0,0,0,0.10);

  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
}

.sponsor-item img{
  /* ✅ c'est ça qui les agrandit */
  height: 72px;          /* augmente à 64/72 si tu veux encore + gros */
  width: auto;
  max-width: 220px;

  object-fit: contain;
  display: block;
}

/* ===== Bloc 2 : section scroll ===== */
.second-block {
  background: #ffffff;
  color: #000;
  min-height: 40vh;

  display: flex;
  align-items: center;
  border-top: 1px solid rgba(0,0,0,0.12);
}

.second-inner {
  width: 100%;
  max-width: 1200px;
  padding: 32px 24px;

  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.second-link {
  color: #000;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 6px;
  opacity: 0.9;
}

.second-link:hover { opacity: 1; }

/* ===== Mobile ===== */
@media (max-width: 520px) {
  .hero-inner { padding: 36px 18px; }
  .site-mark { top: 18px; left: 18px; font-size: 24px; }
  .second-inner { justify-content: flex-start; }
}


/* ===== Activités : layout horizontal type affiche ===== */
.activities-page {
  max-width: 1200px;
  padding: 64px 24px 24px; /* + d'air en haut comme l'accueil */
  margin: 0 auto;

  /* Sécurité si overlay ailleurs */
  position: relative;
  z-index: 10;
}

/* Titre : beaucoup plus gros, style accueil */
.activities-title{
  margin: 0 0 22px 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.92;

  /* énorme et responsive */
  font-size: clamp(56px, 7vw, 110px);
}

/* ===== Barre filtres (public + date) ===== */
.filters-row{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  column-gap: 24px;
  row-gap: 14px;
  margin-bottom: 22px;
}

.public-filters{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

/* Boutons filtres plus gros + style "accueil" */
.public-btn {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);

  padding: 14px 20px;      /* + gros */
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;

  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, opacity 140ms ease;
}

.public-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.50);
}

.public-btn.is-active {
  border-color: #fff;
  background: #000;
}

/* Zone date : même style pill et même hauteur */
.date-filter{
  display:flex;
  align-items:center;
  gap:10px;

  background: #000;
  border: 1px solid rgba(255,255,255,0.22);
  padding: 10px 12px;
  border-radius: 999px;

  white-space: nowrap; /* évite qu’il se casse */
}

.date-filter label{
  font-weight:800;
  opacity:0.9;
}

/* Input date */
.date-filter input[type="date"]{
  background: transparent;
  color:#fff;
  border: 0;
  outline: none;

  padding: 8px 6px;
  font-weight:800;
  font-size: 16px;
}

/* Bouton effacer : pill compact */
.clear-date{
  background: rgba(255,255,255,0.10);
  color:#fff;
  border:1px solid rgba(255,255,255,0.20);
  border-radius:999px;
  padding: 10px 14px;
  cursor:pointer;
  font-weight:800;
  font-size: 14px;
  opacity:0.95;
}
.clear-date:hover{ opacity:1; }

/* Mobile : date passe dessous proprement */
@media (max-width: 520px){
  .activities-page { padding-top: 48px; }
  .filters-row { justify-content: flex-start; }
  .date-filter { width: 100%; justify-content: space-between; }
}


/* ===== Liste ===== */
.activities-grid{
  display: grid;
  gap: 22px; /* + d'air = moins “liste” */
}

/* ===== Carte : plus claire, conviviale ===== */
.planning-card{
  border-radius: 22px;
  overflow: hidden;

  /* fond clair */
  background: #f4f2ef;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 14px 35px rgba(0,0,0,0.18);

  transition: transform 160ms ease, box-shadow 160ms ease;
}

.planning-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.22);
}

/* Bandeau titre (couleur selon le thème) */
.planning-head{
  padding: 14px 18px;
  color: #fff;

  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;

  /* petit relief */
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.18);
}

/* Corps */
.planning-body{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  padding: 18px;
}

@media (max-width: 900px){
  .planning-body{ grid-template-columns: 1fr; }
}

/* Colonne gauche */
.planning-left{
  display: grid;
  gap: 14px;
}

/* Les “boîtes” deviennent blanches, propres */
.planning-box{
  background: #fff;
  border-radius: 18px;
  padding: 14px 14px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 18px rgba(0,0,0,0.10);
  color: #111;
}

.planning-meta{
  margin: 0;
  line-height: 1.45;
  font-size: 15px;
}

.planning-meta strong{
  font-weight: 900;
}

/* “Comment s’inscrire” : texte plus lisible */
.how-text{
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 15px;
  line-height: 1.5;
  color: #111;
}

.readmore-btn{
  margin-top: 10px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 6px;
  color: #111;
  opacity: 0.85;
}

.readmore-btn:hover{ opacity: 1; }

/* Colonne droite images : plus “affiche” */
.planning-right{
  display: grid;
  align-content: start;
  gap: 12px;
}

.planning-images{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.planning-images.one{
  grid-template-columns: 1fr;
}

.planning-images img{
  width: 100%;
  height: 220px;
  object-fit: cover;

  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}

/* ===== Délimitation par public ===== */

/* Familles = orange */
.theme-familles .planning-head { 
  background: #c57a12; 
}
.theme-familles .planning-box { 
  border-left: 8px solid rgba(197,122,18,0.45); 
}

/* 3-11 ans = violet */
.theme-3-11 .planning-head { 
  background: #7a1194; 
}
.theme-3-11 .planning-box { 
  border-left: 8px solid rgba(122,17,148,0.40); 
}

/* 12-25 ans = turquoise */
.theme-12-25 .planning-head { 
  background: #2c7a7b; 
}
.theme-12-25 .planning-box { 
  border-left: 8px solid rgba(44,122,123,0.40); 
}

/* Adultes = bleu */
.theme-adultes .planning-head { 
  background: #1565c0; 
}
.theme-adultes .planning-box { 
  border-left: 8px solid rgba(21,101,192,0.40); 
}

/* Vacances = rouge */
.theme-vacances .planning-head { 
  background: #9b1c1c; 
}
.theme-vacances .planning-box { 
  border-left: 8px solid rgba(155,28,28,0.40); 
}

/* Événements = vert */
.theme-evenements .planning-head { 
  background: #2e7d32; 
}
.theme-evenements .planning-box { 
  border-left: 8px solid rgba(46,125,50,0.40); 
}

/* Tous = gris */
.theme-tous .planning-head {
  background: #555;
}

.theme-tous .planning-box {
  border-left: 8px solid rgba(85,85,85,0.40);
}

.planning-meta {
  margin: 0;
  line-height: 1.4;
  font-size: 15px;
}

.planning-meta strong {
  font-weight: 900;
}

/* Colonne droite images : plus “galerie” */
.planning-right {
  display: grid;
  align-content: start;
  gap: 12px;
}

.planning-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.planning-images.one {
  grid-template-columns: 1fr;
}

/* Images plus élégantes */
.planning-images img {
  width: 100%;
  height: 210px;      /* un peu plus grand */
  object-fit: cover;
  border-radius: 18px;

  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);

  transition: transform 160ms ease, filter 160ms ease;
}

.planning-card:hover .planning-images img {
  transform: scale(1.01);
  filter: saturate(1.05);
}

/* ===== Read more ===== */
.how-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 15px;
  line-height: 1.45;
}

.readmore-btn {
  margin-top: 10px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;

  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 6px;
  color: inherit;
  opacity: 0.95;
}

.readmore-btn:hover { opacity: 1; }



/* Date : bouton visible + input natif invisible */
.date-filter{
  position: relative;
}

.date-native{
  position: absolute;
  inset: 0;              /* couvre la zone du bloc date-filter */
  opacity: 0;
  pointer-events: none;  /* on clique via le bouton stylé */
}

.date-click{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;

  font-weight: 800;
  font-size: 16px;

  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
}

.date-click:hover{
  border-color: rgba(255,255,255,0.5);
}

.date-placeholder{
  letter-spacing: 0.02em;
}

.date-icon{
  opacity: 0.95;
}

.date-label{
  font-weight: 800;
  opacity: 0.9;
}


/* ===== INSCRIPTION ===== */
.signup-page{
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 24px;
  position: relative;
  z-index: 10;
}

.signup-title{
  margin: 0 0 22px 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.92;
  font-size: clamp(56px, 7vw, 110px);
}

.signup-split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

@media (max-width: 900px){
  .signup-split{ grid-template-columns: 1fr; }
}

.signup-box{
  background: #f4f2ef;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 22px;
  box-shadow: 0 14px 35px rgba(0,0,0,0.18);
  padding: 18px;
  color: #111;
}

.signup-h{
  margin: 0 0 10px 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.signup-subh{
  margin: 18px 0 8px 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.signup-box p{
  margin: 0 0 12px 0;
  line-height: 1.55;
}

.signup-btn {
  width: fit-content;
  padding: 12px 20px;

  border-radius: 999px;
  border: 1px solid #4caf50;
  background: #2e7d32;
  color: #fff;

  font-weight: 900;
  cursor: pointer;
  text-decoration: none;

  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.signup-btn:hover {
  background: #1b5e20;
  border-color: #66bb6a;
  transform: translateY(-1px);
}

/* Titres centrés */
.signup-h,
.signup-subh{
  text-align: center;
}

/* Paragraphes alignés à gauche */
.signup-box p{
  text-align: left;
}

/* Bouton centré */
.signup-btn{
  display: block;
  width: fit-content;
  margin: 24px auto 0 auto;
  text-align: center;
}

/* ===== ACTUALITÉS ===== */
.news-page{
  max-width: 1200px;
  padding: 64px 24px 24px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.news-title{
  margin: 0 0 22px 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.92;
  font-size: clamp(56px, 7vw, 110px);
}

/* Mosaïque */
.news-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 980px){
  .news-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px){
  .news-grid{ grid-template-columns: 1fr; }
}

.news-card{
  background: #f4f2ef;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 14px 35px rgba(0,0,0,0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.news-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.22);
}

.news-link{
  display: block;
  color: #111;
  height: 100%;
}

.news-img{
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.news-body{
  padding: 16px;
  display: grid;
  gap: 8px;
}

.news-date{
  margin: 0;
  font-weight: 800;
  font-size: 14px;
  opacity: 0.75;
}

.news-h{
  margin: 0;
  font-weight: 900;
  font-size: 20px;
  line-height: 1.1;
}

.news-desc{
  margin: 0;
  line-height: 1.45;
  opacity: 0.9;
}

.news-cta{
  margin-top: 6px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 6px;
  opacity: 0.9;
}

.news-empty{
  opacity: 0.85;
}

/* ===== Détail actualité ===== */
.news-back{
  display: inline-block;
  margin-bottom: 18px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 6px;
  opacity: 0.9;
}

.news-detail{
  background: #f4f2ef;
  border-radius: 22px;
  padding: 18px;
  color: #111;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 14px 35px rgba(0,0,0,0.18);
}

.news-hero{
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 22px;
  margin: 14px 0 16px;
  display: block;
}

.news-full{
  line-height: 1.6;
  font-size: 16px;
}

.news-ext{
  display: inline-block;
  margin-top: 16px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 6px;
  opacity: 0.9;
  color: #111;
}

/* ===== Galerie album ===== */
.galerie-grid{
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 980px){
  .galerie-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px){
  .galerie-grid{ grid-template-columns: repeat(2, 1fr); }
}

.galerie-item{
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}

.galerie-item img{
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform 160ms ease, filter 160ms ease;
}

.galerie-item:hover img{
  transform: scale(1.02);
  filter: saturate(1.05);
}


/* ===== QUI SOMMES-NOUS ===== */
.about-page{
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 24px;
  position: relative;
  z-index: 10;
}

.about-title{
  margin: 0 0 22px 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;

  /* FORCER SUR UNE LIGNE */
  white-space: nowrap;

  /* Taille un peu plus maîtrisée */
  font-size: clamp(42px, 6vw, 88px);
}


/* Bloc rôle */
.role-block{
  margin-top: 26px;
}

.role-title{
  margin: 0 0 14px 0;
  text-align: center;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(22px, 3vw, 34px);
  opacity: 0.95;
}

/* Grille membres */
.membres-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 980px){
  .membres-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px){
  .membres-grid{ grid-template-columns: repeat(2, 1fr); }
}

/* ===== Carte membre (cliquable) ===== */
.membre-card{
  background: #f4f2ef;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 22px;
  box-shadow: 0 14px 35px rgba(0,0,0,0.18);
  overflow: hidden;
  color: #111;
  padding: 14px;
  display: grid;
  gap: 10px;

  /* ✅ clic */
  cursor: pointer;
  width: 100%;
  text-align: left;

  transition: transform 160ms ease, box-shadow 160ms ease;
}

.membre-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.22);
}

/* Photo */
.membre-photo{
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.10);
}

.membre-photo--placeholder{
  background: rgba(0,0,0,0.08);
}

/* Nom */
.membre-nom{
  margin: 6px 0 0 0;
  font-weight: 900;
  font-size: 16px;
  text-align: center;
}


/* ✅ On ne montre PAS la description sur la carte */
.membre-desc{
  display: none;
}

/* ===== MODAL (zoom membre) ===== */
.membre-modal{
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

.membre-modal.is-open{
  display: block;
}

.membre-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

/* Panneau */
.membre-modal__panel{
  position: relative;
  max-width: 1100px;
  margin: 64px auto;
  background: #f4f2ef;
  border-radius: 22px;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
  overflow: hidden;
}

@media (max-width: 900px){
  .membre-modal__panel{ margin: 18px; }
}

/* Bouton fermer */
.membre-modal__close{
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: rgba(0,0,0,0.08);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

/* Layout : texte gauche / image droite */
.membre-modal__content{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 520px;
}

@media (max-width: 900px){
  .membre-modal__content{
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

.membre-modal__left{
  padding: 26px;
  color: #111;
}

.membre-modal__title{
  margin: 0 0 14px 0;
  font-weight: 900;
  font-size: 28px;
  line-height: 1.05;
}

.membre-modal__desc{
  line-height: 1.65;
  font-size: 16px;

  /* 🔽 gestion du texte long */
  max-height: 320px;
  overflow-y: auto;

  padding-right: 8px; /* évite que le texte colle à la scrollbar */
}

/* Image à droite */
.membre-modal__right{
  background: rgba(0,0,0,0.08);
}

.membre-modal__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== CONTACT : layout centré ===== */

.contact-page{
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 24px;
  position: relative;
  z-index: 10;
}

.contact-form{
  max-width: 720px;        /* largeur du formulaire */
  margin: 0 auto;          /* centre horizontalement */
  display: grid;
  gap: 18px;
}

/* Titre (propre, pas cassé) */
.contact-title{
  margin: 0 0 22px 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.92;
  font-size: clamp(56px, 7vw, 110px);
}

/* ===== Champs : plus doux visuellement ===== */

.contact-field label{
  display: block;
  font-weight: 800;
  margin: 0 0 6px 0;
  opacity: 0.95;
}

/* Inputs / textarea */
.contact-field input,
.contact-field textarea{
  width: 100%;
  padding: 14px 16px;

  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.55);

  background: rgba(0,0,0,0.50);
  color: #fff;

  font-size: 15px;
  font-family: inherit;

  outline: none;

  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

/* Placeholder */
.contact-field input::placeholder,
.contact-field textarea::placeholder{
  color: rgba(255,255,255,0.65);
}

/* Focus */
.contact-field input:focus,
.contact-field textarea:focus{
  border-color: #fff;
  background: rgba(0,0,0,0.65);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.10);
}

.contact-field textarea{
  min-height: 220px;
  resize: vertical;
}

/* Bouton centré */
.contact-btn{
  justify-self: center;
  width: fit-content;
  padding: 12px 20px;

  border-radius: 999px;
  border: 1px solid #ff4d4d;
  background: #d32f2f;
  color: #fff;

  font-weight: 900;
  cursor: pointer;

  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.contact-btn:hover{
  background: #b71c1c;
  border-color: #ff6b6b;
  transform: translateY(-1px);
}

.contact-warning {
    max-width: 720px;
    margin: 18px auto 30px;
    padding: 12px 16px;

    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);

    background: rgba(0, 0, 0, 0.22);
    border-left: 4px solid #ffd54a;
    border-radius: 8px;

    backdrop-filter: blur(3px);
}

/* ===== POPUP CONTACT ===== */

.contact-popup-container {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;

  width: min(520px, calc(100% - 30px));
}

.contact-popup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding: 18px 22px;
  margin-bottom: 12px;

  border-radius: 12px;

  color: white;
  font-size: 16px;
  font-weight: 600;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

/* Succès */
.contact-popup-success {
  background: #218838;
}

/* Erreur */
.contact-popup-error {
  background: #c62828;
}

/* Autres types de messages Django */
.contact-popup-warning {
  background: #b26a00;
}

.contact-popup-info {
  background: #245b91;
}

.contact-popup-close {
  border: none;
  background: transparent;
  color: white;

  font-size: 26px;
  line-height: 1;

  cursor: pointer;

  padding: 0;
}

/* ===== DOCUMENTS ===== */
.documents-page,
.document-detail-page{
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 24px;
  position: relative;
  z-index: 10;
}

.documents-title,
.document-detail-title{
  margin: 0 0 22px 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.92;
  font-size: clamp(56px, 7vw, 110px);
}

/* mosaïque */
.documents-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 980px){
  .documents-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px){
  .documents-grid{ grid-template-columns: 1fr; }
}

.document-card{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 22px;
  overflow: hidden;
  padding: 16px;
}

.document-link{
  display: block;
}

.document-badge{
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.10);
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.document-titre{
  margin: 0 0 6px 0;
  font-weight: 900;
  font-size: 20px;
}

.document-date{
  margin: 0;
  opacity: 0.8;
}

.document-actions{
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.document-btn{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.10);
  font-weight: 900;
}

.document-btn:hover{
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.16);
}

/* Aperçu PDF */
.pdf-viewer{
  margin-top: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  overflow: hidden;
}

.document-apercu{
  width: 100%;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  margin-bottom: 12px;
}

.document-apercu object{
  width: 100%;
  height: 100%;
  display: block;
}

.document-apercu-fallback{
  height: 100%;
  display: grid;
  place-items: center;
  opacity: 0.8;
  font-weight: 800;
}

/* ===== FOLLOW US (V2 clean) ===== */
.follow-page--v2{
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 24px;
  position: relative;
  z-index: 10;
}

.follow-grid--v2{
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 860px){
  .follow-grid--v2{ grid-template-columns: 1fr; }
}

.follow-card--v2{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 22px;

  padding: 18px;
  color: #111;

  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 14px;
  align-items: center;

  box-shadow: 0 14px 35px rgba(0,0,0,0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.follow-card--v2:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.22);
}

.follow-icon--v2{
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: contain;

  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 10px;
}

.follow-icon--placeholder{
  display: inline-block;
}

.follow-text{
  display: grid;
  gap: 4px;
  min-width: 0;
}

.follow-name--v2{
  font-weight: 900;
  font-size: 20px;
  line-height: 1.05;
}

.follow-sub{
  font-size: 14px;
  opacity: 0.72;
}

.follow-cta--v2{
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 6px;
  opacity: 0.9;
  white-space: nowrap;
}

.follow-card--v2:hover .follow-cta--v2{
  opacity: 1;
}

.follow-empty{
  opacity: 0.85;
  margin-top: 18px;
}

/* ===== MENTIONS LÉGALES ===== */
.legal-page{
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 24px;
  position: relative;
  z-index: 10;
}

.legal-title{
  margin: 0 0 22px 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.92;
  font-size: clamp(56px, 7vw, 110px);
}

.legal-box{
  background: #f4f2ef;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 22px;
  box-shadow: 0 14px 35px rgba(0,0,0,0.18);
  padding: 18px;
  color: #111;
  margin-bottom: 18px;
}

.legal-h{
  margin: 0 0 10px 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ===== Layout côte à côte Mentions légales ===== */
.legal-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

/* Responsive : empilé sur mobile */
@media (max-width: 900px){
  .legal-row{
    grid-template-columns: 1fr;
  }
}

/* ===== Zoom images activités ===== */

.activity-zoom-img{
  cursor: zoom-in;
}

.activity-lightbox{
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.85);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;
}

.activity-lightbox img{
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
}

.activity-lightbox-close,
.activity-lightbox-prev,
.activity-lightbox-next{
  position: absolute;
  border: 0;
  color: #fff;
  background: rgba(255,255,255,0.12);
  cursor: pointer;
  font-weight: 900;
}

.activity-lightbox-close{
  top: 22px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 34px;
  line-height: 1;
}

.activity-lightbox-prev,
.activity-lightbox-next{
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 999px;
  font-size: 42px;
  line-height: 1;
}

.activity-lightbox-prev{
  left: 28px;
}

.activity-lightbox-next{
  right: 28px;
}

.activity-lightbox-close:hover,
.activity-lightbox-prev:hover,
.activity-lightbox-next:hover{
  background: rgba(255,255,255,0.22);
}

/* ===== ARTICLE - FINANCEMENT EUROPÉEN ===== */

.article-page{
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 40px;
  position: relative;
  z-index: 10;
}

.article-title{
  margin: 0 0 22px 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.92;
  font-size: clamp(56px, 7vw, 110px);
}

.article-card{
  background: #f4f2ef;
  color: #111;

  border-radius: 22px;
  padding: 32px;

  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 14px 35px rgba(0,0,0,0.18);
}

.article-logos{
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  margin-bottom: 40px;
}

.article-logos img{
  width: 100%;
  height: 150px;
  object-fit: contain;
  display: block;
}


.article-intro{
  text-align: center;
  margin-bottom: 38px;
}

.article-intro h2{
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
}

.article-intro p{
  margin: 0;
  font-size: 21px;
  font-weight: 700;
}

.article-infos{
  display: grid;
  gap: 14px;
}

.article-info{
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;

  border-left: 7px solid #2c7a7b;
  box-shadow: 0 7px 16px rgba(0,0,0,0.08);
}

.article-info h3{
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 900;
}

.article-info p{
  margin: 0;
  line-height: 1.5;
}

.article-footer-logos{
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}

@media (max-width: 700px){

  .article-card{
    padding: 20px;
  }

  .article-logos{
    flex-direction: column;
  }

  .article-logos img{
    max-width: 100%;
  }
}

.article-footer-logos{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 35px;
  flex-wrap: wrap;
}

.article-footer-logos img{
  max-width: 180px;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
}


/* ========================================
   PAGE 404
======================================== */

.error-page {
  min-height: 70vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 60px 24px;

  position: relative;
  z-index: 10;
}

.error-content {
  max-width: 700px;
  text-align: center;
}

.error-code {
  font-size: clamp(100px, 18vw, 220px);
  font-weight: 900;
  line-height: 0.8;

  opacity: 0.9;
}

.error-title {
  margin: 30px 0 15px;

  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  text-transform: uppercase;
}

.error-text {
  margin: 0 auto 35px;

  max-width: 550px;

  font-size: 18px;
  line-height: 1.6;
}

.error-home-btn {
  display: inline-block;

  padding: 13px 22px;

  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);

  background: rgba(0, 0, 0, 0.45);
  color: #fff;

  font-weight: 800;
  text-decoration: none;

  transition:
    background 140ms ease,
    transform 140ms ease;
}

.error-home-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-1px);
}