/* Les Murmures des Anges à travers les coquillages : maquette (étape 1 bis) */

@font-face { font-family: "Cormorant Garamond"; src: url(../fonts/cormorant-garamond-latin-wght-normal.woff2) format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(../fonts/cormorant-garamond-latin-wght-italic.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(../fonts/figtree-latin-wght-normal.woff2) format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }

:root {
  --sable: #F3E9D6;
  --sable-clair: #FBF6EC;
  --ecume: #FFFDF8;
  --nuit: #0E2B40;
  --nuit-doux: #3E5A6E;
  --bleu: #1176B3;          /* bleu profond du logo */
  --bleu-texte: #0C5F92;    /* même bleu, assombri pour le petit texte (contraste AA) */
  --bleu-moyen: #3C9ED8;
  --bleu-clair: #6CC6F1;
  --filet: rgba(14, 43, 64, .12);
  --filet-bleu: rgba(17, 118, 179, .35);
  --titre: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --texte: "Figtree", system-ui, sans-serif;
  --wrap: 1160px;
  --gout: clamp(20px, 4vw, 40px);
  --header-h: 68px;
  /* forme de vague partagée (bords de section, marée, voiles) */
  --vague: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20C120 4 240 4 360 20S600 36 720 20V40H0Z'/%3E%3C/svg%3E");

  /* Sections profondes (Réserver, pied de page) : version bleu océan lumineux, proposée.
     Ancienne version bleu nuit, pour comparer, remplacer les 8 lignes ci-dessous par :
     --profond: #0E2B40; --profond-texte: #F3E9D6; --profond-doux: rgba(243, 233, 214, .82);
     --profond-accent: #6CC6F1; --profond-eyebrow: #6CC6F1; --profond-filet: rgba(243, 233, 214, .15);
     --profond-btn: #1176B3; --profond-btn-texte: #FFFDF8; */
  --profond: #0F6DA8;
  --profond-texte: #FFFDF8;
  --profond-doux: rgba(255, 253, 248, .88);
  --profond-accent: #CDEFFC;
  --profond-eyebrow: #FFFDF8;
  --profond-filet: rgba(255, 253, 248, .25);
  --profond-btn: #FFFDF8;
  --profond-btn-texte: #0C5F92;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--sable); color: var(--nuit); font: 400 1.0625rem/1.65 var(--texte); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a, button { -webkit-tap-highlight-color: transparent; }
a { color: var(--bleu-texte); text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--titre); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 1.6rem + 5vw, 5.25rem); }
h2 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); }
h3 { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.2rem); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--bleu); }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Lenis (défilement doux) */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gout); }
.evitement { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--nuit); color: var(--sable); padding: .6em 1em; border-radius: 8px; }
.evitement:focus { top: 12px; }

section { position: relative; padding-block: clamp(80px, 10vw, 136px); }
.bg-clair { background: var(--sable-clair); }
.bg-sable { background: var(--sable); }
.bg-profond { background: var(--profond); color: var(--profond-texte); }

/* Bord de section en vague, dans la couleur de la section */
.vague-haut::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 32px;
  background-color: inherit; transform-origin: 50% 100%;
  -webkit-mask: var(--vague) repeat-x left bottom / 720px 100%;
  mask: var(--vague) repeat-x left bottom / 720px 100%;
}

.eyebrow { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.1rem; font: 600 .78rem/1.2 var(--texte); letter-spacing: .16em; text-transform: uppercase; color: var(--bleu-texte); }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.25rem); color: var(--nuit-doux); max-width: 36em; }
.centre { text-align: center; }
.centre .eyebrow, .centre .actions { justify-content: center; }
.centre .lead { margin-inline: auto; }

