/* ==========================================================
   Page d'accueil
   ========================================================== */

/* ---------- Hero ---------- */
.hero { min-height: 100svh; padding: calc(var(--nav-h) + 40px) 0 140px; display: flex; align-items: center; overflow: hidden; }
.hero__glow {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; pointer-events: none;
  left: var(--gx, 70%); top: var(--gy, 30%); transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 214, 150, .55), rgba(255, 214, 150, 0) 60%);
  transition: left 1.2s var(--ease), top 1.2s var(--ease);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.live {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 14px;
  padding: 8px 16px 8px 10px; border-radius: 999px; background: rgba(255,255,255,.55);
  box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--brown);
}
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: #3DBA7E; box-shadow: 0 0 0 0 rgba(61,186,126,.6); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(61,186,126,0); } 100% { box-shadow: 0 0 0 0 rgba(61,186,126,0); } }
.live b { font-weight: 500; }
.live__sep { width: 1px; height: 12px; background: var(--line-strong); }
.hero h1 { margin-top: 26px; }
.hero h1 .key { display: inline-block; color: var(--sea); font-style: italic; }
.hero .lead { margin: 26px 0 36px; }
.hero__cta { position: relative; z-index: 5; display: flex; flex-wrap: wrap; gap: 12px; } /* le menu « Écrire à Laure » passe au-dessus des chiffres */
.hero__facts { margin-top: 46px; display: flex; flex-wrap: wrap; gap: 28px 44px; }
.hero__facts div { display: flex; flex-direction: column; }
.hero__facts strong { font-family: var(--f-body); font-weight: 300; font-size: 40px; line-height: 1; color: var(--brown); }
.hero__facts span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.hero__facts strong span { font-size: inherit; letter-spacing: normal; text-transform: none; color: inherit; margin-top: 0; }

.hero__art { position: relative; justify-self: center; width: min(100%, 470px); }
.arch {
  position: relative; aspect-ratio: 4 / 5.2; border-radius: 999px 999px 26px 26px; overflow: hidden;
  box-shadow: var(--shadow); background: var(--shell);
  clip-path: inset(100% 0 0 0 round 999px 999px 26px 26px);
  transition: clip-path 1.6s var(--ease) .15s;
}
.is-ready .arch { clip-path: inset(0 0 0 0 round 999px 999px 26px 26px); }
.arch__media { display: block; width: 100%; height: 118%; object-fit: cover; transform: translateY(var(--py, 0)) scale(1.12); transition: transform 1.8s var(--ease); }
.is-ready .arch__media { transform: translateY(var(--py, 0)) scale(1); }
.arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(43,33,25,.35)); }
.arch__cap { position: absolute; left: 22px; bottom: 18px; z-index: 1; color: #fff; font-family: var(--f-hand); font-size: 22px; }
/* Sceau tournant « Orient Bay · Saint-Martin · SXM » : la couronne de texte tourne
   (vitesse liée au défilement, voir home.js), le soleil central reste fixe */
.seal { position: absolute; top: -38px; left: -46px; z-index: 2; width: 140px; height: 140px; filter: drop-shadow(0 14px 22px rgba(51,40,31,.22)); transition: transform .6s var(--ease-spring); }
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal__disc { fill: var(--paper); }
.seal__dots { fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-dasharray: .1 4.2; stroke-linecap: round; }
.seal__inner { fill: none; stroke: var(--line-strong); stroke-width: .8; }
.seal__ring { transform-box: view-box; transform-origin: 70px 70px; }
.seal__ring text { font-family: var(--f-body); font-weight: 500; font-size: 10.5px; fill: var(--brown); }
.seal__star { fill: var(--coral); }
.seal__rays { stroke: var(--gold); stroke-width: 2; stroke-linecap: round; transform-box: view-box; transform-origin: 70px 70px; animation: spin 40s linear infinite reverse; }
.seal__sun { fill: var(--coral); }
.seal:hover { transform: scale(1.06) rotate(-4deg); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.stamp {
  position: absolute; right: -26px; bottom: 54px; width: 128px; padding: 9px; text-align: center; text-decoration: none;
  /* bord dentelé : une rangée de trous sur le pourtour, le centre est couvert par .stamp__in */
  background: radial-gradient(circle, transparent 3.5px, var(--paper) 4px) -6px -6px / 12px 12px;
  transform: rotate(6deg); filter: drop-shadow(0 12px 18px rgba(51,40,31,.25));
  transition: transform .6s var(--ease-spring);
}
.stamp:hover { transform: rotate(-2deg) scale(1.06); }
.stamp__in { background: var(--paper); outline: 1px solid var(--line-strong); outline-offset: -5px; padding: 12px 4px 10px; }
.stamp strong { display: block; font-family: var(--f-display); font-size: 38px; line-height: 1; color: var(--brown); }
.stamp .stars { color: #E2A23B; letter-spacing: 2px; font-size: 13px; }
.stamp small { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.hero .waves { bottom: -1px; }
.scroll-hint { position: absolute; left: 50%; bottom: 100px; transform: translateX(-50%); width: 24px; height: 38px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--brown); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Bandeau défilant ---------- */
.marquee { background: var(--sea-deep); color: var(--cream); overflow: hidden; padding: 20px 0; }
.marquee__track { display: flex; width: max-content; animation: marq 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; }
.marquee span { font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 32px); font-style: italic; padding: 0 22px; white-space: nowrap; }
.marquee i { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--gold-soft); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Appartements : les clés ---------- */
.apts { background: var(--paper); }
.apts__head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.keys { display: flex; gap: clamp(14px, 3vw, 36px); margin: 56px 0 30px; padding-top: 16px; }
.keyrack { position: relative; height: 4px; background: var(--brown); border-radius: 4px; margin-top: 10px; box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.key-tag {
  --c: var(--brown);
  rotate: var(--sw, 0deg); /* balancement (home.js), en plus de l'inclinaison --r */
  position: relative; flex: 1; max-width: 200px; border: 0; background: none; padding: 0;
  transform-origin: 50% -14px; transform: rotate(var(--r, 0deg));
  transition: transform .9s var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
}
.key-tag::before { content: ""; position: absolute; left: 50%; top: -18px; width: 2px; height: 22px; background: var(--gold); transform: translateX(-50%); }
.key-tag__body {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 26px 12px 20px; border-radius: 16px 16px 60px 60px;
  background: var(--shell); color: var(--brown);
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 20px -14px rgba(0,0,0,.4);
  transition: background .5s var(--ease), color .5s var(--ease), box-shadow .5s;
}
.key-tag__body::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line-strong); margin-bottom: 10px; }
.key-tag__num { font-family: var(--f-display); font-size: clamp(54px, 8vw, 86px); line-height: .9; }
.key-tag__lbl { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; }
.key-tag__price { font-size: 12px; color: #6E5D4D; margin-top: 8px; transition: color .5s; }
.key-tag[aria-selected="true"] .key-tag__body { background: var(--brown); color: var(--cream); box-shadow: var(--shadow); }
.key-tag[aria-selected="true"] .key-tag__price { color: var(--gold-soft); }
.key-tag.swing { animation: swing 1.1s var(--ease); }
@keyframes swing { 0% { transform: rotate(0); } 20% { transform: rotate(9deg); } 45% { transform: rotate(-6deg); } 70% { transform: rotate(3deg); } 100% { transform: rotate(0); } }

.apt { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.apt__media { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--shell); box-shadow: var(--shadow); touch-action: pan-y; }
.apt__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease), transform 1.4s var(--ease); }
.apt__media img.out { opacity: 0; transform: scale(1.06); }
.apt__note { position: absolute; left: 16px; bottom: 16px; right: 16px; padding: 10px 14px; border-radius: 12px; background: rgba(251,247,240,.92); font-size: 13px; color: var(--brown); }
.apt__note[hidden] { display: none; }
.apt__body { position: relative; }
.apt__body > * { transition: opacity .45s var(--ease), transform .6s var(--ease); }
.apt.swap .apt__body > * { opacity: 0; transform: translateY(14px); }
.apt__kicker { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--coral-deep); font-weight: 500; }
.apt__title { font-family: var(--f-display); font-size: clamp(44px, 5vw, 64px); line-height: 1; margin: 10px 0 16px; font-weight: 400; }
.apt__desc { color: var(--muted); margin: 0 0 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--sand); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.seasons { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 26px; }
.seasons div { padding: 16px 14px; text-align: center; }
.seasons div + div { box-shadow: inset 1px 0 0 var(--line); }
.seasons small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.seasons strong { display: block; font-family: var(--f-display); font-size: 32px; font-weight: 500; color: var(--brown); line-height: 1.1; margin-top: 4px; }
.seasons em { font-style: normal; font-size: 12px; color: var(--muted); }
.apt__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.compare { margin-top: 70px; }
.compare summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--brown); }
.compare summary::-webkit-details-marker { display: none; }
.compare summary .plus { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); position: relative; transition: transform .5s var(--ease); }
.compare summary .plus::before, .compare summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.compare summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.compare[open] summary .plus { transform: rotate(45deg); }
.table-scroll { overflow-x: auto; margin-top: 24px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.compare table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--f-display); font-size: 24px; font-weight: 500; color: var(--brown); }
.compare tbody th { font-weight: 400; color: var(--muted); }
.compare tr:last-child > * { border-bottom: 0; }
.yes { color: var(--sea); font-weight: 500; }

