/* ===========================================
   Site Mairie de Chambors - Feuille de style
   Couleurs : Noir (#1a1a1a) et Or (#d4a530)
   =========================================== */

/* Variables CSS */
:root {
    --color-noir: #1a1a1a;
    --color-or: #d4a530;
    --color-or-clair: #e8c564;
    --color-or-fonce: #b8901a;
    --color-blanc: #ffffff;
    --color-gris-clair: #f8f9fa;
    --color-gris: #e0e0e0;
    --color-texte: #2d3436;
    --font-principal: 'Georgia', 'Times New Roman', serif;
    --font-secondaire: 'Segoe UI', 'Arial', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.18);
    --shadow-gold: 0 8px 30px rgba(212, 165, 48, 0.3);
    --radius: 12px;
    --radius-lg: 20px;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondaire);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-texte);
    background-color: var(--color-blanc);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-principal);
    color: var(--color-noir);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-or-fonce);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-or);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

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

/* ===========================================
   HEADER & NAVIGATION
   =========================================== */
header {
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.98), rgba(26, 26, 26, 0.95));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(212, 165, 48, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    color: var(--color-blanc);
}

.logo-text h1 {
    font-size: 1.3rem;
    color: var(--color-or);
    margin-bottom: 0;
}

.logo-text span {
    font-size: 0.85rem;
    color: var(--color-gris);
}

/* Navigation */
nav ul {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    justify-content: center;
}

nav a {
    display: block;
    padding: 8px 12px;
    color: var(--color-blanc);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-or);
    transition: var(--transition);
}

nav a:hover::after {
    width: 60%;
}

nav a:hover {
    color: var(--color-or);
}

nav a.active {
    background: linear-gradient(135deg, var(--color-or), var(--color-or-fonce));
    color: var(--color-noir);
}

nav a.active::after {
    display: none;
}

/* Menu hamburger mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-or);
    transition: var(--transition);
}

/* ===========================================
   HERO SECTION - Compact & Moderne
   =========================================== */
.hero {
    position: relative;
    height: 45vh;
    min-height: 320px;
    max-height: 400px;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.85) 0%,
        rgba(26, 26, 26, 0.6) 50%,
        rgba(26, 26, 26, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--color-blanc);
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 165, 48, 0.2);
    max-width: 600px;
    margin: 0 20px;
}

.hero-blason {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.hero h1 {
    font-size: 2.2rem;
    color: var(--color-blanc);
    margin-bottom: 8px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

.hero .subtitle {
    font-size: 1.1rem;
    color: var(--color-or);
    margin-bottom: 15px;
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* ===========================================
   SECTIONS GENERALES
   =========================================== */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    display: inline-block;
    position: relative;
    padding-bottom: 20px;
    font-size: 2.2rem;
    letter-spacing: 0.5px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-or), var(--color-or-clair));
    border-radius: 2px;
}

.bg-gris {
    background-color: var(--color-gris-clair);
}

.bg-noir {
    background-color: var(--color-noir);
    color: var(--color-blanc);
}

.bg-noir h2,
.bg-noir h3 {
    color: var(--color-or);
}

/* ===========================================
   ACCUEIL - MESSAGE DU MAIRE
   =========================================== */
.message-maire {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.maire-photo {
    text-align: center;
}

.maire-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 65%;
    border: 4px solid var(--color-or);
    box-shadow: var(--shadow);
}

.maire-photo .placeholder-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gris) 0%, var(--color-gris-clair) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 4px solid var(--color-or);
    font-size: 3rem;
    color: var(--color-or);
}

.message-content {
    font-style: italic;
    font-size: 1.1rem;
}

.message-content p:first-child::before {
    content: '"';
    font-size: 3rem;
    color: var(--color-or);
    line-height: 0;
    vertical-align: -0.5em;
    margin-right: 5px;
}

.signature {
    font-style: normal;
    font-weight: bold;
    color: var(--color-or-fonce);
    margin-top: 20px;
}

/* ===========================================
   ACCES RAPIDES
   =========================================== */
.acces-rapides {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.acces-card {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.acces-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-or), var(--color-or-clair));
}

.acces-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(212, 165, 48, 0.15);
}

.acces-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.acces-card h3 {
    margin-bottom: 10px;
}

