/* Import de belles polices */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Cinzel:wght@400;600&family=Open+Sans:wght@300;400&display=swap');


/* Réglages de base */
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: #f9f7f3;
  color: #2c2c2c;
  padding-top: 90px;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.5px;
}

h2 {
  font-size: 2.2em;
}

h3 {
  font-size: 1.8em;
}

/* Hiérarchie renforcée pour la page Borgo */
.page-borgo h2 {
  font-family: 'Cinzel', serif;
  font-size: 2.6em;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #9e4340;
  margin-top: 24px;
}

.page-borgo h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1em;
  letter-spacing: 0.3px;
  color: #2c2c2c;
  border-bottom: 2px solid #9e4340;
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 16px;
}

.page-borgo h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.5em;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #9e4340;
  margin: 16px 0 10px;
}



body.home-landing {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background: #f9f7f3;
  color: #2c2c2c;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.home-landing::before {
  content: none;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right:0;
  width: 100%;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  align-items: center;
  background: #9e4340; /* bandeau couleur maison */
  color: #f7f0e8;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  min-height: 70px; /* un peu plus fin */
  padding: 8px 18px;
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
}

header.hide {
  transform: translateY(-100%);
}

header img {
  height: 76px;
  width: auto;
}

header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9em;
  margin: 0;
  color: #f7f0e8;
}


main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

main h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3em;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: #1e1e1e;
}

main h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2em;
  margin-bottom: 10px;
  color: #1e1e1e;
}

main h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #1e1e1e;
}

main p {
  max-width: 600px;
  margin-bottom: 40px;
  color: #444;
  font-size: 1.1em;
  text-align: center;
}

.lang-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  text-align: right;
}

.lang-buttons a {
  background-color: #9e4340;
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1em;
}

.lang-buttons a:hover {
  background-color: #9e4340;
  transform: scale(1.05);
}

footer {
  text-align: center;
  font-size: 0.9em;
  color: #555;
  padding: 15px 10px;
  background-color: rgba(243,238,231,0.9);
}

a {
  text-decoration: none;
  color: #9e4340;
}

a:hover {
  color: #9e4340;
}

/* -------------------------------------------------------------
   Barre de navigation
-------------------------------------------------------------- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  align-items: center;
  justify-content: space-between;
  padding: 8px 30px;
  z-index: 1000;
  transition: top 0.3s ease-in-out; /* animation pour disparition */
}

nav h1 {
  font-size: 1.4em;
  white-space: normal; /* autorise le retour à la ligne si nécessaire */
  text-align: center; /* optionnel pour mobile */
}


