/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #0c0c0c;
    --text-color: #e0e0e0;
    --header-bg: #ffffff;
    --nav-bg: #2d2d2d;
    --card-bg: #333;
    --border-color: #444;
    --accent-color: #b8946a;
    --modal-bg: rgba(0,0,0,0.95);
    --footer-bg: #000000;
    --footer-text: #e0e0e0;
    --title-color: #000000;
    --bio-text-color: #e0e0e0;
    --nav-text-color: white;
    --bio-title-color: #e0e0e0;
    --bio-date-color: #b8946a;
}

[data-theme="dark"] {
    /* Mode sombre */
    --bg-color: #0c0c0c;
    --text-color: #e0e0e0;
    --header-bg: #ffffff;
    --nav-bg: #2d2d2d;
    --card-bg: #333;
    --border-color: #444;
    --accent-color: #b8946a;
    --modal-bg: rgba(0,0,0,0.95);
    --footer-bg: #000000;
    --footer-text: #e0e0e0;
    --title-color: #000000;
    --bio-text-color: #e0e0e0;
    --nav-text-color: white;
    --bio-title-color: #e0e0e0;
    --bio-date-color: #b8946a;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* Header */
header {
    padding: 60px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.05)), url('img/background-header.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--text-color);
    margin-bottom: 0;
    min-height: 12vh;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.artist-profile {
    display: flex;
    align-items: center;
    gap: 50px;
}

.artist-image {
    flex-shrink: 0;
    display: none;
}

.artist-image img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
}

