/* ============================================
   STYLES MÉDIÉVAUX - MONTCORNELLES
   ============================================ */

/* Variables CSS - Thème par défaut (Brun Classique) */
:root {
    --primary-color: #5D4037;      /* Brun moderne */
    --secondary-color: #8D6E63;     /* Taupe */
    --accent-color: #A1887F;        /* Beige rosé */
    --text-color: #3E2723;          /* Brun foncé */
    --light-text: #FAFAFA;          /* Blanc cassé */
    --background-color: #FFFFFF;    /* Blanc */
    --dark-background: #3E2723;     /* Brun très foncé */
    --border-color: #BCAAA4;        /* Beige clair */
    --shadow-color: rgba(93, 64, 55, 0.15);
    --card-bg: #FAFAFA;             /* Fond cards */
    --hover-color: #6D4C41;         /* Brun hover */
    
    --font-title: 'Cinzel', serif;
    --font-text: 'Crimson Text', serif;
}

/* Thème Orange Chaud */
[data-theme="orange"] {
    --primary-color: #D84315;      /* Orange terre cuite */
    --secondary-color: #FF7043;     /* Orange saumon */
    --accent-color: #FFAB91;        /* Orange clair */
    --text-color: #BF360C;          /* Orange foncé */
    --dark-background: #BF360C;     /* Orange très foncé */
    --border-color: #FFCCBC;        /* Orange pâle */
    --shadow-color: rgba(216, 67, 21, 0.15);
    --hover-color: #E64A19;         /* Orange hover */
}

/* Thème Marron Terre */
[data-theme="terre"] {
    --primary-color: #795548;      /* Marron terre */
    --secondary-color: #A1887F;     /* Beige */
    --accent-color: #D7CCC8;        /* Beige très clair */
    --text-color: #4E342E;          /* Marron foncé */
    --dark-background: #4E342E;     /* Marron très foncé */
    --border-color: #D7CCC8;        /* Beige clair */
    --shadow-color: rgba(121, 85, 72, 0.15);
    --hover-color: #6D4C41;         /* Marron hover */
}

/* Thème Or Ancien */
[data-theme="or"] {
    --primary-color: #F57C00;      /* Orange doré */
    --secondary-color: #FFB74D;     /* Or clair */
    --accent-color: #FFE082;        /* Jaune or */
    --text-color: #E65100;          /* Orange foncé */
    --dark-background: #E65100;     /* Orange très foncé */
    --border-color: #FFCC80;        /* Or pâle */
    --shadow-color: rgba(245, 124, 0, 0.15);
    --hover-color: #EF6C00;         /* Orange doré hover */
}

/* Thème Brique Rouge */
[data-theme="brique"] {
    --primary-color: #A0522D;      /* Brun sienna */
    --secondary-color: #CD853F;     /* Brun peru */
    --accent-color: #DEB887;        /* Beige burlywood */
    --text-color: #8B4513;          /* Brun saddle */
    --dark-background: #8B4513;     /* Brun foncé */
    --border-color: #F5DEB3;        /* Beige wheat */
    --shadow-color: rgba(160, 82, 45, 0.15);
    --hover-color: #8B4513;         /* Brun hover */
}

/* ============================================
   TEXTURES MÉDIÉVALES
   ============================================ */

/* Texture parchemin - pour les sections claires */
.texture-parchemin {
    position: relative;
}

.texture-parchemin::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 69, 19, 0.03) 2px, rgba(139, 69, 19, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(139, 69, 19, 0.03) 2px, rgba(139, 69, 19, 0.03) 4px);
    background-size: 100% 100%;
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

.texture-parchemin > * {
    position: relative;
    z-index: 2;
}

/* Texture pierre - pour les sections sombres */
.texture-pierre {
    position: relative;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 0, 0, 0.04) 0%, transparent 50%);
}

.texture-pierre::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.02) 10px,
        rgba(0, 0, 0, 0.02) 20px
    );
    pointer-events: none;
}

