@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;0,1000;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900;1,1000&display=swap');

:root {
    --ikColor1: #1F3E5E;
    --ikColor2: #BA2A36;
    --ikBleufoncedegrade: #091334;
    --ikBleuclairdegrade: #31a2f0;
}

body {
    font-family: 'Nunito Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.container {
    position: relative;
}

.section {
    padding: 100px 0px;
}

/* Titres génériques de sections */
.section-1 h1, .section-2 h2, .section-3 h2, .section-4 h2 {
    text-align: center;
    text-transform: uppercase;
    font-size: 36px;
    font-weight: bold;
    color: var(--ikColor1);
}

.section-1 h2, .section-2 h3, .section-3 h3, .section-4 h3 {
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    color: var(--ikColor2);
    margin-bottom: 50px;
}

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 96px; /* plus fin */
    z-index: 1000;
    background: transparent;
    background-image: linear-gradient(#000000b3, #00000000);
    display: flex;
    align-items: center;
    transition:
        background-color .25s ease,
        background-image .25s ease,
        box-shadow .25s ease,
        height .25s ease;
}

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 96px; /* plus haut en haut de page */
    z-index: 1000;
    background: transparent;
    background-image: linear-gradient(#000000b3, #00000000);
    display: flex;
    align-items: center;
    transition:
        background-color .25s ease,
        background-image .25s ease,
        box-shadow .25s ease,
        height .25s ease;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */

.logo {
    position: relative;
}

.logo img {
    height: 76px; /* gros en haut de page */
    transition: height .25s ease, transform .25s ease;
}

/* Menu principal (desktop) */

.menus {
    position: relative;
    display: flex;
    align-items: center;
}

.menus > ul {
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.menus > ul > li {
    list-style: none;
    position: relative; /* pour le sous-menu */
}

/* Liens niveau 1 */

.menus > ul > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .08em;
    position: relative;
    text-decoration: none;
    border-radius: 999px;
    overflow: hidden;
}

/* Effet hover "ligne" */

.menus > ul > li > a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 6px;
    height: 2px;
    background: var(--ikColor2);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
    opacity: 0.9;
}

.menus > ul > li > a:hover::after {
    transform: scaleX(1);
}

.menus > ul > li > a:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* Bouton Contact */

