/* ============ VARIABLES + RESET ============ */
:root {
    --sage: #9caa8e;
    --sage-light: #b5c4a8;
    --beige: #f3efe8;
    --beige-dark: #e8e2d6;
    --or: #947436;
    --or-light: #b8975a;
    --blanc: #ffffff;
    --texte: #2a2a2a;
    --texte-light: #6b6b6b;
    /* hero dark (index) */
    --dark: #1e2820;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--texte);
    background: var(--blanc);
    line-height: 1.6;
    overflow-x: hidden;
    /* Sticky footer : colle le footer en bas si contenu page insuffisant */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ============ HEADER (sticky par défaut — index override avec position fixed) ============ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    padding: 14px 48px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(148,116,54,0.1);
}
.site-header .inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
}
.site-header .logo { height: 40px; }
.site-header .back {
    color: var(--or); font-size: 12px; font-weight: 500;
    letter-spacing: 1.5px; text-transform: uppercase;
}
.site-header .back:hover { color: var(--or-light); }

/* ============ FADE IN ============ */
.fade-in {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: none; }
.fade-in.d1 { transition-delay: 0.1s; }
.fade-in.d2 { transition-delay: 0.2s; }
.fade-in.d3 { transition-delay: 0.3s; }
.fade-in.d4 { transition-delay: 0.4s; }

/* ============ SECTION HEADER ============ */
.section-header { text-align: center; margin-bottom: 64px; }
.section-eyebrow {
    font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
    color: var(--or); font-weight: 600; margin-bottom: 16px;
}
.section-title {
    font-family: 'Dancing Script', cursive; font-weight: 700;
    font-size: clamp(38px, 4vw, 52px); color: var(--texte); line-height: 1;
}
.section-title span { color: var(--or); }
.section-rule { width: 44px; height: 1px; background: var(--or-light); margin: 24px auto 0; }

/* ============ ENCART OFFRE DE LANCEMENT — promo -15% =============
   Reprend le style de l'encart pancarte (admin/print/pancarte/prestas.html) :
   barre dorée à gauche, prix XL doré, phrase en Dancing Script
   (cohérent typo pancarte), code promo dans box pointillée or.
   Responsive : flex horizontal qui s'empile sur mobile.
   Partagé index.php + reservation.php (cf _partials/promo-launch.php). */
.promo-launch {
    padding: 24px 0;
    background: var(--blanc);
}
.promo-launch .inner {
    max-width: 860px; margin: 0 auto;
    background: var(--beige);
    border-left: 4px solid var(--or);
    border-radius: 8px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.promo-launch-prix {
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 700;
    color: var(--or);
    line-height: 1;
    flex-shrink: 0;
}
.promo-launch-text {
    flex: 1;
    min-width: 200px;
    margin: 0;
    font-family: 'Dancing Script', cursive; font-weight: 700;
    font-size: clamp(20px, 2.2vw, 26px);
    color: var(--or);
    line-height: 1.2;
}
.promo-launch-conditions {
    display: inline-block;
    margin-left: 4px;
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 12px;
    color: var(--texte-light);
    letter-spacing: 0.2px;
    vertical-align: middle;
}
.promo-launch-conditions strong {
    color: var(--texte);
    font-weight: 600;
    font-style: normal;
}
.promo-launch-coupon {
    border: 1.5px dashed var(--or);
    border-radius: 6px;
    background: var(--blanc);
    padding: 14px 20px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1.1;
}
.promo-launch-coupon-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--or);
    margin-bottom: 4px;
    font-weight: 600;
}
.promo-launch-coupon-code {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--texte);
    letter-spacing: 1.5px;
}
@media (max-width: 600px) {
    .promo-launch .inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 14px;
    }
}

/* ============ WRAPPER SECTION ============
   .reservation = wrapper utilisé sur les pages booking pour cadrer les prestas.
   Sur index, le wrapper équivalent est .prestas (défini en page). */
.reservation {
    padding: 72px 48px 48px;
    background: var(--blanc);
}
.reservation .inner { max-width: 860px; margin: 0 auto; }