/* ---------- Inclus ---------- */
.incl__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.card {
  position: relative; padding: 34px 30px 30px; border-radius: 26px; background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line); overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease), box-shadow .5s;
}
.card:hover { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-soft); }
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(143,211,204,.28), transparent 45%);
}
.card:hover::before { opacity: 1; }
.card__ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--sand); color: var(--sea); margin-bottom: 22px; }
.card__ico svg { width: 26px; height: 26px; }
.card h3 { font-family: var(--f-display); font-size: 28px; font-weight: 500; margin: 0 0 10px; line-height: 1.1; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card p a { color: var(--sea); text-underline-offset: 3px; }
.promo { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; padding: 10px 10px 10px 16px; border-radius: 16px; border: 1.5px dashed rgba(212,111,69,.45); }
.promo .hand { color: var(--coral); font-size: 26px; line-height: 1; }
.promo__txt { font-size: 14px; color: var(--muted); }
.code { margin-left: auto; border: 0; padding: 10px 14px; border-radius: 12px; background: var(--coral-deep); color: #fff; font-size: 13px; font-weight: 500; letter-spacing: .14em; transition: transform .4s var(--ease-spring), background .3s; }
.code:hover { transform: scale(1.05); }
.code:active { transform: scale(.94); }
.code.ok { background: var(--sea); }

/* ---------- Orient Bay : carte ---------- */
.bay { background: var(--brown); color: var(--cream); overflow: hidden; }
.bay .eyebrow { color: var(--lagoon); }
.bay .h-section em { color: var(--gold-soft); }
.bay .lead { color: rgba(241,228,204,.72); }
.bay__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 70px); align-items: center; margin-top: 50px; }
.map { position: relative; border-radius: 28px; overflow: hidden; background: #E9DCC4; aspect-ratio: 1 / .82; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.map svg { width: 100%; height: 100%; }
.map .sea-anim { animation: shimmer 6s ease-in-out infinite alternate; }
@keyframes shimmer { to { transform: translateX(-14px); } }
.pin { cursor: pointer; outline: none; }
.pin circle.halo { fill: rgba(212,111,69,.25); transform-box: fill-box; transform-origin: center; animation: halo 2.6s var(--ease) infinite; }
.pin circle.dot { fill: var(--coral); stroke: #fff; stroke-width: 3; transition: r .3s var(--ease-spring); }
.pin text { font-family: var(--f-body); font-size: 15px; font-weight: 500; fill: var(--ink); paint-order: stroke; stroke: #F5EDE0; stroke-width: 5px; stroke-linejoin: round; }
.pin.home circle.dot { fill: var(--sea); }
.pin.home circle.halo { fill: rgba(22,124,128,.25); }
.pin:hover circle.dot, .pin:focus-visible circle.dot, .pin.on circle.dot { r: 13; }
.pin.on circle.dot { fill: var(--brown); }
@keyframes halo { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.walker { offset-rotate: 0deg; }
.map__legend { position: absolute; left: 14px; top: 14px; padding: 8px 12px; border-radius: 10px; background: rgba(251,247,240,.9); color: var(--brown); font-size: 12px; letter-spacing: .08em; }
/* Photo d'un lieu, façon tirage photo posé sur le plan */
.map__shot {
  position: absolute; z-index: 3; width: 46%; margin: 0; padding: 7px 7px 0; border-radius: 14px;
  background: #FBF7F0; box-shadow: 0 26px 50px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(74,58,44,.08);
  opacity: 0; transform: scale(.12) rotate(-8deg); pointer-events: none;
  transition: opacity .3s var(--ease), transform .6s var(--ease-spring);
}
.map__shot[hidden] { display: none; }
.map__shot.show { opacity: 1; transform: scale(1) rotate(-1.5deg); pointer-events: auto; cursor: zoom-out; }
.map__shot-ph { overflow: hidden; border-radius: 9px; aspect-ratio: 3 / 2; background: #E9DCC4; }
.map__shot-ph img { width: 100%; height: 100%; object-fit: cover; }
.map__shot.show img { animation: poi-drift 7s var(--ease) both; }
@keyframes poi-drift { from { transform: scale(1.16) translateY(2%); } to { transform: scale(1); } }
.map__shot figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 7px 3px 8px; min-width: 0; }
.map__shot b { font-weight: 500; font-size: 13px; color: var(--brown); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map__shot small { flex: none; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.map__shot-x {
  position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; padding: 6px; border: 0; border-radius: 50%;
  background: rgba(251,247,240,.92); color: var(--brown); cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .map__shot, .map__shot.show { transition: none; transform: none; }
  .map__shot.show img { animation: none; }
}
.spots { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.spot {
  display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; width: 100%; text-align: left;
  padding: 14px 16px; border: 0; border-radius: 18px; background: rgba(241,228,204,.06);
  box-shadow: inset 0 0 0 1px rgba(241,228,204,.12); color: var(--cream);
  transition: background .4s, box-shadow .4s, transform .5s var(--ease);
}
.spot:hover, .spot.on { background: rgba(241,228,204,.13); box-shadow: inset 0 0 0 1px rgba(216,190,146,.5); transform: translateX(6px); }
.spot .spot__t { font-family: var(--f-body); font-weight: 300; font-size: 30px; line-height: 1; color: var(--gold-soft); text-align: center; }
.spot .spot__t small { display: block; font-family: var(--f-body); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(241,228,204,.6); margin-top: 3px; }
.spot b { display: block; font-weight: 500; font-size: 16px; }
.spot span { font-size: 14px; color: rgba(241,228,204,.65); }
.bay__actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

.weather { margin-top: 70px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; border-radius: 22px; overflow: hidden; background: rgba(241,228,204,.14); }
.weather > div { background: var(--brown); padding: 24px 20px; }
.weather small { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(241,228,204,.55); }
.weather strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 4vw, 48px); line-height: 1.1; color: var(--cream); }
.weather span { font-size: 13px; color: var(--lagoon); }

/* ---------- Famille SALT ---------- */
.fam__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.letters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.letter {
  position: relative; aspect-ratio: 3 / 4.4; border: 0; border-radius: 999px 999px 18px 18px; padding: 0;
  background: var(--shell); color: var(--brown); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line); transition: background .5s var(--ease), transform .7s var(--ease-spring);
}
.letter:nth-child(even) { transform: translateY(26px); }
.letter__big { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-size: clamp(60px, 9vw, 118px); line-height: 1; transition: transform .7s var(--ease), opacity .5s; }
.letter__who { position: absolute; inset: auto 0 18px; text-align: center; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .7s var(--ease); }
.letter__who b { display: block; font-family: var(--f-display); font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; }
.letter__who span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.letter:hover, .letter.on { background: var(--brown); color: var(--cream); }
.letter:hover .letter__big, .letter.on .letter__big { transform: translateY(-22%) scale(.8); }
.letter:hover .letter__who, .letter.on .letter__who { opacity: 1; transform: none; }
.letter:nth-child(1).on, .letter:nth-child(1):hover { background: var(--sea); }
.letter:nth-child(3).on, .letter:nth-child(3):hover { background: var(--coral-deep); color: #fff; }
.fam__role { min-height: 7.5em; margin-top: 46px; padding: 22px 24px; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; color: var(--muted); transition: opacity .4s; }
.fam__role b { color: var(--brown); font-weight: 500; }
.fam__text p { color: var(--muted); }
.fam__text .hand { color: var(--coral); font-size: 26px; }

/* ---------- Avis ---------- */
.revs { background: var(--paper); overflow: hidden; }
.revs__head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.score { display: flex; align-items: center; gap: 18px; }
.score strong { font-family: var(--f-display); font-size: 84px; font-weight: 400; line-height: .8; color: var(--brown); }
.score .stars { color: #E2A23B; font-size: 20px; letter-spacing: 3px; }
.score small { display: block; font-size: 13px; color: var(--muted); }
.rail {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 50px var(--gutter) 30px; margin: 0 calc(var(--gutter) * -1); cursor: grab; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail.drag { cursor: grabbing; scroll-snap-type: none; }
.rail.drag * { user-select: none; pointer-events: none; }
.rev {
  flex: 0 0 min(420px, 84vw); scroll-snap-align: start; display: flex; flex-direction: column;
  padding: 30px; border-radius: 26px; background: var(--sand); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .6s var(--ease);
}
.rev:nth-child(odd) { transform: rotate(-.8deg); } .rev:nth-child(even) { transform: rotate(.8deg) translateY(10px); }
.rev:hover { transform: rotate(0) translateY(-6px); }
.rev .stars { color: #E2A23B; letter-spacing: 3px; }
.rev blockquote { margin: 14px 0 22px; font-family: var(--f-display); font-size: 22px; line-height: 1.35; color: var(--ink); flex: 1; }
.rev blockquote p { margin: 0; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.rev.open blockquote p { -webkit-line-clamp: unset; }
.rev__more { border: 0; background: none; padding: 0; margin-top: 8px; font-size: 13px; color: var(--sea-text); text-decoration: underline; }
.rev footer { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.rev__av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brown); color: var(--cream); font-family: var(--f-display); font-size: 20px; overflow: hidden; flex: none; }
.rev__av img { width: 100%; height: 100%; object-fit: cover; }
.rev footer b { display: block; font-weight: 500; }
.rev footer span { color: var(--muted); font-size: 13px; }
.rev__tr { font-size: 11px; color: var(--muted); margin-top: -12px; margin-bottom: 18px; letter-spacing: .04em; }
.revs__nav { display: flex; gap: 10px; }
.round { width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--brown); transition: background .4s, color .4s; }
.round:hover { background: var(--brown); color: var(--cream); }
.round svg { width: 20px; height: 20px; }
.revs__foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }

/* ---------- FAQ express ---------- */
.qa { max-width: 860px; margin: 50px auto 0; }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .plus { flex: none; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); position: relative; transition: transform .5s var(--ease), background .4s; }
.qa summary .plus::before, .qa summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--brown); transform: translate(-50%, -50%); }
.qa summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa details[open] .plus { transform: rotate(45deg); background: var(--shell); }
.qa__a { overflow: hidden; }
.qa__a p { margin: 0 0 24px; color: var(--muted); max-width: 70ch; }

/* ---------- Contact : carte postale ---------- */
.contact { background: linear-gradient(180deg, var(--sand), var(--shell)); }
.contact__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.contact__head .lead { margin: 18px auto 0; }
.pc-scene { perspective: 2000px; max-width: 1040px; margin: 0 auto; }
.pc { position: relative; transform-style: preserve-3d; transition: transform 1.3s var(--ease); }
.pc.flipped { transform: rotateY(180deg); }
.pc__face { backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--paper); border-radius: 8px; box-shadow: 0 50px 90px -50px rgba(51,40,31,.65), 0 2px 0 rgba(0,0,0,.04); }
.pc__front { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 0; padding: clamp(22px, 4vw, 48px); position: relative; }
.pc__front::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--line); border-radius: 4px; pointer-events: none; }
.pc__rule { background: var(--line-strong); }
.pc__left { padding-right: clamp(20px, 3.5vw, 44px); display: flex; flex-direction: column; }
.pc__right { padding-left: clamp(20px, 3.5vw, 44px); position: relative; }
.pc__msg { flex: 1; min-height: 240px; width: 100%; resize: vertical; border: 0; background:
  repeating-linear-gradient(transparent 0 37px, var(--line) 37px 38px); line-height: 38px; padding: 0; margin-top: 8px;
  font-family: var(--f-hand); font-size: 25px; color: var(--sea-deep); outline: none; }
