/* --- style.css --- */
:root {
    --primary: #1a1a1a;
    --accent: #b09a81; /* Ton doré/sable */
    --bg-color: #f4f1ea;
    --card-bg: rgba(255, 255, 255, 0.9);
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%;
    overflow-x: hidden; /* Empêche le scroll horizontal indésirable */
}

body {
    font-family: var(--font-main);
    color: var(--primary);
    line-height: 1.6;
    /* Fond animé Aurora */
    background: linear-gradient(-45deg, #f4f1ea, #e8e0d5, #f4f1ea, #dcdcdc);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* NAVIGATION */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: relative;
    z-index: 100;
}

.logo { font-size: 1.5rem; font-weight: 800; text-transform: uppercase; color: var(--primary); text-decoration: none; letter-spacing: -1px; }
.nav-links { list-style: none; display: flex; gap: 30px; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--primary); font-weight: 500; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; position: relative; }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 1px; bottom: -5px; left: 0; background-color: var(--primary); transition: width 0.3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* HERO SECTION (ACCUEIL) */
.hero {
    /* Remplacer height fixe par min-height pour éviter le chevauchement */
    min-height: 80vh; 
    height: auto; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 5% 60px 5%; /* Marge en haut pour ne pas toucher le menu */
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10; /* S'assure que le texte est au-dessus du décor */
}

h1 {
    font-size: 4.5rem; 
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -2px;
}

.typewriter { color: var(--accent); }
.cursor { display: inline-block; width: 3px; background-color: var(--primary); animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* BOUTONS */
.btn-container {
    display: flex;
    flex-wrap: wrap; /* Permet aux boutons de passer à la ligne sur mobile */
    gap: 15px;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    white-space: nowrap; /* Empêche le texte du bouton de se casser */
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

.btn-outline {
    display: inline-block; padding: 15px 35px;
    border: 1px solid var(--primary); color: var(--primary);
    text-decoration: none; border-radius: 50px; font-weight: 600;
    transition: all 0.3s;
    background: transparent;
    white-space: nowrap;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* BANDEAU DÉFILANT (MARQUEE) */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    background: var(--primary);
    color: #fff;
    padding: 15px 0;
    transform: rotate(-2deg);
    margin: 60px 0 60px 0; /* Plus de marge pour éviter le chevauchement */
    position: relative;
    z-index: 5;
}
.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* GRILLE ET CARTES */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 300px min pour les petits écrans */
    gap: 30px;
    padding: 0 20px 40px 20px;
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.tags { font-size: 0.75rem; font-weight: 800; letter-spacing: 1px; color: var(--accent); margin-bottom: 1rem; text-transform: uppercase; display: block; }
.card h3 { font-size: 1.8rem; margin-bottom: 10px; line-height: 1.2; }
.card p { font-size: 1rem; opacity: 0.7; margin-bottom: 20px; }

/* MODALES */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); overflow-y: auto; }
.modal.show { opacity: 1; display: block; }
.modal-content { background: #fff; margin: 10% auto; padding: 30px; width: 90%; max-width: 800px; border-radius: 15px; position: relative; }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 2rem; cursor: pointer; color: var(--primary); }

footer { text-align: center; padding: 2rem; margin-top: 2rem; border-top: 1px solid rgba(0,0,0,0.05); opacity: 0.6; font-size: 0.9rem; }

/* ========================================= */
/* MEDIA QUERIES (POUR LE MOBILE & TABLETTE) */
/* ========================================= */

@media (max-width: 768px) {
    /* Navigation */
    nav { flex-direction: column; gap: 15px; padding: 1rem; }
    .nav-links { gap: 15px; font-size: 0.8rem; justify-content: center; }

    /* Hero Text */
    h1 { font-size: 2.5rem; letter-spacing: -1px; text-align: center; }
    .hero p { font-size: 1rem; text-align: center; margin-bottom: 20px; }
    .hero { align-items: center; padding-top: 40px; min-height: auto; }

    /* Boutons */
    .btn-container { justify-content: center; width: 100%; }
    .btn, .btn-outline { width: 100%; text-align: center; padding: 12px 20px; font-size: 0.9rem; }

    /* Marquee */
    .marquee-wrapper { margin-top: 40px; transform: rotate(-1deg); } /* Moins incliné sur mobile */
    
    /* Cartes */
    .grid { grid-template-columns: 1fr; } /* Une seule colonne sur mobile */
}