/* ===== STYLE 1 id= ===== */

:root {
    --navy: #062b4b;
    --blue: #0b74b9;
    --yellow: #f4c52f;
    --ink: #102c43;
    --muted: #667b8c;
    --soft: #f4f7f9
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    color: var(--ink);
    line-height: 1.55;
    background: #fff
}

a {
    text-decoration: none;
    color: inherit
}

.wrap {
    max-width: 1180px;
    margin: auto;
    padding: 0 24px
}

.top {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    background: rgba(5, 30, 51, .78);
    backdrop-filter: blur(14px);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, .15)
}

.bar {
    height: 76px;
    display: flex;
    align-items: center;
    gap: 25px
}

.brand {
    font-weight: 900;
    letter-spacing: .06em;
    line-height: 1
}

.brand span {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
    margin-top: 7px;
    opacity: .75
}

.nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px
}

.nav a:hover {
    opacity: .75
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: .2s
}

.btn:hover {
    transform: translateY(-2px)
}

.yellow {
    background: var(--yellow);
    color: var(--navy)
}

.outline {
    border: 1px solid currentColor
}

.hero {
    min-height: 94vh;
    display: flex;
    align-items: flex-end;
    color: white;
    position: relative;
    background: linear-gradient(90deg, rgba(3, 25, 43, .88), rgba(3, 25, 43, .36)), none center/cover no-repeat
}

.hero:after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 180px;
    background: linear-gradient(transparent, rgba(3, 25, 43, .4))
}

.heroin {
    position: relative;
    z-index: 2;
    padding-top: 150px;
    padding-bottom: 100px
}

.eyebrow {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .17em;
    color: #79c9f6
}

.hero h1 {
    font-size: clamp(52px, 8vw, 104px);
    line-height: .9;
    margin: 18px 0 24px;
    letter-spacing: -.055em;
    max-width: 900px
}

.hero p {
    font-size: clamp(18px, 2vw, 23px);
    max-width: 700px;
    color: #e4edf3
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px
}

.intro {
    padding: 100px 0
}

.introgrid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 80px;
    align-items: center
}

.kicker {
    color: var(--blue);
    font-size: 12px;
    letter-spacing: .16em;
    font-weight: 900;
    text-transform: uppercase
}

h2 {
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.03;
    letter-spacing: -.035em;
    margin: 12px 0 24px;
    color: var(--navy)
}

.lead {
    font-size: 20px;
    color: #4f6678
}

.photo {
    height: 520px;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(4, 43, 75, .04), rgba(4, 43, 75, .10)), url('../img/GroupeCitoyen002.jpg') center/cover;
    box-shadow: 0 30px 60px rgba(9, 44, 76, .16)
}

.photo:after {
    content: "Chaque histoire a un début…";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 12px 15px;
    border-radius: 14px;
    background: rgba(3, 25, 43, .68);
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    text-align: center
}

.values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 45px
}

.value {
    padding: 28px;
    border-top: 3px solid var(--yellow);
    background: var(--soft);
    border-radius: 0 0 18px 18px
}

.value strong {
    display: block;
    color: var(--navy);
    font-size: 21px;
    margin-bottom: 8px
}

.poles {
    padding: 100px 0;
    background: var(--navy);
    color: white
}

.poles h2 {
    color: white
}

.poles .lead {
    color: #cbdbe6
}

.polegrid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-top: 42px
}

.pole {
    min-height: 180px;
    padding: 23px;
    border-radius: 20px;
    background: #0c3a5f;
    border: 1px solid rgba(255, 255, 255, .09);
    transition: .2s
}

.pole:hover {
    transform: translateY(-5px);
    background: #10476f
}

.num {
    font-size: 12px;
    color: #79c9f6;
    font-weight: 900
}

.pole h3 {
    font-size: 18px;
    line-height: 1.15;
    margin: 35px 0 0
}

.private {
    margin-top: 28px;
    padding: 20px 24px;
    border: 1px solid rgba(244, 197, 47, .5);
    border-radius: 16px;
    color: #e7eef3
}

.council {
    padding: 100px 0
}

.feature {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 22px;
    margin-top: 40px
}

.bigcard,
.sidecard {
    border-radius: 26px;
    padding: 38px
}

.bigcard {
    background: #eef6fb
}

.bigcard .date {
    font-size: 13px;
    font-weight: 900;
    color: var(--blue)
}

.bigcard h3 {
    font-size: 32px;
    color: var(--navy);
    margin: 10px 0
}

.sidecard {
    background: var(--yellow);
    color: var(--navy)
}

.sidecard h3 {
    font-size: 28px;
    margin-top: 0
}

.topics {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 20px
}

.tag {
    padding: 8px 12px;
    border-radius: 999px;
    background: white;
    font-size: 12px;
    font-weight: 800
}

.voice {
    padding: 100px 0;
    background: #f3f6f8
}

.voicegrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center
}

.voicephoto {
    height: 430px;
    border-radius: 28px;
    background: linear-gradient(120deg, rgba(6, 43, 75, .15), rgba(6, 43, 75, .05)), none center/cover
}

.song {
    padding: 100px 0;
    background: #fff
}

.songcard {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 38px;
    align-items: center;
    background: var(--navy);
    color: white;
    border-radius: 30px;
    padding: 42px;
    overflow: hidden
}

.songart {
    min-height: 320px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(244, 197, 47, .95), rgba(11, 116, 185, .78));
    display: flex;
    align-items: flex-end;
    padding: 28px
}

.songart strong {
    font-size: 28px;
    line-height: 1.05
}

.song h2 {
    color: white
}

.song .lead {
    color: #d6e3ec
}

.player {
    width: 100%;
    margin-top: 18px;
    accent-color: var(--yellow)
}

.join {
    padding: 100px 0;
    background: linear-gradient(135deg, #f7cf45, #f1bb1f);
    text-align: center
}

.join h2 {
    max-width: 850px;
    margin: 10px auto 22px
}

.join p {
    max-width: 650px;
    margin: 0 auto 28px;
    font-size: 19px
}

.join-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap
}

.paper {
    background: white;
    color: var(--navy);
    border: 1px solid rgba(6, 43, 75, .16)
}

.bulletin-preview {
    display: block;
    max-width: 760px;
    margin: 34px auto 0;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(6, 43, 75, .16);
    overflow: hidden
}

.bulletin-preview img {
    display: block;
    width: 100%;
    height: auto
}

.dark {
    background: var(--navy);
    color: white
}

.footer {
    padding: 50px 0;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap
}

.tiny {
    font-size: 13px;
    opacity: .72
}

.mobile {
    display: none
}

@media(max-width:900px) {
    .nav a:not(.btn) {
        display: none
    }

    .introgrid,
    .feature,
    .voicegrid,
    .songcard {
        grid-template-columns: 1fr
    }

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

    .values {
        grid-template-columns: 1fr
    }

    .photo,
    .voicephoto {
        height: 330px
    }

    .hero {
        min-height: 85vh
    }

    .hero h1 {
        font-size: 58px
    }

    .mobile {
        display: block
    }
}

@media(max-width:520px) {
    .wrap {
        padding: 0 18px
    }

    .bar {
        height: 66px
    }

    .polegrid {
        grid-template-columns: 1fr 1fr
    }

    .pole {
        min-height: 145px;
        padding: 17px
    }

    .pole h3 {
        font-size: 15px;
        margin-top: 24px
    }

    .intro,
    .poles,
    .council,
    .voice,
    .song,
    .join {
        padding: 72px 0
    }

    .heroin {
        padding-bottom: 70px
    }

    .brand {
        font-size: 14px
    }
}

/* V4 — chanson mise au premier plan */
.song {
    padding: 72px 0;
    background: linear-gradient(180deg, #f7fafc, #fff)
}

.songcard {
    box-shadow: 0 28px 70px rgba(6, 43, 75, .18);
    border: 1px solid rgba(255, 255, 255, .08)
}

.song .player {
    width: 100%;
    margin-top: 18px;
    min-height: 54px
}

.songart {
    position: relative;
    isolation: isolate
}

.songart:after {
    content: "♪";
    position: absolute;
    right: 24px;
    top: 18px;
    font-size: 76px;
    font-weight: 900;
    opacity: .22;
    z-index: -1
}

@media(max-width:760px) {
    .nav a[href="#chanson"] {
        display: none
    }

    .hero .actions {
        gap: 10px
    }

    .hero .actions .btn {
        width: 100%
    }

    .song {
        padding: 48px 0
    }

    .songcard {
        padding: 24px;
        border-radius: 24px
    }

    .songart {
        min-height: 230px
    }
}

/* chanson discrète */
.song {
    padding: 24px 0;
    background: #fff
}

.songcard {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    border: 1px solid #e7e9ee;
    border-radius: 18px;
    box-shadow: none
}

.songart {
    min-height: 0 !important;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4c928 !important;
    color: #102347
}

.songart strong {
    font-size: 0 !important
}

.songart strong:after {
    content: "♪";
    font-size: 25px
}

.song .eyebrow {
    font-size: 11px;
    margin-bottom: 2px
}

.song h2 {
    font-size: 20px;
    margin: 0 0 5px
}

.song .lead {
    font-size: 14px;
    margin: 0 0 8px;
    max-width: none
}

.song .player {
    height: 36px;
    max-width: 430px;
    width: 100%
}

.song .tiny {
    display: none
}

@media(max-width:760px) {
    .song {
        padding: 18px 0
    }

    .songcard {
        padding: 14px;
        gap: 12px;
        align-items: flex-start
    }

    .songart {
        width: 44px;
        height: 44px;
        flex-basis: 44px
    }

    .song h2 {
        font-size: 18px
    }
}

/* V5 — identité intergénérationnelle */
.generations {
    padding: 88px 0;
    background: #fff
}

.generations h2 {
    max-width: 780px
}

.genlead {
    max-width: 780px
}

.gengrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 34px
}

