
:root {
  --rouge: #7d0000;
  --vert: #2e7d32;
  --bleu: #1565c0; /* bleu lisible et institutionnel */
}


body {
  margin: 0;
  font-family: Arial, sans-serif;

  background-image: url("../images/sterFond.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.75); /* voile clair */
  z-index: -1;
}

.section {
  max-width: 1000px;
  margin: 15px auto;
  padding: 20px;
 /* background: rgba(255, 255, 255, 0.9); */
  border-radius: 12px;
}

/*
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-box {
  background: white;
  padding: 30px;
  max-width: 420px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.popup-box h2 {
  color: var(--rouge);
  margin-top: 0;
}

.popup-box p {
  line-height: 1.5;
  margin: 20px 0;
}

.popup-box button {
  background: var(--vert);
  color: white;
  border: none;
  padding: 10px 18px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
}

.popup-box button:hover {
  opacity: 0.9;
}
*/ 

/*
header {
  background:
  linear-gradient(90deg, rgba(198,40,40,0.85), rgba(46,125,50,0.85)), 
    url("../images/doubleLogo.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 30px 20px;
  text-align: top;
} 
*/
/*
header {
  background:
    linear-gradient(
      rgba(0, 0, 0, 0.45),
      rgba(0, 0, 0, 0.45)
    ),
    url("../images/doubleLogo.jpg");
  background-size: cover;
  background-position: center;
  color: lightgreen;
  padding: 30px 20px 20px;
  text-align: center;
}
*/
header {
  background:
   /* linear-gradient(
      rgba(255, 255, 255, 0.35),
      rgba(255, 255, 255, 0.35)
    ),*/
    url("../images/doubleLogo2.jpg");
  height: 260px;                 /* hauteur contrôlée */
  background-size: cover;
  background-position: center;
  text-align: center;
  position: relative;
}

header h1 {
  color: black;
  position: absolute;
  bottom: 10px;                  /* ← règle magique */
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
}

/* Image tête de liste */
.photo-tete-liste {
  position: absolute;
  bottom: 0;
  left: 30px;              /* à droite (modifiable) */
  height: 85%;              /* proportion maîtrisée */
  max-height: 240px;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;     /* évite les clics accidentels */
}

#groupe {
  width:30%; 
  /*height:30% ; */
  border-radius:10px;
  align-content: center;
}

