/* ==========================================================
   AGIR POUR TOUSSUS
   FEUILLE DE STYLE PRINCIPALE
   ========================================================== */


/* ==========================================================
   COULEURS DU SITE
   ========================================================== */

:root {

    --navy: #123b63;
    --navy-dark: #0d2f50;

    --blue: #2475ad;
    --blue-light: #e8f3fa;

    --gold: #d8a82f;
    --gold-dark: #ad7d0d;

    --pale: #edf6fb;

    --ink: #172434;
    --muted: #60717d;

    --line: #dce6ed;

    --white: #ffffff;

    --shadow:
        0 8px 24px rgba(18,59,99,0.10);

    --shadow-strong:
        0 15px 40px rgba(18,59,99,0.20);
}


/* ==========================================================
   BASE
   ========================================================== */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--ink);

    background: #f7f9fb;

    line-height: 1.55;
}


img {
    max-width: 100%;
}


a {
    color: var(--blue);
}


.container {

    width: min(
        1180px,
        calc(100% - 36px)
    );

    margin-left: auto;
    margin-right: auto;
}



/* ==========================================================
   EN-TETE
   ========================================================== */

.site-header {

    background: #a0d5fa;

    position: sticky;

    top: 0;

    z-index: 100;

    box-shadow:
        0 2px 14px rgba(0,0,0,0.09);

    border-top:
        4px solid var(--navy);
}


.header {

    height: 90px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;
}


/* LOGO + NOM */

.brand {

    display: flex;

    align-items: center;

    gap: 12px;

    text-decoration: none;

    color: var(--navy);

    font-weight: 800;

    font-size: 20px;
}


.brand img {

    width: 78px;

    height: 78px;

    object-fit: contain;
}


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

.nav {

    display: flex;

    align-items: center;

    gap: 20px;
}


.nav a {

    text-decoration: none;

    color: var(--ink);

    font-weight: 700;

    font-size: 14px;

    padding: 10px 4px;

    transition: 0.2s;
}


.nav a:hover {

    color: var(--blue);
}


.menu {

    display: none;

    border: 0;

    background: transparent;

    color: var(--navy);

    font-size: 30px;

    cursor: pointer;
}



/* ==========================================================
   HERO ACCUEIL
   PHOTO DE LA MAIRIE
   ========================================================== */

.hero {

    position: relative;

    /*
       IMPORTANT :
       La photo utilisée est :
       www/images/mairie.jpg
    */

    background-image:

        linear-gradient(
            90deg,

            rgba(255,255,255,0.95) 0%,

            rgba(255,255,255,0.88) 25%,

            rgba(255,255,255,0.68) 43%,

            rgba(255,255,255,0.30) 62%,

            rgba(255,255,255,0.08) 100%
        ),

        url("../images/mairie.jpg");


    background-size: cover;

    background-position: center center;

    background-repeat: no-repeat;

    border-bottom:
        6px solid var(--gold);
}


/* GRILLE DU HERO */

.hero-grid {

    min-height: 600px;

    display: grid;

    /*
       Actualités à gauche
       Présentation à droite
    */
    grid-template-columns:
        minmax(360px, 0.75fr)
        minmax(0, 1.25fr);

    gap: 70px;

    align-items: center;

    padding-top: 55px;

    padding-bottom: 55px;
}


/* FIL D'ACTUALITES A GAUCHE */

.news {

    grid-column: 1;
    grid-row: 1;

    max-width: 440px;

    justify-self: start;
}


/* PRESENTATION A DROITE */

.hero-main {

    grid-column: 2;
    grid-row: 1;

    max-width: 650px;

    justify-self: end;
}


/* ==========================================================
   TEXTE DU HERO
   ========================================================== */

.hero-main {

    max-width: 680px;
}


.eyebrow {

    color: var(--gold-dark);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


.hero h1 {

    color: var(--navy);

    font-size:
        clamp(52px,5vw,76px);

    line-height: 1;

    margin:

        15px
        0
        8px;
}


.hero-main h2 {

    color: var(--blue);

    font-size:
        clamp(28px,2.5vw,37px);

    margin:
        0
        0
        22px;
}


.hero-main p {
    font-size: 19px;
    color: #000000;
    font-weight: 500;
    text-shadow:
        0 1px 2px rgba(255,255,255,1),
        0 0 5px rgba(255,255,255,0.9);
}


/* ==========================================================
   BOUTONS
   ========================================================== */

.actions {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 28px;
}


.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding:

        14px
        21px;

    border-radius: 10px;

    text-decoration: none;

    font-weight: 800;

    transition:
        transform 0.2s,
        box-shadow 0.2s;
}


