/* --- Variables et Style de Base --- */
:root {
    --bg-color: #F8F5F2;
    --text-color: #4a4a4a;
    --primary-color: #6A8EAE;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --border-color: #e0d9d1;
    --font-title: 'Georgia', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-hero: 'Lora', serif; /* NOUVELLE POLICE */
}
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.7;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Section d'accueil "Hero" --- */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    background-image: url('images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}
.hero-content {
    position: relative;
    z-index: 2;
}
/* STYLE DU TITRE MODIFIÉ */
#hero h1 {
    font-family: var(--font-hero);
    font-style: italic;
    font-weight: 400; /* Poids normal pour Lora Italic */
    font-size: 3.8rem;
    color: white;
    margin: 0;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.4);
}
#hero .subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 10px 0 30px 0;
    font-weight: 400;
}
#hero nav a {
    margin: 0 15px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}
#hero nav a:hover {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}
.scroll-down-arrow {
    position: absolute;
    bottom: 30px;
    z-index: 2;
    animation: bounce 2s infinite;
}
.scroll-down-arrow span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-8px); }
}


/* --- Sections Générales --- */
section { padding: 80px 0; }
h2 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
}
.section-subtitle {
    text-align: center;
    margin-top: -40px;
    margin-bottom: 60px;
    color: #888;
}

/* --- Section Biographie --- */
#bio { 
    /* Le padding est déjà dans la règle "section" générale */
}
.bio-content {
    display: flex;
    align-items: center;
    gap: 50px;
}
.bio-photo {
    width: 300px;
    flex-shrink: 0;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    border: 8px solid white;
    box-shadow: 0 4px 20px var(--shadow-color);
}
.bio-text { flex: 1; }

/* --- Section Galerie --- */
#galerie { background-color: white; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: transform 0.3s ease;
}
.gallery-item:hover { transform: translateY(-5px); }
.gallery-item img { width: 100%; height: 100%; display: block; object-fit: cover; cursor: zoom-in; }
.gallery-item .caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white; padding: 40px 20px 20px; opacity: 0;
    transform: translateY(20px); transition: all 0.4s ease;
}
.gallery-item:hover .caption { opacity: 1; transform: translateY(0); }
.caption h3 { margin: 0 0 5px 0; font-family: var(--font-title); font-size: 1.5rem; }
.caption p { margin: 0; font-size: 0.9rem; }

/* --- Section Expositions --- */
#expositions { background-color: var(--bg-color); }
.expos-columns {
    column-count: 2;
    column-gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 22px;
}
.expo-entry {
    margin-bottom: 15px;
    font-size: 1rem;
    break-inside: avoid-column;
}
.expo-entry .expo-date {
    font-weight: 500;
    color: #333;
    display: inline-block;
    width: 120px; 
}
.expo-entry .expo-gallery {
    font-weight: 500;
}
.expo-entry .expo-location {
    color: #777;
}

/* --- SECTION ÉCRITURE --- */
#ecriture { 
    background-color: white; 
    /* La section hérite du padding: 80px 0; par défaut */
}
.ecriture-content {
    max-width: 800px; 
    margin: 0 auto; 
}
.ecriture-content p {
    margin-bottom: 1.5rem;
    text-align: justify; 
}


/* --- Section Contact --- */
#contact { 
    text-align: center;
    background-color: var(--bg-color);
}
.contact-list { list-style-type: none; padding: 0; margin-top: 30px; font-size: 1.1rem; }
.contact-list li { margin-bottom: 15px; }
.contact-list a { color: var(--primary-color); text-decoration: none; font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }

/* --- Footer --- */
footer {
    text-align: center; padding: 20px 0; margin-top: 40px;
    font-size: 0.9rem; color: #888; border-top: 1px solid var(--border-color);
}

/* --- Lightbox Styles --- */
.lightbox {
    position: fixed; z-index: 1000; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(20, 20, 20, 0.9);
    display: none; justify-content: center; align-items: center; animation: fadeIn 0.3s;
}
.lightbox-content {
    max-width: 90%; max-height: 90%; object-fit: contain;
    animation: zoomIn 0.3s; border-radius: 8px;
}
.lightbox-close {
    position: absolute; top: 20px; right: 35px; color: #f1f1f1;
    font-size: 40px; font-weight: bold; cursor: pointer; transition: color 0.3s;
}
.lightbox-close:hover { color: #bbb; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(0.8); } to { transform: scale(1); } }


/* --- Responsive pour mobile --- */
@media (max-width: 768px) {
    
    #hero {
        background-image: url('images/mobile-background.jpg');
        background-attachment: scroll;
    }

    #hero h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    #hero nav { display: flex; flex-direction: column; }
    #hero nav a { margin: 8px 0; }

    .bio-content { flex-direction: column; text-align: center; }
    .bio-photo { width: 250px; margin-bottom: 20px; }
    
    .expos-columns {
        column-count: 1;
    }

    #expositions .expo-entry {
        /* On réduit un peu la taille de la police pour gagner de la place */
        font-size: 0.95rem; 
    }

    #expositions .expo-date {
        /*
         * C'EST LA CLÉ : on garde une largeur fixe mais plus petite.
         * 95px est un bon compromis pour que la date la plus longue tienne
         * tout en laissant de la place au reste.
        */
        width: 95px;
        
        /* On s'assure qu'il y a un petit espace après la date */
        margin-right: 8px; 
    
    }
}/* --- Variables et Style de Base --- */
:root {
    --bg-color: #F8F5F2;
    --text-color: #4a4a4a;
    --primary-color: #6A8EAE;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --border-color: #e0d9d1;
    --font-title: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-hero: 'Lora', serif; /* NOUVELLE POLICE */
}
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.7;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Section d'accueil "Hero" --- */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    background-image: url('images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}
.hero-content {
    position: relative;
    z-index: 2;
}
/* STYLE DU TITRE MODIFIÉ */
#hero h1 {
    font-family: var(--font-hero);
    font-style: italic;
    font-weight: 400; /* Poids normal pour Lora Italic */
    font-size: 3.8rem;
    color: white;
    margin: 0;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.4);
}
#hero .subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 10px 0 30px 0;
    font-weight: 400;
}
#hero nav a {
    margin: 0 15px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}