.gen {
    padding: 24px;
    border-radius: 22px;
    background: #f4f7f9;
    border: 1px solid #e6edf2
}

.gen .ico {
    font-size: 31px;
    display: block;
    margin-bottom: 12px
}

.gen strong {
    font-size: 19px;
    color: var(--navy);
    display: block;
    margin-bottom: 7px
}

.gen p {
    margin: 0;
    color: #5d7181;
    font-size: 15px
}

.interband {
    margin-top: 22px;
    padding: 20px 24px;
    border-radius: 20px;
    background: linear-gradient(120deg, #e9f5fb, #fff6cf);
    font-weight: 750;
    color: var(--navy)
}

/* trois images réellement différentes : une seule occurrence par zone */
.hero {
    background-image: linear-gradient(90deg, rgba(3, 25, 43, .88), rgba(3, 25, 43, .36)), none
}

.photo {
    background-image: linear-gradient(rgba(4, 43, 75, .10), rgba(4, 43, 75, .10)), none
}

.voicephoto {
    background-image: linear-gradient(120deg, rgba(6, 43, 75, .10), rgba(6, 43, 75, .03)), none
}

@media(max-width:900px) {
    .gengrid {
        grid-template-columns: 1fr 1fr
    }

    .generations {
        padding: 68px 0
    }
}

@media(max-width:520px) {
    .gengrid {
        grid-template-columns: 1fr
    }

    .gen {
        padding: 20px
    }
}

/* Photos locales fournies par l’association — une seule utilisation chacune */
#moments .m1 {
    background-image: url('../img/photo_beal_eau.jpg') !important;
    background-position: center
}

#moments .m2 {
    background-image: url('../img/fontaine-floute.png') !important;
    background-position: center
}

#moments .m3 {
    background-image: url('../img/marche-floute.png') !important;
    background-position: center;
    background-size: cover
}

#moments .m4 {
    background-image: url('../img/photo_fenouillet.jpg') !important;
    background-position: center 55%
}

.news {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8fbfd, #fff)
}

.newshead {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 32px
}

.newshead .lead {
    max-width: 560px
}

.newsgrid {
    display: grid;
    grid-template-columns: 1.15fr .85fr .85fr;
    gap: 16px
}

.newscard {
    background: #fff;
    border: 1px solid #e3edf3;
    border-radius: 26px;
    padding: 26px;
    box-shadow: 0 12px 32px rgba(6, 43, 75, .07);
    transition: .25s;
    min-height: 220px;
    display: flex;
    flex-direction: column
}

.newscard:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(6, 43, 75, .12)
}

.newscard.featured {
    background: var(--navy);
    color: #fff;
    border: 0
}

.newscard .newsdate {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--blue)
}

.newscard.featured .newsdate {
    color: #79c9f6
}

.newscard h3 {
    font-size: 23px;
    line-height: 1.12;
    margin: 13px 0;
    color: var(--navy)
}

.newscard.featured h3 {
    color: #fff;
    font-size: 29px
}

.newscard p {
    color: var(--muted);
    margin: 0 0 20px
}

.newscard.featured p {
    color: #d5e2eb
}

.newslink {
    margin-top: auto;
    font-weight: 850;
    color: var(--blue)
}

.newscard.featured .newslink {
    color: var(--yellow)
}

@media(max-width:900px) {
    .newsgrid {
        grid-template-columns: 1fr
    }

    .newshead {
        display: block
    }
}

@media(max-width:520px) {
    .news {
        padding: 72px 0
    }

    .newscard {
        min-height: 190px
    }
}

.pole {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: white;
    display: block;
    background-size: cover;
    background-position: center
}

.pole:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 39, 68, .88), rgba(8, 91, 143, .72));
    z-index: 0
}

.pole>* {
    position: relative;
    z-index: 1
}

.polemore {
    display: block;
    margin-top: 16px;
    font-size: 12px;
    font-weight: 800;
    opacity: .82
}

.pole:hover .polemore {
    opacity: 1
}

.pole:nth-child(2) {
    background-image: none
}

.pole:nth-child(3) {
    background-image: url("../img/photo_beal_eau.jpg")
}

.pole:nth-child(5) {
    background-image: none
}

.pole:nth-child(7) {
    background-image: url("../img/marche-floute.png")
}

.pole:nth-child(9) {
    background-image: none
}

.pole:nth-child(10) {
    background-image: url("../img/fontaine-floute.png")
}

/* Corrections Index 24 */
.m1 {
    background-image: url("../img/photo_beal_eau.jpg") !important;
    background-position: center !important;
    background-size: cover !important
}

.m2 {
    background-image: url("../img/fontaine-floute.png") !important;
    background-position: center !important;
    background-size: cover !important
}

.m3 {
    background-image: url("../img/marche-floute.png") !important;
    background-position: center !important;
    background-size: cover !important
}

.genlink {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: 22px;
    transition: transform .18s ease, box-shadow .18s ease
}

.genlink:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(18, 52, 82, .12)
}

.genlink:focus-visible {
    outline: 3px solid #f3c84b;
    outline-offset: 3px
}

/* V3 — photos locales en arrière-plan des 12 thématiques */
.pole:nth-child(1) {
    background-image: url("../img/photo_beal_eau.jpg") !important
}

#poles .m2 {
    background-image: url("../img/fontaine-floute.png") !important
}

#poles .m3 {
    background-image: url("../img/marche-floute.png") !important
}

.pole {
    position: relative;
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
    text-decoration: none;
    color: white;
    isolation: isolate
}

.pole::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5, 43, 72, .84), rgba(10, 82, 128, .70));
    z-index: -1;
    transition: .2s
}

.pole:hover::before {
    background: linear-gradient(135deg, rgba(5, 43, 72, .70), rgba(10, 82, 128, .56))
}

.pole .num,
.pole h3,
.pole .polemore {
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 5px rgba(0, 0, 0, .45)
}

.pole:nth-child(3) {
    background-image: url("../img/03-agriculture.jpg") !important
}

.pole:nth-child(7) {
    background-image: url("../img/marche-floute.png") !important
}

.pole:nth-child(8) {
    background-image: url("../img/08-culture.jpg") !important
}

.pole:nth-child(9) {
    background-image: url("../img/09-mobilites.jpg") !important
}

.pole:nth-child(10) {
    background-image: url("../img/reuniongroupe.jpg") !important
}

.pole:nth-child(5) {
    background-image: url("../img/JeanGiono.jpg") !important
}

.pole:nth-child(6) {
    background-image: url("../img/marche-floute.png") !important
}

.pole:nth-child(1) {
    background-image: none !important
}

.pole:nth-child(2) {
    background-image: none !important
}

.pole:nth-child(4) {
    background-image: none !important
}

.photo-directe {
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    margin: 0;
    box-shadow: 0 30px 60px rgba(9, 44, 76, .16);
    background: #eaf2f7
}

.photo-directe img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain
}

.photo-directe figcaption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 12px 15px;
    border-radius: 14px;
    background: rgba(3, 25, 43, .68);
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    text-align: center
}

.voicephoto-directe {
    width: 100%;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(9, 44, 76, .14);
    background: #fff
}

.voicephoto-directe img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain
}

.aventure-suite {
    margin-top: 14px;
    text-align: center;
    color: #0b3558;
    font-size: clamp(20px, 3vw, 27px);
    font-weight: 800;
    font-style: italic;
    letter-spacing: -.01em
}

/* Typographie signature pour les deux photos */
.photo-directe figcaption,
.aventure-suite {
    font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
    font-weight: 600;
    letter-spacing: .015em;
    line-height: 1.25;
}

.photo-directe figcaption {
    font-size: clamp(20px, 3.2vw, 30px);
    background: rgba(3, 25, 43, .58);
    padding: 11px 18px 13px;
    border: 1px solid rgba(255, 255, 255, .24);
    text-shadow: 0 2px 8px rgba(0, 0, 0, .28);
}

.aventure-suite {
    font-size: clamp(22px, 3.4vw, 32px);
    color: #0b3558;
    margin-top: 17px;
    font-style: normal;
}

/* V16 — raccourcis du haut restaurés et visibles sur mobile */
@media (max-width: 900px) {

    header .wrap,
    header .nav,
    .nav {
        overflow: visible !important;
    }

    header nav,
    .nav nav,
    nav {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 7px !important;
    }

    header nav a,
    .nav nav a,
    nav a {
        display: inline-flex !important;
    }
}