.menus > ul > li.menuContact > a {
    background-color: var(--ikColor2);
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.menus > ul > li.menuContact > a::after {
    display: none;
}

/* HEADER SCROLLÉ (compact) */

.header-scrolled {
    background-color: var(--ikColor1);
    background-image: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    height: 64px;
}

.header-scrolled .logo img {
    height: 48px;
    transform: translateY(1px);
}

@media (min-width: 992px) {
    .header-scrolled .menus > ul > li > a {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* ============================================================
   SOUS-MENU "NOTRE ÉQUIPE" (DESKTOP)
   ============================================================ */

.has-submenu > a {
    position: relative;
    padding-right: 28px !important; /* place réservée pour la flèche */
}

/* Petite flèche Font Awesome */
.has-submenu > a::before {
    content: "\f107"; /* caret */
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    font-size: 11px;

    position: absolute;
    right: 12px;       /* décalage légèrement vers la droite */
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Sous-menu niveau 2 */

.has-submenu > ul {
    position: absolute;
    top: 110%;
    left: 0;
    min-width: 220px;
    background-color: var(--ikColor1);
    padding: 8px 0;
    border-radius: 12px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 999;
}

.has-submenu > ul > li {
    list-style: none;
}

.has-submenu > ul > li > a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.has-submenu > ul > li > a:hover {
    background-color: rgba(255,255,255,0.08);
}

/* Affichage au survol sur desktop */

@media (min-width: 992px) {
    .has-submenu:hover > ul {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* ============================================================
   BOUTON MENU MOBILE (BURGER)
   ============================================================ */

.btnMenu {
    color: #fff;
    position: absolute;
    top: 18px;
    right: 20px;
    cursor: pointer;
    display: none;
    z-index: 1100;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.btnMenu span {
    font-weight: 600;
}

.iconMenu {
    display: block;
    position: relative;
    width: 28px;
    height: 22px;
    cursor: pointer;
}

.iconMenu span {
    width: 100%;
    height: 2px;
    background: #fff;
    display: block;
    position: absolute;
    right: 0;
    -webkit-transition: all .3s;
    transition: all .3s;
    border-radius: 999px;
}

.iconMenu .h-top {
    top: 0;
}

.iconMenu .h-middle {
    top: 50%;
    margin-top: -1px;
}

.iconMenu .h-bottom {
    bottom: 0;
}

/* Animation burger en croix */

.btnMenu.h-active .h-top {
    transform: translateY(10px) rotate(45deg);
}

.btnMenu.h-active .h-middle {
    opacity: 0;
    transform: translateX(-10px);
}

.btnMenu.h-active .h-bottom {
    transform: translateY(-10px) rotate(-45deg);
}

/* ============================================================
   MENU MOBILE (OVERLAY)
   ============================================================ */

@media (max-width: 991px) {

    .header {
        height: 72px;
        padding: 0 16px;
    }

    .header-scrolled {
        height: 60px;
    }

    .header .container {
        width: 100%;
    }

    .logo {
        position: static;
    }

    .logo img {
        height: 48px;
    }

    .header-scrolled .logo img {
        height: 40px;
    }

    .btnMenu {
        display: flex;
    }

    /* Overlay plein écran */
    .menus {
        position: fixed;
        inset: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.92);
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform .3s ease;
        margin: 0 !important;
        z-index: 1000;
    }

    body.nav-open .menus {
        transform: translateX(0);
    }

    .menus > ul {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }

    .menus > ul > li.menuAccueil {
        display: block;
    }

    .menus > ul > li > a {
        font-size: 16px;
        padding: 10px 20px;
        border-radius: 999px;
    }

    /* Sous-menu en mobile : en accordéon */

    .has-submenu > ul {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: transparent;
        padding: 4px 0 0 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none; /* masqué par défaut */
    }

    .has-submenu.open > ul {
        display: block;
    }

    .has-submenu > ul > li > a {
        font-size: 14px;
        padding: 6px 0;
        color: #ffffffcc;
    }

    .has-submenu > a::before {
        content: "\f107";
        right: 12px;
        transform: translateY(-50%) rotate(0deg);
        transition: transform .25s ease;
    }

    .has-submenu.open > a::before {
        transform: translateY(-50%) rotate(180deg);
    }
}



/* ============================================================
   SLIDER GLOBAL
   ============================================================ */

.slider {
    height: 700px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* --- Slide --- */

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: none;
}

.slide.active {
    display: block;
}

/* --- Overlay sombre pour lisibilité --- */

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, rgba(0,0,0,0.70), rgba(0,0,0,0.25));
    z-index: 1;
}

/* --- Contenu centré — vertical & horizontal --- */

.slide-inner {
    position: relative;
    height: 100%;
    z-index: 2;

    display: flex;
    justify-content: center; /* centrage horizontal */
    align-items: center;      /* centrage vertical */
    text-align: center;       /* texte centré */
}

/* ============================================================
   TYPOGRAPHIE DU SLIDE
   ============================================================ */

.slide-content {
    max-width: 850px;
    padding: 0 20px;
}

/* --- Titre --- */
.slide-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    white-space: nowrap; /* une seule ligne sur grands écrans */
    text-shadow: 0 0 10px rgba(0,0,0,0.6);
}

/* --- Sous-titre --- */
.slide-subtitle {
    font-size: 26px;
    font-weight: 300;
    color: #ffffffcc;
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(0,0,0,0.4);
}

/* --- Description --- */
.slide-desc {
    font-size: 17px;
    line-height: 1.45;
    max-width: 650px;
    margin: 0 auto 30px auto;
    color: #ffffffee;
}

/* CTA dans le slider */
.slide-btn {
    margin-top: 10px;
}

/* ============================================================
   FLÈCHES DE NAVIGATION
   ============================================================ */

.slideFleches {
    position: absolute;
    bottom: 40px;
    right: 40px;
    font-size: 28px;
    color: #fff;
    z-index: 3;
}

.slideFleches div {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

    width: 46px;
    height: 46px;

    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.5);

    background-color: rgba(0,0,0,0.25);
    backdrop-filter: blur(4px);

    margin-left: 10px;

    transition: all .25s ease;
}

.slideFleches div:hover {
    background-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* ============================================================
   DOTS (POINTS DE NAVIGATION) – si tu ajoutes le HTML
   ============================================================ */

.slider-dots {
    position: absolute;
    left: 50%;
    bottom: 25px;
    transform: translateX(-50%);
    z-index: 3;
}

.slider-dot {
    display: inline-block;
    width: 12px;
    height: 12px;

    border-radius: 50%;
    background-color: rgba(255,255,255,0.45);

    margin: 0 4px;
    cursor: pointer;

    transition: all .25s ease;
}

.slider-dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

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

.btn {
    font-size: 18px;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 10px;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-carre {
    border-radius: 0;
}

/* Bouton principal */
.btn-action {
    background-color: var(--ikColor1);
    color: #fff !important;
    padding: 12px 28px;
    display: inline-block;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all .25s ease;
    border: 0;
}

.btn-action:hover {
    background-color: #2a537d;
    transform: translateY(-2px);
}

/* Bouton secondaire rouge */
.btn-action2 {
    background-color: var(--ikColor2);
    color: #fff !important;
    padding: 12px 28px;
    display: inline-block;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all .25s ease;
    border: 0;
}

.btn-action2:hover {
    background-color: #d23640;
    transform: translateY(-2px);
}

/* ============================================================
   SECTION 2 – Notre équipe départementale
   ============================================================ */

.section-2 {
    background-color: #f4f4f4;
    position: relative;
}

.section2-header h2 {
    text-align: center;
    text-transform: uppercase;
    font-size: 36px;
    font-weight: 800;
    color: var(--ikColor1);
    margin-bottom: 10px;
}

.section2-header p {
    text-align: center;
    font-size: 16px;
    max-width: 650px;
    margin: 0 auto 50px auto;
    color: #555;
}

/* Bloc CTA équipes */

.team-cta-box {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 25px 25px 20px 25px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.team-cta-box h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--ikColor1);
    margin-bottom: 10px;
}

.team-cta-box p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.team-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.team-cta-buttons .btn {
    flex: 1 1 48%;
    text-align: center;
}

.team-cta-note {
    display: block;
    font-size: 12px;
    color: #777;
}

/* Carte Délégué départemental modernisée */

.delegueDepartemental {
    margin-top: 100px;
    background-color: #fff;
    box-shadow: 0px 0px 30px #ddd;
}

.delegueDepartemental.modern-card {
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,0.1);
}

.delegueDepartementalPhoto {
    height: 100%;
    min-height: 260px;
    background-size: cover;
    background-position: center center;
}

.delegueDepartementalBloc {
    padding: 30px 30px 25px 30px;
}

.delegueDepartementalNom {
    padding-bottom: 5px;
    text-align: left;
    color: var(--ikColor1);
    font-weight: 900;
    font-size: 26px;
}

.delegueDepartementalFonction {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ikColor2);
    margin-bottom: 15px;
}

.delegueDepartementalTexte p {
    font-size: 14px;
    color: #444;
    margin-bottom: 10px;
}

/* ============================================================
   SECTION 3 – Députés
   ============================================================ */

.section-3 h2 {
    text-align: center;
    text-transform: uppercase;
    font-size: 36px;
    font-weight: bold;
    color: var(--ikColor1);
}

.section-3 h3 {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--ikColor2);
    margin-bottom: 40px;
}

