/* Fond général assorti à la bannière : orange -> turquoise -> bleu */
body {
  overflow-x: auto;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #f6a623, #35c0b8, #3b7fd8);
  background-attachment: fixed;
  color: #ffffff;
}

/* Enveloppe du site */
.site-header {
  text-align: center;
}

/* BANNIERE */
.banner-full {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

/* Hauteur des titres */
.title-up {
  margin-top: -10px;
}

/* Navigation */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 0;
  background: rgba(0, 0, 0, 0.25);
}

.main-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
}

.main-nav a.active {
  border-bottom: 2px solid #ffffff;
}

/* REPETITIONS - encadré texte libre */

.map-container {
  width: 50%;
  margin: 20px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.texte-libre {
  background: rgba(0, 0, 0, 0.25);
  padding: 20px;
  margin: 20px auto;
  width: 80%;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.texte-libre h3 {
  text-align: center;
  margin-top: 0;
}

.chef-photo {
  text-align: center;
  margin: 30px auto;
}

.chef-photo img {
  max-width: 150px;
  border-radius: 10px;
}

.chef-photo figcaption {
  margin-top: 10px;
  font-style: italic;
  color: #444;
}

/* TROMBINOSCOPE */
.tooltip {
  position: relative;
}

.tooltiptext {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s;
  background-color: rgba(255, 255, 255, 0.70);
  color: #333;
  padding: 10px 14px;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  position: absolute;
  bottom: 30px;   	    /* affichage en bas de l'image*/
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: min(90vw, 220px);
  white-space: normal;
  word-wrap: break-word;    /* coupe les mots trop longs */
  text-align: center;
  z-index: 10;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Zoom au survol pour les photos du trombinoscope */
.tooltip img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tooltip:hover img {
  transform: scale(1.10);
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}

/* ACTIVITES */

/* Contenu principal */
.content {
  max-width: 960px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
}

/* Sections */
.intro p,
.activities p,
.contact p {
  line-height: 1.6;
}

.activities article {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.periode-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #004c6d;
  color: white;
  padding: 20px 25px;
  border-radius: 10px;
  margin-top: 60px;
}

.periode-header h2 {
  margin: 0;
  font-size: 1.6em;
  font-weight: 600;
}

.periode-header img {
  width: 100px;
  height: 100px;
  min-width: 100px;   /* empêche l’écrasement */
  min-height: 100px;  /* empêche l’écrasement */
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid white;
}

.sous-bandeau {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #2b5c7a;
  padding: 10px 15px;
  border-radius: 8px;
  margin-top: -15px;
  margin-bottom: 20px;
  position: relative;
  z-index: 3;
}

.sous-bandeau img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

/* Galerie intégrée pour format photo */
.gallery {
  margin-top: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  grid-auto-rows: 400px;
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.10);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.gallery-grid figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  text-align: center;
}

.video-youtube {
  position: relative;
  width: 60%;
  max-width: 600px;
  margin: 20px auto;
  padding-bottom: 33%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  z-index: 4;
}

.video-youtube iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* EVENEMENTS – affichage horizontal (N) */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 1.5rem;
}

.events-grid figure {
  overflow: hidden;
  border-radius: 10px;
  background: rgba(0,0,0,0.25);
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  padding: 6px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.events-grid figure:hover {
  transform: translateY(-10px) scale(1.10) rotate(-1deg);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
}

.events-grid img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #00000033;
  border-radius: 10px;
}

.events-grid figcaption {
  padding: 8px 10px 10px;
  font-size: 0.85rem;
  line-height: 1.3;
  color: #ffffff;
  text-align: center;
}

/* FORMULAIRE CONTACT */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  margin-top: 0.3rem;
  padding: 0.6rem;
  border-radius: 10px;
  border: none;
}

.contact-form button {
  align-self: flex-start;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  border: none;
  background: #ffffff;
  color: #3b7fd8;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form button:hover {
  transform: scale(1.10);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  background: #f0f0f0; /* tu gardes ton effet existant */
}

/* PIED DE PAGE */
.site-footer {
  text-align: center;
  padding: 1rem 0 2rem;
  font-size: 0.9rem;
  color: #f0f0f0;
}

/* PARTICULARITES SMARTPHONES, TABLETTES, ... */
/* Tablettes et petits écrans (ex : iPad, tablette Android en portrait), et tailles inférieures */
@media (max-width: 900px) {
  .main-nav {
    flex-wrap: wrap;
    justify-content: center; 
    gap: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .main-nav a {
    font-size: 1.15rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 300px; /* optionnel, pour garder des proportions */
  }

  .tooltiptext {
    font-size: 0.78rem;
    padding: 8px 10px
  }
}

/* Smartphones (ex: iPhone, Android en portrait) et tailles inférieures */
@media (max-width: 600px) {
  .video-youtube {
    width: 100%;
    height: 100%;
    z-index: 4;
  }
}