/* V17 — vraie barre de raccourcis visible en haut sur téléphone */
@media (max-width:900px) {
    header.top {
        position: sticky !important;
        top: 0 !important;
        height: auto !important;
        z-index: 9999 !important
    }

    header.top .bar {
        height: auto !important;
        min-height: 66px !important;
        padding-top: 10px !important;
        padding-bottom: 9px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    header.top .brand {
        width: 100% !important
    }

    header.top .nav {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        flex-wrap: nowrap !important;
        gap: 7px !important;
        padding: 1px 0 4px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    header.top .nav::-webkit-scrollbar {
        display: none
    }

    header.top .nav a,
    header.top .nav a:not(.btn) {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        white-space: nowrap !important;
        padding: 8px 11px !important;
        border-radius: 999px !important;
        font-size: 12px !important;
        line-height: 1 !important;
        background: rgba(255, 255, 255, .10) !important;
        color: #fff !important;
    }

    header.top .nav a.btn {
        background: #f4c928 !important;
        color: #102347 !important;
    }
}

/* V18 — logo officiel exact dans l'en-tête */
.brand-logo {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important
}

.brand-logo img {
    display: block !important;
    width: min(290px, 44vw) !important;
    height: auto !important;
    max-height: 70px !important;
    object-fit: contain !important
}

@media(max-width:900px) {
    header.top .brand-logo {
        width: auto !important;
        max-width: 58% !important
    }

    header.top .brand-logo img {
        width: 100% !important;
        max-width: 285px !important;
        max-height: 58px !important
    }
}

/* V19 — logo plus petit, aligné à gauche */
.brand-logo {
    justify-content: flex-start !important;
    margin-right: auto !important;
}

.brand-logo img {
    width: 190px !important;
    max-width: 190px !important;
    max-height: 50px !important;
}

@media(max-width:900px) {
    header.top .brand-logo {
        width: 190px !important;
        max-width: 190px !important;
        align-self: flex-start !important;
    }

    header.top .brand-logo img {
        width: 190px !important;
        max-width: 190px !important;
        max-height: 50px !important;
    }
}

/* V20 — logo encore plus petit et centré */
.brand-logo {
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.brand-logo img {
    width: 135px !important;
    max-width: 135px !important;
    max-height: 40px !important;
}

@media(max-width:900px) {
    header.top .brand-logo {
        width: 135px !important;
        max-width: 135px !important;
        align-self: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    header.top .brand-logo img {
        width: 135px !important;
        max-width: 135px !important;
        max-height: 40px !important;
    }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 125px
}

@media(max-width:900px) {
    html {
        scroll-padding-top: 145px
    }
}

.quick-access {
    max-width: 1180px;
    margin: 14px auto 0;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap
}

.quick-access a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    color: #0b3558;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 5px 16px rgba(9, 44, 76, .08);
    border: 1px solid rgba(9, 44, 76, .08)
}

@media(max-width:900px) {
    .quick-access {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 16px 6px;
        scrollbar-width: none
    }

    .quick-access::-webkit-scrollbar {
        display: none
    }

    .quick-access a {
        flex: 0 0 auto
    }
}

/* V26 — raccourcis fixes, tous visibles, sans défilement horizontal */
@media(max-width:900px) {
    header.top .nav {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        gap: 6px !important;
        padding: 2px 0 6px !important;
    }

    header.top .nav a,
    header.top .nav a:not(.btn) {
        display: flex !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: normal !important;
        min-width: 0 !important;
        padding: 7px 5px !important;
        font-size: 10.5px !important;
        line-height: 1.15 !important;
    }

    header.top .nav a::after {
        content: " ›";
        font-size: 14px;
        font-weight: 900;
        margin-left: 3px;
    }
}

@media(max-width:430px) {
    header.top .nav {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important
    }
}

/* V28 — Fiches Projet 2033 intégrées à partir de la V27 */
.project2033-head {
    padding: 28px 0 10px
}

.project2033-head h1 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.05
}

.project2033-head p {
    margin: 0;
    color: #5c7182;
    font-size: 17px
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 24px 0 60px
}

.project-card {
    display: block;
    background: #fff;
    border: 1px solid #dbe5ec;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(5, 43, 75, .08);
    transition: .2s
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(5, 43, 75, .14)
}

.project-card img {
    display: block;
    width: 100%;
    height: auto;
    background: #f5f7f9
}

.project-card-info {
    padding: 14px 16px 17px
}

.project-card-info strong {
    display: block;
    color: var(--navy);
    font-size: 16px;
    line-height: 1.25
}

.project-card-info span {
    font-size: 13px;
    color: var(--blue);
    font-weight: 800
}

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(2, 18, 32, .94);
    display: none;
    overflow: auto;
    padding: 18px
}

.project-modal.open {
    display: block
}

.project-modal-inner {
    max-width: 1500px;
    margin: auto;
    position: relative
}

.project-modal img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: white
}

.project-close {
    position: sticky;
    top: 0;
    z-index: 2;
    float: right;
    margin: 0 0 10px 10px;
    border: 0;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--navy);
    font-weight: 900;
    padding: 12px 17px;
    cursor: pointer;
    font-size: 15px
}

.embedded-subpage .wrap {
    padding-top: 18px
}

.embedded-subpage .notice {
    margin-top: 10px
}

@media(max-width:760px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 16px
    }

    .project-modal {
        padding: 8px
    }

    .project-close {
        padding: 10px 14px
    }

    .project2033-head h1 {
        font-size: 30px
    }
}

/* V31 — espaces publics par génération */
.public-hub-head {
    padding: 22px 0 8px
}

.public-hub-head h1 {
    margin: .2rem 0 .45rem;
    color: var(--navy);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.03
}

.public-hub-head p {
    max-width: 850px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #40566a
}

.public-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0
}

.public-action {
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid #dfe8ef;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(6, 43, 75, .08);
    color: var(--ink);
    transition: .18s ease
}

.public-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(6, 43, 75, .12)
}

.public-action .pa-ico {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 7px
}

.public-action strong {
    display: block;
    color: var(--navy);
    font-size: 1.05rem;
    margin-bottom: 5px
}

.public-action span {
    display: block;
    color: #53697b;
    line-height: 1.45
}

.public-links {
    margin: 26px 0;
    padding: 20px;
    border-radius: 20px;
    background: #f5f9fc;
    border: 1px solid #dbe7ef
}

.public-links h2 {
    margin: 0 0 12px;
    color: var(--navy)
}

.public-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px
}

.public-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border: 1px solid #dce7ee;
    border-radius: 14px;
    padding: 13px 15px;
    text-decoration: none;
    color: var(--navy);
    font-weight: 700
}

.public-link small {
    display: block;
    color: #617485;
    font-weight: 500;
    margin-top: 3px
}

.public-feedback {
    margin: 28px 0 10px;
    padding: 22px;
    border-radius: 20px;
    background: linear-gradient(135deg, #062b4b, #0b74b9);
    color: #fff
}

.public-feedback h2 {
    color: #fff;
    margin: 0 0 8px
}

.public-feedback p {
    margin: 0 0 15px;
    line-height: 1.55
}

.public-feedback a {
    display: inline-block;
    background: #fff;
    color: #062b4b;
    text-decoration: none;
    font-weight: 800;
    padding: 11px 16px;
    border-radius: 999px
}

@media(max-width:720px) {

    .public-actions,
    .public-links-grid {
        grid-template-columns: 1fr
    }

    .public-action {
        padding: 15px
    }

    .public-links {
        padding: 15px
    }
}

.public-factual-note {
    margin: 18px 0 22px;
    padding: 14px 16px;
    border: 1px solid #d8e0ea;
    border-radius: 14px;
    background: #f7f9fc;
    color: #334155;
    font-size: .95rem;
    line-height: 1.5
}

.public-factual-note strong {
    color: #17365d
}

.directory-section-title {
    margin: 14px 0 8px;
    color: #0c2d49;
    font-size: 1rem;
    font-weight: 800
}

.directory-grid.compact a {
    font-size: .95rem
}

.directory-grid.compact {
    margin-top: 8px
}

.directory-caption {
    margin: 8px 0 0;
    color: #5a6875;
    line-height: 1.45;
    font-size: .92rem
}

#page-demarches-pratiques .demarches-head {
    margin-bottom: 18px
}

#page-demarches-pratiques .demarches-head h1 {
    margin: .2rem 0 .5rem;
    color: #0c2d49
}

#page-demarches-pratiques .demarches-head p {
    color: #5a6875;
    line-height: 1.5
}

.demarches-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px
}

.demarche-card {
    background: #fff;
    border: 1px solid #dfe6ec;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 7px 20px rgba(14, 42, 66, .05)
}

.demarche-card .ico {
    font-size: 1.65rem
}

.demarche-card h3 {
    margin: 7px 0 6px;
    color: #0c2d49;
    font-size: 1.04rem
}

.demarche-card p {
    margin: 0 0 10px;
    color: #5a6875;
    line-height: 1.42;
    font-size: .94rem
}

.demarche-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px
}

.demarche-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 11px;
    border-radius: 999px;
    background: #0d4f78;
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
    font-size: .87rem
}

.demarche-actions a.alt {
    background: #fff;
    color: #0d4f78 !important;
    border: 1px solid #b8ccd9
}

