/* =====================================
   RESET & BASE
===================================== */

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f6f8;
    color: #333;
    font-size: 18px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 40px 0;
}

main {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
    background: white;
}

h2 {
    position: relative;
    padding-left: 15px;
    margin-bottom: 15px;
}

h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 60%;
    background-color: #6a0dad; /* violet */
    border-radius: 3px;
}
/* trait sous les h1 des pages 
*/

.section-divider-km {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #6a0dad, #8a2be2);
    border: none;
    margin: 10px auto 25px auto;
    border-radius: 2px;
}

/* INDEX DU SITE */


.home-section {
    margin: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h2 {
    margin: 0;
}

.link-more {
    text-decoration: none;
    color: #6a0dad;
    font-weight: bold;
}

.link-more:hover {
    text-decoration: underline;
}

.featured-card {
    display: flex;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.featured-image img {
    width: 300px;
    border-radius: 8px;
    object-fit: cover;
}

.featured-content {
    flex: 1;
}

.card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 10px;
}

.card-text {
    font-size: 0.9rem;
    color: #444;
}

.meta {
    font-size: 0.9rem;
    color: #666;
}

/*style des titre sur les pages
*/
.titre-container h1 {
    text-align: center;
    margin-bottom: 20px;
}

/* =========================================================
   FENÊTRE D'ACCUEIL - NOUVEAU SITE
   ========================================================= */

.site-welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;

    background: rgba(0, 0, 0, 0.58);

    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.site-welcome-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-welcome-modal {
    position: relative;

    width: 100%;
    max-width: 700px;
    max-height: 90vh;

    overflow-y: auto;

    padding: 40px 45px 35px;

    background: #ffffff;
    border-radius: 18px;

    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);

    text-align: center;

    animation: welcomeModalAppear 0.35s ease;
}

@keyframes welcomeModalAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.site-welcome-close {
    position: absolute;
    top: 15px;
    right: 18px;

    width: 38px;
    height: 38px;

    border: none;
    border-radius: 50%;

    background: #f1f1f1;
    color: #555;

    font-size: 27px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.site-welcome-close:hover {
    background: #e2e2e2;
    color: #222;
}

.site-welcome-icon {
    width: 65px;
    height: 65px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f3f3f3;

    color: #333;

    font-size: 28px;
}

.site-welcome-modal h2 {
    margin: 0 auto 25px;

    max-width: 580px;

    font-size: 1.65rem;
    line-height: 1.3;

    color: #333;
}

.site-welcome-content {
    color: #444;

    font-size: 1rem;
    line-height: 1.65;

    text-align: left;
}

.site-welcome-content p {
    margin: 0 0 18px;
}

.site-welcome-highlight {
    margin: 25px 0;

    padding: 20px 22px;

    background: #f7f7f7;

    border-left: 4px solid #555;

    border-radius: 8px;
}

.site-welcome-highlight strong {
    display: block;

    margin-bottom: 8px;

    color: #333;

    font-size: 1.05rem;
}

.site-welcome-highlight p {
    margin: 0;
}

.site-welcome-footer {
    margin-top: 25px;

    color: #555;

    font-size: 1rem;
}

.site-welcome-button {
    margin-top: 25px;

    min-width: 150px;
}

/* Version mobile */
@media (max-width: 700px) {

    .site-welcome-overlay {
        padding: 15px;
    }

    .site-welcome-modal {
        max-height: 92vh;

        padding: 35px 25px 28px;

        border-radius: 14px;
    }

    .site-welcome-modal h2 {
        font-size: 1.35rem;

        padding: 0 15px;
    }

    .site-welcome-content {
        font-size: 0.98rem;
    }

    .site-welcome-highlight {
        padding: 16px 18px;
    }
}

/* =====================================
   HEADER

   .site-header {
    background: white;
    border-bottom: 1px solid #e5e9ef;
    padding: 15px 0;
}
===================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    padding: 8px 0;
}

.site-header.scrolled .header-logo {
    height: 55px;
    transition: 0.3s ease;
}


.site-header::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(to right, #0055a4 33%, white 33%, white 66%, #ef4135 66%);
}

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

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

.branding h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #1e3a5f;
}

.header-logo {
    height: 70px;
}


/* =====================================
   NAVIGATION - MEGA MENU
===================================== */

.main-nav {
    position: relative;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.menu > li {
    position: relative;
}

.menu > li > a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 0;
    display: block;
    position: relative;
}

.menu > li > a:hover {
    color: #1e3a5f;
}

/* underline animation */
.menu > li > a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #1e3a5f;
    transition: 0.3s ease;
}

.menu > li > a:hover::after {
    width: 100%;
}


/* ===== MEGA PANEL ===== */

/* ===== MEGA MENU autre===== */

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);

    width: 100vw;
    background: white;
    padding: 50px 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    display: flex;
    justify-content: center;
    gap: 100px;

    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;

    border-top: 1px solid #e5e9ef;
    z-index: 999;
}

.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}


.mega-column {
    min-width: 220px;
}

.mega-column h4 {
    margin-bottom: 18px;
    font-size: 14px;
    text-transform: uppercase;
    color: #1e3a5f;
    letter-spacing: 1px;
    font-weight: 700;
}