nav ul {
  list-style: none;
  justify-content: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

nav ul li {
  display: inline;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s ease;
}
nav ul li a:hover {
  color: #9e4340;
  text-decoration: underline;
}
nav ul li a.active{
  font-weight: bold;
  border-bottom : 2px solid black;
}

/* menu mobile */
.nav-links {
  top: 100%; /* directement après le header */
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  align-items: center;
  order: 1;
  flex: 1 ;
  justify-content: center;
  gap: 1.1rem;
  margin: 0 16px;
  padding: 0;
}

.nav-links a {
  color: #f7f0e8;
  font-weight: 400;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 0.95em;
}

.nav-links a:hover {
  color: #ffe9d6;
}

.nav-links.show {
  display: flex;
}

.nav-links li a,
.book-link {
  white-space: nowrap;      /* empêche les retours à la ligne */
}
.book-link {
  padding: 6px 14px;
  font-size: 0.9rem;
  white-space: nowrap;
}


nav.menu-active .nav-links {
  display: flex;
}
/* Page active dans le menu */
.nav-links a.active {
  font-weight: 500;
  border-bottom: 2px solid #ffe9d6;
  color: #ffe9d6;
}

/* Hover menu */
.nav-links a:hover {
  color: #ffe9d6;
}


img {
  display: block;
  margin: 0 auto;
  border-radius: 0;
  width : 100%;
  height : auto
}
.photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.photo-row img {
  flex: 1;
  min-width: 250px;
}

/* Mise en page spécifique Activités : masonry souple + légendes au survol */
.page-activites .photo-row {
  column-count: 3;
  column-gap: 14px;
}

.page-activites .photo-row img {
  width: 100%;
  height: auto;
  margin: 0 0 14px;
  display: inline-block;
  break-inside: avoid;
  position: relative;
}

.page-activites .photo-row img::after {
  content: attr(alt);
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.75em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.page-activites .photo-row img:hover::after {
  opacity: 1;
  transform: translateY(0);
}


/* Menu principal */
.menu-links {
  flex: 1;
  justify-content: center;
  display: flex;
  gap: 20px;
  margin: 0;
}

.menu-links li a {
  text-decoration: none;
  white-space: nowrap; 
  color: #333;
  font-weight: 600;
  transition: color 0.2s ease;
}

.menu-links li a:hover {
  color: #9e4340;
}

/* Bouton "Book now" spécial */
.book-link {
  background-color: #9e4340;
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 20px;
  transition: background-color 0.3s;
  white-space: nowrap;
}
.book-link:hover {
  background-color: #9e4340;
}

/* Sélecteur de langues */
.lang-switcher {
  display: flex;
  gap: 10px;
  font-size: 1.2em;
}
.lang-switcher a {
  text-decoration: none;
}
.lang-switcher a:hover {
  opacity: 0.7;
}

/* --- MOBILE --- */
.menu-toggle {
  display: none;
  font-size: 1.8em;
  background: none;
  border: none;
  cursor: pointer;
  color: #f7f0e8;
  margin-left: 10px;
  order: 4;
}

/* -------------------------------------------------------------
   Sous-menu horizontal
-------------------------------------------------------------- */
.subnav {
  margin-top: 0px;
  text-align: center;
  padding: 20px;
  background-color: #f3eee7;
}

.subnav a {
  margin: 0 15px;
  font-weight: 700;
}

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 3S0px;
}

/* Contenu interne du header */
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}
/* -------------------------------------------------------------
   Sections
-------------------------------------------------------------- */
section {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
}


/* Section "SEA & BEACHES" en pleine largeur */
section.compact {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 0;
  text-align: center;
}

section.compact p {
  width: 100%;
  max-width: none;
  margin: 10px 0;
  line-height: 1.6;
}
section.compact img {
  border-radius: 0 ;
  box-shadow: none ;
   width: 100%;
  height: auto;
  object-fit: cover;
}

section, footer {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* -------------------------------------------------------------
   Bouton Réserver (flottant)
-------------------------------------------------------------- */
.floating-reserve-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #9e4340;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9em;
  z-index: 900;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: background-color 0.3s;
}

.floating-reserve-button:hover {
  background-color: #9e4340;
}

/* -------------------------------------------------------------
   Logo
-------------------------------------------------------------- */
.logo-title {
  display: flex;
  align-items: center;
  gap: 14px; /* espace entre le logo et le texte */
  order: 0;
  flex-shrink: 0;
}

.logo-img {
  height: 72px;
  width: auto;
}

.title-text h1 {
  font-size: 1.8rem;        /* titre principal */
  margin: 0;
  line-height: 1.1;
  font-weight: 700;
  color: #f7f0e8;
}

.title-text h2 {
  font-family: 'Cinzel', serif;
  font-size: 0.5rem;        /* plus petit */
  margin: 1px 0 0 0;        /* léger espace au-dessus */
  font-weight: 400;
  color: #f1dfd2;
  letter-spacing: 1px;
  text-transform: uppercase; /* joli rendu visuel */
}

.subtitle {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;  /* petit texte */
  font-weight: 500;   /* pas en gras si tu veux */
  margin-top: 5px;
  color: #fff;        /* contraste avec le fond */
}

.page-borgo .subtitle {
  font-size: 0.65rem;
  letter-spacing: 1px;
}