.demarches-tip {
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff7db;
    border-left: 5px solid #ffc928;
    color: #344957;
    line-height: 1.45
}

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

.simple-shortcuts {
    margin: 18px 0 22px;
    padding: 16px;
    border-radius: 18px;
    background: #f7fafc;
    border: 1px solid #dfe8ee
}

.simple-shortcuts h2 {
    margin: 0 0 6px;
    color: #0c2d49;
    font-size: 1.25rem
}

.simple-shortcuts p {
    margin: 0 0 12px;
    color: #5a6875;
    line-height: 1.45
}

.simple-shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px
}

.simple-shortcuts a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 54px;
    padding: 10px 12px;
    border-radius: 15px;
    background: #fff;
    border: 1px solid #cfdde5;
    color: #0d4f78 !important;
    text-decoration: none;
    font-weight: 800
}

.simple-shortcuts a.primary {
    background: #0d4f78;
    color: #fff !important;
    border-color: #0d4f78
}

@media(max-width:650px) {
    .simple-shortcuts-grid {
        grid-template-columns: 1fr
    }
}

.useful-contacts {
    margin: 22px 0;
    padding: 18px;
    border-radius: 20px;
    background: #f4f9fc;
    border: 1px solid #d6e6ef
}

.useful-contacts h2 {
    margin: 0 0 7px;
    color: #0c2d49;
    font-size: 1.35rem
}

.useful-contacts>p {
    margin: 0 0 14px;
    color: #5a6875;
    line-height: 1.45
}

.useful-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px
}

.useful-contact-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #d9e4ea;
    text-decoration: none;
    color: #173b55
}

.useful-contact-card strong {
    font-size: .99rem;
    color: #0c2d49
}

.useful-contact-card span {
    font-size: .88rem;
    color: #5c6c78;
    line-height: 1.35
}

.useful-contact-card b {
    font-size: .95rem;
    color: #0d5e88
}

@media(max-width:680px) {
    .useful-contact-grid {
        grid-template-columns: 1fr
    }
}


/* ===== STYLE 2 id= ===== */

/* Chanson discrète en fin de page */
.song {
    padding: 12px 0;
    background: #f7f8fa;
    border-top: 1px solid rgba(0, 0, 0, .06)
}

.song .wrap {
    max-width: 920px
}

.songcard {
    padding: 10px 14px;
    gap: 10px;
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 12px;
    background: #fff
}

.songart {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 9px
}

.songart strong:after {
    font-size: 18px
}

.song .eyebrow {
    font-size: 9px;
    letter-spacing: .12em;
    margin: 0
}

.song h2 {
    font-size: 14px;
    margin: 1px 0 4px
}

.song .lead {
    display: none
}

.song .player {
    height: 30px;
    max-width: 360px
}

@media(max-width:760px) {
    .song {
        padding: 9px 0
    }

    .songcard {
        padding: 9px 10px
    }

    .songart {
        width: 32px;
        height: 32px;
        flex-basis: 32px
    }

    .song h2 {
        font-size: 13px
    }

    .song .player {
        height: 28px
    }
}

/* V5 — identité intergénérationnelle */
.generations {
    padding: 88px 0;
    background: #fff
}

.generations h2 {
    max-width: 780px
}

.genlead {
    max-width: 780px
}

.gengrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 34px
}

.gen {
    padding: 24px;
    border-radius: 22px;
    background: #f4f7f9;
    border: 1px solid #e6edf2
}

.gen .ico {
    font-size: 31px;
    display: block;
    margin-bottom: 12px
}

.gen strong {
    font-size: 19px;
    color: var(--navy);
    display: block;
    margin-bottom: 7px
}

.gen p {
    margin: 0;
    color: #5d7181;
    font-size: 15px
}

.interband {
    margin-top: 22px;
    padding: 20px 24px;
    border-radius: 20px;
    background: linear-gradient(120deg, #e9f5fb, #fff6cf);
    font-weight: 750;
    color: var(--navy)
}

/* trois images réellement différentes : une seule occurrence par zone */
.hero {
    background-image: linear-gradient(90deg, rgba(3, 25, 43, .88), rgba(3, 25, 43, .36)), none
}

.photo {
    background-image: linear-gradient(rgba(4, 43, 75, .10), rgba(4, 43, 75, .10)), none
}

.voicephoto {
    background-image: linear-gradient(120deg, rgba(6, 43, 75, .10), rgba(6, 43, 75, .03)), none
}

@media(max-width:900px) {
    .gengrid {
        grid-template-columns: 1fr 1fr
    }

    .generations {
        padding: 68px 0
    }
}

@media(max-width:520px) {
    .gengrid {
        grid-template-columns: 1fr
    }

    .gen {
        padding: 20px
    }
}


/* ===== STYLE 3 id=v6-fresh ===== */

:root {
    --sky: #eaf8ff;
    --cream: #fffaf0;
    --mint: #eaf8f0;
    --coral: #fff0e8
}

body {
    background: #fffdf9
}

.top {
    background: rgba(6, 43, 75, .86)
}

.hero {
    min-height: 90vh
}

.hero h1 {
    max-width: 780px
}

.hero p {
    max-width: 650px
}

.hero .yellow {
    box-shadow: 0 10px 28px rgba(244, 197, 47, .28)
}

.intro {
    background: linear-gradient(180deg, #fff 0, #f8fcff 100%)
}

.photo {
    background-image: linear-gradient(rgba(4, 43, 75, .05), rgba(4, 43, 75, .05)), none;
    transform: rotate(1.2deg);
    border: 8px solid #fff
}

.values {
    gap: 14px
}

.value {
    border-top: 0;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(6, 43, 75, .07)
}

.value:nth-child(1) {
    background: var(--sky)
}

.value:nth-child(2) {
    background: var(--cream)
}

.value:nth-child(3) {
    background: var(--mint)
}

.generations {
    background: #fff
}

.gengrid {
    grid-template-columns: repeat(4, 1fr)
}

.gen {
    border: 0;
    box-shadow: 0 12px 30px rgba(6, 43, 75, .07);
    transition: .25s
}

.gen:hover {
    transform: translateY(-6px) rotate(-.5deg)
}

.gen:nth-child(1) {
    background: #eef8ff
}

.gen:nth-child(2) {
    background: #fff6d8
}

.gen:nth-child(3) {
    background: #edf9f2
}

.gen:nth-child(4) {
    background: #fff0e8
}

.gen .ico {
    font-size: 36px
}

.moments {
    padding: 90px 0;
    background: #f7fbfd
}

.moments-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px
}

.moments-head .lead {
    max-width: 600px;
    margin-bottom: 8px
}

.mosaic {
    display: grid;
    grid-template-columns: 1.15fr .85fr .85fr;
    grid-template-rows: 245px 245px;
    gap: 16px
}

.moment {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 14px 34px rgba(6, 43, 75, .12);
    transition: .3s
}

.moment img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.moment:hover {
    transform: translateY(-5px)
}

.moment:after {
    content: "";
    position: absolute;
    inset: 60% 0 0;
    background: linear-gradient(transparent, rgba(3, 25, 43, .42))
}

.moment span {
    position: absolute;
    z-index: 2;
    left: 20px;
    bottom: 18px;
    color: #fff;
    font-weight: 850;
    font-size: 18px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .45)
}

.m1 {
    grid-row: 1/3;
    background-image: none
}

.m2 {
    background-image: none
}

.m3 {
    background: none
}

.m4 {
    grid-column: 2/4;
    background-image: none
}

.poles {
    background: linear-gradient(145deg, #062b4b, #0b4773)
}

.pole {
    border-radius: 24px
}

.pole:nth-child(3n+1) {
    background: #0d4269
}

.pole:nth-child(3n+2) {
    background: #0a385d
}

.pole:nth-child(3n) {
    background: #104d78
}

.pole:hover {
    transform: translateY(-7px) rotate(.4deg)
}

.council {
    background: #fff
}

.bigcard {
    background: var(--sky)
}

.sidecard {
    border-radius: 28px
}

.voice {
    background: linear-gradient(180deg, #fffaf0, #fff)
}

.voicephoto {
    background-image: linear-gradient(120deg, rgba(6, 43, 75, .08), rgba(6, 43, 75, .02)), none;
    border: 8px solid white;
    box-shadow: 0 18px 45px rgba(6, 43, 75, .12)
}

.join {
    background: linear-gradient(135deg, #ffe37b, #f4c52f)
}

.bulletin-preview {
    max-width: 620px
}

.song {
    padding: 10px 0
}

.songcard {
    max-width: 760px;
    margin: auto
}

.funline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px
}

.funpill {
    padding: 9px 13px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e5edf2;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 5px 14px rgba(6, 43, 75, .05)
}

@media(max-width:900px) {
    .mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 260px 210px 210px
    }

    .m1 {
        grid-column: 1/3;
        grid-row: auto
    }

    .m4 {
        grid-column: 1/3
    }

    .moments-head {
        display: block
    }
}

@media(max-width:600px) {
    .mosaic {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px
    }

    .moment {
        min-width: 82vw;
        height: 270px;
        scroll-snap-align: center
    }

    .gengrid {
        grid-template-columns: 1fr 1fr
    }

    .gen {
        padding: 18px
    }

    .gen p {
        font-size: 13px
    }

    .moments {
        padding: 68px 0
    }

    .photo {
        transform: none
    }
}


/* ===== STYLE 4 id=correction-photos-poles-v6 ===== */

/* Conserve les photos V3 des 7 autres thèmes ; remplace uniquement 02, 04 et 06. */
.pole {
    background-size: cover !important;
    background-position: center !important;
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important
}

.pole:nth-child(2) {
    background-image: url("../img/02-urbanisme.jpg") !important;
    background-position: center !important
}

.pole:nth-child(4) {
    background-image: none !important;
    background-position: center !important
}

.pole:nth-child(6) {
    background-image: url("../img/06-solidarites.jpg") !important;
    background-position: center !important
}

/* Voile nettement plus léger : toutes les photos restent visibles. */
.pole:before,
.pole::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(135deg, rgba(4, 35, 62, .38), rgba(7, 76, 119, .22)) !important;
    z-index: 0 !important;
    pointer-events: none !important
}

