/* ── Variables de la charte graphique ── */
:root {
    --terracotta: #c47a5a;          /* terracotta principal (flèches, accents) */
    --terracotta-clair: #e0a882;    /* terracotta clair */
    --terracotta-fonce: #d99066;    /* terracotta foncé (dégradés) */
    --creme: #f5ede8;               /* fond crème */
    --beige-rose: #e8c4b0;          /* beige rosé */
    --anthracite: #2d2d2d;          /* texte anthracite */
    --bleu-doux: #b8d4e8;           /* bleu doux (avatar) */
    --google-jaune: #fbbc04;        /* jaune Google (étoiles) */
}

/* ── Fonds de section alternés (charte, bien visibles) ── */
#services {
    background-color: var(--creme) !important;       /* crème #f5ede8 */
}
#testimonials {
    background-color: #f3e3d8 !important;             /* terracotta très doux, visible */
}
#pricing {
    background-color: #f0e6df !important;             /* beige clair */
}


/* ── Classes utilitaires (styles récurrents externalisés) ── */
.bg-white-90 { background: rgba(255,255,255,0.9); }
.avatar-225 { width: 2.25rem; height: 2.25rem; }
.cf-google-letter { font-size: 0.5rem; line-height: 1; margin-top: 1px; }

/* ── Accessibilité : skip-link (masqué, visible au focus clavier) ── */
.skip-link {
    position: absolute;
    top: -100px;
    left: 8px;
    z-index: 100;
    background: var(--terracotta);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 8px 8px;
    font-weight: 700;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}
/* ── Accessibilité : focus visible cohérent au clavier uniquement ── */
:focus-visible {
    outline: 2px solid var(--terracotta);
    outline-offset: 2px;
    border-radius: 4px;
}


/* Sécurité : aucune image ne déborde de son conteneur (évite scroll horizontal) */
img {
    max-width: 100%;
}
/* ============================================
   STYLES PERSONNALISÉS - Justine Perochain
   La Trame - La Mézière
   ============================================ */

