/* FGExpo — feuille de style (pensée d'abord pour le téléphone) */

:root {
  --texte: #1d1e20;
  --texte-doux: #55575c;
  --fond: #ffffff;
  --accent: #2f7d6e;          /* le turquoise de la vidéo */
  --largeur-max: 1200px;
  --marge: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  color: var(--texte);
  background: var(--fond);
  line-height: 1.6;
}

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

/* ---------- En-tête : bande blanche au-dessus de la vidéo ---------- */
:root { --hauteur-entete: 72px; }
.entete {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--hauteur-entete);
  background: #fff;
  padding: 0 var(--marge);
  display: flex;
  align-items: center;
}
.menu {
  width: 100%;
  max-width: none;
  display: flex;
  justify-content: flex-end;
  gap: clamp(20px, 3vw, 44px);
  padding-right: clamp(0px, 1.5vw, 24px);
}
.menu a {
  color: var(--texte);
  text-decoration: none;
  font-weight: 400;
  font-size: clamp(0.85rem, 1.28vw, 1.28rem);   /* taille du menu (Accueil, Galerie) */
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.menu a.actif, .menu a:hover { border-bottom-color: var(--texte); }

/* ---------- Bannière vidéo ---------- */
.banniere {
  position: relative;
  height: calc(100vh - var(--hauteur-entete));     /* repli */
  height: calc(100svh - var(--hauteur-entete));    /* hauteur visible réelle sur iPhone */
  min-height: 460px;
  overflow: hidden;
  background: #2f6b5f;    /* couleur affichée le temps que la vidéo charge */
}
.banniere-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Cadrage vertical de la vidéo : 0% = on voit le haut (plus de sable),
     50% = centré, 100% = on voit le bas (plus d'eau) */
  object-position: center 50%;
  /* Zoom de la vidéo : 1 = normal, 1.2 = 20 % plus près, 1.5 = 50 % plus près.
     Sous 1, des bandes vides apparaissent sur les côtés. */
  transform: scale(1.5);
  transform-origin: center 0%;
}
.banniere-voile {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .18);
}
/* Titre dans le haut, accroche dans le bas, comme sur l'ancien site */
.banniere-texte {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 22vh var(--marge) 5vh;
  padding: 22svh var(--marge) 5svh;
}
.banniere h1 {
  margin: 0;
  font-weight: 600;
  line-height: 1.05;
  font-size: clamp(2.6rem, 8vw, 5rem);
  text-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.banniere h1 span { display: block; }
.banniere h1 span + span { margin-top: .70em; }
.accroche {
  margin: 0 auto;
  max-width: 34em;
  font-weight: 600;
  font-size: clamp(1.05rem, 2.3vw, 1.6rem);
  line-height: 1.35;
  text-shadow: 0 1px 8px rgba(0,0,0,.2);
}

/* ---------- Contenu ---------- */
.contenu {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 56px var(--marge) 64px;
}
.contenu h2 {
  text-align: center;
  font-weight: 600;
  font-size: clamp(1.2rem, 3.0vw, 2.0rem);
  line-height: 1.25;
  margin: 0 0 2.5rem;
}
.intro {
  text-align: center;
  color: var(--texte-doux);
  max-width: 42em;
  margin: 0 auto 2.5rem;
}

/* ---------- Ornement ---------- */
.ornement {
  width: min(320px, 70%);
  height: auto;
  margin: 2.5rem auto 0;   /* espace au-dessus du feuillage, sous le bouton */
  opacity: .85;
}

/* ---------- Photos ----------
   Téléphone : les photos s'empilent, entières.
   Écran large : une rangée où chaque photo garde ses proportions
   et toutes ont la même hauteur (largeur ∝ ratio de la photo). */
.photos {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 760px) {
  .photos { flex-direction: row; gap: 18px; align-items: flex-start; }
  .photos figure { flex: var(--ratio) 1 0; min-width: 0; }
}
/* Bloc d'introduction : texte à gauche, photo 1 à droite */
.intro-bloc {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin: 0 0 40px;   /* même largeur que les photos du dessous */
  align-items: start;
}
@media (min-width: 860px) {
  .intro-bloc { grid-template-columns: 1fr 1fr; gap: 48px; }   /* largeur texte / photo */
}
.intro-texte p {
  margin: 0 0 1.4em;
  /* Sur ordinateur, la taille est calculée automatiquement pour que le texte
     ait la même hauteur que la photo 1 (voir js/ajuste-texte.js).
     Cette valeur sert sur téléphone et en attendant le calcul. */
  font-size: var(--taille-intro, 0.9rem);
  line-height: 1.55;
}
.intro-texte p:last-child { margin-bottom: 0; }
/* Sur ordinateur, le texte occupe toute la hauteur de la photo 1 :
   le petit reste est réparti entre les paragraphes */
@media (min-width: 860px) {
  .intro-texte { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; }
}

.photos figure, .intro-photo figure { margin: 0; }
.photos img, .intro-photo img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

/* ---------- Bouton Galerie ---------- */
.bouton-zone { text-align: center; margin: 3rem 0 0; }
.bouton {
  display: inline-block;
  background: #000;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1rem;   /* taille du bouton : tout le bouton suit cette valeur */
  font-weight: 500;
  padding: .85em 2.4em;
  border-radius: 999px;
  transition: background .2s, transform .2s;
}
.bouton:hover, .bouton:focus-visible { background: var(--accent); transform: translateY(-1px); }
.photos figcaption {
  margin-top: .6rem;
  font-size: .95rem;
  color: var(--texte-doux);
  text-align: center;
}

/* ---------- Pied de page ---------- */
.pied {
  text-align: center;
  padding: 28px var(--marge);
  color: var(--texte-doux);
  font-size: .9rem;
  border-top: 1px solid #eee;
}

/* Respecter les personnes qui désactivent les animations */
@media (prefers-reduced-motion: reduce) {
  .banniere-video { display: none; }
}
