/* --- CONFIGURATION GÉNÉRALE --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; 
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* --- NAVIGATION --- */
nav {
    background: rgba(255, 255, 255, 0.95);
    position: sticky;
    top: 0;
    border-bottom: 1px solid #eee;
    padding: 20px;
    text-align: center;
    z-index: 1000;
}

nav a {
    margin: 0 20px;
    text-decoration: none;
    color: #555;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: 0.3s;
    padding-bottom: 5px;
}

nav a:hover {
    color: #000;
}

nav a.active {
    color: #000;
    border-bottom: 2px solid #000;
    font-weight: bold;
}

/* --- EN-TÊTE (HERO BANNER) --- */
header {
    text-align: center;
    padding: 150px 20px; 
    
    /* Le fameux slash qui règle le chemin de l'image */
    background: linear-gradient(rgba(6, 6, 6, 0.6), rgba(6, 6, 6, 0.6)), url('/images/banniere.webp');
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed; 
    
    border-bottom: 1px solid #eee;
}

header h1 {
    text-transform: uppercase;
    letter-spacing: 8px;
    font-weight: 300;
    font-size: 2.8rem;
    margin: 0;
    color: #ffffff; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); 
}

header p {
    color: #e0e0e0; 
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* --- SECTIONS ET TITRES --- */
section {
    padding: 80px 0;
    min-height: 50vh; 
    box-sizing: border-box;
}

h2 {
    text-align: center; /* Centre le titre sur la page */
    font-weight: 600; /* Rend le texte légèrement plus épais */
    font-size: 1.5rem; /* Augmente la taille pour bien les détacher du texte */
    text-transform: uppercase;
    letter-spacing: 4px; /* Espace élégamment les lettres */
    color: #222; /* Un noir profond mais pas agressif */
    margin-bottom: 50px;
    border-bottom: none; /* On enlève l'ancienne ligne grise basique */
    position: relative; /* Nécessaire pour placer le petit trait ci-dessous */
    padding-bottom: 15px;
}

/* --- LE PETIT TRAIT DÉCORATIF SOUS LE TITRE --- */
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%); /* Centre parfaitement la ligne */
    width: 100px; /* Longueur de la petite ligne */
    height: 3px; /* Épaisseur de la ligne */
    background-color: #b38b6d; /* La couleur beige/sable de l'artiste */
}

/* Mise en forme de la Biographie */
#bio p {
    text-align: justify;
    line-height: 1.8;
}

/* --- GALERIE --- */
.grille-art {
    display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 40px;
}

.img-container {
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
}

.carte-oeuvre img {
    width: 100%;
    height: auto;
    display: block;
    transition: 0.6s ease;
    cursor: pointer;
}

.carte-oeuvre:hover img {
    transform: scale(1.03);
}

/* --- CARROUSEL D'IMAGES --- */
.carrousel-container {
    position: relative; 
}

.carrousel-images {
    display: flex; 
    overflow-x: auto; 
    scroll-snap-type: x mandatory; 
    scrollbar-width: none; 
    scroll-behavior: smooth; 
}

.carrousel-images::-webkit-scrollbar {
    display: none;
}

.carrousel-images img {
    flex: 0 0 100%; 
    width: 100%;
    object-fit: cover; 
    scroll-snap-align: start; 
}

.indication-swipe {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 12px;
    font-size: 0.75rem;
    border-radius: 20px;
    letter-spacing: 1px;
    pointer-events: none; 
    text-transform: uppercase;
}

/* --- DÉTAILS DE L'ŒUVRE (Cartel) --- */
.infos {
    padding: 20px 0;
    text-align: center;
}

.details-oeuvre {
    margin: 15px 0;
    font-size: 0.9rem;
    color: #555;
    text-align: left; 
}

.details-oeuvre p {
    margin: 5px 0; 
    line-height: 1.4;
}

.details-oeuvre strong {
    color: #222; 
    font-weight: 600;
}

.prix {
    display: block;
    font-weight: bold;
    margin: 10px 0;
    color: #333;
}

.badge-vendu {
    display: inline-block;
    background-color: #f5f5f5; 
    color: #888; 
    padding: 8px 15px;
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
    border: 1px solid #ddd;
}

/* --- BOUTONS --- */
.btn-contact {
    background: #333;
    color: #fff;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    margin-top: 10px;
    box-sizing: border-box;
}

.btn-contact:hover {
    background: #000;
}

.btn-wa {
    background: #25D366;
    color: white;
}
.btn-wa:hover {
    background: #1ebc5a;
}

/* --- SECTION CONTACT & RÉSEAUX --- */
#contact {
    background: #fafafa;
    padding: 60px 20px;
}

.reseaux-sociaux {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 20px; 
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.reseaux-sociaux a {
    color: #333;
    font-size: 1.6rem;
    transition: 0.3s;
    text-decoration: none;
}

.reseaux-sociaux a:hover {
    color: #888;
    transform: translateY(-3px);
}

/* --- FENÊTRES FLOTTANTES --- */
.overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
}

.lightbox-contenu {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

.modale-contact-box {
    background: #fff;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: zoomIn 0.3s ease;
    text-align: left;
}

.modale-contact-box input,
.modale-contact-box textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    font-family: inherit;
}

.fermer-fenetre {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.modale-contact-box .fermer-fenetre {
    color: #333;
    top: 5px;
    right: 15px;
    font-size: 30px;
}

.fermer-fenetre:hover { color: #b38b6d; }

.notification-succes {
    display: none;
    background: #d4edda;
    color: #155724;
    padding: 15px;
    text-align: center;
    border: 1px solid #c3e6cb;
    margin-top: 20px;
    font-weight: bold;
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;} 
    to {transform: scale(1); opacity: 1;}
}

/* --- PAGE DE CONTACT (Pour le PC) --- */
.page-contact { padding: 60px 0; text-align: center; }
.formulaire-contact { max-width: 600px; margin: 0 auto; text-align: left; }
.groupe-formulaire { margin-bottom: 20px; }
.groupe-formulaire input, .groupe-formulaire textarea {
    width: 100%; padding: 15px; border: 1px solid #ddd; background: #fff; font-family: inherit; font-size: 0.9rem; box-sizing: border-box; transition: 0.3s;
}
.groupe-formulaire input:focus, .groupe-formulaire textarea:focus { outline: none; border-color: #333; }


/* --- RESPONSIVE DESIGN --- */
@media screen and (max-width: 768px) {
    nav { padding: 15px 10px; }
    nav a { margin: 0 10px; font-size: 0.7rem; }

    header { 
        padding: 100px 0; 
        background-attachment: scroll; 
    }
    header h1 { font-size: 2rem; }
    section { padding: 50px 0; min-height: 40vh; }
}

@media screen and (max-width: 480px) {
    nav { line-height: 2; }
    nav a { display: inline-block; margin: 5px 8px; }
    .btn-contact { width: 100%; box-sizing: border-box; text-align: center;}
    .reseaux-sociaux { gap: 15px; }
}

/* --- EXPOSITIONS & DISTINCTIONS --- */
.liste-evenements {
    max-width: 800px;
    margin: 0 auto;
}

.item-evenement {
    background: #fafafa;
    border-left: 4px solid #b38b6d;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.entete-evenement { margin-bottom: 15px; }

.entete-evenement h3 {
    margin: 0;
    color: #222;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.entete-evenement .date {
    display: inline-block;
    background: #b38b6d;
    color: white;
    padding: 3px 10px;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.medias-evenement {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.medias-evenement img, .medias-evenement video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}
