/* =========================================================
   Hôtel Néréides — feuille de style
   Palette : sel, Méditerranée, lagune, sable, or pâle
   ========================================================= */

:root {
  --sel: #F6F8F7;
  --sel-2: #EDF2F1;
  --mer: #0E3550;
  --mer-deep: #0A2940;
  --lagune: #4F8A97;
  --lagune-clair: #9CC3CC;
  --sable: #E6DAC4;
  --sable-clair: #F1EADC;
  --or: #C8A35A;
  --or-texte: #8A6A2A;   /* or lisible sur fond clair */
  --encre: #13293A;
  --encre-douce: #4A5D6B;
  --ligne: rgba(14, 53, 80, .16);

  --display: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --display-sc: "Marcellus SC", "Marcellus", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --header-h: 72px;

  --meander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='20' viewBox='0 0 24 20'%3E%3Cpath d='M0 18.5h20V1.5H5v12h10v-7h-5v3' fill='none' stroke='%23C8A35A' stroke-width='1.3'/%3E%3Cpath d='M20 18.5h4' fill='none' stroke='%23C8A35A' stroke-width='1.3'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sel);
  color: var(--encre);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }

:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--or); color: var(--mer-deep); padding: .6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section); }

.h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.1;
  color: var(--mer);
  letter-spacing: .005em;
  margin-bottom: .6em;
}
.lead { font-size: 1.2rem; color: var(--encre); }
.note { font-size: .9rem; color: var(--encre-douce); margin-top: 2rem; }