/* ============================================================
   DEPUTES / REPRESENTATION
   ============================================================ */

.deputes {
    margin-top: 50px;
}

.deputes-titre {
    margin-bottom: 25px;
}

.deputes-intro {
    font-size: 14px;
    color: #555;
    max-width: 650px;
    margin: 10px auto 0 auto;
}

/* Cartes élus */

.depute-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
    height: 100%;
}

.depute-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.depute-photo {
    height: 260px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.depute-photo img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}


.depute-body {
    padding: 18px 20px 22px 20px;
    display: flex;
    flex-direction: column;
}

/* Badge mini au-dessus du nom (highlight / référent) */

.depute-label-highlight {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ikColor2);
    background-color: rgba(186,42,54,0.08);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.depute-label-referent {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ikColor2);
    background-color: rgba(186,42,54,0.08);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

/* Ligne circonscription */

.depute-circ {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ikColor1);
    font-weight: 700;
    margin-bottom: 6px;
}

/* Nom */

.depute-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--ikColor1);
    margin-bottom: 4px;
}

/* Ville / permanence */

.depute-ville {
    font-size: 13px;
    color: #777;
    margin-bottom: 8px;
}

/* Texte descriptif */

.depute-tagline {
    font-size: 13px;
    color: #555;
    margin-top: 4px;
}

/* Carte référent : style légèrement différent */

