/* ==========================================================================
   Styles des sections de contenu (non animées) : Galerie photos, Avis
   clients, Infos pratiques, pied de page enrichi.
   ========================================================================== */

.content-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-height) + 32px) clamp(16px, 4vw, 48px) 40px;
  max-width: var(--section-max-width);
  margin: 0 auto;
}

.content-section__header {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto clamp(32px, 6vh, 56px);
}

.content-section__eyebrow {
  display: inline-block;
  font-family: var(--font-subtitle);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: 8px;
}

.content-section__title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--color-brown);
  margin-bottom: 10px;
}

.content-section__subtitle {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-text);
  opacity: 0.85;
}

/* Fade-in générique piloté par reveal-on-scroll.js */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Galerie (galerie circulaire 3D) ----------------------------------------
   Section normale (100vh, comme le hero et les 3 séquences vidéo — voir
   scroll-snap-align dans style.css) : la rotation n'est pas pilotée par la
   position de scroll de la page (voir js/sections/galerie.js) mais par un
   listener `wheel` posé directement sur .galerie__stage, actif uniquement
   quand le curseur survole cette zone (preventDefault y bloque le scroll de
   page ; en dehors, le scroll de page fonctionne normalement, aucun listener
   global sur window). Pas d'auto-rotation : le cercle ne tourne qu'en
   réponse directe à un événement wheel. Sur mobile, la 3D est remplacée par
   un carousel horizontal natif (overflow-x + scroll-snap-x, tactile), plus
   lisible et moins coûteux sur petit écran — voir la media query en bas de
   bloc. */
#galerie {
  background: var(--color-tan);
}

.galerie {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  padding: calc(var(--header-height) + 24px) clamp(16px, 4vw, 48px) 32px;
}

.galerie__sticky {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.galerie__header {
  margin-bottom: clamp(24px, 4vh, 40px);
  flex-shrink: 0;
}

/* perspective volontairement généreux par rapport au rayon du cercle
   (voir measureRadius() dans js/sections/galerie.js) : un perspective trop
   proche du rayon exagère le grossissement de la carte de face (zoom façon
   fisheye), qui doit alors être affichée bien plus grande que sa taille CSS
   de base — au-delà de ce que la résolution source peut fournir nettement.
   Une perspective plus large limite ce grossissement à un facteur modéré. */
.galerie__stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 3200px;
  touch-action: pan-y; /* laisse le tactile scroller la page ; seul le wheel desktop est intercepté */
}

/* Le "point d'ancrage" du manège est réduit à 1px : chaque carte est
   positionnée par rapport à son centre (top/left: 50% + translate(-50%,-50%)
   dans la même transform que la rotation/profondeur), pas par la taille de
   .galerie__wheel elle-même. Transition sur transform : lisse chaque
   "à-coup" de rotation (un tick de molette = un saut discret d'angle, pas
   d'auto-rotation en continu à animer) sans jamais tourner tant qu'aucun
   événement wheel ne survient. */
.galerie__wheel {
  position: relative;
  width: 1px;
  height: 1px;
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease-smooth);
  will-change: transform;
}

.galerie__card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(110px, 14vw, 150px);
  aspect-ratio: 3 / 4;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--color-brown);
  box-shadow: 0 10px 24px rgba(99, 53, 19, 0.2);
  background: var(--color-cream);
  transition: opacity 0.4s var(--ease-smooth);
  will-change: opacity;
}

/* object-fit: cover seul (aucun transform: scale superposé) ; les fichiers
   source (assets/photos/ambiance/*.webp) sont générés à 1000px de large à
   partir d'originaux 1600x1200 — largement au-dessus de la taille CSS de la
   carte (150px, jusqu'à ~250px une fois grossie par la perspective), marge
   qui couvre aussi les écrans HiDPI (2-3x). image-rendering: auto (valeur
   par défaut, explicitée) : "crisp-edges"/"pixelated" sont pensés pour de la
   pixel art, pas des photos — ils rendraient le rendu plus grossier, pas
   plus net. */
.galerie__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  display: block;
}

/* Fallback mobile : plus de 3D (trop lourd/peu lisible sur petit écran) —
   simple carousel horizontal scrollable au doigt, scroll-snap par carte.
   js/sections/galerie.js n'attache aucun listener wheel/rotation au-delà de
   ce même seuil (voir MOBILE_QUERY), donc aucun transform inline ne vient
   normalement contredire ces règles ; les !important restent une sécurité
   si la fenêtre franchit le seuil après une première mise en page desktop. */
