/* Hôtel des Rives — site de démonstration (Studio Emy). Identité propre : bleu nuit, champagne, sable. */
@font-face {
  font-family: "Outfit"; font-style: normal; font-weight: 200 600; font-display: swap;
  src: url("/assets/fonts/outfit-latin.woff2") format("woff2");
}

:root {
  --navy: #14233A;
  --navy-2: #0E1828;
  --navy-3: #22354F;
  --champ: #CDB38A;
  --champ-2: #E6D5B5;
  --sand: #F4EFE6;
  --paper: #FBF9F5;
  --mist: #E9EEF0;
  --sage: #8FA89B;
  --ink: #18202B;
  --muted: #667080;
  --line: rgba(20, 35, 58, .12);
  --display: "Didot", "Bodoni 72", "Bodoni MT", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 300 1.05rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: -.005em; line-height: 1.05; }
h1 em, h2 em, .outro-title em { font-style: italic; color: var(--champ); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button, input, select { font: inherit; color: inherit; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem; font-size: .76rem; font-weight: 450; letter-spacing: .22em; text-transform: uppercase; color: var(--champ); }
.hint { font-size: .9rem; color: var(--muted); }
section { position: relative; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: .8rem 1.7rem; border: 0; border-radius: 999px; font-size: .95rem; font-weight: 450; letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: transform .35s var(--ease), background .3s, box-shadow .35s, opacity .3s; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--champ); outline-offset: 3px; }
.btn-gold { background: linear-gradient(135deg, var(--champ-2), var(--champ)); color: var(--navy-2); box-shadow: 0 14px 30px -14px rgba(205, 179, 138, .9); }
.btn-navy { background: var(--navy); color: var(--sand); }
.btn-navy:hover:not(:disabled) { background: var(--navy-3); }
.btn-small { min-height: 42px; padding: .55rem 1.2rem; font-size: .88rem; }
.btn-wide { width: 100%; }

/* Bandeau de démonstration */
.demo-bar { position: relative; z-index: 60; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem clamp(1rem, 4vw, 2.5rem); background: #08101C; color: rgba(244, 239, 230, .75); font-size: .82rem; }
.demo-bar p { display: flex; align-items: center; gap: .6rem; margin: 0; min-width: 0; }
.demo-bar strong { color: var(--champ-2); font-weight: 450; white-space: nowrap; }
.demo-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-bar a { flex: none; color: var(--sand); font-weight: 450; text-decoration: none; }
.demo-bar a:hover { color: var(--champ-2); }
.demo-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--champ); box-shadow: 0 0 0 4px rgba(205, 179, 138, .2); }
@media (max-width: 760px) { .demo-text { display: none; } }

