/* ==========================================================================
   My'essence Nails — nouvelle DA (démo, 2026-11)
   Beige + jaune du logo (#F2DB94), ambiance douce / nuageuse, arrondis légers.
   Chargée APRÈS le <style> de chaque page : elle surcharge l'ancienne DA.

   Polices : Fraunces (titres, réglage « Soft ») + Manrope (texte), Google Fonts.
   Choisies par la cliente le 2026-11-10 parmi plusieurs couples.
   ========================================================================== */


:root {
    --bg: #F3ECE0;
    --bg-2: #EADFCC;
    --card: #FBF7F0;
    --ink: #1B1A17;
    --muted: #625C51;
    --line: #DCCFB9;
    --yellow: #F5E4AE;
    --yellow-soft: #FBF3DE;
    --ochre: #8E5A33;
    --caramel: #B07A4E;
    --caramel-deep: #9A6640;
    --f-display: "Fraunces", Georgia, serif;
    --f-body: "Manrope", "Helvetica Neue", sans-serif;
    --r: 12px;            /* LE rayon unique de la DA : boutons, cartes, images, pastilles */
    --r-btn: var(--r);
    --r-card: var(--r);
    --shadow-soft: 0 18px 50px -24px rgba(142, 90, 51, .28), 0 4px 14px -6px rgba(27, 26, 23, .08);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--f-body) !important;
    background: var(--bg) !important;
    color: var(--ink);
}

/* le grain papier de l'ancienne DA disparaît */
body::after { display: none !important; }

/* ---- nuages : halos jaunes flous, fixés derrière le contenu ---- */
body::before {
    content: '';
    position: fixed;
    inset: -20vh -20vw;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(38vw 30vw at 12% 8%, rgba(245, 228, 174, .30), transparent 70%),
        radial-gradient(34vw 26vw at 92% 30%, rgba(255, 255, 255, .75), transparent 70%),
        radial-gradient(42vw 30vw at 80% 92%, rgba(245, 228, 174, .22), transparent 70%),
        radial-gradient(30vw 24vw at 6% 70%, rgba(255, 255, 255, .6), transparent 70%);
    filter: blur(20px);
}

/* les sections claires deviennent translucides pour laisser passer les nuages */
.bg-cream { background-color: rgba(243, 236, 224, .55) !important; }
.bg-surface { background-color: rgba(234, 223, 204, .55) !important; }

/* ---- typo ---- */
.font-display,
.hero-title,
.hero-bg-word,
h1, h2, h3 {
    font-family: var(--f-display) !important;
    font-variation-settings: "SOFT" 100, "opsz" 96;
    letter-spacing: -0.02em;
}

.font-display, .hero-title, h1, h2 { font-weight: 600 !important; }
h3.font-display, h3 { font-weight: 600 !important; }
.hero-title { line-height: 1.02; font-size: clamp(42px, 6.2vw, 84px); }

/* titres : plus d'italique serif — le mot clé passe en surlignage jaune « nuage » */
h1 em, h2 em, h3 em, .hero-title em {
    font-style: normal !important;
    font-weight: inherit !important;
    color: inherit !important;
    background: linear-gradient(180deg, transparent 52%, var(--yellow) 52%, var(--yellow) 90%, transparent 90%);
    border-radius: calc(var(--r) / 2);
    padding: 0 .12em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.bg-dark h1 em, .bg-dark h2 em, .bg-dark h3 em,
[class*="bg-dark"] h2 em {
    background: none;
    color: var(--yellow) !important;
    padding: 0;
}

/* étiquettes au-dessus des titres : pastille douce */
p.uppercase.tracking-\[0\.3em\],
p.uppercase.tracking-\[0\.25em\] {
    letter-spacing: .14em !important;
}

/* le texte « gold » sur fond clair devient ocre (lisible), reste jaune sur fond sombre */
.bg-cream .text-gold, .bg-surface .text-gold, .bg-blush .text-gold, body > section:not(.bg-dark) .text-gold { color: var(--ochre); }
.bg-dark .text-gold, footer .text-gold { color: var(--yellow) !important; }

.hero-bg-word {
    color: rgba(245, 228, 174, .35) !important;
    font-weight: 700 !important;
}

/* ---- ornement ✦ → petit nuage jaune ---- */
.ornament { font-size: 0 !important; gap: 6px !important; }
.ornament::before, .ornament::after {
    width: 10px !important; height: 10px !important; border-radius: 50%;
    background: var(--yellow) !important;
}
.ornament::before { width: 26px !important; border-radius: 999px; }

/* ---- navigation ---- */
#navbar.scrolled, #navbar.scrolled-always {
    background: rgba(243, 236, 224, .78) !important;
    box-shadow: 0 10px 30px -20px rgba(27, 26, 23, .35) !important;
}
@media (max-width: 1279px) {
    #navbar { background: rgba(243, 236, 224, .82) !important; }
}
.nav-link {
    font-family: var(--f-body);
    font-size: .82rem !important;
    font-weight: 500 !important;
    letter-spacing: .01em !important;
    text-transform: none !important;
    padding: 6px 12px;
    border-radius: var(--r);
    transition: background .25s, color .25s;
}
.nav-link.active { background: rgba(245, 228, 174, .5); color: var(--ink) !important; }
.nav-link:hover { background: rgba(176, 122, 78, .14); color: var(--caramel-deep) !important; }
#mobile-menu .nav-link { padding: 4px 0; background: none; }

