/* --- CONFIGURATION GÉNÉRALE --- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: #121212; 
    color: #e0e0e0; 
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: #f97316;
    transition: 0.3s;
}

a:visited {
    color: #ea580c; 
}

a:hover {
    color: #fdba74; 
    text-decoration: underline; 
}

/* --- STRUCTURE ET BLOCS --- */

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

.section {
    padding: 80px 0;
}

.centre {
    text-align: center;
}

.titre-blanc {
    color: #f5f5f5; 
    margin-bottom: 15px;
}

.sous-titre {
    color: #a3a3a3; 
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* --- NAVIGATION --- */

.entete {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    padding: 20px 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #fbbf24; 
    font-size: 1.5rem;
    font-weight: 800;
}

.liens {
    display: flex;
    list-style: none;
    gap: 30px;
}

.liens a {
    color: #a3a3a3;
    font-weight: 500;
}

.liens a:hover {
    color: #fbbf24; /* Survol en Ambre */
}

/* --- BOUTONS --- */

.groupe-boutons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.bouton {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
    cursor: pointer;
    transition: 0.3s;
    border: none;
}


.bouton-orange {
    background: #4f4428; 
    color: #121212; /* Texte sombre pour un contraste optimal */
}

.bouton-orange:hover {
    background: #f59e0b; 
    transform: translateY(-2px);
}

.bouton-contour {
    border: 1px solid #404040;
    color: #e0e0e0;
    background: transparent;
}

.bouton-contour:hover {
    background: #262626;
}


.texte-orange {
    color: #fbbf24;
}
.texte-orange:hover {
    color: #f59e0b;
}

/* --- GRILLES ET CARTES --- */

.grille {
    display: grid;
    gap: 25px;
    margin-top: 30px;
}

.grille-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grille-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.apercu-image {
    width: 100%;
    height: 250px; 
    overflow: hidden;
    background: #1a1a1a; 
}

.apercu-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    transition: transform 0.5s ease;
    opacity: 0.9;
    padding: 5px; 
}

.carte:hover .apercu-image img {
    transform: scale(1.1);
    opacity: 1;
}

.carte {
    background: #1e1e1e;
    border: 1px solid #333333;
    padding: 30px;
    border-radius: 12px;
    transition: 0.3s;
    height: 100%;
}

.carte:hover {
    transform: translateY(-8px);
    border-color: #fbbf24; 
}

.etiquette {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.icone-svg {
    width: 45px;
    height: 45px;
    margin-bottom: 20px;
}

/* --- FORMULAIRES (PAGE CONTACT) --- */

.formulaire {
    background: #1e1e1e;
    padding: 40px;
    border-radius: 12px;
    max-width: 650px;
    margin: 0 auto;
    border: 1px solid #333333;
}

.champ {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    margin-top: 8px;
    background: #121212;
    border: 1px solid #333333;
    color: #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    display: block;
}

.champ:focus {
    outline: none;
    border-color: #fbbf24;
}

label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #a3a3a3;
}

/* --- ALERTES (SUCCÈS / ERREUR) --- */

.alerte {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 600;
    text-align: center;
}

/* Couleurs adoucies pour éviter la fatigue visuelle */
.succes {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.erreur {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* --- PIED DE PAGE --- */

.pied-page {
    background: #121212;
    padding: 80px 0 30px;
    border-top: 1px solid #333333;
    margin-top: 100px;
}

.colonnes-pied {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.colonne {
    flex: 1;
    min-width: 250px;
}

.colonne h4 {
    color: #f5f5f5;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
}

.colonne ul {
    list-style: none;
}

.colonne li {
    margin-bottom: 15px;
}

.groupe-boutons-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.copyright {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #1e1e1e;
    font-size: 0.85rem;
    color: #737373;
}

/* --- FENÊTRE MODALE (POPUP) --- */
.modal-overlay {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); 
    backdrop-filter: blur(4px); /* Floute légèrement la page derrière */
    z-index: 2000; /* Toujours au-dessus de tout */
    justify-content: center;
    align-items: center;
}

/* --- GALERIE PHOTO (LIGHTBOX) --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); 
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-galerie-contenu {
    background: transparent;
    width: 95%;
    max-width: 1000px; 
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.conteneur-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#image-principale {
    max-width: 100%;
    max-height: 80vh; /* Prend max 80% de la hauteur de l'écran */
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
    border: 2px solid #333333;
    transition: opacity 0.3s ease-in-out;
}

/* Flèches de navigation */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(18, 18, 18, 0.8);
    color: #fbbf24;
    border: 2px solid #fbbf24;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-btn:hover {
    background: #fbbf24;
    color: #121212;
}

.gauche { left: -25px; }
.droite { right: -25px; }

/* La croix pour fermer */
.bouton-fermer {
    position: absolute;
    top: -40px;
    right: 0;
    color: #a3a3a3;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.bouton-fermer:hover { color: #fbbf24; }

.compteur-texte {
    color: #e0e0e0;
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: bold;
}

/* Animation d'apparition */
@keyframes apparition {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}