/* ============================================================
   Yoga Lumière — studio yoga & Pilates, Orvault (44)
   Feuille de style unique. CSS vanilla, mobile-first.

   Charte : les tons crème + sable rappellent le parquet bois et
   les murs chaulés d'un studio yoga européen. La terre cuite
   (#B07A55) évoque la chaleur du tapis et de la lumière du soir.
   Le vert sage (#7C8B7A) introduit une touche végétale sans verser
   dans le "vert wellness". L'anthracite chaud (#2A2724) reste
   lisible sans agressivité.
   Polices : Fraunces (titres, serif souple) + Inter (texte).
   ============================================================ */

/* 1. Variables CSS (palette + typo + spacing) ---------------- */
:root {
  --bg-cream: #FAF6EF;
  --bg-sand: #F0E7D8;
  --ink: #2A2724;
  --ink-soft: #6B655E;
  --terracotta: #B07A55;
  --terracotta-deep: #94633F; /* dérivé pour contraste AA sur boutons */
  --sage: #7C8B7A;
  --sage-deep: #5E6C5C;
  --line: #D9CFBF;
  --shadow: rgba(42, 39, 36, 0.08);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --radius: 3px;
}

/* 2. Reset minimal ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--terracotta-deep); outline-offset: 3px; border-radius: 2px; }

/* 3. Typographie de base ------------------------------------- */
body {
  font-family: var(--font-text);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg-cream);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h2 em, h1 em { font-style: italic; color: var(--terracotta); }
p { color: var(--ink); }
p + p { margin-top: 1rem; }
a { text-decoration: none; }

.eyebrow {
  font-family: var(--font-text);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-deep);
  display: inline-block;
  margin-bottom: 1rem;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); line-height: 1.6; }

/* 4. Layout global ------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--sand { background: var(--bg-sand); }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section__head p { margin-top: 1rem; color: var(--ink-soft); }
.divider { height: 1px; background: var(--line); border: 0; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--ink); color: var(--bg-cream);
  padding: 0.6rem 1rem; border-radius: var(--radius);
  z-index: 200; transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* Placeholder image (remplacé par les vraies images au prompt 3).
   L'image réelle est posée en inline-style background-image ;
   si le fichier manque, le dégradé "lumière chaude" reste visible. */
.ph {
  position: relative;
  background-color: var(--bg-sand);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius);
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(125% 90% at 28% -10%, rgba(250, 246, 239, 0.55), transparent 58%),
    linear-gradient(150deg, rgba(176, 122, 85, 0.10), rgba(124, 139, 122, 0.10));
  pointer-events: none;
}
.ph--hero { aspect-ratio: 16 / 10; }
.ph--wide { aspect-ratio: 16 / 10; }
.ph--portrait { aspect-ratio: 4 / 5; }
.ph--square { aspect-ratio: 1 / 1; }
.ph--card { aspect-ratio: 3 / 2; }
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* 5. Header + navigation + burger ---------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--gutter);
  background: rgba(250, 246, 239, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -0.01em; }