.depute-card-referent {
    border: 1px dashed rgba(31,62,94,0.25);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

/* Carte mise en avant (Timothée) */

.depute-card-highlight {
    position: relative;
    display: flex;
    flex-direction: row;
}

.depute-card-highlight .depute-photo {
    width: 45%;
    min-height: 260px;
}

.depute-card-highlight .depute-body {
    width: 55%;
}

/* Petite barre colorée sur le côté */

.depute-card-highlight::before {
    content: "";
    position: absolute;
    left: 0;
    top: 25px;
    bottom: 25px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background-image: linear-gradient(180deg, var(--ikBleuclairdegrade), var(--ikBleufoncedegrade));
}

/* Grille : toutes les cartes de la 2e ligne ont la même hauteur */

.deputes-grid > [class*="col-"] {
    display: flex;
}

.deputes-grid .depute-card {
    flex: 1;
}

/* Responsive */

@media (max-width: 991px) {

    .depute-card-highlight {
        flex-direction: column;
    }

    .depute-card-highlight .depute-photo,
    .depute-card-highlight .depute-body {
        width: 100%;
    }

    .depute-photo {
        height: 240px;
    }

    .depute-name {
        font-size: 18px;
    }
}

@media (max-width: 575px) {

    .deputes-intro {
        font-size: 13px;
        padding: 0 10px;
    }

    .depute-photo {
        height: 220px;
    }

    .depute-body {
        padding: 16px;
    }

    .depute-name {
        font-size: 17px;
    }

    .depute-tagline {
        font-size: 12px;
    }
}

/* ============================================================
   SECTION TEASER REFERENTS LOCAUX - ACCUEIL
   ============================================================ */

.section-referents-home {
    background-color: #f4f4f4;
}

.referents-home-header h2 {
    text-align: center;
    text-transform: uppercase;
    font-size: 36px;
    font-weight: 800;
    color: var(--ikColor1);
    margin-bottom: 10px;
}

.referents-home-header h3 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--ikColor2);
    margin-bottom: 18px;
}

.referents-home-intro {
    max-width: 760px;
    margin: 0 auto 40px auto;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.referents-home-box {
    background: #fff;
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.08);
}

.referents-home-content h4 {
    font-size: 26px;
    font-weight: 800;
    color: var(--ikColor1);
    margin-bottom: 12px;
}

.referents-home-content p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.referents-home-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.referents-home-points span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f7f7f7;
    color: #555;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 13px;
}

.referents-home-points i {
    color: var(--ikColor2);
}

.btn-referents-home {
    min-width: 260px;
    padding: 14px 26px;
    border-radius: 999px;
    font-size: 15px;
    margin-top: 10px;
}

@media (max-width: 991px) {
    .referents-home-box {
        padding: 25px 20px;
    }

    .referents-home-content h4 {
        font-size: 22px;
        text-align: center;
    }

    .referents-home-content p {
        text-align: center;
    }

    .referents-home-points {
        justify-content: center;
    }

    .btn-referents-home {
        margin-top: 25px;
    }
}

@media (max-width: 575px) {
    .referents-home-header h2 {
        font-size: 24px;
    }

    .referents-home-header h3 {
        font-size: 20px;
    }

    .referents-home-intro {
        font-size: 14px;
    }

    .referents-home-content h4 {
        font-size: 20px;
    }
}

/* ============================================================
   SECTION REFERENTS LOCAUX
   ============================================================ */

.section-referents-locaux {
    background-color: #f4f4f4;
}

.section-referents-locaux h2 {
    text-align: center;
    text-transform: uppercase;
    font-size: 36px;
    font-weight: bold;
    color: var(--ikColor1);
}

.section-referents-locaux h3 {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--ikColor2);
    margin-bottom: 20px;
}

.referents-locaux .row {
    row-gap: 30px;
}

.referents-intro {
    max-width: 760px;
    margin: 0 auto 45px auto;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.referent-card {
    background-color: #fff;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.08);
    transition: transform .3s ease, box-shadow .3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.referent-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.referent-photo {
    height: 280px;
    background-color: #eef2f6;
    overflow: hidden;
}

.referent-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.referent-body {
    padding: 22px 22px 24px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.referent-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    background-color: rgba(186,42,54,0.08);
    color: var(--ikColor2);
    padding: 5px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.referent-nom {
    font-size: 24px;
    font-weight: 800;
    color: var(--ikColor1);
    margin-bottom: 6px;
    line-height: 1.2;
}

.referent-canton {
    font-size: 16px;
    font-weight: 700;
    color: var(--ikColor1);
    margin-bottom: 10px;
}

.referent-meta {
    margin-bottom: 12px;
}

.referent-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    background: #f7f7f7;
    padding: 7px 12px;
    border-radius: 999px;
}

.referent-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
}

.referent-btn {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

@media (max-width: 991px) {
    .referent-photo {
        height: 250px;
    }
}

@media (max-width: 575px) {
    .section-referents-locaux h2 {
        font-size: 24px;
    }

    .section-referents-locaux h3 {
        font-size: 20px;
    }

    .referents-intro {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .referent-photo {
        height: 230px;
    }

    .referent-nom {
        font-size: 20px;
    }

    .referent-canton {
        font-size: 15px;
    }
}

/* ============================================================
   SECTION COMMUNES INVESTIES
   ============================================================ */

.section-communes {
    background-color: #f4f4f4;
}

.section-communes h2 {
    text-align: center;
    text-transform: uppercase;
    font-size: 36px;
    font-weight: bold;
    color: var(--ikColor1);
}

.section-communes h3 {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--ikColor2);
    margin-bottom: 40px;
}

.commune-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 25px 20px 20px 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
}

.commune-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.1);
}