.brand-logo { display: block; height: 62px; width: auto; filter: drop-shadow(0 1px 1px rgba(27, 26, 23, .35)) drop-shadow(0 4px 10px rgba(27, 26, 23, .12)); }
@media (max-width: 640px) { .brand-logo { height: 44px; } }

/* ---- boutons : légèrement arrondis, jaune du logo ---- */
.btn-dark, .btn-outline, .btn-ghost-light, .btn-gold, .btn-light, .btn-accent,
button[type="submit"] {
    border-radius: var(--r-btn) !important;
    font-family: var(--f-body);
    font-size: .8rem !important;
    font-weight: 600 !important;
    letter-spacing: .02em !important;
    text-transform: none !important;
    transition: transform .25s, box-shadow .25s, background .25s, color .25s !important;
}
.btn-dark, .btn-gold, .btn-accent, .btn-submit-full {
    background: var(--yellow) !important;
    color: var(--ink) !important;
    box-shadow: 0 10px 24px -12px rgba(142, 90, 51, .55);
}
.btn-dark:hover, .btn-gold:hover, .btn-accent:hover, .btn-submit-full:hover {
    background: var(--caramel) !important;
    color: #FFF8EE !important;
    box-shadow: 0 14px 28px -14px rgba(154, 102, 64, .7);
    transform: translateY(-2px);
}
.btn-outline {
    border: 1.5px solid var(--ink) !important;
    background: rgba(255, 255, 255, .35);
}
.btn-outline:hover { background: var(--caramel) !important; border-color: var(--caramel) !important; color: #FFF8EE !important; transform: translateY(-2px); }
.btn-ghost-light { border: 1.5px solid var(--yellow) !important; color: var(--yellow) !important; }
.btn-ghost-light:hover { background: var(--caramel) !important; border-color: var(--caramel) !important; color: #FFF8EE !important; }
#fab { border-radius: var(--r) !important; }

/* ---- cartes & images : coins doux ---- */
.service-card, .review-card, .module-card, .formation-card, .card, .info-card,
.presta-card, .faq-item, .step-card, .price-card {
    border-radius: var(--r-card) !important;
    border: 1px solid rgba(220, 207, 185, .7) !important;
    background-color: rgba(251, 247, 240, .82) !important;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.service-card:hover, .module-card:hover { transform: translateY(-4px); border-color: rgba(176, 122, 78, .45) !important; }

.gallery-grid { gap: 10px !important; }
.gallery-item { border-radius: var(--r); }
section img.object-cover { border-radius: var(--r); }
.aspect-\[4\/5\] { border-radius: var(--r); }
#lightbox img { border-radius: var(--r); }
#lightbox-close, .lb-arrow { border-radius: var(--r); }

input, select, textarea, iframe { border-radius: var(--r) !important; }

.stars { color: #D4AE4E !important; }

/* ---- prix barrés (modules vidéo) ---- */
.price-old {
    font-family: var(--f-body);
    font-size: .8rem;
    color: rgba(27, 26, 23, .45);
    text-decoration: line-through;
    text-decoration-color: rgba(142, 90, 51, .7);
    margin-right: .35rem;
}
.bg-dark .price-old, .text-cream .price-old { color: rgba(243, 236, 224, .45); }
.price-new {
    display: inline-block;
    background: var(--yellow);
    color: var(--ink) !important;
    border-radius: calc(var(--r) / 2);
    padding: 1px 8px;
    font-weight: 600;
}

/* ---- bande « modules » de l'accueil ---- */
.modules-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 4px 22px;
    scrollbar-width: none;
}
.modules-track::-webkit-scrollbar { display: none; }
.modules-track > a { scroll-snap-align: start; flex: 0 0 220px; }
.module-thumb { aspect-ratio: 4/5; overflow: hidden; border-radius: var(--r); }
.module-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.modules-track > a:hover .module-thumb img { transform: scale(1.05); }

.cloud-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, .6);
    border: 1px solid rgba(220, 207, 185, .8);
    border-radius: var(--r);
    padding: 6px 14px;
    font-size: .75rem; font-weight: 500;
    backdrop-filter: blur(6px);
}
.cloud-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(245, 228, 174, .3); }