.artist-info {
    flex: 1;
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.header-sculpture {
    display: none;
}

.header-sculpture img {
    max-width: 60px;
}

header h1 {
    font-family: 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: normal;
    letter-spacing: 4px;
    color: var(--title-color);
    text-shadow: none;
    line-height: 1.2;
    text-align: left;
}

.location {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.art-type {
    font-size: 1rem;
    color: #8b7355;
    margin-bottom: 30px;
    font-style: italic;
}

.artist-description {
    margin-bottom: 20px;
}

.artist-description p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 18px;
    text-align: justify;
    font-style: italic;
}

/* Navigation */
nav {
    background-color: #ffffff;
    /* background:linear-gradient(to bottom, #236db8, #232f76);  */
    position: sticky;
    top: 0;
    color: #ffffff;
    z-index: 100;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.menu-toggle {
    display: none;
    color: #ffffff;
    background: none;
    border: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    padding: 0;
    margin: 5px 25px;
    position: absolute;
    right: 0;
    top: 10px;
    margin-top: 12px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: #2c3e50;
    transition: all 0.2s ease;
    border-radius: 1px;
    transform-origin: center;
}

/* En mode sombre, les lignes du hamburger menu sont plus claires */
[data-theme="dark"] .hamburger-line {
    background-color: #e0e0e0;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
    gap: 10px;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 5px 25px;
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

nav a:hover,
nav a.active {
    color: var(--accent-color) !important;
}

/* Main content */
main {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    box-sizing: border-box;
}

.content-section {
    width: 100%;
    max-width: 100%;
    padding: 30px 0;
    box-sizing: border-box;
    overflow-x: hidden;
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.content-section.active {
    display: flex;
    flex-direction: column;
    flex: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 {
    font-family: 'Times New Roman', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: #2a2a2a;
    font-weight: normal;
    letter-spacing: 1px;
}

/* Gallery */
#gallery {
    position: relative;
    width: 100%;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

.gallery-grid > * {
    width: 100%;
    box-sizing: border-box;
    max-width: 100vw;
}

/* Carrousel - Base */
.carousel {
    width: 100%;
    max-width: 100vw;
    margin: 0 0 30px 0;
    position: relative;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
}

.carousel-nav {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(184, 148, 106, 0.3);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: clamp(30px, 6vw, 45px);
    height: clamp(30px, 6vw, 45px);
    font-size: clamp(0.9rem, 2.5vw, 1.3rem);
    opacity: 0.6;
    pointer-events: auto;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
    background: rgba(184, 148, 106, 0.7);
    opacity: 1;
}

.carousel-btn.prev {
    margin-left: 10px;
}

.carousel-btn.next {
    margin-right: 10px;
}

.carousel-counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    font-weight: 500;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 20;
}

/* Structure de base du carrousel */
.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

/* Miniatures du carrousel - disposition par défaut (en bas) */
.carousel-thumbnails {
    display: flex;
    flex-direction: row;
    gap: clamp(4px, 1.5vw, 8px);
    margin-top: 15px;
    padding: 0 5px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    order: 2; /* Assure que les miniatures sont après l'image */
}

.carousel-item {
    display: none;
    text-align: center;
    padding: clamp(8px, 2vw, 15px);
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    order: 1; /* Assure que l'image est avant les miniatures */
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: clamp(300px, 65vh, 800px);
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    box-sizing: border-box;
    position: relative;
}

.carousel-item img::after {
    content: "🔍";
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px;
    border-radius: 50%;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.carousel-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(184, 148, 106, 0.5);
}

.carousel-item img:hover::after {
    opacity: 1;
}

.carousel-item-info {
    margin-top: 10px;
    padding: 8px;
    box-sizing: border-box;
    max-width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-item-info h3 {
    color: var(--text-color);
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    margin-bottom: 5px;
    word-wrap: break-word;
}

.carousel-item-info .painting-format {
    color: var(--accent-color);
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    margin: 0 40px;
    word-wrap: break-word;
    display: inline-block;
    position: relative;
    z-index: 1;
}

/* Repositionnement des flèches */
.carousel-nav {
    position: relative;
    width: auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    margin: 0 auto;
    min-width: 150px;
}

.carousel-item-info {
    margin-top: 10px;
    padding: 8px;
    box-sizing: border-box;
    max-width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-item-info h3 {
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
}

.carousel-item-info .painting-format {
    color: var(--accent-color);
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    margin: 0;
    padding: 0 10px;
    word-wrap: break-word;
    display: inline-block;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Repositionnement des flèches */
.carousel-btn {
    background: rgba(184, 148, 106, 0.3);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: clamp(24px, 5vw, 30px);
    height: clamp(24px, 5vw, 30px);
    font-size: clamp(0.8rem, 2vw, 1.1rem);
    opacity: 0.4;
    pointer-events: auto;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.carousel-btn.prev {
    margin-right: 5px;
}

.carousel-btn.next {
    margin-left: 5px;
}

/* Miniatures du carrousel */
.carousel-thumbnails {
    display: flex;
    gap: clamp(4px, 1.5vw, 8px);
    margin-top: 15px;
    padding: 0 5px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    justify-content: flex-start; /* Commencer depuis le début pour voir la première miniature */
}

/* Style de la barre de scroll pour Webkit */
.carousel-thumbnails::-webkit-scrollbar {
    height: 3px;
}

.carousel-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.carousel-thumbnails::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    opacity: 0.6;
}

.carousel-thumbnails::-webkit-scrollbar-thumb:hover {
    opacity: 1;
}

.carousel-thumbnail {
    width: clamp(35px, 10vw, 60px);
    height: auto;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: opacity 0.3s ease, border-color 0.3s ease;
    opacity: 0.6;
    flex-shrink: 0;
}

.carousel-thumbnail:hover {
    opacity: 0.8;
    /* Supprimer la transformation qui cause le problème */
    /* transform: scale(1.05); */
}

.carousel-thumbnail.active {
    border-color: var(--accent-color);
    border-width: 1px;
    opacity: 1;
}

.carousel-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.theme-info {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    grid-column: 1 / -1;
}

.theme-info p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

.gallery-item {
    background: var(--card-bg);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    break-inside: avoid;
    margin-bottom: 20px;
    display: inline-block;
    width: 100%;
}

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

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 0;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.gallery-item-info {
    padding: 4px 10px;
    text-align: center;
    background-color: #000000
}

.gallery-item-info h3 {
    font-family: 'Times New Roman', serif;
    font-size: 1.1rem;
    margin-bottom: 3px;
    color: #242424;
}

.painting-format {
    color: #908170;
    font-style: normal;
    font-size: 0.8rem;
    margin: 2px 0;
    font-weight: 500;
}

.painting-description {
    color: #666;
    font-style: italic;
    font-size: 0.75rem;
    margin: 0;
}

/* About section */
.about-content {
    display: flex;
    flex-direction: row;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: flex-start;
}

.biography {
    flex: 2;
    min-width: 0;
}

.artist-photo {
    flex: 1;
    text-align: center;
    min-width: 300px;
}

.artist-photo-mobile {
    display: none;
}

.artist-photo img {
    width: 450px;
    max-width: 100%;
}

.artist-photo-mobile img {
    width: 300px;
    max-width: 90%;
}

.intro-text {
    margin-bottom: 40px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(184, 148, 106, 0.05), rgba(184, 148, 106, 0.02));
    border-left: 3px solid var(--accent-color);
    position: relative;
}

.intro-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--bio-text-color);
    margin-bottom: 15px;
    text-align: justify;
    font-family: 'Georgia', serif;
}

.intro-text p:last-of-type {
    margin-bottom: 0;
}

.intro-text .author-signature {
    text-align: right;
    margin-top: 20px;
    font-style: normal;
    color: var(--accent-color);
    font-size: 0.95rem;
}

.biography h3 {
    font-family: 'Times New Roman', serif;
    font-size: 1.8rem;
    color: var(--bio-title-color);
    margin-bottom: 30px;
    font-weight: normal;
    letter-spacing: 1px;
}

.bio-section {
    margin-bottom: 30px;
    padding-bottom: 0;
    margin-top: 30px;
}

.bio-section:last-child {
    border-bottom: none;
}

.bio-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--bio-text-color);
    margin-bottom: 4px;
    text-align: left;
}

.bio-section p strong {
    color: var(--bio-date-color);
    font-weight: 600;
}

.expo-section-wrapper {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
    width: 100%;
}

.expo-section {
    margin-left: 0px;
    padding: 0 0px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.expo-text {
    flex: 2;
    min-width: 0;
}

.expo-image {
    flex: 1;
    text-align: center;
}

.expo-image img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.artistic-vision {
    background-color: #f9f9f9;
    padding: 25px;
}

.artistic-vision p {
    font-style: italic;
    color: var(--bio-text-color);
    text-align: left;
}

/* Actualités */
.actualites-simple {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.actualite-en-cours,
.actualite-a-venir {
    text-align: center;
    padding: 30px;
    border-bottom: 2px solid var(--accent-color);
}

.actualite-en-cours:last-child,
.actualite-a-venir:last-child {
    border-bottom: none;
}

.actualite-en-cours h3,
.actualite-a-venir h3 {
    font-family: 'Times New Roman', serif;
    font-size: 1.6rem;
    margin-bottom: 25px;
    font-weight: normal;
    letter-spacing: 2px;
}

.actualite-en-cours p,
.actualite-a-venir p {
    line-height: 1.8;
    font-size: 1.1rem;
}

.actualite-en-cours strong,
.actualite-a-venir strong {
    color: var(--text-color);
    font-size: 1.2rem;
}

.actualite-en-cours em,
.actualite-a-venir em {
    font-style: italic;
    font-size: 1rem;
}

/* Contact */
.contact-info {
    max-width: 600px;
    margin: 80px auto 80px auto;
    padding: 40px;
    border: 3px solid #917655;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-social-links {
    margin-top: 30px;
    text-align: center;
}

.contact-social-links p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.contact-social-links .social-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.contact-social-links .social-icons a {
    color: var(--text-color);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: transparent;
    text-decoration: none;
}

.contact-social-links .social-icons a:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 148, 106, 0.3);
}

.contact-social-links .social-icons .fa-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
}

.contact-social-links .social-icons .fa-facebook:hover {
    background-color: #1877f2;
    color: white;
}

.contact-social-links .social-icons .artmajeur-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(1) invert(0);
    transition: all 0.3s ease;
}