.acces-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--color-or), var(--color-or-fonce));
    color: var(--color-noir);
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 15px rgba(212, 165, 48, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 165, 48, 0.4);
    color: var(--color-noir);
}

.btn-outline {
    background: transparent;
    color: var(--color-or);
    border: 2px solid var(--color-or);
    box-shadow: none;
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--color-or), var(--color-or-fonce));
    color: var(--color-noir);
    box-shadow: 0 4px 15px rgba(212, 165, 48, 0.3);
}

/* ===========================================
   HORAIRES
   =========================================== */
.horaires-box {
    background: var(--color-blanc);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    max-width: 400px;
    margin: 0 auto;
}

.horaires-box h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-or-fonce);
}

.horaires-liste {
    list-style: none;
}

.horaires-liste li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-gris);
}

.horaires-liste li:last-child {
    border-bottom: none;
}

.jour {
    font-weight: bold;
}

.heures {
    color: var(--color-or-fonce);
}

.ferme {
    color: #999;
    font-style: italic;
}

/* ===========================================
   ACTUALITES
   =========================================== */
.actualites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.actu-card {
    background: var(--color-blanc);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.actu-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

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

.actu-card .content {
    padding: 20px;
}

.actu-card .date {
    color: var(--color-or-fonce);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.actu-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* ===========================================
   PAGE VILLAGE
   =========================================== */
.intro-village {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.intro-village img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.intro-village img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.chiffres-cles {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.chiffre {
    text-align: center;
    padding: 15px 25px;
    background: linear-gradient(145deg, rgba(212, 165, 48, 0.1), rgba(212, 165, 48, 0.05));
    border-radius: var(--radius);
    border: 1px solid rgba(212, 165, 48, 0.2);
    transition: var(--transition);
}

.chiffre:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.chiffre .nombre {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-or);
    display: block;
    text-shadow: 0 2px 4px rgba(212, 165, 48, 0.2);
}

.chiffre .label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Patrimoine */
.patrimoine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.patrimoine-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.patrimoine-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.patrimoine-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.patrimoine-card:hover img {
    transform: scale(1.05);
}

.patrimoine-card .content {
    padding: 25px;
}

/* Galerie */
.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.galerie-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.galerie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.galerie-item:hover img {
    transform: scale(1.1);
}

/* ===========================================
   PAGE MAIRIE
   =========================================== */
.info-mairie {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.equipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.elu-card {
    text-align: center;
    padding: 20px;
}

.elu-card .photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-or);
    border: 3px solid var(--color-or);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.elu-card:hover .photo {
    transform: scale(1.05);
    box-shadow: var(--shadow-gold);
}

.elu-card .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.elu-card .photo img.photo-didier {
    object-position: center 65%;
}

.elu-card .photo img.photo-jacques {
    object-position: center 35%;
}

.elu-card h4 {
    margin-bottom: 5px;
    transition: var(--transition);
}

.elu-card:hover h4 {
    color: var(--color-or-fonce);
}

.elu-card .fonction {
    color: var(--color-or-fonce);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===========================================
   PAGE VIE PRATIQUE
   =========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: none;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.service-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-or), var(--color-or-fonce));
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card h3 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
}

.service-card li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.service-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-or);
    font-weight: bold;
}

/* Liens utiles */
.liens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.lien-externe {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--color-blanc);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.lien-externe:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

/* ===========================================
   PAGE CONSEIL MUNICIPAL
   =========================================== */
.cr-liste {
    list-style: none;
}

.cr-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--color-blanc);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.cr-item:hover {
    box-shadow: var(--shadow-hover);
}

.cr-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cr-info .icon {
    font-size: 2rem;
    color: var(--color-or);
}

.cr-info .date {
    font-size: 0.9rem;
    color: #666;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--color-or);
    color: var(--color-noir);
    border-radius: 4px;
    font-weight: bold;
    transition: var(--transition);
}

.btn-download:hover {
    background: var(--color-noir);
    color: var(--color-or);
}

