/* Mel Beauty, direction « La Room » : fond sombre comme le salon, une seule touche d'or. */

/* =====================================================================
   PANNEAU DE RÉGLAGE DU DESIGN
   Pour changer l'apparence du site, modifier UNIQUEMENT les valeurs ci-dessous.
   Tout le reste du fichier s'en sert automatiquement.
   Après modification : python outils/publier.py (vérifie, sauvegarde, prépare la mise en ligne).
   ===================================================================== */
:root {
  /* Couleurs de fond */
  --fond: #15110f;        /* fond principal (aussi utilisé en transparence : rgba(21, 17, 15, x)) */
  --fond-2: #1d1815;      /* fond des sections alternées */
  --carte: #241e1a;       /* fond des cartes et du formulaire */
  /* Traits et bordures */
  --trait: #3b322c;       /* séparateurs */
  --trait-leger: #332a25; /* pointillés entre les prestations */
  --bordure: #5e5048;     /* contour des boutons secondaires et des champs */
  /* Textes */
  --texte: #f3ece6;       /* texte principal */
  --doux: #c8bcb2;        /* texte secondaire */
  --erreur: #ff9f8c;      /* messages d'erreur du formulaire */
  /* Couleur d'accent (boutons, prix, détails) */
  --or: #d4ad62;
  --or-survol: #e0bd77;   /* bouton or au survol */
  --or-fonce: #b8914a;
  --encre: #15110f;       /* texte posé sur l'or */
  /* Formes et typographie */
  --r: 10px;              /* arrondi des boutons, cartes et photos */
  --titre: "Syne", "Arial Black", sans-serif;
  --corps: "Manrope", system-ui, sans-serif;
  /* Mise en page */
  --max: 1180px;          /* largeur maximale du contenu sur ordinateur */
  --haut: 64px;           /* hauteur de la barre de menu */
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--haut) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titre); font-weight: 800; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 6vw, 3.2rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1rem; }
svg { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.or { color: var(--or); }

:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--or); color: var(--encre); padding: 0.6rem 1rem; border-radius: var(--r); font-weight: 600;
}
.skip:focus { top: 1rem; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.25rem;
  border-radius: var(--r); border: 1px solid transparent;
  font: 600 1rem/1.2 var(--corps); text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-or { background: var(--or); color: var(--encre); }
.btn-or:hover { background: var(--or-survol); }
.btn-ligne { background: transparent; color: var(--texte); border-color: var(--bordure); }
.btn-ligne:hover { border-color: var(--or); }

/* En-tête */
.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(21, 17, 15, 0.94);
  border-bottom: 1px solid var(--trait);
}
.top-in {
  max-width: var(--max); margin: 0 auto; height: var(--haut);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
}
.logo {
  font-family: var(--titre); font-weight: 800; font-size: 1.3rem;
  text-decoration: none; letter-spacing: -0.01em;
}
.logo span { color: var(--or); }
.burger {
  display: grid; place-items: center; width: 48px; height: 48px; margin-right: -12px;
  background: none; border: 0; color: var(--texte); cursor: pointer;
}
.burger svg { width: 28px; height: 28px; }
.menu {
  position: fixed; inset: var(--haut) 0 auto 0;
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 1rem 16px 1.5rem;
  background: var(--fond); border-bottom: 1px solid var(--trait);
  transform: translateY(-120%); visibility: hidden;
  transition: transform 0.25s ease, visibility 0.25s;
}
.menu.ouvert { transform: none; visibility: visible; }
.menu a:not(.btn) {
  text-decoration: none; padding: 0.8rem 0; font-size: 1.15rem; font-weight: 600;
  border-bottom: 1px solid var(--trait);
}
.menu-cta { margin-top: 1rem; }

@media (min-width: 900px) {
  .burger { display: none; }
  .menu {
    position: static; transform: none; visibility: visible;
    flex-direction: row; align-items: center; gap: 1.6rem;
    padding: 0; background: none; border: 0;
  }
  .menu a:not(.btn) { border: 0; padding: 0.25rem 0; font-size: 0.95rem; color: var(--doux); }
  .menu a:not(.btn):hover { color: var(--texte); }
  .menu-cta { margin-top: 0; min-height: 42px; padding: 0.55rem 1.1rem; }
}

