/* ===========================================
   Anne-Gaëlle GRÈZE - Artiste Peintre
   Main Stylesheet
   =========================================== */

/* CSS Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-color: #232832;
    --text-color: #ffffff;
    --menu-bar-color: #000000;
    --accent-color: #FFCCCC;
    --font-main: 'Calibri', 'Segoe UI', Arial, sans-serif;
    --font-artwork: 'Lucida Calligraphy', 'Brush Script MT', cursive;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===========================================
   Header & Navigation
   =========================================== */
header {
    background-color: var(--menu-bar-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.logo-text {
    font-size: 1.2rem;
    color: var(--text-color);
}

.logo-text span {
    display: block;
    font-size: 0.8rem;
    color: var(--accent-color);
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: block;
    padding: 0.8rem 1.2rem;
    color: var(--accent-color);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: var(--accent-color);
    color: var(--menu-bar-color);
}

/* Dropdown menu */
nav ul li .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--menu-bar-color);
    min-width: 220px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    flex-direction: column;
}

nav ul li .dropdown li {
    position: relative;
}

nav ul li .dropdown li a {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    text-transform: none;
    white-space: nowrap;
}

/* Arrow indicator for submenu items */
nav ul li .dropdown li.has-submenu > a::after {
    content: '›';
    float: right;
    margin-left: 0.5rem;
}

nav ul li:hover > .dropdown {
    display: flex;
}

/* Nested submenu (flyout) */
nav ul li .dropdown .submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: var(--menu-bar-color);
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 1002;
}

nav ul li .dropdown .submenu li a {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

nav ul li .dropdown li.has-submenu:hover > .submenu {
    display: block;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===========================================
   Hero Section (Main Page)
   =========================================== */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 2rem;
}

.hero-signature {
    max-width: 400px;
    margin-bottom: 2rem;
}

.hero-quote {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    font-family: var(--font-artwork);
    font-size: 3.5rem;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 3;
}

/* ===========================================
   Quick Menu (Home Page)
   =========================================== */
.quick-menu {
    background-color: var(--menu-bar-color);
    padding: 1.5rem 0;
}

.quick-menu-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.quick-menu a {
    color: var(--accent-color);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.quick-menu a:hover {
    border-color: var(--accent-color);
}

/* ===========================================
   Gallery Shortcuts (Home Page)
   =========================================== */
.gallery-shortcuts {
    padding: 4rem 2rem;
}

.gallery-shortcuts-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gallery-shortcut {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-shortcut img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-shortcut:hover img {
    transform: scale(1.05);
}

.gallery-shortcut-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 1rem 1rem;
    text-align: center;
}

.gallery-shortcut-overlay h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===========================================
   Page Content
   =========================================== */
.page-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.page-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    opacity: 0.9;
}

/* ===========================================
   Biography Page
   =========================================== */
.biography-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.biography-image {
    border-radius: 8px;
    overflow: hidden;
}

.biography-image img {
    width: 100%;
    height: auto;
    display: block;
}

.biography-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.biography-text p {
    margin-bottom: 1.5rem;
}

/* ===========================================
   Gallery Page
   =========================================== */
.gallery-nav {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.gallery-nav ul {
    list-style: none;
}

.gallery-nav > ul > li {
    margin-bottom: 0.5rem;
}

.gallery-nav a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--accent-color);
    font-weight: 500;
}

.gallery-nav a:hover {
    background-color: rgba(255, 204, 204, 0.1);
}