.commune-logo img {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.commune-ville {
    font-size: 20px;
    font-weight: 800;
    color: var(--ikColor1);
    margin-bottom: 5px;
}

.commune-liste,
.commune-tete {
    font-size: 14px;
    margin-bottom: 5px;
}

.commune-btn {
    margin-top: 15px;
    width: 100%;
}

/* ============================================================
   SECTION 1 – Actualités
   ============================================================ */

.section-1.section-actus {
    background-color: #ffffff;
}

/* TITRES ACTUALITÉS */

.section-1.section-actus .titrePrincipal {
    white-space: nowrap;
    font-size: 32px;
    font-weight: 800;
    color: var(--ikColor1);
    margin-bottom: 5px;
    text-align: left;
}

.section-1.section-actus .sousTitrePrincipal {
    font-size: 26px;
    font-weight: 700;
    color: var(--ikColor2);
    margin-bottom: 10px;
    text-align: left;
}

.actus-header {
    margin-bottom: 40px;
}

.actus-header-left {
    max-width: 600px;
}

.actus-intro {
    font-size: 15px;
    color: #555;
    margin-top: 5px;
}

.actus-header-right {
    min-width: 250px;
}

.actus-badge {
    margin-bottom: 10px;
}

.badge-actus {
    display: inline-block;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    background-color: rgba(186,42,54,0.08);
    color: var(--ikColor2);
    padding: 5px 10px;
    border-radius: 999px;
}

/* Cartes actualités modernisées */

.blog-box {
    background-color: #fff;
    border-radius: 18px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 14px 30px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
}

.blog-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

.blog-box-image {
    height: 220px;
    background-size: cover;
    background-position: center center;
    position: relative;
}

.blog-box-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.45), rgba(0,0,0,0));
    opacity: 0;
    transition: opacity .3s ease;
}

.blog-box:hover .blog-box-image::after {
    opacity: 1;
}

.blog-box-content {
    padding: 20px 22px 22px 22px;
    position: relative;
}

.blog-box-date {
    position: absolute;
    top: -18px;
    right: 18px;
    padding: 5px 12px;
    background-color: var(--ikColor1);
    color: #fff;
    font-size: 12px;
    border-radius: 999px;
}

.blog-box-titre a {
    color: #000;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
}

.blog-box-titre a:hover {
    text-decoration: underline;
}

.blog-box-cat {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.blog-box-btn {
    margin-top: 15px;
    text-align: right;
}

.blog-box-btn a {
    background-color: var(--ikColor2);
    color: #fff !important;
    border-radius: 999px;
    padding: 6px 20px;
    display: inline-block;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .08em;
    text-decoration: none !important;
}

.blog-box-btn a:hover {
    filter: brightness(1.05);
}

/* ============================================================
   THEMATIQUES
   ============================================================ */

.thematique {
    background-color: #fff;
}

.thematiqueTitre {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    padding: 20px 0;
    text-transform: uppercase;
    height: 130px;
}

.thematiqueImage img {
    max-width: 100%;
}

.thematiqueBtn {
    text-align: center;
    padding-bottom: 30px;
}

/* ============================================================
   SECTION NEWSLETTER
   ============================================================ */

.section-newsletter {
    background-image: linear-gradient(328deg, var(--ikBleufoncedegrade), var(--ikBleuclairdegrade));
    padding: 50px 0px;
    color: #fff !important;
    text-decoration: none !important;
    position: relative;
    z-index: 999;
}

.section-newsletter h3 {
    padding-bottom: 25px;
}

.section-newsletter a {
    color: #fff;
    text-decoration: underline;
}

.section-newsletter .form-group input {
    display: inline-block;
    width: 65%;
    border-radius: 0;
    padding: 23px 15px;
    vertical-align: middle;
}

.section-newsletter .form-group button {
    display: inline-block;
    width: 30%;
    vertical-align: middle;
}

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

.footer {
    background-color: var(--ikColor1);
    color: #fff;
    padding: 50px 0px;
}

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

.logoFooter img {
    height: 120px;
}

.copyright {
    background-color: var(--ikColor1);
    color: #fff;
    text-align: center;
    padding: 30px 0px;
}

.copyright a {
    color: #fff;
    text-decoration: underline;
}

.reseauxSociaux a {
    background-color: #fff;
    color: var(--ikColor1);
    display: inline-block;
    border-radius: 100%;
    margin-right: 15px;
    line-height: 35px;
    width: 35px;
    text-align: center;
}

.colFooter h4 {
    text-transform: uppercase;
    position: relative;
}

.colFooter h4::after {
    height: 3px;
    width: 60px;
    background-color: var(--ikColor2);
    content: '';
    display: block;
    position: relative;
    margin-top: 10px;
    margin-bottom: 15px;
}

.colFooter ul {
    margin: 0;
    padding: 0;
}

.colFooter ul li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.colFooter ul li a {
    color: #fff;
}

.colFooter p a {
    color: #fff;
}

/* ============================================================
   PAGES INTERIEURES headerG2 / contenus
   ============================================================ */

/* ===========================
   HEADERG2 – HERO INTERIEUR
   =========================== */

.headerG2 {
    position: relative;
    background-color: var(--ikColor1);
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
    overflow: hidden;
}

/* Overlay sombre avec léger dégradé */
.headerG2-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0, 0, 0, 0.65),
        rgba(0, 0, 0, 0.30)
    );
    z-index: 1;
}

