/* Page « Réalisations » : le marais salant. Repose sur site-panorama.css (barre du haut, polices, couleurs)
   et sur site-applis.css (scène épinglée, plans, films, écrans .vigie-bloc, boutons, pied de page). */
.page-marais { background: #1c120a; }
.sequence-cabane.sequence-marais { height: 400vh; } /* FIN + 1 écrans */
.sequence-marais .stage { background: #1c120a; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* les plans : l'image d'ouverture est toujours là ; les suivantes se posent (ou se fondent, sans film) par-dessus */
.plan-sel, .plan-cabane, .oeillets { visibility: hidden; opacity: 0; transform-origin: 50% 55%; }
.oeillets { position: absolute; z-index: 1; inset: 0; }
.oeillets .plan { position: absolute; z-index: 0; inset: 0; }
.sequence-marais .vigie-bloc h1 { margin: 0; font-family: Bricolage, DM, sans-serif; font-size: clamp(42px, 5.6vw, 104px); font-weight: 600; line-height: 0.98; letter-spacing: -0.04em; text-wrap: balance; text-shadow: 0 2px 30px rgba(40, 16, 4, 0.55); }
.sequence-marais .vigie-bloc h1 em { font-family: "Iowan Old Style", Baskerville, Georgia, serif; font-weight: 400; color: #ffe2bd; }

/* --- 0 · l'arrivée par le ciel : le titre à gauche, sur le ciel et le marais ; les bassins restent visibles en bas --- */
.bloc-ciel { grid-template-rows: auto; align-content: start; padding-top: clamp(116px, 17vh, 180px); }
.bloc-ciel::before { background: linear-gradient(90deg, rgba(38, 16, 5, 0.66), rgba(38, 16, 5, 0.34) 42%, rgba(38, 16, 5, 0) 66%), linear-gradient(180deg, rgba(38, 16, 5, 0.42), rgba(38, 16, 5, 0) 30%); }
.bloc-ciel .v-tete { max-width: min(62vw, 1000px); }
.bloc-ciel .v-chapeau { max-width: 50ch; text-shadow: 0 1px 16px rgba(30, 12, 4, 0.75); }
.bloc-ciel .v-chapeau, .bloc-ciel .actions, .bloc-sel .v-chapeau, .mc-texte .v-chapeau, .mc-texte .actions, .mc-form { opacity: 0; translate: 0 16px; transition: opacity 240ms ease, translate 240ms ease; }
.vigie-bloc.la :is(.v-chapeau, .actions, .mc-form) { opacity: 1; translate: 0 0; transition: opacity 800ms ease var(--d, 620ms), translate 1000ms cubic-bezier(0.16, 1, 0.3, 1) var(--d, 620ms); }
.vigie-bloc .actions { --d: 780ms; }
.mc-form { --d: 700ms; }
.bouton.suite-bouton { padding: 16px 26px; border: 0; background: var(--copper); color: #fff; cursor: pointer; text-shadow: none; }
.bouton.suite-bouton:hover { background: #b5683a; }
.bouton.suite-bouton span { color: #fff; }
.suite-bouton:hover span { transform: translateY(4px); }

/* --- 1 · les neuf bassins : un projet par bassin, posé comme un reflet dans l'eau --- */
.oeillet { position: absolute; z-index: 1; margin: 0; opacity: 0; transition: opacity 300ms ease; }
.stage.aux-bassins .oeillet { opacity: 1; transition: opacity 900ms ease calc(200ms + var(--n) * 90ms); }
.oeillet > button { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0.45vw; overflow: hidden; background: none; cursor: pointer; isolation: isolate; transition: scale 600ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 400ms ease, opacity 500ms ease; }
/* le reflet : l'aperçu du projet, un peu délavé et ondulé par l'eau ; net et franc quand on le vise */
.oeillet img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; opacity: 0.84; filter: url(#onde) saturate(0.86); transition: opacity 400ms ease; }
.oeillet > button::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(255, 214, 170, 0.34), rgba(255, 236, 214, 0.05) 46%, rgba(70, 34, 14, 0.5)); mix-blend-mode: soft-light; pointer-events: none; transition: opacity 400ms ease; }
.oeillet > button::after { content: ""; position: absolute; z-index: 1; inset: 0; border-radius: inherit; box-shadow: inset 0 0 1.4vw 0.3vw rgba(72, 44, 22, 0.55); pointer-events: none; transition: box-shadow 400ms ease; }
.b-nom { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 1.6vw 0.9vw 0.55vw; background: linear-gradient(0deg, rgba(24, 12, 5, 0.86), rgba(24, 12, 5, 0)); color: #fff; text-align: left; }
.b-nom b { font: 600 clamp(14px, 1.2vw, 22px)/1.1 Bricolage, DM, sans-serif; letter-spacing: -0.015em; }
.b-nom i { font: 600 clamp(10px, 0.72vw, 12px)/1 DM, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; font-style: normal; color: #ffd9b0; white-space: nowrap; }
.oeillet > button:hover, .oeillet > button:focus-visible { scale: 1.045; z-index: 3; box-shadow: 0 1.2vw 3vw rgba(20, 8, 2, 0.55); }
.oeillet > button:hover img, .oeillet > button:focus-visible img { opacity: 1; filter: none; }
.oeillet > button:hover::before, .oeillet > button:focus-visible::before { opacity: 0; }
.oeillet > button:hover::after, .oeillet > button:focus-visible::after { box-shadow: inset 0 0 0 2px rgba(255, 233, 196, 0.9); }
.oeillet > button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.oeillet:hover, .oeillet:focus-within { z-index: 3; }
/* filtré : le bassin redevient de l'eau */
.oeillet.vide > button { opacity: 0; pointer-events: none; }
.oeillet.choisi > button { opacity: 0; transition: opacity 0s; }
/* la barre du bas, sur le chemin d'argile : repères, familles, suite */
.bloc-bassins { grid-template-rows: 1fr; align-items: end; pointer-events: none !important; }
.barre-bassins { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(16px, 2.4vw, 44px); pointer-events: auto; }
.bloc-bassins:not(.la) .barre-bassins { pointer-events: none; }
.bloc-bassins::before { background: linear-gradient(0deg, rgba(22, 12, 5, 0.82), rgba(22, 12, 5, 0.5) 12%, rgba(22, 12, 5, 0) 21%); }
.reperes-ligne { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px clamp(14px, 1.8vw, 30px); margin: 0; padding: 0; list-style: none; font-size: clamp(12px, 0.9vw, 15px); line-height: 1.3; color: rgba(247, 241, 227, 0.88); }
.reperes-ligne b { margin-right: 4px; font: 600 clamp(17px, 1.45vw, 26px)/1 Bricolage, DM, sans-serif; letter-spacing: -0.02em; color: #fff; }
.filtres { display: flex; gap: 6px; padding: 6px; border: 1px solid rgba(247, 241, 227, 0.22); border-radius: 999px; background: rgba(24, 12, 5, 0.62); backdrop-filter: blur(10px); }
.filtres button { display: inline-flex; align-items: baseline; gap: 7px; padding: 10px 16px; border: 0; border-radius: 999px; background: none; color: rgba(247, 241, 227, 0.86); font: 600 clamp(13px, 0.98vw, 16px)/1 DM, sans-serif; cursor: pointer; white-space: nowrap; transition: background 220ms ease, color 220ms ease; }
.filtres button i { font: italic 400 0.92em/1 "Iowan Old Style", Baskerville, Georgia, serif; color: var(--copper-clair); transition: color 220ms ease; }
.filtres button:hover { background: rgba(247, 241, 227, 0.12); color: #fff; }
.filtres button.actif { background: var(--cream); color: #24150a; }
.filtres button.actif i { color: #8a4a22; }
.filtres button:focus-visible { outline: 2px solid var(--copper-clair); outline-offset: 2px; }
.barre-bassins > .suite { justify-self: end; }
.barre-bassins > .suite:hover span { transform: translateY(4px); }

/* --- la fiche d'un projet : le reflet sort de l'eau, vient en grand à gauche ; la fiche se pose à droite --- */
.vp { position: absolute; z-index: 6; inset: 0; }
.vp-voile { position: absolute; inset: 0; background: rgba(18, 9, 3, 0.74); backdrop-filter: blur(5px) saturate(0.8); opacity: 0; transition: opacity 500ms ease; cursor: zoom-out; }
.stage.vp-ouverte .vp-voile { opacity: 1; }
.vp-image { position: absolute; object-fit: cover; object-position: 50% 0; border-radius: 0.45vw; box-shadow: 0 0 0 rgba(0, 0, 0, 0); transition: left 620ms cubic-bezier(0.16, 1, 0.3, 1), top 620ms cubic-bezier(0.16, 1, 0.3, 1), width 620ms cubic-bezier(0.16, 1, 0.3, 1), height 620ms cubic-bezier(0.16, 1, 0.3, 1), border-radius 620ms ease, box-shadow 620ms ease, opacity 220ms ease; }
.stage.vp-ouverte .vp-image { border-radius: 10px; box-shadow: 0 30px 90px rgba(8, 3, 0, 0.6), 0 0 0 1px rgba(255, 233, 196, 0.25); }
.vp-texte { position: absolute; top: 50%; right: max(clamp(28px, 5vw, 90px), (var(--sw, 100vw) - 1560px) / 2); width: min(30vw, 470px); translate: 24px -44%; color: var(--cream); opacity: 0; transition: opacity 240ms ease, translate 240ms ease; }
.stage.vp-ouverte .vp-texte { opacity: 1; translate: 0 -44%; transition: opacity 600ms ease 260ms, translate 800ms cubic-bezier(0.16, 1, 0.3, 1) 260ms; }
.vp.change .vp-image, .vp.change .vp-contenu { opacity: 0; }
.vp-contenu { display: grid; gap: clamp(10px, 1.6vh, 16px); transition: opacity 220ms ease; }
.vp-contenu .sur::before { transform: scaleX(1); }
.vp-contenu h3 { margin: 0; font: 600 clamp(34px, 3.6vw, 64px)/1 Bricolage, DM, sans-serif; letter-spacing: -0.035em; color: #fff; }
.vp-contenu p { margin: 0; }
.b-client { font: italic 400 clamp(17px, 1.35vw, 24px)/1.25 "Iowan Old Style", Baskerville, Georgia, serif; color: #ffd9b0; }
.b-desc { font-size: clamp(16px, 1.15vw, 20px); line-height: 1.5; color: rgba(247, 241, 227, 0.92); }
.vp-contenu .bouton { justify-self: start; margin-top: 8px; }
.vp-contenu .bouton:hover span { transform: translate(3px, -3px); }
.vp-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: clamp(20px, 3.4vh, 36px); padding-top: clamp(14px, 2.2vh, 20px); border-top: 1px solid rgba(247, 241, 227, 0.25); }
.vp-nav button { padding: 6px 0; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--cream); font: 600 clamp(14px, 1.02vw, 17px)/1.2 DM, sans-serif; cursor: pointer; transition: border-color 200ms ease, color 200ms ease; }
.vp-nav button:hover { color: #ffd9b0; border-color: currentColor; }
.vp-nav button:focus-visible { outline: 2px solid var(--copper-clair); outline-offset: 4px; }

/* --- 2 · les trois tas de sel : une famille sous chaque tas --- */
.bloc-sel::before { background: linear-gradient(90deg, rgba(38, 16, 5, 0.6), rgba(38, 16, 5, 0.28) 44%, rgba(38, 16, 5, 0) 66%), linear-gradient(180deg, rgba(38, 16, 5, 0.38), rgba(38, 16, 5, 0) 30%), linear-gradient(0deg, rgba(14, 8, 4, 0.72), rgba(14, 8, 4, 0.4) 26%, rgba(14, 8, 4, 0) 40%); }
.bloc-sel .v-tete { max-width: min(60vw, 960px); }
.familles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.familles > li { padding: 0 clamp(10px, 2vw, 40px); text-align: center; }
.familles > li::before { content: none; }
.familles a { position: relative; display: grid; justify-items: center; gap: 6px; padding: clamp(14px, 2.2vh, 22px) clamp(12px, 1.6vw, 28px) clamp(12px, 2vh, 20px); border-radius: 14px; color: var(--cream); text-decoration: none; transition: background 300ms ease, translate 500ms cubic-bezier(0.16, 1, 0.3, 1); }
.familles a:hover, .familles a:focus-visible { background: rgba(247, 241, 227, 0.1); translate: 0 -6px; }
.familles a:focus-visible { outline: 2px solid var(--copper-clair); outline-offset: 2px; }
.familles span { font: italic 400 clamp(30px, 3.2vw, 58px)/1 "Iowan Old Style", Baskerville, Georgia, serif; color: #ffd9b0; }
.familles h3 { margin: 0; font: 600 clamp(18px, 1.55vw, 28px)/1.15 Bricolage, DM, sans-serif; letter-spacing: -0.02em; color: #fff; }
.familles p { max-width: 34ch; font-size: clamp(14px, 1.02vw, 17px); line-height: 1.45; color: rgba(247, 241, 227, 0.88); }
.familles i { font-style: normal; color: var(--copper-clair); transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1); }
.familles a:hover i { transform: translateX(8px); }

/* --- 3 · la cabane du saunier : le contact sur le mur de planches, le pied de page au sol --- */
.bloc-cabane { display: block; padding-top: 0; }
.bloc-cabane::before { background: linear-gradient(90deg, rgba(14, 8, 4, 0.5), rgba(14, 8, 4, 0.3) 56%, rgba(14, 8, 4, 0) 64%), linear-gradient(0deg, rgba(10, 6, 3, 0.94), rgba(10, 6, 3, 0.8) 22%, rgba(10, 6, 3, 0) 40%); }
.mur-contact { position: absolute; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: clamp(22px, 3.2vw, 60px); align-items: start; }
.mc-texte { display: grid; gap: clamp(10px, 1.8vh, 18px); }
.mc-texte h2 { font-size: clamp(36px, 4.6vw, 86px); }
.mc-texte .v-chapeau { font-size: clamp(15px, 1.1vw, 19px); }
.mc-texte .actions { margin-top: 2px; gap: 12px 22px; }
.mc-form { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.3vh, 12px) 12px; }
.mc-form label { display: grid; gap: 5px; }
.mc-form label.large, .mc-form label:nth-of-type(3) { grid-column: 1 / -1; }
.mc-form label span { font: 600 clamp(10px, 0.74vw, 12px)/1 DM, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: #ffd9b0; }
.mc-form :is(input, select, textarea) { width: 100%; padding: 11px 13px; border: 1px solid rgba(247, 241, 227, 0.3); border-radius: 4px; background: rgba(16, 9, 4, 0.62); color: #fff; font: 500 clamp(14px, 1vw, 16px)/1.3 DM, sans-serif; backdrop-filter: blur(6px); transition: border-color 200ms ease, background 200ms ease; }
.mc-form textarea { resize: none; }
.mc-form :is(input, select, textarea):focus { outline: none; border-color: #ffd9b0; background: rgba(16, 9, 4, 0.8); }
.mc-form .bouton { justify-self: start; white-space: nowrap; border: 0; cursor: pointer; }
.mc-etat { align-self: center; margin: 0; font-size: 13px; color: #ffd9b0; }
.bloc-cabane .v-pied { position: absolute; left: max(clamp(28px, 5vw, 90px), (var(--sw, 100vw) - 1560px) / 2); right: max(clamp(28px, 5vw, 90px), (var(--sw, 100vw) - 1560px) / 2); bottom: clamp(14px, 2.6vh, 28px); display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(28px, 5vw, 90px); row-gap: clamp(10px, 1.6vh, 16px); align-items: start; }
.bloc-cabane .pied-meta { grid-column: 1 / -1; }
.bloc-cabane .pied-col ul { gap: clamp(3px, 0.6vh, 7px); padding-top: 10px; }
.bloc-cabane .pied-col h3 { padding-bottom: 9px; }
.bloc-cabane .pied-col a, .bloc-cabane .pied-villes summary { font-size: clamp(13px, 0.95vw, 15px); }
@media (max-width: 1100px) {
  .barre-bassins { grid-template-columns: 1fr; justify-items: start; }
  .barre-bassins > .suite { justify-self: start; }
  .mur-contact { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .oeillet img { filter: saturate(0.86); }
}

/* --- Téléphone (sous 760 px) : dans la cabane du saunier, le formulaire ne tient pas avec le pied de page dans un seul écran.
   On garde le texte, le bouton de réservation, le téléphone et l'e-mail ; le formulaire reste sur les pages de service et la page Réserver. --- */
@media (max-width: 760px) {
  .bloc-cabane .mc-form { display: none; }
  .bloc-cabane .mur-contact { left: 20px !important; right: 20px; width: auto !important; }
  .bloc-cabane .v-pied { left: 20px; right: 20px; bottom: 14px; grid-template-columns: 1fr; row-gap: 12px; }
}

/* la carte de rendez-vous à la place du formulaire : un appel, puis la maquette */
.contact-rdv, .mc-rdv, .d-rdv { display: grid; grid-template-columns: 1fr; gap: 18px; justify-items: start; align-content: center; }
.mc-rdv .bouton { white-space: nowrap; }
.rdv-titre { margin: 0; font: 600 clamp(20px, 1.6vw, 26px)/1.2 Bricolage, DM, sans-serif; letter-spacing: -0.02em; }
