*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #050505;
    color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 120px;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 0%, #1a1500 0%, #050505 60%);
    background-attachment: scroll;
    perspective: 2000px;
}

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb {
    background: #aa8c2c;
    border-radius: 6px;
    border: 3px solid #050505;
}
::-webkit-scrollbar-thumb:hover { background: #d4af37; }

/* ========================================= */
/* BARRE DE NAVIGATION (DESKTOP)             */
/* ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: rgba(5, 5, 5, 0.98);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    z-index: 2000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.nav-brand {
    display: flex;
    align-items: center;
    margin-right: 10px;
    z-index: 2001;
}

.nav-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    margin-right: 15px;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
    transition: transform 0.3s ease;
}

.navbar:hover .nav-logo-img { transform: scale(1.05); }

/* Éléments masqués sur Desktop */
.nav-toggle { display: none; }
.nav-burger { 
    display: none; 
    flex-direction: column; 
    justify-content: space-between; 
    width: 30px; 
    height: 21px; 
    cursor: pointer; 
    z-index: 2002; 
}
.nav-burger span { 
    display: block; 
    height: 3px; 
    width: 100%; 
    background-color: #d4af37; 
    border-radius: 3px; 
    transition: all 0.3s ease; 
}

.nav-links {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center; 
    gap: 2vw;
    margin: 0 10px;
}

.nav-links a {
    text-decoration: none;
    color: #a0a0a0;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.7rem, 1vw + 0.3rem, 0.85rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

.nav-links a:hover, .nav-links a.active {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* LE BOUTON CV (DESKTOP) */
.btn-cv-desktop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 37px;
    padding: 0 25px;
    min-width: 125px;
    gap: 8px;
    margin: 0 0 0 auto; 
    background: linear-gradient(135deg, #d4af37 0%, #aa8c2c 100%);
    color: #000000 !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #f9e5a0;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-cv-desktop:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #fff7cc 0%, #d4af37 100%);
}

.btn-cv-desktop::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.6s;
}
.btn-cv-desktop:hover::before { left: 100%; }

/* Bouton mobile caché par défaut */
.btn-cv-mobile { display: none; }

/* ========================================= */
/* STRUCTURE PRINCIPALE                      */
/* ========================================= */
.main-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

.page-header {
    text-align: center;
    margin-bottom: 70px;
    margin-top: 10px;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    font-style: italic;
    background: linear-gradient(to right, #ffffff 20%, #d4af37 50%, #ffffff 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    animation: fadeDown 1s ease-out;
    margin-bottom: 15px;
}

.subtitle-instruction {
    display: inline-block;
    color: #d4af37;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    padding-bottom: 10px;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.3s forwards;
}

.subtitle-instruction::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: #d4af37;
    opacity: 0.5;
}

/* ========================================= */
/* LES CARTES 3D PARALLAX                    */
/* ========================================= */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    width: 100%;
    max-width: 1000px;
}

.interest-wrapper {
    perspective: 1500px; 
    position: relative;
}

.interest-card {
    background: linear-gradient(145deg, #151515 0%, #050505 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.4);
    border-left: 1px solid rgba(212, 175, 55, 0.2);
    border-right: 1px solid rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.9);
    border-radius: 16px;
    padding: 60px 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
    
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
    box-shadow: 10px 20px 40px rgba(0, 0, 0, 0.8), inset 1px 1px 2px rgba(255, 255, 255, 0.05);
}

.interest-wrapper:nth-child(2) .interest-card { animation-delay: 0.2s; }

.card-icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    border: 2px solid rgba(212, 175, 55, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: #d4af37;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9), inset 0 0 15px rgba(0, 0, 0, 0.8);
    transition: all 0.4s ease-out;
    transform: translateZ(60px);
}

.card-icon-wrapper svg {
    transition: transform 0.4s ease-out;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.4));
}

.card-content {
    transform: translateZ(30px);
    transition: transform 0.4s ease-out;
    transform-style: preserve-3d;
}

.card-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #d4af37;
    margin-bottom: 10px;
}

.activity-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #f0f0f0;
    margin-bottom: 35px;
    font-weight: 400;
    font-style: italic;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
}

.btn-see-more {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 1px solid #d4af37;
    color: #d4af37;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transform: translateZ(45px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* ========================================= */
/* LES MODALES                               */
/* ========================================= */
.modal-toggle { display: none; }

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: -1; opacity: 0; visibility: hidden;
    transition: opacity 0.4s ease;
    display: flex; justify-content: center; align-items: center;
}