.section-head { max-width: 38rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head p { color: var(--encre-douce); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .75rem 1.6rem;
  font-family: var(--display-sc); font-size: 1rem; letter-spacing: .12em;
  text-decoration: none; border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; transition: background-color .25s, color .25s, border-color .25s;
}
.btn-light { background: var(--sel); color: var(--mer); }
.btn-light:hover { background: var(--sable); }
.btn-ghost { color: var(--sel); border-color: rgba(246, 248, 247, .5); }
.btn-ghost:hover { border-color: var(--sel); background: rgba(246, 248, 247, .08); }
.btn-gold { background: var(--or); color: var(--mer-deep); width: 100%; }
.btn-gold:hover { background: #D6B46E; }

.link {
  color: var(--mer); text-decoration: underline; text-decoration-color: var(--or);
  text-underline-offset: .25em; text-decoration-thickness: 1px;
}
.link:hover { text-decoration-thickness: 2px; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--sel);
  transition: background-color .3s, box-shadow .3s, color .3s;
}
.site-header.is-scrolled {
  background: rgba(246, 248, 247, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--mer);
  box-shadow: 0 1px 0 var(--ligne);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { width: 34px; height: 20px; fill: none; stroke: var(--or); stroke-width: 1.6; stroke-linecap: round; }
.brand-name { font-family: var(--display-sc); font-size: 1.35rem; letter-spacing: .18em; }

.nav ul { list-style: none; display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav a {
  font-family: var(--display-sc); font-size: .95rem; letter-spacing: .14em;
  text-decoration: none; padding-block: .4rem;
  background: linear-gradient(var(--or), var(--or)) no-repeat left bottom / 0 1px;
  transition: background-size .3s;
}
.nav a:hover { background-size: 100% 1px; }
.nav .nav-cta {
  padding: .5rem 1.1rem; border: 1px solid currentColor; border-radius: 999px; background: none;
}
.nav .nav-cta:hover { background: var(--or); border-color: var(--or); color: var(--mer-deep); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer;
  position: relative; z-index: 60;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  position: absolute; left: 11px; width: 22px; height: 1.5px; background: currentColor;
  transition: transform .3s, opacity .3s;
}
.nav-toggle-bars { top: 21px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 55;
    background: var(--mer); color: var(--sel);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 1.6rem; text-align: center; }
  .nav a { font-size: 1.4rem; }
  .site-header.menu-open { color: var(--sel); background: transparent; box-shadow: none; }
  body.no-scroll { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh; min-height: 100vh;
  display: flex; align-items: center;
  background:
    radial-gradient(120% 80% at 80% 10%, #16486A 0%, transparent 60%),
    linear-gradient(180deg, var(--mer) 0%, var(--mer-deep) 100%);
  color: var(--sel);
  padding-block: calc(var(--header-h) + 3rem) 8rem;
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }

.hero-waves {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 48%;
  fill: none; stroke-linecap: round;
}
.hero-waves .w { stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.hero-waves .w1 { stroke: var(--or); opacity: .85; }
.hero-waves .w2 { stroke: var(--lagune-clair); opacity: .55; }
.hero-waves .w3 { stroke: var(--lagune-clair); opacity: .38; }
.hero-waves .w4 { stroke: var(--lagune-clair); opacity: .24; }
.hero-waves .w5 { stroke: var(--lagune-clair); opacity: .14; }

/* Le seul moment orchestré de la page : les vagues se dessinent */
.hero-waves .w { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 2.6s cubic-bezier(.55, .1, .25, 1) forwards; }
.hero-waves .w2 { animation-delay: .15s; }
.hero-waves .w3 { animation-delay: .3s; }
.hero-waves .w4 { animation-delay: .45s; }
.hero-waves .w5 { animation-delay: .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-inner { position: relative; z-index: 1; }
.hero-place {
  font-family: var(--display-sc); letter-spacing: .3em; font-size: 1rem;
  color: var(--or); margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(3.2rem, 11vw, 9.5rem);
  line-height: .95; letter-spacing: -.01em;
  max-width: 10ch;
  margin-bottom: 2rem;
}
.hero-lede { max-width: 34rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 300; color: rgba(246, 248, 247, .88); margin-bottom: 2.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.meander {
  position: absolute; left: 0; right: 0; bottom: 0; height: 20px;
  background: var(--meander) repeat-x left center / 24px 20px;
  opacity: .7;
}

/* ---------- L'hôtel ---------- */
.intro-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
}
.intro-text { max-width: 36rem; }
.intro-text p:not(.lead) { color: var(--encre-douce); }

/* Arches : emplacements photo en forme d'arc antique */
.arch { margin: 0; border-radius: 999px 999px 4px 4px; overflow: hidden; position: relative; }
.arch img, .arch .placeholder { width: 100%; height: 100%; object-fit: cover; }
.arch-tall { aspect-ratio: 3 / 4; }
.arch-room { aspect-ratio: 4 / 5; }
.arch::after {
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(246, 248, 247, .45);
  border-radius: inherit; pointer-events: none;
}
.placeholder {
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 2rem;
  background:
    repeating-radial-gradient(circle at 50% 120%, transparent 0 22px, rgba(156, 195, 204, .18) 22px 23px),
    linear-gradient(180deg, var(--lagune) 0%, var(--mer) 100%);
  color: rgba(246, 248, 247, .75);
  font-family: var(--display-sc); letter-spacing: .14em; font-size: .9rem;
}
.placeholder-sand {
  background:
    repeating-radial-gradient(circle at 50% 120%, transparent 0 22px, rgba(200, 163, 90, .22) 22px 23px),
    linear-gradient(180deg, var(--sable-clair) 0%, var(--sable) 100%);
  color: var(--or-texte);
}

.facts { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.facts-list {
  margin: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ligne);
}
.facts-list > div { padding: 1.4rem 1.2rem 0 0; }
.facts-list > div + div { padding-left: 1.2rem; border-left: 1px solid var(--ligne); }
.facts-list dt { font-size: .9rem; color: var(--encre-douce); }
.facts-list dd { margin: .2rem 0 0; font-family: var(--display); font-size: 1.9rem; color: var(--mer); }
.facts-note { font-size: .85rem; color: var(--encre-douce); margin-top: 1.2rem; }

/* ---------- Chambres ---------- */
.rooms { background: var(--sel-2); }
.rooms-layout {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  gap: clamp(2.5rem, 5vw, 5rem); align-items: start;
}
.rooms-layout .arch { position: sticky; top: calc(var(--header-h) + 2rem); }
.room-list { list-style: none; border-top: 1px solid var(--ligne); }
.room {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: start;
  padding-block: 2rem; border-bottom: 1px solid var(--ligne);
}
.room-name { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--mer); margin-bottom: .4rem; }
.room-main > p { color: var(--encre-douce); max-width: 34rem; }
.room-features { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .95rem; }
.room-features li { position: relative; padding-left: 1.1rem; }
.room-features li::before {
  content: ""; position: absolute; left: 0; top: .72em; width: .55rem; height: 1px; background: var(--or);
}
.room-price { text-align: right; font-size: .9rem; color: var(--encre-douce); white-space: nowrap; margin: .5rem 0 0; }
.room-price strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.8rem; color: var(--mer); }

/* ---------- Services ---------- */
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; border-top: 1px solid var(--ligne);
}
.service-grid li { padding: 2rem 2rem 2rem 0; border-bottom: 1px solid var(--ligne); }
.service-grid li:not(:nth-child(3n + 1)) { padding-left: 2rem; border-left: 1px solid var(--ligne); }
.service-grid svg {
  width: 32px; height: 32px; fill: none; stroke: var(--lagune); stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem;
}
.service-grid h3 { font-family: var(--display); font-size: 1.35rem; color: var(--mer); margin-bottom: .3rem; }
.service-grid p { color: var(--encre-douce); font-size: .98rem; margin: 0; }

/* ---------- Alentours ---------- */
.around { background: var(--sable-clair); position: relative; }
.around-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1rem clamp(2.5rem, 6vw, 6rem); }
.around-grid .note { grid-column: 2; margin-top: 1rem; }
.places { list-style: none; }
.place {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.2rem;
  padding-block: 1.5rem; border-bottom: 1px solid rgba(138, 106, 42, .25);
}
.place:first-child { padding-top: 0; }
.place-time { font-family: var(--display); font-size: 1.5rem; color: var(--or-texte); line-height: 1.2; }
.place h3 { font-family: var(--display); font-size: 1.3rem; color: var(--mer); margin-bottom: .25rem; }
.place p { color: var(--encre-douce); margin: 0; font-size: .98rem; }

/* ---------- Réservation ---------- */
.booking {
  background:
    radial-gradient(90% 70% at 0% 100%, rgba(79, 138, 151, .35) 0%, transparent 60%),
    var(--mer);
  color: var(--sel);
  position: relative;
}
.booking::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 20px;
  background: var(--meander) repeat-x left center / 24px 20px; opacity: .55;
}
.booking .h2 { color: var(--sel); }
.booking-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.booking-intro p { color: rgba(246, 248, 247, .82); max-width: 30rem; }
.booking-intro .btn { margin: .4rem 0 1.4rem; }
.booking-mail a { color: var(--sel); text-decoration-color: var(--or); text-underline-offset: .25em; }

.booking-form {
  background: rgba(246, 248, 247, .05);
  border: 1px solid rgba(246, 248, 247, .18);
  border-radius: 6px;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  display: grid; gap: 1.1rem;
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label { font-size: .9rem; color: rgba(246, 248, 247, .85); }
.optional { color: rgba(246, 248, 247, .6); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem;
  font: inherit; font-size: 1rem; color: var(--encre);
  background: var(--sel); border: 1px solid transparent; border-radius: 4px;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--or); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #F2A38F; box-shadow: 0 0 0 1px #F2A38F; }
.form-error { margin: 0; color: #FFC9B8; font-size: .95rem; }
.form-hint { margin: 0; font-size: .85rem; color: rgba(246, 248, 247, .65); text-align: center; }

/* ---------- Accès ---------- */
.access-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: stretch; }
.address { font-style: normal; font-family: var(--display); font-size: 1.4rem; line-height: 1.4; color: var(--mer); margin-bottom: 2rem; }
.access-list { margin: 0 0 1.8rem; }
.access-list > div { padding-block: .9rem; border-top: 1px solid var(--ligne); }
.access-list dt { font-family: var(--display-sc); letter-spacing: .1em; color: var(--lagune); font-size: .95rem; }
.access-list dd { margin: .15rem 0 0; color: var(--encre-douce); }
.map { min-height: 380px; border-radius: 6px; overflow: hidden; background: var(--sel-2); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: saturate(.75); }

/* ---------- FAQ ---------- */
.faq { background: var(--sel-2); }
.faq-wrap { max-width: 860px; }
.faq-list { border-top: 1px solid var(--ligne); }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; position: relative;
  font-family: var(--display); font-size: 1.25rem; color: var(--mer);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%; width: 12px; height: 12px;
  border-right: 1.5px solid var(--or-texte); border-bottom: 1.5px solid var(--or-texte);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--encre-douce); max-width: 44rem; padding-bottom: 1.3rem; margin: 0; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--mer-deep); color: rgba(246, 248, 247, .82); position: relative; padding-bottom: 2rem; }