/* Accueil */
.hero { display: grid; }
.hero-photo { position: relative; overflow: hidden; background: var(--fond); }
.hero-photo video {
  display: block; width: 100%; height: min(42dvh, 520px); object-fit: cover; object-position: center 50%;
}
/* Fondu vers le fond du site : intègre la vidéo et masque son bord inférieur. */
.hero-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, var(--fond) 0%, rgba(21, 17, 15, 0) 28%);
}
.hero-txt { padding: 1.5rem 16px 2.5rem; }
.hero h1 { font-size: clamp(1.9rem, 8.2vw, 4.2rem); margin-bottom: 0.9rem; }
.hero-sub { color: var(--doux); font-size: 1.1rem; max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 1.25rem; }
.confiance { display: flex; align-items: center; gap: 0.5rem; color: var(--doux); font-size: 0.92rem; margin: 0; }
.confiance svg { color: var(--or); }

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1fr; align-items: center;
    max-width: var(--max); margin: 0 auto; padding: 3rem 16px 4rem; gap: 4rem;
  }
  .hero-txt { order: -1; padding: 0; }
  .hero h1 { font-size: clamp(2.4rem, 3.6vw, 3.2rem); }
  .hero-photo { border-radius: var(--r); }
  .hero-photo video { height: auto; aspect-ratio: 4 / 3; }
}

/* Sections */
.bloc { padding: 4rem 0; }
.bloc-2 { background: var(--fond-2); }
.in { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.chapo { color: var(--doux); font-size: 1.05rem; max-width: 60ch; margin-bottom: 2rem; }
.petit { color: var(--doux); font-size: 0.88rem; margin-top: 1.25rem; max-width: 70ch; }
@media (min-width: 900px) { .bloc { padding: 6rem 0; } }

/* Prestations */
.cats { border-top: 1px solid var(--trait); }
.cat { border-bottom: 1px solid var(--trait); }
.cat summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 1fr auto 24px; align-items: center; gap: 1rem;
  padding: 1.1rem 0; min-height: 56px;
}
.cat summary::-webkit-details-marker { display: none; }
.cat-nom { font-family: var(--titre); font-weight: 600; font-size: 1.2rem; }
.cat-des { color: var(--or); font-size: 0.92rem; white-space: nowrap; }
.cat summary svg { transition: transform 0.2s; color: var(--doux); }
.cat[open] summary svg { transform: rotate(180deg); }
.cat ul { list-style: none; margin: 0; padding: 0 0 1.25rem; }
.cat li {
  display: grid; grid-template-columns: 1fr auto; column-gap: 1rem;
  padding: 0.65rem 0;
}
.cat li + li { border-top: 1px dashed var(--trait-leger); }
.p-nom { font-weight: 600; }
.p-duree { grid-column: 1; color: var(--doux); font-size: 0.88rem; }
.p-prix { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; white-space: nowrap; font-weight: 600; }
@media (min-width: 900px) {
  .cats { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4rem; align-items: start; border-top: 0; }
  .cat { border-top: 1px solid var(--trait); border-bottom: 0; }
  .cat li { grid-template-columns: 1fr auto auto; }
  .p-duree { grid-column: 2; align-self: center; }
  .p-prix { grid-column: 3; grid-row: 1; min-width: 7.5rem; }
}

