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

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: 40px;
    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;
    }
}

@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-flex;
    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% - 4px);
    background: #000;
    border-radius: 999px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
}
.formules-toggle[data-active="video"] .formules-toggle-pill {
    transform: translateX(100%);
}
.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: #71717a;
    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;
    }
}

/* Transition douce entre les panneaux Photo / Photo + Vidéo, sans déplacement de scroll ni saut de mise en page */
.formules-panel {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}
.formules-panel.is-leaving {
    opacity: 0;
    transform: translateY(8px);
}

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