.btn:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 7px 18px
        rgba(18,59,99,0.16);
}


/* BOUTON DORE */

.primary {

    background: var(--gold);

    color: var(--navy);
}


.primary:hover {

    background: #e2b43b;
}


/* BOUTON BLANC */

.light {

    background: #ffffff;

    color: var(--navy);

    border:
        1px solid #d7e2e9;
}


/* BOUTON CONTOUR */

.outline {

    background:
        rgba(255,255,255,0.80);

    border:
        2px solid var(--blue);

    color: var(--navy);
}



/* ==========================================================
   FIL D'ACTUALITES
   ========================================================== */

.news {

    background:
        rgba(255,255,255,0.94);

    backdrop-filter:
        blur(7px);

    -webkit-backdrop-filter:
        blur(7px);

    border-radius: 18px;

    padding:

        24px
        26px;

    border-top:
        6px solid var(--gold);

    box-shadow:
        var(--shadow-strong);

    max-height: 520px;

    overflow-y: auto;
}


/* TITRE */

.news-head {

    border-bottom:
        3px solid var(--gold);

    padding-bottom: 13px;

    margin-bottom: 3px;
}


.news-head small {

    color: var(--gold-dark);

    font-weight: 800;

    font-size: 11px;

    letter-spacing: 1px;
}


.news-head h2 {

    margin:

        3px
        0
        0;

    color: var(--navy);

    font-size: 25px;
}



/* ==========================================================
   ARTICLES DU FIL
   ========================================================== */

.news > a {

    display: block;

    text-decoration: none;

    color: inherit;

    padding:

        17px
        7px;

    border-bottom:
        1px solid var(--line);

    transition:
        background 0.2s,
        padding 0.2s,
        border 0.2s;
}


.news > a:hover {

    background:
        var(--pale);

    border-left:
        4px solid var(--gold);

    padding-left: 14px;
}


.news em {

    display: block;

    color: var(--blue);

    font-size: 10px;

    font-weight: 800;

    font-style: normal;

    letter-spacing: 0.5px;

    margin-bottom: 5px;
}


.news h3 {

    color: var(--navy);

    font-size: 17px;

    line-height: 1.3;

    margin:

        4px
        0
        7px;
}


.news p {

    font-size: 13px;

    color: var(--muted);

    margin:

        0
        0
        7px;
}


.news b {

    color: var(--gold-dark);

    font-size: 12px;
}


/* TOUTES LES ACTUALITES */

.news .all {

    text-align: right;

    color: var(--navy);

    font-weight: 800;

    border-bottom: 0;
}



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

.section {

    padding:

        65px
        0;
}


.white {

    background:
        #ffffff;
}


.section h2 {

    color: var(--navy);

    font-size:
        clamp(28px,3vw,36px);

    line-height: 1.2;

    margin:

        7px
        0
        15px;
}


.blue {

    color: var(--blue);
}


.lead {

    font-size: 18px;

    color: #455661;

    max-width: 900px;
}



/* ==========================================================
   GRILLES
   ========================================================== */

.grid {

    display: grid;

    gap: 20px;

    margin-top: 30px;
}


.three {

    grid-template-columns:
        repeat(3,1fr);
}


.four {

    grid-template-columns:
        repeat(4,1fr);
}



/* ==========================================================
   CARTES
   ========================================================== */

