:root {
    --bg-dark: #121c2a;
    --bg-darker: #0e1622;
    --bg-card: #192638;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --text-box: #CBD5E1;
    --gold: #F59E0B;
    --gold-hover: #D97706;
    --border-color: rgba(245, 158, 11, 0.2);
    --max-width: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Montserrat', sans-serif; }
html, body { background-color: var(--bg-dark); color: var(--text-box); min-height: 100vh; overflow-x: hidden; scroll-behavior: smooth; }

/* HEADER COMMUN */
header { 
    background-color: rgba(18, 28, 42, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); 
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 15px 40px;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.logo-img { height: 48px; width: auto; display: block; }

.nav-menu { display: flex; gap: 25px; align-items: center; }
.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-link:hover { color: var(--text-main); }
.nav-link.active {
    color: #38BDF8;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-link.grimoire { color: var(--gold); }
.nav-link.grimoire:hover { background-color: rgba(245, 158, 11, 0.1); }

/* STRUCTURE ACCUEIL (SPLIT LAYOUT) */
.split-layout { 
    position: relative;
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    min-height: 100vh; 
    width: 100%; 
    padding: 40px 20px;
    background-image: url('images/magicien-mentaliste-liege-mister-leblanc.jpg');
    background-size: cover;
    background-position: 68% center; 
}

.split-layout::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(18, 28, 42, 0.88);
    z-index: 1;
}

.split-left { 
    position: relative;
    z-index: 2;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 480px;
    background-color: transparent;
    padding: 0;
}

.brand-container { margin-bottom: 25px; text-align: center; }
.brand-logo { height: 140px; width: auto; display: block; margin: 0 auto; }

.hero-desc { 
    font-size: 0.9rem; 
    color: #ffffff; 
    line-height: 1.6; 
    max-width: 480px; 
    margin-bottom: 30px; 
}

.portal-container { 
    display: flex; 
    flex-direction: column; 
    gap: 14px; 
    width: 100%;
    max-width: 380px; 
}

.contact-phone { 
    margin-top: 25px; 
    font-size: 0.8rem; 
    color: var(--text-muted); 
    letter-spacing: 0.5px; 
}
.contact-phone a { 
    color: var(--text-main); 
    text-decoration: none; 
    font-weight: 600; 
}
.contact-phone a:hover { 
    color: var(--gold); 
}

.split-right { 
    display: none; 
}

/* CONTENEURS ET ICÔNES COMMUNS */
.main-container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }

.value-card-icon { 
    height: 64px; 
    width: auto; 
    object-fit: contain; 
    display: block; 
    margin-top: 0;
    margin-bottom: 18px;
    margin-left: 0;
    margin-right: auto; 
    filter: invert(1); 
}

.btn-gold, .btn-select { 
    background-color: var(--gold); 
    color: var(--bg-dark); 
    padding: 16px 20px; 
    border-radius: 4px; 
    font-weight: 700; 
    font-size: 0.82rem; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    text-decoration: none; 
    text-align: center;
    transition: all 0.2s ease; 
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2); 
    display: block;
}
.btn-gold:hover, .btn-select:hover { background-color: var(--gold-hover); transform: translateY(-2px); }

footer { text-align: center; padding: 25px 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); color: var(--text-muted); font-size: 0.72rem; letter-spacing: 0.5px; }

@media (max-width: 900px) {
    .header-container { padding: 15px 20px; }
    .main-container { padding: 0 20px; }
}

@media (min-width: 900px) {
    .split-layout { 
        flex-direction: row; 
        height: 100vh; 
        width: 100%;
        padding: 0;
        background-image: none; 
        background-color: var(--bg-dark);
    }
    .split-layout::before { 
        display: none; 
    }

    .split-left { 
        flex: 0.72; 
        height: 100%;
        padding: 40px 5vw;
        padding-left: 6%;
        padding-right: 4%;
        background-color: var(--bg-dark);
        align-items: center;
        text-align: center;
        max-width: none;
    }

    .split-right { 
        display: block;
        flex: 1.28; 
        height: 100%;
        position: relative; 
        background: #0B131D;
        overflow: hidden;
    }

    .split-right img { 
        width: 100%; 
        height: 100%; 
        object-fit: cover; 
        object-position: center; 
        display: block;
        filter: brightness(0.95);
    }

    .split-right::before {
        content: '';
        position: absolute;
        top: 0; left: 0; width: 220px; height: 100%;
        background: linear-gradient(to right, var(--bg-dark) 0%, rgba(18, 28, 42, 0.7) 40%, transparent 100%);
        z-index: 2;
        pointer-events: none;
    }
}

/* AJUSTEMENT MOBILE : +2px sur la description */
@media (max-width: 899px) {
    .hero-desc {
        font-size: calc(0.9rem + 2px);
    }
}