/* Réalisations */
.filtres {
  display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none;
  margin: 1.5rem -16px 1.5rem; padding: 0 16px 4px;
}
.filtres::-webkit-scrollbar { display: none; }
.filtres button {
  flex: none; min-height: 42px; padding: 0.5rem 1rem;
  border-radius: var(--r); border: 1px solid var(--bordure); background: none;
  color: var(--texte); font: 600 0.95rem var(--corps); cursor: pointer;
}
.filtres button[aria-pressed="true"] { background: var(--or); border-color: var(--or); color: var(--encre); }
.galerie { columns: 2 150px; column-gap: 8px; }
.galerie button {
  display: block; width: 100%; margin: 0 0 8px; padding: 0; border: 0;
  background: var(--carte); border-radius: var(--r); overflow: hidden; cursor: zoom-in;
  break-inside: avoid;
}
.galerie img { width: 100%; transition: transform 0.4s ease; }
.galerie button:hover img { transform: scale(1.03); }
.galerie-plus { display: flex; width: 100%; margin-top: 0.5rem; }
.galerie-plus[hidden] { display: none; }
.insta { margin-top: 1.5rem; }
@media (min-width: 900px) { .galerie { columns: 4; column-gap: 12px; } .galerie button { margin-bottom: 12px; } }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(10, 8, 7, 0.96); color: var(--texte);
}
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.lightbox::backdrop { background: rgba(10, 8, 7, 0.96); }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 0.75rem; padding: 3.5rem 0 1.5rem; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 8rem); object-fit: contain; border-radius: 6px; touch-action: pan-y; }
.lightbox figcaption { color: var(--doux); font-size: 0.92rem; text-align: center; padding: 0 1rem; }
.lb-btn {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(36, 30, 26, 0.85); color: var(--texte); border: 1px solid var(--trait); border-radius: 50%; cursor: pointer;
}
.lb-btn svg { width: 22px; height: 22px; }
.lb-fermer { position: absolute; top: 12px; right: 12px; z-index: 2; }
.lb-prec { margin-left: 8px; }
.lb-suiv { margin-right: 8px; }
@media (max-width: 600px) {
  .lightbox[open] { grid-template-columns: 1fr; }
  .lb-prec, .lb-suiv { position: absolute; bottom: 16px; }
  .lb-prec { left: calc(50% - 60px); }
  .lb-suiv { right: calc(50% - 60px); }
  .lightbox figure { padding-bottom: 5rem; }
}

/* Formations */
.forms { display: grid; gap: 1.25rem; }
.forma { background: var(--carte); border-radius: var(--r); overflow: hidden; display: grid; }
.forma img { width: 100%; height: 260px; object-fit: cover; object-position: center 20%; }
.forma-txt { padding: 1.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; }
.forma-txt h3 { margin-bottom: 0.5rem; font-size: 1.6rem; font-weight: 800; }
.forma-txt p { color: var(--doux); }
.prix-forma { color: var(--or) !important; font-weight: 600; }
.forma-locks { border: 1px solid var(--trait); background: none; }
@media (min-width: 900px) {
  .forms { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .forma-txt { padding: 2.25rem; justify-content: center; }
}

/* Melissa */
.apropos { display: grid; gap: 2rem; }
.portrait { width: 100%; max-width: 460px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); background: var(--carte); }
.apropos-txt p { font-size: 1.08rem; max-width: 52ch; }
.chiffres { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--trait); }
.chiffres div { display: flex; flex-direction: column; }
.chiffres dt { font-family: var(--titre); font-weight: 800; font-size: 2rem; color: var(--or); line-height: 1.1; }
.chiffres dd { margin: 0; color: var(--doux); font-size: 0.92rem; }
@media (min-width: 900px) {
  .apropos { grid-template-columns: 5fr 7fr; gap: 5rem; align-items: center; }
}

/* Avis */
.note-google { display: flex; align-items: center; gap: 0.6rem; color: var(--doux); margin-bottom: 2rem; }
.etoiles { display: inline-flex; color: var(--or); }
.avis {
  display: grid; grid-auto-flow: column; grid-auto-columns: 85%;
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: thin;
}
.avis figure {
  scroll-snap-align: start; margin: 0; padding: 1.5rem;
  background: var(--carte); border-radius: var(--r);
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem;
}
.avis blockquote { margin: 0; font-size: 1.02rem; line-height: 1.6; }
.avis figcaption { font-weight: 600; color: var(--or); }
.avis-tous { margin-top: 1.5rem; }
.avis-tous svg { color: var(--or); }
@media (min-width: 900px) {
  .avis { grid-auto-flow: row; grid-template-columns: 1.3fr 1fr 1fr; overflow: visible; margin: 0; padding: 0; }
  .avis figure:first-child blockquote { font-size: 1.15rem; }
}