/* Texture bois - pour les cartes et éléments */
.texture-bois {
    position: relative;
    background-image:
        repeating-linear-gradient(
            90deg,
            rgba(62, 39, 35, 0.03),
            rgba(62, 39, 35, 0.03) 2px,
            transparent 2px,
            transparent 4px
        ),
        repeating-linear-gradient(
            0deg,
            rgba(93, 64, 55, 0.02),
            rgba(93, 64, 55, 0.02) 1px,
            transparent 1px,
            transparent 3px
        );
}

/* Texture tissu médiéval - pour les bannières */
.texture-tissu {
    position: relative;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.02) 2px,
            rgba(0, 0, 0, 0.02) 4px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.02) 2px,
            rgba(0, 0, 0, 0.02) 4px
        );
}

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

html {
    scroll-behavior: smooth;
}

/* Textures globales sur le body */
[data-textures="parchemin"] body {
    background-image: url('imgs/texture-parchemin.svg');
    background-size: 600px 600px;
    background-attachment: fixed;
}

[data-textures="parchemin-leger"] body {
    background-image: url('imgs/texture-parchemin-leger.svg');
    background-size: 600px 600px;
    background-attachment: fixed;
}

[data-textures="parchemin-vintage"] body {
    background-image: url('imgs/texture-parchemin-vintage.svg');
    background-size: 600px 600px;
    background-attachment: fixed;
}

[data-textures="pierre"] body {
    background-image: url('imgs/texture-pierre.svg');
    background-size: 400px 400px;
    background-attachment: fixed;
}

[data-textures="pierre-claire"] body {
    background-image: url('imgs/texture-pierre-claire.svg');
    background-size: 400px 400px;
    background-attachment: fixed;
}

[data-textures="pierre-sombre"] body {
    background-image: url('imgs/texture-pierre-sombre.svg');
    background-size: 400px 400px;
    background-attachment: fixed;
}

[data-textures="bois"] body {
    background-image: url('imgs/texture-bois.svg');
    background-size: 300px 300px;
    background-attachment: fixed;
}

[data-textures="bois-clair"] body {
    background-image: url('imgs/texture-bois-clair.svg');
    background-size: 300px 300px;
    background-attachment: fixed;
}

[data-textures="bois-fonce"] body {
    background-image: url('imgs/texture-bois-fonce.svg');
    background-size: 300px 300px;
    background-attachment: fixed;
}

body {
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    padding-top: 0;
}

/* ============================================
   HEADER ET NAVIGATION
   ============================================ */

.header-medieval {
    background: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-color);
    backdrop-filter: blur(10px);
}

[data-textures="parchemin"] .header-medieval,
[data-textures="parchemin-leger"] .header-medieval,
[data-textures="parchemin-vintage"] .header-medieval {
    background-size: 500px 500px;
    background-blend-mode: overlay;
    background-color: rgba(255, 255, 255, 0.92);
}

[data-textures="parchemin"] .header-medieval {
    background-image: url('imgs/texture-parchemin.svg');
}

[data-textures="parchemin-leger"] .header-medieval {
    background-image: url('imgs/texture-parchemin-leger.svg');
}

[data-textures="parchemin-vintage"] .header-medieval {
    background-image: url('imgs/texture-parchemin-vintage.svg');
}

.header-medieval.scrolled {
    box-shadow: 0 4px 20px var(--shadow-color);
}

.main-nav {
    background: #FAFAFA;
    border-top: 1px solid var(--border-color);
    position: relative;
    padding: 0 2rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

[data-textures="bois"] .main-nav {
    background-image: url('imgs/texture-bois.svg');
    background-size: 200px 200px;
    background-blend-mode: multiply;
}

[data-textures="bois-clair"] .main-nav {
    background-image: url('imgs/texture-bois-clair.svg');
    background-size: 200px 200px;
    background-blend-mode: multiply;
}

[data-textures="bois-fonce"] .main-nav {
    background-image: url('imgs/texture-bois-fonce.svg');
    background-size: 200px 200px;
    background-blend-mode: multiply;
}

.main-nav.hidden {
    transform: translateY(-100%);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

.header-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    position: relative;
}

.banner-decoration {
    display: none;
}

.site-logo {
    width: 60px;
    height: auto;
    object-fit: contain;
}

.site-title {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: 2px;
}

.site-subtitle {
    font-family: var(--font-text);
    font-size: 0.95rem;
    color: var(--secondary-color);
    font-style: italic;
    margin: 0;
}


.nav-decoration-left,
.nav-decoration-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    background: repeating-linear-gradient(
        45deg,
        var(--accent-color),
        var(--accent-color) 5px,
        transparent 5px,
        transparent 10px
    );
}