/* Badge PROVISOIRE (textes et photos à remplacer) */
[data-provisoire]::before {
  content: attr(data-provisoire);
  display: block; width: fit-content; margin-bottom: .7rem; padding: .35em .7em;
  font: 700 .66rem/1 var(--texte); letter-spacing: .14em; text-transform: uppercase; font-style: normal;
  color: #5C4300; background: #FFE9A8; border-radius: 4px;
}
:is(.arche, .galet, .piece-img)[data-provisoire] { position: relative; }
:is(.arche, .galet, .piece-img)[data-provisoire]::before { position: absolute; left: 14px; bottom: 14px; z-index: 3; margin: 0; }
.centre[data-provisoire]::before, .centre [data-provisoire]::before { margin-inline: auto; }

/* Boutons et liens : un reflet d'eau passe au survol */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.5em; border: 1px solid var(--bleu); border-radius: 999px;
  background: var(--bleu); color: var(--ecume); font: 600 1rem/1 var(--texte); text-decoration: none; text-align: center;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .16s ease;
}
.btn::after {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -35%; width: 35%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: translateX(-100%) skewX(-18deg);
}
.btn:active { transform: scale(.97); }
.btn-ligne { background: transparent; color: var(--nuit); border-color: rgba(14, 43, 64, .35); }
.btn-ligne::after { background: linear-gradient(100deg, transparent, rgba(108, 198, 241, .35), transparent); }
.lien-fleche { display: inline-flex; align-items: center; gap: .45em; padding-bottom: 3px; border-bottom: 1px solid currentColor; font-weight: 600; text-decoration: none; }
.lien-fleche::after { content: "\2192"; transition: transform .2s ease; }
@media (hover: hover) {
  .btn:hover { background: var(--bleu-texte); border-color: var(--bleu-texte); color: var(--ecume); }
  .btn:hover::after { transform: translateX(480%) skewX(-18deg); transition: transform .9s cubic-bezier(.25, .6, .3, 1); }
  .btn-ligne:hover { background: var(--nuit); border-color: var(--nuit); color: var(--sable); }
  .lien-fleche:hover { color: var(--nuit); }
  .lien-fleche:hover::after { transform: translateX(4px); }
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--sable); border-bottom: 1px solid var(--filet); }
.site-header .wrap { max-width: 1320px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--nuit); text-decoration: none; white-space: nowrap; font: 500 clamp(1.15rem, 1rem + .5vw, 1.4rem)/1 var(--titre); }
.brand img { width: auto; height: 46px; }
.brand em { font-style: italic; color: var(--bleu-texte); }

.burger { display: grid; place-items: center; width: 46px; height: 46px; margin-right: -8px; padding: 0; border: 0; background: none; color: var(--nuit); cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 24px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.nav-ouverte .burger span { background: transparent; }
.nav-ouverte .burger span::before { transform: translateY(7px) rotate(45deg); }
.nav-ouverte .burger span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1179.98px) {
  .nav-ouverte { overflow: hidden; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; overflow-y: auto; overscroll-behavior: contain;
    padding: 16px var(--gout) 40px; background: var(--sable-clair);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  .nav-ouverte .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .22s ease, transform .22s ease; }
  .nav li + li { border-top: 1px solid var(--filet); }
  .nav li:last-child { border-top: 0; padding-top: 1.5rem; }
  .nav a:not(.btn) { display: block; padding: .8rem 0; color: var(--nuit); text-decoration: none; font: 500 1.75rem/1.2 var(--titre); }
  .nav a[aria-current] { color: var(--bleu); font-style: italic; }
  .nav .btn { width: 100%; }
}
@media (min-width: 1180px) {
  .burger { display: none; }
  .nav ul { display: flex; align-items: center; gap: 1.25rem; }
  .nav a { white-space: nowrap; }
  .nav a:not(.btn) {
    padding: .4rem 0; color: var(--nuit); text-decoration: none; font-size: .95rem; font-weight: 500;
    background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .25s ease;
  }
  .nav a:not(.btn):hover, .nav a[aria-current] { background-size: 100% 1px; }
  .nav a[aria-current] { color: var(--bleu-texte); }
  .nav .btn { min-height: 42px; padding: .6em 1.3em; font-size: .95rem; }
}