/* ---- footer ---- */
footer.bg-dark, footer { border-top-left-radius: calc(var(--r) * 2); border-top-right-radius: calc(var(--r) * 2); }

::-webkit-scrollbar-thumb { background: var(--yellow) !important; }
::-webkit-scrollbar-track { background: var(--bg) !important; }

/* cartes modules de la page Formations (texte sur photo) */
.grille-modules > a { border-radius: var(--r-card); box-shadow: var(--shadow-soft); }
.grille-modules .price-old { color: rgba(27, 26, 23, .5); }
.grille-modules img.object-cover { border-radius: 0; }

/* body::before des pages qui avaient un grain (404) */
body::before { background-size: auto !important; opacity: 1 !important; }

/* titres clairs posés sur une photo : le mot clé passe en jaune, sans surlignage */
.text-cream em, [class*="text-cream"] em, h1[style*="color"] em, h2[style*="color"] em {
    background: none !important;
    color: var(--yellow) !important;
    padding: 0 !important;
}

/* survols : caramel plutôt que noir (DA girly & chic) */
a[class*="hover:text-dark"]:hover, .hover\:text-dark:hover { color: var(--caramel-deep) !important; }
.group:hover .group-hover\:text-gold { color: var(--yellow) !important; }
#lightbox-close:hover, .lb-arrow:hover { border-color: var(--caramel) !important; color: var(--caramel) !important; }

/* ---- rayon unique partout ---- */
/* structure de base des boutons : certaines pages ne définissaient pas .btn-outline */
.btn-dark, .btn-outline, .btn-ghost-light, .btn-accent, .btn-ghost, .btn-submit-full {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: 13px 28px; text-decoration: none; line-height: 1.2;
    border-radius: var(--r) !important;
}
.path-card, .formule, .chip, .badge, .social-btn, .pro-portrait,
.border.border-gold-light, .border-gold\/30,
.grille-modules > a, .reveal.grid.gap-px,
.w-10.h-10.border, .w-9.h-9.border {
    border-radius: var(--r) !important;
    overflow: hidden;
}
.chip, .badge { border-radius: calc(var(--r) / 1.5) !important; }
section img:not(.brand-logo) { border-radius: var(--r); }
.grille-modules img, .path-card img, .formule img { border-radius: 0 !important; }

/* ==========================================================================
   Survol des boutons — version élégante
   Un voile caramel monte doucement depuis le bas, le texte passe en crème.
   Seulement sur les appareils qui ont un vrai survol (pas de survol « collé »
   sur mobile) ; au toucher, un léger enfoncement à la place.
   ========================================================================== */
