/* --- 1. VARIABLES --- */
:root {
    --color-bg: #ffffff;
    --color-text: #000000;
    --color-primary: #c9d9f0;       /* Baby Blue */
    --color-accent: #897bc1;        /* Lavender */
    --color-accent-hover: #7668aa;
    --font-display: 'Unbounded', cursive; 
    --font-body: 'Inter', sans-serif;
}

/* --- 2. BASE --- */
body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    cursor: url('cursor1.png'), auto;
}

/* --- 3. LOADER --- */
.loader {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 9999;
    display: flex;
    pointer-events: none;
}

.loader-blind {
    width: 20%;
    height: 100%;
    background-color: var(--color-primary);
    transform-origin: top center;
    transition: transform 1.5s cubic-bezier(0.75, 0, 0.25, 1);
    transform: scaleY(1);
}

.loader-title {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    font-weight: bold;
    letter-spacing: 2px;
    transition: opacity 0.5s;
}

.loader-counter {
    position: absolute;
    bottom: 20px; right: 40px;
    z-index: 10000;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 5rem;
    transition: opacity 0.5s;
}

.loader.hidden .loader-blind { transform: scaleY(0); }
.loader.hidden .loader-title, 
.loader.hidden .loader-counter { opacity: 0; }

.loader.hidden .loader-blind:nth-child(1) { transition-delay: 0.0s; }
.loader.hidden .loader-blind:nth-child(2) { transition-delay: 0.1s; }
.loader.hidden .loader-blind:nth-child(3) { transition-delay: 0.2s; }
.loader.hidden .loader-blind:nth-child(4) { transition-delay: 0.3s; }
.loader.hidden .loader-blind:nth-child(5) { transition-delay: 0.4s; }

/* --- 4. MAIN --- */
main {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
    padding-top: 100px;
}

main.visible {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* --- 5. HERO --- */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

h1 {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 6rem);
    line-height: 1;
    letter-spacing: -2px;
    text-transform: lowercase;
    margin: 20px 0;
}

.accent-text {
    font-family: var(--font-display);
    color: var(--color-accent); 
    display: block;
}

.subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--color-accent);
}

.cta-button {
    display: inline-block;
    background-color: var(--color-accent);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 30px;
}
.cta-button.secondary {
    background: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    margin-left: 10px;
}

/* --- 6. HEADER --- */
header {
    position: fixed;
    top: 0; width: 100%; height: 100px;
    z-index: 100;
    padding: 0 30px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr auto 1fr; 
    align-items: center;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; 
}

.logo img {
    height: 80px;
    width: auto;
    display: block;
}

.menu-container {
    display: flex;
    justify-content: flex-end;
}

.menu-btn {
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid var(--color-text);
    background: transparent;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
}

@media (max-width: 768px) {
    header { height: 80px; padding: 0 15px; }
    .logo img { height: 40px; }
}

/* --- FOOTER HYBRIDE (Naked City Style) --- */

.visual-footer {
    background-color: #897bc1; /* Fond noir global */
    width: 100%;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.footer-block {
    display: flex;
    align-items: center; /* Centre verticalement Morgan et la Pilule */
    justify-content: center;
    gap: 30px; /* Espace entre Morgan et la Pilule */
    width: 100%;
    max-width: 1400px;
    padding: 0 20px;
}

/* --- 1. CONFIGURATION GAUCHE (MORGAN) --- */
.mask-left {
    /* Taille : On essaie de correspondre à la hauteur visuelle de la pilule */
    height: 120px; 
    width: 40%; /* Prend 40% de la largeur dispo */
    
    /* Couleur par défaut du texte */
    background-color: #897bc1; /* Violet */
    
    /* Le Masque (Forme du texte) */
    -webkit-mask-image: url('mask-left.png');
    mask-image: url('mask-left.png');
    
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: right center; /* Colle le texte vers la droite (vers la pilule) */
    
    transition: 0.3s;
    cursor: crosshair;
}

/* --- 2. CONFIGURATION DROITE (ROLLINAT/PILULE) --- */
.stencil-right {
    position: relative;
    /* La pilule est souvent plus haute que le texte seul */
    height: 160px; 
    width: 50%; /* Plus large pour accueillir la pilule */
    
    /* FOND PAR DÉFAUT (Ce qu'on voit à travers les trous des lettres) */
    background-color: #897bc1; /* Violet (devient photo au survol) */
    background-size: cover;
    background-position: center;
    
    /* Forme arrondie pour que le fond ne dépasse pas de la pilule */
    border-radius: 100px; 
    
    cursor: crosshair;
    transition: background-image 0.3s ease;
}

/* L'image "Pochoir" (La pilule bleue avec trous) */
.stencil-right img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Garde les proportions exactes d'Illustrator */
    display: block;
    position: relative;
    z-index: 2; /* Reste TOUJOURS au dessus du fond */
}

/* LIENS BAS DE PAGE */
.footer-bottom {
    margin-top: 50px;
    font-family: 'Inter', sans-serif;
}
.footer-bottom a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 15px;
}

/* RESPONSIVE (Mobile) */
@media (max-width: 768px) {
    .footer-block {
        flex-direction: column;
        gap: 50px;
    }
    .mask-left, .stencil-right {
        width: 100%;
        height: 100px;
        -webkit-mask-position: center;
    }
}