nav {
  background: var(--vert);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 10px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.section {
  max-width: 1000px;
  margin: 10px auto;
  padding: 15px;
}

h2 { color: var(--rouge); }
h3 { color: var(--vert); }

.slideshow {
  max-width: 1000px;
  width: 800px;
  height: 420px;      /* ↓ au lieu de 420px */
  margin: 20px auto;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}


.slide {
  position: absolute;
  top: 0;
  left: 10px;
  width: 100%;
  height: 100%;
  object-fit: cover;          /* ← clé */
  object-position: center center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}


.slide.active {
  opacity: 1;
}
/*  photos boutons */
.sliderPC {
  max-width: 1000px;
  width: 800px;
  height: 420px; 
  position: relative;
  /* max-width: 900px; */
  margin: 30px auto;
  overflow: hidden;
  border-radius: 12px;
}

.slidesPC {
  position: relative;
  height: 360px;
}

.slidePC {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.slidePC.active {
  opacity: 1;
  z-index: 1;
}

/* boutons */
.navPC {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
}

.navPC.prev { left: 10px; }
.navPC.next { right: 10px; }

.navPC:hover {
  background: rgba(0,0,0,0.75);
}

/* mobile */
@media (max-width: 600px) {
  .slidesPC { height: 240px; }
}

.sliderPC {
  touch-action: pan-y; /* empêche le scroll horizontal parasite */
}

.video-campagne {
  width: 100%;
  max-width: 640px;     /* ← taille raisonnable */
  max-height: 360px;    /* ← empêche la vidéo d’être trop haute */
  display: block;
  margin: 20px auto;
  border-radius: 10px;
  object-fit: contain; /* ← évite tout zoom */
  background: black;   /* bandes propres si ratio différent */
}

.pdf-viewer {
  width: 100%;
  height: 80vh;        /* hauteur confortable */
  border: none;
  border-radius: 10px;
}


/* ajout */
/*

.trombinoscope {
  max-width: 1100px;      
  margin: 20px auto;     
}

.personne {
  max-width: 160px;       
  margin: 0 auto;
}

.personne img {
  max-width: 140px;      
  height: 140px;
}
*/


/* scroll programme */

.programme-scroll {
  max-height: 220px;              /* hauteur maîtrisée */
  overflow-y: auto;               /* scroll vertical */
  padding: 20px;
  background: #eef6ef;            /* vert très doux */
  border-left: 6px solid var(--vert);
  border-radius: 10px;
  line-height: 1.6;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.05);
}

.programme-scroll p {
  margin-bottom: 1em;
}

/* amélioration visuelle du curseur (Chrome / Edge / Safari) */
.programme-scroll::-webkit-scrollbar {
  width: 8px;
}

.programme-scroll::-webkit-scrollbar-thumb {
  background: var(--vert);
  border-radius: 10px;
}

.programme-scroll::-webkit-scrollbar-track {
  background: #dfeee0;
}

.programme-item {
  display: flex;
  align-items: baseline;
  gap: 15px;
}
.programme-item {
  margin-bottom: 6px; /* au lieu de 10px ou plus */
}

.programme-item h3 {
  margin: 0;
  line-height: 1.2;
}

.programme-item + h3 {
  margin-top: 8px;
}



.detail-link {
  font-size: 0.9rem;
  color: var(--bleu);
  text-decoration: none;
  font-weight: normal;
}

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

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.event-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  border-top: 5px solid var(--vert);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
}

.event-date {
  background: var(--vert);
  color: white;
  width: 70px;
  margin: 0 auto 12px;
  padding: 8px 0;
  border-radius: 10px;
}

.event-date .day {
  font-size: 1.6rem;
  font-weight: bold;
  display: block;
}

.event-date .month {
  font-size: 0.8rem;
}

.event-card h3 {
  margin: 10px 0 5px;
}

.event-card p {
  margin: 4px 0;
}
.card.passé {
  opacity: 0.5;
  color: #888;
  background-color: #82424c;
}

.event-card .past {
  opacity: 0.45;
  filter: grayscale(100%);
 /* background-color: #82424c; */
}

.detail-link-past {
  color:black;
}


.card.passé h3 {
  text-decoration: line-through;
}

/* Événements */
.info-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.info-list2 {
  display: flex;
  flex-direction: column; /* empile les cartes verticalement */
  gap: 15px;              /* espace entre chaque carte */
}

/* images des cartes classiques 
.card img { width: 100%; border-radius: 6px; } */
/* images des cartes classiques */
.info-card {
 /* background: white; */
  border-left: 5px solid var(--vert);
 /* border-top : 5px solid var(--vert); */
  padding: 15px;
  border-radius: 8px;
  box-sizing: border-box;
}


.info-card img {
  width: 120px;        /* taille visible */
  height: 120px;
  object-fit: contain; /* surtout pour les SVG */
  margin: 0 auto 10px;
  display: block;
}







.carousel-auto {
  overflow: hidden;        /* cache ce qui dépasse */
  width: 100%;
}

.carousel-auto .track {
  display: flex;           /* les cartes s’alignent horizontalement */
  gap: 15px;
  animation: scroll 30s linear infinite;
}

.carousel-auto .card {
  flex: 0 0 160px;         /* largeur fixe pour chaque carte */
  /* background: white; */
  border-left: 5px solid var(--vert);
  padding: 15px;
  border-radius: 8px;
  box-sizing: border-box;
}

.carousel-auto .card img {
  width: 100%;
  border-radius: 6px;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* moitié de la track pour boucle infinie */
}