.contact-social-links .social-icons a:hover .artmajeur-logo {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-bg);
    animation: fadeIn 0.6s ease;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    margin: 0;
}

.modal-caption {
    text-align: center;
    color: white;
    padding: 20px;
    font-size: 1.2rem;
    font-family: 'Times New Roman', serif;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #8b7355;
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.nav-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: #ffffff;
    text-align: center;
    padding: 30px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-content p {
    margin: 0;
}

.social-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-links .fa-instagram:hover {
    color: #e4405f;
}

.social-links .fa-facebook:hover {
    color: #1877f2;
}

.social-links .artmajeur-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(1) invert(0);
    transition: all 0.3s ease;
}

.social-links a:hover .artmajeur-logo {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    main {
        padding: 30px 5px;
        flex: 1;
    }
    
    .content-section {
        min-height: calc(100vh - 400px);
    }
    
    #contact.active {
        min-height: calc(100vh - 350px);
    }
    
    header {
        padding: 60px 0;
    }
    
    .artist-profile {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        text-align: center;
    }
    
    .artist-info {
        display: block;
        gap: 0;
    }
    
    .header-sculpture {
        margin-bottom: 20px;
    }
    
    .header-sculpture img {
        max-width: 100px;
    }
    
    header h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
        text-align: center;
    }
    
    .location {
        font-size: 1rem;
    }
    
    .art-type {
        font-size: 0.9rem;
    }
    
    .artist-description p {
        text-align: center;
        font-size: 0.95rem;
    }
    
    /* Mobile Navigation */
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        align-items: center;
        border-bottom: 1px solid black;
        gap: 0;
        z-index: 1000;
        visibility: hidden;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        opacity: 0;
        transform: translateY(-15px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
    }
    
    .nav-menu.active {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
    
    nav a {
        padding: 12px 20px;
        width: 100%;
        text-align: center;
        border-bottom: none;
        border-left: 2px solid transparent;
        border-bottom: 1px solid #f5f5f5;
    }
    
    nav li {
        width: 100%;
    }
    
    nav a:hover, nav a.active {
        border-left-color: #282828;
        background-color: #fafafa;
    }
    
    /* En mode sombre sur mobile, les liens de navigation sont noirs */
    [data-theme="dark"] nav a {
        color: #111 !important;
    }
    
    /* En mode sombre sur mobile, les liens de navigation sont noirs - règle plus spécifique */
    [data-theme="dark"] .nav-menu a {
        color: #111 !important;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        column-count: 2;
        column-gap: 15px;
        padding: 15px 0;
    }
    
    .gallery-themes-nav {
        gap: 8px;
        margin: 20px 0;
        position: static;
        align-items: center;
        flex-direction: row;
        justify-content: center;
    }
    
    .theme-filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-width: 80px;
    }
    
    .about-content {
        flex-direction: column;
        gap: 25px;
    }
    
    .biography {
        flex: none;
    }
    
    .artist-photo {
        display: none;
    }
    
    .artist-photo-mobile {
        display: block;
        text-align: center;
        margin: 20px 0;
    }
    
    .expo-section-wrapper {
        transform: translateY(-40px);
    }
    
    .expo-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .expo-image {
        order: 2; /* Image après le texte sur petits écrans */
    }
    
    .expo-text {
        order: 1; /* Texte avant l'image sur petits écrans */
    }
    
    .intro-text {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .intro-text p {
        font-size: 1rem;
        text-align: left;
    }
}