/* Hero : le coquillage respire, des ondes en partent */
.hero, .page-hero { overflow: hidden; }
.hero { display: flex; flex-direction: column; justify-content: center; min-height: calc(100svh - var(--header-h)); padding: clamp(24px, 5vw, 72px) 0 clamp(112px, 13vw, 200px); }
.hero > .wrap { width: 100%; }
.hero .eyebrow { display: block; text-wrap: balance; }
.hero h1 { margin-bottom: .35em; }
.hero .actions { justify-content: center; margin-top: 1.5rem; }
.sous-titre { display: block; margin-top: .3em; font-size: .4em; font-style: italic; line-height: 1.2; letter-spacing: .01em; color: var(--bleu-texte); }
.mot, .lettre { display: inline-block; }

.hero-coquille { position: relative; width: fit-content; margin: 0 auto 1.25rem; }
.respire { position: relative; display: block; }
.hero-logo { width: auto; height: clamp(88px, 7vw + 50px, 160px); }
.onde { position: absolute; inset: 0; border: 1px solid var(--bleu-moyen); border-radius: 50%; opacity: 0; pointer-events: none; }
.reflet { position: absolute; inset: 0; overflow: hidden; pointer-events: none; -webkit-mask: url(../img/logo-320.webp) center / contain no-repeat; mask: url(../img/logo-320.webp) center / contain no-repeat; }
.reflet::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 45%; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .9), transparent); transform: translateX(-130%) skewX(-12deg); }
.reflet.brille::before { animation: brille 1.3s cubic-bezier(.3, .6, .3, 1) forwards; }
@keyframes brille { to { transform: translateX(270%) skewX(-12deg); } }
@keyframes respire { 50% { transform: scale(1.04); } }
@keyframes onde { 0% { transform: scale(.8); opacity: 0; } 12% { opacity: .45; } 100% { transform: scale(2.9); opacity: 0; } }

