



/* Header après scroll pour effet liquid glass */
header.scrolled {
  background: rgba(255, 255, 255, 0.212);   /* Fond semi-transparent */
  color: #000;                             /* Texte noir */
  backdrop-filter: blur(12px);             /* Flou “liquid glass” */
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2); /* Ombre plus douce et large */
}

header img {
  height: 50px;
  transition: filter 0.3s ease;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: inherit;                        /* S’adapte à la couleur du header */
  font-weight: 600;
  transition: color 0.2s ease;
}

nav a:hover { color: #00bfff; }          /* Bleu clair au survol */

/* ------------------- HERO ------------------- */
.hero {
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: #ffffff;
}

.hero h1 { font-size: clamp(28px, 5vw, 48px); margin: 0 0 8px; }

/* ------------------- GALERIE ------------------- */
.galerie { padding: 56px 24px; text-align: center; }

.photos {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
}

.photos img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  transition: transform .3s ease;
}

.photos img:hover { transform: translateY(-2px) scale(1.02); }

/* ------------------- SECTION CONTACT ------------------- */
.contact {
  padding: 60px 20px;
  background: #d6d4d4;
  text-align: center;
}

.contact h1, .contact h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #ffffff;
}

/* Container contact */
.contact-container {
  display: flex;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.contact-container form,
.contact-container .map,
.contact-container .horaires { flex: 1; min-width: 280px; }

/* Formulaire */
.contact-container form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.contact-container form input,
.contact-container form textarea {
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  outline: none;
  transition: border 0.2s;
  width: 100%;
  resize: vertical;
}

.contact-container form input:focus,
.contact-container form textarea:focus { border-color: #007aff; }

.contact-container form button {
  padding: 12px;
  font-size: 16px;
  background: #007aff;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-container form button:hover { background: #005ecb; }

/* Map */
.contact-container .map {
  height: 450px;
  min-height: 450px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.contact-container .map iframe { width: 100%; height: 100%; border-radius: 10px; }

/* Horaires */
.horaires {
  background: #000000;
  padding: 20px;
  border-radius: 12px;
}

.horaires h2 { margin-bottom: 20px; }

/* ------------------- SOUS-MENU ------------------- */
.has-submenu { position: relative; }

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #000;                 /* Sous-menu noir */
  padding: 10px 0;
  list-style: none;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  min-width: 180px;
  z-index: 1000;
}

.submenu li a {
  display: block;
  padding: 10px 16px;
  color: #fff;
  text-decoration: none;
  font-weight: 400;
}

.submenu li a:hover {
  background: rgba(255,255,255,0.1);
  color: #00bfff;
}

/* Hover desktop */
.has-submenu:hover .submenu { display: block; }

/* ------------------- ANIMATIONS ------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* ------------------- SECTION PAGE DIRECTION ------------------- */
.pagedirection-container {
  display: flex;                
  justify-content: center;      
  gap: 40px;                    
  margin-top: 40px;
  flex-wrap: wrap;              
}

.pagedirection {
  width: 400px;                 
  text-align: center; 
}

.pagedirection img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
}

.pagedirection h2 { margin-bottom: 20px; color: #222; font-size: 1.6rem; }
.pagedirection p { margin: 0; font-size: 1rem; color: #333; }

/* ------------------- FOOTER ------------------- */
footer { text-align: center; padding: 20px; background: #f1f1f1; color: #222; }

/* ------------------- RESPONSIVE ------------------- */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  nav ul {
    position: absolute;
    right: 16px;
    top: 64px;
    display: none;
    flex-direction: column;
    gap: 14px;
    background: #000;                 /* Menu mobile noir */
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,.3);
  }

  nav ul.show { display: flex; }

  .submenu {
    position: static;
    display: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }

  .submenu.show { display: block; }

  .contact-container { flex-direction: column; gap: 20px; }
  .contact-container .map { min-height: 300px; height: auto; }
}

/* ------------------- SECTION NEWS ------------------- */

#news {
  text-align: center;
}

#news h1 {
  margin-bottom: 10px;
  font-size: 1.8em;
}

/* Conteneur */
#news .images-full {
  display: flex;
  width: 100vw;           /* largeur totale de l’écran */
  height: auto;
  margin: 0;
  padding: 0;
}

/* Images côte à côte et entières */
#news .images-full img {
  width: 50vw;            /* chaque image prend la moitié de l’écran */
  height: auto;           /* garde les proportions naturelles */
  margin: 0;
  padding: 0;
  display: block;
  object-fit: contain;    /* ne coupe pas l’image */
}

#news {
  background: #000;               /* Fond noir */
  color: #fff;                    /* Texte blanc */
  text-align: center;
  padding: 40px 20px;
}

.header-center {
  flex: 1;
  text-align: center;
}

.header-center img {
  height: 50px;           /* ajuste la taille selon ton header */
  width: auto;
  transition: transform 0.3s ease;
}

.header-center img:hover {
  transform: scale(1.05); /*  effet zozoom au survol */
}

/* cible le SVG dans le lien (et pas seulement les <img>) */
nav ul li a svg {
  height: 20px;       /* ajuste la taille si besoin */
  width: auto;
  display: block;     /* empêche les décalages d'alignement inline */
  vertical-align: middle;
  transform: translateY(4px); /* valeur de base */
  transition: transform .15s;
}

/* Couleur des liens quand le header est en mode “liquid glass” */
header.scrolled nav a {
  color: #000 !important;
}

/* Et le survol reste bleu clair */
header.scrolled nav a:hover {
  color: #00bfff !important;
}

/* Pour le menu burger : les barres deviennent noires aussi */
header.scrolled .menu-toggle span {
  background: #000;
}

/* ----- Sous-menu par défaut ----- */
.submenu {
  background: rgba(0, 0, 0, 0.8);            /* noir semi-transparent */
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s ease, color 0.3s ease;
}

/* Liens à l’intérieur du sous-menu */
.submenu li a {
  color: inherit;
  transition: color 0.3s ease, background 0.3s ease;
}

/* Hover : bleu clair */
.submenu li a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #00bfff;
}

/* ----- Sous-menu quand le header a la classe “scrolled” ----- */
header.scrolled .submenu {
  background: rgba(255, 255, 255, 0.7);      /* fond clair semi-transparent */
  color: #000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Les liens du sous-menu deviennent noirs */
header.scrolled .submenu li a {
  color: #000;
}

/* Et au survol, restent bleus */
header.scrolled .submenu li a:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #00bfff;
}

