/* =====================================================================
   Maison Brume : démonstration fictive.
   Langue visuelle : salon doux et aérien. Poudre, prune, rose, sauge ;
   Cormorant Garamond (titres, italique) et Jost (texte), auto-hébergées (OFL).
   Formes arrondies, arches, pastilles, beaucoup d'air.
====================================================================== */
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --poudre: #F6EEEA;
  --blanc: #FFFBF8;
  --prune: #3B2335;
  --prune-2: #6E5566;
  --rose: #E7C4CC;
  --rose-texte: #9B4762;
  --sauge: #C9D3C3;
  --sauge-fonce: #56654F;
  --trait: rgb(59 35 53 / .14);
  --serif: "Cormorant", "Cormorant Garamond", Garamond, Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --marge: clamp(1.25rem, 5vw, 4rem);
  --max: 74rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--poudre); color: var(--prune); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h1 em, h2 em { font-style: italic; color: var(--rose-texte); }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--rose-texte); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.boite { width: min(100% - 2 * var(--marge), var(--max)); margin-inline: auto; }
.petit { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--prune-2); }

.demo { text-align: center; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--prune-2); padding: .45rem 1rem 0; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 20; background: rgb(246 238 234 / .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.entete .boite { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; min-height: 4.5rem; }
.entete nav { display: flex; gap: 1.5rem; font-size: .92rem; }
.entete nav a { text-decoration: none; padding: .5rem 0; }
.entete nav a:hover { color: var(--rose-texte); }
.logo { font-family: var(--serif); font-style: italic; font-size: 1.9rem; text-decoration: none; white-space: nowrap; text-align: center; }
.logo small { display: block; font-family: var(--sans); font-style: normal; font-size: .6rem; letter-spacing: .32em; text-transform: uppercase; color: var(--prune-2); margin-top: -.15rem; }
.entete .rdv { justify-self: end; }
@media (max-width: 820px) {
  .entete .boite { grid-template-columns: 1fr auto; }
  .entete nav { display: none; }
  .logo { text-align: left; }
}

/* ---------- Boutons ---------- */
.pill { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3rem; padding: .75rem 1.5rem; border-radius: 999px; border: 1px solid var(--prune); background: var(--prune); color: var(--blanc); font: 500 .98rem var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background .3s, color .3s, transform .3s; }
.pill:hover { transform: translateY(-2px); }
.pill.leger { background: transparent; color: var(--prune); }
.pill.leger:hover { background: var(--blanc); }
.pill.rose { background: var(--rose); border-color: var(--rose); color: var(--prune); }
.pill svg { width: 1.1em; height: 1.1em; }
@media (max-width: 420px) { .entete .rdv { min-height: 2.75rem; padding: .5rem .95rem; font-size: .88rem; } .logo { font-size: 1.6rem; } .entete .logo small { letter-spacing: .16em; } .entete .boite { gap: .5rem; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem); }
.hero .boite { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero .boite { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 4rem; } }
.hero h1 { font-size: clamp(3.4rem, 10.5vw, 6.6rem); }
.hero h1 em { display: block; }
.hero .intro { margin-top: 1.5rem; max-width: 30rem; font-size: 1.12rem; color: var(--prune-2); }
.hero .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.arche { position: relative; max-width: 30rem; margin-inline: auto; width: 100%; }
.arche img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 50% 50% 1.5rem 1.5rem / 38% 38% 1.5rem 1.5rem; }
.arche::before { content: ""; position: absolute; inset: -1rem 1.5rem auto -1rem; height: 70%; border: 1px solid var(--rose-texte); border-radius: 50% 50% 0 0 / 50% 50% 0 0; border-bottom: 0; opacity: .5; z-index: -1; }
.arche .bulle { position: absolute; right: -.5rem; bottom: 2rem; background: var(--blanc); border-radius: 999px; padding: .7rem 1.1rem; font-size: .85rem; box-shadow: 0 16px 40px -18px rgb(59 35 53 / .45); }
.arche .bulle b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.15rem; }
@media (max-width: 899px) { .arche { max-width: 22rem; order: -1; } .arche .bulle { right: 0; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section.blanc { background: var(--blanc); }
.titre { text-align: center; max-width: 40rem; margin: 0 auto clamp(2.5rem, 6vw, 4rem); }
.titre h2 { font-size: clamp(2.8rem, 7vw, 4.8rem); margin-top: .8rem; }
.titre p:last-child { margin-top: 1rem; color: var(--prune-2); }

/* Trois univers */
.univers { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .univers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }
.univers article { text-align: center; }
.univers img { width: min(100%, 17rem); aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin-inline: auto; }
.univers h3 { font-size: 2.3rem; font-style: italic; margin-top: 1.25rem; }
.univers p { margin-top: .5rem; color: var(--prune-2); max-width: 20rem; margin-inline: auto; }

/* Tarifs à onglets */
.onglets { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.onglet { min-height: 2.9rem; padding: .55rem 1.2rem; border-radius: 999px; border: 1px solid var(--trait); background: var(--blanc); color: var(--prune); font: 500 .95rem var(--sans); cursor: pointer; }
.onglet[aria-selected="true"] { background: var(--prune); border-color: var(--prune); color: var(--blanc); }
.panneau { max-width: 46rem; margin-inline: auto; }
.js .panneau[hidden] { display: none; }
.panneau h3 { font-size: 2.2rem; font-style: italic; text-align: center; margin-bottom: 1rem; }
.no-js .panneau + .panneau { margin-top: 3rem; }
.tarifs { list-style: none; margin: 0; padding: 0; }
.tarifs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem 1.5rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--trait); }
.tarifs .nom { font-size: 1.08rem; }
.tarifs .duree { grid-column: 1; font-size: .88rem; color: var(--prune-2); }
.tarifs .prix { grid-row: 1 / span 2; grid-column: 2; font-family: var(--serif); font-size: 1.7rem; font-weight: 500; font-style: italic; white-space: nowrap; color: var(--rose-texte); }
.note-tarifs { margin-top: 1.5rem; text-align: center; font-size: .88rem; color: var(--prune-2); }

/* Galerie */
.galerie { display: grid; gap: .9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .galerie { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } .galerie figure:nth-child(1) { grid-column: span 2; display: flex; flex-direction: column; } .galerie figure:nth-child(1) img { flex: 1; min-height: 0; height: 100%; } }
.galerie figure { margin: 0; }
.galerie img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 1.25rem; }
.galerie figure:nth-child(1) img { aspect-ratio: auto; }
@media (max-width: 899px) { .galerie figure:nth-child(1) { grid-column: span 2; } .galerie figure:nth-child(1) img { aspect-ratio: 16 / 9; } }
.galerie figcaption { margin-top: .5rem; font-size: .85rem; color: var(--prune-2); }
.galerie-note { margin-top: 1.5rem; text-align: center; font-size: .85rem; color: var(--prune-2); }