/* ===========================================
   PAGE CONTACT
   =========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-noir);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--color-gris);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-or);
    box-shadow: 0 0 0 4px rgba(212, 165, 48, 0.15);
}

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

.contact-info-card {
    background: linear-gradient(145deg, #1a1a1a, #252525);
    color: var(--color-blanc);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(212, 165, 48, 0.1);
}

.contact-info-card h3 {
    color: var(--color-or);
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item .icon {
    font-size: 1.5rem;
    color: var(--color-or);
}

.info-item strong {
    display: block;
    margin-bottom: 5px;
}

/* Map placeholder */
.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* ===========================================
   FOOTER
   =========================================== */
footer {
    background: linear-gradient(180deg, #1a1a1a, #0f0f0f);
    color: var(--color-blanc);
    padding: 60px 0 25px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-or), var(--color-or-clair), var(--color-or));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--color-or);
    margin-bottom: 20px;
    font-size: 1.15rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-or);
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #aaa;
    transition: var(--transition);
    display: inline-block;
}

.footer-section a:hover {
    color: var(--color-or);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* ===========================================
   LIGHTBOX
   =========================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: var(--color-blanc);
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--color-or);
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 992px) {
    .intro-village,
    .info-mairie,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .message-maire {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 10px 15px;
    }

    .logo-text h1 {
        font-size: 1.1rem;
    }

    .logo-text span {
        display: none;
    }

    nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-noir);
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
    }

    nav.active {
        max-height: 600px;
        border-top: 1px solid #333;
    }

    nav ul {
        flex-direction: column;
        padding: 10px;
    }

    nav a {
        padding: 15px 20px;
    }

    .menu-toggle {
        display: flex;
    }

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

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

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        height: 35vh;
        min-height: 250px;
        max-height: 300px;
        background-attachment: scroll;
    }

    .hero-content {
        padding: 20px;
        margin: 0 15px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero .subtitle {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .weather-widget {
        max-width: 220px;
        padding: 10px 15px;
        gap: 10px;
    }

    .weather-icon {
        font-size: 1.8rem;
    }

    .weather-temp {
        font-size: 1.3rem;
    }

    .scroll-indicator {
        display: none;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }

    .section-title {
        margin-bottom: 35px;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    section {
        padding: 40px 0;
    }

    .acces-rapides {
        grid-template-columns: 1fr;
    }

    .chiffres-cles {
        justify-content: center;
    }

    .chiffre {
        padding: 12px 18px;
    }

    .chiffre .nombre {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-blason {
        width: 80px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .galerie-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn {
        display: block;
        text-align: center;
    }
}

/* ===========================================
   UTILITAIRES
   =========================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.hidden { display: none; }

/* Accessibilité */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--color-or);
    outline-offset: 2px;
}

/* ===========================================
   PAGE ALERTES & FESTIVITES
   =========================================== */
.alertes-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.alerte-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 5px solid var(--color-or);
    background: var(--color-blanc);
    transition: var(--transition);
}

.alerte-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.alerte-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.alerte-content {
    flex: 1;
}

.alerte-content h3 {
    margin-bottom: 8px;
}

.alerte-content p {
    color: #555;
    margin-bottom: 0;
}

.alerte-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.alerte-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-urgence {
    background: #e74c3c;
    color: #fff;
}

.badge-important {
    background: #f39c12;
    color: #fff;
}

.badge-info {
    background: #3498db;
    color: #fff;
}

.badge-festivite {
    background: linear-gradient(135deg, var(--color-or), var(--color-or-clair));
    color: var(--color-noir);
}

.alerte-date {
    font-size: 0.85rem;
    color: #888;
}

.alerte-urgence {
    border-left-color: #e74c3c;
}

.alerte-important {
    border-left-color: #f39c12;
}

.alerte-info {
    border-left-color: #3498db;
}

.alerte-festivite {
    border-left-color: var(--color-or);
}

@media (max-width: 768px) {
    .alerte-card {
        flex-direction: column;
        gap: 10px;
        padding: 20px;
    }
}

/* ===========================================
   PHOTOS D'ARCHIVES
   =========================================== */
.archive-photo img {
    filter: sepia(40%) contrast(1.1);
    transition: var(--transition);
}

.archive-photo:hover img {
    filter: sepia(0%) contrast(1);
    transform: scale(1.1);
}

.galerie-grid.archives {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.archive-photo {
    position: relative;
    border: 4px solid var(--color-blanc);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.archive-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(212, 165, 48, 0.1) 0%,
        transparent 50%
    );
    pointer-events: none;
}

/* Print */
@media print {
    header, footer, .menu-toggle, .btn {
        display: none;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding: 20px;
    }

    section {
        padding: 20px 0;
    }
}

/* ===========================================
   MODE SOMBRE / CLAIR
   =========================================== */
.theme-toggle {
    background: rgba(212, 165, 48, 0.1);
    border: 2px solid var(--color-or);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    margin-left: 15px;
    box-shadow: 0 0 15px rgba(212, 165, 48, 0.2);
}

.theme-toggle:hover {
    background: var(--color-or);
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(212, 165, 48, 0.5);
}

/* Variables Mode Sombre - Amélioration contraste */
[data-theme="dark"] {
    --color-blanc: #121212;
    --color-gris-clair: #1e1e1e;
    --color-gris: #2d2d2d;
    --color-texte: #f0f0f0;
    --color-noir: #0a0a0a;
    --glass-bg: rgba(30, 30, 30, 0.9);
    --glass-border: rgba(212, 165, 48, 0.2);
}

[data-theme="dark"] body {
    background-color: #121212;
    color: #f0f0f0;
}

[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] li {
    color: #e0e0e0;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 {
    color: #ffffff;
}

[data-theme="dark"] .section-title h2::after {
    background: linear-gradient(90deg, var(--color-or), var(--color-or-clair));
}

[data-theme="dark"] .bg-gris {
    background-color: #1a1a1a;
}

[data-theme="dark"] .acces-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .patrimoine-card,
[data-theme="dark"] .actu-card,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .horaires-box,
[data-theme="dark"] .cr-item,
[data-theme="dark"] .timeline-content,
[data-theme="dark"] .alerte-card,
[data-theme="dark"] .lien-externe {
    background: linear-gradient(145deg, #1e1e1e, #252525);
    color: #e8e8e8;
    border: 1px solid rgba(212, 165, 48, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .alerte-content p,
[data-theme="dark"] .lien-externe p {
    color: #b0b0b0;
}

[data-theme="dark"] .alerte-date {
    color: #aaa;
}

[data-theme="dark"] .actu-card p,
[data-theme="dark"] .service-card p,
[data-theme="dark"] .patrimoine-card p {
    color: #b0b0b0;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
    background: #252525;
    border-color: #3a3a3a;
    color: #f0f0f0;
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
    color: #888;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .form-group select:focus {
    border-color: var(--color-or);
    box-shadow: 0 0 0 3px rgba(212, 165, 48, 0.2);
}

[data-theme="dark"] .elu-card .photo {
    background: linear-gradient(145deg, #252525, #1a1a1a);
    border-color: var(--color-or);
}

[data-theme="dark"] .elu-card h4 {
    color: #fff;
}

[data-theme="dark"] .fonction {
    color: var(--color-or) !important;
}

[data-theme="dark"] a {
    color: var(--color-or);
}

[data-theme="dark"] a:hover {
    color: var(--color-or-clair);
}

[data-theme="dark"] .btn {
    box-shadow: var(--shadow-gold);
}

[data-theme="dark"] .btn-outline {
    border-color: var(--color-or);
    color: var(--color-or);
}

[data-theme="dark"] .intro-village p,
[data-theme="dark"] .legal-content p,
[data-theme="dark"] .legal-content li {
    color: #d0d0d0;
}

[data-theme="dark"] .chiffre .label {
    color: #a0a0a0;
}

[data-theme="dark"] .horaires-liste li {
    border-bottom-color: #333;
}

[data-theme="dark"] .jour {
    color: #fff;
}

[data-theme="dark"] .heures {
    color: var(--color-or);
}

[data-theme="dark"] .ferme {
    color: #777;
}

[data-theme="dark"] footer {
    background: linear-gradient(180deg, #0a0a0a, #121212);
}

[data-theme="dark"] .contact-info-card {
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
}

/* ===========================================
   WIDGET METEO - Style Glassmorphism Moderne
   =========================================== */
.weather-widget {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 165, 48, 0.3);
    border-radius: var(--radius-lg);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px auto 0;
    max-width: 280px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.weather-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(212, 165, 48, 0.1),
        transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.weather-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.05); }
}

.weather-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.weather-temp {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1;
    margin-bottom: 2px;
}

.weather-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: capitalize;
    font-weight: 500;
}

.weather-location {
    font-size: 0.7rem;
    color: var(--color-or);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===========================================
   SECTION ACTUALITES MODERNE
   =========================================== */
.actualites-section {
    position: relative;
    overflow: hidden;
}

.actualites-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(212, 165, 48, 0.03) 50%, transparent 100%);
    pointer-events: none;
}

.actu-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.actu-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.actu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-or), var(--color-or-fonce));
    transform: scaleY(0);
    transition: transform 0.4s ease;
    z-index: 2;
}