.pc__msg::placeholder { color: rgba(119,102,85,.55); }
.pc__sign { font-family: var(--f-hand); font-size: 22px; color: var(--muted); margin-top: 6px; }
.pc__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; position: relative; }
.pc__to { margin: 4px 0 0; font-family: var(--f-hand); font-size: 22px; line-height: 1.3; color: var(--muted); }
.pc__to b { font-weight: 600; color: var(--brown); }
.pc__stamp {
  flex: none; width: 92px; height: 112px; padding: 8px; transform: rotate(4deg);
  background: radial-gradient(circle, transparent 3px, #fff 3.5px) -5px -5px / 10px 10px;
  filter: drop-shadow(0 6px 10px rgba(51,40,31,.18));
  transition: transform .6s var(--ease-spring);
}
.pc__stamp:hover { transform: rotate(-3deg) scale(1.05); }
.pc__stamp div { height: 100%; background: linear-gradient(180deg, #F2B880 0 40%, #3FA9B3 40% 70%, #E6D2AE 70%); position: relative; display: grid; place-items: end center; padding-bottom: 4px; }
.pc__stamp div::before { content: ""; position: absolute; top: 12px; left: 50%; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: #F7E2A3; }
.pc__stamp span { position: relative; font-family: var(--f-display); font-size: 13px; letter-spacing: .1em; color: var(--brown); }
.postmark { position: absolute; top: 18px; right: 70px; width: 96px; height: 96px; font-family: var(--f-body); border-radius: 50%; border: 2px solid rgba(22,124,128,.45); color: rgba(22,124,128,.6); display: grid; place-items: center; text-align: center; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; transform: rotate(-14deg); pointer-events: none; }
.postmark b { display: block; font-size: 16px; font-weight: 500; letter-spacing: .06em; margin: 2px 0; }
.field { position: relative; margin-top: 18px; }
.field label, .field .lbl { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.field input, .field select {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; padding: 8px 0 9px;
  font-family: var(--f-hand); font-size: 24px; color: var(--sea-deep); border-radius: 0; outline: none; transition: border-color .3s;
  -webkit-appearance: none; appearance: none; min-height: 46px;
}
.field input:focus, .field select:focus { border-color: var(--sea); }
.field input[type="date"] { font-size: 20px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pills button { border: 0; padding: 8px 14px; border-radius: 999px; background: var(--sand); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; transition: background .3s, color .3s, transform .4s var(--ease-spring); }
.pills button[aria-checked="true"] { background: var(--brown); color: var(--cream); transform: scale(1.05); }
.pills button[aria-pressed="true"] { background: var(--brown); color: var(--cream); }
.pills--soft button { padding: 7px 12px; font-size: 13.5px; }
.field .lbl .opt { font-style: normal; text-transform: none; letter-spacing: .02em; font-size: 12px; opacity: .8; }
.hp { position: absolute; left: -9999px; }
.pc__send { margin-top: 28px; width: 100%; justify-content: center; }
.pc__err { margin: 12px 0 0; font-size: 14px; color: var(--coral); min-height: 1.4em; }
.pc__back { position: absolute; inset: 0; transform: rotateY(180deg); display: grid; place-items: center; text-align: center; padding: 40px; overflow: hidden;
  background: linear-gradient(160deg, #F2B880, #E7A16E 30%, #3FA9B3 30.2%, #167C80 64%, #E9D7B5 64.2%); }
.pc__back-in { background: rgba(251,247,240,.94); padding: clamp(26px, 5vw, 50px); border-radius: 8px; max-width: 520px; box-shadow: var(--shadow-soft); }
.pc__back h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.05; margin: 8px 0 14px; }
.pc__back h3 em { color: var(--sea); }
.pc__back p { color: var(--muted); margin: 0 0 22px; }
.direct { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding-bottom: 120px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__art { width: min(78%, 400px); order: -1; margin-top: 12px; }
  .scroll-hint { display: none; }
  .apt { grid-template-columns: 1fr; }
  .incl__grid { grid-template-columns: 1fr 1fr; }
  .bay__grid { grid-template-columns: 1fr; }
  .weather { grid-template-columns: 1fr 1fr; }
  .weather > div:nth-child(3) { grid-column: span 2; } /* alizés en pleine largeur, puis la course du soleil */
  .fam__grid { grid-template-columns: 1fr; }
  .pc__front { grid-template-columns: 1fr; }
  .pc__rule { height: 1px; margin: 26px 0 6px; }
  .pc__left, .pc__right { padding: 0; }
  .pc__msg { min-height: 190px; }
  .pc__back { position: absolute; place-items: start center; padding: 70px 16px; }
}
@media (max-width: 560px) {
  .hero { padding-top: calc(var(--nav-h) + 16px); }
  .hero__art { width: 66%; }
  .arch { aspect-ratio: 4 / 4.6; }
  .hero h1 { margin-top: 18px; }
  .pin text { font-size: 24px; }
  .map__shot { width: 66%; padding: 5px 5px 0; border-radius: 11px; }
  .map__shot figcaption { padding: 5px 2px 6px; }
  .map__shot b { font-size: 12px; }
  .map__shot-x { top: 9px; right: 9px; width: 24px; height: 24px; }
  .postmark { display: none; }
  .seal { width: 108px; height: 108px; left: -24px; top: -26px; }
  .stamp { right: -18px; top: 34px; bottom: auto; width: 86px; padding: 7px; }
  .stamp__in { padding: 8px 2px 7px; }
  .stamp .stars { font-size: 9px; letter-spacing: 1px; }
  .stamp strong { font-size: 24px; }
  .stamp small { font-size: 8px; letter-spacing: .08em; }
  .hero__facts { gap: 20px 30px; }
  .hero__facts strong { font-size: 34px; }
  .keys { gap: 10px; }
  .key-tag__body { padding: 20px 6px 16px; border-radius: 14px 14px 46px 46px; }
  .key-tag__price { font-size: 11px; }
  .seasons strong { font-size: 26px; }
  .seasons div { padding: 14px 6px; }
  .incl__grid { grid-template-columns: 1fr; }
  .weather > div { padding: 18px 16px; }
  .weather small { font-size: 10px; letter-spacing: .1em; }
  .letters { gap: 6px; }
  .letter__who span { font-size: 9px; letter-spacing: .06em; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .score strong { font-size: 64px; }
  .pc__stamp { width: 76px; height: 92px; }
}

/* ---------- Carrousel de la fiche appartement ---------- */
.apt__media { cursor: zoom-in; }
.apt__arrow {
  position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; margin-top: -23px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgba(251,247,240,.88); color: var(--brown); box-shadow: var(--shadow-soft);
  opacity: 0; transition: opacity .3s, transform .4s var(--ease-spring);
}
.apt__arrow svg { width: 20px; height: 20px; }
.apt__arrow--l { left: 14px; } .apt__arrow--r { right: 14px; }
.apt__arrow:hover { transform: scale(1.08); }
.apt__media:hover .apt__arrow, .apt__arrow:focus-visible { opacity: 1; }
.apt__arrow[hidden] { display: none; }
.apt__dots { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.apt__dots span { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.6); transition: width .4s var(--ease), background .3s; }
.apt__dots span.on { width: 22px; background: #fff; }
.apt__zoom {
  position: absolute; top: 16px; right: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border: 0; border-radius: 999px; background: rgba(43,33,25,.62); color: #fff;
  font-size: 13px; letter-spacing: .06em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .3s, transform .4s var(--ease-spring);
}
.apt__zoom:hover { background: var(--sea); transform: scale(1.04); }
.apt__zoom svg { width: 17px; height: 17px; }
.apt__zoom[hidden] { display: none; }
@media (hover: none) { .apt__arrow { opacity: 1; } }

/* ---------- Galerie plein écran ---------- */
html.lb-open { overflow: hidden; }
.lb {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #1B1510; color: var(--cream);
  display: none; grid-template-rows: auto 1fr auto auto;
}
.lb[open] { display: grid; animation: lbIn .5s var(--ease); }
.lb::backdrop { background: rgba(27,21,16,.6); }
@keyframes lbIn { from { opacity: 0; transform: scale(1.02); } }
.lb__top { display: flex; align-items: center; gap: 14px; padding: calc(14px + env(safe-area-inset-top)) var(--gutter) 10px; }
.lb__chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.lb__chips::-webkit-scrollbar { display: none; }
.lb__chips button { flex: none; border: 0; padding: 8px 14px; border-radius: 999px; background: rgba(241,228,204,.08); color: var(--cream); font-size: 14px; box-shadow: inset 0 0 0 1px rgba(241,228,204,.16); transition: background .3s, color .3s; }
.lb__chips button small { opacity: .6; margin-left: 4px; }
.lb__chips button[aria-pressed="true"] { background: var(--cream); color: var(--brown); }
.lb__count { font-size: 13px; letter-spacing: .12em; color: rgba(241,228,204,.6); white-space: nowrap; }
.lb__close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(241,228,204,.1); color: var(--cream); transition: background .3s, transform .4s var(--ease-spring); }
.lb__close:hover { background: var(--coral); transform: rotate(90deg); }
.lb__close svg { width: 22px; height: 22px; }
.lb__stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-height: 0; padding: 8px var(--gutter); touch-action: pan-y; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); user-select: none; -webkit-user-drag: none; }
.lb__stage img.in-r { animation: slideR .55s var(--ease); }
.lb__stage img.in-l { animation: slideL .55s var(--ease); }
@keyframes slideR { from { opacity: 0; transform: translateX(40px) scale(.98); } }
@keyframes slideL { from { opacity: 0; transform: translateX(-40px) scale(.98); } }
.lb__nav {
  position: absolute; top: 50%; z-index: 1; width: 56px; height: 56px; margin-top: -28px; border: 0; border-radius: 50%; display: grid; place-items: center;
  /* pastille pleine et contrastée : visible sur n'importe quelle photo */
  background: rgba(251,247,240,.94); color: var(--brown); cursor: pointer;
  box-shadow: 0 10px 28px -8px rgba(0,0,0,.55); transition: background .3s, color .3s, transform .3s var(--ease);
}
.lb__nav:hover { background: var(--sea); color: #fff; transform: scale(1.08); }
.lb__nav svg { width: 26px; height: 26px; stroke-width: 2.2; }
.lb__nav--l { left: var(--gutter); } .lb__nav--r { right: var(--gutter); }
.lb__nav[hidden] { display: none; }
.lb__empty { font-family: var(--f-hand); font-size: 30px; color: var(--gold-soft); }
.lb__cap { margin: 0; padding: 8px var(--gutter) 0; text-align: center; font-family: var(--f-display); font-style: italic; font-size: 20px; color: rgba(241,228,204,.85); min-height: 1.6em; }
.lb__thumbs { display: flex; justify-content: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 14px var(--gutter) calc(18px + env(safe-area-inset-bottom)); }
.lb__thumbs::-webkit-scrollbar { display: none; }
.lb__thumbs button { flex: none; width: 74px; height: 54px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; opacity: .45; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .3s, outline-color .3s; background: none; }
.lb__thumbs button.on { opacity: 1; outline-color: var(--gold-soft); }
.lb__thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) {
  .lb__nav { display: none; }
  .lb__stage { padding: 8px 0; }
  .lb__stage img { border-radius: 0; }
  .lb__count { display: none; }
}

/* ---------- Visite par pièce ---------- */
.apt__left { min-width: 0; }
.apt__room {
  position: absolute; top: 16px; left: 16px; z-index: 2; padding: 8px 14px; border-radius: 999px;
  background: rgba(251,247,240,.92); color: var(--brown); font-size: 13px; font-weight: 500; letter-spacing: .04em;
}
.apt__room[hidden] { display: none; }
.tour { margin-top: 18px; }
.tour[hidden] { display: none; }
.tour__t { margin: 0 0 10px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.tour ul { list-style: none; margin: 0; padding: 2px 2px 6px; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 10px; }
.tour ul::-webkit-scrollbar { display: none; }
.tour li { flex: none; min-width: 0; scroll-snap-align: start; }
.tour button {
  display: flex; flex-direction: column; gap: 6px; width: 100%; min-width: 0; padding: 0; border: 0; background: none; text-align: left;
}
.tour img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; opacity: .6; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .3s, outline-color .3s, transform .5s var(--ease); }
.tour button:hover img { opacity: 1; transform: translateY(-3px); }
.tour button[aria-pressed="true"] img { opacity: 1; outline-color: var(--sea); }
.tour span { font-size: 12px; color: var(--brown); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tour small { color: var(--muted); }
.lb__thumbs button { position: relative; }
.lb__thumbs button span { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 4px; font-size: 10px; line-height: 1.3; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
  /* sur téléphone : rangée défilante plutôt que des vignettes minuscules */
  .tour ul { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .tour button { width: 84px; }
}

/* ---------- Accès direct à la plage : mise en avant ---------- */
.hl { font-weight: 500; color: var(--sea-deep); background: linear-gradient(transparent 34%, rgba(143,211,204,.55) 34% 76%, transparent 76%); padding: 0 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; } /* bande à mi-hauteur des lettres, pas sous la ligne */
.fact--beach strong { display: flex; align-items: center; height: 40px; color: var(--sea); }
.fact--beach strong svg { width: 40px; height: 40px; }
.beach-callout {
  /* pastille discrète, juste au-dessus des clés */
  display: inline-flex; align-items: center; gap: 12px; margin: 34px 0 0; padding: 7px 18px 7px 7px; border-radius: 999px;
  background: linear-gradient(100deg, rgba(143,211,204,.32), rgba(143,211,204,.08)); box-shadow: inset 0 0 0 1px rgba(22,124,128,.22);
}
.beach-callout__ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sea); color: #fff; }
.beach-callout__ico svg { width: 20px; height: 20px; animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }
.beach-callout b { font-weight: 500; font-size: 15px; color: var(--sea-deep); }
.beach-callout b::after { content: " ·"; }
.beach-callout > span:last-child { font-size: 14px; line-height: 1.4; }
.beach-callout > span:last-child > span { color: var(--muted); }
.chips .chip--size { background: var(--brown); color: var(--cream); box-shadow: none; }

/* ---------- Équipements ---------- */
.amen-link {
  display: inline-flex; align-items: center; gap: 8px; margin: -12px 0 26px; padding: 6px 2px; border: 0; background: none;
  font-size: 14px; color: var(--sea); text-decoration: underline; text-decoration-color: rgba(22,124,128,.35); text-underline-offset: 4px;
  transition: text-decoration-color .3s, gap .4s var(--ease);
}
.amen-link:hover { text-decoration-color: currentColor; gap: 11px; }
.amen-link svg { width: 18px; height: 18px; }
.amen-link small { padding: 1px 8px; border-radius: 999px; background: rgba(22,124,128,.1); color: var(--sea-text); font-size: 12px; text-decoration: none; }
.amen {
  width: min(920px, calc(100vw - 32px)); max-height: min(86dvh, 900px); margin: auto; padding: 0; border: 0; border-radius: 28px;
  background: var(--paper); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0,0,0,.6); overflow: hidden;
}
.amen[open] { animation: amenIn .55s var(--ease); }
@keyframes amenIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.amen::backdrop { background: rgba(43,33,25,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.amen__in { max-height: inherit; overflow-y: auto; padding: clamp(24px, 4vw, 44px); overscroll-behavior: contain; }
.amen__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 26px; }
.amen__head h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 4vw, 48px); line-height: 1.05; margin: 10px 0 6px; }
.amen__head h2 em { color: var(--sea); }
.amen__head p { margin: 0; color: var(--muted); }
.amen__close { background: var(--sand); color: var(--brown); }
.amen__grid { columns: 2 300px; column-gap: 28px; }
.amen__cat { break-inside: avoid; margin-bottom: 22px; padding: 20px 22px; border-radius: 20px; background: var(--sand); box-shadow: inset 0 0 0 1px var(--line); }
.amen__cat h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-family: var(--f-display); font-weight: 500; font-size: 24px; }
.amen__cat h3 svg { width: 24px; height: 24px; color: var(--sea); flex: none; }
.amen__cat ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.amen__cat li { position: relative; padding-left: 22px; font-size: 15px; }
.amen__cat li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px; border-left: 1.6px solid var(--sea); border-bottom: 1.6px solid var(--sea); transform: rotate(-45deg); }
.amen__foot { margin: 8px 0 0; text-align: center; font-size: 24px; color: var(--coral); }
@media (max-width: 560px) {
  .amen { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .amen[open] { animation: sheetUp .5s var(--ease); }
  @keyframes sheetUp { from { transform: translateY(100%); } }
  .amen__in { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .beach-callout { border-radius: 20px; padding: 8px 14px 8px 8px; }
}

/* ---------- Course du soleil ---------- */
.weather .sunarc {
  grid-column: span 2; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "title title title" "rise arc set" "mid mid mid";
  column-gap: 14px; align-items: end;
}
.sunarc > small { grid-area: title; font-size: 13px; color: var(--lagoon); } /* aligné sur AIR, MER, ALIZÉS */
.sunarc__times { display: contents; }
.sunarc__times > span:first-child { grid-area: rise; }
.sunarc__times > .r { grid-area: set; }
.sunarc__svg { grid-area: arc; width: 100%; max-width: 280px; justify-self: center; margin-top: 4px; overflow: visible; }
.sunarc__track { fill: none; stroke: rgba(241,228,204,.22); stroke-width: 1.4; stroke-dasharray: .006 .012; }
.sunarc__done { fill: none; stroke: var(--gold-soft); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0 1; transition: stroke 1s; }
.sunarc__horizon { stroke: rgba(241,228,204,.3); stroke-width: 1; }
.sunarc__sun circle:last-child { fill: #FFC86B; }
.sunarc__rays { stroke: #FFC86B; stroke-width: 2; stroke-linecap: round; animation: spin 18s linear infinite; transform-box: fill-box; transform-origin: center; }
.sunarc__moon { opacity: 0; }
.sunarc__moon circle:last-child { fill: #F6EBD6; }
.sunarc__sun, .sunarc__moon { transition: opacity 1s var(--ease); }
.sunarc__stars circle { fill: #fff; opacity: 0; transition: opacity 1.2s; }
/* La nuit : un nuage sombre aux bords flous derrière la course, plutôt qu'un rectangle */
.weather .sunarc { position: relative; isolation: isolate; }
.sunarc::before {
  content: ""; position: absolute; inset: 6% 3%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease);
  background:
    radial-gradient(ellipse 34% 52% at 24% 58%, #241C17 0 55%, transparent 100%),
    radial-gradient(ellipse 30% 58% at 50% 44%, #241C17 0 55%, transparent 100%),
    radial-gradient(ellipse 32% 50% at 76% 60%, #241C17 0 55%, transparent 100%),
    radial-gradient(ellipse 48% 40% at 50% 74%, #241C17 0 50%, transparent 100%);
  filter: blur(14px);
}
.sunarc.is-night::before { opacity: .9; }
.sunarc.is-night > small, .weather .sunarc.is-night .sunarc__times em, .weather .sunarc.is-night .sunarc__times em span { color: var(--gold-soft); }
.sunarc.is-night .sunarc__sun { opacity: 0; }
.sunarc.is-night .sunarc__moon { opacity: 1; }
.sunarc.is-night .sunarc__done { stroke: var(--cream); }
.sunarc.is-night .sunarc__stars circle { opacity: .8; animation: twinkle 3s ease-in-out infinite; }
.sunarc.is-night .sunarc__stars circle:nth-child(2n) { animation-delay: -1.5s; }
.sunarc.is-night .sunarc__stars circle:nth-child(3n) { animation-delay: -.8s; animation-duration: 4s; }
@keyframes twinkle { 50% { opacity: .2; } }
.sunarc__times b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); line-height: 1; color: var(--cream); font-variant-numeric: lining-nums; }
.weather .sunarc__times em { display: block; font-style: normal; font-size: 12px; color: var(--lagoon); }
.weather .sunarc__times .r { text-align: right; }
.weather .sunarc__mid { grid-area: mid; margin-top: 0; text-align: center; font-family: var(--f-hand); font-size: 20px; line-height: 1.1; color: var(--gold-soft); padding-bottom: 2px; }
.weather .sunarc.is-night .sunarc__mid { color: var(--cream); }

/* ---------- Vague sur la photo de l'appartement (home.js) ---------- */
/* Masque deux fois plus haut que la photo : moitié haute transparente, moitié basse pleine, bord en vagues.
   En glissant vers le bas, la partie pleine monte et découvre la photo ; l'écume suit le bord. */
.apt__media { background-size: cover; background-position: center; }
.apt__media img.pre-wave, .apt__media img.wave {
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 200' preserveAspectRatio='none'%3E%3Cpath d='M0 96 Q25 92 50 96 T100 96 T150 96 T200 96 T250 96 T300 96 V200 H0Z'/%3E%3C/svg%3E");
  -webkit-mask: var(--wave) 0 0 / 100% 220% no-repeat; mask: var(--wave) 0 0 / 100% 220% no-repeat;
}
.apt__media img.wave { animation: wave-in 1.6s cubic-bezier(.45, .05, .25, 1) both; }
@keyframes wave-in { from { -webkit-mask-position: 0 0; mask-position: 0 0; } to { -webkit-mask-position: 0 100%; mask-position: 0 100%; } }
.apt__media::after {
  content: ""; position: absolute; left: -4%; right: -4%; height: 34px; top: 110%; z-index: 1; pointer-events: none; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 34' preserveAspectRatio='none'%3E%3Cpath d='M0 17 Q25 11 50 17 T100 17 T150 17 T200 17 T250 17 T300 17' fill='none' stroke='%23fff' stroke-width='5' stroke-linecap='round' opacity='.85'/%3E%3Cpath d='M0 23 Q25 17 50 23 T100 23 T150 23 T200 23 T250 23 T300 23' fill='none' stroke='%23fff' stroke-width='2' opacity='.45'/%3E%3C/svg%3E") center / 100% 100%;
  filter: blur(.6px);
}
.apt__media.waving::after { animation: wave-foam 1.6s cubic-bezier(.45, .05, .25, 1) both; }
@keyframes wave-foam {
  0% { top: calc(105.6% - 17px); opacity: 0; transform: translateX(0); }
  12% { opacity: 1; }
  80% { opacity: .9; }
  100% { top: calc(-14.4% - 17px); opacity: 0; transform: translateX(-3%); }
}

/* ---------- Cachet de la poste à l'envoi de la carte (home.js) ---------- */
.pc.posted .postmark { display: grid; z-index: 3; color: rgba(14,90,94,.85); border-color: rgba(14,90,94,.7); animation: postmark-hit .7s cubic-bezier(.2, 1.6, .4, 1) both; }
.pc.posted .postmark::after {
  content: ""; position: absolute; left: 82%; top: 30%; width: 120px; height: 38px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 38'%3E%3Cg fill='none' stroke='%230E5A5E' stroke-width='2' stroke-linecap='round' opacity='.75'%3E%3Cpath d='M2 6 Q17 1 32 6 T62 6 T92 6 T120 6'/%3E%3Cpath d='M2 19 Q17 14 32 19 T62 19 T92 19 T120 19'/%3E%3Cpath d='M2 32 Q17 27 32 32 T62 32 T92 32 T120 32'/%3E%3C/g%3E%3C/svg%3E") left center / 120px 38px no-repeat;
  clip-path: inset(0 100% 0 0); animation: postmark-lines .45s .35s var(--ease) forwards;
}
.pc.posted .pc__front { animation: postmark-thud .35s .18s ease-out; }
@keyframes postmark-hit {
  0% { opacity: 0; transform: rotate(-30deg) scale(2.2); filter: blur(3px); }
  55% { opacity: 1; transform: rotate(-12deg) scale(.94); filter: blur(0); }
  100% { opacity: 1; transform: rotate(-14deg) scale(1); }
}
@keyframes postmark-lines { to { clip-path: inset(0 0 0 0); } }
@keyframes postmark-thud { 40% { transform: translateY(3px) scale(.995); } }
@media (max-width: 560px) { .pc.posted .postmark { top: 8px; right: 92px; } }

/* ---------- Mots écrits à la main (home.js) ---------- */
/* Un masque balaie le texte de gauche à droite, avec un bord doux comme l'encre qui arrive */
.pen {
  -webkit-mask: linear-gradient(90deg, #000 0 45%, transparent 55%) 100% 0 / 230% 100% no-repeat;
  mask: linear-gradient(90deg, #000 0 45%, transparent 55%) 100% 0 / 230% 100% no-repeat;
}
.pen.writing { animation: pen-write var(--pen, 1s) cubic-bezier(.4, .1, .4, 1) forwards; }
@keyframes pen-write { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }

/* ---------- Carte postée : scène plein écran du /merci (home.js, showSent) ---------- */
html.sent-open { overflow: hidden; }
.pc.no-anim { transition: none !important; }
.sent { position: fixed; inset: 0; z-index: 200; perspective: 1400px; overflow: hidden; transition: opacity .5s var(--ease); }
.sent.is-leaving { opacity: 0; pointer-events: none; }
.sent__sky {
  position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease);
  background:
    radial-gradient(ellipse 70% 55% at 74% 20%, rgba(255,214,150,.55), transparent 70%),
    linear-gradient(180deg, #FBF4E8 0%, #F7E6CC 58%, #F2D9B6 76%, #EBCB9F 100%);
}
.sent.is-in .sent__sky { opacity: 1; }
.sent__sun {
  position: absolute; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #FFE2A8, #F2B866 70%); box-shadow: 0 0 60px 18px rgba(255,200,110,.45);
}
.sent__sun::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(242,184,102,.8); opacity: 0; }
.sent.is-arrived .sent__sun { animation: sent-sun .9s var(--ease); }
.sent.is-arrived .sent__sun::after { animation: sent-ring 1.1s var(--ease) forwards; }
@keyframes sent-sun { 35% { transform: scale(1.28); box-shadow: 0 0 90px 34px rgba(255,200,110,.6); } }
@keyframes sent-ring { from { opacity: .9; transform: scale(.8); } to { opacity: 0; transform: scale(3.2); } }
.sent__gulls { position: absolute; left: 14%; top: 17%; width: 74px; fill: none; stroke: rgba(74,58,44,.5); stroke-width: 1.6; stroke-linecap: round; animation: sent-gulls 14s linear infinite; }
@keyframes sent-gulls { from { transform: translate(-20px, 6px); } 50% { transform: translate(40px, -6px); } to { transform: translate(-20px, 6px); } }
.sent__route { position: absolute; inset: 0; overflow: visible; }
.sent__dots { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1.5 9; opacity: .8; transition: opacity 1.2s var(--ease) .4s; }
.sent.is-done .sent__dots { opacity: .22; } /* la route s'efface derrière le merci */
.sent__draw { fill: none; stroke: #fff; stroke-width: 10; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.sent.is-done .sent__draw { stroke-dashoffset: 0; }
.sent__sea { position: absolute; left: 0; bottom: 0; width: 100%; height: 22vh; min-height: 120px; }
.sent__sea path { transform-box: fill-box; animation: sent-sea 11s linear infinite; }
.sent__sea .w1 { fill: var(--lagoon); opacity: .7; }
.sent__sea .w2 { fill: #3FA9B3; animation-duration: 8s; animation-direction: reverse; }
.sent__sea .w3 { fill: var(--sea); animation-duration: 6s; }
@keyframes sent-sea { to { transform: translateX(-50%); } }

/* La copie de la carte, puis son côté photo « par avion » */
.sent__front { position: absolute; z-index: 2; transform-origin: center; will-change: transform; }
.sent__pc, .sent__pc .pc__front, .sent__pc .postmark, .sent__pc .postmark::after, .sent__pc .pen { transition: none !important; animation: none !important; }
.sent__pc .postmark::after { clip-path: none; }
.sent__pc .pen { -webkit-mask: none; mask: none; }
.sent__photo {
  position: absolute; z-index: 3; opacity: 0; box-sizing: border-box; padding: 7px; border-radius: 6px; will-change: transform, opacity;
  background: repeating-linear-gradient(135deg, var(--coral) 0 9px, #fff 9px 18px, var(--sea) 18px 27px, #fff 27px 36px);
  box-shadow: 0 30px 50px -24px rgba(51,40,31,.55);
}
.sent__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; border: 5px solid #fff; border-radius: 2px; box-sizing: border-box; }
.sent__ph-t { position: absolute; left: 24px; bottom: 34px; font-family: var(--f-display); font-style: italic; font-size: clamp(30px, 7vw, 40px); line-height: 1; color: #fff; text-shadow: 0 2px 14px rgba(0,40,45,.45); }
.sent__ph-s { position: absolute; left: 26px; bottom: 18px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px rgba(0,40,45,.5); }
.sent__air { position: absolute; top: 18px; right: 18px; padding: 3px 8px; border: 1.5px solid var(--sea); border-radius: 3px; background: rgba(255,255,255,.92); color: var(--sea-deep); font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; transform: rotate(4deg); }
.sent.is-done .sent__front, .sent.is-done .sent__photo { opacity: 0 !important; transition: opacity .3s; }

/* Le merci */
.sent__thanks {
  position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px var(--gutter) max(24vh, 150px); text-align: center; pointer-events: none;
}
.sent__thanks > * { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.sent.is-done .sent__thanks { pointer-events: auto; }
.sent.is-done .sent__thanks > * { opacity: 1; transform: none; }
.sent.is-done .sent__thanks > :nth-child(3) { transition-delay: .5s; }
.sent.is-done .sent__thanks > :nth-child(4) { transition-delay: .7s; }
.sent.is-done .sent__thanks > :nth-child(5) { transition-delay: .9s; }
.sent__k { margin: 0 0 6px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.sent__t {
  margin: 0; font-family: var(--f-hand); font-weight: 600; font-size: clamp(54px, 11vw, 92px); line-height: 1.05; color: var(--coral-deep); outline: none;
  -webkit-mask: linear-gradient(90deg, #000 0 45%, transparent 55%) 100% 0 / 230% 100% no-repeat;
  mask: linear-gradient(90deg, #000 0 45%, transparent 55%) 100% 0 / 230% 100% no-repeat;
}
.sent.is-done .sent__t { animation: pen-write var(--pen, 1.2s) cubic-bezier(.4, .1, .4, 1) .1s forwards; }
.sent__lead { margin: 8px 0 0; font-family: var(--f-display); font-size: clamp(24px, 4vw, 34px); line-height: 1.15; color: var(--brown); }
.sent__lead em { color: var(--sea); }
.sent__p { max-width: 440px; margin: 12px auto 0; color: var(--muted); line-height: 1.55; }
.sent__act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
@media (prefers-reduced-motion: reduce) {
  .sent__sky, .sent__thanks > * { transition: none; }
  .sent__sea path, .sent__gulls { animation: none; }
  .sent__t { -webkit-mask: none; mask: none; animation: none !important; }
}