.btn-dark, .btn-outline, .btn-ghost-light, .btn-accent, .btn-ghost, .btn-gold, .btn-submit-full {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: color .45s cubic-bezier(.22, .8, .24, 1), border-color .45s, box-shadow .45s, transform .2s !important;
}
.btn-dark::before, .btn-outline::before, .btn-ghost-light::before, .btn-accent::before,
.btn-ghost::before, .btn-gold::before, .btn-submit-full::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(180deg, #C08A5C 0%, var(--caramel) 55%, var(--caramel-deep) 100%);
    transform: translateY(101%);
    transition: transform .55s cubic-bezier(.22, .8, .24, 1);
}
@media (hover: hover) {
    .btn-dark:hover, .btn-gold:hover, .btn-accent:hover, .btn-submit-full:hover,
    .btn-outline:hover, .btn-ghost-light:hover, .btn-ghost:hover {
        background: var(--yellow) !important;
        color: #FFF8EE !important;
        transform: none !important;
        box-shadow: 0 16px 32px -18px rgba(154, 102, 64, .75) !important;
    }
    .btn-outline:hover, .btn-ghost-light:hover, .btn-ghost:hover {
        background: transparent !important;
        border-color: var(--caramel) !important;
    }
    .btn-dark:hover::before, .btn-outline:hover::before, .btn-ghost-light:hover::before, .btn-accent:hover::before,
    .btn-ghost:hover::before, .btn-gold:hover::before, .btn-submit-full:hover::before {
        transform: translateY(0);
    }
}
@media (hover: none) {
    .btn-dark:hover, .btn-gold:hover, .btn-accent:hover, .btn-submit-full:hover { background: var(--yellow) !important; color: var(--ink) !important; transform: none !important; }
    .btn-outline:hover { background: rgba(255, 255, 255, .35) !important; color: var(--ink) !important; border-color: var(--ink) !important; transform: none !important; }
    .btn-ghost-light:hover { background: transparent !important; color: var(--yellow) !important; transform: none !important; }
}
.btn-dark:active, .btn-outline:active, .btn-ghost-light:active, .btn-accent:active, .btn-submit-full:active { transform: scale(.97) !important; }

/* ==========================================================================
   Cartes des modules (page Formations) : photo en haut, infos en dessous
   ========================================================================== */
.grille-modules { gap: 1.25rem !important; }
.module-card { display: flex !important; flex-direction: column; text-decoration: none; transition: transform .45s cubic-bezier(.22, .8, .24, 1), box-shadow .45s, border-color .45s !important; }
.module-card__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
.module-card__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transition: transform .8s cubic-bezier(.22, .8, .24, 1); }
.module-card__body { display: flex; flex-direction: column; flex: 1; gap: .75rem; padding: 1rem 1.1rem 1.1rem; }
.module-card__title { font-family: var(--f-display) !important; font-weight: 600 !important; font-size: 1rem; line-height: 1.25; letter-spacing: -.015em; color: var(--ink); }
.module-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.module-card__prices { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .35rem; }
.module-card__prices .price-old, .module-card__prices .price-new, .price-old, .price-new { white-space: nowrap; }
.module-card__prices .price-new { font-family: var(--f-display); font-size: 1rem; }
.module-card__cta {
    flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center;
    border-radius: calc(var(--r) / 1.5); border: 1px solid var(--line); color: var(--ink);
    transition: background .4s, color .4s, border-color .4s;
}
@media (hover: hover) {
    .module-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(154, 102, 64, .55) !important; border-color: rgba(176, 122, 78, .45) !important; }
    .module-card:hover .module-card__img img { transform: scale(1.05); }
    .module-card:hover .module-card__cta { background: var(--caramel); border-color: var(--caramel); color: #FFF8EE; }
}

/* chiffres-clés (9,90 € / Illimité / …) */
.key-figures { border-radius: var(--r) !important; overflow: hidden; }
.key-figure .price-old { display: block; font-size: .85rem; margin: 0 0 .15rem; }

/* ==========================================================================
   Mobile : lisibilité, respirations, zones de toucher
   ========================================================================== */