.material-symbols-outlined {
            font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
            font-display: block;
            /* Évite que le nom de l'icône (ligature) ne déborde si la police tarde */
            overflow: hidden;
            white-space: nowrap;
        }
        body { font-size: 1.25rem !important; }
        @media (min-width: 768px) { body { font-size: 1rem !important; } }
        @media (max-width: 640px) { input, select, textarea { font-size: 16px !important; } }
        .border-content { border-color: var(--terracotta-fonce) !important; }
        .modal-open { overflow: hidden; }
        #method-modal[aria-hidden="true"],
        #service-modal[aria-hidden="true"],
        #full-menu-overlay[aria-hidden="true"] { display: none; }
        @keyframes modalFadeIn {
            from { opacity: 0; transform: translateY(20px) scale(0.95); }
            to   { opacity: 1; transform: translateY(0) scale(1); }
        }
        @keyframes overlayFadeIn {
            from { opacity: 0; }
            to   { opacity: 1; }
        }
        @keyframes menuSlideIn {
            from { transform: translateY(-12px); opacity: 0; }
            to   { transform: translateY(0); opacity: 1; }
        }
        .modal-animate   { animation: modalFadeIn 0.4s cubic-bezier(0.16,1,0.3,1) forwards; }
        .overlay-animate { animation: overlayFadeIn 0.4s cubic-bezier(0.16,1,0.3,1) forwards; }
        .menu-item-animate { animation: menuSlideIn 0.5s cubic-bezier(0.16,1,0.3,1) forwards; opacity: 0; }
        #reviews-track::-webkit-scrollbar { display: none; }
        /* Offset scroll pour navbar fixe */
        /* Taille texte mobile explicite */
        @media (max-width: 767px) {
            p, li, span, a, label, td, th { font-size: 1.15rem; }
            .text-xs { font-size: 0.9rem !important; }
            .text-sm { font-size: 1rem !important; }
            .text-base { font-size: 1.1rem !important; }
            .text-lg { font-size: 1.2rem !important; }
            .text-xl { font-size: 1.3rem !important; }
        }
        section[id] {
            scroll-margin-top: 80px;
        }
        /* Charte graphique Justine Perochain */
        h1, h2 { letter-spacing: 0.01em; }
        .font-script { font-family: "Dancing Script", cursive; }
        /* Tags mots-clés style charte */
        .tag-keyword {
            font-family: "Dancing Script", cursive;
            color: var(--terracotta);
            font-size: 0.95rem;
        }
        /* Accent beige */
        .accent-beige { background-color: var(--beige-rose); }
        /* Accent bleu */
        .accent-blue { background-color: var(--bleu-doux); }
        /* Bandes blanches latérales */
        body > nav, body > main, body > footer,
        body > div.fixed { max-width: 100%; }
        main { background: white; }
        /* line-clamp fallback */
        .line-clamp-6 {
            display: -webkit-box;
            -webkit-line-clamp: 6;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        /* Centrage global avec bandes blanches */
        .site-wrapper {
            max-width: 860px;
            margin: 0 auto;
            background: white;
        }
        /* Dropdown nav */
        #seances-dropdown { transition: opacity 0.15s ease; }
/* ============================================
   CARROUSEL COVERFLOW - Témoignages
   ============================================ */
.coverflow-wrap {
    position: relative;
    width: 100%;
    min-height: 300px;
    display: block;
    margin: 0 auto;
    /* padding vertical : la carte centrale agrandie respire (évite la coupure du haut) */
    padding: 20px 0;
    /* hidden sur les 2 axes : pas de barre de défilement, cartes latérales masquées sur les côtés */
    overflow: hidden;
    overflow: clip;
}
.coverflow-stage {
    position: relative;
    width: 100%;
    height: 100%;
    transform: translateZ(0);
    will-change: transform;
}
.coverflow-card {
    position: absolute;
    top: 0;
    left: 50%;
    width: 400px;
    max-width: 86vw;
    height: auto;
    margin-left: -200px;
    transform-origin: center center;
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(196,122,90,0.15);
    border: 1px solid rgba(224,168,130,0.25);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
.coverflow-card .cf-stars {
    color: var(--google-jaune);
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.coverflow-card .cf-text {
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(45,45,45,0.78);
    flex-grow: 1;
}
.coverflow-card .cf-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.coverflow-card .cf-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.coverflow-card .cf-name {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--anthracite);
}
.coverflow-card .cf-date {
    font-size: 0.7rem;
    color: rgba(45,45,45,0.4);
}
.coverflow-card .cf-google {
    width: 1rem;
    height: 1rem;
    margin-left: auto;
    flex-shrink: 0;
}
/* Flèches */
.coverflow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.85rem;
    border-radius: 9999px;
    background: var(--terracotta);
    box-shadow: 0 4px 16px rgba(196,122,90,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    border: none;
}
@media (hover: hover) {
    .coverflow-arrow:hover {
        background: #fff;
        color: var(--terracotta);
        transform: translateY(-50%) scale(1.1);
    }
}
.coverflow-arrow .material-symbols-outlined { font-size: 1rem; }
.coverflow-arrow-left { left: calc(50% - 320px); }
.coverflow-arrow-right { right: calc(50% - 320px); }
/* Points */
.coverflow-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}
.coverflow-dots button {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: rgba(224,168,130,0.3);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, width 0.3s ease;
    padding: 0;
}
.coverflow-dots button.active {
    background: var(--terracotta);
    width: 1.5rem;
}
@media (max-width: 640px) {
    .coverflow-wrap { min-height: 380px; }
    .coverflow-card { width: 230px; height: auto; min-height: 380px; margin-left: -115px; padding: 1.1rem; }
}

/* Carte centrale (active) mise en valeur : fond terracotta + texte clair */
.coverflow-card.cf-active {
    background: var(--terracotta-clair);
    border-color: var(--terracotta-clair);
    box-shadow: 0 25px 60px rgba(45,45,45,0.3), 0 10px 30px rgba(224,168,130,0.45);
}
.coverflow-card.cf-active .cf-text {
    color: #ffffff;
}
.coverflow-card.cf-active .cf-name {
    color: #ffffff;
}
.coverflow-card.cf-active .cf-date {
    color: rgba(255,255,255,0.7);
}
.coverflow-card.cf-active .cf-head {
    border-top-color: rgba(255,255,255,0.25);
}

/* ============================================
   HERO FONDU - Photo fusionnée avec le texte
   ============================================ */
.hero-fade-card {
    position: relative;
    width: 100%;
    min-height: 520px;
    border-radius: 2rem;
    overflow: hidden;
    background: var(--creme);
    display: flex;
    align-items: center;
}
.hero-fade-photo {
    position: absolute;
    top: 0;
    right: 0;
    width: 62%;
    height: 100%;
    background-size: cover;
    background-position: center 20%;
    /* Fondu vers la gauche dans le crème */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 28%, #000 60%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 28%, #000 60%);
}
/* Voile crème par-dessus pour fondre encore plus côté texte */
.hero-fade-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--creme) 0%, var(--creme) 32%, rgba(245,237,232,0.55) 50%, rgba(245,237,232,0) 72%);
    pointer-events: none;
}
.hero-fade-content {
    position: relative;
    z-index: 2;
    width: 56%;
    padding: 2.5rem 1rem 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    text-align: left;
}

/* ── MOBILE : photo en haut/fond, texte dessous, fondu vertical ── */
@media (max-width: 768px) {
    .hero-fade-card {
        min-height: 0;
        flex-direction: column;
        border-radius: 1.5rem;
    }
    .hero-fade-photo {
        position: relative;
        width: 100%;
        height: 360px;
        background-position: center 12%;
        -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
    }
    .hero-fade-card::after {
        background: linear-gradient(to bottom, rgba(245,237,232,0) 45%, rgba(245,237,232,0.65) 70%, var(--creme) 90%);
    }
    .hero-fade-content {
        width: 100%;
        padding: 0.5rem 1.3rem 2rem;
        text-align: center;
        align-items: center;
        margin-top: -30px;
    }
    .hero-fade-content .flex {
        justify-content: center !important;
    }
}

@media (max-width: 640px) {
    .coverflow-arrow { width: 1.8rem; height: 1.8rem; }
    .coverflow-arrow-left { left: 0; }
    .coverflow-arrow-right { right: 0; }
}

/* ============================================
   HORAIRES - alignement tirets et fermé centrés
   ============================================ */
.horaires-grid {
    list-style: none;
    margin: 0;
    padding: 0;
}
.horaires-grid li {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 1rem;
    padding: 0.2rem 0;
}
.horaires-grid .hj {
    text-align: left;
}
/* Zone horaire : sous-grille avec le tiret comme pivot central
   [heure gauche alignée à droite] [tiret] [heure droite alignée à gauche] */
.horaires-grid .hd {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 0.4rem;
    min-width: 120px;
}
.horaires-grid .hh { text-align: right; }
.horaires-grid .ht { text-align: center; }
.horaires-grid .hf { text-align: left; }
/* "Fermé" : occupe les 3 colonnes, centré sur la position du tiret */
.horaires-grid .hferme {
    grid-column: 1 / 4;
    text-align: center;
}