.actu-card:hover::before {
    transform: scaleY(1);
}

.actu-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--color-or), var(--color-or-fonce));
    color: var(--color-noir);
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 3;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(212, 165, 48, 0.4);
}

.actu-badge.urgent {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
}

.actu-card .actu-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.actu-card .actu-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.actu-card .actu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.actu-card:hover .actu-image img {
    transform: scale(1.1);
}

.actu-card .content {
    padding: 22px;
}

.actu-card .date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-or-fonce);
    font-size: 0.8rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.actu-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.4;
    line-height: 1.4;
}

.actu-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.actu-card .lire-plus {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--color-or-fonce);
    font-weight: bold;
    margin-top: 15px;
    transition: var(--transition);
}

.actu-card .lire-plus:hover {
    gap: 10px;
    color: var(--color-or);
}

/* ===========================================
   COMPTEUR ANIME
   =========================================== */
.chiffre .nombre {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-or);
    display: block;
}

.chiffre .nombre.counting {
    animation: countPulse 0.3s ease;
}

@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===========================================
   TIMELINE HISTOIRE
   =========================================== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-or), var(--color-or-fonce));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background: var(--color-or);
    border: 4px solid var(--color-noir);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd)::before {
    right: -10px;
}

.timeline-item:nth-child(even)::before {
    left: -10px;
}