.brand__city { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav a { font-size: 0.98rem; color: var(--ink); position: relative; padding: 0.25rem 0; }
.nav a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: var(--terracotta);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.nav a:not(.nav__cta):hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--terracotta-deep); }
.nav__cta {
  background: var(--terracotta-deep); color: #fff;
  padding: 0.55rem 1.2rem; border-radius: 100px;
  font-weight: 500; transition: background 0.25s ease;
}
.nav__cta:hover { background: #7d5435; }

.burger { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; }
.burger span { width: 24px; height: 2px; background: var(--ink); transition: transform 0.3s ease, opacity 0.3s ease; }

/* 6. Hero ---------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(30rem, 78vh, 44rem);
  display: flex; align-items: flex-end;
  padding: var(--gutter);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  color: var(--ink);
  background-color: var(--bg-sand);
  background-size: cover; background-position: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(130% 100% at 20% 0%, rgba(250, 246, 239, 0.7), transparent 55%),
    linear-gradient(160deg, rgba(176, 122, 85, 0.12), rgba(124, 139, 122, 0.10));
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70%; z-index: 1;
  background: linear-gradient(to top, rgba(250, 246, 239, 0.92), transparent);
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__inner { position: relative; z-index: 2; max-width: 40rem; }
.hero h1 { margin-bottom: 1rem; }
.hero .lede { color: var(--ink); max-width: 30rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* 7. Sections génériques (bandeaux, listes) ------------------ */
.band { display: grid; gap: 1.5rem; }
.band--3 { grid-template-columns: 1fr; }
.band__item { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.band__item strong { font-family: var(--font-display); font-size: 1.6rem; display: block; color: var(--terracotta-deep); }
.band__item span { color: var(--ink-soft); }

.split { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
.split__media { margin: 0; }
.split__media figcaption { margin-top: 0.6rem; font-size: 0.85rem; color: var(--ink-soft); }

.feature-cta {
  display: grid; gap: 1.5rem; align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--bg-cream); border: 1px solid var(--line); border-radius: var(--radius);
}

/* 8. Composants : boutons, cards, table prix, faq ------------ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem; border-radius: 100px;
  font-weight: 500; font-size: 1rem; line-height: 1;
  background: var(--terracotta-deep); color: #fff;
  border: 1px solid var(--terracotta-deep);
  transition: background 0.25s ease, transform 0.2s ease;
}
.btn:hover { background: #7d5435; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg-cream); }
.btn--block { width: 100%; justify-content: center; }

.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.card {
  background: var(--bg-cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.section--sand .card { background: #fff; }
.card__meta { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 0.6rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }
.card__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tag { font-size: 0.8rem; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 100px; padding: 0.2rem 0.7rem; }

/* vignettes "5 styles" sur l'accueil */
.styles-grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(2, 1fr); }
.style-chip {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-cream); color: var(--ink);
  transition: border-color 0.25s ease, transform 0.2s ease;
}
.section--sand .style-chip { background: #fff; }
.style-chip:hover { border-color: var(--terracotta); transform: translateY(-2px); }
.style-chip b { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; }
.style-chip span { font-size: 0.82rem; color: var(--ink-soft); }

/* table tarifs accessible */
.price-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.price-table caption { text-align: left; color: var(--ink-soft); margin-bottom: 0.75rem; }
.price-table th, .price-table td { text-align: left; padding: 1rem 0.5rem; border-bottom: 1px solid var(--line); }
.price-table th { font-weight: 500; }
.price-table td:last-child { text-align: right; font-family: var(--font-display); font-size: 1.3rem; color: var(--terracotta-deep); white-space: nowrap; }
.price-table tr:first-child td:last-child { color: var(--sage-deep); }

/* avis */
.quotes { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.quote { padding: 1.6rem; border-left: 2px solid var(--terracotta); background: var(--bg-cream); border-radius: var(--radius); }
.section--sand .quote { background: #fff; }
.quote p { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; line-height: 1.45; }
.quote cite { display: block; margin-top: 0.9rem; font-style: normal; font-size: 0.9rem; color: var(--ink-soft); }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 0; font-weight: 500; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--terracotta-deep); transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.2rem; color: var(--ink-soft); max-width: 52rem; }

/* infos / accès / coordonnées */
.info-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.info { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-cream); }
.section--sand .info { background: #fff; }
.info h3 { font-family: var(--font-text); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 0.6rem; }
.info a { color: var(--terracotta-deep); text-decoration: underline; text-underline-offset: 3px; }
.access-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); display: grid; gap: 0.2rem; }
.access-list li:last-child { border-bottom: 0; }
.access-list b { font-weight: 500; }
.access-list span { color: var(--ink-soft); }

/* carte statique (SVG inline) */
.static-map { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); display: block; }

