:root {
    --primary: #000000;
    --secondary: #FFFFFF;
    --accent: #f8f8f8;
    --accent-red: #9c1b1b;
}

/* Touche bordeaux : un mot mis en valeur dans certains titres, comme une signature */
.accent-word {
    color: var(--accent-red);
    font-style: italic;
}

/* Voile noir en fondu sous la nav (page d'accueil) : le menu passe en blanc simple, sans mix-blend-mode */
#nav-shade {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 190px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0) 100%);
    z-index: 49;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
/* Le voile disparaît une fois le hero dépassé (voir script.js) ; la nav retrouve alors son mix-blend-mode */
#nav-shade.is-hidden {
    opacity: 0;
}
nav.nav-shaded {
    mix-blend-mode: normal;
    color: #fff;
}

/* Logo de la page d'accueil en bordeaux : posé au-dessus de la nav, hors de son mix-blend-mode */
#nav-logo-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 51;
    pointer-events: none;
    transition: top 0.3s;
}
#nav-logo-layer a {
    color: var(--accent-red);
    pointer-events: auto;
}

/* Tiret bordeaux devant chaque ligne du contenu des formules (remplace l'icône check) */
.formule-dash {
    display: inline-block;
    flex-shrink: 0;
    width: 12px;
    height: 1.5px;
    background: var(--accent-red);
}

/* Surtitres de section (01 / Portfolio, 02 / ...) en bordeaux, sur fonds clairs uniquement */
.accent-eyebrow {
    color: var(--accent-red);
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--secondary);
    color: var(--primary);
    overflow-x: hidden;
    cursor: none;
    /* Améliore la fluidité du défilement */
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

a, button, input, textarea, select, .gallery-item, .faq-trigger, .testimonial-card, .option-card, .step-card, .team-card, .whatsapp-float, .instagram-float {
    cursor: none;
}

h1, h2, h3, .font-serif {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: -0.02em;
}

.hero-title {
    font-size: clamp(2.2rem, 5.2vw, 4.2rem);
    line-height: 1.15;
}

#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                height 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                background-color 0.4s ease;
    transform: translate(-50%, -50%);
}

#custom-cursor.view-mode {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

#custom-cursor.link-mode {
    width: 16px;
    height: 16px;
    background-color: white;
}

.gallery-item, .team-card {
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
    filter: grayscale(0%);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.placeholder-drawing {
    background: #fcfcfc;
    border: 1px solid #eeeeee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.placeholder-drawing::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#ddd 0.5px, transparent 0.5px);
    background-size: 15px 15px;
    opacity: 0.2;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-content {
    max-height: 1000px;
    transition: max-height 1s ease-in-out;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

nav {
    background: transparent;
    top: 0;
    color: #fff;
    mix-blend-mode: difference;
}

/* Menu mobile : caché hors écran par défaut, glisse depuis la droite à l'ouverture */
#mobile-menu {
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

#mobile-menu.is-open {
    transform: translateX(0);
}

/* Empêche le scroll de la page derrière le menu ouvert */
body.menu-open {
    overflow: hidden;
}

.section-padding {
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: #e5e7eb;
    z-index: 0;
}

/* Style spécifique WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.4s ease;
    color: #000;
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    background: #000;
    color: #fff;
}

/* Bouton Instagram : même style que WhatsApp, positionné juste au-dessus */
.instagram-float {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.4s ease;
    color: #000;
}

.instagram-float:hover {
    transform: translateY(-5px);
    background: #000;
    color: #fff;
}

/* Placeholder de fond gris clair pendant le chargement des images */
img {
    background-color: #f2f2f2;
}

/* Animation d'apparition au scroll : masqué + décalé par défaut, */
/* révélé dès que l'élément entre dans la zone visible (voir script.js) */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respecte les préférences d'accessibilité : pas d'animation si demandé */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        transition: none;
        opacity: 1;
        transform: none;
    }
    #hero-video {
        display: none !important;
    }
    #hero-fallback-img {
        display: block !important;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 80px; /* Évite la superposition du sticky bar sur le footer */
    }
    .section-padding {
        padding: 60px 0;
    }
    #custom-cursor { display: none; }
    body { cursor: auto; }
    .timeline-line { left: 20px; transform: none; }
    .whatsapp-float {
        bottom: 100px; /* Remonté pour s'afficher au-dessus de la barre de CTA mobile */
        right: 20px;
        width: 45px;
        height: 45px;
    }
    .instagram-float {
        bottom: 155px; /* Empilé au-dessus du bouton WhatsApp */
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

input, select, textarea {
    border-radius: 0;
    -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
    outline: none;
}

.details-block summary {
    list-style: none;
}
.details-block summary::-webkit-details-marker {
    display: none;
}
.details-block summary::after {
    content: "+";
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    line-height: 1;
    transition: transform 0.3s ease;
}
.details-block[open] summary::after {
    transform: rotate(45deg);
}

.field-error {
    min-height: 1em;
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #b91c1c;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.field-error:not(:empty) {
    opacity: 1;
}
input.field-invalid,
select.field-invalid,
textarea.field-invalid {
    border-color: #b91c1c !important;
}

.flatpickr-calendar {
    font-family: 'Montserrat', sans-serif;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border: 1px solid #000;
}
.flatpickr-months, .flatpickr-weekdays {
    background: #000;
}
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: #fff !important;
    background: transparent !important;
}
.flatpickr-current-month .flatpickr-monthDropdown-months option {
    color: #000;
    background: #fff;
}
.flatpickr-weekday {
    color: #fff !important;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
span.flatpickr-weekday {
    background: #000;
}
.flatpickr-prev-month svg, .flatpickr-next-month svg {
    fill: #fff !important;
}
.flatpickr-day.selected, .flatpickr-day.selected:hover {
    background: #000;
    border-color: #000;
}
.flatpickr-day:hover {
    background: #f3f4f6;
}
.flatpickr-day.today {
    border-color: #000;
}

/* Sélecteur capsule Photo / Photo + Vidéo */
.formules-toggle {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    background: #f4f4f5;
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
}
.formules-toggle-pill {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: calc(50% - 6px);
    background: #000;
    border-radius: 999px;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
}
.formules-toggle[data-active="video"] .formules-toggle-pill {
    transform: translateX(calc(100% + 4px));
}
.formules-toggle-btn {
    position: relative;
    z-index: 1;
    padding: 12px 22px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    color: #52525b;
    background: transparent;
    border: none;
    border-radius: 999px;
    transition: color 0.3s ease;
    white-space: nowrap;
}
.formules-toggle-btn.is-active {
    color: #fff;
}
.formules-toggle-btn:focus-visible {
    outline: 2px solid #000;
    outline-offset: 3px;
}
@media (max-width: 480px) {
    .formules-toggle-btn {
        padding: 11px 14px;
        font-size: 9px;
    }
}

/* Fondu croisé entre Photo et Photo + Vidéo : les deux panneaux se superposent, sans saut de mise en page */
.formules-stack {
    display: grid;
}
.formules-stack > .formules-panel {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(18px);
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0.55s;
}
.formules-stack > .formules-panel.is-active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0s;
}