.vagues { position: absolute; left: 0; right: 0; bottom: -2px; height: clamp(84px, 11vw, 170px); pointer-events: none; }
.vague { position: absolute; left: 0; bottom: 0; width: calc(100% + 720px); background: repeat-x left bottom / 720px 100%; animation: houle 30s linear infinite; }
.vague-1 { height: 100%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 120' preserveAspectRatio='none'%3E%3Cpath fill='%236CC6F1' fill-opacity='.45' d='M0 50C140 15 220 15 360 50S580 85 720 50V120H0Z'/%3E%3C/svg%3E"); }
.vague-2 { height: 80%; animation-duration: 21s; animation-direction: reverse; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 120' preserveAspectRatio='none'%3E%3Cpath fill='%233C9ED8' fill-opacity='.3' d='M0 70C120 95 240 95 360 70S600 45 720 70V120H0Z'/%3E%3C/svg%3E"); }
.vague-3 { height: 55%; animation-duration: 40s; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 120' preserveAspectRatio='none'%3E%3Cpath fill='%23FBF6EC' d='M0 80C130 62 230 62 360 80S590 98 720 80V120H0Z'/%3E%3Cpath fill='none' stroke='%236CC6F1' stroke-width='1.5' vector-effect='non-scaling-stroke' d='M0 80C130 62 230 62 360 80S590 98 720 80'/%3E%3C/svg%3E"); }
@keyframes houle { to { transform: translateX(-720px); } }

/* Fil d'écume : vague tracée à la main qui se dessine au scroll */
.fil { display: flex; justify-content: center; padding-block: 8px; }
.fil svg { width: min(300px, 70vw); height: auto; overflow: visible; fill: none; stroke: var(--bleu-moyen); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.fil-trait { stroke-dasharray: 1; }

/* Activités */
.activite { display: grid; gap: clamp(36px, 5vw, 88px); align-items: center; }
#activites .fil { margin-block: clamp(48px, 7vw, 96px); }
.num { display: block; margin-bottom: .2rem; font: italic 400 clamp(3.4rem, 2.6rem + 3vw, 5rem)/1 var(--titre); color: var(--bleu-clair); }
.arche { width: min(88%, 440px); margin: 0 auto; }
.arche-cadre { position: relative; isolation: isolate; overflow: hidden; border-radius: 999px 999px 20px 20px; outline: 1px solid var(--filet-bleu); outline-offset: 10px; }
.arche img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
/* Voile de marée qui découvre la photo de bas en haut (présent seulement avec JavaScript) */
.voile { display: none; }
.js .voile { display: block; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, #D9EEF7, #B9DEEF); }
.js .voile::after {
  content: ""; position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: 26px; background: #B9DEEF; transform: scaleY(-1);
  -webkit-mask: var(--vague) repeat-x left bottom / 360px 100%; mask: var(--vague) repeat-x left bottom / 360px 100%;
}
.modes { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 1.75rem; }
.modes li { padding: .35em .95em; border: 1px solid var(--filet-bleu); border-radius: 999px; background: var(--ecume); color: var(--bleu-texte); font-size: .85rem; font-weight: 500; }
@media (min-width: 900px) {
  .activite { grid-template-columns: 5fr 6fr; }
  .activite.inverse { grid-template-columns: 6fr 5fr; }
  .activite.inverse .activite-media { order: 2; }
  .arche { width: 100%; }
  .activite-texte { max-width: 33rem; }
}

/* Vitrine des créations : les cartes se soulèvent avec une ombre de sable */
.tete { display: grid; gap: 1rem 3rem; margin-bottom: clamp(36px, 5vw, 56px); }
.tete .lead { margin: 0; }
@media (min-width: 900px) { .tete { grid-template-columns: 1fr auto; align-items: end; } }
.vitrine { display: grid; gap: 20px; }
.piece { margin: 0; }
.piece-img { position: relative; isolation: isolate; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.piece-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
.piece-img::after { content: ""; position: absolute; z-index: -1; left: 8%; right: 8%; bottom: -14px; height: 40%; border-radius: 50%; background: rgba(150, 112, 56, .42); filter: blur(18px); opacity: 0; transition: opacity .6s ease; }
@media (hover: hover) {
  .piece:hover .piece-img { transform: translateY(-8px); }
  .piece:hover .piece-img::after { opacity: 1; }
}
.piece figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .1rem 1rem; padding-top: 1rem; }
.piece h3 { margin: 0; font-size: 1.5rem; }
.piece .prix { font-weight: 600; font-variant-numeric: tabular-nums; }
.piece .etiquette { width: 100%; color: var(--nuit-doux); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 767.98px) {
  .vitrine {
    grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gout); scrollbar-width: none;
    margin-inline: calc(var(--gout) * -1); padding-inline: var(--gout);
  }
  .vitrine::-webkit-scrollbar { display: none; }
  .piece { scroll-snap-align: start; }
}
@media (min-width: 768px) {
  .vitrine { grid-template-columns: 1.3fr 1fr; gap: 32px 36px; }
  .piece-1 { grid-row: span 2; display: flex; flex-direction: column; }
  .piece-1 .piece-img { flex: 1; min-height: 360px; }
  .piece-1 .piece-img img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .piece-2 .piece-img img, .piece-3 .piece-img img { aspect-ratio: 3 / 2; }
}

/* Sections profondes (Réserver, pied de page) */
.bg-profond .eyebrow { color: var(--profond-eyebrow); }
.bg-profond h2 em { color: var(--profond-accent); }
.bg-profond .lead { color: var(--profond-doux); }
.bg-profond > .wrap > div > .actions .btn, .site-footer .btn { background: var(--profond-btn); border-color: var(--profond-btn); color: var(--profond-btn-texte); }
@media (hover: hover) {
  .bg-profond > .wrap > div > .actions .btn:hover, .site-footer .btn:hover { background: var(--profond-accent); border-color: var(--profond-accent); color: var(--bleu-texte); }
}

/* Réservation : aperçu purement visuel, les créneaux sont des galets */
.resa { display: grid; gap: clamp(48px, 6vw, 88px); align-items: center; }
@media (min-width: 960px) { .resa { grid-template-columns: 1fr 1.05fr; } }
.points { display: grid; gap: .7rem; margin: 1.75rem 0 0; }
.points li { display: flex; align-items: center; gap: .75rem; }
.points svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--profond-accent); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.apercu { position: relative; padding: clamp(22px, 4vw, 38px); border-radius: 28px; background: var(--sable-clair); color: var(--nuit); }
.apercu[data-provisoire]::before { position: absolute; top: -11px; right: 24px; margin: 0; }
.apercu-etape { margin: 0 0 .7rem; color: var(--nuit-doux); font: 600 .74rem/1 var(--texte); letter-spacing: .14em; text-transform: uppercase; }
.segment { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 1.75rem; padding: 4px; border: 1px solid var(--filet); border-radius: 999px; background: var(--sable); }
.segment span { padding: .7em .5em; border-radius: 999px; color: var(--nuit-doux); font-weight: 600; font-size: .95rem; text-align: center; }
.segment .actif { background: var(--bleu); color: var(--ecume); }
.jours { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 1.75rem; }
.jours span { display: grid; gap: 4px; padding: .65em 0; border: 1px solid var(--filet); border-radius: 14px; color: var(--nuit-doux); font-size: .78rem; text-align: center; }
.jours b { color: var(--nuit); font: 500 1.6rem/1 var(--titre); }
.jours .actif { border-color: var(--bleu); background: var(--ecume); box-shadow: inset 0 0 0 1px var(--bleu); }
.creneaux { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.75rem; }
.creneaux span { padding: .6em 1.1em; border: 1px solid var(--filet-bleu); border-radius: 55% 45% 50% 50% / 62% 58% 42% 38%; background: var(--ecume); color: var(--bleu-texte); font-weight: 500; font-size: .95rem; font-variant-numeric: tabular-nums; }
.creneaux span:nth-child(2n) { border-radius: 46% 54% 44% 56% / 50% 62% 38% 50%; }
.creneaux span:nth-child(3n) { border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%; }
.creneaux .actif { border-color: var(--bleu); background: var(--bleu); color: var(--ecume); }
.creneaux .pris { border-color: var(--filet); background: transparent; color: rgba(14, 43, 64, .35); text-decoration: line-through; }
.recap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--filet); }
.recap p { margin: 0; font-size: .95rem; }
.recap .btn { pointer-events: none; }

/* Mon histoire */
.histoire { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (min-width: 900px) { .histoire { grid-template-columns: 5fr 6fr; } }
.galet { width: min(84%, 440px); margin: 0 auto; }
.galet img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 46% 54% 43% 57% / 52% 44% 56% 48%; outline: 1px solid var(--filet-bleu); outline-offset: 10px; }

/* Avis */
.avis { max-width: 840px; margin-inline: auto; }
.avis blockquote { margin: 1.5rem 0 0; font: italic 400 clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem)/1.3 var(--titre); }
.avis figcaption { margin-top: 1.25rem; color: var(--nuit-doux); font-size: .95rem; }
.avis figure { margin: 0; }

