/* Villa Sarmaz — feuille de style unique du site statique.
   Reprend le rendu du thème WordPress d'origine (Extendable) : Fraunces pour les titres,
   Cormorant Garamond pour le texte, photos aux formes arrondies (arches, ovales), boutons en pilule. */

@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/fraunces-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/fraunces-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/fraunces-latin-600-normal.woff2") format("woff2"); }

:root {
  /* Palette du thème WordPress d'origine */
  --bg: #dbd3ce;
  --fg: #13100f;
  --primary: #3b2300;
  --gold: #d4a72c;
  --sand: #c6b6ac;

  --font-body: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-heading: "Fraunces", Georgia, serif;

  --gutter: clamp(16px, 5.5vw, 80px);
  --max: 1280px;
  --radius: 1.5rem;        /* cartes et photos */
  --radius-sm: 1rem;
  --section-y: clamp(56px, 8vw, 112px);

  /* Tailles reprises du thème */
  --fs-body: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  --fs-small: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  --fs-h1: clamp(1.85rem, 1.85rem + ((1vw - 0.2rem) * 3.167), 3.75rem);
  --fs-h2: clamp(1.6rem, 1.5rem + ((1vw - 0.2rem) * 2.5), 3rem);
  --fs-h3: clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.45em; color: var(--fg); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--primary); color: var(--bg); padding: 8px 16px; z-index: 100; }
.skip-link:focus { left: 16px; top: 16px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--sand { background: var(--sand); }
.center { text-align: center; }
.lead { font-size: var(--fs-body); max-width: 46em; }
.center .lead { margin-inline: auto; }

/* Boutons en pilule */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35em;
  min-height: 48px; padding: 0.6em 1.5em;
  font-family: var(--font-body); font-size: 1.125rem; font-weight: 500; line-height: 1.2;
  text-decoration: none; border-radius: 2rem; border: 2px solid var(--primary);
  background: var(--primary); color: var(--bg);
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover, .btn:focus-visible { background: var(--fg); border-color: var(--fg); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--fg); color: var(--bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.center .btn-row { justify-content: center; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(219, 211, 206, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 88px; padding-inline: clamp(16px, 2.2vw, 32px); max-width: none; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; font-family: var(--font-body); font-size: 1.3rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--fg); }
.brand img { width: 44px; height: 44px; }
.site-header .btn-row { align-items: center; gap: 12px; }
.site-header .btn { min-height: 44px; padding: 0.5em 1.4em; font-size: 1.05rem; }
.lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; letter-spacing: 0.06em; color: var(--fg); text-decoration: none; }
.lang:hover, .lang:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 560px) {
  .site-header .brand span { display: none; }
  .site-header .wrap { min-height: 72px; }
  .site-header .btn-row { gap: 8px; }
  .site-header .btn { padding: 0.45em 0.9em; font-size: 1rem; }
}

/* Héros */
.hero { padding-top: clamp(40px, 7vw, 112px); padding-bottom: clamp(40px, 5vw, 64px); }
.hero h1 { max-width: 22em; margin-inline: auto; font-size: clamp(1.85rem, 1.5rem + 2.2vw, 3rem); }
.hero .lead { max-width: 40em; }
.hero-figure { margin: clamp(40px, 5vw, 72px) 0 0; }
.hero-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 600px) { .hero-figure img { aspect-ratio: 4 / 3; } }

