/* Club Ness One — Pessah 2027 au Rodos Palladium 5*, île de Rhodes
   Couleurs : dégradé lagon #05d6e9 → #05e9c6 (demandé le 13/11, à la place du bleu-vert), bleu nuit pour le texte posé dessus
   (le blanc sur ces couleurs ne se lit pas : contraste 1,6 à 1,8 ; bleu nuit : 7,9 à 9,1), bleu soutenu #00657c pour les titres sur fond clair, sable, chaux blanche ;
   panneau en vague, photos derrière des hublots d'avion, feuilles d'olivier.
   Polices : Marcellus (titres, proche des capitales de l'affiche) + Jost (texte). */

:root {
  color-scheme: light;
  --mer: #05d6e9;            /* 1re couleur du dégradé (bords en vague, contours) */
  --mer-2: #05e9c6;          /* 2e couleur du dégradé */
  --degrade: linear-gradient(135deg, #05d6e9 0%, #05e9c6 100%);            /* surfaces : cases texte, boutons, panneau du formulaire */
  --degrade-vertical: linear-gradient(180deg, #05d6e9 0%, #05e9c6 100%);   /* accueil et pied (raccord avec les vagues) */
  --degrade-verre: linear-gradient(135deg, rgba(5, 214, 233, .86) 0%, rgba(5, 233, 198, .86) 100%);   /* barre du bas */
  --bouteille: #0b3d58;      /* bleu bouteille : grande vague de l'accueil et pied de page (texte blanc : contraste 11,5) */
  --nuit: #03303b;           /* bleu nuit : texte sur le bleu lagon (contraste 7,7) */
  --nuit-2: #0b4554;
  --mer-fonce: #03303b;
  --mer-texte: #00657c;      /* bleu soutenu : titres et liens sur fond clair (contraste 6) */
  --sable: #e3a277;
  --sable-clair: #f3d2b8;
  --sable-texte: #a0582e;     /* sable assez foncé pour être lu sur fond clair */
  --chaux: #f7f4ee;
  --ecume: #e2f5fa;
  --blanc: #ffffff;
  --encre: #1f2b2a;
  --encre-2: #55615f;
  --danger: #a3271a;
  --trait: rgba(0, 101, 124, .16);
  --fond: var(--chaux);        /* (utilisé aussi par nous-ecrire.php) */

  --font-titre: "Marcellus", "Iowan Old Style", Georgia, serif;
  --font-texte: "Jost", "Segoe UI", system-ui, sans-serif;

  --marge: clamp(1.25rem, 4.5vw, 3.5rem);
  --largeur: 1240px;
  --r: 24px;
  --r-pt: 14px;
  --dock-h: 56px;
  --ressort: cubic-bezier(.22, 1, .36, 1);     /* départ vif, arrivée douce, sans rebond */
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--chaux); color: var(--encre); font: 400 1.0625rem/1.6 var(--font-texte); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--sable-texte); 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: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; border-radius: 10px; background: var(--degrade); color: var(--nuit); text-decoration: none; }
.skip:focus { top: 1rem; }

/* ---------- Textes ---------- */
.surtitre { margin: 0 0 .9rem; font: 500 .78rem/1.3 var(--font-texte); letter-spacing: .24em; text-transform: uppercase; color: var(--sable-texte); }
.surtitre--sable { color: rgba(3, 48, 59, .78); }   /* sur le bleu lagon */
.titre { margin: 0 0 1.1rem; font: 400 clamp(2rem, 3.5vw, 3.1rem)/1.06 var(--font-titre); letter-spacing: -.01em; color: var(--mer-texte); font-synthesis: weight; }
.titre span { display: block; font-weight: 700; }      /* toutes les lignes en gras… */
.titre span:last-child { font-weight: 400; }            /* …sauf la dernière */
.titre--clair { color: var(--nuit); }

