/* =========================================================
   Kerohen — Belle-Île-en-Mer
   Feuille de styles unique — tokens issus du Figma « Accueil — Desktop »
   ========================================================= */

/* ---------- Polices (auto-hébergées, licence SIL OFL) ---------- */
@font-face { font-family: "Special Gothic Condensed One"; src: url("../assets/fonts/special-gothic-condensed-one-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Special Gothic"; src: url("../assets/fonts/special-gothic-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Funnel Sans"; src: url("../assets/fonts/funnel-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Funnel Sans"; src: url("../assets/fonts/funnel-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Funnel Sans"; src: url("../assets/fonts/funnel-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../assets/fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../assets/fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../assets/fonts/jost-latin-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }

:root {
  /* Couleurs */
  --encre: #0f2e3a;            /* bleu nuit */
  --encre-attenue: #5b6b72;    /* gris bleuté */
  --fond: #f6f3ec;             /* crème */
  --fond-sable: #eee9df;
  --fond-carte: #ffffff;
  --fond-gris: #ebeef0;
  --blanc: #fff;
  --ocean: #00899c;            /* bleu-vert océan (accent) */
  --ocean-pale: #e3f1f3;
  --ocean-pastel: #80c6be;
  --creme-attenue: #b7c6cb;
  --ligne: rgba(15, 46, 58, 0.15);
  --erreur: #b3412b;

  /* Typo */
  --f-titre: "Special Gothic Condensed One", "Arial Narrow", sans-serif;
  --f-caps: "Special Gothic", "Arial", sans-serif;
  --f-corps: "Funnel Sans", system-ui, sans-serif;
  --f-texte: "Jost", system-ui, sans-serif;

  /* Mise en page */
  --gouttiere: 80px;
  --nav-h: 88px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fond-gris);
  color: var(--encre);
  font-family: var(--f-corps);
  font-size: 17px;
  line-height: 27px;
  -webkit-font-smoothing: antialiased;
}
body.menu-ouvert { overflow: hidden; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ocean); outline-offset: 3px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--encre); color: var(--fond); padding: 12px 18px; }
.skip:focus { top: 12px; }

/* ---------- Typo commune ---------- */
.h1 { font-family: var(--f-titre); font-weight: 400; font-size: 88px; line-height: 94px; letter-spacing: -0.01em; }
.h2 { font-family: var(--f-titre); font-weight: 400; font-size: 56px; line-height: 1; color: var(--encre); }
.lead { font-family: var(--f-titre); font-size: 28px; line-height: 38px; max-width: 760px; }
.lead--attenue { color: var(--encre-attenue); max-width: 820px; }
.label {
  font-family: var(--f-corps);
  font-weight: 600;
  font-size: 15px;
  line-height: 20px;
  color: var(--ocean);
}

/* ---------- Boutons (coins carrés partout) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 28px;
  background: var(--encre);
  color: var(--fond);
  border: 1px solid var(--encre);
  border-radius: 0;
  font-family: var(--f-corps);
  font-weight: 500;
  font-size: 16px;
  line-height: 16px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--ocean); border-color: var(--ocean); color: #fff; }
.btn--fort { font-weight: 600; line-height: normal; }
.btn--plein { width: 100%; }
.btn--teal { background: var(--ocean); border-color: var(--ocean); color: #fff; }
.btn--teal:hover { background: #007383; border-color: #007383; }
.btn--contour { background: transparent; color: var(--encre); padding: 14px 24px; }
.btn--contour:hover { background: var(--encre); color: var(--fond); border-color: var(--encre); }
.btn--contour-clair { background: transparent; border-color: rgba(246, 243, 236, 0.6); color: var(--fond); }
.btn--contour-clair:hover { background: var(--fond); border-color: var(--fond); color: var(--encre); }

/* ---------- Champs de formulaire ---------- */
.champ {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--encre);
}
.champ > span {
  font-family: var(--f-titre);
  font-size: 11px;
  line-height: 14px;
  text-transform: uppercase;
  color: var(--encre-attenue);
}
.champ input, .champ select, .champ textarea, .champ output {
  width: 100%;
  min-height: 27px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: var(--f-corps);
  font-size: 17px;
  line-height: 27px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.champ select {
  padding-right: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='m1 1 4 4 4-4' stroke='%230f2e3a'/%3E%3C/svg%3E") no-repeat right 2px center;
  cursor: pointer;
}
.champ input::placeholder, .champ textarea::placeholder { color: rgba(91, 107, 114, 0.7); }
.champ:focus-within { border-bottom-color: var(--ocean); box-shadow: 0 1px 0 var(--ocean); }
.champ.est-invalide { border-bottom-color: var(--erreur); box-shadow: 0 1px 0 var(--erreur); }
.champ textarea { resize: vertical; min-height: 96px; }
.champ input[type="date"]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
.champ--court { flex: 0 0 100px; }
.champs-2 { display: flex; gap: 20px; }
.champs-2 > * { flex: 1 1 0; }

.form-retour { font-family: var(--f-texte); font-size: 14px; line-height: 20px; color: var(--ocean); }
.form-retour:empty { display: none; }
.form-retour.erreur { color: var(--erreur); }

.credit { position: absolute; right: 24px; bottom: 10px; z-index: 2; font-family: var(--f-texte); font-size: 14px; color: #fff; }

/* =========================================================
   Navigation à onglets
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
  padding: 0 var(--gouttiere);
  border-bottom: 1px solid var(--ligne);
  background: var(--fond-gris);
  color: var(--encre);
  --nav-accent: var(--ocean);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
/* Accueil : fixe, transparente sur la photo, puis variante « Claire » au scroll */
.nav--transparente {
  position: fixed;
  inset: 0 0 auto 0;
  background-color: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  --nav-accent: var(--ocean-pastel);
}
.nav--transparente::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(8, 31, 41, 0.55), rgba(8, 31, 41, 0));
  transition: opacity .3s ease;
  pointer-events: none;
}
.nav--transparente.est-defilee,
.nav--transparente:has(.deroulant--mega:hover, .deroulant--mega:focus-within, .deroulant--mega.est-ouvert) {
  background-color: var(--fond-gris);
  border-bottom-color: var(--ligne);
  color: var(--encre);
  box-shadow: 0 10px 30px -20px rgba(15, 46, 58, 0.45);
  --nav-accent: var(--ocean);
}
.nav--transparente.est-defilee::before,
.nav--transparente:has(.deroulant--mega:hover, .deroulant--mega:focus-within, .deroulant--mega.est-ouvert)::before { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .nav, .nav::before { transition: none; } }
.nav__logo { width: 240px; flex: none; display: flex; flex-direction: column; gap: 4px; font-family: var(--f-titre); text-transform: uppercase; }
.nav__nom { font-size: 24px; line-height: 26px; }
.nav__lieu { font-size: 11px; line-height: 14px; color: var(--nav-accent); }

.nav__onglets > ul { display: flex; align-items: center; gap: 36px; }
.onglet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font-family: var(--f-corps);
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.onglet:hover { border-bottom-color: currentColor; }
.onglet.est-actif { color: var(--nav-accent); border-bottom-color: var(--nav-accent); }
.chevron { transition: transform .2s; }

/* ---------- Méga menu « La maison » ---------- */
.deroulant--mega { position: static; } /* le panneau se cale sur toute la largeur de la navbar */
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 56px;
  padding: 40px var(--gouttiere) 44px;
  background: var(--fond-carte);
  color: var(--encre);
  border-top: 1px solid var(--ligne);
  border-bottom: 1px solid var(--ligne);
  box-shadow: 0 30px 50px -30px rgba(15, 46, 58, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 26px; } /* pont de survol */
.deroulant.est-ouvert .mega,
.deroulant:hover .mega,
.deroulant:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.deroulant.est-ouvert .chevron,
.deroulant:hover .chevron { transform: rotate(180deg); }

.mega__colonnes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; align-content: start; }
.mega__titre {
  position: relative;
  margin-bottom: 14px;
  font-family: var(--f-corps);
  font-weight: 600;
  font-size: 15px;
  line-height: 20px;
  color: var(--ocean);
}
.mega__col li a {
  display: block;
  padding: 7px 0;
  border-bottom: 1px solid var(--ligne);
  font-family: var(--f-titre);
  font-size: 22px;
  line-height: 28px;
  transition: color .2s, padding-left .2s;
}
.mega__col li a:hover { color: var(--ocean); padding-left: 4px; }

.mega__vedette {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: 260px;
  padding: 24px;
  overflow: hidden;
  background: var(--fond-sable);
  color: #fff;
}
.mega__media { position: absolute; inset: 0; overflow: hidden; }
.mega__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 60%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.mega__vedette:hover .mega__photo { transform: scale(1.04); }
.mega__vedette::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10, 34, 56, 0) 30%, rgba(10, 34, 56, 0.55) 55%, rgba(8, 26, 44, 0.92) 100%); }
.mega__vedette > span { position: relative; z-index: 1; }
.mega__badge {
  position: absolute !important;
  top: 20px;
  left: 20px;
  padding: 6px 10px;
  background: var(--ocean);
  font-family: var(--f-caps);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.mega__vtitre { font-family: var(--f-titre); font-size: 32px; line-height: 1; text-transform: uppercase; }
.mega__vtexte { font-family: var(--f-texte); font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.88); }
.mega__lien { margin-top: 6px; font-family: var(--f-caps); font-weight: 600; font-size: 14px; }
.mega__vedette:hover .mega__lien { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1280px) {
  .mega { grid-template-columns: 320px 1fr; gap: 40px; }
  .mega__colonnes { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
}

.nav__actions { width: 240px; flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.nav__langue { font-family: var(--f-texte); font-weight: 500; font-size: 14px; line-height: 20px; letter-spacing: .08em; }
.nav--transparente:not(.est-defilee):not(:has(.deroulant--mega:hover, .deroulant--mega:focus-within, .deroulant--mega.est-ouvert)) .nav__reserver { background: var(--fond); border-color: var(--fond); color: var(--encre); }
.nav--transparente:not(.est-defilee):not(:has(.deroulant--mega:hover, .deroulant--mega:focus-within, .deroulant--mega.est-ouvert)) .nav__reserver:hover { background: var(--ocean); border-color: var(--ocean); color: #fff; }
.nav__burger {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border: 0;
  background: none;
  font-family: var(--f-corps);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
}

/* ---------- Menu plein écran (mobile) ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 28px var(--gouttiere) 40px;
  background: var(--fond-gris);
  overflow-y: auto;
  opacity: 0;
  transition: opacity .25s ease;
}
.menu[hidden] { display: none; }
.menu.est-ouvert { opacity: 1; }
.menu__haut { display: flex; justify-content: space-between; align-items: center; }
.menu__logo { font-family: var(--f-titre); font-size: 22px; line-height: 26px; text-transform: uppercase; }
.menu__colonnes { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; align-content: center; padding: 80px 0; }
.menu__colonnes ul { margin-top: 12px; }
.menu__colonnes li a { display: block; padding: 8px 0 9px; border-bottom: 1px solid var(--ligne); font-family: var(--f-titre); font-size: 30px; line-height: 40px; transition: color .2s, padding-left .2s; }
.menu__colonnes li a:hover { color: var(--ocean); padding-left: 6px; }
.menu__bas { text-align: center; font-family: var(--f-titre); font-size: 11px; line-height: 14px; text-transform: uppercase; color: var(--encre-attenue); }

/* =========================================================
   Accueil — Hero
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--ocean-pale);
}
.hero__visuel {
  width: 100%;
  height: 675px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* même bord gauche que la barre de disponibilité (1082 px, centrée) */
  padding: 0 max(var(--gouttiere), calc((100% - 1082px) / 2)) 128px;
  margin-bottom: -70px;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0) 240px),  /* voile en haut, derrière la navbar */
    linear-gradient(rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.22)),                  /* voile léger sur toute la photo */
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000 100%),
    url("../assets/img/web/maison-hero-2400-1920.webp") center / cover no-repeat,
    #1b2d3d;   /* fond sombre pendant le chargement de la photo */
}
.hero__titre { align-self: center; text-align: center; max-width: 620px; font-family: var(--f-titre); font-weight: 400; font-size: 76px; line-height: 72px; color: #fff; }

.dispo {
  position: relative;
  z-index: 2;
  width: 1082px;
  max-width: calc(100% - 2 * var(--gouttiere));
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 8px 19.4px rgba(0, 0, 0, 0.09);
}
.dispo__champs { flex: 1; min-width: 0; display: flex; gap: 20px; }
.dispo__champs .champ:not(.champ--court) { flex: 1 1 0; }
.dispo__bouton { flex: 0 0 347px; margin-top: 4px; }

/* =========================================================
   Accueil — Autour de la maison (texte + image)
   ========================================================= */
.autour {
  display: flex;
  align-items: center;
  gap: 96px;
  padding: 64px var(--gouttiere);
  background: var(--ocean-pale);
}
.autour__photo {
  flex: 0 0 680px;
  aspect-ratio: 680 / 540;
  background: #49a7b0 url("../assets/img/web/kerohen-1280.webp") center 38% / cover no-repeat;
}
.autour__texte { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.autour__texte p { color: var(--encre-attenue); }
.autour__texte .btn { margin-top: 8px; }

/* =========================================================
   Accueil — Pièces
   ========================================================= */
.pieces {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 64px var(--gouttiere);
  background: var(--blanc);
}
.pieces__titre { max-width: 852px; text-align: center; line-height: 1.1; }
.pieces__grille { width: 100%; max-width: 1280px; display: grid; grid-template-columns: 616fr 648fr; gap: 16px; }
.pieces__autres { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.carte { position: relative; display: block; overflow: hidden; aspect-ratio: 316 / 320; background: var(--fond-sable); color: #fff; }
.carte--grande { aspect-ratio: auto; height: 100%; }
.carte__media { position: absolute; inset: 0; overflow: hidden; }
.carte__media .illu { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.carte__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.carte:hover .carte__media .illu, .carte:hover .carte__photo { transform: scale(1.04); }
/* dégradé bleu nuit vers le bas pour que le texte reste lisible sur toutes les photos */
.carte::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(10, 34, 56, 0) 30%,
    rgba(10, 34, 56, 0.55) 58%,
    rgba(8, 26, 44, 0.92) 100%);
}
.carte__legende { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.carte__titre { font-family: var(--f-titre); font-weight: 400; font-size: 30px; line-height: .95; text-transform: uppercase; }
.carte--grande .carte__titre { font-size: 52px; }
.carte__texte { max-width: 268px; font-family: var(--f-texte); font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.88); }
.carte--grande .carte__texte { max-width: 400px; font-size: 16px; }
.carte__lien { font-family: var(--f-caps); font-weight: 600; font-size: 14px; }
.carte:hover .carte__lien { text-decoration: underline; text-underline-offset: 4px; }
.illu { position: absolute; height: auto; }

/* =========================================================
   Accueil — Venir à Belle-Île
   ========================================================= */
.venir {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: 96px var(--gouttiere);
  background: var(--encre);
  color: var(--fond);
  overflow: hidden;
}
.venir__entete { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.venir__titre { font-family: var(--f-titre); font-weight: 400; font-size: 64px; line-height: 62px; }
.venir__entete p { max-width: 420px; font-size: 18px; line-height: 28px; color: var(--creme-attenue); }

/* ---- Trajet animé : Quiberon → (bateau) → Le Palais → (voiture) → Kerohen ----
   Déclenché par la classe .est-visible (js/main.js) quand la section arrive à l'écran. */
.trajet {
  --t-bateau: .5s;  --d-bateau: 2s;     /* départ / durée de la traversée */
  --t-palais: 2.5s;                     /* arrivée au Palais */
  --t-voiture: 2.7s; --d-voiture: 1.3s; /* départ / durée de la route */
  --t-kerohen: 4s;                      /* arrivée à la maison */
  --courbe: cubic-bezier(.45, 0, .2, 1);
  position: relative;
  padding-top: 64px;
}
.trajet__piste { position: absolute; top: 64px; left: 8px; right: 8px; height: 16px; }
.trajet__segment { position: absolute; top: 4px; width: 50%; height: 8px; }
.trajet__segment--mer { left: 0; }
.trajet__segment--route { left: 50%; }
.trajet__remplissage { position: absolute; inset: 0 auto 0 0; width: 0; overflow: hidden; }

/* la mer : vagues qui ondulent, puis se colorent derrière le bateau */
.trajet__segment--mer,
.trajet__segment--mer .trajet__remplissage { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8'%3E%3Cpath d='M0 4q4-4 8 0t8 0' fill='none' stroke='%23F6F3EC' stroke-opacity='.3' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x 0 0 / 16px 8px; animation: kh-vagues 2.4s linear infinite; }
.trajet__segment--mer .trajet__remplissage { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8'%3E%3Cpath d='M0 4q4-4 8 0t8 0' fill='none' stroke='%2380C6BE' stroke-opacity='1' stroke-width='1.6'/%3E%3C/svg%3E"); transition: width var(--d-bateau) var(--courbe) var(--t-bateau); }
@keyframes kh-vagues { to { background-position-x: 16px; } }

/* la route : pointillés, puis trait plein derrière la voiture */
.trajet__segment--route { top: 7px; height: 2px; background: repeating-linear-gradient(to right, rgba(246, 243, 236, .25) 0 6px, transparent 6px 12px); }
.trajet__segment--route .trajet__remplissage { background: var(--ocean-pastel); transition: width var(--d-voiture) var(--courbe) var(--t-voiture); }

/* durées, au-dessus de chaque tronçon une fois parcouru */
.trajet__duree {
  position: absolute;
  bottom: 30px;
  left: 50%;
  padding: 6px 10px;
  background: var(--ocean);
  font-family: var(--f-texte);
  font-weight: 500;
  font-size: 13px;
  line-height: 16px;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  translate: -50% 8px;
  transition: opacity .5s ease, translate .5s cubic-bezier(.2, .7, .2, 1);
}
.trajet__segment--mer .trajet__duree { transition-delay: var(--t-palais); }
.trajet__segment--route .trajet__duree { bottom: 27px; transition-delay: var(--t-kerohen); }

/* le bateau navigue, tangue, puis reste à quai */
.trajet__bateau {
  position: absolute;
  z-index: 2;
  top: -13px;
  left: 14px;
  transition: left var(--d-bateau) var(--courbe) var(--t-bateau);
}
.trajet__bateau svg { display: block; transform-origin: 50% 90%; animation: tangage 2.6s ease-in-out infinite; }
@keyframes tangage { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-2px); } }

/* la voiture prend le relais au Palais */
.trajet__voiture {
  position: absolute;
  z-index: 2;
  top: -9px;
  left: calc(50% + 14px);
  opacity: 0;
  transition: left var(--d-voiture) var(--courbe) var(--t-voiture), opacity .3s ease var(--t-voiture);
}
.trajet__voiture svg { display: block; }

/* étapes */
.trajet__etapes { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trajet__etape { --t: .2s; display: flex; flex-direction: column; gap: 10px; color: rgba(246, 243, 236, .45); transition: color .5s var(--t); }
.trajet__etape--1 { align-items: flex-start; text-align: left; }
.trajet__etape--2 { --t: var(--t-palais); align-items: center; text-align: center; }
.trajet__etape--3 { --t: var(--t-kerohen); align-items: flex-end; text-align: right; }
.trajet__etape b { margin-top: 10px; font-family: var(--f-titre); font-weight: 400; font-size: 32px; line-height: 34px; text-transform: uppercase; }
.trajet__etape span { max-width: 240px; font-size: 15px; line-height: 22px; color: var(--creme-attenue); opacity: .55; transition: opacity .5s var(--t); }
.trajet__point {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  background: var(--encre);
  border: 2px solid rgba(246, 243, 236, .35);
  transition: background-color .4s var(--t), border-color .4s var(--t), transform .4s var(--t);
}
.trajet__point::after { /* onde quand on atteint l'étape */
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid var(--ocean-pastel);
  opacity: 0;
}
@keyframes kh-onde { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }

/* État « visible » */
.venir.est-visible .trajet__segment .trajet__remplissage { width: 100%; }
.venir.est-visible .trajet__duree { opacity: 1; translate: -50% 0; }
.venir.est-visible .trajet__bateau { left: calc(50% - 50px); }
.venir.est-visible .trajet__voiture { left: calc(100% - 44px); opacity: 1; }
.venir.est-visible .trajet__etape { color: var(--fond); }
.venir.est-visible .trajet__etape span { opacity: 1; }
.venir.est-visible .trajet__point { background: var(--ocean); border-color: var(--ocean-pastel); transform: rotate(45deg); }
.venir.est-visible .trajet__point::after { animation: kh-onde 1.2s ease-out var(--t) both; }
.venir.est-visible .trajet__etape--3 .trajet__point::after { animation: kh-onde 1.6s ease-out var(--t) 2 both; }

@media (prefers-reduced-motion: reduce) {
  .trajet *, .trajet *::after { transition: none !important; animation: none !important; }
}

.venir__bas { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 32px; border-top: 1px solid rgba(246, 243, 236, .12); }
.astuce {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-texte);
  font-weight: 500;
  font-size: 15px;
  line-height: 22px;
  color: var(--creme-attenue);
}
.astuce svg { flex: none; }
.venir__liens { display: flex; gap: 12px; flex-wrap: wrap; }

/* =========================================================
   Accueil — Chiffres clés
   ========================================================= */
.chiffres {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  padding: 64px var(--gouttiere);
  background: var(--fond-gris);
}
.chiffres__titre { flex: 0 0 420px; color: #000; }
.chiffres__liste { flex: 1; min-width: 0; }
.chiffre { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.chiffre dt { white-space: nowrap; }
.chiffre__ligne { flex: 1; height: 1px; background: var(--ligne); }
.chiffre dd { font-family: var(--f-texte); font-weight: 500; color: var(--ocean); text-align: right; }

/* =========================================================
   Accueil — Carrousel photos
   ========================================================= */
.carrousel {
  display: flex;
  flex-direction: column;
  gap: 44px;
  padding: 96px 0;   /* pas de marge à gauche : les photos défilent jusqu'au bord de l'écran */
  background: var(--blanc);
  overflow: hidden;
}
.carrousel__entete { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 0 var(--gouttiere); }
.carrousel__controles { display: flex; align-items: center; gap: 12px; }
.carrousel__compteur { margin-right: 4px; font-family: var(--f-texte); font-weight: 500; font-size: 14px; line-height: 20px; letter-spacing: .1em; }
.fleche {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--encre);
  background: transparent;
  color: var(--encre);
  cursor: pointer;
  transition: background-color .2s, color .2s, opacity .2s;
}
.fleche:hover:not(:disabled) { background: var(--encre); color: var(--fond); }
.fleche--pleine { background: var(--encre); color: var(--fond); }
.fleche--pleine:hover:not(:disabled) { background: var(--ocean); border-color: var(--ocean); }
.fleche:disabled { opacity: .35; cursor: default; }

.carrousel__piste {
  display: flex;
  gap: 16px;
  padding: 0 var(--gouttiere);   /* la 1re photo s'aligne sur la grille, puis tout défile jusqu'au bord */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gouttiere);
  scrollbar-width: none;
  outline-offset: -2px;
}
.carrousel__piste::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 520px; display: flex; flex-direction: column; gap: 14px; scroll-snap-align: start; }
.slide__photo {
  position: relative;
  height: 390px;
  overflow: hidden;
  background: #d5dde1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' fill='none'%3E%3Crect x='4' y='8' width='32' height='24' rx='2' stroke='%235B6B72' stroke-width='1.5'/%3E%3Ccircle cx='14' cy='16' r='3' stroke='%235B6B72' stroke-width='1.5'/%3E%3Cpath d='m6 29 9-8 6 5 5-4 9 7' stroke='%235B6B72' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
}
.slide__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.slide:hover .slide__photo img { transform: scale(1.03); }
.slide__legende { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.slide__titre { font-family: var(--f-titre); font-weight: 400; font-size: 26px; line-height: 30px; text-transform: uppercase; }
.slide__lieu { font-family: var(--f-texte); font-size: 14px; line-height: 20px; color: var(--encre-attenue); }
.slide__num { font-family: var(--f-texte); font-weight: 500; font-size: 13px; line-height: 20px; letter-spacing: .1em; color: var(--ocean); }

/* =========================================================
   Accueil — FAQ
   ========================================================= */
.faq {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  padding: 96px var(--gouttiere);
  background: var(--fond-gris);
}
.faq__intro { flex: 0 0 420px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.faq__intro .h2 { line-height: 54px; }
.faq__intro p { color: var(--encre-attenue); }
.faq__liste { flex: 1; min-width: 0; }
.question { border-bottom: 1px solid var(--ligne); }
.question summary {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--f-titre);
  font-size: 28px;
  line-height: 32px;
  transition: color .2s;
}
.question summary::-webkit-details-marker { display: none; }
.question summary span { flex: 1; }
.question summary:hover,
.question[open] summary { color: var(--ocean); }
.question__icone {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--encre);
  transition: background-color .2s, border-color .2s;
}
.question__icone::before,
.question__icone::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--encre);
  transform: translate(-50%, -50%);
  transition: transform .25s, background-color .2s;
}
.question__icone::after { transform: translate(-50%, -50%) rotate(90deg); }
.question[open] .question__icone { background: var(--ocean); border-color: var(--ocean); }
.question[open] .question__icone::before,
.question[open] .question__icone::after { background: #fff; }
.question[open] .question__icone::after { transform: translate(-50%, -50%) rotate(0deg); }
.question p { padding: 0 60px 28px 0; margin-top: -10px; color: var(--encre-attenue); }

/* =========================================================
   Contact (toutes pages)
   ========================================================= */
.contact {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 154px var(--gouttiere);
  background-color: #3f9ea3;
  background-image: url("../assets/img/web/plage-cta-1600.webp"), linear-gradient(#a7c7e0, #48a8ad 55%, #1d6f78);
  background-size: cover;
  background-position: center;
}
.contact__carte {
  position: relative;
  z-index: 1;
  width: 620px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px;
  background: var(--fond-carte);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35);
}
.contact__titre { font-family: var(--f-titre); font-weight: 400; font-size: 64px; line-height: .95; }
.contact__intro { font-size: 16px; line-height: 1.5; color: var(--encre-attenue); }
.contact .champ input, .contact .champ textarea { font-family: var(--f-texte); }

/* =========================================================
   Pied de page
   ========================================================= */
.pied { display: flex; flex-direction: column; gap: 56px; padding: 80px var(--gouttiere) 40px; background: var(--encre); color: var(--fond); font-family: var(--f-texte); }
.pied__haut { display: flex; justify-content: space-between; gap: 80px; padding-bottom: 56px; border-bottom: 1px solid rgba(246, 243, 236, 0.14); }
.pied__marque { display: flex; flex-direction: column; gap: 16px; }
.pied__logo { font-family: var(--f-titre); font-size: 64px; line-height: 60px; letter-spacing: .02em; text-transform: uppercase; }
.pied__accroche { font-family: var(--f-corps); font-size: 16px; line-height: 24px; color: var(--creme-attenue); }
.pied__colonnes { display: flex; gap: 72px; }
.pied__label { margin-bottom: 16px; font-family: var(--f-titre); font-size: 13px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--ocean-pastel); }
.pied__colonnes ul { display: flex; flex-direction: column; gap: 10px; }
.pied__colonnes li, .pied address { font-size: 15px; line-height: 22px; font-style: normal; }
.pied address { line-height: 32px; margin-top: -5px; }
.pied a:hover { color: var(--ocean-pastel); }
.pied__bas { display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 13px; line-height: 20px; color: var(--creme-attenue); }
.pied__bas ul { display: flex; gap: 28px; }

/* =========================================================
   Pages pièces
   ========================================================= */
.piece-visuel { position: relative; aspect-ratio: 1440 / 600; overflow: hidden; background: var(--fond-sable); }
.piece-titre { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; padding: 56px var(--gouttiere) 16px; }
.piece-titre--reserver { padding-bottom: 24px; }
.ariane { display: flex; gap: 10px; font-family: var(--f-texte); font-size: 14px; line-height: 20px; color: var(--encre-attenue); }
.ariane a:hover { color: var(--ocean); }
.ariane [aria-current] { color: var(--encre); }
.piece-contenu { display: flex; gap: 72px; align-items: flex-start; padding: 40px var(--gouttiere) 64px; }
.piece-contenu__texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.piece-contenu__texte p { max-width: 640px; }
.piece-contenu__texte .btn { margin-top: 10px; }
.piece-contenu__liste { flex: 0 0 460px; }
.piece-contenu__liste li { padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.galerie { display: grid; grid-template-columns: 764fr 500fr; gap: 16px; align-items: start; padding: 0 var(--gouttiere) 80px; }
.galerie__img { position: relative; overflow: hidden; background: var(--fond-sable); }
.galerie__img--large { aspect-ratio: 764 / 510; }
.galerie__img--haute { aspect-ratio: 500 / 625; }
.piece-visuel__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Galerie photos : rangées justifiées, proportions d'origine conservées ---------- */
.mosaique {
  --h: 340px;                      /* hauteur cible d'une rangée */
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0 var(--gouttiere) 80px;
}
.mosaique::after { content: ""; flex-grow: 3; } /* évite d'étirer exagérément la dernière rangée */
.mosaique--peu { --h: 520px; }                  /* 1 ou 2 photos : plus grandes */
.mosaique__item {
  --r: 1.5;                        /* largeur / hauteur de la photo (calculé à la génération, sinon au chargement) */
  position: relative;
  flex-grow: var(--r);
  flex-basis: calc(var(--r) * var(--h));
  aspect-ratio: var(--r);
  display: block;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #d5dde1;
  cursor: zoom-in;
}
.mosaique__item img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.mosaique__item:hover img { transform: scale(1.03); }

/* Visionneuse plein écran */
.visionneuse {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(6, 22, 29, 0.96);
  color: #fff;
  overflow: hidden;
}
.visionneuse[open] { display: grid; grid-template-columns: 96px 1fr 96px; align-items: center; }
.visionneuse::backdrop { background: rgba(6, 22, 29, 0.96); }
.visionneuse__figure { grid-column: 2; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; touch-action: pan-y; }
.visionneuse__figure img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; user-select: none; }
.visionneuse__compteur { font-family: var(--f-texte); font-weight: 500; font-size: 14px; letter-spacing: .1em; color: rgba(255, 255, 255, 0.75); }
.visionneuse__nav, .visionneuse__fermer {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.visionneuse__nav:hover, .visionneuse__fermer:hover { background: #fff; color: var(--encre); }
.visionneuse__nav--prec { grid-column: 1; grid-row: 1; }
.visionneuse__nav--suiv { grid-column: 3; grid-row: 1; }
.visionneuse__fermer { position: absolute; top: 24px; right: 22px; font-size: 18px; }
.visionneuse--seule .visionneuse__nav { visibility: hidden; }
body.visionneuse-ouverte { overflow: hidden; }

.voisines { display: flex; border-top: 1px solid var(--ligne); }
.voisine { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 40px var(--gouttiere); transition: background-color .2s; }
.voisine + .voisine { border-left: 1px solid var(--ligne); align-items: flex-end; text-align: right; }
.voisine span { font-family: var(--f-texte); font-size: 14px; line-height: 20px; color: var(--encre-attenue); }
.voisine strong { font-family: var(--f-titre); font-weight: 400; font-size: 30px; line-height: 36px; }
.voisine:hover { background: #fff; }
.voisine:hover strong { color: var(--ocean); }

/* =========================================================
   Réserver
   ========================================================= */
.conseil { padding: 0 var(--gouttiere); font-family: var(--f-texte); font-size: 14px; line-height: 20px; color: var(--ocean); }
.reservation { display: grid; grid-template-columns: 820fr 440fr; gap: 20px; align-items: start; padding: 48px var(--gouttiere) 112px; }
.calendrier { display: flex; flex-direction: column; gap: 20px; padding: 24px; background: #fff; }
.calendrier__nav { display: flex; justify-content: space-between; }
.calendrier__fleche { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--encre); background: transparent; font-size: 17px; cursor: pointer; transition: background-color .2s, color .2s; }
.calendrier__fleche:hover:not(:disabled) { background: var(--encre); color: var(--fond); }
.calendrier__fleche:disabled { opacity: .3; cursor: default; }
.calendrier__mois { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.mois__titre { margin-bottom: 6px; font-family: var(--f-corps); font-weight: 500; font-size: 15px; line-height: 20px; }
.mois__grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px 4px; }
.mois__jour-sem { height: 28px; display: grid; place-items: center; font-family: var(--f-titre); font-size: 11px; color: var(--encre-attenue); }
.jour { aspect-ratio: 1; display: grid; place-items: center; border: 0; background: transparent; font-family: var(--f-texte); font-size: 14px; line-height: 20px; cursor: pointer; transition: background-color .15s; }
.jour:hover:not(:disabled) { background: var(--fond-carte); }
.jour:disabled { cursor: default; }
.jour--passe { color: rgba(91, 107, 114, 0.55); }
.jour--pris { background: var(--ligne); color: var(--encre-attenue); text-decoration: line-through; }
.jour--entre { background: var(--ocean-pale); }
.jour--bord, .jour--bord:hover:not(:disabled) { background: var(--encre); color: var(--fond); }
.legende { display: flex; gap: 22px; font-family: var(--f-texte); font-size: 14px; line-height: 20px; color: var(--encre-attenue); }
.legende li { display: flex; align-items: center; gap: 8px; }
.legende i { width: 14px; height: 14px; border: 1px solid var(--ligne); }
.legende__pris { background: var(--ligne); }
.legende__sejour { background: var(--encre); }
.calendrier__aide { min-height: 20px; font-family: var(--f-texte); font-size: 14px; line-height: 20px; color: var(--encre-attenue); }
.calendrier__aide.erreur { color: var(--erreur); }
.sejour { position: sticky; top: calc(var(--nav-h) + 20px); display: flex; flex-direction: column; gap: 16px; padding: 28px; background: var(--fond-carte); border: 1px solid var(--ligne); }
.sejour__info, .sejour__note { font-family: var(--f-texte); font-size: 14px; line-height: 20px; color: var(--encre-attenue); }
.champ--lecture { gap: 4px; }
.champ--lecture output { color: var(--encre); }
.prix > div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--ligne); }
.prix > div:last-child { border-bottom: 0; }
.prix__total { font-family: var(--f-texte); font-weight: 500; }

/* =========================================================
   Page L'île
   ========================================================= */
.ile-hero {
  position: relative;
  aspect-ratio: 1440 / 600;
  overflow: hidden;
  /* emplacement neutre tant que assets/img/ile-hero.jpg n'existe pas */
  background: #d5dde1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' fill='none'%3E%3Crect x='4' y='8' width='32' height='24' rx='2' stroke='%235B6B72' stroke-width='1.5'/%3E%3Ccircle cx='14' cy='16' r='3' stroke='%235B6B72' stroke-width='1.5'/%3E%3Cpath d='m6 29 9-8 6 5 5-4 9 7' stroke='%235B6B72' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
}
.ile-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bloc {
  display: flex;
  align-items: center;
  gap: 96px;
  padding: 64px var(--gouttiere);
}
.bloc--inverse { flex-direction: row-reverse; background: var(--ocean-pale); }
.bloc__photo { flex: 0 0 600px; aspect-ratio: 600 / 520; background: #49a7b0 center / cover no-repeat; }
.bloc__texte { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.bloc__texte p { color: var(--encre-attenue); max-width: 640px; }
.bloc--ile { align-items: flex-start; padding-top: 40px; }

.stats {
  flex: 0 0 460px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ligne);
  border: 1px solid var(--ligne);
}
.stat { display: flex; flex-direction: column; gap: 6px; padding: 24px; background: var(--fond-gris); }
.stat dt { font-family: var(--f-titre); font-size: 48px; line-height: 1; color: var(--ocean); }
.stat dd { font-family: var(--f-texte); font-size: 14px; line-height: 20px; color: var(--encre-attenue); }

.cta-bande {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 80px var(--gouttiere);
  background: var(--encre);
  color: var(--fond);
}
.cta-bande__titre { max-width: 640px; font-family: var(--f-titre); font-weight: 400; font-size: 56px; line-height: 1; }
.cta-bande__liens { display: flex; gap: 12px; flex-wrap: wrap; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1280px) {
  :root { --gouttiere: 48px; }
  .nav__onglets > ul { gap: 24px; }
  .nav__logo, .nav__actions { width: auto; }
  .autour, .bloc { gap: 56px; }
  .bloc__photo { flex-basis: 45%; }
  .stats { flex-basis: 380px; }
  .autour__photo { flex-basis: 50%; }
  .chiffres__titre, .faq__intro { flex-basis: 320px; }
  .piece-contenu__liste { flex-basis: 380px; }
}

@media (max-width: 1080px) {
  :root { --nav-h: 72px; }
  .nav__onglets, .nav__langue { display: none; }
  .nav__burger { display: inline-flex; }
  .nav .btn { padding: 14px 20px; }
  .menu__colonnes { grid-template-columns: 1fr; gap: 32px; align-content: start; padding: 48px 0; }
  .menu__colonnes li a { font-size: 26px; line-height: 34px; }

  .dispo { flex-direction: column; align-items: stretch; }
  .dispo__bouton { flex-basis: auto; margin-top: 0; }

  .venir__entete { flex-direction: column; align-items: flex-start; gap: 20px; }
  .venir__bas { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 860px) {
  :root { --gouttiere: 24px; }
  .h2 { font-size: 44px; }
  .hero__visuel { height: 560px; padding-bottom: 110px; }
  .hero__titre { font-size: 56px; line-height: 54px; }

  .autour { flex-direction: column; align-items: stretch; gap: 40px; }
  .bloc, .bloc--inverse { flex-direction: column; align-items: stretch; gap: 40px; }
  .bloc__photo, .stats { flex-basis: auto; }
  .cta-bande { flex-direction: column; align-items: flex-start; }
  .cta-bande__titre { font-size: 44px; }
  .autour__photo { flex-basis: auto; }

  .pieces__grille { grid-template-columns: 1fr; }
  .carte--grande { aspect-ratio: 616 / 520; height: auto; }

  .chiffres, .faq { flex-direction: column; gap: 32px; }
  .chiffres__titre, .faq__intro { flex-basis: auto; }

  .slide { flex-basis: 78vw; }
  .slide__photo { height: auto; aspect-ratio: 4 / 3; }

  .contact { padding: 96px var(--gouttiere); }
  .contact__titre { font-size: 48px; }
  .pied__haut { flex-direction: column; gap: 48px; }

  .h1 { font-size: 64px; line-height: 68px; }
  .lead { font-size: 24px; line-height: 32px; }
  .piece-visuel, .ile-hero { aspect-ratio: 16 / 9; }
  .piece-contenu { flex-direction: column; gap: 40px; }
  .piece-contenu__liste { flex-basis: auto; width: 100%; }
  .reservation { grid-template-columns: 1fr; }
  .sejour { position: static; }
}

@media (max-width: 600px) {
  :root { --gouttiere: 16px; }
  .nav__nom { font-size: 20px; }
  .nav__lieu { font-size: 10px; }
  .nav__burger span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav__actions { gap: 16px; }
  .nav .btn { padding: 12px 16px; font-size: 15px; }
  .menu { padding: 20px 16px 32px; }

  .h2 { font-size: 38px; }
  .hero__visuel { height: 520px; }
  .hero__titre { font-size: 44px; line-height: 44px; }
  .dispo { padding: 20px; }
  .dispo__champs { flex-wrap: wrap; }
  .dispo__champs .champ:not(.champ--court) { flex: 1 1 calc(50% - 10px); }
  .dispo__champs .champ--court { flex: 1 1 100%; }

  .pieces__titre { font-size: 32px; }
  .pieces__autres { grid-template-columns: 1fr; }
  .carte { aspect-ratio: 4 / 3; }
  .carte--grande .carte__titre { font-size: 40px; }

  .venir { padding: 72px var(--gouttiere); gap: 40px; }
  .stat { padding: 18px; }
  .stat dt { font-size: 38px; }
  .cta-bande { padding: 64px var(--gouttiere); }
  .cta-bande .btn { flex: 1 1 100%; }
  .venir__titre { font-size: 48px; line-height: 48px; }
  .trajet__etape b { font-size: 22px; line-height: 24px; }
  .trajet__etape span { font-size: 13px; line-height: 18px; }
  .trajet__duree-plus { display: none; }
  .venir__entete p { font-size: 16px; line-height: 24px; }
  .venir__liens .btn { flex: 1 1 100%; }

  .chiffre { flex-wrap: wrap; gap: 0 12px; }
  .chiffre dt { font-size: 16px; }

  .carrousel { padding: 72px 0; gap: 32px; }
  .carrousel__entete { flex-direction: column; align-items: flex-start; }
  .slide { flex-basis: 85vw; }
  .slide__titre { font-size: 22px; line-height: 26px; }

  .faq { padding: 72px var(--gouttiere); }
  .question summary { font-size: 24px; line-height: 28px; gap: 16px; }
  .question p { padding-right: 0; }

  .contact { padding: 64px 16px; }
  .contact__carte { padding: 24px 20px; }
  .contact__titre { font-size: 40px; }
  .champs-2 { flex-direction: column; gap: 16px; }

  .pied { padding: 56px 16px 32px; }
  .pied__colonnes { flex-wrap: wrap; gap: 36px; }
  .pied__logo { font-size: 52px; line-height: 50px; }
  .pied__bas { flex-direction: column; align-items: flex-start; }
  .pied__bas ul { flex-wrap: wrap; gap: 16px 24px; }

  .h1 { font-size: 52px; line-height: 56px; }
  .lead { font-size: 21px; line-height: 28px; }
  .galerie { grid-template-columns: 1fr; padding: 0 16px 56px; }
  .mosaique { --h: 170px; padding: 0 16px 56px; gap: 8px; }
  .visionneuse[open] { grid-template-columns: 1fr; }
  .visionneuse__nav { position: absolute; bottom: 20px; width: 48px; height: 48px; }
  .visionneuse__nav--prec { left: 16px; }
  .visionneuse__nav--suiv { right: 16px; }
  .visionneuse__figure { grid-column: 1; padding: 0 8px; }
  .visionneuse__figure img { max-height: calc(100vh - 180px); }
  .voisine { padding: 28px 16px; }
  .voisine strong { font-size: 24px; line-height: 30px; }
  .reservation { padding: 32px 16px 72px; }
  .calendrier { padding: 16px; }
  .calendrier__mois { grid-template-columns: 1fr; gap: 24px; }
  .legende { flex-wrap: wrap; gap: 10px 18px; }
  .sejour { padding: 22px 20px; }
}


/* ---------- Micro-animations : apparition au scroll ----------
   Classes posées par js/main.js uniquement sur ce qui est sous la ligne de flottaison.
   Animations (et non transitions) pour ne pas écraser les effets de survol existants. */
.revele--texte { opacity: 0; }
.revele--photo { clip-path: inset(100% 0 0 0); }
.revele--texte.est-revele { animation: kh-monter .8s cubic-bezier(.2, .7, .2, 1) var(--delai, 0ms) both; }
.revele--photo.est-revele { animation: kh-rideau 1.1s cubic-bezier(.65, 0, .25, 1) var(--delai, 0ms) both; }
@keyframes kh-monter {
  from { opacity: 0; translate: 0 28px; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes kh-rideau {
  from { clip-path: inset(100% 0 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  .revele--texte, .revele--photo { opacity: 1; clip-path: none; animation: none !important; }
}
@media print {
  .revele--texte, .revele--photo { opacity: 1 !important; clip-path: none !important; animation: none !important; }
}


/* ---------- Galerie en 3 colonnes (option galerie="egale" dans pieces_data.py) ----------
   Chaque photo prend toute la largeur de sa colonne, à ses proportions d'origine (rien n'est coupé) ;
   les photos verticales sont donc plus hautes. Disposition en colonnes, sans trous. */
.mosaique--egale { display: block; columns: 3; column-gap: 16px; }
.mosaique--egale::after { content: none; }
.mosaique--egale .mosaique__item { display: block; width: 100%; aspect-ratio: var(--r); margin: 0 0 16px; break-inside: avoid; background: var(--fond-sable); }
.mosaique--egale .mosaique__item img { object-fit: cover; }
@media (max-width: 860px) { .mosaique--egale { columns: 2; } }
@media (max-width: 600px) { .mosaique--egale { columns: 1; column-gap: 8px; } .mosaique--egale .mosaique__item { margin-bottom: 8px; } }


/* =========================================================
   Navbar compacte : un îlot centré, moins large que la page, qui flotte au-dessus du contenu
   (surcharge le bloc « Navigation à onglets » plus haut)
   ========================================================= */
:root { --flot: 16px; --nav-hauteur: 68px; --nav-largeur: 1040px; }
html { scroll-padding-top: 112px; }
.nav {
  top: 12px;
  height: var(--nav-hauteur);
  width: min(var(--nav-largeur), calc(100% - 2 * var(--flot)));
  margin: 12px auto;
  padding: 0 12px 0 28px;
  gap: 20px;
  background-color: #fff;
  border: 1px solid var(--ligne);
  box-shadow: 0 14px 34px -14px rgba(15, 46, 58, 0.4);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease,
              height .3s ease, top .3s ease, width .3s ease, backdrop-filter .3s ease;
}
.nav.est-defilee { top: 8px; height: 58px; width: min(920px, calc(100% - 2 * var(--flot))); }
.nav__logo, .nav__actions { width: auto; }
.nav__onglets > ul { gap: 26px; }
.nav__actions { gap: 16px; }
.nav .btn { padding: 12px 20px; }
.nav__nom { font-size: 22px; line-height: 24px; }

/* accueil : verre dépoli sur la photo, puis barre pleine au scroll */
.nav--transparente {
  inset: 12px 0 auto;
  margin: 0 auto;
  background-color: transparent;  /* totalement transparente sur la photo */
  border-color: transparent;
  box-shadow: none;
  text-shadow: 0 1px 12px rgba(8, 31, 41, 0.45);  /* garde le texte lisible sur la photo */
}
.nav--transparente .btn {
  text-shadow: none;
}
.nav--transparente::before { display: none; }
.nav--transparente.est-defilee,
.nav--transparente:has(.deroulant--mega:hover, .deroulant--mega:focus-within, .deroulant--mega.est-ouvert) {
  background-color: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-color: var(--ligne);
  box-shadow: 0 14px 34px -14px rgba(15, 46, 58, 0.4);
  text-shadow: none;
}
.nav--transparente.est-defilee { top: 8px; }

/* méga menu : carte sous l'îlot, même largeur */
.mega {
  top: calc(100% + 12px);
  grid-template-columns: 320px 1fr;
  gap: 40px;
  padding: 32px 32px 36px;
  border: 1px solid var(--ligne);
  box-shadow: 0 24px 44px -24px rgba(15, 46, 58, 0.45);
}
.mega__colonnes { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
.mega::before { height: 40px; }

@media (max-width: 1080px) {
  .nav, .nav.est-defilee { width: calc(100% - 2 * var(--flot)); padding: 0 16px 0 24px; }
}
@media (max-width: 600px) {
  :root { --flot: 8px; --nav-hauteur: 60px; }
  .nav { top: 8px; margin: 8px auto; padding: 0 12px 0 16px; }
  .nav--transparente { inset: 8px 0 auto; margin: 0 auto; }
  .nav.est-defilee, .nav--transparente.est-defilee { top: 6px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .nav { transition: none; } }


/* ---------- Titre du hero : les deux lignes glissent au chargement ----------
   Le JS (js/main.js) découpe le titre en 2 lignes ; .js est posé dans le <head> pour éviter tout flash. */
.js .hero__titre:not(.est-pret) { opacity: 0; animation: kh-secours 0s 2.5s forwards; } /* filet de sécurité si le JS échoue */
@keyframes kh-secours { to { opacity: 1; } }
.hero__titre .ligne { display: block; }
.hero__titre.est-pret .ligne--1 { animation: kh-glisse-g 1.1s cubic-bezier(.2, .7, .2, 1) .15s both; }
.hero__titre.est-pret .ligne--2 { animation: kh-glisse-d 1.1s cubic-bezier(.2, .7, .2, 1) .4s both; }
@keyframes kh-glisse-g { from { opacity: 0; transform: translateX(-64px); } to { opacity: 1; transform: none; } }
@keyframes kh-glisse-d { from { opacity: 0; transform: translateX(64px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__titre .ligne { animation: none !important; } }

/* Page « L'île » et pages des pièces : hero moins haut, qui remonte sous la navbar flottante */
.page-ile .ile-hero, main > .piece-visuel:first-child {
  aspect-ratio: auto;
  height: clamp(380px, 52vh, 540px);
  margin-top: calc(-1 * (var(--nav-hauteur) + 24px));  /* hauteur de l'îlot + ses marges */
}
@media (max-width: 860px) { .page-ile .ile-hero, main > .piece-visuel:first-child { height: clamp(300px, 46vh, 420px); } }

/* =========================================================
   Arrondis : photos, cartes, boutons, navbar, panneaux
   Les visuels pleine largeur (hero de l'accueil, des pièces et de « L'île ») restent droits.
   ========================================================= */
:root { --r-petit: 8px; --r-moyen: 14px; --r-grand: 20px; }

/* photos et cartes */
.carte, .slide__photo, .autour__photo, .bloc__photo, .mosaique__item, .galerie__img, .mega__vedette {
  border-radius: var(--r-grand);
  overflow: hidden;
  --rayon-photo: var(--r-grand);
}
.mosaique--egale .mosaique__item { border-radius: var(--r-moyen); --rayon-photo: var(--r-moyen); }
.visionneuse__figure img { border-radius: var(--r-moyen); }

/* l'apparition au scroll garde les coins arrondis */
@keyframes kh-rideau {
  from { clip-path: inset(100% 0 0 0 round var(--rayon-photo, 0px)); }
  to   { clip-path: inset(0 0 0 0 round var(--rayon-photo, 0px)); }
}
.revele--photo { clip-path: inset(100% 0 0 0 round var(--rayon-photo, 0px)); }

/* boutons */
.btn, .nav .btn, .dispo__bouton { border-radius: var(--r-petit); }

/* navbar flottante, méga menu et panneaux */
.nav, .mega { border-radius: var(--r-moyen); }
.dispo, .contact__carte, .calendrier, .sejour, .stats { border-radius: var(--r-moyen); }
.stats { overflow: hidden; }

.mega__badge { border-radius: var(--r-petit); }

/* ---------- Éléments ronds harmonisés ----------
   Toutes les commandes en icône (flèches du carrousel, du calendrier, de la visionneuse, croix, « + » de la FAQ)
   et les repères du trajet sont des cercles. */
.fleche, .calendrier__fleche, .visionneuse__nav, .visionneuse__fermer, .question__icone,
.trajet__point, .trajet__point::after { border-radius: 50%; }

/* calendrier : jours sélectionnés et légende légèrement arrondis */
.jour:hover:not(:disabled), .jour--bord, .jour--pris { border-radius: var(--r-petit); }
.legende i { border-radius: 4px; }

/* petits labels (trajet, coup de cœur) */
.trajet__duree, .mega__badge { border-radius: var(--r-petit); }

/* ---------- Barre « Estimer mon séjour » : encart d'estimation sous les champs ---------- */
.dispo { flex-wrap: wrap; }
.dispo__estimation {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border-radius: var(--r-petit);
  background: var(--ocean-pale);
  animation: kh-monter .4s cubic-bezier(.2, .7, .2, 1) both;
}
.dispo__estimation[hidden] { display: none; }
.dispo__estimation p { font-family: var(--f-texte); font-size: 14px; line-height: 1.45; color: var(--encre); }
.dispo__estimation--erreur { background: #fbeee9; }
.dispo__estimation--erreur p { color: var(--erreur); }
.estimation__texte { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.estimation__total { font-family: var(--f-titre) !important; font-size: 32px !important; line-height: 1 !important; }
.estimation__total span { font-family: var(--f-texte); font-size: 14px; color: var(--encre-attenue); }
.dispo__estimation .estimation__note { font-size: 13px; color: var(--encre-attenue); }
.dispo__estimation .btn { flex: 0 0 auto; width: auto; }
@media (max-width: 860px) { .dispo__estimation .btn { width: 100%; } }
@media (max-width: 860px) {
  .dispo__estimation { flex-direction: column; align-items: stretch; }
}

/* ---------- Page Contact ---------- */
.page-contact .contact {
  min-height: 100vh;
  margin-top: calc(-1 * (var(--nav-hauteur) + 24px));  /* la photo passe sous la navbar */
  padding-top: calc(var(--nav-hauteur) + 72px);
  padding-bottom: 72px;
}

/* ---------- Logo : grain de café + nom ---------- */
.nav__logo { flex-direction: row; align-items: center; gap: 8px; }
.nav__grain { flex: none; color: var(--nav-accent); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.nav__logo:hover .nav__grain { transform: rotate(-18deg) scale(1.08); }
.nav--transparente:not(.est-defilee) .nav__grain { --grain-trait: rgba(8, 31, 41, .55); color: #fff; }
.pied__logo { display: flex; align-items: center; gap: 14px; }
.pied__grain { flex: none; color: var(--ocean-pastel); --grain-trait: var(--encre); }
@media (max-width: 600px) { .pied__grain { width: 38px; height: 38px; } }

/* =========================================================
   SEO / performances
   ========================================================= */
/* surtitre du H1 de l'accueil (mot-clé « Maison de vacances à Belle-Île-en-Mer ») */
.hero__surtitre {
  display: block;
  margin-bottom: 18px;
  font-family: var(--f-corps);
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}
@media (max-width: 600px) { .hero__surtitre { font-size: 12px; margin-bottom: 12px; } }

/* photos des blocs de la page L'île : <img> responsive à la place d'un fond CSS */
.bloc__photo { overflow: hidden; }
.bloc__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* versions plus légères des fonds sur mobile */
@media (max-width: 860px) {
  .hero__visuel {
    background:
      linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0) 240px),
      linear-gradient(rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.22)),
      linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000 100%),
      url("../assets/img/web/maison-hero-2400-960.webp") center / cover no-repeat,
      #1b2d3d;
  }
}

/* fonds devenus des <img> (lazy-loading) : « Au cœur de la côte sauvage » et bloc contact */
.autour__photo { position: relative; overflow: hidden; background-image: none !important; }
.autour__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact, .page-contact .contact { background-image: linear-gradient(#a7c7e0, #48a8ad 55%, #1d6f78) !important; overflow: hidden; }
.contact__fond { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   Blog : liste des articles, page article
   ========================================================= */
.piece-titre--blog { padding-bottom: 40px; }
.blog-liste {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 24px;
  padding: 0 var(--gouttiere) 112px;
}
.blog-vide { padding: 0 var(--gouttiere) 112px; font-family: var(--f-texte); font-size: 18px; color: var(--encre-attenue); }

.billet { display: flex; flex-direction: column; gap: 18px; color: var(--encre); }
.billet__photo { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-grand); background: var(--fond-sable); }
.billet__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.billet:hover .billet__photo img { transform: scale(1.04); }
.billet__texte { display: flex; flex-direction: column; gap: 10px; }
.billet__meta { font-family: var(--f-texte); font-size: 14px; line-height: 20px; color: var(--ocean); }
.billet__titre { font-family: var(--f-titre); font-weight: 400; font-size: 32px; line-height: 1.02; text-transform: uppercase; }
.billet:hover .billet__titre { color: var(--ocean); }
.billet__extrait { font-family: var(--f-texte); font-size: 16px; line-height: 1.55; color: var(--encre-attenue); }
.billet__lien { margin-top: 4px; font-family: var(--f-caps); font-weight: 600; font-size: 14px; }
.billet:hover .billet__lien { text-decoration: underline; text-underline-offset: 4px; }

/* page article */
.article__entete { padding-bottom: 40px; }
.article__titre { max-width: 1000px; font-size: 72px; line-height: 1; }
.article__une { margin: 0 var(--gouttiere) 56px; aspect-ratio: 16 / 8; overflow: hidden; border-radius: var(--r-grand); background: var(--fond-sable); }
.article__une img { width: 100%; height: 100%; object-fit: cover; }
.article__contenu {
  max-width: calc(760px + 2 * var(--gouttiere));
  padding: 0 var(--gouttiere);
  font-family: var(--f-texte);
  font-size: 19px;
  line-height: 1.7;
  color: var(--encre);
}
.article__contenu > * + * { margin-top: 22px; }
.article__contenu h2 { margin-top: 56px; font-family: var(--f-titre); font-weight: 400; font-size: 40px; line-height: 1.05; scroll-margin-top: 112px; }
.article__contenu h3 { margin-top: 40px; font-family: var(--f-corps); font-weight: 600; font-size: 22px; line-height: 1.3; }
.article__contenu h2 + *, .article__contenu h3 + * { margin-top: 14px; }
.article__contenu ul, .article__contenu ol { padding-left: 1.3em; }
.article__contenu ul { list-style: disc; }
.article__contenu ol { list-style: decimal; }
.article__contenu li + li { margin-top: 8px; }
.article__contenu ul li::marker { color: var(--ocean); }
.article__contenu a { color: var(--ocean); text-decoration: underline; text-underline-offset: 3px; }
.article__contenu strong { font-weight: 500; }
.article__contenu blockquote { margin-left: 0; padding: 20px 24px; border-left: 3px solid var(--ocean); border-radius: 0 var(--r-moyen) var(--r-moyen) 0; background: var(--ocean-pale); }
.article__photo { margin-top: 40px !important; }
.article__photo img { display: block; width: 100%; height: auto; border-radius: var(--r-grand); }
.article__photo figcaption { margin-top: 10px; font-size: 14px; color: var(--encre-attenue); }
.article__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 760px;
  margin: 72px var(--gouttiere) 112px;
  padding: 36px 40px;
  border-radius: var(--r-grand);
  background: var(--encre);
  color: var(--fond);
  font-family: var(--f-texte);
  font-size: 17px;
  line-height: 1.6;
}
.article__cta-titre { font-family: var(--f-titre); font-size: 36px; line-height: 1; }
.article__cta-boutons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.article__cta .btn { background: var(--fond); border-color: var(--fond); color: var(--encre); }
.article__cta .btn--contour { background: transparent; border-color: rgba(246, 243, 236, .5); color: var(--fond); }
.article__cta .btn:hover { background: var(--ocean); border-color: var(--ocean); color: #fff; }
.blog-suite { padding-top: 80px; border-top: 1px solid var(--ligne); }
.blog-suite .h2 { padding: 0 var(--gouttiere) 40px; }

@media (max-width: 1100px) { .blog-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .article__titre { font-size: 48px; }
  .article__une { aspect-ratio: 4 / 3; margin-bottom: 40px; }
  .article__contenu { font-size: 17px; }
  .article__contenu h2 { font-size: 32px; margin-top: 44px; }
  .article__cta { margin-top: 56px; margin-bottom: 72px; padding: 28px 24px; }
}
@media (max-width: 600px) {
  .blog-liste { grid-template-columns: 1fr; gap: 40px; padding: 0 16px 72px; }
  .article__une, .article__cta { margin-left: 16px; margin-right: 16px; }
  .article__contenu { padding: 0 16px; }
  .blog-suite .h2 { padding: 0 16px 28px; }
}

/* ---------- Page article : colonne centrée ---------- */
.page-article .article__entete { align-items: center; text-align: center; max-width: calc(1000px + 2 * var(--gouttiere)); margin: 0 auto; }
.page-article .article__entete .ariane { flex-wrap: wrap; justify-content: center; }
.page-article .article__une { max-width: 1100px; margin-left: auto; margin-right: auto; }
@media (max-width: 1260px) { .page-article .article__une { margin-left: var(--gouttiere); margin-right: var(--gouttiere); } }
.page-article .article__contenu { margin: 0 auto; }
.page-article .article__cta { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }
.page-article .article__cta-boutons { justify-content: center; }
.page-article .blog-suite .h2 { text-align: center; }
@media (max-width: 600px) {
  .page-article .article__une { margin-left: 16px; margin-right: 16px; }
  .page-article .article__cta { margin-left: 16px; margin-right: 16px; }
}