/* Rendez-vous */
.rdv-grille { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .rdv-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.carte-rdv { background: var(--blanc); border-radius: 1.5rem; padding: clamp(1.5rem, 4vw, 2.25rem); display: flex; flex-direction: column; gap: .9rem; }
.carte-rdv.forte { background: var(--prune); color: var(--blanc); }
.carte-rdv.forte .petit { color: var(--rose); }
.carte-rdv h3 { font-size: 2rem; font-style: italic; }
.carte-rdv .tel { font-family: var(--serif); font-size: clamp(2rem, 6vw, 2.5rem); text-decoration: none; white-space: nowrap; }
.carte-rdv p { color: inherit; opacity: .85; }
.carte-rdv .pill { align-self: flex-start; margin-top: auto; }
.carte-rdv.forte .pill { background: var(--rose); border-color: var(--rose); color: var(--prune); }
.horaires { list-style: none; margin: 0; padding: 0; }
.horaires li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--trait); font-size: .98rem; }

/* Fenêtre « réservation en ligne » */
dialog.info { width: min(100vw - 2rem, 30rem); border: 0; border-radius: 1.5rem; padding: 2rem 1.75rem 1.75rem; background: var(--blanc); color: var(--prune); }
dialog.info::backdrop { background: rgb(59 35 53 / .45); backdrop-filter: blur(3px); }
dialog.info h2 { font-size: 2.2rem; font-style: italic; }
dialog.info p { margin-top: .9rem; color: var(--prune-2); }
dialog.info .actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }

