/* Reset CSS */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'EB Garamond', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'EB Garamond', serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo h1 {
    color: #000000;
    font-size: 1.5rem;
    margin: 0;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 1rem;
}

nav ul li a {
    color: #000000;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    transition: background-color 0.3s;
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: #f0f0f0;
}

nav a {
    font-family: 'EB Garamond', serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

nav a:hover {
    color: #d4af37;
}

/* Hero Image */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.homepage .hero {
    height: calc(100vh - 80px);
    margin-top: 80px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
}

.hero-text {
    position: relative;
    text-align: center;
    color: white;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 2rem;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    font-family: 'EB Garamond', serif;
    font-weight: 300;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.discover-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    font-family: 'EB Garamond', serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background-color: transparent;
    cursor: pointer;
}

.discover-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    transform: translateY(-2px);
}

/* Main Content */
main {
    margin-top: 0;
    padding-top: 0;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.card p {
    color: #666;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 2rem;
    text-align: center;
}

/* Back Arrow */
.back-arrow {
    position: fixed;
    top: 120px;
    left: 30px;
    font-size: 2.5rem;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.back-arrow:hover {
    transform: scale(1.1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    font-size: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.back-to-top:hover {
    background-color: #2980b9;
}

/* Mobile Menu Button */
.menu-button {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 20px;
}

@media (max-width: 768px) {
    .menu-button {
        display: block;
    }

    nav {
        padding: 0;
    }

    nav ul {
        display: none;
        width: 100%;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #2c3e50;
        padding: 1rem 0;
    }

    nav ul.active {
        display: flex;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }
}

/* Galerie */
.gallery {
    padding: 120px 20px 40px;
    background-color: #f5f5f5;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #333;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    margin-top: 110px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .caption {
    transform: translateY(0);
}

.gallery-item h3 {
    padding: 1rem;
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.gallery-item p {
    padding: 0 1rem 1rem;
    margin: 0;
    color: #666;
}

#gallery-section {
    background: #fff;
    position: relative;
    z-index: 1;
    padding-bottom: 40px;
}

/* Homepage Background */
.homepage {
    background-image: url('https://i.ibb.co/2m7zzw2/Galerie-d-Apollon-Louvre.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    margin: 0;
    padding: 0;
}

.homepage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.homepage .hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 2rem;
}

.homepage header {
    background-color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 3;
}

/* Page Musique */
.musique-page {
    background-image: url('https://i.ibb.co/zVRhcQKy/52046.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

.musique-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.musique-page main {
    position: relative;
    z-index: 2;
}

.musique-page header {
    background-color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 3;
}

/* Style pour livres.html */
.livres-page {
    background-image: url('https://i.ibb.co/Z6337b5y/old-books-on-a-library-luoman.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

.livres-page main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.livres-page .hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.livres-page .hero h1,
.livres-page .hero p {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Style pour films.html */
.films-page {
    background-image: url('https://i.ibb.co/pjyVBMsZ/400-coups-c2a7100.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

.films-page main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.films-page .hero {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Style pour divers.html */
.divers-page {
    background-image: url('https://i.ibb.co/GmSnyMs/90b40ab15e3f991690a1c861fdb28c1104cd5252-1360x764-jpg.avif');
    background-size: 120% auto;
    background-position: center 50%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    height: 100vh;
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow: hidden;
}

.divers-page main::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Animation du texte */
.reveal-text {
    position: absolute;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    text-align: center;
    width: 100%;
    color: white;
    font-size: 1.2em;
    margin: 0;
    padding: 0 20px;
    z-index: 1;
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.horizontal-lines {
    position: relative;
    width: 100%;
    height: 2px;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.horizontal-lines::before,
.horizontal-lines::after {
    content: '';
    position: absolute;
    height: 2px;
    background-color: white;
    width: 0;
    transition: width 0.5s ease-in-out;
}

.horizontal-lines::before {
    left: 50%;
    transform: translateX(-100%);
}

.horizontal-lines::after {
    right: 50%;
    transform: translateX(100%);
}

.horizontal-lines.visible::before,
.horizontal-lines.visible::after {
    width: 45%;
}

/* Style pour architecture.html */
.architecture-page {
    background-image: url('https://i.ibb.co/Rmt3NRH/grand-palais-270715-web1500.png');
    background-size: 120% auto;
    background-position: center 0%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    height: 100vh;
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow: hidden;
}

.architecture-page main {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    height: 100vh;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow: hidden;
}

.architecture-page main::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* --- END OF STYLES --- */