/* ========================================================= */
/* 🌌 BASE / RESET                                           */
/* ========================================================= */

html, body {
  margin: 0;
  padding: 0;
  background-color: #3B3B3B;
}

body {
  font-family: Arial, sans-serif;
  color: white;
  font-size: 20px;
}

* {
  box-sizing: border-box;
}

/* ========================================================= */
/* 🏠 ACCUEIL – MENU ALIGNÉ À DROITE                         */
/* ========================================================= */

.home .nav-container {
  justify-content: flex-end;
}

.home .nav-links {
  margin-left: 0;
}

/* ========================================================= */
/* 🧭 NAVIGATION / MENU                                      */
/* ========================================================= */

.navbar {
  background-color: #1f1f1f;
  padding: 15px 30px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  height: 128px;
}

/* Liens */
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  position: relative;
}

/* Effet underline */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background-color: white;
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ========================================================= */
/* 📱 MENU MOBILE (BURGER)                                   */
/* ========================================================= */

#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    background-color: #1f1f1f;
    flex-direction: column;
    display: none;
    z-index: 100;
  }

  .nav-links li {
    text-align: center;
    padding: 15px 0;
  }

  #menu-toggle:checked + .menu-icon + .nav-links {
    display: flex;
  }
}

/* ========================================================= */
/* 📄 CONTENU CLASSIQUE (pages texte)                        */
/* ========================================================= */

