body {
    font-family: 'Playfair Display', 'Georgia', serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #fafafa;
}

/* Header avec dégradé élégant */
header {
    background: linear-gradient(135deg, #2c3e7b 0%, #4a2c7a 100%);
    color: white;
    padding: 0.19rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-sizing: border-box;
}

/* Logo overlay centré au-dessus du header — taille originale, dépasse le header */
.header-logo-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: auto;
    width: auto;
    max-width: none;
    opacity: 1;
    pointer-events: none;
    z-index: 99999;
}

/* Compensation pour le header fixe */
main {
    padding-top: 52px;
}

header h1 {
    margin: 0;
    font-size: 0.9em;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: none;
    font-style: normal;
    flex-shrink: 0;
}

.logo-text {
    background: linear-gradient(135deg, #e8d5b7 0%, #f5ecd9 40%, #d4a574 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 2em;
    letter-spacing: 3px;
}

/* Wrapper droit : nav + bouton hamburger */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Bouton hamburger (caché sur desktop) */
.menu-toggle {
    font-size: 1.4rem;
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav li a {
    display: inline-block;
    padding: 4px 14px;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.98em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #e8d5b7;
    transition: width 0.3s ease;
}

nav li a:hover {
    color: #e8d5b7;
}

nav li a:hover::after {
    width: 80%;
}

/* Logo flottant centré par-dessus le header */
.floating-logo {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: auto;
    z-index: 1000;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

/* Titre mobile caché sur desktop */
.mobile-title {
    display: none;
}

/* Sections principales - style élégant et minimaliste */
main section {
    padding: 5rem 3rem;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

#contact {
    padding: 3rem 2rem;
}

/* Exposition section - design moderne widget glass */
#exposition {
    position: relative;
    min-height: 55vh;
    max-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.exposition-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.exposition-bg-image {
    width: 100%;
    height: 100%;
    background-image: url('IMG_20250311_112953.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(4px) brightness(0.6);
    transform: scale(1.05);
}

.exposition-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#exposition {
    align-items: center;
}

/* Widget principal glassmorphism */
.exposition-widget {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Header du widget */
.widget-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.widget-tag {
    background: linear-gradient(135deg, #e8d5b7 0%, #d4a574 100%);
    color: #2c3e7b;
    font-size: 0.7em;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.widget-dot {
    color: #e8d5b7;
    font-size: 0.6em;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Titre */
.exposition-widget h2 {
    color: white;
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   TITRES H2 — alignement sous header fixe (52px)
   ============================================ */
#gallery h2 {
    color: #2c3e7b;
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-align: center;
}

#contact h2 {
    color: white;
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-align: center;
}

/* Body avec infos */
.widget-body {
    margin-bottom: 0;
}

.widget-info-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1.2rem;
}

.widget-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(232, 213, 183, 0.25);
    border-radius: 24px;
    padding: 2rem 3rem;
    transition: all 0.3s ease;
    min-width: 260px;
}

.widget-info-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.widget-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.widget-label {
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(232, 213, 183, 0.9);
    font-weight: 600;
}

.widget-value {
    font-size: 1.5em;
    line-height: 1.4;
    color: white;
    font-weight: 600;
    letter-spacing: 0.8px;
}

/* Description */
.widget-description {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    font-size: 0.95em;
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive widget */
@media (max-width: 640px) {
    .exposition-widget {
        padding: 2rem 1.5rem;
    }
    
    .exposition-widget h2 {
        font-size: 1.8em;
    }
    
    .widget-info-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .widget-info-item {
        justify-content: center;
    }
}

.widget-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

/* ============================================
   À PROPOS — Design moderne image + texte
   ============================================ */

#about {
    background: linear-gradient(180deg, #fafafa 0%, #f3efe9 50%, #fafafa 100%);
}

.about-container h2 {
    color: #2c3e7b;
    font-size: 1.8em;
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-align: center;
}

.about-layout {
    display: flex;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

/* Colonne image */
.about-image-wrapper {
    flex-shrink: 0;
    width: 320px;
    position: relative;
}

.about-photo {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(44, 62, 123, 0.18);
    display: block;
}

/* Cadre décoratif derrière la photo */
.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(44, 62, 123, 0.15);
    border-radius: 16px;
    z-index: -1;
}

/* Groupe de liens sociaux sous la photo */
.social-links-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Lien social (Instagram + Facebook) */
.social-link-instagram {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-link-instagram:hover {
    transform: scale(1.1);
    opacity: 0.85;
}

.social-icon {
    width: 48px;
    height: auto;
    filter: drop-shadow(0 2px 6px rgba(44, 62, 123, 0.2));
}

/* Colonne texte */
.about-text-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-intro {
    font-size: 1.2em !important;
    color: #2c3e7b !important;
    font-style: italic;
    line-height: 1.6 !important;
    border-left: 3px solid #d4a574;
    padding-left: 1rem;
    text-align: center !important;
}

.about-text-content p {
    color: #222;
    text-align: center;
    max-width: none;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1em;
    font-weight: 900;
}

.about-closing {
    font-weight: 400 !important;
    color: #2c3e7b !important;
    font-size: 1.2em !important;
    font-style: italic;
    margin-top: 1rem !important;
}

/* Phrase mise en valeur avec guillemets beiges */
.about-highlight {
    font-size: 1.3em !important;
    color: #4a2c7a !important;
    font-style: italic !important;
    text-align: center !important;
    padding: 1.5rem 3rem 1.5rem 2rem !important;
    margin: 1.5rem auto !important;
    position: relative;
    border-top: 2px solid rgba(212, 165, 116, 0.4);
    border-bottom: 2px solid rgba(212, 165, 116, 0.4);
    background: linear-gradient(90deg, transparent, rgba(232, 213, 183, 0.1), transparent);
    font-weight: normal !important;
}

.about-intro {
    font-size: 1.2em !important;
    color: #2c3e7b !important;
    font-style: italic;
    line-height: 1.6 !important;
    border-left: 3px solid #d4a574;
    padding-left: 1rem;
    text-align: center !important;
    font-weight: normal !important;
}

.about-highlight::before {
    content: '\201C';
    position: absolute;
    left: -0.3rem;
    top: 0.8rem;
    font-size: 3em;
    color: rgba(212, 165, 116, 0.4);
    line-height: 1;
}

.about-highlight::after {
    content: '\201D';
    position: absolute;
    right: 1rem;
    bottom: -0.3rem;
    font-size: 3em;
    color: rgba(212, 165, 116, 0.4);
    line-height: 1;
}


/* Responsive About */
@media (max-width: 900px) {
    .about-layout {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .about-image-wrapper {
        width: 260px;
    }

    .about-text-content p,
    .about-intro {
        text-align: center !important;
    }
}

.gallery-subtitle {
    text-align: center !important;
    color: #4a2c7a !important;
    font-style: italic !important;
    font-size: 1.3em !important;
    margin-top: -0.8rem !important;
    margin-bottom: 1.5rem !important;
}

/* Section Contact — design amélioré */
#contact {
    background: linear-gradient(135deg, #2c3e7b 0%, #4a2c7a 50%, #6b3fa0 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top left, rgba(255,255,255,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at bottom right, rgba(232,213,183,0.1) 0%, transparent 60%);
    pointer-events: none;
}

#contact h2 {
    text-align: center;
    color: white;
    position: relative;
}

#contact form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

#contact label {
    font-weight: 400;
    margin-bottom: 0.2rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1.5px;
    font-size: 0.8em;
    text-transform: uppercase;
    text-align: center;
}

#contact input,
#contact textarea {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 0.9rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
}

#contact input::placeholder,
#contact textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#contact input:focus,
#contact textarea:focus {
    outline: none;
    border-color: rgba(232, 213, 183, 0.8);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(232, 213, 183, 0.15);
}

#contact textarea {
    min-height: 80px;
    resize: vertical;
    margin-top: -0.3rem;
}

#contact button {
    background: linear-gradient(135deg, #e8d5b7 0%, #d4a574 100%);
    color: #2c3e7b;
    border: none;
    padding: 14px 32px;
    font-size: 0.9em;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

#contact button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 165, 116, 0.5);
    background: linear-gradient(135deg, #f0dfc5 0%, #e0b88a 100%);
}

/* Footer avec dégradé sombre */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    text-align: center;
    padding: 0.1rem 2rem 0.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

footer p {
    margin: 0;
    font-size: 0.65em;
    color: white !important;
    opacity: 1 !important;
    line-height: 1.2;
}

/* Galerie - Layout moderne avec rangées */
.gallery-layout {
    max-width: 1200px;
    margin: 3rem auto 0;
}

.gallery-row {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Row top: 3 cards */
.gallery-row-top .theme-card {
    flex: 0 0 calc((1200px - 3 * 1.5rem) / 3);
    max-width: calc(33.33% - 1rem);
}

/* Row bottom: 4 cards */
.gallery-row-bottom .theme-card {
    flex: 0 0 calc((1200px - 4 * 1.5rem) / 4);
    max-width: calc(25% - 1.125rem);
}

/* Spacing between rows */
.gallery-row-bottom {
    margin-top: 1.5rem;
}

.theme-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.35s cubic-bezier(.25,.8,.25,1), box-shadow 0.35s ease;
}

.theme-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(44, 62, 123, 0.15);
}

/* Image avec overlay gradient */
.theme-preview-wrapper {
    position: relative;
    overflow: hidden;
}

.theme-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.theme-card:hover .theme-preview {
    transform: scale(1.08);
}

.theme-overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    pointer-events: none;
}

/* Contenu de la carte */
.theme-card-content {
    padding: 1.2rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
    align-items: center;
}

.theme-card h3 {
    color: #2c3e7b;
    font-size: 1em;
    margin: 0;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.theme-card p {
    color: #777;
    font-size: 0.82em;
    line-height: 1.6;
    margin: 0;
}

.theme-card button {
    background: linear-gradient(135deg, #2c3e7b 0%, #4a2c7a 100%);
    color: white;
    border: none;
    padding: 8px 24px;
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.theme-card button:hover {
    box-shadow: 0 6px 20px rgba(44, 62, 123, 0.35);
    background: linear-gradient(135deg, #3d5298 0%, #5e3a94 100%);
}

/* Responsive grille */
@media (max-width: 900px) {
    /* Top row: stack to 2 cols then 1 col */
    .gallery-row-top .theme-card,
    .gallery-row-bottom .theme-card {
        flex: 0 0 calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
    }
}

@media (max-width: 640px) {
    .gallery-row-top,
    .gallery-row-bottom {
        flex-direction: column;
        align-items: center;
    }
    .gallery-row-top .theme-card,
    .gallery-row-bottom .theme-card {
        flex: none;
        max-width: 380px;
        width: 100%;
    }
    .theme-preview {
        height: 220px;
    }
}

/* Gallery Modal Overlay */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow-y: auto;
}

.gallery-modal.active {
    opacity: 1;
    visibility: visible;
}

.gallery-modal-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 2rem 0;
}

.gallery-title {
    color: #e8d5b7;
    font-size: 1.6em;
    font-weight: 400;
    letter-spacing: 2px;
    margin: 0;
}

.gallery-close {
    background: none;
    border: 1px solid rgba(232, 213, 183, 0.4);
    color: #e8d5b7;
    font-size: 1.8em;
    cursor: pointer;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.gallery-close:hover {
    background: rgba(232, 213, 183, 0.15);
    border-color: #e8d5b7;
}

/* Masonry Gallery Grid */
.gallery-grid {
    columns: 4;
    column-gap: 1rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item img {
    width: 100%;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 123, 0) 0%, rgba(74, 44, 122, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Responsive columns */
@media (max-width: 1200px) {
    .gallery-grid {
        columns: 3;
    }
}

@media (max-width: 900px) {
    .gallery-grid {
        columns: 2;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        columns: 1;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 20, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    position: relative;
}

.lightbox-content.fade-out {
    opacity: 0.3;
    transition: opacity 0.2s ease;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: 1px solid rgba(232, 213, 183, 0.4);
    color: #e8d5b7;
    font-size: 2em;
    cursor: pointer;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    z-index: 2001;
}

.lightbox-close:hover {
    background: rgba(232, 213, 183, 0.15);
    border-color: #e8d5b7;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(44, 62, 123, 0.5);
    border: 1px solid rgba(232, 213, 183, 0.3);
    color: #e8d5b7;
    font-size: 2em;
    cursor: pointer;
    padding: 1rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 2001;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(44, 62, 123, 0.8);
    border-color: #e8d5b7;
    transform: translateY(-50%) scale(1.05);
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 0.5rem;
    }
    .lightbox-next {
        right: 0.5rem;
    }
    .lightbox-prev,
    .lightbox-next {
        font-size: 1.4em;
        padding: 0.8rem 0.6rem;
    }
}

/* ============================================
   RESPONSIVE MOBILE (≤ 768px)
   ============================================ */

@media (max-width: 768px) {
    /* Header reste horizontal : h1 caché, burger centré */
    header {
        padding: 0.4rem 1.5rem;
        justify-content: center;
    }

    header h1 {
        display: none;
    }

    .header-right {
        width: 100%;
        justify-content: center;
        position: relative;
    }

    /* hamburger centré verticalement dans le header */
    .menu-toggle {
        display: block;
        position: relative;
        margin: auto;
    }

    /* Navigation en dropdown dans le header violet */
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #2c3e7b 0%, #4a2c7a 100%);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        z-index: 998;
    }

    nav.active {
        max-height: 500px;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        align-items: center;
        padding: 1rem 0 0.5rem;
    }

    nav li a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 1em;
    }

    nav li a::after {
        display: none;
    }

    /* Sections padding réduit */
    main section {
        padding: 3rem 1.5rem;
    }

    #contact {
        padding: 2.5rem 1.5rem;
    }

    /* Exposition widget compact */
    #exposition {
        min-height: 45vh;
        max-height: none;
    }

    .exposition-widget {
        padding: 1.5rem;
    }

    .exposition-widget h2 {
        font-size: 1.3em;
        letter-spacing: 2px;
    }

    .widget-info-row {
        flex-direction: column;
        gap: 1rem;
    }

    .widget-icon {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    /* Gallery cards en colonne */
    .gallery-themes {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .theme-card {
        width: 100%;
        max-width: 380px;
        min-height: auto;
    }

    /* Form contact compact */
    #contact form {
        padding: 1.5rem;
    }

    /* Footer */
    footer {
        padding: 1.5rem 1rem;
    }
}

/* Très petits écrans (≤ 400px) */
@media (max-width: 400px) {
    header h1 {
        font-size: 0.95em;
        letter-spacing: 1px;
    }

    .exposition-widget {
        padding: 1.2rem;
    }

    .widget-tag {
        font-size: 0.6em;
        padding: 0.3rem 0.8rem;
    }

    .theme-card {
        padding: 1.5rem;
    }
}

/* ============================================
   FOOTER LINKS (RGPD pages)
   ============================================ */

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 0.4rem;
    padding-top: 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.7em;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e8d5b7;
}

/* ============================================
   PAGES LÉGALES (Mentions, CGU, Confidentialité)
   ============================================ */

#legal-page {
    padding: 6rem 2rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

#legal-page h2 {
    color: #2c3e7b;
    font-size: 1.8em;
    font-weight: 300;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 2rem;
}

.legal-content {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    line-height: 1.8;
    color: #555;
}

.legal-content h3 {
    color: #2c3e7b;
    font-size: 1.1em;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.legal-content p {
    margin-bottom: 1rem;
    font-size: 0.95em;
}

.legal-content ul {
    margin: 0.5rem 0 1rem 1.5rem;
    padding: 0;
}

.legal-content li {
    margin-bottom: 0.4rem;
    font-size: 0.95em;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: #e8d5b7;
    background: linear-gradient(135deg, #2c3e7b 0%, #4a2c7a 100%);
    padding: 10px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.8em;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: linear-gradient(135deg, #3d5298 0%, #5e3a94 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 123, 0.3);
}

/* ============================================
   FORMSPREE FEEDBACK (succès / erreur)
   ============================================ */

[data-fs-success] {
    text-align: center;
    padding: 1.5rem !important;
    background: rgba(74, 122, 94, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
}

[data-fs-error] {
    display: block;
    text-align: center;
    color: #e74c3c !important;
    font-size: 0.9em;
    padding: 0.5rem;
}

/* Erreur par champ */
span[data-fs-error] {
    display: block;
    min-height: 1.2em;
    margin-bottom: 0.3rem;
}

#contact-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
}

@media (max-width: 768px) {
    #legal-page {
        padding: 5rem 1.5rem 3rem;
    }

    .legal-content {
        padding: 2rem 1.5rem;
    }

    .footer-links {
        gap: 1rem;
    }
}