/* En-tête */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); height: 72px; padding: 0 clamp(1rem, 4vw, 2.5rem); color: var(--sand); transition: background-color .4s, box-shadow .4s; }
.top.is-solid { background: rgba(14, 24, 40, .96); box-shadow: 0 10px 40px -20px rgba(0, 0, 0, .6); }
.brand { display: inline-flex; align-items: center; gap: .7rem; margin: 0; font-family: var(--display); font-size: 1.35rem; text-decoration: none; line-height: 1.1; }
.brand small { display: block; font-family: var(--sans); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--champ); }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(205, 179, 138, .6); }
.brand-mark svg { width: 26px; height: 26px; fill: none; stroke: var(--champ); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.top nav { margin-left: auto; }
.top nav ul { display: flex; gap: 1.7rem; }
.top nav a { position: relative; font-size: .9rem; text-decoration: none; color: rgba(244, 239, 230, .82); transition: color .3s; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--champ); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.top nav a:hover { color: var(--sand); }
.top nav a:hover::after { transform: scaleX(1); }
.langs { display: flex; gap: .2rem; padding: .2rem; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(244, 239, 230, .28); }
.langs a { display: block; padding: .25rem .55rem; border-radius: 999px; font-size: .76rem; font-weight: 450; letter-spacing: .08em; text-decoration: none; color: rgba(244, 239, 230, .75); }
.langs a[aria-current] { background: var(--champ); color: var(--navy-2); }
@media (max-width: 1080px) { .top nav { display: none; } .langs { margin-left: auto; } }
@media (max-width: 520px) { .top .btn { display: none; } .brand small { display: none; } .brand { font-size: 1.15rem; } }

/* Accueil plein écran */
.hero { position: relative; display: grid; align-content: end; gap: 2rem; margin-top: -72px; min-height: calc(100svh - 2.3rem); padding: 8rem clamp(1rem, 4vw, 3rem) clamp(1.5rem, 4vh, 2.5rem); color: var(--sand); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -4% 0 0; z-index: -2; will-change: transform; transform: scale(calc(1.05 + var(--p, 0) * .12)) translateY(calc(var(--p, 0) * 6%)); transform-origin: 50% 55%; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; animation: kenburns 18s var(--ease) both; }
@keyframes kenburns { from { opacity: .35; } to { opacity: 1; } }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 16, 28, .6) 0%, rgba(8, 16, 28, 0) 30%, rgba(8, 16, 28, .1) 50%, rgba(8, 16, 28, .85) 100%), linear-gradient(90deg, rgba(8, 16, 28, .5), transparent 60%); opacity: calc(1 + var(--p, 0) * .4); }
.hero-content { max-width: 860px; transform: translateY(calc(var(--p, 0) * -60px)); opacity: calc(1 - var(--p, 0) * 1.4); }
.hero h1 { font-size: clamp(3.2rem, min(9.5vw, 14vh), 8.6rem); line-height: .95; margin-bottom: 1.3rem; text-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
.hero .lead { max-width: 52ch; font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: rgba(244, 239, 230, .9); }

/* Moteur de réservation */
.search { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: .7rem; align-items: end; max-width: 1080px; padding: .8rem; border-radius: 26px; background: rgba(14, 24, 40, .5); box-shadow: inset 0 0 0 1px rgba(244, 239, 230, .25), 0 40px 80px -40px rgba(0, 0, 0, .7); }
.search-field { display: grid; gap: .3rem; padding: .55rem .9rem .5rem; border-radius: 18px; background: rgba(251, 249, 245, .95); color: var(--ink); }
.search-field > span { font-size: .72rem; font-weight: 450; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.search-field input { width: 100%; min-height: 32px; padding: 0; border: 0; background: none; font-size: 1.05rem; }
.search-field input:focus { outline: none; }
.search-field:focus-within { box-shadow: 0 0 0 2px var(--champ); }
.search .btn { min-height: 64px; padding-inline: 1.8rem; border-radius: 18px; }
.search-note { grid-column: 1 / -1; margin: .1rem .4rem 0; font-size: .82rem; color: rgba(244, 239, 230, .85); }
.search-error { grid-column: 1 / -1; margin: 0 .4rem; color: #FFD3C2; font-size: .88rem; }
.stepper { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: center; }
.stepper button { height: 32px; border: 0; border-radius: 50%; background: var(--mist); color: var(--navy); font-size: 1.1rem; cursor: pointer; }
.stepper button:hover { background: var(--champ-2); }
.stepper input { text-align: center; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
@media (max-width: 900px) { .search { grid-template-columns: 1fr 1fr; } .search .stepper-wrap, .search > .search-field:nth-of-type(3) { grid-column: 1 / -1; } .search .btn { grid-column: 1 / -1; min-height: 56px; } }
@media (max-width: 760px) { .hero { padding-bottom: 6.5rem; } }

/* Avantages de la réservation directe */
.perks { padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 2.5rem); background: var(--navy); color: var(--sand); }
.section-title { max-width: 760px; margin: 0 auto clamp(2rem, 4vw, 3.2rem); text-align: center; }
.section-title h2 { font-size: clamp(2.3rem, 5vw, 4rem); margin-bottom: .9rem; }
.perk-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); max-width: 1180px; margin: 0 auto; }
.perk-list li { display: grid; align-content: start; gap: .5rem; padding: 1.6rem 1.4rem; border-top: 1px solid rgba(205, 179, 138, .45); color: rgba(244, 239, 230, .72); font-size: .95rem; line-height: 1.55; }
.perk-num { font-family: var(--display); font-size: 2.4rem; font-style: italic; color: var(--champ); line-height: 1; }
.perk-list strong { font-family: var(--display); font-size: 1.45rem; font-weight: 400; color: var(--sand); line-height: 1.2; }
@media (max-width: 900px) { .perk-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .perk-list { grid-template-columns: 1fr; } }

/* Chambres */
.rooms { padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 2.5rem); background: var(--sand); }
.rooms .section-title .hint.is-stay { display: inline-block; padding: .45rem 1rem; border-radius: 999px; background: var(--navy); color: var(--champ-2); }
.room-list { display: grid; gap: clamp(1.2rem, 3vw, 2.2rem); max-width: 1180px; margin: 0 auto; }
.room { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); overflow: hidden; border-radius: 32px; background: #fff; box-shadow: 0 40px 80px -55px rgba(20, 35, 58, .6); transition: opacity .4s, transform .5s var(--ease); }
.room:nth-child(even) .room-photo { order: 2; }
.room-photo { position: relative; overflow: hidden; min-height: 380px; }
.room-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.room:hover .room-photo img { transform: scale(1.05); }
.room-size { position: absolute; left: 1rem; bottom: 1rem; padding: .35rem .85rem; border-radius: 999px; background: rgba(14, 24, 40, .8); color: var(--sand); font-size: .8rem; }
.room-body { display: grid; align-content: center; gap: .3rem; padding: clamp(1.5rem, 4vw, 3rem); }
.room h3 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: .5rem; }
.room-body > p { color: var(--muted); }
.room-features { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 1.2rem; }
.room-features li { padding: .25rem .75rem; border-radius: 999px; background: var(--mist); font-size: .82rem; color: var(--navy-3); }
.room-features .is-gold { background: rgba(205, 179, 138, .25); color: #7A5D2E; }
.room-price { margin-bottom: 1rem; padding: 1rem 1.1rem; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.price-main { margin: 0; font-size: .9rem; color: var(--muted); }
.price-main strong { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 400; color: var(--navy); }
.price-compare { margin: .15rem 0 0; font-size: .86rem; color: var(--muted); }
.price-compare s { color: #9AA1AC; }
.price-compare b { font-weight: 450; color: #2F7A55; }
.price-hint { margin: .3rem 0 0; font-size: .82rem; color: var(--muted); }
.room-too-small { margin: .6rem 0 0; font-size: .88rem; color: #A1543B; }
.room.is-unavailable { opacity: .55; }
.room.is-updated .room-price { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { box-shadow: inset 0 0 0 2px var(--champ); background: #FFF8EC; } 100% { box-shadow: inset 0 0 0 1px var(--line); background: var(--paper); } }
.room .btn { justify-self: start; }
@media (max-width: 860px) { .room { grid-template-columns: 1fr; } .room:nth-child(even) .room-photo { order: 0; } .room-photo { min-height: 260px; } }

/* Récit à image fixe */
.story { max-width: 1240px; margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 2.5rem); }
.story-head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 4rem); }
.story-head h2 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 6rem); }
.story-frame { position: sticky; top: 14vh; height: 72vh; overflow: hidden; border-radius: 32px 32px 200px 32px; box-shadow: 0 50px 90px -50px rgba(20, 35, 58, .6); }
.story-img { position: absolute; inset: 0; opacity: 0; transform: scale(1.08); transition: opacity 1.1s var(--ease), transform 1.6s var(--ease); }
.story-img.is-active { opacity: 1; transform: none; }
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.story-clock { position: absolute; left: 1.4rem; bottom: 1.4rem; margin: 0; padding: .45rem 1.1rem; border-radius: 999px; background: rgba(14, 24, 40, .78); color: var(--sand); font-family: var(--display); font-size: 1.3rem; }
.story-step { min-height: 72vh; display: grid; align-content: center; padding: 2rem 0; opacity: .28; transition: opacity .6s var(--ease); }
.story-step.is-active { opacity: 1; }
.story-step h3 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin-bottom: 1rem; }
.story-step p { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: #4F5866; max-width: 42ch; }
.story-time { margin-bottom: .6rem !important; font-family: var(--display); font-style: italic; font-size: 1.35rem !important; color: var(--champ) !important; }
.story-inline { display: none; }
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-media { display: none; }
  .story-step { min-height: 0; opacity: 1; padding: 1rem 0 2.5rem; }
  .story-inline { display: block; overflow: hidden; margin-bottom: 1.2rem; border-radius: 26px; }
  .story-inline img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
}

/* Spa et fin : images pleine largeur en profondeur */
.spa, .outro { position: relative; display: grid; align-items: center; min-height: 92vh; padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 3rem); color: var(--sand); overflow: hidden; isolation: isolate; }
.spa-bg, .outro-bg { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; transform: translateY(var(--d, 0)); }
.spa-bg img, .outro-bg img { width: 100%; height: 100%; object-fit: cover; }
.spa::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 16, 28, .82) 0%, rgba(8, 16, 28, .4) 55%, rgba(8, 16, 28, .1) 100%); }
.spa-text { max-width: 620px; }
.spa h2 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); margin-bottom: 1.3rem; }
.spa p { color: rgba(244, 239, 230, .86); font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.spa-hours { display: inline-block; padding: .45rem 1rem; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(205, 179, 138, .6); color: var(--champ-2) !important; font-size: .92rem !important; }
.outro { place-items: center; min-height: 86vh; text-align: center; }
.outro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 50% 50%, rgba(8, 16, 28, .35), rgba(8, 16, 28, .85)); }
.outro-text { max-width: 900px; }
.outro-title { margin: 0 0 2rem; font-family: var(--display); font-size: clamp(2.8rem, 7.5vw, 6.4rem); line-height: 1; }