/* Contenu centré */
.headerG2-inner {
    position: relative;
    z-index: 2;
    min-height: 260px;
    padding: 120px 15px 80px 15px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Petit badge façon .badge-actus */
.headerG2-badge {
    display: inline-block;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    background-color: rgba(186, 42, 54, 0.12);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
    animation: headerFadeDown .6s ease-out forwards;
}

/* Titre principal */
.headerG2-titre h1 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 8px 0;
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.55);

    animation: headerFadeUp .7s ease-out .1s forwards;
    opacity: 0;
    transform: translateY(12px);
}

/* Sous-titre */
.headerG2-sousTitre h2 {
    font-size: 22px;
    font-weight: 400;
    margin: 0;
    max-width: 700px;
    color: #ffffffd9;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.45);

    animation: headerFadeUp .7s ease-out .25s forwards;
    opacity: 0;
    transform: translateY(12px);
}

/* Animations simples */
@keyframes headerFadeDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive */
@media (max-width: 767px) {

    .headerG2-inner {
        padding: 90px 15px 40px 15px;
        min-height: 200px;
    }

    .headerG2-titre h1 {
        font-size: 26px;
        line-height: 1.25;
    }

    .headerG2-sousTitre h2 {
        font-size: 16px;
    }

    /* Sur mobile, background-attachment: fixed peut bugger */
    .headerG2 {
        background-attachment: scroll;
    }
}


.section-contenu a {
    color: #000;
    text-decoration: underline;
}

/* actu detail */

.actualite-detail-image {
    margin-bottom: 50px;
}

.actualite-detail-image img {
    max-width: 500px;
    padding-right: 20px;
    padding-bottom: 20px;
}

.actualite-detail-contenu h2 {
    margin-bottom: 20px;
}

.actualite-detail-contenu p {
    line-height: 24px;
}

.actualite-detail-contenu p b {
    color: #000;
}

.text-upper {
    text-transform: uppercase;
}

.section-contenu h2 {
    text-align: center;
    font-size: 40px;
    text-transform: uppercase;
    color: var(--ikColor2);
}

.section-contenu h3 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 50px;
}

.section-instagram {
    padding: 0;
    margin-bottom: -56px;
    overflow: hidden;
}

/* ============================================================
   ANIMATION REVEAL
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease-out, transform .6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   BOUTON SCROLL TOP
   ============================================================ */

.scrollTopBtn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--ikColor1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    cursor: pointer;
    z-index: 999;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scrollTopBtn i {
    font-size: 18px;
}

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

@media (max-width: 1200px) {

    .logo {
        top: 15px;
    }

    .logo img {
        height: 90px;
    }

    .menus ul li.menuAccueil {
        display: none;
    }

    .slide-title {
        font-size: 38px;
        white-space: normal; /* autorise le retour à la ligne si nécessaire */
    }

    .slide-subtitle {
        font-size: 22px;
    }

    .slide-desc {
        font-size: 16px;
        max-width: 550px;
    }
}