.gallery-nav .sub-menu {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.gallery-nav .sub-menu a {
    font-weight: normal;
    font-size: 0.9rem;
}

.gallery-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.gallery-section-title {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.gallery-theme {
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
}

.gallery-theme-title {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.gallery-theme-description {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.artwork-card {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artwork-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.artwork-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.artwork-info {
    padding: 1rem;
}

.artwork-title {
    font-family: var(--font-artwork);
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
}

.artwork-details {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.7;
}

/* ===========================================
   Carousel / Lightbox
   =========================================== */
.carousel-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.carousel-overlay.active {
    display: flex;
}

.carousel-container {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.carousel-image {
    max-width: 70vw;
    max-height: 70vh;
    object-fit: contain;
}

.carousel-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 3rem;
    cursor: pointer;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.carousel-btn:hover {
    transform: scale(1.1);
}

.carousel-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 2rem;
    cursor: pointer;
}

.carousel-info {
    text-align: center;
    margin-top: 1.5rem;
    padding: 0 1rem;
}

.carousel-info h3 {
    font-family: var(--font-artwork);
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.carousel-info p {
    color: var(--text-color);
    opacity: 0.8;
}

/* ===========================================
   News/Events Page
   =========================================== */
.events-section {
    margin-bottom: 4rem;
}

.events-section-title {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.event-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.event-info {
    padding: 1.5rem;
}

.event-title {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.event-date {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.event-location {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
}

/* Event Detail Modal */
.event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.event-modal.active {
    display: flex;
}

.event-modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: var(--bg-color);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.event-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-modal-info {
    padding: 2rem;
}

.event-modal-info h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.event-modal-info p {
    margin-bottom: 1rem;
}

.event-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 2rem;
    cursor: pointer;
}

/* Permanent exhibition marker */
.permanent-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--menu-bar-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

/* ===========================================
   Contact Page
   =========================================== */
.contact-section {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 4px solid var(--accent-color);
}

.contact-name {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.contact-location {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.contact-info {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.contact-info a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 36px;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--accent-color);
    border: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--menu-bar-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 204, 204, 0.3);
    opacity: 1;
}

.social-links svg {
    width: 32px;
    height: 32px;
}

.contact-email-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--menu-bar-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-email-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 204, 204, 0.3);
    opacity: 1;
}

/* ===========================================
   Legal Mentions & Mecenat Pages
   =========================================== */
.legal-content, .mecenat-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-content h2, .mecenat-content h2 {
    color: var(--accent-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-content p, .mecenat-content p {
    margin-bottom: 1rem;
}

.legal-content a, .mecenat-content a {
    word-break: break-word;
}

.highlight-box {
    background-color: rgba(255, 204, 204, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

/* ===========================================
   Footer
   =========================================== */
footer {
    background-color: var(--accent-color);
    color: var(--menu-bar-color);
    padding: 1.5rem 2rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--menu-bar-color);
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ===========================================
   Responsive Design
   =========================================== */
@media (max-width: 1024px) {
    .gallery-shortcuts-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .biography-section {
        grid-template-columns: 1fr;
    }
    
    .biography-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .event-modal-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav {
        display: none;
        width: 100%;
        order: 3;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    nav ul li .dropdown {
        position: static;
        display: none;
        box-shadow: none;
        flex-direction: column;
    }
    
    nav ul li.dropdown-open .dropdown {
        display: flex;
    }
    
    /* Mobile submenu styles */
    nav ul li .dropdown .submenu {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        display: none;
    }
    
    nav ul li .dropdown li.has-submenu.submenu-open > .submenu {
        display: block;
    }
    
    nav ul li .dropdown li.has-submenu > a::after {
        content: '+';
    }
    
    nav ul li .dropdown li.has-submenu.submenu-open > a::after {
        content: '−';
    }
    
    .hero {
        height: 60vh;
    }
    
    .hero-quote {
        font-size: 2rem;
    }
    
    .gallery-shortcuts-container {
        grid-template-columns: 1fr;
    }
    
    .quick-menu-container {
        gap: 1rem;
    }
    
    .quick-menu a {
        font-size: 0.9rem;
        padding: 0.3rem 0.5rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .carousel-image {
        max-width: 90vw;
        max-height: 60vh;
    }
    
    .carousel-btn {
        font-size: 2rem;
        padding: 0.5rem;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}