/* La région */
.region { padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 2.5rem); }
.region-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; max-width: 1180px; margin: 0 auto; }
.region h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); margin-bottom: 2rem; }
.region-map { width: 100%; height: auto; border-radius: 24px; }
.map-land { fill: #EAE3D6; }
.map-hills { fill: #DCD4C3; }
.map-lake { fill: #A9C0CB; }
.map-route { fill: none; stroke: var(--navy); stroke-width: 2; stroke-dasharray: 3 8; stroke-linecap: round; animation: walk 2s linear infinite; }
@keyframes walk { to { stroke-dashoffset: -22; } }
.map-points circle { fill: var(--navy); transition: r .3s, fill .3s; }
.map-points text { fill: var(--navy); font-family: var(--sans); font-size: 14px; font-weight: 450; }
.map-points .is-on circle { fill: var(--champ); r: 9; }
.map-hotel circle { fill: var(--champ); }
.map-hotel path { fill: none; stroke: var(--navy-2); stroke-width: 2; stroke-linejoin: round; }
.region-list { display: grid; gap: .2rem; }
.region-list li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .1rem 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.region-time { grid-row: span 2; font-family: var(--display); font-style: italic; font-size: 1.2rem; color: var(--champ); }
.region-list strong { font-family: var(--display); font-size: 1.4rem; font-weight: 400; }
.region-list li > span:last-child { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .region-grid { grid-template-columns: 1fr; } .region-list li { grid-template-columns: 6rem minmax(0, 1fr); } }

/* Galerie : défile à l'horizontale pendant qu'on descend */
.reel { position: relative; height: var(--reel-h, auto); background: var(--navy-2); color: var(--sand); }
.reel-sticky { position: sticky; top: 0; display: grid; align-content: center; gap: 1.6rem; height: 100vh; overflow: hidden; }
.reel-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 clamp(1rem, 4vw, 3rem); }
.reel-head .eyebrow { margin: 0; }
.reel-head .hint { margin: 0; color: rgba(244, 239, 230, .6); }
.reel-track { display: flex; gap: clamp(.8rem, 2vw, 1.6rem); width: max-content; padding: 0 clamp(1rem, 4vw, 3rem); transform: translate3d(var(--rx, 0), 0, 0); will-change: transform; }
.reel figure { position: relative; flex: none; width: clamp(260px, 34vw, 520px); height: min(64vh, 620px); overflow: hidden; border-radius: 28px; }
.reel figure:nth-child(even) { margin-top: 8vh; height: min(56vh, 540px); }
.reel img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease); }
.reel figure:hover img { transform: scale(1); }
.reel figcaption { position: absolute; left: .9rem; bottom: .9rem; padding: .4rem .9rem; border-radius: 999px; background: rgba(251, 249, 245, .92); color: var(--ink); font-size: .82rem; }
.no-js .reel-sticky, .calm .reel-sticky { position: static; height: auto; padding: 4rem 0; }
.no-js .reel-track, .calm .reel-track { overflow-x: auto; width: auto; }
@media (max-width: 760px) {
  .reel { height: auto !important; }
  .reel-sticky { position: static; height: auto; padding: 3.5rem 0; }
  .reel-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; padding-bottom: 1rem; scrollbar-width: none; }
  .reel figure, .reel figure:nth-child(even) { width: 78vw; height: 58vh; margin-top: 0; scroll-snap-align: center; }
}