.card {

    background:

        linear-gradient(
            145deg,
            #ffffff 0%,
            #edf6fb 100%
        );

    border:
        1px solid #d3e4ef;

    border-radius: 16px;

    padding: 25px;

    text-decoration: none;

    color: inherit;

    box-shadow:
        var(--shadow);

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


.card:hover {

    transform:
        translateY(-5px);

    border-color:
        var(--blue);

    box-shadow:
        0 14px 32px
        rgba(18,59,99,0.16);
}


.card i {

    display:
        inline-flex;

    align-items: center;

    justify-content: center;

    width: 58px;

    height: 58px;

    background:
        #dff0fa;

    border-radius: 14px;

    font-style: normal;

    font-size: 30px;

    margin-bottom: 5px;
}


.card h3 {

    color: var(--navy);

    font-size: 19px;

    margin:

        10px
        0;
}


.card p {

    color: var(--muted);

    margin-bottom: 5px;
}



/* ==========================================================
   CARTE MINORITE & MAJORITE
   ========================================================== */

.featured {

    background:

        linear-gradient(
            135deg,
            var(--navy) 0%,
            var(--blue) 100%
        );

    border:
        3px solid var(--gold);

    box-shadow:
        0 12px 28px
        rgba(18,59,99,0.24);
}


.featured h3 {

    color: #ffffff;
}


.featured p {

    color:
        rgba(255,255,255,0.90);
}


.featured i {

    background:
        var(--gold);
}



/* ==========================================================
   BLOC MINORITE / MAJORITE
   ========================================================== */

.relation {

    display: grid;

    grid-template-columns:
        1.2fr
        0.8fr;

    gap: 50px;

    align-items: center;
}


.topics {

    display: grid;

    gap: 13px;
}


.topics a {

    display: flex;

    flex-direction: column;

    gap: 4px;

    text-decoration: none;

    color: var(--navy);

    background:

        linear-gradient(
            90deg,
            #edf6fb,
            #ffffff
        );

    border-left:
        5px solid var(--gold);

    padding:

        17px
        19px;

    border-radius: 10px;

    box-shadow:
        0 5px 14px
        rgba(18,59,99,0.07);

    transition: 0.2s;
}


.topics a:hover {

    transform:
        translateX(5px);

    background:
        #e3f2fa;
}


.topics b {

    font-size: 16px;
}


.topics span {

    font-size: 13px;

    color: var(--muted);
}



/* ==========================================================
   PAGE INTERIEURE
   ========================================================== */

.pagehero {

    background:

        linear-gradient(
            135deg,
            var(--navy),
            var(--blue)
        );

    color: #ffffff;

    padding:

        70px
        0;

    border-bottom:
        5px solid var(--gold);
}


.pagehero h1 {

    color: #ffffff;

    font-size:
        clamp(40px,5vw,54px);

    line-height: 1.1;

    margin:

        5px
        0
        12px;
}


.pagehero p {

    font-size: 18px;

    max-width: 800px;

    color:
        rgba(255,255,255,0.90);
}



/* ==========================================================
   ARTICLES
   ========================================================== */

.article {

    background: #ffffff;

    padding: 27px;

    border-radius: 14px;

    border:
        1px solid var(--line);

    margin:

        18px
        0;

    box-shadow:
        var(--shadow);
}


.note {

    background:
        #f4f9fc;

    border-left:
        5px solid var(--gold);

    padding:

        17px
        19px;

    margin:

        22px
        0;

    border-radius: 8px;
}



/* ==========================================================
   PIED DE PAGE
   ========================================================== */

.site-footer {

    background: #a0d5fa;

    color: #123b63;

    padding:
        30px
        0;

    border-top:
        5px solid var(--gold);
}


.footer {

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 25px;
}


.footer img {

    width: 70px;

    height: 70px;

    object-fit: contain;
}


.footer a {

    color:
        #dce9f2;

    text-decoration: none;
}


.footer a:hover {

    color:
        #ffffff;
}



/* ==========================================================
   TABLETTE
   ========================================================== */

@media
(max-width: 950px) {


    /* MENU */

    .nav {

        display: none;

        position: absolute;

        top: 90px;

        left: 0;

        right: 0;

        background: #ffffff;

        padding: 20px;

        flex-direction: column;

        align-items: flex-start;

        box-shadow:
            0 12px 25px
            rgba(0,0,0,0.12);
    }


    .nav.open {

        display: flex;
    }


    .menu {

        display: block;
    }



    /* HERO */

    .hero {

        background-image:

            linear-gradient(
                90deg,

                rgba(255,255,255,0.93),

                rgba(255,255,255,0.63)
            ),

            url("../images/mairie.jpg");

        background-position:
            center center;
    }


    .hero-grid {

        grid-template-columns:
            1fr;

        gap: 35px;

        padding-top: 55px;

        padding-bottom: 55px;
    }


    .hero-main {

        max-width: 720px;
    }


    .news {

        max-width: 650px;

        max-height: none;
    }



    /* CARTES */

    .four {

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



    /* MINORITE */

    .relation {

        grid-template-columns:
            1fr;
    }

}

/* ==========================================================
   PAGE EN CONSTRUCTION
   ========================================================== */

.page-construction {
    max-width: 800px;
    margin: 0 auto;

    text-align: center;

    padding:
        20px
        20px
        35px;
}


.construction-image {
    display: block;

    width: 100%;
    max-width: 520px;
    height: auto;

    margin:
        0 auto
        25px;

    border-radius: 18px;
}


.page-construction h2 {
    color: #123b63;

    font-size: 32px;

    margin:
        10px
        0;
}


.page-construction p {
    color: #2475ad;

    font-size: 20px;

    font-weight: 700;

    margin:
        8px
        0;
}


.page-construction .construction-small {
    color: #60717d;

    font-size: 15px;

    font-weight: normal;

    max-width: 600px;

    margin:
        15px auto 0;
}

/* ==========================================================
   TELEPHONE
   ========================================================== */

@media
(max-width: 650px) {


    .container {

        width:
            calc(100% - 26px);
    }



    /* HEADER */

    .header {

        height: 76px;
    }


    .brand {

        font-size: 15px;
    }


    .brand img {

        width: 62px;

        height: 62px;
    }


    .nav {

        top: 76px;
    }



    /* HERO MOBILE */

    .hero {

        background-image:

            linear-gradient(
                180deg,

                rgba(255,255,255,0.92) 0%,

                rgba(255,255,255,0.82) 45%,

                rgba(255,255,255,0.64) 100%
            ),

            url("../images/mairie.jpg");

        background-size: cover;

        background-position:
            center center;
    }


    .hero-grid {

        min-height: auto;

        padding-top: 45px;

        padding-bottom: 45px;
    }


    .hero h1 {

        font-size: 44px;
    }


    .hero-main h2 {

        font-size: 27px;
    }


    .hero-main p {

        font-size: 16px;
    }



    /* BOUTONS */

    .actions {

        flex-direction: column;

        align-items: flex-start;
    }


    .btn {

        width: 100%;
    }



    /* FIL ACTUALITES */

    .news {

        width: 100%;

        border-radius: 14px;

        padding:

            20px
            18px;
    }



    /* CARTES */

    .three,
    .four {

        grid-template-columns:
            1fr;
    }



    /* SECTIONS */

    .section {

        padding:

            48px
            0;
    }



    /* FOOTER */

    .footer {

        flex-direction: column;

        align-items: flex-start;
    }

}

/* ==========================================================
   PAGE CONTACT
   ========================================================== */

.contact-intro {
    max-width: 900px;
    margin-bottom: 35px;
}


/* LES 3 CARTES */

.contact-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}


.contact-card {
    position: relative;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #edf6fb 100%
        );

    border:
        1px solid #d3e4ef;

    border-top:
        5px solid #2475ad;

    border-radius: 18px;

    padding: 30px;

    box-shadow:
        0 10px 28px
        rgba(18,59,99,0.10);

    transition: 0.25s;
}