@media (max-width: 640px) {
    /* titres à taille humaine (la police large prend vite toute la largeur) */
    section h1:not(.hero-title) { font-size: clamp(2.1rem, 9.5vw, 2.6rem) !important; line-height: 1.08 !important; }
    .hero-title { font-size: clamp(2.3rem, 11vw, 2.9rem) !important; }
    section h2 { font-size: clamp(1.75rem, 8vw, 2.15rem) !important; line-height: 1.12 !important; }
    section h3.text-2xl, section h3.text-3xl, section h3.md\:text-3xl { font-size: 1.35rem !important; }
    h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; }
    .key-figures .font-display.text-3xl { font-size: 1.45rem !important; }
    .key-figures > div { padding: 1.1rem .75rem !important; }

    /* sections un peu moins hautes */
    section.py-24, section.py-20 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
    section.lg\:py-32 { padding-top: 4rem !important; padding-bottom: 4rem !important; }

    /* boutons : pleine largeur, faciles à toucher */
    section .btn-dark, section .btn-outline, section .btn-ghost-light, section .btn-accent, section .btn-ghost {
        min-height: 48px; width: 100%; max-width: 360px; font-size: .9rem !important;
    }
    section .flex-wrap > .btn-dark, section .flex-wrap > .btn-outline { flex: 1 1 100%; }

    /* modules, 2 colonnes compactes */
    .grille-modules { gap: .75rem !important; }
    .module-card__body { padding: .7rem .75rem .8rem; gap: .5rem; }
    .module-card__title { font-size: .85rem; }
    .module-card__img { aspect-ratio: 1 / 1; }
    .module-card__prices .price-new { font-size: .9rem; padding: 1px 6px; }
    .module-card__prices .price-old { font-size: .72rem; margin-right: 0; }
    .module-card__cta { width: 28px; height: 28px; }

    /* bande de modules de l'accueil */
    .modules-track { margin: 0 -1.5rem; padding-left: 1.5rem; padding-right: 1.5rem; scroll-padding-left: 1.5rem; gap: 12px; }
    .modules-track > a { flex-basis: 62vw; max-width: 240px; }

    /* bouton flottant : ne masque pas le contenu */
    #fab { right: 16px !important; bottom: 16px !important; padding: 12px 20px !important; }
    body { padding-bottom: env(safe-area-inset-bottom); }

    /* menu mobile : liens confortables */
    #mobile-menu .nav-link { font-size: 1.05rem !important; padding: 10px 0; }

    .gallery-grid { gap: 8px !important; }
    footer { border-top-left-radius: var(--r) !important; border-top-right-radius: var(--r) !important; }
}

/* indice de défilement de la bande des modules */
.swipe-hint { display: none; }
@media (max-width: 768px) { .swipe-hint { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; color: var(--muted); margin-top: .25rem; } }

/* zones de toucher (mobile) */
#ham { min-width: 44px; min-height: 44px; align-items: flex-end; justify-content: center; }
@media (max-width: 768px) {
    a[class*="text-[0.6rem]"], a[class*="text-[0.62rem]"], a[class*="text-[0.58rem]"] { display: inline-block; padding-top: 10px; padding-bottom: 10px; }
    .legal-links a, main a[href$=".html"] { padding-top: 6px; padding-bottom: 6px; }
}

/* boutons : sans ombre ni halo, juste la couleur — plus net, plus chic */
.btn-dark, .btn-outline, .btn-ghost-light, .btn-accent, .btn-ghost, .btn-gold, .btn-submit-full, #fab,
.btn-dark:hover, .btn-outline:hover, .btn-ghost-light:hover, .btn-accent:hover, .btn-ghost:hover, .btn-gold:hover, .btn-submit-full:hover {
    box-shadow: none !important;
}
/* le voile caramel déborde d'1 px : plus de liseré jaune sur les bords pendant l'animation */
.btn-dark::before, .btn-outline::before, .btn-ghost-light::before, .btn-accent::before,
.btn-ghost::before, .btn-gold::before, .btn-submit-full::before { inset: -1px; }

/* chiffres-clés : les 4 cases alignées, contenu centré verticalement */
.key-figures > div { display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* ornement sous les titres : un seul trait jaune arrondi, partout pareil
   (l'étoile ✦ écrite dans certaines pages est masquée) */
.ornament > * { display: none !important; }
.ornament::after { display: none !important; }
.ornament::before {
    width: 44px !important; height: 4px !important;
    border-radius: 999px !important;
    background: var(--yellow) !important;
}

.font-body { font-family: var(--f-body) !important; }