/* Infos pratiques */
.infos { padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 2.5rem); background: var(--sand); }
.infos-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.4rem); max-width: 1180px; margin: 0 auto; }
.infos-card { padding: clamp(1.3rem, 3vw, 1.8rem); border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: .95rem; color: var(--muted); }
.infos-card h3 { margin: 0 0 .8rem; font-size: 1.35rem; color: var(--ink); }
.infos-contact { background: var(--navy); color: rgba(244, 239, 230, .75); box-shadow: none; }
.infos-contact h3 { color: var(--sand); }
.infos-contact a { color: var(--sand); text-decoration: none; }
.infos-contact .hint { color: rgba(244, 239, 230, .55); }
.big-link { font-family: var(--display); font-size: 1.45rem; }
@media (max-width: 1000px) { .infos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .infos-grid { grid-template-columns: 1fr; } }

/* Pied de page */
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 2.2rem clamp(1rem, 4vw, 2.5rem) 2.6rem; background: var(--navy-2); color: rgba(244, 239, 230, .7); font-size: .88rem; }
.foot .brand { color: var(--sand); }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 0; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--champ-2); }

/* Volet de réservation */
.drawer { width: min(560px, 100vw); max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--paper); color: var(--ink); overflow-y: auto; box-shadow: -30px 0 80px -30px rgba(0, 0, 0, .5); }
.drawer[open] { animation: slide-in .5s var(--ease); }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer::backdrop { background: rgba(8, 16, 28, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.drawer-close { position: absolute; top: 1rem; right: 1rem; z-index: 2; margin: 0; }
.drawer-close button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(251, 249, 245, .92); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.drawer-photo { height: 230px; overflow: hidden; }
.drawer-photo img { width: 100%; height: 100%; object-fit: cover; }
.drawer-body { padding: 1.8rem clamp(1.2rem, 4vw, 2.2rem) 2.4rem; }
.drawer h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.drawer-summary { display: grid; gap: .1rem; margin: 0 0 1rem; }
.drawer-summary div { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.drawer-summary dt { color: var(--muted); }
.drawer-summary dd { margin: 0; text-align: right; font-weight: 450; }
.drawer-perks { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.4rem; }
.drawer-perks li { padding: .25rem .75rem; border-radius: 999px; background: rgba(205, 179, 138, .25); color: #7A5D2E; font-size: .82rem; }
.drawer-perks li::before { content: "✓ "; }
.drawer-form { display: grid; gap: 1rem; }
.drawer-form label { display: grid; gap: .4rem; font-size: .85rem; }
.drawer-form input, .drawer-form select { width: 100%; min-height: 50px; padding: .7rem 1rem; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 1rem; }
.drawer-form input:focus, .drawer-form select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--champ); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 460px) { .row2 { grid-template-columns: 1fr; } }
.done { display: grid; justify-items: center; gap: .3rem; padding: 2rem 1rem; text-align: center; animation: fade-up .6s var(--ease); }
.done strong { font-family: var(--display); font-size: 1.8rem; font-weight: 400; }
.done p { max-width: 44ch; margin: 0; color: var(--muted); }
.done-check { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: .6rem; border-radius: 50%; background: var(--champ); color: var(--navy-2); font-size: 1.5rem; animation: pop .6s var(--ease); }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.drawer-form.is-sent > :not(.done) { display: none; }
.drawer-open { overflow: hidden; }

/* Barre du bas (téléphone) */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 76px; }
  .mobile-bar { position: fixed; z-index: 55; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; padding: 7px; border-radius: 999px; background: rgba(14, 24, 40, .97); box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .5); }
  .mobile-bar a { display: grid; place-items: center; min-height: 48px; border-radius: 999px; color: var(--sand); font-size: .95rem; font-weight: 450; text-decoration: none; }
  .mobile-bar .is-main { background: linear-gradient(135deg, var(--champ-2), var(--champ)); color: var(--navy-2); }
}

/* Apparitions : mots qui montent, blocs qui glissent */
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; }
.js [data-split] .w > span { transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.js [data-split].is-visible .w > span { transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.hero-content [data-reveal]:nth-child(3) { transition-delay: .35s; }
.hero > .search[data-reveal] { transition-delay: .5s; }
.perk-list li:nth-child(2) { transition-delay: .08s; }
.perk-list li:nth-child(3) { transition-delay: .16s; }
.perk-list li:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-split] .w > span { transform: none; }
}

/* Safari : cadres arrondis qui rognent une image en mouvement, isolés pour ne pas scintiller ;
   titres mot à mot : une fois apparus, les mots ne sont plus rognés un à un */
.room-photo, .story-frame, .story-img, .reel figure, .arch, .groups-photo, .work figure, .compare-stage, .daily-photo, .drawer-photo, .story-inline { isolation: isolate; transform: translateZ(0); }
[data-split].is-done .w { overflow: visible; }