.pole:hover:before,
.pole:hover::before {
    background: linear-gradient(135deg, rgba(4, 35, 62, .26), rgba(7, 76, 119, .12)) !important
}

.pole .num,
.pole h3,
.pole .polemore {
    position: relative !important;
    z-index: 2 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .75) !important
}


/* ===== STYLE 5 id= ===== */

.embedded-subpage {
    min-height: 100vh;
    background: #fff;
    position: relative;
    z-index: 20
}

.embedded-subpage[hidden] {
    display: none !important
}

.embedded-top {
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 12px 18px;
    background: #173f5f
}

.embedded-back {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 800;
    background: #ffc83d;
    color: #123653;
    font-size: 15px
}

.embedded-subpage header,
.embedded-subpage footer {
    display: none !important
}

body.embedded-open>header,
body.embedded-open>nav,
body.embedded-open>main,
body.embedded-open>section:not(.embedded-subpage),
body.embedded-open>footer {
    display: none !important
}


/* ===== STYLE 6 id= ===== */

/* V34 — Mobilités complètes : bus, ZOU, SNCF, taxis/VTC et mobilités alternatives */
.mobility-guide {
    margin: 22px 0 34px
}

.mobility-guide-head {
    background: linear-gradient(135deg, #f3f8fc, #fff8dc);
    border: 1px solid #dbe8f0;
    border-radius: 22px;
    padding: 22px;
    margin-bottom: 18px
}

.mobility-guide-head h2 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: clamp(24px, 4vw, 34px)
}

.mobility-guide-head p {
    margin: 0;
    color: #51697b;
    line-height: 1.6
}

.mobility-quick {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px
}

.mobility-quick span {
    background: #fff;
    border: 1px solid #d9e5ec;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 800;
    color: var(--navy)
}

.mobility-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px
}

.mobility-card {
    border: 1px solid #dbe5ec;
    border-radius: 20px;
    padding: 19px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(5, 43, 75, .06)
}

.mobility-card h3 {
    margin: 0 0 9px;
    color: var(--navy);
    font-size: 20px
}

.mobility-card p {
    margin: 0 0 12px;
    color: #526a7c;
    line-height: 1.55
}

.mobility-card ul {
    margin: 9px 0 13px;
    padding-left: 20px;
    color: #26465c;
    line-height: 1.55
}

.mobility-card a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    background: var(--navy);
    color: #fff;
    border-radius: 999px;
    padding: 9px 13px;
    font-weight: 800;
    font-size: 13px
}

.mobility-card a:hover {
    opacity: .9
}

.linechips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 10px 0 13px
}

.linechips span {
    border-radius: 999px;
    background: #eef6fb;
    color: #154a70;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 900
}

.mobility-note {
    margin: 16px 0 28px;
    padding: 15px 17px;
    border-left: 5px solid var(--yellow);
    background: #fff9df;
    border-radius: 10px;
    color: #4d5f6b;
    line-height: 1.55
}

.mobility-project-title {
    margin: 34px 0 4px;
    color: var(--navy);
    font-size: 27px
}

.mobility-publics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0
}

.mobility-public {
    background: #173f5f;
    color: #fff;
    border-radius: 15px;
    padding: 12px;
    text-align: center;
    font-weight: 800;
    font-size: 13px
}

.public-link.mobility-main-link {
    background: #f7fbfe;
    border: 2px solid #bcd7e8
}

.public-link.mobility-main-link span:first-child {
    font-weight: 900;
    color: #173f5f
}

@media(max-width:760px) {
    .mobility-grid {
        grid-template-columns: 1fr
    }

    .mobility-publics {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .mobility-card {
        padding: 16px
    }
}


/* ===== STYLE 7 id=v37-practical-publics ===== */

.quick-directory {
    margin: 22px 0;
    padding: 20px;
    border-radius: 22px;
    background: #f7fbfe;
    border: 1px solid #dbe8f0
}

.quick-directory h2 {
    margin: 0 0 6px;
    color: #0c2d49;
    font-size: 1.35rem
}

.quick-directory>p {
    margin: 0 0 14px;
    color: #526274;
    line-height: 1.5
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px
}

.directory-grid a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 11px 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #d7e3eb;
    color: #0d4f78;
    text-decoration: none;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 3px 10px rgba(14, 42, 66, .04)
}

.directory-grid a:hover {
    transform: translateY(-1px)
}

.help-now {
    margin: 22px 0;
    padding: 20px;
    border-radius: 22px;
    background: #fff6f2;
    border: 1px solid #f2d6ca
}

.help-now h2 {
    margin: 0 0 7px;
    color: #7a2e1e;
    font-size: 1.35rem
}

.help-now>p {
    margin: 0 0 14px;
    color: #5e4a43;
    line-height: 1.5
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px
}

.help-item {
    background: #fff;
    border: 1px solid #eadfd9;
    border-radius: 16px;
    padding: 14px
}

.help-item strong {
    display: block;
    color: #472e27;
    margin-bottom: 5px
}

.help-item span {
    display: block;
    color: #6a5952;
    font-size: .93rem;
    line-height: 1.35;
    margin-bottom: 10px
}

.help-item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 11px;
    border-radius: 999px;
    background: #8b2f24;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: .9rem;
    margin: 2px 4px 2px 0
}

.help-item a.alt {
    background: #fff;
    color: #8b2f24;
    border: 1px solid #d6b7ae
}

.public-feedback.v37-feedback {
    padding: 20px;
    border-radius: 22px;
    background: #eef8ff;
    border: 1px solid #cfe4f2
}

.public-feedback.v37-feedback h2 {
    margin-top: 0
}

.feedback-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0
}

.feedback-choices button {
    border: 1px solid #bcd4e4;
    background: #fff;
    color: #0d4f78;
    padding: 8px 11px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer
}

.public-feedback textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 115px;
    border: 1px solid #bfd2df;
    border-radius: 14px;
    padding: 12px;
    font: inherit;
    resize: vertical;
    background: #fff
}

.feedback-send {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 11px 15px;
    background: #0d4f78;
    color: #fff;
    font-weight: 800;
    cursor: pointer
}

.feedback-note {
    font-size: .88rem;
    color: #617180;
    margin-top: 8px
}

@media(max-width:900px) {
    .directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .help-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:560px) {
    .directory-grid {
        grid-template-columns: 1fr
    }

    .quick-directory,
    .help-now {
        padding: 16px
    }
}


/* ===== STYLE 8 id= ===== */

/* V48 overrides: sharper project cards + removal of broken pole backgrounds */
.project-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 26px !important;
    max-width: 900px !important;
    margin: 0 auto !important;
}

.project-card {
    display: block !important;
    background: #fff !important;
    border: 1px solid #d9e4ec !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(5, 43, 75, .08) !important;
    padding-bottom: 10px !important;
}

.project-card img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    background: #fff !important;
    padding: 10px 10px 0 !important;
    image-rendering: auto !important;
}

.project-card strong,
.project-card span {
    display: block !important;
    text-align: center !important;
    padding: 0 18px !important;
}

.project-card strong {
    font-size: 18px !important;
    line-height: 1.25 !important;
    color: #173b5c !important;
    margin: 10px 0 6px !important;
    font-weight: 800 !important;
}

.project-card span {
    font-size: 15px !important;
    color: #2473a7 !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
}