.nav-decoration-left {
    left: 0;
}

.nav-decoration-right {
    right: 0;
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.nav-menu > li {
    margin: 0 1rem;
    position: relative;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-title);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 1rem 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(93, 64, 55, 0.05);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}


/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #FFFFFF;
    min-width: 220px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 12px var(--shadow-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
    border-bottom: 1px solid rgba(205, 133, 63, 0.3);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    display: block;
    font-family: var(--font-text);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    background: rgba(93, 64, 55, 0.05);
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-left: 2rem;
}

.social-link {
    color: var(--secondary-color);
    font-size: 1.2rem;
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--light-text);
    transform: scale(1.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    right: 1.5rem;
    top: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1200;
    width: 32px;
    height: 20px;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* ============================================
   SECTION HERO
   ============================================ */

.hero-section {
    position: relative;
    height: calc(100vh - 140px);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 140px;
}

@media (max-width: 768px) {
    .hero-section {
        height: calc(100vh - 100px);
        min-height: 400px;
        margin-top: 100px;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(93, 64, 55, 0.6) 0%, rgba(62, 39, 35, 0.7) 100%), url('imgs/hero.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
    padding: 2rem;
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.hero-subtitle {
    font-family: var(--font-text);
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-style: italic;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-medieval {
    padding: 1rem 2rem;
    font-family: var(--font-title);
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-medieval.primary {
    background: var(--primary-color);
    color: var(--light-text);
    border-color: var(--primary-color);
}

.btn-medieval.secondary {
    background: transparent;
    color: var(--light-text);
    border-color: var(--light-text);
}

.btn-medieval.primary:hover {
    background: var(--hover-color);
    border-color: var(--hover-color);
}

.btn-medieval.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-medieval:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.btn-medieval::before,
.btn-medieval::after {
    display: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--light-text);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   SECTIONS COMMUNES
   ============================================ */

section {
    padding: 4rem 2rem;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-decoration {
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    margin: 0 auto;
    position: relative;
    border-radius: 2px;
}

.section-decoration::before,
.section-decoration::after {
    display: none;
}

/* ============================================
   SECTION PRÉSENTATION
   ============================================ */

.presentation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .presentation-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.card-medieval {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-color);
}


.card-medieval:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--accent-color);
}

.card-icon i {
    font-size: 2rem;
    color: var(--light-text);
}

.card-medieval h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card-medieval p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.card-link {
    color: var(--accent-color);
    text-decoration: none;
    font-family: var(--font-title);
    font-weight: 600;
    border: 2px solid var(--accent-color);
    padding: 0.5rem 1rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.card-link:hover {
    background: var(--accent-color);
    color: var(--light-text);
}

/* ============================================
   SECTION VILLAGEOIS
   ============================================ */

.villageois-section {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, rgba(210, 105, 30, 0.1) 100%);
}

.villageois-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.villageois-card {
    display: none;
    background: var(--light-text);
    border: 3px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px var(--shadow-color);
}

.villageois-card.active {
    display: flex;
    animation: fadeIn 0.5s ease;
}

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

.villageois-image {
    flex: 1;
    min-height: 300px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    font-size: 4rem;
    color: var(--light-text);
}

.villageois-info {
    flex: 1;
    padding: 2rem;
}

.villageois-info h3 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.villageois-info p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.1rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: var(--accent-color);
    border: none;
    color: var(--light-text);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.carousel-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* ============================================
   SECTION ACTIVITÉS
   ============================================ */

.activites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .activites-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.activite-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.activite-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px var(--shadow-color);
}

.activite-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 2px solid var(--accent-color);
}

.activite-icon i {
    font-size: 1.5rem;
    color: var(--light-text);
}

.activite-item h3 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.activite-item p {
    color: var(--text-color);
    font-size: 0.95rem;
}

/* ============================================
   SECTION ACTUALITÉS
   ============================================ */

.actualites-section {
    background: linear-gradient(135deg, rgba(62, 39, 35, 0.05) 0%, rgba(139, 69, 19, 0.05) 100%);
}

.actualite-card {
    background: var(--light-text);
    border: 3px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    box-shadow: 0 6px 25px var(--shadow-color);
}

.actualite-date {
    background: var(--primary-color);
    color: var(--light-text);
    padding: 2rem 1rem;
    text-align: center;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.date-day {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-family: var(--font-text);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.actualite-content {
    padding: 2rem;
    flex: 1;
}

.actualite-content h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.actualite-content p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.actualite-link {
    color: var(--accent-color);
    text-decoration: none;
    font-family: var(--font-title);
    font-weight: 600;
    border: 2px solid var(--accent-color);
    padding: 0.5rem 1rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.actualite-link:hover {
    background: var(--accent-color);
    color: var(--light-text);
}

/* ============================================
   FOOTER
   ============================================ */

.footer-medieval {
    background: #F5F5F5;
    color: var(--text-color);
    border-top: 1px solid var(--border-color);
    position: relative;
}

[data-textures="bois"] .footer-medieval,
[data-textures="bois-clair"] .footer-medieval,
[data-textures="bois-fonce"] .footer-medieval {
    background-size: 200px 200px;
    background-blend-mode: multiply;
}

[data-textures="bois"] .footer-medieval {
    background-image: url('imgs/texture-bois.svg');
}

[data-textures="bois-clair"] .footer-medieval {
    background-image: url('imgs/texture-bois-clair.svg');
}

[data-textures="bois-fonce"] .footer-medieval {
    background-image: url('imgs/texture-bois-fonce.svg');
}

.footer-medieval::before {
    display: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    font-weight: 600;
}

.footer-section h3::after {
    display: none;
}

.footer-section p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section i {
    color: var(--secondary-color);
    width: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links-footer {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-links-footer a {
    color: var(--secondary-color);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links-footer a:hover {
    background: var(--primary-color);
    color: var(--light-text);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.newsletter-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom {
    background: #EEEEEE;
    text-align: center;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.footer-legal a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-legal span {
    color: var(--border-color);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Désactiver le comportement de hide sur mobile pour garder le bouton burger visible */
    .main-nav.hidden {
        transform: none;
        opacity: 1;
        max-height: none;
        overflow: visible;
    }
    
    .header-banner {
        padding: 1rem;
        justify-content: center;
        position: relative;
        z-index: 1100;
    }
    
    .site-logo {
        width: 70px;
        height: 70px;
    }
    
    .site-title {
        display: none;
    }
    
    .site-subtitle {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
        padding: 0 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .main-nav {
        padding: 0;
    }
    
    .nav-decoration-left,
    .nav-decoration-right {
        display: none;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
        padding: 20px 0 2rem 0;
        overflow-y: auto;
        z-index: 1150;
        transition: right 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu > li {
        margin: 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link {
        padding: 1rem 1.5rem;
        justify-content: space-between;
    }
    
    .social-links {
        margin: 0;
        padding: 1rem 1.5rem;
        border-top: 2px solid var(--border-color);
        justify-content: center;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #F5F5F5;
        margin: 0;
        border: none;
        border-top: 1px solid var(--border-color);
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu li {
        border-bottom: 1px solid rgba(188, 170, 164, 0.3);
    }
    
    .dropdown-menu a {
        padding: 0.8rem 2rem;
    }
    
    .villageois-card {
        flex-direction: column;
    }
    
    .actualite-card {
        flex-direction: column;
    }
    
    .actualite-date {
        min-width: auto;
        padding: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        padding: 0 1rem;
    }
    
    .btn-medieval {
        width: 100%;
        max-width: 300px;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-medieval::before,
    .btn-medieval::after {
        display: none;
    }
    
    section {
        padding: 2.5rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        padding: 0 0.5rem;
    }
    
    .content-text-center {
        padding: 0 0.5rem;
    }
    
    .info-box {
        padding: 1.5rem;
    }
    
    .page-hero-content h1 {
        font-size: 2rem;
    }
    
    .page-hero-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
    
    .cta-buttons .btn-medieval {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .site-logo {
        width: 60px;
        height: 60px;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .hero-title {
        font-size: 1.7rem;
    }
    
    .presentation-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .activites-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links-footer {
        justify-content: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-legal span {
        display: none;
    }
    
    section {
        padding: 2rem 0.8rem;
    }
    
    .building-card,
    .activite-item,
    .card-medieval {
        padding: 1.5rem;
    }
}

/* ============================================
   STYLES PAGES INTERNES
   ============================================ */

.page-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(93, 64, 55, 0.7) 0%, rgba(62, 39, 35, 0.8) 100%), url('imgs/hero2.jpg');
    background-size: cover;
    background-position: center;
    margin-top: 140px;
}

[data-textures="pierre"] .page-hero::before,
[data-textures="pierre-claire"] .page-hero::before,
[data-textures="pierre-sombre"] .page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 300px 300px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

[data-textures="pierre"] .page-hero::before {
    background-image: url('imgs/texture-pierre.svg');
}

[data-textures="pierre-claire"] .page-hero::before {
    background-image: url('imgs/texture-pierre-claire.svg');
}

[data-textures="pierre-sombre"] .page-hero::before {
    background-image: url('imgs/texture-pierre-sombre.svg');
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 300px;
        margin-top: 100px;
    }
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.page-hero-content h1 {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.page-hero-content p {
    font-family: var(--font-text);
    font-size: 1.3rem;
    color: var(--secondary-color);
    font-style: italic;
}

.content-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section.alt-bg {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.05) 0%, rgba(210, 105, 30, 0.05) 100%);
}

[data-textures="parchemin"] .content-section.alt-bg,
[data-textures="parchemin-leger"] .content-section.alt-bg,
[data-textures="parchemin-vintage"] .content-section.alt-bg {
    background-color: rgba(250, 245, 235, 0.5);
    background-size: 400px 400px;
    background-blend-mode: multiply;
}

[data-textures="parchemin"] .content-section.alt-bg {
    background-image: url('imgs/texture-parchemin.svg');
}

[data-textures="parchemin-leger"] .content-section.alt-bg {
    background-image: url('imgs/texture-parchemin-leger.svg');
}

[data-textures="parchemin-vintage"] .content-section.alt-bg {
    background-image: url('imgs/texture-parchemin-vintage.svg');
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.content-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.content-text-center {
    text-align: center;
    max-width: 900px;
    margin: 2rem auto;
}

.content-text-center p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.content-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: 3px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.image-placeholder p {
    font-family: var(--font-title);
    font-size: 1.2rem;
}

.timeline-container {
    max-width: 900px;
    margin: 2rem auto;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 80px;
    bottom: -50px;
    width: 3px;
    background: var(--accent-color);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-icon i {
    font-size: 2rem;
    color: var(--light-text);
}

.timeline-content {
    flex: 1;
    background: var(--light-text);
    border: 2px solid var(--border-color);
    padding: 2rem;
    border-radius: 10px;
}

.timeline-content h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.timeline-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: var(--light-text);
    border: 3px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 2px solid var(--accent-color);
}

.stat-icon i {
    font-size: 1.5rem;
    color: var(--light-text);
}

.stat-number {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 1rem 0;
}

.stat-card p {
    color: var(--text-color);
    font-size: 1rem;
}

.buildings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 968px) {
    .buildings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .buildings-grid {
        grid-template-columns: 1fr;
    }
}

.building-card {
    background: var(--light-text);
    border: 2px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.building-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    box-shadow: 0 6px 20px var(--shadow-color);
}

.building-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 2px solid var(--accent-color);
}

.building-icon i {
    font-size: 1.5rem;
    color: var(--light-text);
}

.building-card h3 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.building-card p {
    color: var(--text-color);
    font-size: 0.95rem;
}

.cta-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(93, 64, 55, 0.95) 0%, rgba(62, 39, 35, 1) 100%);
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.info-box {
    background: var(--light-text);
    border: 3px solid var(--accent-color);
    border-left: 10px solid var(--accent-color);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 5px;
}

[data-textures="parchemin"] .info-box,
[data-textures="parchemin-leger"] .info-box,
[data-textures="parchemin-vintage"] .info-box {
    background-size: 400px 400px;
    background-blend-mode: multiply;
}

[data-textures="parchemin"] .info-box {
    background-image: url('imgs/texture-parchemin.svg');
}

[data-textures="parchemin-leger"] .info-box {
    background-image: url('imgs/texture-parchemin-leger.svg');
}

[data-textures="parchemin-vintage"] .info-box {
    background-image: url('imgs/texture-parchemin-vintage.svg');
}

.info-box h3 {
    font-family: var(--font-title);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box ul li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.info-box ul li::before {
    content: '❦';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: var(--dark-background);
    text-decoration: none;
    font-family: var(--font-title);
    font-weight: 600;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    margin: 1rem 0;
}

.download-button:hover {
    background: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.contact-form {
    max-width: 700px;
    margin: 2rem auto;
    background: var(--light-text);
    border: 3px solid var(--border-color);
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-title);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    background: var(--background-color);
    font-family: var(--font-text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: var(--dark-background);
    border: none;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-2px);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.partner-card {
    background: var(--light-text);
    border: 2px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.partner-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-color);
}

.partner-logo {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, rgba(210, 105, 30, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.partner-logo i {
    font-size: 3rem;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .page-hero-content h1 {
        font-size: 2rem;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-item::before {
        display: none;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================
   LYNX MASCOTTE
   ============================================ */

.lynx-companion {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9998;
    max-width: 250px;
    height: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    filter: drop-shadow(4px 4px 16px rgba(0, 0, 0, 0.5));
    animation: lynxFloat 4s ease-in-out infinite;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    padding: 10px;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(139, 69, 19, 0.3);
}

.lynx-companion:hover {
    transform: scale(1.12) translateY(-10px) rotate(3deg);
    filter: drop-shadow(6px 6px 24px rgba(139, 69, 19, 0.7));
    border-color: rgba(139, 69, 19, 0.6);
}

@keyframes lynxFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(-2deg);
    }
}

@media (max-width: 968px) {
    .lynx-companion {
        max-width: 180px;
        bottom: 25px;
        left: 15px;
        padding: 8px;
    }
}

@media (max-width: 768px) {
    .lynx-companion {
        display: none;
    }
}


/* ============================================
   CONTRÔLE AUDIO
   ============================================ */

.audio-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: var(--primary-color);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s ease;
}

.audio-control:hover {
    background: var(--hover-color);
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--shadow-color);
}

.audio-control i {
    color: var(--light-text);
    font-size: 24px;
}

.audio-control.muted {
    background: #8D6E63;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .audio-control {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    .audio-control i {
        font-size: 20px;
    }
}

/* ============================================
   SÉLECTEUR DE THÈME
   ============================================ */

.theme-selector {
    position: fixed;
    bottom: 20px;
    right: 100px;
    z-index: 9999;
}

.theme-toggle {
    background: var(--primary-color);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--hover-color);
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--shadow-color);
}

.theme-toggle i {
    color: var(--light-text);
    font-size: 24px;
}

.theme-options {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    box-shadow: 0 8px 24px var(--shadow-color);
    backdrop-filter: blur(10px);
}

.theme-options.active {
    display: flex;
}

.theme-option {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.theme-option:hover {
    transform: scale(1.15);
    border-color: var(--accent-color);
}

.theme-option.active {
    border-color: var(--primary-color);
    border-width: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.theme-label {
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.theme-divider {
    width: 100%;
    height: 2px;
    background: var(--border-color);
    margin: 0.3rem 0;
}

.texture-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    width: 100%;
}

.texture-option {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    background: var(--light-text);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.texture-option:hover {
    transform: scale(1.1);
    border-color: var(--accent-color);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.texture-option.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px var(--shadow-color);
}

.texture-option i {
    font-size: 1rem;
    color: var(--primary-color);
}

.texture-option.active i {
    color: var(--light-text);
}

@media (max-width: 768px) {
    .theme-selector {
        bottom: 15px;
        right: 75px;
    }
    
    .theme-toggle {
        width: 50px;
        height: 50px;
    }
    
    .theme-toggle i {
        font-size: 20px;
    }
    
    .theme-options {
        bottom: 60px;
        padding: 0.8rem;
        gap: 0.6rem;
    }
    
    .theme-option {
        width: 38px;
        height: 38px;
    }
}
