/* ==========================================================================
   1. BASES (THEME BLANC & NOIR PUR)
   ========================================================================== */

/* REGLE D'OR POUR LE MOBILE : Les marges sont incluses dans la largeur */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden; /* EMPECHE LE SITE DE DEPASSER A DROITE */
    max-width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #000000;
    line-height: 1.6;
    background-color: #ffffff;
}

/* ==========================================================================
   2. MENU DE NAVIGATION
   ========================================================================== */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #000;
    padding: 0 20px;
    display: flex; 
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000;
}

nav a {
    text-decoration: none;
    color: #000;
    margin-left: 30px;
    font-weight: 500;
    transition: color 0.3s;
    
    /* Police Baskerville pour le menu */
    font-family: 'Baskerville Old Face', 'Baskerville', serif;
    font-size: 1.1rem;
    letter-spacing: 0px; /* Pas d'espacement forcé */
    
    text-transform: uppercase;
}

nav a:hover, nav a.actif { color: #d35400; }

/* ==========================================================================
   3. PAGE ACCUEIL (INTRO NOIRE GÉANTE)
   ========================================================================== */
.intro-home {
    background-color: #000000;
    color: #ffffff;
    height: calc(100vh - 70px); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.intro-home h1 {
    font-family: 'Baskerville Old Face', 'Baskerville', serif;
    font-size: 6rem;
    font-weight: normal;
    margin: 0;
    letter-spacing: 10px;
    line-height: 1;
    text-transform: uppercase;
    color: #fff;
}

.intro-home h2 {
    font-family: 'Baskerville Old Face', serif;
    font-size: 5rem;
    font-weight: normal;
    margin: 10px 0 0 0;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 5px;
}

/* ==========================================================================
   4. STRUCTURE GÉNÉRALE
   ========================================================================== */
main { width: 100%; margin: 0; padding: 0; }
.contenu-standard { max-width: 1000px; margin: 50px auto; padding: 0 20px; }

h1, h2, h3 { color: #000; text-transform: uppercase; letter-spacing: 2px; }
h1 { font-family: 'Baskerville Old Face', serif; font-size: 2.5rem; margin-bottom: 30px; }
.separateur { width: 50px; height: 2px; background-color: #d35400; border: none; margin: 0 0 30px 0; }

.bouton-appel, .bouton-envoyer {
    background-color: #000; color: white; padding: 12px 30px;
    text-decoration: none; border-radius: 0; transition: 0.3s;
    text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem;
    border: 1px solid #000; cursor: pointer;
}
.bouton-appel:hover, .bouton-envoyer:hover { background-color: #d35400; border-color: #d35400; }

/* ==========================================================================
   5. GALERIE (GRILLE + LIGHTBOX)
   ========================================================================== */
.categories-menu {
    display: flex; flex-direction: column; align-items: center; gap: 30px; margin-top: 50px;
}
.cat-btn {
    cursor: pointer; text-align: center; width: 300px; padding: 20px;
    border: 1px solid #000; transition: all 0.3s; background: white;
}
.cat-btn:hover { background-color: #000; color: white; }
.cat-btn h2 { margin: 0; font-size: 1.2rem; }

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 30px;
}

.oeuvre-card {
    border: 1px solid #eee;
    padding: 15px;
    text-align: center;
    background: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.oeuvre-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #d35400;
}

.oeuvre-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 15px;
}

.oeuvre-card h3 { margin: 5px 0; font-size: 1.1rem; color: #000; }
.oeuvre-card p { font-size: 0.9rem; color: #666; margin: 0; }

.bouton-retour {
    display: inline-block; margin-bottom: 40px; color: #000;
    text-decoration: none; border: 1px solid #000; padding: 10px 20px;
    text-transform: uppercase; font-size: 0.8rem; cursor: pointer;
}
.bouton-retour:hover { background: #000; color: #fff; }

/* LIGHTBOX */
.lightbox {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.98);
    justify-content: center; align-items: center; flex-direction: column;
}
.lightbox-content { display: block; max-width: 90%; max-height: 90vh; width: auto; height: auto; box-shadow: 0 0 50px rgba(0,0,0,0.5); animation: zoomIn 0.3s ease; }
@keyframes zoomIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#caption { display: none !important; }
.fermer { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; z-index: 2001; }
.fermer:hover { color: #d35400; }
.prev, .next {
    cursor: pointer; position: absolute; top: 50%; padding: 20px; margin-top: -30px;
    color: #888; font-size: 50px; font-weight: 100; z-index: 2001; user-select: none; transition: 0.3s;
}
.next { right: 10px; } .prev { left: 10px; }
.prev:hover, .next:hover { color: #d35400; transform: scale(1.2); }

/* ==========================================================================
   6. PAGE CONTACT
   ========================================================================== */
.contact-container {
    display: flex; max-width: 900px; margin: 50px auto; background-color: white;
    border: 1px solid #000; box-shadow: 10px 10px 0px rgba(0,0,0,0.1);
}
.contact-info { flex: 1; padding: 50px; display: flex; flex-direction: column; justify-content: center; }
.contact-image { flex: 1; position: relative; border-left: 1px solid #000; min-height: 500px; }
.contact-image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.info-groupe { margin-bottom: 25px; }
.label { display: block; font-size: 0.8rem; color: #666; text-transform: uppercase; margin-bottom: 5px; }
.value { font-size: 1.2rem; font-weight: 500; color: #000; }
.email-link { color: #d35400; text-decoration: none; border-bottom: 1px solid transparent; }
.email-link:hover { border-bottom: 1px solid #d35400; }
.info-discipline { background-color: #f9f9f9; padding: 20px; border: 1px solid #ddd; margin-top: 20px; }
.info-discipline h2 { font-size: 1rem; color: #000; margin-top: 0; border-bottom: 1px solid #ccc; padding-bottom: 5px; }
.details-list { list-style: none; padding: 0; margin: 0; }
.details-list li { margin-bottom: 5px; color: #333; }

/* INSTAGRAM DANS CONTACT */
.instagram-link {
    display: inline-flex; align-items: center; text-decoration: none; color: #000; font-weight: 500; transition: 0.3s;
}
.instagram-link svg { width: 24px; height: 24px; margin-right: 10px; fill: #E1306C; }
.instagram-link:hover { color: #E1306C; }

/* ==========================================================================
   7. PAGE PRÉSENTATION & AUTRES
   ========================================================================== */
.presentation-container { display: flex; margin-top: 20px; }
.bio-section { flex: 2; padding-right: 60px; }
.bio-section p { text-align: justify; margin-bottom: 25px; color: #000; }
.text-highlight { color: #d35400; font-weight: bold; }
.citation-box { margin: 40px 0; padding: 20px 0; border-top: 1px solid #000; border-bottom: 1px solid #000; font-style: italic; font-family: 'Baskerville Old Face', serif; font-size: 1.4rem; color: #000; text-align: center; }
.etudes-sidebar { flex: 1; background-color: #fff; padding: 20px 0 0 40px; border-left: 1px solid #000; }
.etudes-sidebar h2 { border-bottom: 1px solid #000; }
.liste-etudes { list-style: none; padding: 0; }
.liste-etudes li { margin-bottom: 30px; }
.liste-etudes strong { display: block; font-size: 1.1rem; color: #000; margin-bottom: 5px; text-transform: uppercase; }
.liste-etudes span { display: block; font-size: 0.95rem; color: #555; font-style: italic; }

.actus-container, .livre-dor-container { max-width: 800px; margin: 0 auto; text-align: center; }
.section-title { text-align: left; border-bottom: 2px solid #000; padding-bottom: 10px; margin: 40px 0 20px 0; }
.info-message { background-color: #f9f9f9; padding: 20px; border: 1px solid #ddd; font-style: italic; }
.event-card { display: flex; background: #fff; border: 1px solid #ddd; margin-bottom: 20px; text-align: left; border-left: 5px solid #ccc; }
.event-card.featured { border-left: 5px solid #d35400; }
.event-card.featured .event-date { background-color: #000; color: #fff; }
.event-date { background-color: #eee; padding: 20px; min-width: 80px; text-align: center; display: flex; flex-direction: column; justify-content: center;}
.event-details { padding: 20px; flex: 1; }

.messages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin-bottom: 80px; }
.message-card { background-color: white; padding: 30px; border: 1px solid #ddd; position: relative; text-align: left; }
.message-card::before { content: "“"; font-size: 5rem; color: #eee; position: absolute; top: -10px; left: 20px; font-family: serif; }
.message-content { position: relative; font-style: italic; z-index: 1; }
.message-author { text-align: right; font-weight: bold; color: #d35400; margin-top: 10px; font-size: 0.8rem; }
.form-section { background-color: #f9f9f9; padding: 40px; border: 1px solid #ddd; max-width: 600px; margin: 0 auto; }
.form-group label { display: block; margin-bottom: 5px; text-align: left; font-weight: bold; }
.form-group input, .form-group textarea { width: 100%; padding: 10px; margin-bottom: 20px; border: 1px solid #ccc; box-sizing: border-box; }
.form-row { display: flex; gap: 20px; }
.demi-largeur { flex: 1; }

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
footer { background-color: #000; color: #ccc; padding-top: 50px; margin-top: 80px; font-size: 0.9rem; }
.footer-container { display: flex; justify-content: space-between; max-width: 1000px; margin: 0 auto; padding: 0 20px 40px; }
.footer-column h3 { color: #fff; border-bottom: 2px solid #d35400; padding-bottom: 5px; margin-bottom: 20px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: #888; text-decoration: none; }
.footer-nav a:hover { color: #d35400; padding-left: 5px; }
.contact-info-footer { text-align: right; }
.contact-info-footer a { color: #d35400; text-decoration: none; }
.copyright-bar { background-color: #111; text-align: center; padding: 20px; border-top: 1px solid #333; }
.copyright-bar p { margin: 0; }

/* INSTAGRAM FOOTER */
.social-footer { margin-top: 10px; }
.social-footer a { display: inline-flex; align-items: center; justify-content: flex-end; text-decoration: none; color: #ccc; gap: 8px; transition: 0.3s; }
.social-footer svg { width: 18px; height: 18px; fill: #ccc; transition: 0.3s; }
.social-footer a:hover { color: #d35400; }
.social-footer a:hover svg { fill: #d35400; }

/* POLICE BASKERVILLE FOOTER */
.footer-column h3, .footer-nav a, .nom-artiste { font-family: 'Baskerville Old Face', 'Baskerville', serif; letter-spacing: 0px; }

/* ==========================================================================
   9. ACCUEIL - SECTION SPLIT (TEXTE + CARROUSEL)
   ========================================================================== */
.accueil-split {
    display: flex;
    width: 100%;
    min-height: 600px;
    align-items: center;
    padding-right: 50px;
    box-sizing: border-box;
}

/* Texte Gauche */
.split-texte {
    flex: 1;
    padding: 60px 80px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.split-texte h3 {
    font-family: 'Baskerville Old Face', 'Baskerville', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: 0px;
}
.split-texte p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: justify;
}
.bouton-decouvrir {
    align-self: flex-start;
    padding: 10px 25px;
    border: 1px solid #000;
    text-decoration: none;
    color: #000;
    text-transform: uppercase;
    font-family: 'Baskerville Old Face', serif;
    transition: 0.3s;
}
.bouton-decouvrir:hover { background-color: #000; color: #fff; }

/* Carrousel Droite */
.split-carrousel {
    flex: 1;
    height: 600px;
    position: relative;
    overflow: hidden;
}
.carrousel-container { width: 100%; height: 100%; position: relative; }
.carrousel-slides { display: flex; width: 100%; height: 100%; transition: transform 0.8s ease-in-out; }
.carrousel-slides img { width: 100%; min-width: 100%; height: 100%; object-fit: cover; }
.carrousel-dots {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 15px; z-index: 10;
}
.dot {
    width: 12px; height: 12px; background-color: #fff; border-radius: 50%;
    opacity: 0.5; cursor: pointer; transition: 0.3s; box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.dot.actif, .dot:hover { opacity: 1; transform: scale(1.2); }

/* ==========================================================================
   10. SECTION ACTUALITÉ
   ========================================================================== */
.separateur-section {
    width: 66%; border: none; height: 3px; background-color: #000;
    margin: 80px auto 60px auto; opacity: 1;
}
.accueil-actu { display: flex; justify-content: center; padding-bottom: 80px; }
.actu-conteneur {
    text-align: center; border: 1px solid #000; padding: 40px 60px;
    position: relative; max-width: 600px; background-color: #fff;
    box-shadow: 10px 10px 0px rgba(0,0,0,0.05); transition: transform 0.3s;
}
.actu-conteneur:hover { transform: translateY(-5px); }
.etiquette-actu {
    background-color: #000; color: #fff; padding: 5px 15px;
    text-transform: uppercase; font-size: 0.8rem; font-weight: bold;
    letter-spacing: 2px; position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
}
.actu-info h2 { font-family: 'Baskerville Old Face', serif; font-size: 2.2rem; margin: 20px 0 10px 0; letter-spacing: 0px; }
.actu-date { font-size: 1.1rem; font-weight: bold; color: #d35400; margin: 0; text-transform: uppercase; }
.actu-lieu { font-style: italic; color: #666; margin-top: 5px; margin-bottom: 30px; font-family: 'Baskerville Old Face', serif; font-size: 1.2rem; }
.bouton-actu {
    display: inline-block; padding: 10px 30px; border: 1px solid #000;
    text-decoration: none; color: #000; text-transform: uppercase;
    font-size: 0.9rem; transition: 0.3s;
}
.bouton-actu:hover { background-color: #000; color: #fff; }

/* ==========================================================================
   11. DERNIÈRES CRÉATIONS (3 IMAGES)
   ========================================================================== */
.derniers-ajouts { text-align: center; padding-bottom: 80px; }
.derniers-ajouts h2 {
    font-family: 'Baskerville Old Face', serif; font-size: 2rem;
    margin-bottom: 40px; letter-spacing: 0px;
}
.grille-accueil-3 {
    display: flex; justify-content: center; gap: 40px;
    padding: 0 20px; flex-wrap: wrap;
}
.img-box {
    width: 300px; height: 300px; overflow: hidden;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1); cursor: pointer;
}
.img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.img-box:hover img { transform: scale(1.1); }

.container-btn-galerie { margin-top: 50px; }
.bouton-voir-galerie {
    display: inline-block; padding: 12px 40px; border: 1px solid #000;
    color: #000; text-decoration: none; text-transform: uppercase;
    font-family: 'Baskerville Old Face', serif; font-size: 1.1rem;
    letter-spacing: 1px; transition: all 0.3s ease;
}
.bouton-voir-galerie:hover { background-color: #000; color: #fff; padding: 12px 50px; }


/* ==========================================================================
   RESPONSIVE (MOBILE & TABLETTE) - VERSION CORRIGÉE
   ========================================================================== */
@media (max-width: 900px) {
    
    /* 1. GLOBAL (S'applique à Galerie, Actualités, Livre d'or...) */
    .contenu-standard {
        width: 100%; /* Prend toute la largeur */
        margin: 20px 0; /* Moins d'espace vertical */
        padding: 0 20px; /* IMPORTANT : 20px de marge gauche ET droite */
    }

    /* 2. HEADER & MENU */
    header { padding: 10px 0; flex-direction: column; height: auto; }
    nav { text-align: center; margin-top: 20px; }
    nav a { 
        display: block; 
        margin: 5px 0; 
        font-size: 1rem; 
    }
    .contact-info-footer { text-align: center; margin-top: 20px; }
    .footer-container { flex-direction: column; }

    /* 3. PAGE ACCUEIL (Spécifique) */
    .intro-home h1 { font-size: 3rem; }
    .intro-home h2 { font-size: 1.5rem; }
    
    .accueil-split { 
        flex-direction: column; 
        padding-right: 0; 
        min-height: auto;
    }
    .split-texte { padding: 40px 20px; text-align: center; }
    .bouton-decouvrir { align-self: center; }
    .split-carrousel { height: 300px; width: 100%; }
    .separateur-section { width: 80%; }
    
    .actu-conteneur { width: 90%; margin: 0 auto; padding: 40px 20px; }
    .actu-info h2 { font-size: 1.5rem; }

    .grille-accueil-3 { flex-direction: column; gap: 30px; align-items: center; }
    .img-box { width: 100%; max-width: 300px; height: 300px; }

    /* 4. PAGE CONTACT (Centrage et marges) */
    .contact-container {
        flex-direction: column-reverse;
        width: 100%; 
        margin: 0; 
        border: none;
        box-shadow: none;
    }
    .contact-info { padding: 40px 20px; text-align: center; }
    .contact-image { min-height: 250px; width: 100%; border-left: none; border-bottom: 1px solid #000; }

    /* 5. PAGE PRESENTATION */
    .presentation-container { flex-direction: column; }
    .bio-section { padding-right: 0; padding: 0 20px; }
    .etudes-sidebar { 
        border-left: none; 
        border-top: 1px solid #000; 
        padding: 30px 20px; 
        margin-top: 30px; 
    }

    /* 6. PAGE GALERIE & ACTUALITÉS */
    .galerie-grid, .messages-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    .oeuvre-card img { height: auto; } 
    
    /* Pour le formulaire Livre d'or */
    .form-row { flex-direction: column; gap: 0; }
    .form-group { margin-bottom: 15px; }
}