/* ---------- Boutons ---------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: .85rem 1.6rem; border: 0; border-radius: 999px; font: 500 1rem/1 var(--font-texte); letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: transform .12s ease-out, background-color .2s, box-shadow .2s; touch-action: manipulation; }
.bouton:active { transform: scale(.97); }       /* réponse au doigt, tout de suite */
.bouton--mer { background: var(--degrade); color: var(--nuit); font-weight: 600; box-shadow: 0 14px 30px -14px rgba(0, 120, 150, .7); }
.bouton--mer:hover { background: linear-gradient(135deg, #05e9c6 0%, #05d6e9 100%); }
.bouton--clair { background: var(--ecume); color: var(--mer-texte); }
.bouton--clair:hover { background: #cfeff7; }
.bouton--plein { width: 100%; min-height: 58px; font-size: 1.0625rem; }
.bouton.is-envoi { opacity: .85; pointer-events: none; }

/* ---------- En-tête : le nom du club à gauche, la langue à droite ---------- */
.entete { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: max(14px, env(safe-area-inset-top)) var(--marge) 0; pointer-events: none; }
.entete > * { pointer-events: auto; }
.marque { display: inline-flex; padding: 8px 14px; border-radius: 18px; text-decoration: none; transition: background-color .35s, box-shadow .35s, -webkit-backdrop-filter .35s, backdrop-filter .35s; }
.marque__logo { display: block; width: auto; height: clamp(40px, 4.4vw, 52px); filter: drop-shadow(0 1px 10px rgba(3, 30, 45, .35)); transition: height .4s var(--ressort); }
.entete.is-defile .marque { background: rgba(11, 61, 88, .78); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); box-shadow: 0 10px 30px -14px rgba(2, 30, 38, .55), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.entete.is-defile .marque__logo { height: 36px; filter: none; }
.langues { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(3, 48, 59, .4); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); transition: background-color .35s; }
.langues a { display: grid; place-items: center; min-width: 40px; height: 34px; padding: 0 10px; border-radius: 999px; color: rgba(255, 255, 255, .88); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-decoration: none; transition: background-color .2s, color .2s; }
.langues a:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.langues a[aria-current] { background: #fff; color: var(--mer-texte); }
.entete.is-defile .langues { background: rgba(3, 48, 59, .78); }

/* ---------- Accueil : photo + panneau bleu-vert en vague (comme l'affiche) ---------- */
.accueil { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--bouteille); isolation: isolate; }
.accueil__photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.accueil__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; will-change: transform; }
.accueil__photo > img:first-child { animation: arrivee 2.6s var(--ressort) both; }
@keyframes arrivee { from { scale: 1.1; opacity: .5; } to { scale: 1; opacity: 1; } }
.accueil__photo img.accueil__diapo { opacity: 0; transition: opacity 1.6s ease; }
.accueil__photo::after { content: ""; position: absolute; inset: 0 0 auto; height: 150px; background: linear-gradient(rgba(3, 48, 59, .5), transparent); pointer-events: none; }   /* le nom du club reste lisible sur la photo */
.accueil__photo img.accueil__diapo.is-visible { opacity: 1; animation: zoom-doux 9s ease-out both; }
@keyframes zoom-doux { from { scale: 1.08; } to { scale: 1; } }
.accueil__panneau { position: absolute; z-index: 1; color: #fff; background: var(--bouteille); }
.accueil .surtitre--sable { color: var(--sable-clair); }
.accueil__feuilles { position: absolute; width: clamp(150px, 16vw, 230px); height: auto; color: var(--sable); opacity: .4; pointer-events: none; }
.accueil__texte { position: relative; }
.accueil__texte > * { animation: monte 1.1s var(--ressort) both; }
.accueil__texte > :nth-child(2) { animation-delay: .1s; }
.accueil__texte > :nth-child(3) { animation-delay: .2s; }
.accueil__texte > :nth-child(4) { animation-delay: .28s; }
.accueil__texte > :nth-child(5) { animation-delay: .36s; }
@keyframes monte { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.accueil__titre { margin: 0; font: 400 clamp(3.4rem, 7.4vw, 7.2rem)/.92 var(--font-titre); letter-spacing: .01em; text-transform: uppercase; }
.accueil__titre span { display: block; }
.accueil__titre span:first-child { background: linear-gradient(180deg, #fff 30%, var(--sable-clair) 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.accueil__titre span:last-child { margin-top: .12em; font-size: .52em; letter-spacing: .06em; color: #fff; }
.accueil__dates { display: flex; align-items: center; gap: .9rem; margin: 1.7rem 0 .55rem; font: 500 clamp(.95rem, 1.35vw, 1.15rem)/1.3 var(--font-texte); letter-spacing: .2em; text-transform: uppercase; }
.accueil__dates::before { content: ""; flex: none; width: 46px; height: 1px; background: var(--sable); }
.accueil__lieu { margin: 0; font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--sable-clair); }
.accueil__rav { margin: .35rem 0 0; font-size: .92rem; color: rgba(255, 255, 255, .72); }
/* Téléphone : la photo en haut, le panneau dessous avec un bord en vague */
@media (max-width: 899px) {
  .accueil { display: flex; flex-direction: column; justify-content: flex-end; }
  .accueil__photo { bottom: auto; height: 62svh; height: 62vh; }
  @supports (height: 62svh) { .accueil__photo { height: 62svh; } }
  .accueil__panneau { position: relative; margin-top: auto; padding: 3.2rem var(--marge) 5.2rem; }
  .accueil__panneau::before { content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 48px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 48' preserveAspectRatio='none'%3E%3Cpath d='M0 30C70 6 140 0 210 16s130 30 190 12v20H0z' fill='%230b3d58'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
  .accueil__bord { display: none; }
  .accueil__feuilles { right: -20px; top: -10px; width: 150px; opacity: .3; transform: scaleX(-1); }
  .accueil__dates { gap: .7rem; letter-spacing: .13em; font-size: .95rem; }
  .accueil__dates::before { width: 28px; }
}
/* Ordinateur : panneau à gauche sur toute la hauteur, bord droit en vague */
@media (min-width: 900px) {
  .accueil__panneau { inset: 0 auto 0 0; display: flex; align-items: center; width: min(46vw, 660px); padding: 7rem 0 7rem var(--marge); }
  .accueil__bord { position: absolute; top: 0; left: calc(100% - 1px); width: clamp(70px, 8vw, 130px); height: 100%; color: var(--bouteille); }
  .accueil__feuilles { left: -26px; bottom: -14px; }
  .accueil__texte { padding-right: 1rem; }
}

/* ---------- L'essentiel ---------- */
main { position: relative; z-index: 1; }
.essentiel { position: relative; z-index: 2; max-width: calc(var(--largeur) + 2 * var(--marge)); margin: -3.2rem auto 0; padding: 0 var(--marge); }
.essentiel__liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-radius: var(--r); background: var(--blanc); box-shadow: 0 30px 60px -30px rgba(0, 70, 88, .35), 0 1px 0 rgba(0, 101, 124, .06); overflow: hidden; }
.essentiel__liste li { display: flex; align-items: center; gap: .9rem; padding: 1.15rem 1.1rem; }
.essentiel__liste li:nth-child(odd) { border-right: 1px solid var(--trait); }
.essentiel__liste li:nth-child(-n+2) { border-bottom: 1px solid var(--trait); }
.essentiel__liste svg { flex: none; width: 44px; height: 44px; padding: 9px; border-radius: 50%; background: var(--ecume); color: var(--mer-texte); }
.essentiel__liste b { display: block; text-wrap: balance; font: 400 1.08rem/1.2 var(--font-titre); color: var(--mer-texte); }
.essentiel__liste li > span > span { display: block; margin-top: .15rem; font-size: .9rem; line-height: 1.35; color: var(--encre-2); }
@media (max-width: 599px) {
  .essentiel__liste li { flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1rem; }
  .essentiel__liste svg { width: 38px; height: 38px; padding: 8px; }
  .essentiel__liste b { font-size: 1.02rem; }
}
@media (min-width: 900px) {
  .essentiel { margin-top: -4.2rem; }
  .essentiel__liste { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .essentiel__liste li { padding: 1.6rem 1.5rem; border-bottom: 0 !important; }
  .essentiel__liste li:not(:last-child) { border-right: 1px solid var(--trait); }
  .essentiel__liste b { font-size: 1.2rem; }
}

/* ---------- Chapitres ---------- */
.chapitre { position: relative; padding: clamp(5rem, 10vw, 8.5rem) var(--marge); }
.chapitre__num { margin: 0 0 .5rem; font: 400 clamp(3.4rem, 6.4vw, 5.6rem)/.9 var(--font-titre); color: transparent; -webkit-text-stroke: 1px var(--sable); }
.chapitre__texte { margin: 0; max-width: 32rem; color: var(--encre-2); }

/* Hublot d'avion : les photos se suivent derrière la vitre, dans un cadre blanc de cabine */
.chapitre--arche { display: grid; gap: clamp(2.6rem, 6vw, 6rem); align-items: center; max-width: calc(var(--largeur) + 2 * var(--marge)); margin: 0 auto; }
@media (min-width: 900px) {
  .chapitre--arche { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .chapitre--inverse { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .chapitre--inverse .arche { order: 2; }
}
.arche { --bord: clamp(12px, 1.7vw, 20px); position: relative; width: 100%; max-width: 460px; justify-self: center; aspect-ratio: 3 / 4; cursor: zoom-in; isolation: isolate;
  border-radius: 42% / 32%; background: linear-gradient(165deg, #ffffff 0%, #f1ece2 60%, #e6e0d3 100%);
  box-shadow: 0 44px 80px -38px rgba(0, 70, 88, .6), 0 2px 0 rgba(255, 255, 255, .9) inset, 0 -8px 16px rgba(0, 70, 88, .07) inset; }
.arche::before { content: ""; position: absolute; inset: calc(var(--bord) * .42); border-radius: 42% / 32%; border: 1px solid rgba(0, 70, 88, .09); pointer-events: none; }   /* bord du panneau de cabine */
.arche__photo, .arche::after { position: absolute; inset: var(--bord); margin: 0; overflow: hidden; border-radius: 41% / 31%; }
.arche__photo { opacity: 0; transition: opacity 1.2s ease; background: var(--ecume); }
.arche__photo.is-visible { opacity: 1; }
.arche__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.arche__photo.is-visible img { transform: scale(1); }
/* La vitre : reflet en biais, profondeur sur le pourtour, ombre douce en bas pour les barres */
.arche::after { content: ""; z-index: 1; pointer-events: none;
  background: linear-gradient(128deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, .06) 26%, transparent 38%), linear-gradient(180deg, transparent 72%, rgba(3, 48, 59, .4));
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55), inset 0 12px 30px rgba(2, 30, 38, .38), inset 0 -4px 14px rgba(2, 30, 38, .2); }
.arche__barres { position: absolute; left: 28%; right: 28%; bottom: calc(var(--bord) + 18px); z-index: 2; display: flex; gap: 5px; pointer-events: none; }
.arche__barres i { flex: 1; height: 3px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.arche__barres b { display: block; width: 0; height: 100%; background: #fff; }
.arche__barres i.is-passe b { width: 100%; }
.arche__barres i.is-actif b { width: 100%; transition: width var(--duree-arche, 4.5s) linear; }
@media (max-width: 599px) { .arche { max-width: 360px; } }
.chapitre__corps { max-width: 34rem; }
@media (min-width: 900px) { .chapitre--inverse .chapitre__corps { justify-self: end; } }

/* Petites photos sous le texte */
.vignettes { display: flex; gap: .65rem; margin-top: 2rem; }
.vignette { position: relative; flex: none; width: 66px; height: 88px; padding: 0; overflow: hidden; border: 3px solid #fff; border-radius: 42% / 32%; background: var(--ecume); box-shadow: 0 10px 20px -12px rgba(0, 70, 88, .55); cursor: zoom-in; transition: transform .35s var(--ressort), box-shadow .35s; }
.vignette img { width: 100%; height: 100%; object-fit: cover; }
.vignette:hover { transform: translateY(-4px); box-shadow: 0 14px 24px -12px rgba(0, 70, 88, .5); }
.vignette:active { transform: scale(.95); transition-duration: .1s; }
@media (max-width: 420px) { .vignette { width: 58px; height: 78px; } }

/* Mosaïque (bento) : le texte est une case bleu-vert, la grande photo en arche */
.chapitre--ecume { background: var(--ecume); }
.vague { position: absolute; left: 0; bottom: calc(100% - 1px); display: block; width: 100%; height: clamp(34px, 5vw, 76px); color: var(--ecume); }
.bento { display: grid; gap: clamp(.5rem, 1vw, .85rem); max-width: var(--largeur); margin: 0 auto; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "t t t" "a a b" "a a c" "d e e"; grid-auto-rows: auto; }
.bento__texte { grid-area: t; display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem; padding: clamp(1.6rem, 2.8vw, 2.5rem); border-radius: var(--r); background: var(--degrade); color: var(--nuit); }
.bento__texte .chapitre__num { -webkit-text-stroke-color: rgba(3, 48, 59, .5); }
.bento__texte .surtitre { color: rgba(3, 48, 59, .78); }
.bento__texte .titre { color: var(--nuit); font-size: clamp(1.75rem, 2.3vw, 2.25rem); }
.bento__texte .chapitre__texte { color: rgba(3, 48, 59, .86); }
.bento__texte > :nth-child(2) { margin-top: auto; }
.tuile { position: relative; margin: 0; overflow: hidden; border-radius: 18px; background: #cdeef6; cursor: zoom-in; transform: translateZ(0); aspect-ratio: 1; }
.tuile:nth-of-type(1) { grid-area: a; aspect-ratio: auto; border-radius: 30px; }   /* grande photo */
.tuile:nth-of-type(2) { grid-area: b; }
.tuile:nth-of-type(3) { grid-area: c; }
.tuile:nth-of-type(4) { grid-area: d; }
.tuile:nth-of-type(5) { grid-area: e; aspect-ratio: auto; }
.tuile img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.4s ease, transform .9s var(--ressort); }
.tuile:hover img { transform: scale(1.04); }
.tuile .diapo-suivante { opacity: 0; }
.tuile .diapo-suivante.is-visible { opacity: 1; }
.tuile--grande img { animation: respire 18s ease-in-out infinite alternate; }
@keyframes respire { from { scale: 1; } to { scale: 1.08; } }
@media (min-width: 760px) {
  .bento { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, clamp(150px, 15.5vw, 215px)); grid-template-areas: "t a a b" "t a a c" "t d e e"; }
  .tuile { aspect-ratio: auto; }
}

/* Les 9 types de chambres (s'ouvre au clic) */
.chambres { max-width: var(--largeur); margin: clamp(1rem, 2vw, 1.4rem) auto 0; border-radius: var(--r); background: var(--blanc); box-shadow: 0 20px 40px -30px rgba(0, 70, 88, .4); }
.chambres summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; padding: 0 1.5rem; font: 400 1.2rem/1.2 var(--font-titre); color: var(--mer-texte); cursor: pointer; list-style: none; border-radius: var(--r); transition: background-color .2s; }
.chambres summary::-webkit-details-marker { display: none; }
.chambres summary:hover { background: rgba(0, 101, 124, .04); }
.chambres summary svg { flex: none; transition: transform .35s var(--ressort); }
.chambres[open] summary svg { transform: rotate(180deg); }
.chambres__liste { margin: 0; padding: 0 .6rem .6rem; list-style: none; }
.chambres__liste li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .2rem 1rem; padding: .85rem .9rem; border-top: 1px solid var(--trait); }
.chambres__nom { font-weight: 500; color: var(--encre); }
.chambres__info { grid-row: 2; font-size: .92rem; color: var(--encre-2); font-variant-numeric: tabular-nums; }
.chambres__choisir { grid-row: 1 / 3; grid-column: 2; min-height: 44px; padding: 0 1rem; border: 1.5px solid var(--mer-texte); border-radius: 999px; background: transparent; color: var(--mer-texte); font-size: .9rem; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s, transform .1s; }
.chambres__choisir:hover { background: var(--degrade); border-color: var(--mer-texte); color: var(--nuit); }
.chambres__choisir:active { transform: scale(.96); }
@media (min-width: 760px) {
  .chambres__liste { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.2rem; }
}

/* Apparition douce au défilement */
[data-apparition] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ressort), transform .9s var(--ressort); }
[data-apparition].is-vu { opacity: 1; transform: none; }

/* ---------- Vidéos (verticales) ---------- */
.videos { max-width: calc(var(--largeur) + 2 * var(--marge)); margin: 0 auto; padding: clamp(5rem, 10vw, 8rem) var(--marge); }
.videos__tete { margin-bottom: 2rem; }
.videos__rangee { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.6rem, 1.2vw, 1rem); }
@media (min-width: 900px) { .videos__rangee { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); } .videos__rangee[style*="--n: 1"], .videos__rangee[style*="--n: 2"] { max-width: 640px; } }
.videos__rangee[style*="--n: 1"] { grid-template-columns: minmax(0, 320px); justify-content: center; }
.video { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; overflow: hidden; border: 0; border-radius: 22px; background: var(--mer-fonce); cursor: pointer; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ressort); }
.video:hover img { transform: scale(1.05); }
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 70, 88, .1) 40%, rgba(0, 70, 88, .78)); }
.video__lecture { position: absolute; left: 50%; top: 50%; z-index: 1; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; background: rgba(255, 255, 255, .24); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); transition: transform .3s var(--ressort), background-color .2s; }
.video__lecture::before { content: ""; position: absolute; left: 25px; top: 20px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #fff; }
.video:hover .video__lecture { transform: scale(1.08); background: rgba(255, 255, 255, .36); }
.video:active .video__lecture { transform: scale(.94); }
.video__titre { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1; color: #fff; font: 400 1.15rem/1.2 var(--font-titre); text-align: left; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video video { object-fit: contain; background: #000; }   /* vidéo envoyée depuis l'espace de gestion */
.video.is-lecture { cursor: default; background: #000; }
.video.is-lecture::after { content: none; }

/* ---------- Formulaire : panneau bleu-vert + carte ---------- */
.contact { display: grid; gap: clamp(1rem, 2vw, 1.6rem); align-items: start; max-width: calc(var(--largeur) + 2 * var(--marge)); margin: 0 auto; padding: 0 var(--marge) clamp(5rem, 10vw, 8rem); }
@media (min-width: 980px) { .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .contact__panneau { position: sticky; top: 96px; } }
.contact__panneau { position: relative; overflow: hidden; padding: clamp(1.8rem, 3.5vw, 3rem); border-radius: 28px; background: var(--degrade); color: var(--nuit); isolation: isolate; }
.contact__panneau::after { content: ""; position: absolute; right: -60px; bottom: -60px; z-index: -1; width: 210px; height: 280px; border: 1px solid rgba(3, 48, 59, .25); border-radius: 42% / 32%; transform: rotate(-10deg); }  /* hublot en filigrane */
.contact__intro { margin: 0; color: rgba(3, 48, 59, .86); }
.contact__appel { display: grid; justify-items: start; gap: .35rem; margin: 1.8rem 0 0; padding-top: 1.4rem; border-top: 1px solid rgba(3, 48, 59, .2); font-size: .95rem; color: rgba(3, 48, 59, .8); }
.contact__appel a { display: inline-flex; align-items: center; gap: .55rem; color: var(--nuit); text-decoration: none; }
.contact__appel a:first-of-type { font: 400 1.6rem/1.2 var(--font-titre); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.contact__appel a:first-of-type svg { color: var(--nuit); }
.contact__appel a:last-of-type { color: var(--nuit); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.contact__carte { padding: clamp(1.5rem, 3.5vw, 2.8rem); border-radius: 28px; background: var(--blanc); box-shadow: 0 30px 70px -40px rgba(0, 70, 88, .45); }
.formulaire { display: grid; gap: 1.3rem; }
.groupe { display: grid; gap: .8rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.groupe legend { margin-bottom: .8rem; padding: 0; font: 600 .78rem/1.3 var(--font-texte); letter-spacing: .16em; text-transform: uppercase; color: var(--mer-texte); }
.groupe legend small { font-weight: 400; letter-spacing: .02em; text-transform: none; color: var(--encre-2); font-size: .85rem; }
.champs { display: grid; gap: .9rem; }
.champs--dates { grid-template-columns: 1fr 1fr; gap: .9rem .6rem; }   /* arrivée et départ côte à côte, même sur téléphone */
.champs--dates .champ--large { grid-column: 1 / -1; }
@media (min-width: 620px) { .champs { grid-template-columns: 1fr 1fr; } .champ--large { grid-column: 1 / -1; } }
.champ { display: grid; gap: .4rem; min-width: 0; }
.champ label { font-size: .9rem; font-weight: 500; color: var(--mer-fonce); }
.champ small { font-weight: 400; color: var(--encre-2); }
.champ input, .champ textarea, .champ select { width: 100%; min-height: 52px; padding: .75rem 1rem; border: 1px solid rgba(0, 101, 124, .2); border-radius: var(--r-pt); background: #fbfaf7; font-size: 1rem; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.champ select { -webkit-appearance: none; appearance: none; padding-right: 2.6rem; background: #fbfaf7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2300657c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right .9rem center / 18px no-repeat; cursor: pointer; }
.champ textarea { min-height: 96px; resize: vertical; }
.champ input:focus, .champ textarea:focus, .champ select:focus { outline: none; border-color: var(--mer-texte); background-color: #fff; box-shadow: 0 0 0 4px rgba(0, 101, 124, .14); }
.champ.a-erreur input, .champ.a-erreur select { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(163, 39, 26, .1); }
.champ select.is-choisi { border-color: var(--mer-texte); box-shadow: 0 0 0 4px rgba(5, 214, 233, .35); }   /* chambre choisie depuis la liste */
.erreur { display: none; margin: 0; font-size: .86rem; line-height: 1.4; color: var(--danger); }
.champ.a-erreur .erreur { display: block; }
.erreur__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .55rem; }
.erreur__bouton { min-height: 40px; padding: .5rem .95rem; border: 1px solid rgba(0, 101, 124, .25); border-radius: 999px; background: #fff; color: var(--mer-texte); font-size: .88rem; font-weight: 500; cursor: pointer; }
.erreur__bouton:first-child { border-color: var(--mer-texte); background: var(--degrade); color: var(--nuit); }
.compteurs { display: grid; gap: .6rem; }
@media (min-width: 620px) { .compteurs { grid-template-columns: repeat(2, 1fr); } .compteur:first-child { grid-column: 1 / -1; } }   /* 5 tranches : les adultes sur toute la largeur */
.compteur { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .45rem; padding: .6rem .6rem .6rem 1rem; border-radius: var(--r-pt); background: var(--ecume); }
.compteur__nom { font-size: .95rem; font-weight: 500; color: var(--mer-fonce); }
.compteur__nom small { display: block; font-weight: 400; color: var(--encre-2); font-size: .82rem; }
.compteur__boutons { display: flex; align-items: center; gap: .25rem; }
.compteur__boutons button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--mer-texte); font-size: 1.35rem; line-height: 1; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 70, 88, .14); transition: transform .1s; touch-action: manipulation; }
.compteur__boutons button:active { transform: scale(.9); }
.compteur__boutons input { width: 2.6rem; border: 0; background: transparent; text-align: center; font: 500 1.2rem/1 var(--font-texte); -moz-appearance: textfield; }
.compteur__boutons input::-webkit-outer-spin-button, .compteur__boutons input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.options__liste { display: grid; gap: .6rem; }
.options__note { margin: .1rem 0 0; font-size: .88rem; color: var(--encre-2); }
@media (min-width: 620px) { .options__liste { grid-template-columns: repeat(2, 1fr); } }
.option { display: flex; align-items: center; gap: .75rem; min-height: 54px; padding: .65rem .95rem; border: 1.5px solid transparent; border-radius: var(--r-pt); background: var(--ecume); font-size: .95rem; font-weight: 500; line-height: 1.3; color: var(--mer-fonce); cursor: pointer; transition: border-color .2s, background-color .2s; }
.option input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--mer-texte); cursor: pointer; }
.option:has(input:checked) { border-color: var(--mer-texte); background: #fff; }
.accord { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; font-size: .88rem; color: var(--encre-2); }
.accord input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--mer-texte); }
.piege { position: absolute !important; left: -9999px !important; }
.alerte { display: none; margin: 0; padding: .8rem 1rem; border-radius: var(--r-pt); background: #fbecea; color: #7a1d12; font-size: .93rem; }
.alerte.is-visible { display: block; }
.reussite { text-align: left; }
.reussite__titre { margin: 0 0 .6rem; font: 400 1.9rem/1.15 var(--font-titre); color: var(--mer-texte); }
.reussite p:last-child { margin: 0; color: var(--encre-2); }

/* ---------- Pied ---------- */
.pied { position: relative; padding: 2.4rem var(--marge) calc(var(--dock-h) + 3.4rem + env(safe-area-inset-bottom)); background: var(--bouteille); color: rgba(255, 255, 255, .78); text-align: center; font-size: .9rem; }
.pied .vague { color: var(--bouteille); }
.pied p { margin: .25rem 0; }
.pied .sable { color: var(--sable-clair); }
.pied__marque { margin-bottom: 1.2rem !important; }
.pied__marque img { display: inline-block; width: auto; height: clamp(56px, 7vw, 76px); }
.pied__jboost { margin-top: 1rem !important; font-size: .82rem; }
.pied a { color: inherit; text-decoration: none; }
.pied a:hover { color: #fff; }

/* ---------- Barre du bas (verre dépoli bleu-vert) ---------- */
.dock { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px;
  background: rgba(11, 61, 88, .86); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); color: #fff;   /* bleu bouteille, comme la vague et le pied */
  box-shadow: 0 20px 44px -16px rgba(2, 30, 45, .6), inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform .5s var(--ressort), opacity .3s; animation: dock-arrive .9s var(--ressort) .5s backwards; }
@keyframes dock-arrive { from { transform: translateY(140%); } to { transform: none; } }
.dock.is-saisie { transform: translateY(150%); }            /* le visiteur écrit dans le formulaire */
.dock__menu { display: flex; flex: 1; align-items: center; gap: .55rem; min-width: 0; height: var(--dock-h); padding: 0 16px 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); font-weight: 500; font-size: .98rem; cursor: pointer; transition: background-color .2s, transform .1s; }
.dock__menu span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dock__menu:active { transform: scale(.97); background: rgba(255, 255, 255, .22); }
.dock__liens { position: relative; display: none; }
.dock__liens a { position: relative; z-index: 1; display: grid; place-items: center; height: var(--dock-h); padding: 0 15px; border-radius: 999px; color: rgba(255, 255, 255, .82); font-size: .95rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color .3s; }
.dock__liens a:hover { color: #fff; }
.dock__liens a.is-actif { color: var(--bouteille); }
.dock__pastille { position: absolute; left: 0; top: 0; width: 0; height: var(--dock-h); border-radius: 999px; background: #fff; opacity: 0; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35); transition: transform .5s var(--ressort), width .5s var(--ressort), opacity .3s; }
.dock__pastille.is-visible { opacity: 1; }
.dock__trait { display: none; flex: none; width: 1px; height: 26px; margin: 0 4px; background: rgba(255, 255, 255, .2); }
.dock__rond { position: relative; display: grid; place-items: center; flex: none; width: var(--dock-h); height: var(--dock-h); border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; transition: background-color .2s, transform .1s; }
.dock__rond:hover { background: rgba(255, 255, 255, .22); }
.dock__rond:active { transform: scale(.92); }
.dock__bulle { position: absolute; left: 50%; bottom: calc(100% + 14px); padding: .5rem .85rem; border-radius: 12px; background: var(--nuit); color: #fff; font-size: .95rem; font-weight: 500; letter-spacing: .02em; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, 6px) scale(.94); transform-origin: 50% 100%; transition: opacity .2s, transform .35s var(--ressort); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .5); }
@media (hover: hover) { .dock__rond:hover .dock__bulle, .dock__rond:focus-visible .dock__bulle { opacity: 1; transform: translate(-50%, 0) scale(1); } }
.dock__devis { display: flex; align-items: center; flex: none; height: var(--dock-h); padding: 0 20px; border-radius: 999px; background: var(--degrade); color: var(--nuit); font-weight: 600; font-size: .98rem; text-decoration: none; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); transition: background-color .2s, transform .1s; }
.dock__devis:hover { background: linear-gradient(135deg, #05e9c6 0%, #05d6e9 100%); }
.dock__rond--ecrire { display: none; }   /* téléphone : « Nous écrire » est dans la feuille */
.dock__devis:active { transform: scale(.96); }
@media (max-width: 380px) { .dock { gap: 4px; padding: 5px; } .dock__menu { padding: 0 12px; } .dock__devis { padding: 0 14px; } }
@media (min-width: 1100px) {
  :root { --dock-h: 48px; }
  .dock { left: 50%; right: auto; transform: translateX(-50%); animation-name: dock-arrive-centre; }
  .dock.is-saisie { transform: translate(-50%, 150%); }
  @keyframes dock-arrive-centre { from { transform: translate(-50%, 140%); } to { transform: translateX(-50%); } }
  .dock__menu { display: none; }
  .dock__liens, .dock__trait { display: flex; }
  .dock__rond--ecrire { display: grid; }
}
.mode-edition .dock { display: none; }

/* ---------- Feuille du téléphone (monte du bas, glisser vers le bas pour fermer) ---------- */
.feuille { position: fixed; inset: 0; z-index: 80; }
.feuille__voile { position: absolute; inset: 0; background: rgba(2, 26, 33, .45); opacity: 0; transition: opacity .35s; }
.feuille.is-ouvert .feuille__voile { opacity: 1; }
.feuille__boite { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow: auto; overscroll-behavior: contain; padding: 0 20px calc(20px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--chaux); box-shadow: 0 -20px 50px -20px rgba(2, 26, 33, .4); transform: translateY(100%); will-change: transform; }
.feuille__poignee { position: sticky; top: 0; z-index: 1; display: grid; place-items: center; height: 30px; margin: 0 -20px; background: var(--chaux); cursor: grab; touch-action: none; }
.feuille__poignee span { width: 42px; height: 5px; border-radius: 3px; background: rgba(0, 101, 124, .25); }
.feuille__liens { display: grid; margin-bottom: 1.2rem; }
.feuille__liens a { display: flex; align-items: center; gap: 14px; min-height: 64px; border-bottom: 1px solid var(--trait); color: var(--mer-texte); font: 400 1.4rem/1.1 var(--font-titre); text-decoration: none; }
.feuille__liens a:active { opacity: .6; }
.feuille__vignette { flex: none; width: 42px; height: 56px; overflow: hidden; border-radius: 42% / 32%; border: 2px solid #fff; box-shadow: 0 4px 10px -6px rgba(0, 70, 88, .5); background: var(--ecume); }
.feuille__vignette img { width: 100%; height: 100%; object-fit: cover; }
.feuille__actions { display: grid; grid-template-columns: auto 1fr; gap: .6rem; }
.feuille__actions .bouton { min-height: 54px; padding: .8rem 1.1rem; font-size: .98rem; white-space: nowrap; }
.feuille__vignette--logo { display: grid; place-items: center; background: var(--degrade); }
.feuille__vignette--logo img { width: 76%; height: auto; object-fit: contain; }

/* ---------- Fenêtre « Nous écrire » (formulaire de contact en iframe) ---------- */
.fenetre { position: fixed; inset: 0; z-index: 92; display: grid; place-items: center; padding: 16px; background: rgba(2, 26, 33, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.fenetre.is-ouvert { opacity: 1; }
.fenetre__boite { position: relative; width: min(100%, 600px); height: min(100%, 720px); overflow: hidden; border-radius: 26px; background: var(--chaux); box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .5); transform: translateY(18px) scale(.97); transition: transform .45s var(--ressort); }
.fenetre.is-ouvert .fenetre__boite { transform: none; }
.fenetre__cadre, .fenetre__cadre iframe { display: block; width: 100%; height: 100%; border: 0; }
.fenetre__fermer { position: absolute; top: 12px; right: 12px; z-index: 1; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ecume); color: var(--mer-texte); font-size: 1.7rem; line-height: 1; cursor: pointer; }
@media (max-width: 599px) { .fenetre { padding: 0; align-items: end; } .fenetre__boite { width: 100%; height: 92vh; height: 92svh; border-radius: 24px 24px 0 0; transform: translateY(40px); } }

/* ---------- Instagram ---------- */
.insta { max-width: calc(var(--largeur) + 2 * var(--marge)); margin: 0 auto; padding: 0 var(--marge) clamp(5rem, 10vw, 8rem); }
.insta__tete { margin-bottom: 1rem; }
.insta__compte { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.6rem; color: var(--mer-texte); font-weight: 500; text-decoration: none; }
.insta__grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(4px, 1vw, 12px); margin: 0; padding: 0; list-style: none; }
.insta__post { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; border: 0; border-radius: clamp(6px, 1vw, var(--r-pt)); background: var(--ecume); cursor: pointer; }
.insta__post img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ressort); }
.insta__post:hover img { transform: scale(1.05); }
.insta__icone { position: absolute; top: 8px; right: 8px; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 70, 88, .45); color: #fff; }
.insta__suivre { margin: 1.8rem 0 0; text-align: center; }
.insta-video { position: fixed; inset: 0; z-index: 91; display: grid; place-items: center; padding: 70px 12px 20px; background: rgba(2, 20, 26, .94); opacity: 0; transition: opacity .25s; }
.insta-video.is-ouvert { opacity: 1; }
.insta-video__cadre { width: min(100%, 440px); height: min(100%, 780px); overflow: hidden; border-radius: 14px; background: #fff; }
.insta-video__cadre iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- Visionneuse façon « story » ---------- */
.story { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(2, 20, 26, .95); opacity: 0; transition: opacity .25s; touch-action: none; }
.story.is-ouvert { opacity: 1; }
.story__image { max-width: min(96vw, 1400px); max-height: 86vh; border-radius: 16px; object-fit: contain; transform: scale(.96); transition: transform .45s var(--ressort); user-select: none; -webkit-user-drag: none; }
.story.is-ouvert .story__image { transform: none; }
.story__barres { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 50%; display: flex; gap: 5px; width: min(92vw, 640px); transform: translateX(-50%); }
.story__barres i { flex: 1; height: 3px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .3); }
.story__barres b { display: block; width: 0; height: 100%; background: #fff; }
.story__fermer { position: absolute; top: max(28px, calc(env(safe-area-inset-top) + 18px)); right: 16px; z-index: 2; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.story__zone { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; width: 38%; padding: 0 clamp(10px, 3vw, 40px); border: 0; background: transparent; cursor: pointer; }
.story__zone--avant { left: 0; justify-content: flex-start; }
.story__zone--apres { right: 0; justify-content: flex-end; }
.story__fleche { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); transition: background-color .2s, transform .2s var(--ressort); }
.story__zone:hover .story__fleche { background: rgba(255, 255, 255, .3); }
.story__zone:active .story__fleche { transform: scale(.92); }
.story__zone:focus-visible { outline: none; }
.story__zone:focus-visible .story__fleche { outline: 3px solid #fff; outline-offset: 3px; }
.story.is-seule .story__zone { display: none; }
@media (max-width: 599px) { .story__fleche { width: 44px; height: 44px; } }

/* ---------- Mouvements réduits, transparence réduite ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .accueil__photo img, .tuile img, .arche__photo img { transform: none !important; animation: none !important; }
  .accueil__texte > *, .dock { animation: none; }
  [data-apparition] { opacity: 1; transform: none; transition: none; }
  .arche__photo, .tuile img { transition: opacity .3s; }
  .dock__pastille { transition: opacity .2s; }
}
@media (prefers-reduced-transparency: reduce) {
  .dock, .langues, .entete.is-defile .marque { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .dock { background: var(--bouteille); }
  .entete.is-defile .marque { background: var(--bouteille); }
}