/* Page intérieure (modèle Voyance) */
.page-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(150px, 14vw, 210px); }
.page-hero .wrap { display: grid; gap: 56px; align-items: center; }
.page-hero h1 em { display: block; margin-top: .15em; font-size: .5em; line-height: 1.2; color: var(--bleu-texte); }
@media (min-width: 900px) { .page-hero .wrap { grid-template-columns: 6fr 5fr; } }
.citation { margin: 2rem 0; padding-left: 1.25rem; border-left: 2px solid var(--bleu-clair); color: var(--bleu-texte); font: italic 400 clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem)/1.3 var(--titre); }

.etapes { display: grid; gap: 40px; counter-reset: etape; }
@media (min-width: 900px) { .etapes { grid-template-columns: repeat(4, 1fr); gap: 40px; } }
.etapes li { padding-top: 1.25rem; border-top: 1px solid var(--filet-bleu); }
.etapes li::before { counter-increment: etape; content: counter(etape, lower-roman) "."; display: block; margin-bottom: .6rem; color: var(--bleu-moyen); font: italic 400 2.75rem/1 var(--titre); }
.etapes h3 { font-size: 1.6rem; }
.etapes p { color: var(--nuit-doux); margin: 0; }
.tete-seule { max-width: 40rem; margin-bottom: clamp(40px, 5vw, 64px); }

