/* =========================================================
   LE MAS DU NAOC — Feuille de style principale
   Charte validée le 30/07/2026 :
   - Fond blanc
   - Police Helvetica Neue / Helvetica / Arial, graisse fine (300)
   - Vert cyprès en couleur principale d'accent
   - Terracotta en touche ponctuelle (CTA réservation)
   Toute modification de couleur ou de police se fait ICI,
   dans les variables ci-dessous : le reste du site suit automatiquement.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap');

:root {
  /* Couleurs */
  --color-bg: #FFFFFF;
  --color-text: #5A5748;
  --color-heading: #596e4e;      /* vert cyprès - titres, nav, accents, boutons */
  --color-heading-light: #6B7A6E;
  --color-accent: #a0997e;       /* pierre - CTA réservation uniquement */
  --color-muted: #8A8578;
  --color-border: #E4E1D6;
  --color-footer-bg: #FFFFFF;

  /* Typographie */
  --font-main: 'Poppins', 'Avenir Next', 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --weight-light: 300;
  --weight-regular: 400;

  /* Mise en page */
  --container-width: 1140px;
  --spacing-unit: 8px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  font-weight: var(--weight-light);
  font-size: 15px;
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* =========================================================
   EN-TETE / NAVIGATION
   ========================================================= */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  max-width: var(--container-width);
  margin: 0 auto;
  /* Menu flottant : reste visible en haut de l'écran au scroll */
  position: sticky;
  top: 0;
  z-index: 200;
}

/* Fond du menu flottant : un bandeau blanc semi-transparent (effet
   verre dépoli) qui s'étend sur 100% de la largeur de l'écran, même si
   le contenu du menu reste centré sur la largeur du site. */
.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
}

.site-logo {
  font-size: 18px;
  letter-spacing: 1.5px;
  font-weight: var(--weight-light);
  color: var(--color-heading);
}

.site-logo img {
  height: 97px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--color-text);
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--color-heading);
}

.site-nav .lang-switch {
  border-left: 0.5px solid var(--color-border);
  padding-left: 22px;
}

.site-nav .lang-switch a,
.site-nav .lang-switch strong {
  padding: 0;
  border-bottom: none;
  width: auto;
  display: inline;
}

/* Sous-menu (ex: Slow-living > A deux pas / Focus) : au survol sur
   ordinateur, toujours visible et indenté sur mobile */
.has-sub {
  position: relative;
}

.has-sub > a::after {
  content: " \25BE";
  font-size: 9px;
}

.sub-nav {
  display: none;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  position: absolute;
  top: 100%;
  left: 0;
  background: #FFFFFF;
  border: 0.5px solid var(--color-border);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  min-width: 170px;
  z-index: 30;
  flex-direction: column;
}

.has-sub:hover .sub-nav {
  display: flex;
}

.sub-nav a {
  display: block;
  padding: 10px 16px;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-text);
  white-space: nowrap;
}

.sub-nav a:hover {
  color: var(--color-heading);
}

/* Bascule menu mobile (bouton "hamburger", masqué sur ordinateur) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--color-heading);
}

/* =========================================================
   BANDEAU / HERO (grande photo pleine largeur)
   ========================================================= */

.hero {
  position: relative;
  height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

/* Photo de couverture agrandie de 40% - utilisée sur la page d'accueil uniquement */
.hero-tall {
  height: 588px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(30,25,15,0.40), rgba(30,25,15,0.05));
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 28px 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-text {
  color: #FFFFFF;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 32px;
  font-weight: var(--weight-light);
  line-height: 1.25;
  max-width: 480px;
  margin: 0;
}

/* Bouton réservation - fond vert cyprès, accent terracotta au survol */
.btn-booking {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--color-heading);
  padding: 13px 24px;
  border-radius: 2px;
}

.btn-booking:hover {
  background: var(--color-accent);
  color: #FFFFFF;
}

/* =========================================================
   CONTENU / SECTIONS
   ========================================================= */

.intro {
  max-width: var(--container-width);
  padding: 48px 28px 8px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text);
}