@media (min-width: 900px) {
    .project-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Force text above overlays */
.pole>* {
    position: relative !important;
    z-index: 2 !important;
}

/* Replace the two most broken tile photos with clean visual tiles */
/*.pole[href="#" onclick="openEmbeddedPage('economie');return false"] {
    background-image: linear-gradient(135deg, rgba(6, 43, 75, .92), rgba(11, 116, 185, .76)) !important;
    background-color: #0d4269 !important
}

.pole[href="#" onclick="openEmbeddedPage('mobilites-projet');return false"] {
    background-image: linear-gradient(135deg, rgba(6, 43, 75, .92), rgba(11, 116, 185, .76)) !important;
    background-color: #0d4269 !important
}
*/
/* Slightly reduce overlay darkness on all other photo tiles */
.pole::before,
.pole:before {
    background: linear-gradient(135deg, rgba(5, 43, 72, .52), rgba(10, 82, 128, .32)) !important;
}


/* ===== STYLE 9 id=v49-pole-fix ===== */

.pole:nth-child(7) {
    background-image: linear-gradient(rgba(9, 25, 44, .18), rgba(9, 25, 44, .18)), url("../img/img-a1897262071f4e66.jpg");
    background-position: center;
    background-size: cover !important;
}

.pole:nth-child(9) {
    background-image: linear-gradient(rgba(9, 25, 44, .18), rgba(9, 25, 44, .18)), url("../img/img-d7410907444de2f4.jpg");
    background-position: center;
    background-size: cover !important;
}

.pole h3,
.pole .polemore,
.pole .num {
    position: relative;
    z-index: 2;
}


/* ===== STYLE 10 id= ===== */

/* V52 — base V49 conservée, correction uniquement des vignettes d'accueil */
.polegrid>.pole {
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat !important;
    background-size: cover;
    background-position: center center;
}

.polegrid>.pole::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 27, 46, .72) 0%, rgba(4, 27, 46, .42) 48%, rgba(4, 27, 46, .14) 100%);
    pointer-events: none;
}

.polegrid>.pole>* {
    position: relative;
    z-index: 1;
}

.polegrid>.pole .num,
.polegrid>.pole h3,
.polegrid>.pole .polemore {
    text-shadow: 0 2px 6px rgba(0, 0, 0, .65);
}

.polegrid>.pole h3 {
    max-width: 92%;
}


/* ===== STYLE 11 id= ===== */

/* V53 — remplacement ciblé uniquement des photos 07/09 */
.polegrid .pole:nth-child(7),
.polegrid .pole:nth-child(9) {
    background-repeat: no-repeat !important;
    background-size: cover !important;
}


/* ===== STYLE 12 id= ===== */

/* V54 — les photos 07 et 09 servent uniquement de miniatures sur la page d'accueil */
.polegrid .pole:nth-child(7),
.polegrid .pole:nth-child(9) {
    background-repeat: no-repeat !important;
    overflow: hidden !important;
}


/* ===== STYLE 13 id= ===== */

/* V55 — reclassement des 21 fiches dans les 12 thématiques */
.project-cross-note {
    max-width: 760px;
    margin: 18px auto 0;
    text-align: center;
    color: #5f7485;
    font-size: .92rem;
    line-height: 1.4;
}


/* ===== STYLE 14 id= ===== */

/* V56 — correction définitive des photos des pôles 07 et 09 */
.polegrid>a.pole:nth-child(7) {
    background-image:
        linear-gradient(rgba(3, 31, 55, .20), rgba(3, 31, 55, .48)),
        url("../img/img-08d5f79c466237ea.jpg") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.polegrid>a.pole:nth-child(9) {
    background-image:
        linear-gradient(rgba(3, 31, 55, .18), rgba(3, 31, 55, .46)),
        url("../img/img-18b1288da4f24806.jpg") !important;
    background-size: cover !important;
    background-position: center 46% !important;
    background-repeat: no-repeat !important;
}

.polegrid>a.pole:nth-child(7)::before,
.polegrid>a.pole:nth-child(9)::before {
    background: linear-gradient(to top,
            rgba(3, 31, 55, .62) 0%,
            rgba(3, 31, 55, .30) 52%,
            rgba(3, 31, 55, .05) 100%) !important;
}

/* V71 — bouton charte d’adhésion plus visible */
/*#join-actions {}*/

.join-actions .charte-required-btn {
    background: #062b4b !important;
    color: #fff !important;
    border: 2px solid #0b74b9 !important;
    box-shadow: 0 8px 20px rgba(6, 43, 75, .22);
    display: flex !important;
    flex-direction: column;
    gap: 2px;
    min-height: 82px;
    padding: 14px 22px !important
}

.join-actions .charte-required-btn:hover {
    background: #0b3d66 !important;
    transform: translateY(-2px)
}

.charte-required-btn .charte-btn-title {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2
}

.charte-required-btn .charte-btn-note {
    font-size: 12px;
    font-weight: 600;
    opacity: .88;
    line-height: 1.2
}

@media(max-width:650px) {
    .join-actions .charte-required-btn {
        min-height: 86px;
        padding: 14px 16px !important
    }

    .charte-required-btn .charte-btn-title {
        font-size: 17px
    }

    .charte-required-btn .charte-btn-note {
        font-size: 12px
    }
}


/* ===== STYLE 15 id= ===== */

/* V57 — préparation production OVH + Yapla */
.yapla-status {
    max-width: 720px;
    margin: 12px auto 22px;
    font-size: .95rem;
    opacity: .86;
}

#promesse-yapla,
[data-yapla-adhesion] {
    cursor: pointer;
}

@media(max-width:680px) {
    .join-actions .btn {
        width: 100%;
        max-width: 420px;
    }
}


/* ===== STYLE 16 id= ===== */

/* V58 — correction adhésion + visuel Vous avez la parole */
.btn-disabled {
    opacity: .62 !important;
    pointer-events: none !important;
    cursor: default !important;
}

#adhérer .bulletin-preview,
#adherer .bulletin-preview {
    display: none !important;
}

.voicephoto {
    background: linear-gradient(135deg, #073457, #0b74b9) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 360px !important;
}

.voice-placeholder {
    white-space: pre-line;
    text-align: center;
    color: white;
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    line-height: 1.15;
    padding: 30px;
}


/* ===== STYLE 17 id= ===== */

/* V59 — bulletin d'adhésion rétabli + photo Citoyens Craurois */
.voicephoto {
    background: none !important;
    min-height: 0 !important;
    display: block !important;
    overflow: hidden !important;
}

.voice-group-photo {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 28px !important;
}

#adhérer .bulletin-preview,
#adherer .bulletin-preview {
    display: block !important;
}

#adhérer .btn-disabled,
#adherer .btn-disabled {
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}


/* ===== STYLE 18 id= ===== */

/* V60 — photo rétablie + bulletin corrigé */
#contact .voice-visual {
    display: block
}

#contact .voicephoto-directe {
    background: #fff
}

.voicephoto-directe img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain
}


/* ===== STYLE 19 id=v66-final-polish ===== */

/* V66 — finition mobile et sécurisation du bloc adhésion */
#adhérer [data-yapla-adhesion="1"],
#adherer [data-yapla-adhesion="1"] {
    opacity: .7;
    cursor: default;
}

#adhérer [data-yapla-adhesion="1"][aria-disabled="true"],
#adherer [data-yapla-adhesion="1"][aria-disabled="true"] {
    pointer-events: none;
}

.bulletin-preview img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.moment.m3 {
    background-position: center center !important;
}

.moment:after {
    inset: 62% 0 0 !important;
    background: linear-gradient(transparent, rgba(3, 25, 43, .38)) !important;
}

.moment span {
    text-shadow: 0 2px 8px rgba(0, 0, 0, .5) !important;
}

@media (max-width:760px) {

    #adherer .actions,
    #adhérer .actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    #adherer .actions .btn,
    #adhérer .actions .btn {
        width: 100%;
    }

    .bulletin-preview {
        display: block;
        width: 100%;
    }

    .moment.m3 {
        background-position: center 48% !important;
    }
}


/* ===== STYLE 20 id=v73-pages-style ===== */

.topiclink {
    cursor: pointer;
    text-decoration: none
}

.cc-info-page {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #f7fafc;
    overflow: auto;
    color: #102c43
}

.cc-info-page.open {
    display: block
}

.cc-page-top {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #062b4b;
    color: #fff;
    padding: 14px 20px;
    box-shadow: 0 2px 12px #0002
}

.cc-page-top .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px
}

.cc-page-back {
    border: 1px solid #ffffff88;
    background: #ffffff12;
    color: #fff;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
    cursor: pointer
}

.cc-page-body {
    padding: 55px 0 90px
}

.cc-page-body h1 {
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1;
    margin: 10px 0 20px;
    color: #062b4b
}

.cc-page-intro {
    font-size: 19px;
    max-width: 780px;
    color: #526b7d
}

.cc-list {
    display: grid;
    gap: 16px;
    margin-top: 34px
}

.cc-item {
    background: #fff;
    border: 1px solid #dbe6ed;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 8px 25px #062b4b0b
}

.cc-item h3 {
    margin: 0 0 8px;
    color: #062b4b;
    font-size: 22px
}

.cc-item p {
    margin: 0;
    color: #526b7d
}

.cc-empty {
    margin-top: 28px;
    padding: 22px;
    border-radius: 18px;
    background: #fff4cc;
    border: 1px solid #f4c52f;
    color: #4e4a32
}

.cc-chip {
    display: inline-block;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #0b74b9;
    margin-bottom: 8px
}

@media(max-width:650px) {
    .cc-page-body {
        padding-top: 34px
    }

    .cc-item {
        padding: 20px
    }

    .cc-page-top {
        padding: 12px 10px
    }
}


/* ===== STYLE 21 id=v74-media-slots ===== */

.content-zone {
    margin-top: 26px;
    display: grid;
    gap: 16px
}

.content-card {
    border: 1px solid #d9e4ec;
    border-radius: 22px;
    padding: 22px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(6, 43, 75, .06)
}

.content-card h3 {
    margin: 0 0 8px;
    color: #062b4b;
    font-size: 22px
}