@media (prefers-reduced-motion: reduce) {
    .formules-toggle-pill,
    .formules-stack > .formules-panel {
        transition: none !important;
    }
}


/* Tableau des formules (page prix) */
.formules-caption { font-size: 10px; text-transform: uppercase; letter-spacing: .25em; color: #6b7280; margin: 28px 0 10px; }
.formules-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 6px; }
.formules-table th { text-align: left; font-weight: 500; font-size: 10px; text-transform: uppercase; letter-spacing: .2em; color: #6b7280; border-bottom: 1px solid #d1d5db; padding: 10px 8px; }
.formules-table td { padding: 14px 8px; border-bottom: 1px solid #eceae6; color: #1f1f1f; }
.formules-table td:first-child { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 19px; white-space: nowrap; }
.formules-table th:last-child, .formules-table td:last-child { text-align: right; font-weight: 500; white-space: nowrap; }
.formules-note { font-size: 12px; color: #6b7280; line-height: 1.6; margin: 14px 0 0; }
@media (max-width: 560px) { .formules-table th, .formules-table td { padding: 10px 4px; font-size: 12px; } .formules-table td:first-child { font-size: 16px; } }

/* V14 mobile : le menu des pages et le tableau des prix tiennent dans l'écran */
@media (max-width: 520px) {
    body > nav .max-w-5xl { padding-left: 16px; padding-right: 16px; }
    body > nav .max-w-5xl > a { font-size: 14px !important; letter-spacing: .05em !important; }
    body > nav .max-w-5xl > div { gap: 10px !important; letter-spacing: .14em !important; }
}
@media (max-width: 560px) {
    .formules-table th { font-size: 8px; letter-spacing: .02em; padding: 8px 2px; }
    .formules-table td { padding: 10px 2px; font-size: 11px; }
    .formules-table td:first-child { font-size: 14px; }
}
/* ===== V16 (audit du 03/12/2026, points validés) ===== */
/* En-tête opaque une fois l'accueil dépassé : le logo ne passe plus sur le texte */
html.lv-nav-solid nav[data-shaded] {
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    mix-blend-mode: normal !important;
    color: #000;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
/* Titre d'accueil plus long : lignes équilibrées */
.v13-hero .hero-title { text-wrap: balance; }
/* Prix des formules lisibles */
.v16-price {
    font-size: 20px;
    line-height: 1.35;
    font-weight: 500;
    color: #111;
    letter-spacing: 0.01em;
}
/* Formulaire de l'accueil sur téléphone : 16 px (pas de zoom sur iPhone), case plus grande */
@media (max-width: 767px) {
    #contact-form input, #contact-form textarea, #contact-form select { font-size: 16px; letter-spacing: 0.02em; }
    #contact-form label { font-size: 12px; }
    #contact-form input[type="checkbox"] { width: 22px; height: 22px; flex: none; }
    #contact-form label:has(input[type="checkbox"]) { min-height: 44px; font-size: 12px; }
}
/* Bouton WhatsApp reconnaissable */
.whatsapp-float {
    width: auto;
    padding: 0 18px 0 15px;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    background: #25D366;
    color: #fff;
}
.whatsapp-float::after { content: "WhatsApp"; font: 600 13px/1 'Montserrat', sans-serif; letter-spacing: 0.02em; }
.whatsapp-float:hover { background: #1ebe5a; color: #fff; }
@media (max-width: 768px) { .whatsapp-float { width: auto; height: 44px; } }
body:has(#lv-cookie) .whatsapp-float { display: none; }