.mega-column a {
    display: block;
    text-decoration: none;
    color: #555;
    margin-bottom: 10px;
    font-size: 15px;
    transition: 0.2s ease;
}

.mega-column a:hover {
    color: #1e3a5f;
    padding-left: 6px;
}



/* =====================================
   ACCESSIBILITÉ
===================================== */

.accessibility button {
    border: 1px solid #dfe6ed;
    background: white;
    padding: 6px 10px;
    margin-left: 5px;
    border-radius: 6px;
    cursor: pointer;
}

.accessibility button:hover {
    background: #f0f3f7;
}


/* =====================================
   BANNIÈRE
===================================== */

.site-banner {
    position: relative;
    width: 100%;
    height: 300px;
    background: url('/assets/images/mairie-head-quittebeuf.jpg') center 100% / cover no-repeat;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-title {
    color: white;
    font-size: 36px;
    font-weight: bold;
}


/* =====================================
   HERO SLIDER
===================================== */

.hero {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


/* =====================================
   titres hero et sous titre
===================================== */

.page-title {
    font-size: 30px;
    margin-bottom: 30px;
    color: #1e3a5f;
}

.title-hero {
    color: #dfe6ed;
}


/* =====================================
   NEWS CARDS
===================================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: 0.2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.news-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.news-date {
    font-size: 12px;
    color: #777;
}

/* =====================================
   CARDS
===================================== */

.cards-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 20px; 
} 

.card { 
    background: #fff; 
    border-radius: 10px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
    padding: 15px; 
    transition: transform 0.2s ease; 
} 
.card:hover { 
    transform: translateY(-4px);

} 
 .card img { 
    width: 100%;
    max-height: 150px; /* limite la hauteur de l'image */ 
    object-fit: cover; /* garde le ratio et coupe l’excédent si besoin */
    border-radius: 6px; 
    margin-bottom: 10px; 
} 
.card h3 { 
    margin: 0 0 10px 0;
    font-size: 18px; 
} 
.card p { 
    font-size: 14px;
    color: #555; 
}

/* =====================================
   DOCUMENTS
===================================== */

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.document-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.2s ease;
}

.document-card:hover {
    transform: translateY(-4px);
}

.btn-download {
    display: inline-block;
    padding: 8px 12px;
    background: #1e3a5f;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
}

.btn-download:hover {
    background: #16304a;
}


/* =====================================
   PAGINATION
===================================== */

.pagination {
    margin-top: 30px;
}

.pagination a,
.pagination span {
    margin-right: 8px;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    color: #1e3a5f;
    background: #e5e9ef;
}

.pagination span.active-page {
    background: #1e3a5f;
    color: white;
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    border-radius: 2px;
}

/* MOBILE */

@media (max-width: 992px) {

    .menu-toggle {
        display: flex;
    }

    .menu {
        position: fixed;
        top: 80px; /* <-- ICI */
        left: 0;
        right: 0;

        height: calc(100vh - 80px); /* <-- ICI */
        overflow-y: auto;

        background: white;
        flex-direction: column;
        padding: 20px;
        display: none;
        gap: 10px;

        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
        z-index: 2000;
    }

    .menu.active {
        display: flex;
    }


    .mega-menu {
        position: static;
        width: 100%;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 15px 0;
        box-shadow: none;
        flex-direction: column;
        gap: 20px;
        display: none;
    }

    .has-mega.open .mega-menu {
        display: flex;
    }

    .mega-column {
        min-width: 100%;
    }
}

/* =====================================
   BARRE D'ALERTE
===================================== */

.top-alert {
    background: #1e3a5f;
    color: white;
    font-size: 14px;
}

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

.close-alert {
    cursor: pointer;
    font-weight: bold;
    padding: 0 8px;
}

.close-alert:hover {
    opacity: 0.7;
}


/*==========================================
bandeau information
======================================== */
.top-banner {
    padding: 10px;
    text-align: center;
    font-weight: 500;
}

.top-alert {
    display: flex;
    justify-content: center; /* centre le texte */
    align-items: center;
    position: relative;      /* pour placer le close button */
    padding: 10px 40px 10px 20px;
    font-weight: bold;
}

.top-alert .close-alert {
    position: absolute;
    right: 10px;
    cursor: pointer;
}