.deux-modes { display: grid; gap: 24px; }
@media (min-width: 900px) { .deux-modes { grid-template-columns: 1fr 1fr; gap: 32px; } .deux-modes .mode:nth-child(2) { margin-top: 64px; } }
.mode { padding: clamp(28px, 4vw, 48px); border: 1px solid var(--filet); border-radius: 28px; background: var(--ecume); }
.mode:nth-child(2) { border-color: var(--filet-bleu); background: transparent; }
.mode svg { width: 46px; height: 46px; margin-bottom: 1rem; fill: none; stroke: var(--bleu); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.mode h3 { font-size: 1.9rem; }
.mode p:last-child { margin: 0; }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--filet); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; cursor: pointer; list-style: none; font: 500 clamp(1.35rem, 1.2rem + .6vw, 1.65rem)/1.25 var(--titre); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--bleu), var(--bleu)) center / 100% 1.5px no-repeat, linear-gradient(var(--bleu), var(--bleu)) center / 1.5px 100% no-repeat;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 62ch; margin: 0; padding-bottom: 1.25rem; color: var(--nuit-doux); }
.bien-etre { display: flex; align-items: flex-start; gap: 1rem; max-width: 820px; margin-top: 3rem; padding: 1.25rem 1.5rem; border: 1px solid var(--filet-bleu); border-radius: 18px; background: var(--sable-clair); font-size: .95rem; }
.bien-etre svg { flex: none; width: 28px; height: 28px; fill: none; stroke: var(--bleu); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.bien-etre p { margin: 0; }

/* Page Bientôt */
.bientot h1 em { display: block; }

/* Pied de page */
.site-footer { position: relative; padding: clamp(64px, 8vw, 96px) 0 32px; background: var(--profond); color: var(--profond-texte); }
.site-footer a { color: var(--profond-texte); }
.site-footer .btn { margin-top: .5rem; }
.site-footer .brand { align-items: center; gap: .9rem; margin-bottom: 1.25rem; color: var(--profond-texte); white-space: normal; }
.site-footer .brand img { width: 60px; height: 60px; padding: 8px; border-radius: 50%; background: var(--sable-clair); object-fit: contain; }
.site-footer .brand em { color: var(--profond-accent); }
.brand-sous { display: block; margin-top: .2em; font-size: .78em; font-style: italic; color: var(--profond-doux); }
.pied { display: grid; gap: 40px; }
@media (min-width: 900px) { .pied { grid-template-columns: 1.5fr 1fr 1fr; } }
.pied p { max-width: 26rem; color: var(--profond-doux); }
.pied h2 { margin-bottom: 1rem; color: var(--profond-eyebrow); font: 600 .78rem/1.2 var(--texte); letter-spacing: .16em; text-transform: uppercase; }
.pied ul { display: grid; gap: .55rem; }
.pied a { text-decoration: none; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--profond-filet); color: var(--profond-doux); font-size: .88rem; }
.pied-bas p { margin: 0; }
.pied-bas ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.pied-bas a { color: inherit; }
@media (hover: hover) { .site-footer a:not(.btn):hover { color: var(--profond-accent); } }

/* Barre fixe en bas, mobile : elle n'apparaît qu'une fois le bouton du haut de page dépassé */
.barre-mobile { display: none; }
@media (max-width: 767.98px) {
  .site-footer { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .barre-mobile {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--sable-clair); border-top: 1px solid var(--filet);
    transition: transform .45s cubic-bezier(.2, .7, .2, 1);
  }
  .js .barre-mobile:not(.visible) { transform: translateY(calc(100% + 2px)); }
  .barre-mobile .btn { padding-inline: .5em; }
  .nav-ouverte .barre-mobile { display: none; }
}