.content {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

body.page-layout .content:not(.page-content):not(.contact-content) {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Liens */
a {
  color: white;
}

a:hover {
  text-decoration: underline;
}

/* ========================================================= */
/* 📅 CALENDRIER                                             */
/* ========================================================= */

.calendar {
  margin-top: 20px;
}

.event {
  background-color: #2a2a2a;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-left: 4px solid white;
}

.date {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.event .title {
  display: block;
  font-size: 1.1rem;
}

.event-desc {
  display: block;
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.92;
}

.event-desc a {
  color: #9ec5f0;
}

.calendar-month {
  margin: 35px 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #555;
  font-size: 1.4rem;
}

.event.is-past,
.calendar-month.is-past {
  display: none;
}

.calendar-empty {
  margin-top: 20px;
  padding: 20px;
  background: #2a2a2a;
  border-radius: 8px;
  text-align: center;
}

/* ========================================================= */
/* 🖼️ IMAGES GÉNÉRALES                                       */
/* ========================================================= */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================================= */
/* 🔭 ACTIVITÉS — FULL WIDTH (CORRIGÉ)                       */
/* ========================================================= */

/* ⚠️ IMPORTANT :
   - PAS de max-width ici
   - PAS de margin auto
   => les cartes prennent toute la largeur écran
*/

.activities {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 40px;
}

/* Carte activité */
.activity-card {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.activity-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.activity-card-link:hover {
  filter: brightness(1.06);
}

.activity-card-link:hover .activity-overlay p {
  text-decoration: none;
}

/* Fond image */
.activity-bg {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

/* Voile sombre */
.activity-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* Texte sur image */
.activity-overlay {
  position: relative;
  padding: 20px;
}

.activity-overlay h2 {
  margin: 0 0 10px 0;
}

.activity-overlay p {
  margin: 0;
  opacity: 0.95;
}

/* ========================================================= */
/* 🔧 FIX TEXTE ACTIVITÉS (PAS DE TRONCATURE)                */
/* ========================================================= */

.activity-overlay p {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  display: block;
}

/* ========================================================= */
/* 📱 RESPONSIVE ACTIVITÉS                                   */
/* ========================================================= */

@media (max-width: 600px) {
  .activities {
    padding: 20px;
  }
}

/* ========================================================= */
/* 🖼️ GALERIE — PAGE INTERMÉDIAIRE (HUB)                     */
/* ========================================================= */

.gallery-hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-hub-card {
  display: block;
  min-height: 280px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background-color: #2a2a2a;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: white;
  transition: transform 0.2s, filter 0.2s;
}

.gallery-hub-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.2) 100%);
}

.gallery-hub-card:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
  text-decoration: none;
  color: white;
}

.gallery-hub-overlay {
  position: relative;
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.gallery-hub-overlay h2 {
  margin: 0 0 8px 0;
  font-size: 1.35rem;
}

.gallery-hub-overlay p {
  margin: 0 0 12px 0;
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: 0.92;
}

.gallery-hub-cta {
  font-weight: bold;
  font-size: 0.95rem;
  color: #9ec5f0;
}

.gallery-hub-card:hover .gallery-hub-cta {
  color: #e6cf00;
}

.gallery-back {
  margin: 0 0 24px 0;
}

.gallery-back a {
  color: #9ec5f0;
  font-weight: 600;
  text-decoration: none;
}

.gallery-back a:hover {
  color: #e6cf00;
}

.activity-back {
  margin: 0 0 24px 0;
}

.activity-back a {
  color: #9ec5f0;
  font-weight: 600;
  text-decoration: none;
}

.activity-back a:hover {
  color: #e6cf00;
}

.installation-back {
  margin: 0 0 24px 0;
}

.installation-back a {
  color: #9ec5f0;
  font-weight: 600;
  text-decoration: none;
}

.installation-back a:hover {
  color: #e6cf00;
}

/* ========================================================= */
/* 📷 GALERIE INSTALLATIONS                                  */
/* ========================================================= */

.installation-photos {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #555;
}

.installation-photos h2 {
  margin: 0 0 20px 0;
}

.installation-gallery {
  margin-top: 0;
}

.installation-gallery figure.wide {
  grid-column: 1 / -1;
}

.installation-gallery figure.wide img {
  height: auto;
  max-height: 340px;
  object-fit: contain;
  background: #0a0a0a;
}

.gallery figcaption {
  padding: 12px;
  font-size: 14px;
  background: #1a1a1a;
  line-height: 1.4;
  color: #ccc;
}

.page-notice {
  background: #2a2a2a;
  border-left: 4px solid #e6cf00;
  padding: 16px 18px;
  margin: 0 0 28px 0;
  font-size: 0.98rem;
  line-height: 1.5;
  opacity: 0.95;
}

.activity-cta {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #555;
}

.page-content .gallery {
  max-width: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  .gallery-hub {
    padding: 20px;
  }

  .gallery-hub-card,
  .gallery-hub-overlay {
    min-height: 220px;
  }
}

/* ========================================================= */
/* 🌌 GALERIE ASTROPHOTO (VERSION PRO)                       */
/* ========================================================= */

.gallery-section {
  padding: 40px 20px;
}

.gallery-section h2 {
  max-width: 1200px;
  margin: 0 auto 20px auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Carte photo */
.gallery figure {
  background-color: #1f1f1f;
  border-radius: 6px;
  overflow: hidden;
  margin: 0;
  cursor: pointer;
  transition: 0.2s;
}

.gallery figure:hover {
  transform: scale(1.02);
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Texte visible sans clic */
.gallery .object-name {
  padding: 12px;
  font-size: 14px;
  background:#1a1a1a;
}

/* ========================================================= */
/* 🔍 LIGHTBOX VERSION FICHE ASTRO                           */
/* ========================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}

/* Conteneur principal */
.lightbox-content {
  display: flex;
  gap: 40px;
  max-width: 1400px;
  width: 100%;
  align-items: flex-start;
}

/* Image gauche */
.lightbox-image img {
  max-width: 70vw;
  max-height: 90vh;
  object-fit: contain;
}

/* Infos droite */
.lightbox-info {
  max-width: 350px;
  font-size: 15px;
  line-height: 1.5;
}

.lightbox-info h3 {
  margin-top:0;
}

/* ========================================================= */
/* 📱 LIGHTBOX MOBILE                                        */
/* ========================================================= */

@media (max-width: 900px) {

  .lightbox-content {
    flex-direction: column;
    align-items:center;
  }

  .lightbox-image img {
    max-width: 95vw;
  }

  .lightbox-info {
    max-width: 90vw;
  }

}


/* ========================================================= */
/* 🌌 HERO ACCUEIL                                           */
/* ========================================================= */

.hero {
  height: 80vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.01);
}

.hero-overlay {
  position: relative;
  text-align: center;
  padding: 20px;
}

.hero-overlay h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero-overlay p {
  font-size: 1.3rem;
  opacity: 1;
}

.hero {
  background-image: url("img/hero-ete.jpg");
}

/* ========================================================= */
/* 📘 BOUTON FACEBOOK DANS LE HERO                           */
/* ========================================================= */

.hero {
  position: relative;
}

.hero-facebook {
  position: absolute;
  top: 20px;
  right: 20px;

  background: #256fbe;
  color: white;

  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;

  z-index: 10;
  transition: background 0.2s;
}

.hero-facebook:hover {
  background: #1f57a0;
}

/* Hero accueil compact — bandeau Vendredis visible sans scroll */
.home .hero {
  height: clamp(195px, 34vh, 340px);
  min-height: 195px;
  max-height: 340px;
}

.home .hero-overlay {
  padding: 10px 16px;
}

.home .hero-overlay h1 {
  font-size: clamp(1.25rem, 3.5vw, 1.85rem);
  margin-bottom: 6px;
  line-height: 1.2;
}

.home .hero-overlay p {
  font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  margin: 0;
}

.home .hero-facebook {
  top: 10px;
  right: 10px;
  padding: 7px 12px;
  font-size: 13px;
}

@media (max-width: 768px) {
  .home .hero {
    height: clamp(165px, 28vh, 240px);
    min-height: 165px;
    max-height: 240px;
  }

  .home .hero-overlay {
    padding: 8px 12px;
  }

  .home .hero-overlay h1 {
    font-size: 1.2rem;
  }

  .home .hero-overlay p {
    font-size: 0.85rem;
  }

  .home .hero-facebook {
    top: 8px;
    right: 8px;
    padding: 6px 10px;
    font-size: 11px;
  }
}


/* ========================================================= */
/* 🏠 ACCUEIL – BLOCS                                        */
/* ========================================================= */

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

.home-card {
  background-color: #2a2a2a;
  padding: 25px;
  border-radius: 8px;
}

.home-card h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.home-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: border-color 0.2s, transform 0.2s, background-color 0.2s;
}

.home-card-link:hover {
  text-decoration: none;
  color: white;
  border-color: #256fbe;
  background-color: #333;
  transform: translateY(-2px);
}

.home-card-cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: bold;
  color: #9ec5f0;
}

.home-card-link:hover .home-card-cta {
  color: #e6cf00;
}

/* ========================================================= */
/* 📄 MISE EN PAGE INTÉRIEURE (contact, pages texte…)         */
/* ========================================================= */

.page-hero,
.contact-hero {
  text-align: center;
  padding: 50px 20px 35px;
  background: linear-gradient(180deg, #1f1f1f 0%, #3b3b3b 100%);
  border-bottom: 1px solid #4a4a4a;
}

.page-hero h1,
.contact-hero h1 {
  margin: 0 0 12px 0;
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.page-hero p,
.contact-hero p {
  margin: 0 auto;
  max-width: 640px;
  font-size: 1.1rem;
  line-height: 1.5;
  opacity: 0.92;
}

.page-content,
.contact-content {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding: 40px 20px;
}

.page-content .content,
.contact-content.content {
  max-width: none;
  margin: 0;
  padding: 0;
}

.page-lead,
.contact-lead {
  font-size: 1.1rem;
  line-height: 1.55;
  margin-bottom: 32px;
}

.page-panel {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 24px 26px;
  margin-bottom: 20px;
}

.page-content--calendar .legend-wrapper {
  max-width: none;
  margin: 0 0 24px 0;
  padding: 0;
}

.page-content--home {
  padding-top: 32px;
  padding-bottom: 0;
  text-align: center;
}

.page-content--home .page-lead {
  margin-bottom: 0;
}

#calendar-intro {
  margin: 0 auto;
  max-width: 640px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.contact-card {
  background: #2a2a2a;
  border: 1px solid #444;
  border-left: 4px solid #256fbe;
  border-radius: 8px;
  padding: 24px 26px;
}

.contact-card-label {
  display: block;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ec5f0;
  margin-bottom: 10px;
}

.contact-card-email {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  color: white;
  margin-bottom: 10px;
  word-break: break-all;
}

.contact-card-email:hover {
  color: #e6cf00;
  text-decoration: none;
}

.contact-card-note {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.4;
}

.contact-facebook {
  text-align: center;
  margin: 0 0 40px 0;
  padding: 16px;
  background: #2a2a2a;
  border-radius: 8px;
}

.contact-facebook a {
  color: #9ec5f0;
  font-weight: 600;
}

.contact-facebook a:hover {
  color: #e6cf00;
}

.contact-legal {
  margin-top: 10px;
  padding-top: 32px;
  border-top: 1px solid #555;
}

.contact-legal > h2 {
  margin: 0 0 24px 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.contact-legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.contact-legal-block {
  background: #2a2a2a;
  padding: 18px 20px;
  border-radius: 8px;
}

.contact-legal-block h3 {
  margin: 0 0 10px 0;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #aaa;
}

.contact-legal-block p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.contact-legal-text p {
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.88;
  margin: 0 0 14px 0;
}

@media (max-width: 768px) {
  .page-hero h1,
  .contact-hero h1 {
    font-size: 1.7rem;
  }

  .page-content,
  .contact-content {
    padding: 28px 16px;
  }
}

/* ========================================================= */
/* ☀️ ACCUEIL – VENDREDIS DE L'ÉTÉ (MISE EN AVANT)          */
/* ========================================================= */

.home-event-feature {
  display: block;
  margin: 0;
  padding: 0;
  text-decoration: none;
  color: white;
  background: #0a1f3d;
  border-top: 5px solid #e6cf00;
  border-bottom: 5px solid #e6cf00;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
  transition: filter 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.home-event-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(37, 111, 190, 0.55) 0%,
    rgba(10, 31, 61, 0.92) 45%,
    rgba(10, 31, 61, 0.98) 100%
  );
  pointer-events: none;
}

.home-event-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 40px 34px;
}

.home-event-feature:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  text-decoration: none;
  color: white;
}

.home-event-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #e6cf00;
  color: #1a1a1a;
  padding: 7px 14px;
  border-radius: 4px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.home-event-feature h2 {
  margin: 0 0 16px 0;
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.home-event-next {
  display: block;
  margin: 0 0 14px 0;
  padding: 14px 18px;
  font-size: 1.2rem;
  line-height: 1.45;
  max-width: 820px;
  background: rgba(0, 0, 0, 0.4);
  border-left: 5px solid #e6cf00;
  border-radius: 0 6px 6px 0;
}

.home-event-next strong {
  color: #fff;
}

.home-event-next--today {
  background: rgba(37, 111, 190, 0.45);
  border-left-color: #fff;
}

.home-event-next--ended {
  opacity: 0.9;
  font-size: 1.05rem;
}

.home-event-details {
  margin: 0 0 12px 0;
  font-size: 1.05rem;
  font-weight: 500;
  opacity: 1;
  max-width: 820px;
}

.home-event-meteo {
  margin: 0 0 18px 0;
  font-size: 0.98rem;
  line-height: 1.45;
  max-width: 820px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.home-event-meteo strong {
  color: #e6cf00;
}

.home-event-meteo--etude {
  border-color: rgba(230, 207, 0, 0.35);
  background: rgba(230, 207, 0, 0.1);
}

.home-event-meteo--nuageux {
  border-color: rgba(255, 183, 77, 0.45);
  background: rgba(255, 152, 0, 0.12);
}

.home-event-meteo--nuageux strong {
  color: #ffb74d;
}

.home-event-meteo--degage {
  border-color: rgba(129, 199, 132, 0.45);
  background: rgba(76, 175, 80, 0.12);
}

.home-event-meteo--degage strong {
  color: #81c784;
}

.home-event-meteo--restreint {
  border-color: rgba(239, 83, 80, 0.45);
  background: rgba(211, 47, 47, 0.15);
}

.home-event-meteo--restreint strong {
  color: #ef5350;
}

.home-event-cta {
  display: inline-block;
  font-weight: 700;
  font-size: 1.12rem;
  color: #9ec5f0;
}

.home-event-feature:hover .home-event-cta {
  color: #e6cf00;
}

@media (max-width: 768px) {
  .home-event-inner {
    padding: 22px 18px 24px;
  }

  .home-event-feature h2 {
    font-size: 1.55rem;
  }

  .home-event-next {
    font-size: 1.05rem;
    padding: 12px 14px;
  }
}

/* ========================================================= */
/* ☀️ PAGE VENDREDIS DE L'ÉTÉ                                */
/* ========================================================= */

.vendredis-hero,
.activity-hero {
  height: 45vh;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid #4a4a4a;
}

.vendredis-hero::before,
.activity-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(31, 31, 31, 0.35));
}

.vendredis-hero-overlay,
.activity-hero-overlay {
  position: relative;
  padding: 30px 40px;
  width: 100%;
}

.vendredis-hero-overlay h1,
.activity-hero-overlay h1 {
  margin: 0 0 8px 0;
  font-size: 2.2rem;
}

.vendredis-hero-overlay p,
.activity-hero-overlay p {
  margin: 0;
  font-size: 1.2rem;
  opacity: 0.95;
}

.vendredis-lead {
  font-size: 1.15rem;
}

.vendredis-content ul {
  padding-left: 1.4em;
  line-height: 1.6;
}

.vendredis-content li {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .vendredis-hero-overlay,
.activity-hero-overlay {
    padding: 20px;
  }

  .vendredis-hero-overlay h1,
  .activity-hero-overlay h1 {
    font-size: 1.6rem;
  }
}

/* ========================================================= */
/* 🌌 CALENDRIER + LÉGENDE                                   */
/* ========================================================= */

/* Conteneur principal du calendrier */
.calendar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================================= */
/* 📅 ÉVÉNEMENTS                                             */
/* ========================================================= */

.event {
  background:#1f1f1f;
  padding:15px;
  margin-bottom:15px;
  border-left:6px solid white;
}

.event.astro {
  border-left-color: #256fbe;
}

.event.lancement {
  border-left-color: #e6cf00;
}

.event.asso {
  border-left-color: #ffffff;
}

/* ========================================================= */
/* 📘 LÉGENDE                                                */
/* ========================================================= */

.legend-wrapper {
  max-width:1200px;
  margin:30px auto;
  padding:0 20px;
}

.legend {

  margin-top: 25px;
  width:100%;
  max-width:1200px;

  margin-left:auto;
  margin-right:auto;

  padding-left:20px;
  padding-right:20px;

  display:flex;
  gap:20px;
  flex-wrap:wrap;
}

.legend-item {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:20px;
}

.legend-color {
  width:14px;
  height:14px;
  border-radius:3px;
}

.legend-color.astro { background:#256fbe; }
.legend-color.launch { background:#e6cf00; }
.legend-color.asso { background:#ffffff; }

/* ========================================================= */
/* 📱 OPTIMISATION MOBILE                                    */
/* ========================================================= */

@media (max-width: 768px) {

  body {
    font-size: 20px;
  }

  .content {
    margin: 25px auto;
    padding: 0 16px;
  }

  /* Menu : un peu plus gros */
  .nav-links a {
    font-size: 18px;
  }

  /* Activités : plus lisible */
  .activities {
    padding: 20px;
    gap: 16px;
  }

  .activity-overlay h2 {
    font-size: 22px;
  }

  .activity-overlay p {
    font-size: 18px;
    line-height: 1.4;
  }

  /* Galerie : images + légendes */
  .gallery {
    gap: 16px;
    padding: 0 10px;
  }

  .gallery figcaption {
    font-size: 15px;
  }

  .photo {
  position: relative;
}

  .astro-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.85);
  color: white;
  padding: 12px;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0;
  transition: 0.3s;
}

.photo:hover .astro-info {
  opacity: 1;
}

  /* Calendrier : plus confortable */
  .event {
    font-size: 18px;
  }
}