#hero nav a:hover {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}
.scroll-down-arrow {
    position: absolute;
    bottom: 30px;
    z-index: 2;
    animation: bounce 2s infinite;
}
.scroll-down-arrow span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-8px); }
}


/* --- Sections Générales --- */
section { padding: 80px 0; }
h2 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
}
.section-subtitle {
    text-align: center;
    margin-top: -40px;
    margin-bottom: 60px;
    color: #888;
}

/* --- Section Biographie --- */
#bio { 
    /* Le padding est déjà dans la règle "section" générale */
}
.bio-content {
    display: flex;
    align-items: center;
    gap: 50px;
}
.bio-photo {
    width: 300px;
    flex-shrink: 0;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    border: 8px solid white;
    box-shadow: 0 4px 20px var(--shadow-color);
}
.bio-text { flex: 1; }

/* --- Section Galerie --- */
#galerie { background-color: white; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: transform 0.3s ease;
}
.gallery-item:hover { transform: translateY(-5px); }
.gallery-item img { width: 100%; height: 100%; display: block; object-fit: cover; cursor: zoom-in; }
.gallery-item .caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white; padding: 40px 20px 20px; opacity: 0;
    transform: translateY(20px); transition: all 0.4s ease;
}
.gallery-item:hover .caption { opacity: 1; transform: translateY(0); }
.caption h3 { margin: 0 0 5px 0; font-family: var(--font-title); font-size: 1.5rem; }
.caption p { margin: 0; font-size: 0.9rem; }

/* --- Section Expositions --- */
#expositions { background-color: var(--bg-color); }
.expos-columns {
    column-count: 2;
    column-gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 22px;
}
.expo-entry {
    margin-bottom: 15px;
    font-size: 1rem;
    break-inside: avoid-column;
}
.expo-entry .expo-date {
    font-weight: 500;
    color: #333;
    display: inline-block;
    width: 120px; 
}
.expo-entry .expo-gallery {
    font-weight: 500;
}
.expo-entry .expo-location {
    color: #777;
}

/* --- SECTION ÉCRITURE --- */
#ecriture { 
    background-color: white; 
    /* La section hérite du padding: 80px 0; par défaut */
}
.ecriture-content {
    max-width: 800px; 
    margin: 0 auto; 
}
.ecriture-content p {
    margin-bottom: 1.5rem;
    text-align: justify; 
}


/* --- Section Contact --- */
#contact { 
    text-align: center;
    background-color: var(--bg-color);
}
.contact-list { list-style-type: none; padding: 0; margin-top: 30px; font-size: 1.1rem; }
.contact-list li { margin-bottom: 15px; }
.contact-list a { color: var(--primary-color); text-decoration: none; font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }

/* --- Footer --- */
footer {
    text-align: center; padding: 20px 0; margin-top: 40px;
    font-size: 0.9rem; color: #888; border-top: 1px solid var(--border-color);
}

/* --- Lightbox Styles --- */
.lightbox {
    position: fixed; z-index: 1000; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(20, 20, 20, 0.9);
    display: none; justify-content: center; align-items: center; animation: fadeIn 0.3s;
}
.lightbox-content {
    max-width: 90%; max-height: 90%; object-fit: contain;
    animation: zoomIn 0.3s; border-radius: 8px;
}
.lightbox-close {
    position: absolute; top: 20px; right: 35px; color: #f1f1f1;
    font-size: 40px; font-weight: bold; cursor: pointer; transition: color 0.3s;
}
.lightbox-close:hover { color: #bbb; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(0.8); } to { transform: scale(1); } }


/* --- Responsive pour mobile --- */
@media (max-width: 768px) {
    
    #hero {
        background-image: url('images/mobile-background.jpg');
        background-attachment: scroll;
    }

    #hero h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    #hero nav { display: flex; flex-direction: column; }
    #hero nav a { margin: 8px 0; }

    .bio-content { flex-direction: column; text-align: center; }
    .bio-photo { width: 250px; margin-bottom: 20px; }
    
    .expos-columns {
        column-count: 1;
    }
}