@media (max-width: 991px) {

    .header {
        display: flex;
        align-items: center;   /* <-- CENTRE VERTICALEMENT */
        justify-content: space-between;
        padding: 0 20px;
        height: 70px;          /* hauteur réaliste mobile */
    }

    /* Le logo n'est PLUS en absolute en mobile */
    .logo {
        position: static;
        transform: none;
        margin: 0;
    }

    .logo img {
        height: 48px;          /* taille adaptée mobile */
    }

    /* Le bouton menu devient à droite naturellement */
    .btnMenu {
        position: static;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .menus {
        top: 0;
    }

    /* MENU MOBILE FULLSCREEN CACHÉ PAR DÉFAUT */
    .menus {
        position: fixed;
        inset: 0;                     /* top:0; right:0; bottom:0; left:0 */
        width: 100%;
        background: rgba(0, 0, 0, 0.88);
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);  /* ✅ complètement hors écran à droite */
        transition: transform .3s ease;
        margin: 0 !important;
        z-index: 1000;
    }

    /* Quand on ouvre le menu (body.nav-open ajouté en JS) */
    body.nav-open .menus {
        transform: translateX(0);
    }

    .menus ul {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .menus ul li a {
        font-size: 16px;
        padding: 10px 20px;
    }

    .menus ul li.menuAccueil {
        display: block;
    }

    .menus ul li.menuContact a {
        box-shadow: none;
        border-radius: 999px;
    }

    .menus ul li.menuContact a::after {
        display: none;
    }

    /* Afficher le bouton burger sur mobile */
    .btnMenu {
        display: flex;
    }

    .section-1 h1, .section-2 h2, .section-3 h2, .section-4 h2 {
        font-size: 32px;
    }

    .section-1 h2, .section-2 h3, .section-3 h3, .section-4 h3 {
        font-size: 26px;
    }

    .thematiqueTitre {
        font-size: 18px;
    }

    .team-cta-buttons {
        flex-direction: column;
    }

    .team-cta-buttons .btn {
        flex: 1 1 100%;
    }

    .delegueDepartementalBloc {
        padding: 20px;
    }

    .slider {
        height: 520px;
    }

    .slide-title {
        font-size: 32px;
    }

    .slide-subtitle {
        font-size: 20px;
    }

    .slide-desc {
        font-size: 15px;
    }

    .actus-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .actus-header-right {
        margin-top: 15px;
    }
}

@media (max-width: 767px) {

    .colFooter3 {
        padding-top: 50px;
    }

    .thematique {
        margin: 25px 0px;
    }

    .delegueDepartementalPhoto {
        height: 400px;
    }

    .section-2 .btn {
        margin: 15px 0px;
    }
}

@media (max-width: 575px) {

    .logo img {
        height: 70px;
    }

    .section {
        padding: 50px 0px;
    }

    .section-1 h1, .section-2 h2, .section-3 h2, .section-4 h2 {
        font-size: 24px;
    }

    .section-1 h2, .section-2 h3, .section-3 h3, .section-4 h3 {
        font-size: 20px;
    }

    .blog-box-titre a {
        font-size: 16px;
        font-weight: bold;
    }

    .blog-box-cat {
        font-size: 14px;
    }

    .delegueDepartementalBloc {
        padding: 20px;
    }

    .delegueDepartementalNom {
        font-size: 20px;
    }

    .logoFooter img {
        height: auto;
        width: 100%;
    }

    .section-contenu h2 {
        font-size: 26px;
    }

    .section-contenu h3 {
        font-size: 18px;
    }

    .headerG2-titre h1 {
        font-size: 26px;
    }

    .headerG2-sousTitre h2 {
        font-size: 18px;
    }

    .actualite-detail-image img {
        max-width: 100%;
        padding-right: 0;
    }

    .headerG2 .container {
        padding: 50px 0px 20px 0px;
    }

    .slider {
        height: 420px;
    }

    .slide-inner {
        align-items: flex-end;
        padding-bottom: 40px;
    }

    .slide-title {
        font-size: 26px;
    }

    .slide-subtitle {
        font-size: 16px;
    }

    .slide-desc {
        font-size: 14px;
        max-width: 90%;
        margin-bottom: 20px;
    }

    .slideFleches {
        bottom: 10px;
        right: 10px;
        font-size: 22px;
    }

    .slideFleches div {
        width: 38px;
        height: 38px;
    }

    .slider-dots {
        bottom: 10px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }
}

/* Empêche le bug d'affichage du titre sur mobile */
@media (max-width: 575px) {
    .titrePrincipal {
        white-space: normal !important;  /* autorise le retour à la ligne */
        font-size: 22px !important;      /* taille adaptée */
        line-height: 1.25;
    }

    .sousTitrePrincipal {
        font-size: 18px !important;
        white-space: normal !important;
    }
}

/* ============================================
   PAGE CONTACT – VERSION CLAIRE & ÉLÉGANTE
   ============================================ */

/* Espacement resserré */
.section-contenu {
    padding: 40px 0 !important;
}

.contact-wrapper {
    margin-top: 20px;
    margin-bottom: 40px;
}

/* ============================================
   COLONNE GAUCHE – SANS CADRE
   ============================================ */

.contact-info-clean h2 {
    font-size: 28px;
    font-weight: 800;
    color: #1F3E5E;
    margin-bottom: 15px;
}

.contact-info-clean p {
    font-size: 15px;
    color: #444;
    line-height: 1.55;
}

.contact-info-clean ul {
    padding: 0;
    margin-top: 15px;
    list-style: none;
}

.contact-info-clean li {
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-info-clean li i {
    width: 24px;
    font-size: 15px;
    color: #1F3E5E;
    margin-right: 8px;
}

.contact-info-clean a {
    color: #1F3E5E;
    text-decoration: underline;
    font-weight: 600;
}

/* ============================================
   FORMULAIRE – BLOC UNIQUE, CLAIR & DISCRET
   ============================================ */

.contact-form-card {
    background: #ffffff;
    padding: 24px 22px;
    border-radius: 16px;

    /* contour très léger, presque invisible */
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);

    position: relative;
}

/* Fine ligne bleue en haut – touche très discrète */
.contact-form-card::before {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    top: 0;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, #1F3E5E, #31a2f0);
    opacity: 0.9;
}

/* Labels */
.contact-form-card label {
    font-weight: 700;
    font-size: 12px;
    color: #1F3E5E;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Champs */
.contact-form-card .form-control,
.contact-form-card select,
.contact-form-card textarea {
    background: #fff;
    color: #333;
    border-radius: 10px;
    border: 1px solid #d7d7d7;
    padding: 10px 12px;
    transition: all .2s ease;
}

/* Effet focus léger */
.contact-form-card .form-control:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
    border-color: #1F3E5E;
    box-shadow: 0 0 0 0.12rem rgba(31, 62, 94, 0.20);
}

/* Placeholder */
.contact-form-card .form-control::placeholder {
    color: #999;
}

/* Texte RGPD */
.contact-rgpd {
    font-size: 12px;
    color: #555;
}

/* Bouton */
.contact-form-card .btn-action2 {
    padding: 9px 24px;
    border-radius: 8px;
    background-color: var(--ikColor2);
    border: none;
}

.contact-form-card .btn-action2:hover {
    background-color: #d43843;
}

/* Un peu moins "massif" sur mobile */
@media (max-width: 575px) {
    .contact-form-card {
        padding: 20px 18px;
        border-radius: 14px;
    }
}


/* Mobile */
@media (max-width: 991px) {
    .contact-info-clean {
        margin-bottom: 30px;
    }
}


/* Badge numéro de téléphone */
.contact-phone-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    background-color: var(--ikColor2); /* rouge RN */
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;

    margin-top: 18px;
    font-weight: 600;
    font-size: 15px;

    box-shadow: 0 6px 18px rgba(186,42,54,0.25);
}