/* Images des cartes colistiers et du carrousel */
.carousel-auto .card img,
.team-grid .card img {
  width: 100%;        /* prend toute la largeur de la carte */
  height: 220px;      /* hauteur fixe uniforme */
  object-fit: cover;  /* recadrage sans déformation */
  border-radius: 8px; /* coins arrondis */
  display: block;     /* supprime les espaces blancs sous l'image */
}

/* Optionnel : pour les cartes classiques (événements) */
.card img {
  width: 100%;
  height: 200px;      /* ajuste selon besoin */
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.engagement-card {
  background: white;
  border-left: 6px solid var(--vert);
  padding: 20px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.engagement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* programme détaillé */

.progdet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.progdet-card {
  background: white;
  border-left: 6px solid var(--vert);
  padding: 20px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.progdet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ===== THEMES PROGRAMME ===== */

.programme-theme {
  background: white;
  border-left: 6px solid var(--vert);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.programme-theme h3 {
  margin-top: 0;
  color: var(--rouge);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.programme-theme h4 {
  margin-bottom: 8px;
  color: var(--vert);
  font-size: 1.05rem;
}

/* bloc constat */
.programme-probleme {
  background: #f3f7f4;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* bloc actions */
.programme-actions ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.programme-actions li {
  padding-left: 28px;
  margin-bottom: 10px;
  position: relative;
}

.programme-actions li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--vert);
  font-weight: bold;
}


/*
footer {
  background: var(--vert);
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 30px;
}
*/
/*
.footer-logo {
  width: 120px;        /* ← taille maîtrisée 
  max-width: 100%;
  height: auto;        /* garde les proportions 
  display: block;
  margin: 0 auto 10px; /* centré 
}
*/
/*
.footer-logo {
  width: 60px;
  height: auto;
  display: block;
  margin: 0 auto 8px;
}
*/
/*
footer {
  background: var(--vert);
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 30px;
}

.footer-logo {
  width: 60px;
  height: auto;
  display: block;
  margin: 0 auto 8px;
}
*/

footer {
  background: var(--vert);
  padding: 20px 10px;
  text-align: center;
}

footer p {
  color : white;
}

footer h2 {
  color : white;
}

.footer-row {
  display: flex;
  align-items: center;      /* alignement vertical */
  justify-content: center;  /* centré horizontalement */
  gap: 20px;                /* espace entre éléments */
  flex-wrap: wrap;          /* OK sur mobile */
}

.footer-logo {
  width: 60px;              /* taille standard */
  height: auto;
}

.main-logo {
  width: 90px;              /* logo central un peu plus grand */
}

.footer-center {
  display: flex;
  flex-direction: column;   /* logo au-dessus du texte */
  align-items: center;
}

.footer-copy {
  margin-top: 6px;
  font-size: 0.85rem;
  color: white;
}




@media (max-width: 600px) {
  nav { flex-direction: column; }
}

@media (max-width: 768px) {
  .carousel-auto {
    animation: none;          /* stop animation */
    overflow-x: auto;         /* swipe horizontal */
    scroll-snap-type: x mandatory;
  }

  .carousel-auto .card {
    scroll-snap-align: start;
  }
}
/* ===== TROMBINOSCOPE – GRILLE FIXE ===== */

.trombinoscope {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  max-width: 1000px;
  margin: 30px auto;
  gap: 20px;
}


.personne {
  width: 160px;
  text-align: center;
}
/*
.personne img {
  width: 140px !important;
  height: 140px !important;
  display: block;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 10px;
} */

.personne img {
  width: 140px;
  height: 140px;
  object-fit: contain;   /* ← clé */
  object-position: center;
  background: #f5f5f5;   /* optionnel, joli fond neutre */
  border-radius: 10px;
}

@media (max-width: 1100px) {
  .trombinoscope {
    grid-template-columns: repeat(4, 160px);
  }
}

@media (max-width: 800px) {
  .trombinoscope {
    grid-template-columns: repeat(3, 160px);
  }
}

@media (max-width: 520px) {
  .trombinoscope {
    grid-template-columns: repeat(2, 160px);
  }
}
