/* ==========================================================================
   DeliaSpace — feuille de style unique
   Palette : violet Delia + tons chauds (parquet, pierre)
   ========================================================================== */

:root {
  --violet-900: #2c1a44;
  --violet-800: #3f2464;
  --violet-700: #5b2e8f;
  --violet-600: #6f3fa8;
  --violet-100: #ece4f6;
  --violet-050: #f6f2fb;

  --ochre: #c9862b;

  --ink: #221d2a;
  --ink-soft: #4c4457;
  --muted: #746b80;

  --paper: #ffffff;
  --sand: #faf7f4;
  --sand-2: #f2ece6;
  --line: #e4dcd4;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(34, 29, 42, .06), 0 2px 8px rgba(34, 29, 42, .05);
  --shadow-md: 0 4px 14px rgba(34, 29, 42, .08), 0 18px 40px rgba(34, 29, 42, .07);
  --shadow-lg: 0 10px 30px rgba(34, 29, 42, .12), 0 30px 70px rgba(34, 29, 42, .12);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1160px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--violet-900);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); }
h3 { font-size: 1.22rem; font-family: var(--sans); font-weight: 650; letter-spacing: -.005em; }
p  { margin: 0 0 1.1em; }

a { color: var(--violet-700); text-underline-offset: .18em; }
a:hover { color: var(--violet-600); }

:focus-visible {
  outline: 3px solid var(--violet-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: -100px;
  transform: translateX(-50%);
  background: var(--violet-700); color: #fff;
  padding: .7rem 1.2rem; border-radius: 0 0 10px 10px;
  z-index: 200; text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }

.eyebrow {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--violet-700);
  margin: 0 0 .8rem;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  background: var(--violet-700);
  color: #fff;
  border: 1px solid var(--violet-700);
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--violet-600); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .55rem 1.1rem; font-size: .95rem; }
.btn-block { display: flex; width: 100%; }
.btn-ghost {
  background: transparent; color: var(--violet-700);
  border-color: rgba(91, 46, 143, .3); box-shadow: none;
}
.btn-ghost:hover { background: var(--violet-050); color: var(--violet-700); box-shadow: none; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--violet-700); }
.logo-mark { width: 28px; height: 28px; flex: none; }
.logo-text {
  font-family: var(--serif); font-size: 1.32rem; color: var(--violet-900);
  letter-spacing: -.01em;
}
.logo-text strong { font-weight: 600; color: var(--violet-700); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  text-decoration: none; color: var(--ink-soft); font-size: .97rem; font-weight: 500;
}
.nav a:hover { color: var(--violet-700); }
.nav a.btn { color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 90% at 92% 0%, var(--violet-050) 0%, rgba(246, 242, 251, 0) 60%),
    linear-gradient(180deg, var(--sand) 0%, var(--paper) 100%);
  padding: clamp(2.5rem, 1rem + 6vw, 5.5rem) 0 clamp(3rem, 1rem + 6vw, 6rem);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero h1 { margin-bottom: .4em; }
.hero h1 em { font-style: italic; color: var(--violet-700); }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.6rem; }

.hero-points {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  font-size: .95rem; color: var(--ink-soft);
}
.hero-points li { display: flex; align-items: center; gap: .45rem; }
.hero-points li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ochre); flex: none;
}

.hero-gallery {
  position: relative;
  height: clamp(340px, 38vw, 520px);
}
.hero-img {
  position: absolute;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  background: var(--sand-2);
}
.hero-img-1 { width: 62%; height: 78%; top: 0; right: 4%; z-index: 2; }
.hero-img-2 { width: 46%; height: 46%; bottom: 0; left: 0; z-index: 3; }
.hero-img-3 { width: 40%; height: 40%; top: 18%; left: 2%; z-index: 1; opacity: .95; }

/* ---------- Chiffres ---------- */
.stats { background: var(--violet-900); color: #fff; padding: 2.2rem 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  text-align: center;
}
.stat { display: flex; flex-direction: column; gap: .2rem; }
.stat-num {
  font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: #fff;
}
.stat-label { font-size: .9rem; color: rgba(255, 255, 255, .78); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.2rem, 1.5rem + 5vw, 6rem) 0; }
.section-alt { background: var(--sand); }
.section-head { max-width: 62ch; margin-bottom: 2.6rem; }
.section-intro { color: var(--ink-soft); margin: 0; }

.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4.5rem); align-items: center;
}
.split-reverse .split-media { order: 2; }
.split-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  background: var(--sand-2);
}
.split-text p:last-of-type { margin-bottom: 0; }

.checklist { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .6rem; }
.checklist li { position: relative; padding-left: 1.9rem; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .48em;
  width: 11px; height: 6px; border-left: 2px solid var(--violet-700);
  border-bottom: 2px solid var(--violet-700); transform: rotate(-45deg);
}