/* -------------------------------------------------------------
   Logo
-------------------------------------------------------------- */
/* --- LANGUE --- */
.language-switcher {
  display: none;
  position: absolute;
  right: 10px;
  top: 64px;
  background: #fff;
  border: 1px solid #9e4340;
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  gap: 8px;
  align-items: center;
  z-index: 1200;
}

.language-switcher a {
  color: #9e4340;
  text-decoration: none;
  padding: 2px 4px;
}

.language-switcher a.active {
  font-weight: 600;
  border-bottom: 2px solid #9e4340;
}

.language-switcher.open {
  display: flex !important;
}

@media (max-width: 1024px) {
  .language-switcher {
    position: absolute;
    top: 62px;
    right: 10px;
    left: 10px;
    width: auto;
    max-width: 320px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .language-switcher.open {
    display: flex !important;
  }
}

/* Bouton toggle langue (mobile) */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.92);
  color: #9e4340;
  border: 1px solid #d9b4b0;
  border-radius: 999px;
  padding: 3px 7px;
  font-weight: 400;
  font-size: 0.8em;
  letter-spacing: 0.25px;
  cursor: pointer;
  margin-left: auto;
  margin-right: 0;
  order: 3;
  flex-shrink: 0;
  box-shadow: 0 3px 9px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.lang-arrow {
  display: inline-block;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
}

.lang-toggle[aria-expanded="true"] .lang-arrow {
  transform: rotate(90deg);
}

.lang-toggle:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}


/* -------------------------------------------------------------
   Formulaire de réservation
-------------------------------------------------------------- */
.reservation-section form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.reservation-section label {
  font-weight: bold;
}

.reservation-section input,
.reservation-section select,
.reservation-section textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
}

.reservation-section button {
  padding: 12px;
  background-color: #9e4340;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1.1em;
  cursor: pointer;
}

.reservation-section button:hover {
  background-color: #9e4340;
}

/* -------------------------------------------------------------
   Hero (image de fond)
-------------------------------------------------------------- */

.hero {
  position: relative;
  width: 100%;
  height: 30vh; /* hauteur du fond : 20% de l’écran */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: black;
  overflow: hidden;
  background-size: cover;      /* couvre tout l’espace */
  background-position: center; /* bien centré */
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(2px) brightness(1.4); /* flou très léger + plus clair */
  transform: scale(1.05);
  z-index: 0;
  padding-top: 80px; /* hauteur approximative du header */
}


.hero-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  max-width: 800px;
}

.hero h1 {
  font-size: 2.5em;
  font-family: 'Cormorant Garamond', serif;
  margin-bottom: 0px;
}

.hero p {
  font-size: 1.1em;
  font-weight: 400;
  margin-top: 10px;
  line-height: 1.6;
  background-color: transparent;
}

/* --- Overrides home hero --- */
.hero::before {
  content: none !important;
}

.hero.home-hero {
  height: 65vh;
}

.hero.activities-hero {
  height: 65vh;
}

.page-activites .content section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-activites .content section.compact {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-activites h1,
.page-activites h2,
.page-activites h3 {
  text-align: center;
}

.page-activites .content p {
  text-align: left;
}

.intro-activities {
  max-width: 900px;
  margin: 30px auto 10px;
  padding: 0 20px;
  text-align: center;
}

.intro-activities h1 {
  margin-bottom: 12px;
}

.intro-activities p {
  margin: 0 auto;
}

/* -------------------------------------------------------------
   Footer
-------------------------------------------------------------- */
footer {
  background-color: #f3eee7;
  text-align: center;
  padding: 30px 10px;
  font-size: 0.9em;
  color: #555;
  margin-top: 60px;
}

/* -------------------------------------------------------------
   Equipements
-------------------------------------------------------------- */
.equipements {
  background-color: #f3eee7;
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.equipements h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #9e4340;
}

.equipements ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.equipements li {
  background: #fff;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  font-size: 0.95em;
}

/* -------------------------------------------------------------
   Galerie
-------------------------------------------------------------- */
.gallery-section {
  padding: 30px 10px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-section h2 {
  text-align: center;
  font-size: 2.2em;
  margin-bottom: 30px;
}

.gallery-grid {
  column-count: 4;
  column-gap: 14px;
}

.gallery-grid .gallery-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  break-inside: avoid;
  position: relative;
}

.gallery-grid .gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.25s ease;
}