.content-card p {
    margin: 0 0 14px;
    color: #667b8c
}

.content-tools {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.content-tool {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #f4f7f9;
    color: #062b4b;
    font-weight: 800;
    font-size: 14px
}

.content-note {
    margin-top: 18px;
    padding: 15px 18px;
    border-radius: 16px;
    background: #eef6fb;
    color: #496274;
    font-size: 14px
}

.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin-top: 14px
}

.media-gallery:empty {
    display: none
}

@media(max-width:650px) {
    .content-card {
        padding: 18px
    }

    .content-card h3 {
        font-size: 20px
    }

    .content-tool {
        font-size: 13px;
        padding: 9px 12px
    }
}


/* ===== STYLE 22 id= ===== */

/* V85 — affichage fiable des fiches Projet 2033 */
.project-card>img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center top !important;
    display: block !important;
    background: #fff !important;
    filter: none !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
}

.project-card::before,
.project-card::after {
    pointer-events: none;
}


/* ===== STYLE 23 id= ===== */

.bureau-public-notice {
    max-width: 1180px;
    margin: 14px auto 22px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff4cf;
    border: 1px solid #f1cc63;
    color: #062b4b;
    font-weight: 700
}

.health-shortcut {
    padding: 16px !important
}

.yapla-status {
    padding: 10px 14px;
    border-radius: 10px;
    background: #eef6fb;
    border: 1px solid #c7deed
}


/* ===== STYLE 24 id= ===== */

.ca-status {
    background: #fff4cf;
    border-bottom: 1px solid #efcc68;
    color: #062b4b;
    padding: 10px 14px;
    text-align: center;
    font-weight: 700
}

.don-box {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #d8e2e9;
    border-radius: 14px;
    background: #fff
}


/* ===== STYLE 25 id= ===== */

/* V98 — première page des 12 thématiques : photo + intitulé uniquement */
.polegrid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.theme-photo-only {
    position: relative !important;
    overflow: hidden !important;
    padding: 0 !important;
    border-radius: 18px !important;
    min-height: 220px !important;
    background: #fff !important;
    border: 1px solid #d7e0e7 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08) !important;
}

.theme-photo-only img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    display: block !important;
    filter: none !important;
    opacity: 1 !important;
    background: #fff !important;
}

.theme-photo-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px 14px 13px;
    background: linear-gradient(transparent, rgba(3, 35, 60, .94));
    color: #fff;
    font-weight: 900;
    font-size: 16px;
    line-height: 1.18;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}

@media(max-width:900px) {
    .polegrid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important
    }
}

@media(max-width:620px) {
    .polegrid {
        grid-template-columns: 1fr !important
    }

    .theme-photo-only {
        min-height: 190px !important
    }

    .theme-photo-only img {
        height: 190px !important
    }
}


/* ===== STYLE 26 id= ===== */

/* V99 — page publique : 12 thèmes, uniquement photo + intitulé */
.theme-photo-only {
    position: relative !important;
    display: block !important;
    overflow: hidden !important;
    padding: 0 !important;
    min-height: 220px !important;
    border-radius: 18px !important;
    background: #fff !important;
    border: 1px solid #d7e0e7 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08) !important;
    text-decoration: none !important;
}

.theme-photo-only img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    display: block !important;
    filter: none !important;
    opacity: 1 !important;
}

.theme-photo-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px 14px 13px;
    background: linear-gradient(transparent, rgba(3, 35, 60, .94));
    color: #fff !important;
    font-weight: 900;
    font-size: 16px;
    line-height: 1.18;
}

@media(max-width:620px) {
    .theme-photo-only {
        min-height: 190px !important
    }

    .theme-photo-only img {
        height: 190px !important
    }
}


/* ===== STYLE 27 id= ===== */

.polegrid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important
}

.theme-photo-only {
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
    padding: 0 !important;
    min-height: 220px !important;
    border-radius: 16px !important;
    background: #fff !important;
    border: 1px solid rgba(255, 255, 255, .25) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .14) !important;
    text-decoration: none !important
}

.theme-photo-only img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    display: block !important;
    filter: none !important;
    opacity: 1 !important
}

.theme-photo-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 14px 14px;
    background: linear-gradient(transparent, rgba(3, 35, 60, .96));
    color: #fff !important;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.15
}

@media(max-width:1000px) {
    .polegrid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important
    }
}

@media(max-width:620px) {
    .polegrid {
        grid-template-columns: 1fr !important
    }

    .theme-photo-only,
    .theme-photo-only img {
        height: 200px !important;
        min-height: 200px !important
    }
}


/* ===== STYLE 28 id= ===== */

/* V104 — seule modification : centrage des titres, photos V102 conservées à l'identique */
.theme-photo-caption {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    box-sizing: border-box !important;
    min-height: 82px !important;
    padding: 40px 16px 14px !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
    line-height: 1.18 !important;
}

.theme-photo-caption,
.theme-photo-caption * {
    text-align: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}


/* ===== STYLE 29 id= ===== */

/* V106 — fonctionnement local + OVH */
#v106-local-bureau {
    background: #f5f8fb;
    min-height: 100vh
}

.v106-theme-page {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 16px;
    color: #062b4b
}

.v106-theme-page.active {
    display: block
}

.v106-theme-page .project-card img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    background: #fff !important
}

#v106-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, .9);
    overflow: auto;
    padding: 12px
}

#v106-modal.open {
    display: block
}

.v106-modal-inner {
    max-width: 1500px;
    margin: auto;
    background: #fff;
    border-radius: 14px;
    padding: 10px
}

.v106-close {
    position: sticky;
    top: 4px;
    float: right;
    border: 0;
    border-radius: 999px;
    background: #ffd14d;
    color: #062b4b;
    font-weight: 900;
    padding: 10px 14px;
    z-index: 2
}

#v106-view img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: #fff
}


/* ===== STYLE 30 id=practical-guides-v36 ===== */

.practical-now {
    margin: 18px 0 24px
}

.practical-now h2 {
    margin: 0 0 6px;
    color: #0c2d49;
    font-size: 1.45rem
}

.practical-now>.practical-lead {
    margin: 0 0 14px;
    color: #5a6875;
    line-height: 1.5
}

.practical-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px
}

.practical-card {
    background: #fff;
    border: 1px solid #dfe6ec;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 7px 20px rgba(14, 42, 66, .05)
}

.practical-card .pi {
    font-size: 1.65rem;
    display: block;
    margin-bottom: 6px
}

.practical-card h3 {
    margin: 0 0 6px;
    color: #0c2d49;
    font-size: 1.02rem
}

.practical-card p {
    margin: 0 0 10px;
    color: #5a6875;
    line-height: 1.42;
    font-size: .94rem
}

.practical-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px
}

.practical-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 11px;
    border-radius: 999px;
    background: #0d4f78;
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
    font-size: .87rem;
    border: 0
}

.practical-btn.alt {
    background: #fff;
    color: #0d4f78 !important;
    border: 1px solid #b8ccd9
}

.practical-note {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff7db;
    border-left: 4px solid #ffc928;
    color: #344957;
    font-size: .9rem;
    line-height: 1.45
}

.contact-mini {
    font-weight: 700;
    color: #233746
}

.health-strip {
    margin: 16px 0;
    padding: 16px;
    border-radius: 18px;
    background: #eef7fb;
    border: 1px solid #cfe3ec
}

.health-strip h3 {
    margin: 0 0 10px;
    color: #0c2d49
}

.health-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.health-row a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 11px;
    border-radius: 999px;
    background: white;
    border: 1px solid #bfd3df;
    text-decoration: none;
    color: #0d4f78;
    font-weight: 800;
    font-size: .88rem
}

.health-row a.emerg {
    background: #9e2323;
    color: #fff;
    border-color: #9e2323
}

@media(max-width:760px) {
    .practical-grid {
        grid-template-columns: 1fr
    }

    .practical-actions {
        display: grid;
        grid-template-columns: 1fr
    }

    .practical-btn {
        width: 100%
    }

    .health-row {
        display: grid;
        grid-template-columns: 1fr
    }

    .health-row a {
        justify-content: center
    }
}


/* ===== STYLE 31 id= ===== */

#page-seniors .senior-intro {
    max-width: 780px;
    margin: 0 0 22px;
    color: #526274;
    font-size: 1.04rem;
    line-height: 1.55
}

#page-seniors .senior-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 22px 0
}

#page-seniors .senior-card {
    background: #fff;
    border: 1px solid #dfe6ec;
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(14, 42, 66, .06)
}

#page-seniors .senior-card h3 {
    margin: 0 0 8px;
    color: #0c2d49;
    font-size: 1.14rem;
    line-height: 1.25
}

#page-seniors .senior-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px
}

#page-seniors .senior-card p {
    margin: 0 0 12px;
    color: #5a6875;
    line-height: 1.5
}

#page-seniors .senior-card ul {
    margin: 0 0 14px;
    padding-left: 20px;
    color: #253746;
    line-height: 1.55
}

#page-seniors .senior-card li+li {
    margin-top: 5px
}

#page-seniors .senior-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

#page-seniors .senior-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 13px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    font-size: .92rem;
    background: #0d4f78;
    color: white;
    border: 0
}