/* Coup d'œil : carte sable arrondie */
.glance { background: var(--sand); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.stats { font-weight: 500; font-size: 1.125rem; margin-bottom: 2em; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px 48px; }
@media (min-width: 760px) { .features { grid-template-columns: 1fr 1fr; } }
.features li { display: flex; align-items: center; gap: 16px; }
.features h3 { margin: 0; font-size: clamp(1.1rem, 1rem + 0.3vw, 1.25rem); letter-spacing: -0.01em; }
.icon { display: block; flex: none; width: 44px; height: 44px; background-color: currentColor; color: var(--primary);
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }

/* Découvrir : photo ovale + texte */
.discover { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) { .discover { grid-template-columns: 5fr 7fr; } }
.discover .oval { width: min(100%, 460px); margin-inline: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 20rem; }
.discover p { font-size: var(--fs-body); }

/* Galerie : arches et feuilles, comme sur l'ancien site */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .gallery .row1 { aspect-ratio: 2 / 3; }
  .gallery .row2 { aspect-ratio: 3 / 2; }
}
.shape-round { border-radius: var(--radius-sm); }
.shape-arch  { border-radius: 12rem 12rem var(--radius-sm) var(--radius-sm); }
.shape-leaf  { border-radius: 12rem var(--radius-sm) var(--radius-sm) var(--radius-sm); }

/* Réserver */
.book { display: grid; gap: clamp(28px, 4vw, 48px); align-items: center; }
@media (min-width: 900px) { .book { grid-template-columns: minmax(240px, 320px) 1fr auto; } }
.book img { width: min(100%, 320px); aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm) 20rem 20rem var(--radius-sm); }
.book h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2.25rem); }
.book .btn-row { flex-direction: column; align-items: flex-start; }
@media (max-width: 899px) { .book .btn-row { flex-direction: row; } }

/* Espaces : cartes sable avec photo arrondie */
.spaces-head { margin-bottom: clamp(32px, 4vw, 48px); }
.rooms { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; align-items: start; }
@media (min-width: 640px) { .rooms { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .rooms { grid-template-columns: repeat(3, 1fr); } }
.room { background: var(--sand); border-radius: var(--radius); padding: 24px; }
.room img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.5rem; }
.room h3 { font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.65rem); margin-bottom: 0.4em; }
.room p { font-size: var(--fs-small); line-height: 1.7; }

/* Emplacement */
.location-section { border-top: 1px solid var(--fg); }
.location-head { margin-bottom: clamp(32px, 4vw, 56px); }
.location-head .btn-row { margin-top: 24px; }
.location { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .location { grid-template-columns: 1fr 1fr; gap: 48px; } }
.location img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.points li { display: grid; grid-template-columns: auto 1fr; gap: 4px 28px; border: 1px solid var(--fg); border-radius: 4px; padding: clamp(24px, 2.5vw, 32px); }
.points .icon { grid-row: span 2; width: 36px; height: 36px; margin-top: 4px; }
.points h3 { margin: 0; font-size: clamp(1.15rem, 1.05rem + 0.3vw, 1.3rem); letter-spacing: -0.01em; }
.points p { grid-column: 2; font-size: var(--fs-small); line-height: 1.7; }

/* Services : cartes en arche */
.services-head { max-width: 18em; margin-inline: auto; margin-bottom: clamp(40px, 5vw, 64px); font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.5rem); }
.services { list-style: none; margin: 0 0 clamp(40px, 5vw, 64px); padding: 0; display: grid; gap: 32px; }
@media (min-width: 900px) { .services { grid-template-columns: repeat(3, 1fr); } }
.services li { background: var(--sand); border-radius: 20rem 20rem 0 0; padding: clamp(88px, 9vw, 104px) clamp(24px, 3.5vw, 52px) 64px; text-align: center; }
.services .icon { margin: 0 auto 24px; }
.services h3 { font-size: clamp(1.15rem, 1.05rem + 0.3vw, 1.3rem); letter-spacing: -0.01em; }
.services p { font-size: var(--fs-small); line-height: 1.7; margin-bottom: 0.6em; }

/* Pied de page */
.site-footer { padding-block: 64px 80px; text-align: center; }
.site-footer .brand { justify-content: center; text-transform: none; font-weight: 500; font-size: 1.35rem; letter-spacing: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 16px; font-size: var(--fs-small); }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Page 404 */
.eyebrow { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.75em; }
