:root {
    --bg-color: #fcfcfc;
    --text-dark: #1a1a1a;
    --accent: #000000;
    --radius: 8px;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0; background: var(--bg-color); color: var(--text-dark);
}

/* --- HEADER 3 PARTIES --- */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky; 
    top: 0; 
    z-index: 100;
    transition: background 0.3s;
}

.top-nav:hover {
    background: #fafafa; /* Léger changement de fond au survol pour montrer que c'est cliquable */
}

.logo { height: 50px; width: auto; }

.header-link {
    text-decoration: none; /* Enlève le soulignement bleu par défaut */
    color: inherit; /* Garde les couleurs définies dans le header */
    display: block;
}

.nav-center h1 {
    font-size: 1.2rem; text-transform: uppercase; letter-spacing: 2px; margin: 0;
}

.link-site {
    text-decoration: none; color: var(--text-dark); font-weight: 600; border-bottom: 2px solid var(--accent);
}

.intro-section {
    text-align: center;
    padding: 50px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* --- BOUTON DOWNLOAD --- */
.hero-download { text-align: center; padding: 40px 0; }
.btn-download {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 15px 35px; 
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s;
}

.btn-download:hover {
    transform: scale(1.05);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- GRILLE --- */
.grille-media {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px;
}
.item-media {
    aspect-ratio: 16/9; overflow: hidden; background: #eee; cursor: pointer;
}
.item-media img, .item-media video {
    width: 100%; height: 100%; object-fit: cover; transition: 0.4s;
}
.item-media img:hover { transform: scale(1.05); }

/* --- LIGHTBOX --- */
.lightbox {
    display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); align-items: center; justify-content: center;
}
.lightbox-content { max-width: 90%; max-height: 85%; object-fit: contain; }
.close { position: absolute; top: 30px; right: 40px; color: #fff; font-size: 40px; cursor: pointer; }
.prev, .next {
    position: absolute; top: 50%; color: #fff; font-size: 40px; padding: 20px;
    cursor: pointer; user-select: none; text-decoration: none;
}
.prev { left: 20px; } .next { right: 20px; }

/* --- FORMULAIRE --- */
.contact-section { margin-top: 80px; padding-bottom: 100px; }
.contact-form {
    display: flex; flex-direction: column; gap: 15px; max-width: 600px; margin: 0 auto;
}
.form-group { display: flex; gap: 15px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: var(--radius); font-size: 1rem;
}
.btn-submit {
    background: var(--accent); color: #fff; border: none; padding: 15px; 
    border-radius: var(--radius); cursor: pointer; font-weight: bold;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .top-nav { flex-direction: column; gap: 15px; text-align: center; }
    .form-group { flex-direction: column; }
}

/* --- LIGHTBOX (MODALE PLEIN ÉCRAN) --- */
.lightbox {
    display: none; /* Caché par défaut */
    position: fixed;
    z-index: 2000; /* Au-dessus de tout, même du header */
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* Fond noir très opaque */
    align-items: center;
    justify-content: center;
    cursor: zoom-out; /* Curseur indiquant qu'on peut fermer en cliquant */
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain; /* Garde les proportions de l'image */
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    transition: opacity 0.2s ease-in-out;
    cursor: default; /* Pas de curseur spécial sur l'image elle-même */
}

/* Bouton Fermer (×) */
.close-lightbox {
    position: absolute;
    top: 20px; right: 30px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
    z-index: 2010;
}
.close-lightbox:hover { opacity: 1; transform: scale(1.1); }

/* Boutons Précédent/Suivant */
.prev-lightbox, .next-lightbox {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    padding: 20px 15px;
    cursor: pointer;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
    border-radius: 5px;
    opacity: 0.5;
    transition: 0.3s;
    text-decoration: none;
    z-index: 2010;
}
.prev-lightbox:hover, .next-lightbox:hover { opacity: 1; background-color: rgba(0,0,0,0.6); }
.prev-lightbox { left: 20px; }
.next-lightbox { right: 20px; }

/* Responsive Lightbox */
@media (max-width: 768px) {
    .lightbox-content { max-width: 95%; max-height: 80%; }
    .prev-lightbox, .next-lightbox { font-size: 30px; padding: 15px 10px; }
    .close-lightbox { top: 10px; right: 20px; font-size: 40px; }
}