@media (max-width: 480px) {
    header {
        padding: 30px 0;
    }
    
    .artist-profile {
        gap: 20px;
    }
    
    .artist-image img {
        display: none;
        width: 120px;
        height: 120px;
    }
    
    header h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
        text-align: center;
    }
    
    .location {
        font-size: 0.9rem;
    }
    
    .art-type {
        font-size: 0.8rem;
    }
    
    .artist-description p {
        font-size: 0.9rem;
    }
    
    nav a {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        column-count: 1;
        column-gap: 0;
    }
    
    .about-content {
        flex-direction: column;
        gap: 25px;
    }
    
    .biography {
        flex: none;
    }
    
    .artist-photo {
        display: none;
    }
    
    .artist-photo-mobile {
        display: block;
        text-align: center;
        margin: 20px 0;
    }
    
    .expo-section-wrapper {
        transform: translateY(-40px);
    }
    
    .expo-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .expo-image {
        order: 2; /* Image après le texte sur petits écrans */
    }
    
    .expo-text {
        order: 1; /* Texte avant l'image sur petits écrans */
    }
    
    .intro-text {
        padding: 15px;
        margin-bottom: 25px;
    }
    
    .intro-text p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .intro-text .author-signature {
        font-size: 0.9rem;
        margin-top: 15px;
    }
    
    .contact-social-links .social-icons {
        gap: 15px;
    }
    
    .contact-social-links .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    

}