/* ============ MENU CARTE ============ */
.menu-carte-wrap {
    background: var(--blanc);
    padding: 0 16px 40px;
}
.menu-cat + .menu-cat {
    padding-top: 48px; margin-top: 48px;
    border-top: 1px solid var(--beige-dark);
}
.menu-cat-title {
    font-family: 'Dancing Script', cursive; font-weight: 700;
    font-size: 34px; color: var(--or);
    margin-bottom: 32px; padding-top: 0;
}
.menu-ligne {
    padding: 13px 0;
    position: relative;
}
.menu-ligne::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 44px; height: 1px;
    background: rgba(0,0,0,0.1);
}
.menu-ligne:last-child::after,
.menu-ligne:has(+ .menu-cat-recap)::after { display: none; }
.menu-top { display: flex; align-items: baseline; gap: 0; }
.menu-nom { font-size: 16px; font-weight: 500; flex-shrink: 0; }
.menu-dots {
    flex: 1; margin: 0 14px;
    border-bottom: 1px dotted rgba(0,0,0,0.18);
    margin-bottom: 3px;
}
.menu-prix {
    font-size: 15px; font-weight: 600; color: var(--or);
    flex-shrink: 0; white-space: nowrap;
}
.menu-duree {
    font-size: 12px; color: var(--texte-light);
    font-weight: 400; margin-left: 6px;
}
.menu-desc {
    font-size: 14px; font-style: italic; font-weight: 300;
    color: var(--texte-light); line-height: 1.6;
    margin-top: 5px; padding-left: 2px; letter-spacing: 0.2px;
}
.menu-desc--tech {
    font-style: normal; font-weight: 400;
    color: var(--texte); letter-spacing: 0.3px;
}
.cat-note-ref {
    font-size: 11px; color: var(--or-light);
    font-weight: 400; vertical-align: super; margin-left: 7px;
}
/* Catégories standby (ex. Liftant Coréen « Prochainement ») :
   masquées dans le flux booking puisqu'elles ne peuvent pas être bookées. */
.menu-cat--standby { display: none; }
.menu-cat-standby {
    font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--texte-light); font-style: italic; margin-top: 8px;
}

/* ===== Recap technique (encart .menu-cat-recap) ===== */
.menu-cat-recap {
    position: relative;
    margin-top: 20px;
    padding: 14px 20px;
    background: color-mix(in srgb, var(--sage) 10%, transparent);
    border-radius: 14px;
    text-align: center;
}
.menu-cat-recap--inline {
    margin-top: 8px;
    padding: 10px 24px;
    text-align: left;
}
.menu-cat-recap--inline .menu-desc { margin: 0; }
.menu-cat-recap-header { display: none; }
.menu-cat-recap-icon {
    width: 15px; height: 15px;
    color: var(--or);
    display: block;
}
.menu-cat-recap-titre { display: none; }
.menu-cat-recap-line { line-height: 1.7; }
.menu-cat-recap-label {
    display: inline-block;
    margin-right: 14px;
    font-size: 10px; letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--or); font-weight: 600;
    vertical-align: 1px;
}
.menu-cat-recap-text {
    font-size: 13px; font-style: italic; font-weight: 300;
    color: var(--texte-light);
    letter-spacing: 0.2px;
}
.menu-cat-recap-text br { display: none; }
.menu-cat-recap-note {
    margin-top: 12px;
    font-size: 11px; font-style: italic;
    color: var(--texte-light); opacity: 0.75;
    letter-spacing: 0.2px;
}
.menu-cat-intro { margin: -20px 0 24px; }