.gallery-grid .caption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.8em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.gallery-grid .gallery-item:hover img {
  transform: scale(1.015);
}

.gallery-grid .gallery-item:hover .caption {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------
   Contact
-------------------------------------------------------------- */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
}

.contact-info, .contact-form {
  background-color: #f3eee7;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input, .contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
}

.contact-form button {
  background-color: #9e4340;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1em;
}

.contact-form button:hover {
  background-color: #9e4340;
}

/* =========================================================
   BOUTONS GÉNÉRIQUES (réutilisables)
========================================================= */
.button-container {
  text-align: center;
  margin-top: 30px;
}

.btn-outline {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid #9e4340;         /* couleur de ta charte */
  color: #9e4340;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  border-radius: 30px;               /* coins arrondis élégants */
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: #9e4340;
  color: white;
  transform: translateY(-2px);       /* petit effet de survol */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- SLIDESHOW --- */
.slideshow {
  width: 80%;
  margin: 70px auto 30px auto;
  position: relative;
  overflow: hidden;
  border-radius: 0px;
}

/* Taille fixe responsive */
.slideshow-container {
  position: relative;
  width: 100%;
  height: 70vh;          /* un tiers de la hauteur de l’écran */
  max-height: 900px;     /* limite sur grand écran */
  border-radius: 0px;
  overflow: hidden;
}

/* Images superposées */
.slideshow-container img {
  position: absolute;
  inset:0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* Image visible */
.slideshow-container img.active {
  opacity: 1;
}

/* Titre et texte sous le slideshow */
.slideshow h2 {
  text-align: center;
  margin-bottom: 15px;
}
/* Titre et texte sous le slideshow */
.slideshow h2 {
  text-align: center;
  margin-bottom: 15px;
}

/* --- Flèches --- */
.slideshow-container .prev,
.slideshow-container .next {
  position: absolute;
  bottom: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  color: #333;
  font-size: 20px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.slideshow-container .prev:hover,
.slideshow-container .next:hover {
  background-color: #9e4340;
  color: white;
}

.slideshow-container .prev {
  left: 15%;
}
.slideshow-container .next {
  right: 15%;
}

/* --- Petits points indicateurs --- */
.slideshow-dots {
  text-align: center;
  margin-top: 10px;
}

.slideshow-dots .dot {
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: rgba(160, 82, 45, 0.4);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.slideshow-dots .dot.active {
  background-color: #9e4340;
}

.slideshow-compact .slideshow-container {
  height: 55vh;
  max-height: 650px;
}

.hero-slideshow {
  width: 100%;
  margin: 0 auto 30px;
  padding: 0;
}

.hero-slideshow .slideshow-container {
  height: 50vh;
  max-height: 900px;
  border-radius: 0;
}

.hero-slideshow .prev,
.hero-slideshow .next {
  bottom: 24px;
}

/* -------------------------------------------------------------
   Responsive Design
-------------------------------------------------------------- */

/* --- Tablettes --- */
@media (max-width: 1024px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 2.6em;
  }

  h2 {
    font-size: 1.9em;
  }

  h3 {
    font-size: 1.5em;
  }

  .page-activites .photo-row {
    column-count: 2;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  .logo-title {
    width: 100%;
    justify-content: space-between;
  }


  .hero h1 {
    font-size: 3em;
  }

  .hero p {
    font-size: 1.3em;
  }

  section {
    padding: 40px 15px;
  }
  .gallery-section {
    padding: 25px 10px;
    max-width: 90%;
  }

  .gallery-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .gallery-grid {
    column-count: 3;
    column-gap: 14px;
  }

  .page-activites .photo-row {
    column-count: 2;
  }
  .page-borgo section img {
    width: 100%;
    height: auto;
  }

}

/* --- Mobiles --- */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2em;
  }

  h2 {
    font-size: 1.7em;
  }

  h3 {
    font-size: 1.4em;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 5px 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white; /* évite qu’il devienne transparent */
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 10px;
    display:none;
  }

  nav ul li {
    margin: 10px 0;
    text-align: center;
  }

  /* Nav links sortent du flux pour ne plus casser le header */
  .nav-links {
    position: absolute;
    top: 60px;
    right: 10px;
    left: auto;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: white;
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 1100;
  }

  .nav-links.show {
    display: flex;
  }

  .navbar-inner {
    flex-wrap: nowrap;
  }

    
  nav.menu-active ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 10px 0;
  }

  nav.active .menu-links {
    display: flex;
  }
  .navbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-title {    
      flex: 1 1 100%;}  
      
  .logo-img {   
    height: 48px;   
    margin-bottom: 0;} 
    
  .menu-toggle {   
    order: 1;   
    margin-left: 0;   
    margin-right: 8px;    
    display: block;  }  
    
  .language-switcher {    
    order: 3;   
    margin-left: auto;    
    display: flex; 
    align-items: center;  
  }
  
  .logo-img {
    height: 60px;
    margin-bottom: 10px;
  }

   .hero {
    height: 30vh; /* moins haut sur mobile */
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 1.8em;
  }

  .hero p {
    font-size: 1em;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  /* Borgo page mobile adjustments */
  .page-borgo h2 {
    font-size: 2em;
  }

  .page-borgo h3 {
    font-size: 1.6em;
  }

  .page-borgo h4 {
    font-size: 1.2em;
  }

  .page-borgo section img {
    width: 100%;
    height: auto;
  }


  .contact-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .floating-reserve-button {
    bottom: 15px;
    right: 15px;
    font-size: 0.8em;
    padding: 10px 18px;
  }

  .subnav {
    padding: 15px;
    font-size: 0.9em;
  }

  header {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    min-height: 60px;
  }
  /* header hide rule */
  header.hide { transform: translateY(-110%); transition: transform .28s ease-in-out; }
  header { transition: transform .28s ease-in-out; position: fixed; top:0; left:0; right:0; z-index:1000; }


  .lang-buttons a {
    width: 80%;
    text-align: center;
  }

  .menu-toggle {
    order: 1;
    margin-left: 0;
    margin-right: 8px;
    display: block;
  }

  .menu-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 10px 0;
    gap: 20px;
  }

  .gallery-section {
    padding: 25px 10px;
    max-width: 90%;
  }

  .gallery-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .gallery-grid {
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }


  .language-switcher {
    display: none;
  }
  .slideshow {
    width: 85%;
    margin: 40px auto;
  }
  .slideshow-container {
    height: 60vh; /* un peu moins haut sur téléphone */
    max-height: 420px;
  }
  .slideshow-compact .slideshow-container {
    height: 35vh;
    max-height: 300px;
  }
  .slideshow-container .prev,
  .slideshow-container .next {
    font-size: 16px;
    padding: 6px 10px;
    bottom: 10px;
  }

  /* On écarte les flèches sur les côtés plutôt qu'au centre */
  .slideshow-container .prev {
    left: 8px;
  }

  .slideshow-container .next {
    right: 8px;
  }

  /* Espacement du bas */
  .slideshow-dots {
    margin-top: 5px;
  }

  /* Images plus hautes pour les formats verticaux */
  .slideshow-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    max-height: none;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 70px;
    right: auto;
    left: 50px;
    z-index:1100;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    width: 30%;
    max-width: 300px;
  }

  .nav-links a {
    color: #9e4340;
  }

  .nav-links a.active {
    color: #9e4340;
    border-bottom: 2px solid #9e4340;
  }

  .nav-links a:hover {
    color: #9e4340;
  }

  .nav-links.show {
    display: flex;
    animation: slideDown 0.3s ease;
  }
  .menu-toggle {
    z-index: 1200; /* le bouton du menu reste cliquable */
  }
    /* --- Effet disparition du header au scroll --- */
  nav.hide {
    top: -100px; /* Fait disparaître le header */
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

}




/* --- Petits téléphones --- */
@media (max-width: 480px) {
  h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.4em;
  }

  nav h1 {
    font-size: 1.5em;
  }

  .hero h1 {
    font-size: 1.8em;
  }

  .hero p {
    font-size: 1em;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .floating-reserve-button {
    padding: 8px 14px;
    font-size: 0.8em;
  }
  .menu-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 8px 0;
    gap: 8px;
  }
  .slideshow-container {
    height: 25vh; /* un peu moins haut sur téléphone */
    max-height: 250px;
  }
  .slideshow-compact .slideshow-container {
    height: 22vh;
    max-height: 220px;
  }
  .slideshow-container .prev,
  .slideshow-container .next {
    font-size: 14px;
    padding: 5px 8px;
  }

  /* Index: duo photos Borgo (mobile override) */
  .b3-photo-row img:first-child {
    width: 50% !important;
  }

  .b3-photo-row img:last-child {
    width: 100% !important;
  }

  .slideshow-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    max-height: none;
  }

  nav.active .menu-links {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .lang-switcher {
    margin-top: 8px;
  }

  .gallery-grid {
    column-count: 2;
  }

  .page-activites .photo-row {
    column-count: 1;
  }

  section,
  footer {
    max-width: 100%;
    padding: 20px 14px;
  }

  /* Header layout mobile: toggle à gauche, langue à droite, alignés */
.navbar-inner {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* autorise le retour en dessous */
  width: 100%;
  gap: 6px;
}

}