.contact-card:hover {
    transform:
        translateY(-5px);

    box-shadow:
        0 16px 35px
        rgba(18,59,99,0.17);
}


.contact-card:first-child {
    border-top-color:
        #d8a82f;
}


.contact-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 65px;

    height: 65px;

    margin-bottom: 20px;

    background:
        #e3f2fa;

    border-radius: 50%;

    font-size: 30px;
}


.contact-card:first-child
.contact-icon {
    background:
        #fff3ce;
}


.contact-card h3 {
    color: #123b63;

    font-size: 23px;

    margin:
        0
        0
        12px;
}


.contact-card p {
    color: #60717d;

    margin-bottom: 22px;
}


.contact-address {
    margin-top: 18px;

    color: #123b63;

    font-size: 14px;

    font-weight: 700;
}


.contact-link {
    color: #2475ad;

    font-weight: 800;

    text-decoration: none;
}


.contact-link:hover {
    color: #123b63;
}



/* ==========================================================
   POURQUOI NOUS CONTACTER
   ========================================================== */

.contact-reasons {
    background:
        #edf6fb;
}


.contact-reasons-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 60px;

    align-items: center;
}


.contact-list {
    display: grid;

    gap: 12px;
}


.contact-list > div {
    display: flex;

    align-items: center;

    gap: 18px;

    background: #ffffff;

    padding:
        15px
        18px;

    border-radius: 12px;

    border-left:
        5px solid #d8a82f;

    box-shadow:
        0 5px 15px
        rgba(18,59,99,0.07);
}


