:root {
    --accent: #b08d57;
    --bg: #ffffff;
    --text: #1a1a1a;
}

body {
    font-family: 'Lexend', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    overflow: hidden;
}

/* LOADER */
#loader {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.sketch-svg {
    width: 200px;
    height: 200px;
    stroke: var(--text);
    stroke-width: 1;
    fill: none;
}

.sketch-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 4.5s ease forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.loader-text {
    margin-top: 20px;
    font-size: 10px;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 2.5s forwards .5s;
}

@keyframes fadeIn {
    to {
        opacity: 0.4;
    }
}

/* SNAP CONTAINER */
.snap-container {
    height: 100vh;
    overflow-y: auto; /* Changé de scroll à auto pour un meilleur comportement */
    scroll-snap-type: y proximity; /* 'proximity' est plus souple que 'mandatory' pour les contenus longs */
    scroll-behavior: smooth;
    visibility: hidden;
}

section {
    min-height: 100vh; /* Permet l'extension si le contenu déborde */
    height: auto;      /* Écrase le 100vh fixe */
    scroll-snap-align: start;
    padding: 120px 24px 60px 24px; /* Plus d'espace en haut/bas pour mobile */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
}

/* MENU PLEIN ÉCRAN */
#full-menu {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 110;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#full-menu.active {
    display: flex;
    opacity: 1;
}

#full-menu a {
    font-size: 2.5rem;
    font-weight: 100;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin: 1.5rem 0;
    transition: color 0.3s;
}

#full-menu a:hover {
    color: var(--accent);
}

/* PROTECTION & GALERIE */
.gallery-img-container {
    overflow: hidden;
    position: relative;
    user-select: none;
    -webkit-user-drag: none;
}

.gallery-img-container img {
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-img-container:hover img {
    transform: scale(1.05);
}

.gallery-img-container::after {
    content: "© Studio Caroline - Tous droits réservés";
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 8px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-img-container:hover::after {
    opacity: 0.6;
}

/* LIGHTBOX */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 200;
    display: none;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#lightbox.active {
    display: flex;
    opacity: 1;
}

#lightbox img {
    max-height: 80vh;
    max-width: 90vw;
    object-fit: contain;
    transform: scale(0.8) translateY(20px);
    filter: blur(10px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#lightbox.active img {
    transform: scale(1) translateY(0);
    filter: blur(0);
}

/* Animation Fade-In Élégante */
.reveal {
    opacity: 0;
    transform: translateY(30px); /* Mouvement réduit pour plus de précision */
    transition: 
        opacity 1.2s cubic-bezier(0.39, 0.575, 0.565, 1), 
        transform 1.2s cubic-bezier(0.39, 0.575, 0.565, 1);
    pointer-events: none;
    will-change: transform, opacity;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.active .reveal {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
    section {
        padding: 100px 10%;
    }
}

/* Ajustement spécifique pour la section contact/footer */
#contact {
    justify-content: space-between; /* Pousse le footer vers le bas */
}

@media (min-width: 768px) {
    section {
        padding: 100px 10%;
    }
}