/* Rendez-vous */
.rdv { display: grid; gap: 2.5rem; }
.rdv-intro h2 { hyphens: none; }
@media (min-width: 900px) { .rdv-intro h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); } }
.rdv-intro p { color: var(--doux); font-size: 1.05rem; max-width: 40ch; }
.rdv-intro .btn { margin: 0.5rem 0 1.75rem; }
.tel { font-size: 0.95rem !important; }
.tel a { font-family: var(--titre); font-weight: 800; font-size: 1.6rem; color: var(--texte); text-decoration: none; }
.form { background: var(--carte); border-radius: var(--r); padding: 1.5rem; display: grid; gap: 1.1rem; }
.form h3 { margin-bottom: 0.25rem; }
.champ { display: grid; gap: 0.4rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.champ label, .champ legend { font-weight: 600; font-size: 0.95rem; padding: 0; }
.facultatif { font-weight: 400; color: var(--doux); }
input[type="text"], input[type="date"], select, textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.85rem;
  background: var(--fond); color: var(--texte);
  border: 1px solid var(--bordure); border-radius: var(--r);
  font: 1rem var(--corps);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--or); outline: 2px solid var(--or); outline-offset: 1px; }
[aria-invalid="true"] { border-color: var(--erreur) !important; }
.creneaux { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.creneaux label {
  display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer;
  min-height: 44px; padding: 0.4rem 0.9rem; border: 1px solid var(--bordure); border-radius: var(--r); font-weight: 400;
}
.creneaux label:has(input:checked) { border-color: var(--or); background: rgba(212, 173, 98, 0.12); }
.creneaux input { accent-color: var(--or); width: 18px; height: 18px; margin: 0; }
.erreur { color: var(--erreur); font-size: 0.88rem; margin: 0; min-height: 0; }
.erreur:empty { display: none; }
.btn-large { width: 100%; white-space: normal; text-align: center; min-height: 54px; }
.form .petit { margin: 0; }
@media (min-width: 900px) {
  .rdv { grid-template-columns: 5fr 6fr; gap: 5rem; align-items: start; }
  .form { padding: 2.25rem; }
}

/* Infos pratiques */
.infos { display: grid; gap: 2.5rem; margin-top: 1.5rem; }
.infos-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.infos-liste li { display: flex; gap: 1rem; color: var(--doux); }
.infos-liste strong { color: var(--texte); }
.infos-liste svg { color: var(--or); width: 26px; height: 26px; margin-top: 2px; }
.salon-photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; margin-bottom: 1.25rem; }
.salon-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); aspect-ratio: 4 / 3; }
.salon-photos img:first-child { grid-row: span 2; aspect-ratio: auto; }
.infos-salon .btn { white-space: normal; text-align: center; }
@media (min-width: 900px) { .infos { grid-template-columns: 1fr 1.3fr; gap: 5rem; } }

/* Pied de page */
.pied { border-top: 1px solid var(--trait); padding: 3rem 0 6rem; }
.pied-in { display: grid; gap: 2rem; }
.pied p { color: var(--doux); margin: 0.25rem 0 0; }
.pied-liens { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.pied-liens a { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; text-decoration: none; color: var(--doux); }
.pied-liens a:hover { color: var(--texte); }
.pied-liens svg { color: var(--or); }
.pied-bas { font-size: 0.88rem; }
.pied-bas a { color: var(--doux); }
@media (min-width: 900px) {
  .pied { padding-bottom: 3rem; }
  .pied-in { grid-template-columns: 1fr auto; }
  .pied-liens { grid-auto-flow: column; gap: 1.5rem; }
  .pied-bas { grid-column: 1 / -1; }
}

/* Bouton WhatsApp flottant (mobile) */
.wa-flottant {
  position: fixed; right: 16px; bottom: 16px; z-index: 20;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--or); color: var(--encre);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.wa-flottant svg { width: 30px; height: 30px; }
@media (min-width: 900px) { .wa-flottant { display: none; } }

/* Page mentions légales */
.legal { max-width: 760px; margin: 0 auto; padding: 3rem 16px 5rem; }
.legal h1 { font-size: clamp(2rem, 7vw, 3rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.3rem; margin: 2rem 0 0.5rem; }
.legal p { color: var(--doux); }
.legal strong { color: var(--texte); }

/* Apparition douce au défilement */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
  .js .reveal.vu { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
.sprite { display: none; }