.contact-list span {
    font-size: 28px;
}


.contact-list p {
    margin: 0;

    color: #60717d;
}


.contact-list strong {
    display: block;

    color: #123b63;

    margin-bottom: 2px;
}



/* ==========================================================
   BLOC FINAL
   ========================================================== */

.contact-final {
    background:
        linear-gradient(
            135deg,
            #123b63,
            #2475ad
        );

    padding:
        45px 0;

    border-top:
        5px solid #d8a82f;
}


.contact-final-box {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


.contact-final h2 {
    color: #ffffff;

    margin:
        0
        0
        5px;

    font-size: 28px;
}


.contact-final p {
    color:
        rgba(255,255,255,0.85);

    margin: 0;

    font-weight: 700;
}



/* ==========================================================
   CONTACT TABLETTE / TELEPHONE
   ========================================================== */

@media (max-width: 850px) {

    .contact-grid {
        grid-template-columns:
            1fr;
    }


    .contact-reasons-grid {
        grid-template-columns:
            1fr;

        gap: 30px;
    }

}


@media (max-width: 650px) {

    .contact-card {
        padding: 23px;
    }


    .contact-final-box {
        flex-direction: column;

        align-items: flex-start;
    }


    .contact-final-box .btn {
        width: 100%;
    }

}


/* ==========================================================
   CORRECTIF CONSOLIDE - HEADER / MENU / ACCUEIL RESPONSIVE
   ========================================================== */

/* Bandeau fixe */
.site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 2000;
}

body {
    padding-top: 94px;
}

/* Menu déroulant ordinateur */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-button {
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 4px;
    cursor: pointer;
}

.nav-dropdown-button .arrow {
    display: inline-block;
    margin-left: 4px;
    font-size: 10px;
    transition: transform .2s;
}

.nav-dropdown.open .nav-dropdown-button .arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none !important;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 290px;
    padding: 10px 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-strong);
    z-index: 2100;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block !important;
}

.nav-dropdown-menu a {
    display: block;
    width: 100%;
    padding: 11px 18px;
    color: var(--ink);
    text-decoration: none;
    white-space: normal;
}

.nav-dropdown-menu a:hover {
    background: var(--pale);
    color: var(--blue);
}

/* ACCUEIL - ordinateur :
   actualités à gauche, présentation à droite */
.hero-grid {
    display: grid !important;
    grid-template-columns: minmax(340px, .72fr) minmax(0, 1.28fr) !important;
    gap: 60px !important;
    align-items: center !important;
}

.hero .news {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-width: 430px !important;
    min-width: 0 !important;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    justify-self: start !important;
    margin: 0 !important;
}

.hero .hero-main {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-width: 680px !important;
    min-width: 0 !important;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    justify-self: end !important;
    margin: 0 !important;
}