/* Overrides tablettes/mobiles : langues sous le menu, toggle masqué quand ouvert */
@media (max-width: 1024px) {
  header {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .navbar-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;
    gap: 6px;
    position: relative;
  }

  .logo-title {
    order: 1;
    flex: 1 1 100%;
  }

  .logo-img {
    height: 50px;
    margin-bottom: 0;
  }

  .lang-toggle {
    display: inline-flex;
    order: 0;
    background: rgba(255,255,255,0.92);
    color: #9e4340;
    border: 1px solid #d9b4b0;
    border-radius: 999px;
    padding: 4px 8px;
  }

  /* always show burger on medium screens */
  .menu-toggle {
    display: block;
    order: 2;
    margin-right: 8px;
    align-self: center;
    padding: 6px;
    line-height: 1;
    color: white;
  }

  /* nav links as floating panel */
  .nav-links {
    position: absolute;
    top: 60px;
    right: 10px;
    left: auto;
    display: none;
    color: #9e4340;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 1100;
    background: #fff;
    width: auto;
    max-width: 260px;
  }

  .nav-links.show {
    display: flex;
  }

  /* readable links on white background */
  .nav-links a {
    color: #9e4340 !important;
  }

  .nav-links a:hover {
    color: #9e4340 !important;
  }

  /* hide inline nav list */
  nav ul {
    display: none !important;
  }

  .language-switcher {
    order: 3;
    position: absolute;
    top: 60px;
    left: 10px;
    right: auto;
    width: auto;
    max-width: 260px;
    margin: 0;
    padding: 10px 12px;
    display: none;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #9e4340;
    margin-left: 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 1100;
  }

  .language-switcher a {
    color: #9e4340;
  }

  .language-switcher a.active {
    color: #9e4340;
    border-bottom: 2px solid #9e4340;
  }

  .language-switcher.open {
    display: flex;
  }
}

/* Ensure toggle remains visible when opened */
.menu-toggle[aria-expanded="true"] {
  display: block !important;
}