.modal-toggle:checked ~ .modal-overlay {
    opacity: 1; visibility: visible; z-index: 10000;
}

.modal-card {
    background: #0f0f0f; width: 90%; max-width: 550px;
    padding: 50px; border: 1px solid #d4af37; border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    position: relative;
    transform: translateY(50px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-toggle:checked ~ .modal-overlay .modal-card { transform: translateY(0) scale(1); }

.modal-close-area { position: absolute; top: 0; left: 0; width: 100%; height: 100%; cursor: default; }

.close-icon {
    position: absolute; top: 15px; right: 25px; font-size: 2.5rem;
    color: #a0a0a0; cursor: pointer; transition: 0.3s; line-height: 1;
}

.close-icon:hover { color: #d4af37; transform: rotate(90deg); }

.modal-title {
    font-family: 'Playfair Display', serif; font-size: 2.5rem;
    color: #d4af37; text-align: center; margin-bottom: 20px;
}

.separator-line { width: 60px; height: 2px; background: #d4af37; margin: 0 auto 30px auto; }

.modal-details { text-align: left; }

.detail-row {
    display: flex; justify-content: space-between; margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 15px;
}

.detail-label { color: #f0d78c; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.detail-value { color: #f0f0f0; font-weight: 600; text-align: right; font-size: 1.05rem; }

.modal-description { margin-top: 30px; color: #a0a0a0; font-size: 1.05rem; line-height: 1.8; text-align: center; }

/* ========================================= */
/* ANIMATIONS & MAGIE JS                     */
/* ========================================= */
@keyframes fadeDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

#gold-particles { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }
.cursor-glow {
    position: fixed; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0) 70%);
    border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%);
    z-index: 0; mix-blend-mode: screen; transition: opacity 0.3s ease;
}
.ripple { position: absolute; border-radius: 50%; transform: scale(0); animation: ripple-effect 0.6s linear; background-color: rgba(255, 255, 255, 0.4); pointer-events: none; }
@keyframes ripple-effect { to { transform: scale(4); opacity: 0; } }

/* ========================================= */
/* RESPONSIVE MOBILE (CORRIGÉ)               */
/* ========================================= */
@media (max-width: 900px) {
    /* CORRECTION DE L'ESPACE SUR MOBILE : 140px de sécurité pour éviter le chevauchement avec la navbar */
    body { padding-top: 140px; }
    
    .navbar { 
        height: 70px; padding: 0 20px; 
        flex-direction: row; justify-content: space-between; 
        background: #050505; 
    }
    .nav-logo-img { height: 35px; margin: 0; }
    
    /* On cache le bouton Desktop ! */
    .btn-cv-desktop { display: none !important; }
    .nav-burger { display: flex; }

    .nav-links {
        position: fixed; top: 0; right: 0; width: 75%; height: 100vh;
        background-color: #050505; border-left: 1px solid #d4af37;
        flex-direction: column; justify-content: center; align-items: center;
        gap: 30px; margin: 0; transform: translateX(100%);
        transition: transform 0.4s ease-in-out; z-index: 2000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.8);
    }

    .nav-toggle:checked ~ .nav-links { transform: translateX(0); }
    .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
    
    .nav-links a { font-size: 1.2rem; color: #f0f0f0; }
    
    /* On affiche le bouton Mobile DANS le menu ! */
    .nav-links .btn-cv-mobile { 
        display: block; 
        margin-top: 20px; 
        padding: 12px 30px; 
        border: 1px solid #d4af37; 
        color: #d4af37 !important; 
        text-decoration: none; 
        text-transform: uppercase; 
        font-weight: 600; 
        font-size: 0.9rem; 
        letter-spacing: 1px; 
        text-align: center; 
    }

    .interests-grid { grid-template-columns: 1fr; padding: 0 20px; }
    
    /* Sur mobile, on annule la 3D pour éviter les bugs tactiles */
    .interest-card { transform-style: flat; }
    .card-icon-wrapper, .card-content, .btn-see-more { transform: none !important; }

    .detail-row { flex-direction: column; gap: 5px; }
    .detail-value { text-align: left; }
}

.site-footer {
    text-align: center; padding: 20px; background-color: #050505;
    color: #d4af37; font-size: 0.9rem; border-top: 1px solid rgba(212, 175, 55, 0.2); margin-top: auto; 
}