.wave-divider {
  height: 48px; margin-bottom: 3.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='48' viewBox='0 0 160 48'%3E%3Cpath d='M0 0h160v18c-20 0-20 14-40 14S100 18 80 18 60 32 40 32 20 18 0 18z' fill='%23EDF2F1'/%3E%3C/svg%3E") repeat-x top / 160px 48px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(246, 248, 247, .14); }
.footer-brand { font-family: var(--display-sc); font-size: 1.8rem; letter-spacing: .18em; color: var(--sel); margin-bottom: .3rem; }
.footer-title { font-family: var(--display-sc); letter-spacing: .12em; color: var(--or); margin-bottom: .5rem; }
.site-footer a { color: var(--sel); text-decoration-color: rgba(200, 163, 90, .7); text-underline-offset: .25em; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; font-size: .9rem; }
.footer-bottom p { margin: 0; }
.site-footer > .footer-bottom:first-child { padding-top: 2rem; }

/* ---------- Page mentions légales ---------- */
.legal-hero {
  background: linear-gradient(180deg, var(--mer) 0%, var(--mer-deep) 100%);
  color: var(--sel); padding: calc(var(--header-h) + 4rem) 0 4.5rem; position: relative;
}
.legal-hero h1 { font-family: var(--display); font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; }
.legal-hero .meander { opacity: .55; }
.legal { max-width: 760px; }
.legal h2 { font-family: var(--display); color: var(--mer); font-size: 1.6rem; margin: 2.8rem 0 .8rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--encre-douce); }
.legal ul { padding-left: 1.2rem; margin-bottom: 1em; }
.legal .todo { background: rgba(200, 163, 90, .18); padding: 0 .3em; border-radius: 2px; color: var(--encre); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .intro-grid, .rooms-layout, .around-grid, .booking-grid, .access-grid { grid-template-columns: minmax(0, 1fr); }
  .intro-grid .arch-tall { max-width: 300px; justify-self: center; width: 100%; }
  .rooms-layout .arch { position: relative; top: auto; max-width: 300px; justify-self: center; width: 100%; order: -1; }
  .around-grid .note { grid-column: 1; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .service-grid li { padding: 1.8rem 1.5rem 1.8rem 0; }
  .service-grid li:nth-child(2n) { padding-left: 1.5rem; border-left: 1px solid var(--ligne); }
  .facts-list { grid-template-columns: repeat(2, 1fr); }
  .facts-list > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts-list > div { padding-bottom: 1.2rem; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero { padding-bottom: 6rem; }
  .hero-waves { height: 45%; }
  .hero-actions .btn { width: 100%; }
  .room { grid-template-columns: 1fr; }
  .room-price { text-align: left; margin-top: .2rem; }
  .room-price strong { display: inline; font-size: 1.5rem; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid li, .service-grid li:nth-child(2n) { padding: 1.6rem 0; border-left: 0; }
  .facts-list dd { font-size: 1.5rem; }
  .facts-list > div + div { padding-left: .9rem; }
  .facts-list > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts-list > div:nth-child(even) { padding-left: .9rem; border-left: 1px solid var(--ligne); }
  .place { grid-template-columns: 4.2rem 1fr; gap: .9rem; }
  .place-time { font-size: 1.25rem; }
  .field-row { gap: .7rem; }
  .arch-room { aspect-ratio: 1 / 1; }
  .h2 { overflow-wrap: break-word; hyphens: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .map, .map iframe { min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-waves .w { stroke-dashoffset: 0; animation: none; }
}