#page-seniors .senior-btn.alt {
    background: #fff;
    color: #0d4f78;
    border: 1px solid #b8ccd9
}

#page-seniors .senior-callout {
    background: #fff7db;
    border-left: 5px solid #ffc928;
    border-radius: 16px;
    padding: 16px 18px;
    margin: 18px 0;
    color: #243746;
    line-height: 1.5
}

#page-seniors .senior-callout strong {
    color: #0c2d49
}

#page-seniors .senior-urgent {
    background: #fff0f0;
    border: 1px solid #f0c4c4;
    border-radius: 18px;
    padding: 16px 18px;
    margin-top: 20px
}

#page-seniors .senior-urgent h3 {
    margin: 0 0 8px;
    color: #8d1e1e
}

#page-seniors .senior-urgent p {
    margin: 0;
    color: #4b3a3a;
    line-height: 1.5
}

@media(max-width:760px) {
    #page-seniors .senior-grid {
        grid-template-columns: 1fr
    }

    #page-seniors .senior-card {
        padding: 18px
    }

    #page-seniors .senior-actions {
        display: grid;
        grid-template-columns: 1fr
    }

    .senior-btn {
        width: 100%
    }
}


/* ===== STYLE 32 id= ===== */

#page-charte-adherent .charte-box {
    max-width: 920px;
    margin: 0 auto;
    padding: 28px 24px 70px;
    background: #fff;
    color: #17233b
}

#page-charte-adherent .charte-head {
    text-align: center;
    border-bottom: 3px solid #173b68;
    padding-bottom: 14px;
    margin-bottom: 25px
}

#page-charte-adherent h1 {
    color: #173b68;
    font-size: 28px
}

#page-charte-adherent h2 {
    color: #173b68;
    font-size: 19px;
    margin-top: 26px
}

#page-charte-adherent p,
#page-charte-adherent li {
    font-size: 15px;
    line-height: 1.55
}

#page-charte-adherent .charte-project {
    font-weight: 800;
    color: #8a5a00;
    background: #fff6dc;
    border: 1px solid #efd48a;
    padding: 12px;
    border-radius: 10px
}

#page-charte-adherent .charte-form {
    margin-top: 34px;
    border-top: 3px solid #173b68;
    padding-top: 24px
}

#page-charte-adherent .charte-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

#page-charte-adherent label {
    font-weight: 700;
    font-size: 14px
}

#page-charte-adherent input[type=text],
#page-charte-adherent input[type=date] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #8996a8;
    border-radius: 6px;
    font-size: 16px;
    margin-top: 6px
}

#page-charte-adherent .charte-agree {
    display: block;
    margin: 20px 0;
    padding: 12px 14px;
    border: 1px solid #d9e1e7;
    border-radius: 9px;
    background: #f7f9fa;
    color: #40566a;
    font-weight: 600
}

#page-charte-adherent .charte-agree input {
    accent-color: #6f8798;
    margin-right: 7px
}

#page-charte-adherent .charte-agree::after {
    content: "  • obligatoire";
    font-size: 12px;
    font-weight: 500;
    color: #7a8994
}

#page-charte-adherent .charte-sig {
    border: 2px solid #7e8998;
    border-radius: 8px;
    background: #fff
}

#page-charte-adherent .charte-sig-title {
    padding: 9px 12px;
    background: #f3f5f7;
    font-weight: 700
}

#page-charte-adherent .charte-canvasbox {
    height: 220px;
    touch-action: none
}

#charte-sig-canvas {
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none
}

#page-charte-adherent .charte-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px
}

#page-charte-adherent .charte-status {
    font-weight: 700;
    margin-top: 14px
}

#page-charte-adherent .charte-next {
    display: none;
    margin-top: 18px
}

@media(max-width:650px) {
    #page-charte-adherent .charte-grid {
        grid-template-columns: 1fr
    }
}

/* V72 — RGPD / Agenda / droit à l’image */
.cc-v72 {
    max-width: 1180px;
    margin: 0 auto;
    padding: 70px 24px
}

.cc-v72 h2 {
    margin-bottom: 14px
}

.cc-v72-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px
}

.cc-v72-card {
    background: #f4f7f9;
    border: 1px solid #dbe5ec;
    border-radius: 22px;
    padding: 26px
}

.cc-v72-card h3 {
    margin: 0 0 10px;
    color: #062b4b;
    font-size: 24px
}

.cc-v72-card p {
    margin: 7px 0;
    color: #4f6678
}

.cc-v72-note {
    font-size: 13px;
    color: #667b8c
}

.cc-v72-agenda {
    display: grid;
    gap: 12px;
    margin-top: 18px
}

.cc-v72-event {
    display: flex;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid #dbe5ec;
    border-radius: 16px;
    padding: 16px
}

.cc-v72-date {
    min-width: 72px;
    text-align: center;
    font-weight: 900;
    color: #0b74b9
}

.cc-v72-footerlinks {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px
}

.cc-v72-footerlinks a {
    text-decoration: underline;
    font-weight: 700;
    color: #062b4b
}

.cc-v72-consent {
    margin-top: 16px;
    padding: 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px dashed #9eb2c2
}

.cc-v72-consent label {
    display: block;
    margin: 8px 0
}

.cc-v72-pending {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    background: #fff3cd;
    color: #725b00;
    padding: 5px 9px;
    border-radius: 999px;
    margin-bottom: 8px
}

@media(max-width:760px) {
    .cc-v72-grid {
        grid-template-columns: 1fr
    }

    .cc-v72 {
        padding: 48px 18px
    }
}


/* ===== STYLE 33 id=v76-functional-style ===== */

.cc-v76-click {
    width: 100%;
    font: inherit;
    text-align: left;
    cursor: pointer;
    color: inherit
}

.cc-v76-click:hover {
    border-color: #0b74b9
}

.cc-v76-arrow {
    margin-left: auto;
    font-size: 28px;
    color: #0b74b9
}

.cc-real-open {
    cursor: pointer;
    font: inherit
}

.cc-real-open:hover {
    border-color: #0b74b9;
    color: #062b4b
}

.cc-v76-box {
    margin-top: 28px;
    background: #fff;
    border: 1px solid #dbe6ed;
    border-radius: 22px;
    padding: 24px
}

.cc-v76-box h2 {
    font-size: 26px;
    margin-top: 0
}

.cc-v76-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px
}

.cc-v76-placeholder {
    padding: 18px;
    border-radius: 14px;
    background: #f4f7f9;
    color: #526b7d
}

.cc-v76-admin {
    margin-top: 18px;
    font-size: 14px;
    color: #667b8c
}


/* ===== STYLE 34 id=v75-poles-style ===== */

.cc-pole-media-intro {
    margin: 18px 0 24px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #eef6fb;
    border: 1px solid #cfe3ef;
    color: #40566a
}

.cc-pole-media-intro strong {
    color: #062b4b
}

.cc-info-page .content-tools {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px
}

.cc-info-page .content-tool {
    background: #fff;
    border: 1px solid #dbe5ec;
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 13px;
    font-weight: 700;
    color: #40566a
}


/* ============================================================
   V110 — PHOTOS CORRIGÉES / SOURCES LOCALES
   Remplacements validés dans le site.
   ============================================================ */

/* Accueil : l'image V110 contient déjà le titre et le texte. */
.hero {
    background-image: none !important;
    background: #062b4b !important;
    min-height: 0 !important;
    padding: 0 !important;
}

.hero-replacement-v110 {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: #062b4b;
}

.hero .heroin {
    padding: 26px 32px 34px !important;
    min-height: 0 !important;
}

.hero .eyebrow,
.hero .heroin>h1,
.hero .heroin>p {
    display: none !important;
}

.hero .actions {
    margin-top: 0 !important;
}

/* Les 4 photos "La Crau en mouvement". */
.m2 {
    background-image: url('../img/fontaine-floute.png') !important;
    background-position: center !important;
    background-size: cover !important;
}

.m3 {
    background-image: url('../img/marche-floute.png') !important;
    background-position: center !important;
    background-size: cover !important;
}

.m4 {
    background-image: url('../img/ville-nature.png') !important;
    background-position: center !important;
    background-size: cover !important;
}

/* 12 thématiques : les visuels sensibles remplacés et stockés localement. */
.theme-photo-only img[alt="Finances et budget"] {
    content: url('../img/finances-budget.png') !important;
}

.theme-photo-only img[alt="Sécurité et tranquillité publiques"] {
    content: url('../img/securite.png') !important;
}

.theme-photo-only img[alt="Développement économique et commerce"] {
    content: url('../img/marche-floute.png') !important;
}

.theme-photo-only img[alt="Santé"] {
    content: url('../img/sante.png') !important;
}

.theme-photo-only img[alt="Nouvelles technologies"] {
    content: url('../img/nouvelles-technologies.png') !important;
}

/* Neutralise les anciennes images de fond des cartes : les <img> V110 font foi. */
.theme-photo-only {
    background-image: none !important;
}

/* Affichage mobile de la nouvelle image d'accueil sans recadrage destructif. */
@media(max-width:700px) {
    .hero-replacement-v110 {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .hero .heroin {
        padding: 18px 18px 28px !important;
    }
}