/* Contact section active styling */
#contact.active {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
}

.about-content, .gallery-grid, .contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.theme-toggle {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 2px solid var(--accent-color);
    color: var(--text-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    background-color: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

.theme-toggle .fa-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .fa-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .fa-sun {
    display: block;
}

/* En mode sombre, les liens de navigation sont blancs par défaut sur grand écran */
@media (min-width: 769px) {
    [data-theme="dark"] nav a {
        color: white !important;
    }
    
    /* Règle plus spécifique pour surcharger les autres */
    [data-theme="dark"] nav .nav-menu a {
        color: rgb(0, 0, 0) !important;
    }
}

/* Mais au survol et à la sélection, ils deviennent dorés même en mode sombre */
[data-theme="dark"] nav a:hover,
[data-theme="dark"] nav a.active {
    color: var(--accent-color) !important;
}

/* En mode sombre sur mobile, les liens de navigation sont noirs - règle plus spécifique */
[data-theme="dark"] .nav-menu a {
    color: #111 !important;
}

/* Règle ultra-spécifique pour mobile en mode sombre */
@media (max-width: 768px) {
    [data-theme="dark"] nav .nav-menu a {
        color: #111 !important;
    }
} 

/* Media queries simplifiées pour la galerie */

/* Ajustements pour mobiles très petits */
@media screen and (max-width: 480px) {
    main {
        padding: 20px 0;
    }
    
    .content-section {
        padding: 10px 0;
    }
    
    .gallery-grid {
        padding: 0;
        margin: 0;
        margin-top: 30px;
        width: 100%;
    }
    
    .carousel {
        margin: 0 0 20px 0;
        padding: 5px;
        width: 100%;
    }
    
    .section-title {
        margin: 15px 0 10px 0;
        padding: 0 5px 6px 5px;
        font-size: clamp(1.2rem, 5vw, 1.4rem);
    }
    
    .carousel-nav {
        gap: 8px;
        margin-bottom: 8px;
        padding: 0 2px;
    }
    
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .carousel-counter {
        min-width: 50px;
        font-size: 0.9rem;
        display: none;
    }
    
    .carousel-item {
        padding: 5px;
    }
    

    
    .carousel-thumbnails {
        padding: 0 2px;
        margin-top: 8px;
        gap: 4px;
    }
    
    .carousel-thumbnail {
        width: 35px;
        height: auto;
        border-width: 1px;
    }
}

/* Ajustements pour petits mobiles */
@media screen and (min-width: 481px) and (max-width: 767px) {
    main {
        padding: 25px 5px;
    }
    
    .content-section {
        padding: 15px 0;
    }
    
    .gallery-grid {
        padding: 0;
    }
    
    .carousel {
        margin: 0 0 25px 0;
        padding: 8px;
    }
    
    .section-title {
        margin: 20px 0 12px 0;
        padding: 0 8px 6px 8px;
    }
    
    .carousel-nav {
        gap: 12px;
        margin-bottom: 12px;
        padding: 0 5px;
    }
    
    .carousel-item {
        padding: 8px;
    }
    
    .carousel-thumbnails {
        padding: 0 5px;
        margin-top: 10px;
    }
}

/* Ajustements pour tablettes */
@media screen and (min-width: 768px) {
    .carousel {
        padding: 15px;
        margin: 0 0 5px 0;
    }
    
    .section-title {
        margin: 30px 0 20px 0;
        padding: 0 15px 10px 15px;
    }
    
    .carousel-nav {
        gap: 20px;
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .carousel-item {
        padding: 12px;
    }
    
    .carousel-thumbnails {
        padding: 0 10px;
        margin-top: 15px;
        gap: 6px;
    }
}

/* Ajustements pour grands écrans */
@media screen and (min-width: 1024px) {
    .carousel {
        padding: 20px;
        margin: 0 0 10px 0;
        max-width: 1200px;
    }
    
    .section-title {
        margin: 40px 0 25px 0;
        padding: 0 20px 12px 20px;
        max-width: 800px;
    }
    
    .carousel-nav {
        gap: 25px;
    }
    
    .carousel-item {
        padding: 15px;
    }
    
    .carousel-thumbnails {
        padding: 0 15px;
        margin-top: 20px;
        gap: 8px;
    }
} 

/* Règles globales pour assurer la responsivité */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

main {
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Règles pour les très petits écrans */
@media screen and (max-width: 480px) {
    .carousel-nav {
        margin-bottom: 8px;
        gap: 10px;
    }
    
    .carousel-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        opacity: 0.5;
    }
    
    .carousel-counter {
        min-width: 40px;
        font-size: 0.8rem;
        padding: 3px 8px;
        display: none;
    }
    
    .carousel-item {
        padding: 3px;
    }
    
    .carousel-thumbnails {
        gap: 3px;
    }
    
    .carousel-thumbnail {
        width: 45px;
        height: auto;
    }
    
    .section-title {
        font-size: 1.2rem;
        margin: 10px 0 8px 0;
        padding: 0 3px 4px 3px;
    }
}

/* Styles pour rendre les flèches plus discrètes */
.carousel:hover .carousel-btn {
    opacity: 0.8;
}

.carousel-btn {
    transition: opacity 0.3s ease, background-color 0.3s ease;
    opacity: 0.4;
} 

.section-title {
    text-align: center;
    color: var(--text-color);
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin: 20px 0 15px 0;
    padding: 0 10px 8px 10px;
    font-weight: 300;
    letter-spacing: 2px;
    /* border-bottom: 2px solid var(--accent-color); */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    white-space: normal;
    word-wrap: break-word;
}

/* Media queries pour le positionnement des flèches */
@media screen and (max-width: 768px) {
    .carousel-item-info {
        padding: 8px;
    }
    
    .carousel-nav {
        min-width: 120px;
    }
}

@media screen and (max-width: 480px) {
    .carousel-nav {
        min-width: 100px;
    }
    
    .carousel-btn {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
} 

/* Disposition verticale des miniatures pour grands écrans */
@media screen and (min-width: 1024px) {
    .carousel-container {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .carousel-thumbnails {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 160px;
        height: auto;
        max-height: 500px;
        overflow-x: hidden;
        overflow-y: auto;
        margin: 0 0 0 15px;
        padding: 0 5px;
        gap: 8px;
        position: sticky;
        top: 20px;
        order: 3; /* Miniatures à droite sur grands écrans */
        justify-items: center; /* Centrer les miniatures dans la grille */
        align-items: center; /* Centrer verticalement */
    }
    
    .carousel-thumbnail {
        width: 70px;
        height: auto;
        margin: 0;
        /* Assurer que les miniatures restent en place au survol */
        transition: opacity 0.3s ease, border-color 0.3s ease;
    }
    
    .carousel-item {
        width: calc(100% - 175px);
        margin-right: auto;
        margin-left: 0;
        order: 1; /* Image en premier sur grands écrans */
    }
    
    /* Styles pour la barre de défilement verticale */
    .carousel-thumbnails::-webkit-scrollbar {
        width: 4px;
        height: auto;
    }
    
    .carousel-thumbnails::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 2px;
    }
} 

/* Suppression des styles pour les thumbnails preview */
/* .carousel-thumbnail.preview-thumbnail {
    border: 2px solid var(--accent-color);
    opacity: 0.9;
    position: relative;
}

.carousel-thumbnail.preview-thumbnail::after {
    content: "★";
    position: absolute;
    top: 2px;
    right: 2px;
    color: var(--accent-color);
    font-size: 12px;
    text-shadow: 0 0 2px rgba(0,0,0,0.8);
}

.carousel-thumbnail.preview-thumbnail.active {
    border-width: 3px;
    opacity: 1;
} */ 