/* ===== Sous-catégories ===== */
.menu-subcat {
    margin-top: 28px; padding-bottom: 10px;
    display: flex; align-items: baseline; gap: 14px;
}
.menu-subcat:first-child { margin-top: 0; }
.menu-subcat-label {
    font-size: 13px; font-weight: 400;
    color: var(--texte-light); letter-spacing: 1.5px;
    text-transform: uppercase; font-style: italic;
}
.menu-subcat--technique .menu-subcat-label { font-style: normal; }
.menu-subcat-dots {
    flex: 1; border-bottom: 1px solid rgba(148,116,54,0.15);
    margin-bottom: 4px;
}
.menu-subcat-info { font-size: 14px; font-weight: 600; color: var(--or); white-space: nowrap; }
.menu-subcat-info .menu-duree { margin-left: 4px; }
.menu-subcat-intro {
    font-size: 13px; font-style: italic; font-weight: 300;
    color: var(--texte-light); letter-spacing: 0.2px;
    margin: -4px 0 10px;
}
.menu-gestes { list-style: none; margin: 0 0 6px; padding: 0; }
.menu-gestes li {
    font-size: 15px; font-weight: 400; color: var(--texte);
    padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.05);
}
.menu-gestes li:last-child { border-bottom: none; }
.menu-options-bloc { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(0,0,0,0.05); }
.menu-options-titre { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--texte-light); font-weight: 600; margin-bottom: 6px; }
.menu-option-ligne { display: flex; align-items: baseline; gap: 0; padding: 5px 0; border-bottom: 1px solid rgba(0,0,0,0.04); }
.menu-option-ligne:last-child { border-bottom: none; }
.menu-option-nom { font-size: 14px; font-weight: 400; flex-shrink: 0; }
.menu-option-sup { font-size: 13px; font-weight: 500; color: var(--or); flex-shrink: 0; }

/* ============ LIGNE : desc + bouton (mode withBooking) ============ */
.menu-bottom {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 20px; margin-top: 5px;
}
.menu-bottom .menu-desc { flex: 1; margin-top: 0; }
/* Wrapper des boutons d'action : Offrir + Réserver côte à côte avec un peu d'air entre. */
.menu-actions { display: flex; gap: 10px; flex-shrink: 0; align-items: center; }
.menu-book-btn {
    flex-shrink: 0;
    background: var(--or); color: var(--blanc);
    border: none; cursor: pointer;
    padding: 9px 22px; border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(148,116,54,0.2);
}
.menu-book-btn:hover { background: var(--or-light); box-shadow: 0 4px 18px rgba(148,116,54,0.35); }
.menu-book-btn[disabled] {
    opacity: 0.4; cursor: not-allowed;
    box-shadow: none;
}

/* ============ BOUTON SECONDAIRE (« Offrir » outline doré) ============ */
/* Style du bouton « Offrir » côte à côte avec « Réserver » dans render-prestas.
   Le widget SimplyBook complet a été retiré à l'étape 3 du chantier V2 ;
   la nouvelle brique de réservation maison (Lots 4-5) introduira son
   propre layout (section .booking, loader, etc.). */
.booking-secondary {
    background: transparent; border: 1px solid var(--or);
    color: var(--or); cursor: pointer;
    padding: 8px 18px; border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
}
.booking-secondary:hover { background: var(--or); color: var(--blanc); }