@media (max-width: 700px) {
  .galerie {
    min-height: 0;
  }

  .galerie__stage {
    perspective: none;
    display: block;
    touch-action: auto;
  }

  .galerie__wheel {
    position: static;
    width: auto;
    height: auto;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 8px 6px 18px;
    -webkit-overflow-scrolling: touch;
  }

  .galerie__card {
    position: static;
    flex: 0 0 auto;
    width: 62vw;
    max-width: 260px;
    scroll-snap-align: center;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --- Avis clients ------------------------------------------------------ */
#avis {
  background: var(--color-cream-deep);
}

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

.avis-card {
  background: var(--color-cream);
  border: 1px solid var(--color-brown-soft);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(99, 53, 19, 0.06);
}

.avis-card__stars {
  color: var(--color-green);
  font-size: 1rem;
  letter-spacing: 2px;
}

.avis-card__quote {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  flex-grow: 1;
}

.avis-card__author {
  font-family: var(--font-subtitle);
  font-weight: 600;
  color: var(--color-brown);
}

.avis-card__meta {
  font-size: 0.8rem;
  opacity: 0.65;
}

.avis-note {
  text-align: center;
  font-family: var(--font-subtitle);
  font-weight: 600;
  color: var(--color-brown);
  margin-bottom: 6px;
}

.avis-disclaimer {
  text-align: center;
  margin-top: 32px;
  font-size: 0.8rem;
  opacity: 0.6;
}

.avis-disclaimer a {
  color: var(--color-green);
  font-weight: 700;
}

/* --- Infos pratiques ------------------------------------------------------ */
#infos {
  background: var(--color-cream);
}

.infos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.infos-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.infos-item__label {
  font-family: var(--font-subtitle);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-green);
  margin-bottom: 4px;
}

.infos-item__value {
  font-family: var(--font-body);
  font-size: 1.05rem;
}

.infos-item__note {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 2px;
}

.infos-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.infos-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--color-brown);
  color: var(--color-cream);
  font-family: var(--font-subtitle);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s var(--ease-smooth), background 0.2s var(--ease-smooth);
}

.infos-link:hover,
.infos-link:focus-visible {
  background: var(--color-green);
  transform: translateY(-2px);
}

.infos-link--ghost {
  background: transparent;
  border: 1.5px solid var(--color-brown);
  color: var(--color-brown);
}

.infos-link--ghost:hover,
.infos-link--ghost:focus-visible {
  background: var(--color-brown);
  color: var(--color-cream);
}

.infos-map {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(99, 53, 19, 0.12);
  aspect-ratio: 4 / 3;
}

.infos-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 780px) {
  .infos-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Pied de page enrichi -------------------------------------------------- */
.site-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  font-family: var(--font-body);
}

.site-footer__brand {
  margin-bottom: 10px;
}

/* .site-header__name est brun par défaut (pensé pour le header, fond clair) ;
   sur le fond brun du footer, on le repasse en crème pour rester lisible. */
.site-footer .site-header__name {
  color: var(--color-cream);
}

.site-footer__title {
  font-family: var(--font-subtitle);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-green);
  margin-bottom: 12px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  opacity: 0.9;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
}

.site-footer__bottom {
  grid-column: 1 / -1;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(253, 251, 247, 0.2);
  font-size: 0.8rem;
  opacity: 0.75;
}

/* Cibles tactiles agrandies sur mobile (audit : plusieurs liens texte
   mesuraient ~18-24px de haut, sous les 44px recommandés). Padding
   vertical plutôt que font-size, pour élargir la zone cliquable sans
   changer l'apparence du texte. Mobile uniquement (le rendu desktop,
   pensé pour la souris, reste identique). */
@media (max-width: 920px) {
  .site-footer__list a {
    display: inline-block;
    padding: 10px 0;
    margin: -10px 0;
  }

  .site-footer__bottom a {
    display: inline-block;
    padding: 12px 0;
    margin: -12px 0;
  }

  .avis-disclaimer a {
    display: inline-block;
    padding: 12px 4px;
    margin: -12px -4px;
  }

  .infos-item__value a {
    display: inline-block;
    padding: 12px 0;
    margin: -12px 0;
  }
}