/* ---------- Pied ---------- */
.pied { padding-block: 3.5rem 7rem; background: var(--prune); color: #E9DCE3; font-size: .95rem; }
@media (min-width: 761px) { .pied { padding-bottom: 2.5rem; } }
.pied .boite { display: grid; gap: 2rem; }
@media (min-width: 860px) { .pied .boite { grid-template-columns: 1.4fr 1fr 1fr; } }
.pied .logo { color: var(--blanc); text-align: left; }
.pied .logo small { color: #CDB9C5; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.pied a { text-underline-offset: 3px; }
.pied .bas { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-top: 1.5rem; border-top: 1px solid rgb(233 220 227 / .2); font-size: .8rem; }

/* Bouton flottant sur téléphone */
.flottant { position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 30; transform: translateX(-50%); display: flex; gap: .4rem; padding: .35rem; border-radius: 999px; background: var(--prune); box-shadow: 0 14px 34px -12px rgb(59 35 53 / .6); }
.flottant a { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.9rem; padding: .5rem 1.15rem; border-radius: 999px; color: var(--blanc); text-decoration: none; font-weight: 500; white-space: nowrap; }
.flottant a + a { background: var(--rose); color: var(--prune); }
.flottant svg { width: 1.1rem; height: 1.1rem; }
.js .flottant { transition: opacity .4s, transform .4s; }
.js .flottant.cache { opacity: 0; transform: translate(-50%, 1.5rem); pointer-events: none; }
@media (min-width: 761px) { .flottant { display: none; } }

/* Mentions */
.legal { max-width: 44rem; padding-block: 2.5rem 6rem; }
.legal h1 { font-size: clamp(3rem, 10vw, 5.5rem); }
.legal h2 { font-size: 2rem; font-style: italic; margin-top: 2.5rem; }
.legal p { margin-top: .8rem; color: var(--prune-2); }
.legal dl { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: .4rem 1rem; margin: 1rem 0 0; }
.legal dt { color: var(--prune-2); font-size: .9rem; }
.legal dd { margin: 0; }
@media (max-width: 560px) { .legal dl { grid-template-columns: minmax(0, 1fr); } .legal dd { margin-bottom: .6rem; } }

/* Apparitions */
.js .doux { opacity: 0; transform: translateY(14px) scale(.99); transition: opacity 1s ease, transform 1s ease; }
.js .doux.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .doux { opacity: 1; transform: none; }
}

/* Boutons e-mail de démonstration et message */
.lien-demo { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.toast-demo { position: fixed; left: 50%; bottom: calc(5.5rem + env(safe-area-inset-bottom)); z-index: 60; width: min(100% - 2rem, 28rem); transform: translate(-50%, 1rem); opacity: 0; pointer-events: none; margin: 0; padding: 1rem 1.3rem; border-radius: 1.25rem; background: var(--prune); color: var(--blanc); font-size: .95rem; line-height: 1.5; box-shadow: 0 16px 40px -14px rgb(59 35 53 / .6); transition: opacity .3s, transform .3s; }
.toast-demo.visible { opacity: 1; transform: translate(-50%, 0); }
dialog .toast-demo { position: static; transform: none; width: auto; margin-top: 1.25rem; display: none; }
dialog .toast-demo.visible { display: block; transform: none; opacity: 1; }
dialog.info p.toast-demo { color: var(--blanc); }
@media (min-width: 761px) { .toast-demo { bottom: 2rem; } }