/* Grand titre centré en tête de page (ex. Inside / Outside),
   au moins 3x la taille du texte de description qui suit. */
.page-title-big {
  text-align: center;
  font-size: 46px;
  font-weight: var(--weight-light);
  color: var(--color-heading);
  letter-spacing: 1px;
  margin: 48px 28px 0;
}

.section {
  padding: 40px 28px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* Grille resserrée pour les vignettes de presse (page Focus) */
.grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.focus-desc {
  font-size: 12px;
  color: var(--color-muted);
  text-align: center;
  margin: 4px 0 0;
  line-height: 1.4;
}

/* Fiche chambre/appartement en 2 colonnes empilées verticalement :
   photo (proportions d'origine conservées) à gauche, descriptif à
   droite. Les fiches se lisent donc les unes sous les autres. */
.room-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}

.room-row:last-child {
  margin-bottom: 0;
}

/* Ligne fine centrée sur 80% de la largeur de l'écran, quelle que
   soit la largeur du conteneur parent (technique de centrage par
   rapport à la fenêtre plutôt qu'au bloc parent) */
.divider {
  border: none;
  border-top: 0.5px solid var(--color-border);
  width: 80vw;
  max-width: 80vw;
  margin: 0;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.room-photo {
  width: 100%;
  aspect-ratio: 2 / 3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 4px;
  margin-bottom: 14px;
}

.card-photo {
  /* aspect-ratio (plutôt qu'une hauteur fixe en pixels) garde les
     proportions de la photo quelle que soit la largeur de l'écran :
     elle ne s'écrase/étire jamais, seul le cadrage (recadrage centré)
     s'ajuste légèrement. */
  aspect-ratio: 4 / 3;
  height: auto;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 4px;
  margin-bottom: 14px;
}

.card-title {
  font-size: 15px;
  font-weight: var(--weight-regular);
  color: var(--color-heading);
  margin: 0 0 6px;
}

.card-text {
  font-size: 12.5px;
  color: var(--color-muted);
  margin: 0;
}

/* Bandeau citation / mise en avant (vert cyprès) */
.quote-band {
  background: var(--color-heading);
  padding: 36px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.quote-band p {
  color: #FFFFFF;
  font-size: 17px;
  font-weight: var(--weight-light);
  flex: 1;
  min-width: 260px;
  margin: 0;
  line-height: 1.6;
}

.btn-outline {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 0.5px solid var(--color-heading-light);
  padding: 11px 20px;
  border-radius: 2px;
  white-space: nowrap;
}

.btn-outline:hover {
  border-color: var(--color-accent);
}

/* Sur fond vert (bandeau citation), le bouton passe en écriture
   blanche pour bien ressortir */
.quote-band .btn-outline {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.5);
}

.quote-band .btn-outline:hover {
  border-color: #FFFFFF;
}

/* Bandeau pleine largeur, fond vert, texte blanc centré */
/* Bandeau photo pleine largeur (ex: bas de page Chambres, A deux pas) */
.banner-photo {
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.text-band {
  background: var(--color-heading);
  padding: 36px 28px;
}

.text-band p {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  font-size: 14px;
  color: #FFFFFF;
  line-height: 1.8;
}

/* =========================================================
   DIAPORAMA (galeries photo)
   ========================================================= */

.slideshow {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.slideshow-viewport {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #FFFFFF;
  border-radius: 4px;
  overflow: hidden;
}

/* Quand le diaporama est cliquable (renvoie vers un site externe) */
a.slideshow-viewport,
a.slideshow-caption-link {
  cursor: pointer;
}

a.slideshow-caption-link {
  text-decoration: none;
}

a.slideshow-caption-link .slideshow-caption:hover {
  color: var(--color-heading);
  text-decoration: underline;
}

/* Comme partout ailleurs sur le site, la photo est affichée en
   image de fond (background-image), plus fiable qu'une balise
   <img> pour ce genre de galerie qui change de source en JS. */
.slideshow-image {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.slideshow-prev,
.slideshow-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  color: var(--color-heading);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow-prev { left: 12px; }
.slideshow-next { right: 12px; }

.slideshow-caption {
  text-align: center;
  font-size: 12.5px;
  color: var(--color-muted);
  margin-top: 12px;
  min-height: 16px;
}

.slideshow-counter {
  text-align: center;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--color-muted);
  margin-top: 2px;
}

/* Liste source des photos : masquée à l'écran, lue par js/site.js */
.slideshow-slides {
  display: none;
}

/* Mur de miniatures cliquable, façon mosaïque (.gallery = wrapper commun).
   Chaque photo garde ses proportions d'origine (pas de recadrage), les
   colonnes s'équilibrent automatiquement comme sur Pinterest. Chaque
   miniature ouvre le diaporama en popup (.lightbox) à la bonne photo. */
.gallery-thumbs {
  columns: 4;
  column-gap: 16px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.gallery-thumb {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  break-inside: avoid;
  border: none;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  background: none;
  overflow: hidden;
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.92;
  transition: opacity 0.2s, transform 0.2s;
}

.gallery-thumb:hover img {
  opacity: 1;
  transform: scale(1.02);
}

.gallery-thumb.is-active {
  outline: 2px solid var(--color-heading);
  outline-offset: -2px;
}

/* Popup / lightbox : diaporama en sur-impression au clic sur une miniature */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 16, 0.92);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.lightbox .slideshow-caption,
.lightbox .slideshow-counter {
  color: rgba(255, 255, 255, 0.85);
}

/* =========================================================
   PIED DE PAGE
   ========================================================= */

.site-footer {
  padding: 24px 28px;
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-muted);
  border-top: 0.5px solid var(--color-border);
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================================================
   RESPONSIVE (mobile / tablette)
   ========================================================= */

@media (max-width: 800px) {
  .site-header {
    position: relative;
    flex-wrap: nowrap;
  }

  /* Le bouton hamburger n'apparaît que sur mobile/tablette */
  .nav-toggle {
    display: flex;
  }

  /* Le menu est masqué par défaut sur mobile : il se déplie en plein
     écran sous l'en-tête quand on clique sur le bouton hamburger
     (classe "is-open" ajoutée par js/site.js) */
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #FFFFFF;
    border-top: 0.5px solid var(--color-border);
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
    z-index: 20;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 16px 28px;
    border-bottom: 0.5px solid var(--color-border);
  }

  .site-nav .lang-switch {
    border-left: none;
    padding-left: 28px;
  }

  /* Sur mobile, le sous-menu reste toujours visible (pas de survol
     possible au doigt), indenté juste sous son lien parent */
  .has-sub {
    width: 100%;
  }

  .sub-nav {
    display: flex;
    position: static;
    border: none;
    box-shadow: none;
    padding: 0 0 8px;
  }

  .sub-nav a {
    padding: 10px 28px 10px 44px;
    border-bottom: none;
  }

  .hero {
    height: 320px;
  }
  .hero-tall {
    height: 448px;
  }
  .hero-title {
    font-size: 24px;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .grid-6 {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-thumbs {
    columns: 2;
  }
  .room-row {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
  }
  .quote-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   Bandeau de consentement cookies
   ========================================================= */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--color-heading);
  color: #FFFFFF;
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}

.cookie-banner-text {
  margin: 0;
  font-size: 13.5px;
  font-weight: var(--weight-light);
  line-height: 1.6;
  max-width: 640px;
  flex: 1 1 320px;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
}

.cookie-banner button {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: var(--weight-regular);
  padding: 9px 20px;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid #FFFFFF;
  white-space: nowrap;
}

.cookie-banner-accept {
  background: #FFFFFF;
  color: var(--color-heading);
}

.cookie-banner-refuse {
  background: transparent;
  color: #FFFFFF;
}

@media (max-width: 600px) {
  .cookie-banner {
    justify-content: flex-start;
    padding: 16px;
  }
  .cookie-banner-actions {
    width: 100%;
  }
  .cookie-banner-accept,
  .cookie-banner-refuse {
    flex: 1 1 0;
  }
}