.top-alert.info { background-color: #3498db; color: white; }
.top-alert.success { background-color: #2ecc71; color: white; }
.top-alert.warning { background-color: #f39c12; color: white; }
.top-alert.danger { background-color: #e74c3c; color: white; }

.public-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
}

.public-container h1 {
    margin-bottom: 30px;
    font-size: 28px;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 10px;
}

/* Cartes actualités */
.public-card {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.public-card img {
    width: 240px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

.public-card h2 {
    margin: 0 0 8px 0;
    font-size: 20px;
}

.public-card h2 a {
    text-decoration: none;
    color: #1f2d3d;
}

.public-card h2 a:hover {
    color: #0056b3;
}

/* ===== CARDS GRID ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

/* Card générale */
.card, .featured-actualite {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card img, .featured-actualite img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.featured-actualite {
    margin-bottom: 30px;
    padding: 20px;
}

/* Boutons */
.btn-primary-small {
    display: inline-block;
    padding: 5px 10px;
    background: #003366;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-top: 5px;
}

.btn-primary-small:hover {
    background: #0056b3;
}

/* Dates */
.date {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

/* Section spacing */
.home-section {
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}


.date {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.public-card p {
    line-height: 1.5;
}

.public-card a {
    font-weight: bold;
}

@media (max-width: 768px) {

    .public-card {
        flex-direction: column;
    }

    .public-card img {
        width: 100%;
        height: 200px;
    }
}


.date {
    color: #777;
    font-size: 14px;
    margin-bottom: 20px;
}

.detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.detail-content {
    line-height: 1.6;
    font-size: 16px;
}

.back-link {
    margin-top: 30px;
}
.public-detail {
    max-width: 800px;
    margin: auto;
}

.public-detail h1 {
    font-size: 30px;
    margin-bottom: 10px;
}

.detail-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    margin: 25px 0;
}

.detail-content {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.public-detail a {
    text-decoration: none;
    color: #0056b3;
}

/*a la une */
.featured-actualite {
    position: relative;
    margin-bottom: 40px;
    padding: 15px;
    background: #f0f4f8;
    border-radius: 12px;
}

.featured-actualite img.featured-image {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.featured-actualite h2 {
    font-size: 26px;
    margin: 0 0 10px 0;
}

.featured-actualite h2 a {
    text-decoration: none;
    color: #003366;
}

.featured-actualite h2 a:hover {
    color: #0056b3;
}

.featured-actualite .date {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.featured-actualite p {
    font-size: 16px;
    line-height: 1.5;
}

/*pagination actualite*/

.pagination {
    margin-top: 25px;
    font-size: 16px;
}

.pagination a {
    text-decoration: none;
    color: #003366;
    margin: 0 5px;
}

.pagination a:hover {
    color: #0056b3;
}

.pagination strong {
    margin: 0 5px;
    font-weight: bold;
}
/* Section "À la une" juste sous le hero */
.featured-news {
    padding: 20px 0;
}

.featured-actualite-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.featured-actualite-hero img {
    max-width: 300px;
    width: 100%;
    border-radius: 8px;
}

.featured-text {
    flex: 1;
}

.featured-text h3 {
    margin-top: 0;
}

.featured-text p {
    margin-bottom: 10px;
}

/* Cards Agenda */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
}

.card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #003366;
}

.card .date {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

/* =====================================
   Événement à la une
===================================== */
.featured-event {
    background: #f0f4f8;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    position: relative;
}

.featured-event h3 {
    font-size: 22px;
    color: #003366;
    margin-bottom: 10px;
}

.featured-event .date {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}
.featured-event p,
.card p {
    margin: 5px 0;
}

.featured-event .date,
.card .date {
    font-weight: bold;
}


/* Badge "Prochain événement" */
.event-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Ajoute un petit espace après icônes calendrier et lieu */
.featured-event .date,
.featured-event p {
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-detail.card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-top: 20px;
}

.event-detail .date {
    font-weight: bold;
    color: #1e3a5f;
    margin-bottom: 10px;
}

.event-description {
    margin-top: 15px;
    line-height: 1.6;
    font-size: 16px;
}

.event-detail p {
    margin: 8px 0;
}

/* =====================================
   MODULE DOCUMENTS PUBLIC
===================================== */

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

.document-card {
    display: flex;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 15px;
    gap: 15px;
    transition: transform 0.2s ease;
}

.document-card:hover {
    transform: translateY(-4px);
}

.doc-icon {
    font-size: 36px;
    color: #1e3a5f;
    flex-shrink: 0;
}

.doc-content h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #003366;
}

.doc-date {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}

.btn-download {
    display: inline-block;
    padding: 6px 12px;
    background: #1e3a5f;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s ease;
}

.btn-download:hover {
    background: #0056b3;
}

/* Filtrage & recherche */
.doc-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.doc-filter input,
.doc-filter select,
.doc-filter button {
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
}

.doc-filter button {
    background: #1e3a5f;
    color: #fff;
    border: none;
    cursor: pointer;
}

.doc-filter button:hover {
    background: #0056b3;
}

/* Catégories / années */
.category-title {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 22px;
    color: #1e3a5f;
    border-bottom: 2px solid #e5e9ef;
    padding-bottom: 5px;
}

.year-filter {
    margin-bottom: 15px;
}

.year-filter a {
    margin-right: 10px;
    text-decoration: none;
    color: #003366;
    font-weight: 500;
}

.year-filter a.active-year {
    font-weight: bold;
    color: #0056b3;
}

.no-doc {
    font-style: italic;
    color: #555;
}

/* Responsive */
@media (max-width:768px) {
    .document-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .doc-icon {
        font-size: 28px;
    }

    .doc-content h4 {
        font-size: 16px;
    }

    .doc-filter {
        flex-direction: column;
        gap: 8px;
    }
}


/* page contact */

.rgpd {
    /*display: ; */
    align-items: flex-start;
    font-size: 0.9em;
    gap: 8px;
    margin-top: 12px;
}

.rgpd-text {
    font-size: 0.8em;
    color: #555;
    margin-top: 10px;
    line-height: 1.4;
}

.alert-success {
    background:#d4edda;
    color:#155724;
    padding:15px;
    border-radius:6px;
    margin-bottom:20px;
}

.alert-error {
    background:#f8d7da;
    color:#721c24;
    padding:15px;
    border-radius:6px;
    margin-bottom:20px;
}
.contact-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px 15px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

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

.contact-form .btn-primary {
    background-color: #0055a5;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}

.contact-form .btn-primary:hover {
    background-color: #003f7f;
}


/* Page déchetterie */

/* CONTAINER */

.dechets-container{
max-width:1100px;
margin:60px auto;
padding:20px;
font-family:Arial, Helvetica, sans-serif;
}

.dechets-container h2{
margin-top:50px;
margin-bottom:15px;
border-left:5px solid #2c7be5;
padding-left:10px;
font-size:1.5em;
}

.intro{
text-align:center;
max-width:700px;
margin:auto;
color:#555;
margin-bottom:30px;
}


/* PROCHAINE COLLECTE */

.collecte-info{
background:linear-gradient(135deg,#339e2c,#2ba533);
color:white;
padding:25px;
border-radius:10px;
text-align:center;
margin-bottom:40px;
box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

.collecte-info h2{
border:none;
margin-bottom:10px;
color:white;
}


/* CALENDRIER */

.calendrier{
text-align:center;
margin:30px 0;
}

.calendrier img{
max-width:100%;
border-radius:10px;
box-shadow:0 6px 20px rgba(0,0,0,0.1);
}

.download{
margin-top:15px;
}

.btn-download{
display:inline-block;
padding:10px 20px;
background:#2c7be5;
color:white;
border-radius:6px;
text-decoration:none;
font-weight:500;
transition:0.2s;
}

.btn-download:hover{
background:#1a5fcc;
}


/* NOTE */

.note{
text-align:center;
color:#666;
margin-bottom:40px;
}


/* DECHETTERIES */

.dechetteries{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
gap:25px;
}

.dechetterie{
background:#ffffff;
border-radius:10px;
padding:20px;
border:1px solid #e3e3e3;
box-shadow:0 3px 10px rgba(0,0,0,0.05);
transition:0.2s;
}

.dechetterie:hover{
transform:translateY(-4px);
box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

.dechetterie h3{
margin-bottom:5px;
}

.adresse{
color:#555;
font-size:0.95em;
margin-bottom:8px;
}

.tel-dechet{
margin:10px 0;
font-weight:500;
}

.btn-map{
display:inline-block;
background:#f3f6fa;
padding:6px 12px;
border-radius:6px;
font-size:0.9em;
text-decoration:none;
color:#333;
margin-bottom:10px;
}

.btn-map:hover{
background:#e4ecf5;
}


/* BADGE FERME */

.badge-ferme{
display:inline-block;
background:#e74c3c;
color:white;
padding:6px 10px;
border-radius:6px;
font-size:0.85em;
}


/* TRI */

.tri-container{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:20px;
margin-top:20px;
}

.tri-box{
background:#fafafa;
padding:20px;
border-radius:10px;
border:1px solid #e6e6e6;
text-align:center;
transition:0.2s;
}

.tri-box:hover{
transform:translateY(-3px);
box-shadow:0 6px 15px rgba(0,0,0,0.08);
}

.tri-box h3{
margin-bottom:10px;
}


/* CONTENEUR VERRE */

.dechets-container p strong{
color:#000000;
}


/* MOBILE */

@media(max-width:768px){

.dechets-container{
padding:15px;
}

.collecte-info{
padding:18px;
}

}

.section-block{
margin-top:50px;
}

/* Page Eglise */

.eglise-image {
    text-align: center;
    margin: 30px 0 40px;
}

.eglise-image img {
    max-width: 70%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.eglise-image img:hover {
    transform: scale(1.02);
}
.image-legende {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
}
.eglise-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
}

.eglise-container h2{
margin-top:50px;
margin-bottom:15px;
border-left:5px solid #2c7be5;
padding-left:10px;
font-size:1.5em;
}

/*  image galerie */

.eglise-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 70px 0;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.gallery-item img {
    width: 80%;
    height: 140px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Responsive */
@media (max-width: 900px) {
    .eglise-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .eglise-gallery {
        grid-template-columns: 1fr;
    }
}

.intro {
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}
.info-box {
    margin: 30px 0;
    padding: 20px;
    background: #f0f6ff;
    border-left: 5px solid #0073e6;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.info-box h3 {
    margin-top: 0;
    color: #0073e6;
}
.map {
    text-align: center;
    margin: 30px 0;
}

.map img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.map img:hover {
    transform: scale(1.03);
}

ul {
    margin-left: 20px;
    margin-bottom: 30px;
}

.download .btn-download {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073e6;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
}

.download .btn-download i {
    margin-right: 8px;
}

.download .btn-download:hover {
    background-color: #005bb5;
}

/* Page Cimetière */

.cimetiere-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
}

.cimetiere-container h2{
margin-top:50px;
margin-bottom:15px;
border-left:5px solid #2c7be5;
padding-left:10px;
font-size:1.5em;
}

.intro {
    text-align: center;
    margin-bottom: 40px;
}

.map {
    text-align: center;
    margin: 30px 0;
}

.map img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.map img:hover {
    transform: scale(1.03);
}

ul {
    margin-left: 20px;
    margin-bottom: 30px;
}

.download .btn-download {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073e6;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
}

.download .btn-download i {
    margin-right: 8px;
}

.download .btn-download:hover {
    background-color: #005bb5;
}

/* Page Actualité */

/* Image cliquable */
.clickable-image {
    cursor: pointer;
    transition: 0.3s;
}

.clickable-image:hover {
    opacity: 0.8;
}

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

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/** page les élus **/
.elus-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 20px;
}

.elus-container h1 {
    text-align: center;
    margin-bottom: 50px;
}

.elu-section {
    margin-bottom: 50px;
}

.elu-section h2 {
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

.elu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.elu-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.elu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.elu-nom {
    font-weight: 600;
    font-size: 1.1em;
}

.elu-fonction {
    color: #666;
    margin-top: 5px;
    font-size: 0.95em;
}

.maire {
    background: #eef4ff;
    border: 2px solid #d0e2ff;
}

/** CONTINUER LE CSS ICI */

/** SALLE POLYVALENTE */

.salle-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 20px;
}

.salle-container h1 {
    text-align: center;
    margin-bottom: 40px;
}

.salle-infos {
    background: #f4f8ff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.salle-tarifs {
    margin-bottom: 50px;
}

.salle-tarifs h2 {
    margin-top: 30px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 5px;
}

.salle-tarifs ul {
    margin-top: 10px;
    margin-bottom: 20px;
}

.salle-reservation {
    margin-top: 50px;
}

#calendar {
    margin-top: 20px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 10px;
    text-align: center;
}

.calendar-placeholder {
    color: #777;
}

/* panneau pocket */

.panneau-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-top: 10px;
}

.panneau-wrapper iframe {
    width: 100%;
    height: 400px; /* parfait pour homepage */
    border: none;
}


/* Démarche en ligne */
.demarches-container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 20px;
}

.demarches-container .intro {
    text-align: center;
    margin-bottom: 40px;
    color: #555;
}

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

.demarche-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.demarche-card:hover {
    transform: translateY(-4px);
}

.demarche-card h3 {
    margin-bottom: 10px;
    color: #1e3a5f;
}

.external-link-box {
    background: #f4f8ff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

/***********************
PAge Sports
***********************/

.sports-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 20px;
}

.intro {
    text-align: center;
    margin-bottom: 40px;
    color: #555;
    line-height: 1.6;
}

.sport-section {
    margin-bottom: 60px;
}

.sport-section h2 {
    margin-bottom: 20px;
    color: #1e3a5f;
}

.sport-grid {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.sport-image {
    flex: 1;
    min-width: 280px;
}

.sport-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    object-fit: cover;
}

.sport-text {
    flex: 1;
    min-width: 280px;
}

.sport-text p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #444;
}

.sport-text ul {
    padding-left: 20px;
    color: #555;
}

.sport-text li {
    margin-bottom: 6px;
}

/* MOBILE */
@media (max-width: 768px) {
    .sport-grid {
        flex-direction: column;
    }
}

/*page commercxe */

.commerce-image {
    text-align: center;
    margin: 30px 0;
}

.commerce-image img {
    max-width: 90%;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.intro {
    text-align: center;
    max-width: 800px;
    margin: auto;
    margin-bottom: 30px;
    color: #555;
    line-height: 1.6;
}
.meta {
    font-size: 0.9rem;
    color: #555;
    margin: 3px 0;
}
.card.service {
    border-left: 4px solid #e67e22;
}

.card.commerce {
    border-left: 4px solid #2c7be5;
}

/** Widget secour 

.side-widget-emergency {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 160px;
    background: #c9302c;
    color: white;
    border-radius: 10px 0 0 10px;
    overflow: hidden;
    z-index: 9999;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    font-family: Arial, sans-serif;
}

.side-widget-emergency .side-title {
    background: #a71d2a;
    padding: 10px;
    font-weight: bold;
    text-align: center;
    font-size: 14px;
}

.side-widget-emergency a {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    font-size: 14px;
    transition: background 0.2s;
}

.side-widget-emergency a:hover {
    background: rgba(0,0,0,0.2);
}


@media (max-width: 768px) {
    .side-widget-emergency {
        width: 100%;
        bottom: 0;
        top: auto;
        right: 0;
        transform: none;
        border-radius: 0;
        display: flex;
    }

    .side-widget-emergency a {
        flex: 1;
        border-top: none;
        border-left: 1px solid rgba(255,255,255,0.2);
        padding: 12px 5px;
        font-size: 12px;
    }

    .side-title {
        display: none;
    }
}


.icon-samu {
    background-image: url("../icons/Service_d'aide_médicale_urgente.svg");
}

.icon-fire {
    background-image: url("../icons/Sapeurs_Pompiers.svg");
}

.icon-police {
    background-image: url("../icons/Police_Nationale_(France).svg");
}

.icon-europe {
    background-image: url("../icons/112.svg");
}
**/
/** panneau pocket */

.panneau-pocket-box {
    background: #f4f7fb;
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.pp-content h3 {
    margin-bottom: 1rem;
}

.pp-content p {
    margin-bottom: 1.5rem;
    color: #555;
}

.panneau-pocket-widget {
position: fixed;
right: 20px;
bottom: 20px;
z-index: 9999;
}

.panneau-pocket-widget a {
display: flex;
align-items: center;
gap: 12px;


background: #1e3a5f;
color: white;

padding: 12px 16px;
border-radius: 14px;

text-decoration: none;
font-weight: 600;

box-shadow: 0 6px 18px rgba(0,0,0,0.18);

transition: all 0.25s ease;


}

.panneau-pocket-widget a:hover {
transform: translateY(-3px);
box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.panneau-pocket-widget img {
width: 42px;
height: 42px;
object-fit: contain;
}

.panneau-pocket-widget span {
line-height: 1.3;
font-size: 14px;
}

/* Mobile */
@media (max-width: 758px) {
.panneau-pocket-widget {
right: 20px;
bottom: 50px;
}

.panneau-pocket-widget a {
    padding: 10px 12px;
}

.panneau-pocket-widget span {
    display: none;
}

.panneau-pocket-widget img {
    width: 38px;
    height: 38px;
}


}

/** FOOTER **/
.footer {
    background: linear-gradient(to bottom, #3b4b5a, #2f3e4d);
    color: #fff;
    margin-top: 60px;
    font-size: 0.95em;
}

/* TOP */
.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 40px 20px;
    max-width: 1100px;
    margin: auto;
}

.footer-left {
    max-width: 400px;
}

.footer-logo img {
    max-width: 120px;
    margin-bottom: 10px;
}

.footer-adresse {
    margin-bottom: 10px;
    color: #ddd;
}

.footer-link {
    display: block;
    color: #ccc;
    margin: 5px 0;
    text-decoration: none;
}

.footer-link:hover {
    color: #fff;
}

.footer-socials {
    margin-top: 10px;
}

.footer-socials a {
    margin-right: 12px;
    color: #fff;
    font-size: 18px;
    transition: transform 0.2s;
}

.footer-socials a:hover {
    transform: scale(1.2);
}

/* DROITE */
.footer-right img {
    max-width: 320px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* BANDEAU */
.footer-infos {
    background-color: #2f3e4d;
    padding: 12px 20px;

    display: flex;
    justify-content: center;   /* centre horizontal */
    align-items: center;       /* centre vertical */
    flex-wrap: wrap;           /* retour à la ligne si besoin */
    gap: 10px;                 /* espace entre les éléments */

    text-align: center;
    font-size: 0.9em;
    color: #d0d0d0;
}


.footer-infos .separator {
    margin: 0 10px;
}

/* BAS */
.footer-bottom {
    text-align: center;
    padding: 25px 20px;
    border-top: 1px solid #444;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.footer-menu li {
    display: inline;
    margin: 0 12px;
}

.footer-menu a {
    color: #bbb;
    text-decoration: none;
}

.footer-menu a:hover {
    color: #fff;
}

/* PARTENAIRES */
.footer-partenaires {
    margin: 15px 0;
}

.footer-partenaires img {
    height: 45px;
    margin: 8px;
    opacity: 0.85;
    transition: 0.2s ease;
}

.footer-partenaires img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* COPYRIGHT */
copyright {
    color: #888;
    font-size: 0.85em;
}

/* SCROLL */
#scrollTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0073e6;
    color: #fff;
    padding: 10px 14px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* page plan du site */
.sitemap-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
}

.intro {
    text-align: center;
    margin-bottom: 30px;
    color: #555;
}

.sitemap-section {
    margin-bottom: 30px;
}

.sitemap-section h2 {
    margin-bottom: 10px;
    color: #2f3e4d;
}

.sitemap-section ul {
    list-style: none;
    padding-left: 0;
}

.sitemap-section li {
    margin: 6px 0;
}

.sitemap-section a {
    text-decoration: none;
    color: #0073e6;
    transition: 0.2s;
}

.sitemap-section a:hover {
    text-decoration: underline;
}

/* =====================================================
page projet 
==================================== */

/* =====================================================
   INTRODUCTION
===================================================== */

.projet-intro {
    max-width: 1000px;
    margin: 0 auto 40px auto;
    font-size: 1.05rem;
    line-height: 1.8;
}


/* =====================================================
   GRANDE IMAGE
===================================================== */

.projet-hero {
    position: relative;
    max-width: 1100px;
    margin: 40px auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.projet-hero img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.projet-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 35px;
    color: white;
    background: linear-gradient(
        transparent,
        rgba(0,0,0,0.8)
    );
}

.projet-hero-overlay span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.projet-hero-overlay h2 {
    margin: 8px 0;
    font-size: 2rem;
}

.projet-hero-overlay p {
    margin: 0;
}


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

.projet-section {
    max-width: 1100px;
    margin: 55px auto;
}

.projet-section h2,
.projet-conclusion h2 {
    position: relative;
    padding-left: 15px;
    margin-bottom: 20px;
}

.projet-section h2::before,
.projet-conclusion h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 5px;
    background: #0066cc;
    border-radius: 3px;
}

.section-intro {
    color: #666;
    margin-bottom: 25px;
}


/* =====================================================
   DIAPORAMA
===================================================== */

.projet-slideshow {
    position: relative;
    max-width: 1000px;
    height: 500px;
    margin: 25px auto 10px auto;
    overflow: hidden;
    border-radius: 12px;
    background: #eee;
}

.slide-projet {
    display: none;
    width: 100%;
    height: 100%;
}

.slide-projet.active {
    display: block;
}

.slide-projet img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Boutons */

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0,0,0,0.55);
    color: white;
    width: 45px;
    height: 55px;
    font-size: 25px;
    cursor: pointer;
    border-radius: 5px;
}

.slide-btn:hover {
    background: rgba(0,0,0,0.8);
}

.slide-prev {
    left: 15px;
}

.slide-next {
    right: 15px;
}


/* Points */

.slide-indicators {
    text-align: center;
    margin-top: 15px;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: #0066cc;
}


/* =====================================================
   GALERIE
===================================================== */

.projet-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    background: #eee;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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


/* =====================================================
   CONCLUSION
===================================================== */

.projet-conclusion {
    max-width: 1000px;
    margin: 60px auto;
    padding: 30px;
    background: #f5f7fa;
    border-radius: 12px;
    border-left: 5px solid #0066cc;
}


/* =====================================================
   LIGHTBOX
===================================================== */

.projet-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

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

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 45px;
    cursor: pointer;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .projet-hero img {
        height: 320px;
    }

    .projet-hero-overlay {
        padding: 20px;
    }

    .projet-hero-overlay h2 {
        font-size: 1.5rem;
    }

    .projet-slideshow {
        height: 300px;
    }

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

    .gallery-item img {
        height: 160px;
    }

}

@media (max-width: 500px) {

    .projet-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 220px;
    }

}

/* curseur avancement */

/* =====================================================
   AVANCEMENT DU PROJET
===================================================== */

.projet-avancement {
    max-width: 1000px;
    margin: 55px auto;
    padding: 30px 35px;
    background: #f7f7fa;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.avancement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.avancement-label {
    display: block;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    color: #666;
    margin-bottom: 5px;
}

.avancement-header h2 {
     margin-top:50px;
margin-bottom:15px;
border-left:5px solid ;
padding-left:10px;
font-size:1.5em;
}

.avancement-header h2::before {
     margin-top:0px;
margin-bottom:5px;

}

.avancement-pourcentage {
    font-size: 2.2rem;
    font-weight: bold;
    color: #0066cc;
    white-space: nowrap;
}

.avancement-barre {
    width: 100%;
    height: 22px;
    background: #ddd;
    border-radius: 20px;
    overflow: hidden;
}

.avancement-progression {
    height: 100%;
    background: linear-gradient(90deg, #0066cc, #4d8ed8);
    border-radius: 20px;
    transition: width 1s ease;
}

.avancement-bas {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #777;
}

.avancement-info {
    margin: 20px 0 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 600px) {

    .projet-avancement {
        padding: 25px 20px;
    }

    .avancement-header {
        align-items: flex-start;
    }

    .avancement-pourcentage {
        font-size: 1.8rem;
    }

    .avancement-bas {
        font-size: 0.7rem;
    }
}

/*========== style card santé =====*/

.osteopathe-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.osteopathe-photo {
    overflow: hidden;
    border-radius: 10px;
}

.osteopathe-photo img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.osteopathe-photo img:hover {
    transform: scale(1.03);
}

@media (max-width: 700px) {
    .osteopathe-gallery {
        grid-template-columns: 1fr;
    }

    .osteopathe-photo img {
        height: auto;
        max-height: 300px;
    }
}

/*======= les mots du maire ===========*/


.construction-container {

    max-width: 900px;
    margin: 60px auto;
    padding: 30px 40px;

}

.construction-container h1 {

    text-align: center;
    margin-bottom: 20px;

}

.maire-message {

    max-width: 800px;
    margin: 40px auto;

    font-size: 1.05em;
    line-height: 1.7;

}

.maire-message p {

    margin-bottom: 25px;

}

.maire-message > p:first-child {

    text-align: center;
    font-size: 1.2em;

}

.maire-signature {

    text-align: right;
    margin-top: 40px;

}

.maire-retour {

    text-align: center;
    margin-top: 40px;

}

/**** page salle polyvalente */

/* =========================================================
   SALLE POLYVALENTE - GALERIE PHOTOS
   ========================================================= */

.salle-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
    margin: 35px 0 30px;
}

.salle-photo {
    margin: 0;
    padding: 0;
}

.salle-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.salle-photo img:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.23);
}

.salle-photo figcaption {
    margin-top: 12px;
    text-align: center;
    font-size: 0.95em;
    color: #666;
}


/* =========================================================
   INFORMATIONS SUR LA SALLE
   ========================================================= */

.salle-infos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 45px;

    width: 100%;
    box-sizing: border-box;

    margin: 10px 0 50px;
    padding: 18px 25px;

    background: #f5f5f5;
    border-radius: 10px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.salle-infos p {
    margin: 0;
    text-align: center;
}

.salle-infos strong {
    font-weight: 600;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .salle-photos {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 35px;
    }

    .salle-infos {
        flex-direction: column;
        gap: 10px;

        padding: 18px;
        margin-bottom: 40px;
    }

}

/* page santé */

/* =========================================================
   SANTÉ - CARTE OSTÉOPATHE
   ========================================================= */

.osteopathe-card {
    align-self: start;
}


/* =========================================================
   GALERIE DU CABINET D'OSTÉOPATHIE
   ========================================================= */

.osteopathe-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.osteopathe-photo {
    margin: 0;
    padding: 0;
}

.osteopathe-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .osteopathe-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }

}

/* Maire */

/* =========================================================
   LE MOT DU MAIRE
   ========================================================= */

.maire-message {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 45px;

    align-items: start;

    margin: 40px auto 30px;
    max-width: 1050px;

    padding: 35px;

    background: #f8f8f8;
    border-radius: 14px;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   PORTRAIT
   ========================================================= */

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

.maire-portrait img {
    display: block;

    width: 210px;
    height: 250px;

    margin: 0 auto;

    object-fit: cover;

    border-radius: 12px;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.maire-legende {
    margin: 12px 0 0;

    font-size: 0.9em;

    color: #666;
}


/* =========================================================
   TEXTE DU MAIRE
   ========================================================= */

.maire-texte {
    line-height: 1.7;

    color: #333;
}

.maire-texte p {
    margin-top: 0;
    margin-bottom: 20px;
}

.maire-bienvenue {
    font-size: 1.15em;

    color: #333;
}

.maire-signature {
    margin-top: 30px !important;

    text-align: right;

    font-size: 1.05em;
}


/* =========================================================
   BOUTON RETOUR
   ========================================================= */

.maire-retour {
    text-align: center;

    margin: 30px 0 50px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 750px) {

    .maire-message {
        grid-template-columns: 1fr;

        gap: 25px;

        padding: 25px;

        margin-top: 30px;
    }

    .maire-portrait img {
        width: 180px;
        height: 215px;
    }

    .maire-texte {
        line-height: 1.6;
    }

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

}

/* page sports */

/* =========================================================
   BUREAU - CLUB SPORTIF
   ========================================================= */

.sport-bureau {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.bureau-membre {
    display: flex;
    flex-direction: column;
    gap: 6px;

    padding: 20px;

    background: #f5f5f5;
    border-radius: 10px;

    text-align: center;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bureau-membre strong {
    font-size: 1.05em;
}

.bureau-membre span {
    color: #666;
    font-size: 0.95em;
}

/* =========================================================
   CONTACT CLUB SPORTIF
   ========================================================= */

.sport-contacts {
    margin: 20px 0 30px;
    padding: 15px 20px;

    background: #f5f5f5;
    border-radius: 10px;
}

.sport-contacts p {
    margin: 8px 0;
}

.sport-contacts a {
    color: inherit;
    text-decoration: none;
}

.sport-contacts a:hover {
    text-decoration: underline;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .sport-bureau {
        grid-template-columns: 1fr;
    }

}

/* page associations */

/* =========================================================
   ASSOCIATIONS
   ========================================================= */

.association-section {
    margin: 45px 0;
    padding: 30px;

    background: #f8f8f8;

    border-radius: 14px;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   TITRE ASSOCIATION
   ========================================================= */

.association-header {
    margin-bottom: 25px;
}

.association-header h2 {
    margin: 0 0 8px;
}

.association-type {
    margin: 0;

    color: #666;
    font-style: italic;
}

/* Galerie des associations */

.association-photos {
    display: grid !important;
    grid-template-columns: repeat(2, 400px) !important;
    gap: 40px !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin: 35px auto !important;
    padding: 0;
    box-sizing: border-box;
}

.association-photo {
    position: flex !important;
    width: 400px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

.association-photo img {
    display: block !important;
    position: static !important;
    width: 400px !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    box-sizing: border-box;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 700px) {
    .association-photos {
        grid-template-columns: 1fr !important;
        max-width: 300px;
    }

    .association-photo {
        width: 100% !important;
    }

    .association-photo img {
        width: 100% !important;
    }
}
/* =========================================================
   CONTENU
   ========================================================= */

.association-content {
    display: grid;

    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);

    gap: 40px;

    margin-top: 25px;
}

.association-column h3,
.association-description h3 {
    margin-top: 0;
    margin-bottom: 18px;
}


/* =========================================================
   CONTACTS
   ========================================================= */

.association-contact {
    margin: 10px 0;
}

.association-contact a {
    color: inherit;
    text-decoration: none;
}

.association-contact a:hover {
    text-decoration: underline;
}


/* =========================================================
   BUREAU
   ========================================================= */

.association-bureau {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 15px;
}

.association-membre {
    display: flex;

    flex-direction: column;

    gap: 5px;

    padding: 15px;

    background: #ffffff;

    border-radius: 10px;

    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.07);
}

.association-membre strong {
    font-size: 0.98em;
}

.association-membre span {
    color: #666;

    font-size: 0.9em;
}


.association-membres {
    margin-top: 20px;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.association-description {
    margin-top: 35px;

    padding-top: 30px;

    border-top: 1px solid #ddd;

    line-height: 1.7;
}

.association-description p {
    margin-bottom: 18px;
}

.association-description ul {
    margin: 15px 0 25px;

    padding-left: 25px;
}

.association-description li {
    margin-bottom: 8px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 750px) {

    .association-section {
        padding: 22px;

        margin: 30px 0;
    }

    .association-content {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .association-bureau {
        grid-template-columns: 1fr;
    }

    .association-photos {
        grid-template-columns: minmax(0, 300px);
    }
}



/* Retirer le style des titres de section sur la fenêtre d'accueil */
#site-welcome-title {
    position: static !important;
    display: block !important;

    margin: 0 auto 25px !important;
    padding: 0 !important;

    border: none !important;
    box-shadow: none !important;

    color: #333 !important;
    text-decoration: none !important;
}

#site-welcome-title::before,
#site-welcome-title::after {
    content: none !important;
    display: none !important;
}