/* ============ DESIGN SYSTEM BOUTONS PUBLICS ============
   2 tailles × 3 variantes (+ danger). Conventions :
   - Tous : Montserrat, uppercase, letter-spacing 2px, cursor pointer, transition douce.
   - SM = pattern « OFFRIR / RÉSERVER » des cartes prestations (padding 8/18, font 10px).
     Classes historiques : .menu-book-btn (sm filled), .booking-secondary (sm outline).
   - MD = pattern « Prendre rendez-vous / Découvrir les prestations » du hero,
     à utiliser sur les CTA de validation de formulaires et pages de confirmation
     publiques (padding 13/28, font 11px).

   Variantes MD :
   - .btn-md-filled    : pill or pleine (action primaire)
   - .btn-md-outline   : pill or transparente, border or (action secondaire)
   - .btn-md-underline : transparent + border-bottom (action tertiaire / hero)
   - .btn-md-underline-danger : underline rouge (action destructive : annuler, supprimer)
*/
.btn-md-filled,
.btn-md-outline,
.btn-md-underline,
.btn-md-underline-danger {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn-md-filled {
    background: var(--or);
    color: var(--blanc);
    border: 1px solid var(--or);
    padding: 13px 28px;
    border-radius: 999px;
    box-shadow: 0 2px 12px rgba(148,116,54,0.2);
}
.btn-md-filled:hover { background: var(--or-light); border-color: var(--or-light); box-shadow: 0 4px 18px rgba(148,116,54,0.35); }

.btn-md-outline {
    background: transparent;
    color: var(--or);
    border: 1px solid var(--or);
    padding: 13px 28px;
    border-radius: 999px;
}
.btn-md-outline:hover { background: var(--or); color: var(--blanc); }

.btn-md-underline {
    background: transparent;
    color: var(--or);
    border: none;
    border-bottom: 1px solid rgba(148,116,54,0.4);
    padding: 13px 0;
    border-radius: 0;
}
.btn-md-underline:hover { color: var(--or-light); border-color: var(--or); }

.btn-md-underline-danger {
    background: transparent;
    color: #a0282a;
    border: none;
    border-bottom: 1px solid rgba(160,40,42,0.4);
    padding: 13px 0;
    border-radius: 0;
}
.btn-md-underline-danger:hover { color: #7a1f21; border-color: #a0282a; }

.btn-md-filled:disabled,
.btn-md-outline:disabled,
.btn-md-underline:disabled,
.btn-md-underline-danger:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

/* Alias legacy : .btn-ghost-danger reste fonctionnel (déprécié, à remplacer
   par .btn-md-underline-danger dans le code à terme). */
.btn-ghost-danger { /* same as .btn-md-underline-danger */
    display: inline-block;
    background: transparent;
    color: #a0282a;
    border: none;
    border-bottom: 1px solid rgba(160,40,42,0.4);
    padding: 13px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.btn-ghost-danger:hover { color: #7a1f21; border-color: #a0282a; }
.btn-ghost-danger:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============ FOOTER ============ */
.site-footer {
    background: var(--sage);
    color: var(--blanc);
    padding: 20px 24px;
    text-align: center;
    font-size: 12px; letter-spacing: 1px;
    /* Sticky footer : poussé en bas via le flex body + auto margin top */
    margin-top: auto;
    flex-shrink: 0;
}
.site-footer .script {
    font-family: 'Dancing Script', cursive; font-weight: 700;
    color: var(--beige); font-size: 20px;
}

/* ============ MODAL OPTIONS (Teinture / Lash botox) ============ */
.options-modal {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.options-modal[hidden] { display: none; }
.options-modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(30, 40, 32, 0.55);
    backdrop-filter: blur(4px);
}
.options-modal__dialog {
    position: relative;
    background: var(--blanc);
    border-radius: 20px;
    padding: 32px;
    max-width: 460px; width: 100%;
    max-height: calc(100vh - 32px); overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.options-modal__title {
    font-family: 'Dancing Script', cursive; font-weight: 700;
    font-size: clamp(28px, 4vw, 36px); line-height: 1;
    color: var(--texte); text-align: center;
    margin: 0 0 24px;
}
.options-modal__title span { color: var(--or); }
.options-modal__presta { margin: 0 0 24px; }
.options-modal__presta .menu-ligne { padding: 0; border: none; }
.options-modal__presta .menu-ligne::after { display: none; }
.options-modal__options {
    display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 20px;
}
.options-modal__option {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    background: color-mix(in srgb, var(--sage) 10%, transparent);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.options-modal__option:hover {
    background: color-mix(in srgb, var(--sage) 16%, transparent);
}
.options-modal__option input {
    margin: 0; cursor: pointer; accent-color: var(--or);
    width: 18px; height: 18px;
}
.options-modal__option-nom { flex: 1; font-size: 14px; color: var(--texte); }
.options-modal__option-sup {
    color: var(--or); font-weight: 600; font-size: 14px; white-space: nowrap;
}
.options-modal__total {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 12px 16px;
    border: 1px solid var(--or-light);
    border-radius: 10px;
    margin-bottom: 24px;
}
.options-modal__total-label {
    font-size: 13px; color: var(--texte-light); letter-spacing: 0.2px;
}
.options-modal__total-value {
    font-size: 18px; font-weight: 600; color: var(--or);
}
.options-modal__actions {
    display: flex; gap: 10px; justify-content: flex-end;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .site-header { padding: 12px 20px; }
    .reservation { padding: 48px 20px 72px; }
    .menu-bottom { flex-direction: column; align-items: flex-end; gap: 10px; }
    .menu-bottom .menu-desc { width: 100%; }
}