/* ---------- Les bureaux ---------- */
.rooms {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem;
}
.room {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.room:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.room-media { position: relative; }
.room-media img {
  width: 100%; height: 240px; object-fit: cover; background: var(--sand-2);
}
.room-taken .room-media img { filter: grayscale(.55) brightness(.97); }

.badge {
  position: absolute; top: 1rem; left: 1rem;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .35rem .8rem; border-radius: 999px;
  font-size: .82rem; font-weight: 650; letter-spacing: .01em;
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--shadow-sm);
}
.badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
}
.badge-free  { color: #1e7a44; }
.badge-taken { color: #7b7285; }

.room-body { padding: 1.7rem; display: flex; flex-direction: column; flex: 1; }
.room-body h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin-bottom: .15em; }
.room-meta {
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 1rem;
}
.room-desc { color: var(--ink-soft); font-size: .97rem; }
.room-price {
  margin: auto 0 1.2rem; padding-top: 1.2rem;
  border-top: 1px dashed var(--line);
  display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap;
}
.price-num { font-family: var(--serif); font-size: 2.1rem; color: var(--violet-900); }
.price-unit { font-size: .9rem; color: var(--muted); }
.offers-note {
  margin: 2rem auto 0; text-align: center; color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------- Services ---------- */
.features {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
}
.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.feature svg {
  width: 30px; height: 30px; margin-bottom: .9rem;
  fill: none; stroke: var(--violet-700); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.feature h3 { margin-bottom: .35em; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Galerie ---------- */
.gallery {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.shot {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: var(--sand-2); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.shot img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}
.shot:hover img { transform: scale(1.045); filter: brightness(1.03); }

/* ---------- Accès ---------- */
.address {
  font-style: normal; background: var(--sand); border-left: 3px solid var(--violet-700);
  padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 1.5rem; line-height: 1.7;
}
.access-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.access-list li { color: var(--ink-soft); padding-left: 1.1rem; border-left: 1px solid var(--line); }
.access-list strong { color: var(--ink); }
.map {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  margin-top: 1.5rem;
}
.map iframe { display: block; width: 100%; height: 320px; border: 0; }
.map-link { margin: .7rem 0 0; font-size: .9rem; }

/* ---------- Contact ---------- */
.section-contact { background: var(--violet-050); }
.contact-grid {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 4vw, 4rem); align-items: start;
}
.contact-intro p { color: var(--ink-soft); }
.contact-direct { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact-direct li { display: grid; gap: .1rem; }
.contact-direct span {
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.contact-direct a { font-weight: 600; text-decoration: none; }
.contact-direct a:hover { text-decoration: underline; }

.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-md);
  display: grid; gap: 1.1rem;
}
.field { display: grid; gap: .4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { font-size: .92rem; font-weight: 600; color: var(--ink-soft); }
.field label span { color: var(--violet-700); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .7rem .85rem;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--violet-600);
  box-shadow: 0 0 0 3px var(--violet-100);
}
.field input.invalid, .field textarea.invalid { border-color: #c0392b; }
.field-error { color: #a5281b; font-size: .87rem; margin: 0; }

.field-check { grid-template-columns: auto 1fr; align-items: start; gap: .7rem; }
.field-check input { width: 18px; height: 18px; margin-top: .28rem; accent-color: var(--violet-700); }
.field-check label { font-weight: 400; font-size: .92rem; }

.pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; font-size: .85rem; color: var(--muted); }

.alert {
  border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0 0 .4rem;
  border: 1px solid transparent; font-size: .95rem;
}
.alert-ok { background: #eaf6ed; border-color: #bcdfc6; color: #1e5c31; }
.alert-ko { background: #fdeceb; border-color: #f3c6c2; color: #8f2b21; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--violet-900); color: rgba(255, 255, 255, .8); padding: 3rem 0 2rem; }
.footer-inner { display: grid; gap: 1.6rem; }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text strong { color: #c9b6e6; }
.footer-brand p { margin: .4rem 0 0; font-size: .95rem; max-width: 46ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-nav a { color: rgba(255, 255, 255, .82); text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-legal {
  margin: 0; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: .85rem; color: rgba(255, 255, 255, .6);
}

/* ---------- Visionneuse ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(24, 18, 32, .965);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.lb-figure img {
  max-height: 78vh; max-width: min(92vw, 900px); width: auto;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.lb-figure figcaption { color: rgba(255, 255, 255, .82); font-size: .95rem; text-align: center; }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, .1); color: #fff;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%;
  width: 48px; height: 48px; font-size: 1.7rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* ---------- Page simple (merci / mentions) ---------- */
.page { padding: clamp(3rem, 6vw, 5rem) 0; }
.page-narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.page-narrow h2 { margin-top: 2.2rem; font-size: 1.4rem; font-family: var(--sans); }
.page-narrow ul { color: var(--ink-soft); }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-gallery { height: clamp(280px, 60vw, 420px); order: -1; }
  .lead { max-width: none; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .split-media img { aspect-ratio: 16 / 11; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 1.25rem 1.2rem;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem .2rem; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: .9rem; border-bottom: 0; justify-content: center; }

  .rooms { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 auto; }
  .lb-prev { left: .4rem; }
  .lb-next { right: .4rem; }
  .lb-close { top: .6rem; right: .6rem; }
}

@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav, .hero-gallery, .lightbox, .form, .site-footer { display: none !important; }
  body { font-size: 12pt; }
}
