        :root {
            --primary-color: #d4af37;
            --secondary-color: #333;
            --background-color: #fff;
            --light-gray: #f9f9f9;
            --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
        }

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

        html, body {
            width: 100vw;
            max-width: 100vw;
            overflow-x: hidden; /* Empêche le scroll horizontal et masque la barre blanche */
        }

        body {
            font-family: 'Montserrat', sans-serif;
            line-height: 1.6;
            color: var(--secondary-color);
            background-color: var(--background-color);
        }

        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 2rem;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            background-color: rgba(255, 255, 255, 0.9);
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 700;
        }

        .contact-info {
            display: none;
        }

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

        nav ul li {
            margin-left: 1.5rem;
        }

        nav ul li a {
            text-decoration: none;
            color: var(--secondary-color);
            font-weight: 500;
            transition: var(--transition);
        }

        nav ul li a:hover {
            color: var(--primary-color);
        }

        .menu-toggle {
            display: none;
            cursor: pointer;
        }

        .hero {
            height: 80vh;
            background-image: url('https://serge-henri.com/images/reportages/aix.JPG');
            background-size: cover;
            background-position: center;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: var(--background-color);
        }

        .hero::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
        }

        .hero-content {
            position: relative;
            z-index: 1;
            padding: 0 1rem;
        }

        .hero h1 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .btn {
            display: inline-block;
            background-color: var(--primary-color);
            color: var(--background-color);
            padding: 0.8rem 1.5rem;
            text-decoration: none;
            border-radius: 4px;
            font-weight: 700;
            transition: var(--transition);
        }

        .btn:hover {
            background-color: #b8982b;
        }

        .section {
            padding: 4rem 2rem;
        }

        .section h2 {
            text-align: center;
            font-size: 2rem;
            margin-bottom: 2rem;
            color: var(--secondary-color);
        }

        .year-selector {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            margin-bottom: 2rem;
            width: 100%;
        }

        .year-selector label {
            margin-bottom: 0.5em;
            font-weight: 600;
            color: var(--secondary-color);
            font-size: 1.1em;
            letter-spacing: 1px;
        }

        #yearDropdown {
            padding: 10px;
            font-size: 20px;
            width: 120px;
            height: 50px;
            border-radius: 8px;
            border: 2px solid var(--primary-color);
            background: #fff;
            color: var(--secondary-color);
            text-align: center; /* Pour Firefox */
            text-align-last: center; /* Pour Chrome, Edge, Opera */
            -ms-text-align-last: center; /* Pour IE */
            -moz-text-align-last: center; /* Pour Firefox */
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
            transition: border-color 0.2s, box-shadow 0.2s;
            font-family: inherit;
        }

        #yearDropdown:focus {
            border-color: #b8982b;
            outline: none;
            box-shadow: 0 0 0 2px #d4af3740;
        }


        #yearDropdown option {
            font-size: 16px;
        }

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

        .gallery-item {
            position: relative;
            overflow: hidden;
            border-radius: 4px;
            box-shadow: var(--shadow);
            transition: var(--transition);
            cursor: pointer;
            text-align: center;
        }

        .image-number {
            margin-top: 0.5em;
            font-size: 1.1em;
            font-weight: 600;
            color: var(--secondary-color);
            letter-spacing: 0.05em;
            opacity: 0.85;
            transition: color 0.2s;
        }

        .gallery-item:hover .image-number {
            color: var(--primary-color);
        }
        .gallery-item:hover {
            transform: scale(1.03);
        }

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

        .gallery-item h3 {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: rgba(0, 0, 0, 0.7);
            color: var(--background-color);
            padding: 0.5rem;
            margin: 0;
            text-align: center;
        }

        footer {
            background-color: var(--secondary-color);
            color: var(--background-color);
            padding: 2rem;
            text-align: center;
        }

        .footer-links, .social-links {
            display: flex;
            list-style: none;
            justify-content: center;
            gap: 1rem;
            margin: 1rem 0;
        }

        .footer-links li a, .social-links li a {
            color: var(--background-color);
            text-decoration: none;
        }

        /* Modal styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1001;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            background-color: rgb(160, 160, 160);
            width: 80%;
            height: 90%;
            border-radius: 10px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .modal-image {
            max-width: 80%;
            max-height: 80%;
            display: block;
        }

        .close {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 24px;
            font-weight: bold;
            cursor: pointer;
            color: #333;
        }

        .arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 50px;
            height: 50px;
            background-color: #ccc;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            font-size: 30px;
            color: white;
        }

        .left-arrow {
            left: 30px;
        }

        .right-arrow {
            right: 30px;
        }

        .image-counter {
            position: absolute;
            bottom: 20px;
            font-size: 16px;
            color: #333;
        }


        .custom-select label {
            margin-bottom: 0.5em;
            font-weight: 600;
            color: var(--secondary-color);
            font-size: 1.1em;
            letter-spacing: 1px;
        }

        .custom-select select {
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            width: 100%;
            padding: 0.7em 2.5em 0.7em 1em;
            background: #fff;
            border: 2px solid var(--primary-color);
            border-radius: 0.5em;
            font-size: 1.1em;
            color: var(--secondary-color);
            cursor: pointer;
            transition: border-color 0.2s, box-shadow 0.2s;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
            font-family: inherit;
        }

        .custom-select select:focus {
            border-color: #b8982b;
            outline: none;
            box-shadow: 0 0 0 2px #d4af3740;
        }

        .custom-select::after {
            content: '';
            position: absolute;
            top: 66%;
            right: 1.2em;
            width: 1em;
            height: 0.6em;
            pointer-events: none;
            background: url('data:image/svg+xml;utf8,<svg fill="black" height="10" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M0 0l8 8 8-8"/></svg>') no-repeat center/contain;
            transform: translateY(-50%);
            opacity: 0.4;
        }

        .custom-select select:hover, .custom-select select:active {
            border-color: #b8982b;
        }

@media (prefers-color-scheme: dark) {
    .custom-select select {
        background: #222;
        color: #fff;
        border-color: #d4af37;
    }
    .custom-select label {
        color: #fff;
    }
    .custom-select::after {
        background: url('data:image/svg+xml;utf8,<svg fill="white" height="10" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M0 0l8 8 8-8"/></svg>') no-repeat center/contain;
        opacity: 0.7;
    }
}


@media (max-width: 1000px) {
    .contact-info {
        display: block;
        text-align: center;
        margin-top: 1rem;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.9);
        padding: 1rem;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.active + ul {
        display: flex;
    }

    .arrow {
        top: auto;
        bottom: 30px;
        transform: none;
        width: 40px;
        height: 40px;
        font-size: 24px;
/* Optionnel : réduire la taille sur mobile */
    }
    .left-arrow {
        left: 10%;
        right: auto;
    }
    .right-arrow {
        right: 10%;
        left: auto;
    }
    .image-counter {
        position: absolute;
        bottom: 5%;
        font-size: 16px;
        color: #333;
    }
}
.logo-desktop {
  display: inline;
}
.logo-mobile {
  display: none;
}

@media screen and (max-width: 700px) {
  .logo-desktop {
    display: none;
  }
  .logo-mobile {
    display: inline;
  }
}

#scrollToTopButton {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 2000;
  display: none; /* caché par défaut */
  transition: opacity 0.3s;
  opacity: 0.8;
}
#scrollToTopButton:hover {
  opacity: 1;
}

/* Masquer sur mobile/tablette */
@media (max-width: 900px) {
  #scrollToTopButton {
    display: none !important;
  }
}