/* Marée : ouverture du site et changement de page */
.maree { position: fixed; inset: 0; z-index: 300; visibility: hidden; pointer-events: none; }
.intro .maree, .arrivee .maree { visibility: visible; }
.intro .maree { pointer-events: auto; }
.maree-sable {
  position: absolute; inset: 0; opacity: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 253, 248, .55), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .44 0 0 0 0 .28 0 0 0 .7 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    var(--sable);
}
.intro .maree-sable { opacity: 1; }
.maree-couche { position: absolute; inset: 0; transform: translateY(115%); }
.arrivee .maree-couche { transform: none; }
.maree-couche::before, .maree-couche::after {
  content: ""; position: absolute; left: 0; right: 0; height: 56px; background-color: inherit;
  -webkit-mask: var(--vague) repeat-x left bottom / 720px 100%; mask: var(--vague) repeat-x left bottom / 720px 100%;
}
.maree-couche::before { bottom: calc(100% - 1px); }
.maree-couche::after { top: calc(100% - 1px); transform: scaleY(-1); }
.c1 { background-color: var(--bleu-clair); }
.c2 { background-color: var(--bleu-moyen); }
.c3 { background-color: var(--bleu); }
.c2::before, .c2::after { -webkit-mask-position: 240px bottom; mask-position: 240px bottom; }
.c3::before, .c3::after { -webkit-mask-position: 480px bottom; mask-position: 480px bottom; }
.maree-logo { position: absolute; inset: 0; z-index: 2; width: 150px; height: 143px; margin: auto; opacity: 0; }
.maree-logo img { width: 100%; height: 100%; }
.intro .hero-logo { opacity: 0; }
.intro, .intro body { overflow: hidden; }
.passer { display: none; }
.intro .passer {
  display: block; position: fixed; z-index: 310; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom));
  padding: .6em 1.15em; border: 1px solid rgba(14, 43, 64, .25); border-radius: 999px;
  background: var(--ecume); color: var(--nuit); font: 600 .85rem/1 var(--texte); cursor: pointer;
}

/* Décor : coquillages et grains de sable dans les marges, ligne d'écume de progression */
.flotteur { position: absolute; z-index: 0; pointer-events: none; color: var(--bleu-moyen); }
.flotteur svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; opacity: .6; animation: flotte 9s ease-in-out infinite; }
.flotteur.grain { border-radius: 50%; background: #CDB78C; opacity: .7; }
@keyframes flotte { 50% { transform: translateY(-6px) rotate(6deg); } }
.ecume-progres {
  position: fixed; z-index: 45; top: var(--header-h); bottom: 0; right: 5px; width: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(108, 198, 241, 0), var(--bleu-clair) 18%, var(--bleu-moyen));
  transform: scaleY(0); transform-origin: top;
}

/* Apparitions : sans JavaScript tout est visible ; avec moins d'animation, simples fondus */
.js .reveal { opacity: 0; }
.js .reveal.is-visible { opacity: 1; transition: opacity .8s ease; transition-delay: calc(var(--d, 0) * 100ms); }

@media (prefers-reduced-motion: no-preference) {
  .respire { animation: respire 7s ease-in-out infinite; }
  .onde { animation: onde 7.5s cubic-bezier(.25, .6, .35, 1) infinite; }
  .onde:nth-child(2) { animation-delay: 2.5s; }
  .onde:nth-child(3) { animation-delay: 5s; }
  .js .fil-trait { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s cubic-bezier(.65, 0, .35, 1); }
  .js .fil-coquille { opacity: 0; transition: opacity .6s ease 1.2s; }
  .js .fil.is-visible .fil-trait { stroke-dashoffset: 0; }
  .js .fil.is-visible .fil-coquille { opacity: 1; }
  .vague-haut.ondule::before { animation: onduler 2s cubic-bezier(.3, .7, .3, 1); }
}
@keyframes onduler { 0% { transform: scaleY(.15); } 30% { transform: scaleY(1.6); } 55% { transform: scaleY(.75); } 78% { transform: scaleY(1.15); } 100% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vague, .flotteur svg { animation: none; }
}