/* formulaire */
.form { display: grid; gap: 1.1rem; max-width: 38rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.9rem; font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  padding: 0.7rem 0.85rem; background: var(--bg-cream);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.section--sand .field input, .section--sand .field select, .section--sand .field textarea { background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--terracotta-deep); outline-offset: 1px; border-color: var(--terracotta-deep); }
.field textarea { resize: vertical; min-height: 7rem; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); }
.form-feedback { padding: 0.9rem 1.1rem; border-radius: var(--radius); background: var(--sage); color: #fff; font-weight: 500; }
.form-feedback[hidden] { display: none; }

/* listes de promesses / programme */
.promises { display: grid; gap: 1rem; counter-reset: p; }
.promises li { position: relative; padding-left: 2.4rem; padding-block: 0.5rem; }
.promises li::before {
  counter-increment: p; content: counter(p);
  position: absolute; left: 0; top: 0.4rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sage); color: #fff; font-size: 0.85rem; font-weight: 600;
}
.facts li { padding: 0.55rem 0; border-bottom: 1px dashed var(--line); display: flex; gap: 0.75rem; }
.facts li::before { content: "—"; color: var(--terracotta); }

/* lien texte inline animé */
.link {
  color: var(--terracotta-deep); font-weight: 500;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 0.3s ease;
  padding-bottom: 1px;
}
.link:hover { background-size: 100% 1px; }

/* 9. Footer -------------------------------------------------- */
.site-footer { background: var(--ink); color: #E9E2D6; padding-block: clamp(2.5rem, 5vw, 4rem); margin-top: 0; }
.footer__cols { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); display: grid; gap: 2rem; grid-template-columns: 1fr; }
.footer__cols p, .footer__cols li { color: #C9C0B2; font-size: 0.95rem; line-height: 1.7; }
.footer__brand { font-family: var(--font-display); font-size: 1.4rem; color: #fff !important; margin-bottom: 0.5rem; }
.footer__title { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); margin-bottom: 0.6rem; }
.footer__cols a { color: #E9E2D6; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(233,226,214,0.35); }
.footer__cols a:hover { text-decoration-color: var(--terracotta); }
.footer__cols ul { display: grid; gap: 0.45rem; }
.footer__credit { max-width: var(--maxw); margin: 2.5rem auto 0; padding: 1.5rem var(--gutter) 0; border-top: 1px solid rgba(217,207,191,0.18); font-size: 0.88rem; color: #B7AE9F; }
.footer__credit a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* 10. Accessibilité / reduced motion ------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* animation lente d'entrée (1 seule, discrète) */
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero__inner { animation: fade-up 0.9s ease both; }

/* 11. Media queries (mobile-first → 768 → 900 → 1024) -------- */
@media (max-width: 899px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 22rem);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 0.4rem; padding: 6rem var(--gutter) 2rem;
    background: var(--bg-cream); border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform 0.3s ease;
    box-shadow: -20px 0 60px var(--shadow);
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { font-size: 1.15rem; padding: 0.6rem 0; }
  .nav__cta { margin-top: 0.75rem; }
  body.menu-open { overflow: hidden; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (min-width: 600px) {
  .styles-grid { grid-template-columns: repeat(3, 1fr); }
  .quotes { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .band--3 { grid-template-columns: repeat(3, 1fr); }
  .band__item { border-top: 0; padding: 0; }
  .cards--2 { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
  .feature-cta { grid-template-columns: 1.4fr 1fr; }
  .footer__cols { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
}

@media (min-width: 1024px) {
  .styles-grid { grid-template-columns: repeat(5, 1fr); }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
}

/* 12. Images réelles (Unsplash) + vignettes + SVG décoratifs (prompt 3) */
.ph > img { transition: opacity 0.35s ease; }
.style-chip:hover .ph > img, .card:hover .ph > img { opacity: 0.9; }

.card { overflow: hidden; }
.card__media { margin: -1.6rem -1.6rem 1.2rem; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.style-chip__label { display: flex; flex-direction: column; padding: 0.85rem 1rem 1.05rem; }

.ico { display: block; flex: none; }
.icon-row { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.5rem; }

.ambiance-box {
  aspect-ratio: 1 / 1; display: grid; place-items: center;
  background: var(--bg-sand); border: 1px solid var(--line); border-radius: var(--radius);
}
.ambiance-box svg { width: 58%; height: auto; }

.mat-illus { width: 132px; height: auto; margin-bottom: 1rem; }

.wave-divider { line-height: 0; }
.wave-divider svg { display: block; width: 100%; height: 36px; }