.timeline-content {
    background: var(--color-blanc);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 25px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -20px;
    border-left-color: var(--color-blanc);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -20px;
    border-right-color: var(--color-blanc);
}

.timeline-date {
    display: inline-block;
    background: var(--color-or);
    color: var(--color-noir);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.timeline-content h3 {
    color: var(--color-noir);
    margin-bottom: 10px;
}

.timeline-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Timeline responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 60px;
        padding-right: 20px;
    }

    .timeline-item::before {
        left: 10px !important;
        right: auto !important;
    }

    .timeline-content::before {
        left: -20px !important;
        right: auto !important;
        border-left-color: transparent !important;
        border-right-color: var(--color-blanc) !important;
    }
}

/* ===========================================
   EFFETS PARALLAX
   =========================================== */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ===========================================
   NOTIFICATIONS / ALERTES
   =========================================== */
.alert-banner {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-size: 0.95rem;
    position: relative;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-banner a {
    color: white;
    text-decoration: underline;
}

.alert-banner .close-alert {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.alert-banner .close-alert:hover {
    opacity: 1;
}

/* ===========================================
   BOUTONS SOCIAUX
   =========================================== */
.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-or);
    color: var(--color-noir);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 165, 48, 0.4);
}

/* ===========================================
   PAGE MENTIONS LEGALES
   =========================================== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h3 {
    color: var(--color-or-fonce);
    margin-top: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-or);
}

.legal-content ul {
    list-style: disc;
    padding-left: 25px;
    margin: 15px 0;
}

.legal-content li {
    margin-bottom: 8px;
}

/* ===========================================
   ANIMATIONS SUPPLEMENTAIRES
   =========================================== */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Effet de brillance sur les boutons */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -50%; }
    100% { left: 150%; }
}

/* ===========================================
   SCROLL INDICATOR
   =========================================== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-or);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-or);
    border-radius: 50%;
    animation: scrollDown 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); }
}

@keyframes scrollDown {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 30px; }
}

/* ===========================================
   LOADER / SKELETON
   =========================================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===========================================
   BACK TO TOP BUTTON
   =========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-or);
    color: var(--color-noir);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(212, 165, 48, 0.5);
}