/* Tablette */
@media (max-width: 950px) {
    body {
        padding-top: 94px;
    }

    .nav-dropdown {
        width: 100%;
        display: block;
    }

    .nav-dropdown-button {
        width: 100%;
        text-align: left;
        padding: 10px 4px;
    }

    .nav-dropdown-menu {
        position: static !important;
        width: 100% !important;
        margin-top: 4px;
        box-shadow: none;
        border-radius: 8px;
        background: var(--pale);
    }

    .hero-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 30px !important;
    }

    .hero .hero-main {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        position: static !important;
        transform: none !important;
        margin: 0 !important;
    }

    .hero .news {
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        position: static !important;
        transform: none !important;
        margin: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

/* Téléphone */
@media (max-width: 650px) {
    body {
        padding-top: 80px;
        overflow-x: hidden;
    }

    .site-header {
        width: 100vw;
    }

    .header {
        height: 76px;
    }

    .hero {
        width: 100%;
        overflow: hidden;
    }

    .hero .container {
        width: calc(100% - 26px) !important;
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-grid {
        display: flex !important;
        flex-direction: column !important;
        min-height: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 28px !important;
        padding-top: 35px !important;
        padding-bottom: 40px !important;
        margin: 0 !important;
    }

    .hero .hero-main {
        order: 1 !important;
        display: block !important;
        position: static !important;
        float: none !important;
        clear: both !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        inset: auto !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .hero .news {
        order: 2 !important;
        display: block !important;
        position: static !important;
        float: none !important;
        clear: both !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        inset: auto !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 0 !important;
        padding: 20px !important;
        overflow: visible !important;
        max-height: none !important;
    }

    .hero h1 {
        font-size: clamp(40px, 13vw, 52px) !important;
        line-height: 1.02 !important;
        overflow-wrap: normal;
        word-break: normal;
    }

    .hero-main h2 {
        font-size: clamp(24px, 7vw, 30px) !important;
        line-height: 1.15 !important;
    }

    .hero-main p {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

    .actions {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .actions .btn {
        width: 100% !important;
    }

    .news-head h2 {
        font-size: 25px !important;
    }

    .news > a {
        width: 100% !important;
    }
}


/* ==========================================================
   CORRECTIF MOBILE DEFINITIF - 20/09/2026
   Conserve le bureau : actualites gauche / presentation droite.
   Sur telephone : presentation puis actualites, sans chevauchement.
   ========================================================== */
@media (max-width: 650px) {
  html, body { width:100%; max-width:100%; overflow-x:hidden !important; }
  body { padding-top:80px !important; }
  .site-header { position:fixed !important; top:0; left:0; right:0; width:100% !important; z-index:9999 !important; }
  .header { position:relative !important; height:76px !important; width:calc(100% - 26px) !important; gap:10px !important; }
  .brand { min-width:0 !important; gap:9px !important; }
  .brand img { width:62px !important; height:62px !important; flex:0 0 62px !important; }
  .brand span { font-size:15px !important; line-height:1.15 !important; white-space:nowrap !important; }
  .menu { display:block !important; flex:0 0 auto !important; margin-left:auto !important; }
  .nav {
    display:none !important; position:fixed !important; top:80px !important; left:0 !important; right:0 !important; bottom:auto !important;
    width:100% !important; max-height:calc(100vh - 80px) !important; overflow-y:auto !important;
    background:#fff !important; padding:14px 18px 22px !important; flex-direction:column !important; align-items:stretch !important;
    gap:2px !important; box-shadow:0 14px 28px rgba(0,0,0,.16) !important; z-index:10000 !important;
  }
  .nav.open { display:flex !important; }
  .nav > a, .nav-dropdown-button { display:block !important; width:100% !important; padding:12px 10px !important; text-align:left !important; font-size:16px !important; }
  .nav-dropdown { display:block !important; width:100% !important; }
  .nav-dropdown-menu { display:none !important; position:static !important; width:100% !important; margin:2px 0 8px !important; padding:5px !important; background:var(--pale) !important; border:0 !important; box-shadow:none !important; }
  .nav-dropdown.open .nav-dropdown-menu { display:block !important; }
  .nav-dropdown-menu a { padding:10px 12px !important; font-size:14px !important; }

  .hero { width:100% !important; min-height:0 !important; overflow:visible !important; background-position:center center !important; }
  .hero .container { width:calc(100% - 26px) !important; max-width:none !important; margin:0 auto !important; }
  .hero-grid {
    display:flex !important; flex-direction:column !important; grid-template-columns:none !important;
    width:100% !important; min-width:0 !important; min-height:0 !important; gap:26px !important;
    padding:32px 0 38px !important; margin:0 !important; align-items:stretch !important;
  }
  .hero .hero-main {
    order:1 !important; display:block !important; position:static !important; float:none !important;
    width:100% !important; max-width:none !important; min-width:0 !important; margin:0 !important; padding:0 !important;
    transform:none !important; inset:auto !important; overflow:visible !important;
  }
  .hero .news {
    order:2 !important; display:block !important; position:static !important; float:none !important;
    width:100% !important; max-width:none !important; min-width:0 !important; height:auto !important; max-height:none !important;
    margin:0 !important; padding:20px 18px !important; transform:none !important; inset:auto !important; overflow:visible !important;
  }
  .hero h1 { margin:12px 0 8px !important; font-size:clamp(40px,12vw,50px) !important; line-height:1.02 !important; word-break:normal !important; overflow-wrap:normal !important; }
  .hero-main h2 { margin:0 0 18px !important; font-size:clamp(24px,7vw,30px) !important; line-height:1.15 !important; }
  .hero-main p { max-width:none !important; font-size:16px !important; line-height:1.5 !important; }
  .actions { display:flex !important; flex-direction:column !important; width:100% !important; gap:10px !important; margin-top:22px !important; }
  .actions .btn { width:100% !important; min-width:0 !important; }
  .news-head h2 { font-size:24px !important; }
}

/* ==========================================================
   RESULTATS SONDAGE TRANSPORTS - AJOUT 02/10/2026
   Classes specifiques : aucun remplacement des styles existants.
   ========================================================== */
.resultats-chiffres{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:35px 0 50px}.resultat-card{background:var(--pale);border:1px solid #d3e4ef;border-top:5px solid var(--blue);border-radius:16px;padding:28px 20px;text-align:center;box-shadow:var(--shadow)}.resultat-nombre{display:block;margin-bottom:12px;color:var(--navy);font-size:42px;font-weight:800;line-height:1}.resultat-texte{display:block;color:var(--ink);font-size:16px;line-height:1.4}.resultat-section{margin:55px 0;padding-top:15px}.resultat-section h2{margin-bottom:20px;color:var(--navy);font-size:30px}.resultat-section h3{margin-top:30px;color:var(--navy)}.barre-resultat{margin:22px 0}.barre-titre{display:flex;justify-content:space-between;gap:20px;margin-bottom:7px}.barre-titre span{flex:0 0 auto;color:var(--navy);font-weight:800}.barre{height:14px;overflow:hidden;background:#e4e9ed;border-radius:20px}.barre>div{height:100%;background:var(--blue);border-radius:20px}.info-box{margin:30px 0;padding:20px 24px;background:var(--pale);border-left:5px solid var(--gold);border-radius:8px;line-height:1.6}.liste-resultats{padding:20px 25px;background:#f7f9fa;border:1px solid var(--line);border-radius:12px}.liste-resultats p{margin:10px 0}.liste-resultats strong{color:var(--blue)}.ligne18{padding:35px;background:var(--pale);border:1px solid #d3e4ef;border-radius:18px}.ligne18 .resultat-card{background:var(--white)}.communes-resultats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:25px 0}.communes-resultats>div{padding:20px 10px;background:var(--white);border:1px solid var(--line);border-radius:12px;text-align:center;box-shadow:0 5px 14px rgba(18,59,99,.07)}.communes-resultats strong{display:block;margin-bottom:8px;color:var(--navy);font-size:30px}.communes-resultats span{display:block;color:var(--ink);line-height:1.35}.resultat-conclusion{margin:60px 0 20px;padding:35px;color:var(--white);text-align:center;background:linear-gradient(135deg,var(--navy),var(--blue));border-top:5px solid var(--gold);border-radius:18px;box-shadow:var(--shadow)}.resultat-conclusion h2{color:var(--white)}.resultat-conclusion p{max-width:850px;margin-left:auto;margin-right:auto;color:rgba(255,255,255,.92)}.resultat-conclusion .btn{margin-top:15px}
@media(max-width:850px){.resultats-chiffres{grid-template-columns:1fr;gap:15px}.communes-resultats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.resultats-chiffres,.communes-resultats{grid-template-columns:1fr}.resultats-chiffres{margin:25px 0 38px}.resultat-card{padding:23px 18px}.resultat-nombre{font-size:36px}.resultat-section{margin:42px 0}.resultat-section h2{font-size:25px}.ligne18{padding:22px 16px}.barre-titre{gap:12px;font-size:14px}.info-box,.liste-resultats{padding:18px}.resultat-conclusion{margin-top:45px;padding:28px 20px}}


/* ==========================================================
   MENU - AJOUT FIL D’ACTUALITÉ - 04/10/2026
   Réduit légèrement les espacements sur ordinateur afin de
   conserver tous les éléments du menu sur une seule ligne.
   ========================================================== */
@media (min-width: 951px) {
    .nav {
        gap: 14px;
    }

    .nav a,
    .nav-dropdown-button {
        font-size: 13px;
    }

    .nav-actualites {
        white-space: nowrap;
    }
}

/* Décalage du point d’ancrage pour tenir compte du bandeau fixe. */
#actualites {
    scroll-margin-top: 115px;
}

/* =========================================
   RÉSEAUX SOCIAUX
========================================= */

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 12px 20px;

    color: #fff !important;
    text-decoration: none;
    font-weight: 700;

    border-radius: 10px;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}

.facebook-btn {
    background: #1877f2;
}

.whatsapp-btn {
    background: #25d366;
}

.social-icon {
    font-size: 1.2rem;
    font-weight: 800;
}


/* MOBILE */

@media (max-width: 650px) {

    .social-links {
        flex-direction: column;
    }

    .social-btn {
        width: 100%;
        max-width: 320px;
    }
}