.contact-phone-badge i {
    font-size: 16px;
}

/* ============================================
   BUREAU DÉPARTEMENTAL – TITRES & CARTES
   ============================================ */

.bureau-header {
    margin-bottom: 40px;
}

.bureau-badge {
    display: inline-block;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    background-color: rgba(186, 42, 54, 0.10);
    color: var(--ikColor2);
    padding: 5px 12px;
    border-radius: 999px;
}

.bureau-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--ikColor1);
    margin-top: 12px;
    margin-bottom: 6px;
}

.bureau-subtitle {
    font-size: 15px;
    color: #555;
    max-width: 650px;
    margin: 0 auto;
}

/* Texte des fonctions dans les cartes */
/* Badge pour les fonctions du bureau */
/* Conteneur des fonctions */
.bureau-fonction {
    margin-top: 10px;
}

/* Badge gris élégant */
.bureau-fonction span {
    display: inline-block;
    background-color: #f3f4f6; /* gris très clair */
    border: 1px solid #d0d4d9; /* gris moyen, discret */

    color: #444; /* texte sobre */
    padding: 4px 10px;
    margin: 3px 4px 0 0;

    font-size: 12px;       /* plus petit */
    font-weight: 500;      /* semi-bold, élégant */
    border-radius: 12px;   /* arrondi doux */
    line-height: 1.25;
    white-space: nowrap;
}


.bureau-card {
    border: 1px solid rgba(31,62,94,0.06);
}

/* Espace vertical entre les cartes dans la grille bureau/députés */
.deputes-grid > [class*="col-"] {
    margin-bottom: 25px;
}
