:root {
    --blue-mdm: #007fb1;
    --blue-mdm-ee: #007fb1ee;
    --blue-mdm-rgb: 0 127 177;
    --blue-mdm-hover: #0078a6;
    --blue-mdm-dark: #004c68;
    --blue-mdm-light: #0199d5;
    --green-mdm: #7fcf5a;
    --green-mdm-hover: #6ab14a;
    --gray-mdm: #bbbaba;
    --gray-dark-mdm: #4d4d4d;
    --bs-dropdown-link-active-bg: #116e92;
    --agenda-day-width-percent: calc(100% / 7);
    --bs-nav-pills-link-active-bg: var(--blue-mdm);
    --bs-nav-link-color: white;
}

/*#eefce7*/
.bg-blue-mdm {
    background: var(--blue-mdm);
}

[data-bs-theme="etrepaye"] {
    --base02: #3e4451;
    --base03: #868e96;
    --base04: #868e96;
    --base05: #abb2bf;
    --base06: #b6bdca;
    --base07: #feb272;
    --base08: #6edff6;
    --base09: #feb272;
    --base0A: #ffe69c;
    --base0B: #79dfc1;
    --base0C: #79dfc1;
    --base0D: #6ea8fe;
    --base0E: #c29ffa;
    --base0F: #ea868f
}

[data-bs-theme="etrepaye"] {
    --docsearch-text-color: #f5f6f7;
    --docsearch-container-background: rgba(9, 10, 17, .8);
    --docsearch-modal-background: #15172a;
    --docsearch-modal-shadow: inset 1px 1px 0 0 #2c2e40, 0 3px 8px 0 #000309;
    --docsearch-searchbox-background: #090a11;
    --docsearch-searchbox-focus-background: #000;
    --docsearch-hit-color: #bec3c9;
    --docsearch-hit-shadow: none;
    --docsearch-hit-background: #090a11;
    --docsearch-key-gradient: linear-gradient(-26.5deg, #565872, #31355b);
    --docsearch-key-shadow: inset 0 -2px 0 0 #282d55, inset 0 0 1px 1px #51577d, 0 2px 2px 0 rgba(3, 4, 9, .3);
    --docsearch-footer-background: #1e2136;
    --docsearch-footer-shadow: inset 0 1px 0 0 rgba(73, 76, 106, .5), 0 -4px 8px 0 rgba(0, 0, 0, .2);
    --docsearch-muted-color: #7f8497;
}

[data-bs-theme="etrepaye"] {
    --bd-violet: #9461fb;
    --bd-violet-bg: #712cf9;
    --bd-toc-color: var(--bs-emphasis-color);
    --bd-sidebar-link-bg: rgba(84, 33, 187, .5);
    --bd-callout-link: 110, 168, 254;
    --bd-callout-code-color: #e685b5;
    --bd-pre-bg: #1b1f22;
}

[data-bs-theme="etrepaye"] {
    color-scheme: dark;
    --bs-body-color: #dee2e6;
    --bs-body-color-rgb: 222, 226, 230;
    --bs-body-bg: var(--blue-mdm);
    --bs-body-bg-rgb: 33, 37, 41;
    --bs-emphasis-color: #fff;
    --bs-emphasis-color-rgb: 255, 255, 255;
    --bs-secondary-color: rgba(222, 226, 230, 0.75);
    --bs-secondary-color-rgb: 222, 226, 230;
    --bs-secondary-bg: #343a40;
    --bs-secondary-bg-rgb: 52, 58, 64;
    --bs-tertiary-color: rgba(222, 226, 230, 0.5);
    --bs-tertiary-color-rgb: 222, 226, 230;
    --bs-tertiary-bg: var(--blue-mdm-dark);
    --bs-tertiary-bg-rgb: 43, 48, 53;
    --bs-primary-text-emphasis: #6ea8fe;
    --bs-secondary-text-emphasis: #a7acb1;
    --bs-success-text-emphasis: #75b798;
    --bs-info-text-emphasis: #6edff6;
    --bs-warning-text-emphasis: #ffda6a;
    --bs-danger-text-emphasis: #ea868f;
    --bs-light-text-emphasis: #f8f9fa;
    --bs-dark-text-emphasis: #dee2e6;
    --bs-primary-bg-subtle: #031633;
    --bs-secondary-bg-subtle: #161719;
    --bs-success-bg-subtle: #051b11;
    --bs-info-bg-subtle: #032830;
    --bs-warning-bg-subtle: #332701;
    --bs-danger-bg-subtle: #2c0b0e;
    --bs-light-bg-subtle: #343a40;
    --bs-dark-bg-subtle: #1a1d20;
    --bs-primary-border-subtle: #084298;
    --bs-secondary-border-subtle: #41464b;
    --bs-success-border-subtle: #0f5132;
    --bs-info-border-subtle: #087990;
    --bs-warning-border-subtle: #997404;
    --bs-danger-border-subtle: #842029;
    --bs-light-border-subtle: #495057;
    --bs-dark-border-subtle: #343a40;
    --bs-heading-color: inherit;
    --bs-link-color: #6ea8fe;
    --bs-link-hover-color: #8bb9fe;
    --bs-link-color-rgb: 110, 168, 254;
    --bs-link-hover-color-rgb: 139, 185, 254;
    --bs-code-color: #e685b5;
    --bs-highlight-color: #dee2e6;
    --bs-highlight-bg: #664d03;
    --bs-border-color: #495057;
    --bs-border-color-translucent: rgba(255, 255, 255, 0.15);
    --bs-form-valid-color: #75b798;
    --bs-form-valid-border-color: #75b798;
    --bs-form-invalid-color: #ea868f;
    --bs-form-invalid-border-color: #ea868f;
    --bs-dark-rgb: 21, 127, 167;
}

a {
    color: var(--green-mdm-hover);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.form-control::placeholder {
    color: gray;
}

.btn.btn-default {
    background-color: #f2f2f2;
    border-color: #cacbcc;
}

.btn.btn-gradient {
    color: white;
    background: linear-gradient(60deg, var(--green-mdm), var(--blue-mdm)) padding-box, linear-gradient(45deg, #71b850, #006d98) border-box;
    border: 2px solid transparent;
}

.btn.btn-success-mdm {
    color: #fff !important;
    background-color: var(--green-mdm);
    border-color: var(--green-mdm);
}

.btn.btn-success-mdm:hover,
.btn.btn-success-mdm:active {
    background-color: var(--green-mdm-hover);
}

.btn.btn-primary-mdm {
    color: #fff !important;
    background-color: var(--blue-mdm);
    border-color: var(--blue-mdm);
}

.btn.btn-primary-mdm:hover,
.btn.btn-primary-mdm:active {
    background-color: var(--blue-mdm-light);
}

.btn-outline-primary-mdm {
    --bs-btn-color: var(--blue-mdm) !important;
    --bs-btn-border-color: var(--blue-mdm) !important;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--blue-mdm);
    --bs-btn-hover-border-color: var(--blue-mdm) !important;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--blue-mdm);
    --bs-btn-active-border-color: var(--blue-mdm);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--blue-mdm);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--blue-mdm);
    --bs-gradient: none;
}

footer > .d-flex > .col {
    flex-direction: column;
    display: flex;
}

footer > .d-flex > .col > a {
    color: white;
    text-decoration: none;
}

.footer-gradient {
    height: 80px;
    background: linear-gradient(to top, var(--blue-mdm) 20%, transparent);
}

#sn-list {
    flex-wrap: wrap;
    list-style: none;
    display: flex;
    justify-content: space-around;
    padding: 0 3em;
}

#sn-list li {
    flex: 0 1 25%;
    margin-bottom: .5em;
    text-align: center;
}

#sn-list a > img {
    max-height: 20px;
}

.hide {
    display: none !important;
}

.warning-login .bi {
    vertical-align: bottom;
}

.text-primary-mdm {
    color: var(--blue-mdm);
}

.text-success-mdm {
    color: var(--green-mdm);
}

.bg-primary-mdm {
    background-color: var(--blue-mdm);
}

.bg-success-mdm {
    background-color: var(--green-mdm);
}

.border-primary-mdm {
    border-color: var(--blue-mdm) !important;
}

.border-success-mdm {
    border-color: var(--green-mdm) !important;
}

.fs-07 {
    font-size: 0.7em !important;
}

.fs-08 {
    font-size: 0.8em !important;
}

.fs-09 {
    font-size: 0.9em !important;
}

/**
 * HEADER
 */
@media (min-width: 992px) {
    #container-show-login {
        min-width: 300px;
    }
}

#div-show-login {
    width: 300px;
    right: 0;
    left: auto;
}

.dropdown-item:hover {
    border-radius: 0.3em;
}

.dropdown-title {
    font-weight: bold;
    padding: 0.4em 1em;
    white-space: nowrap;
}

.navbar-nav .dropdown-item {
    color: white;
    min-width: 200px;
}

nav.navbar.bg-body-tertiary {
    background-color: white !important;
}

@media (min-width: 768px) {
    .navbar-nav > .nav-item.dropdown .dropdown-menu div + div {
        border-left: 1px solid #51a0b1;
        padding-left: 3px;
    }
}

@media (max-width: 767px) {
    .navbar-nav > .nav-item.dropdown .dropdown-menu div + div {
        border-top: 1px solid #51a0b1;
        padding-top: 3px;
    }

    .navbar-nav > .nav-item {
        width: 100%;
    }
}

.list-group-item > a {
    text-decoration: none;
    color: var(--blue-mdm);
}

.list-group-item:hover,
.list-group-item.active {
    background-color: var(--blue-mdm);
    border-color: transparent;
}

.list-group-item:hover > a,
.list-group-item.active > a {
    color: white;
}

.list-group-item.active > a:hover {
    text-decoration: underline;
}

.list-group-item.nav-header {
    text-align: center;
    font-size: 1.2em;
    background-color: var(--green-mdm-hover);
    color: white;
}

.list-group-item.nav-header .bi {
    vertical-align: bottom;
}

.list-group-item.disabled > a,
.list-group-item.disabled > a .badge {
    color: gray;
}


.lang-selected {
    padding: 2px;
    border: 1px solid var(--green-mdm);
    border-radius: 4px;
    align-content: center;
    display: flex;
}

#navbarToggleMenu {
    box-shadow: black 0 0 7px;
}

#div-langs img {
    max-height: 16px;
}

span[class^="op-p"]::after {
    content: "\002b";
}

span[class^="op-m"]::after {
    content: "\002d";
}

span[class^="op-d"]::after {
    content: "\002f";
}

span[class^="op-x"]::after {
    content: "\00d7";
}

h2, .h2 {
    color: var(--blue-mdm);
    font-weight: bold;
    margin-top: 0.5em;
}


#cat-blocks {
    justify-content: space-around;
    flex-wrap: wrap;
}

.cat-block {
    flex-direction: column;
    display: flex;
    align-items: center;
    background-color: var(--blue-mdm);
    padding: 2em;
    color: white;
    text-align: center;
    background-size: cover;
    background-position: center;
    justify-content: center;
    min-height: 200px;
}

@media (min-width: 768px) {
    .cat-block {
        width: 40%;
    }
}

@media (max-width: 992px) {
    .cat-block {
        width: 100%;
    }

    .container {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .cat-block {
        width: 100%;
    }

    .w-content.d-flex {
        flex-direction: column;
    }
}

.cat-block > svg {
    width: 100px;
}

.cat-block a {
    color: white;
    text-decoration: none;
}

.cat-block a:hover {
    text-decoration: underline;
}

.cat-block > .cat-name {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.4em;
}

div.exclamation {
    background-color: #ddf6ff;
    padding: 1em;
    color: var(--blue-mdm-dark);
    border-radius: 5px;
    overflow: auto;
    margin-top: 1em;
}

div.alert {
    margin-top: 1em;
    overflow: auto;
}
div.alert > div.h2 {
    margin-top: 0;
}

.prev > a:hover,
.next > a:hover {
    text-decoration: underline;
}

/* 2026-11 : ancien bandeau (.page-header, .page-header-type) remplacé par .page-hero (voir fin de fichier) */

.cat-rubriques {
    background-color: #eefce7;
    border-radius: 0.5em;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.cat-rubriques > div > a {
    display:flex;
    justify-content:space-between;
    text-decoration: none;
    color: #2f2f2f;
    border-radius: 6px;
    padding: 0 0.4em;
    border: 1px solid transparent;
}

.cat-rubriques > div > a:hover,
.cat-rubriques > div > a.active {
    border: 1px solid var(--green-mdm-hover);
    background-color: white;
}

#alphabet_lexique {
    justify-content: center;
}

.lexique-term {
    text-decoration: underline dashed #0c76a4;
    color: inherit;
    cursor: help;
}

.tool-kit-block {
    border: 1px solid var(--blue-mdm-light);
    border-radius: 6px;
    flex-basis: 400px;
    justify-content: space-between;
}

.tool-kit-block > img {
    height: 200px;
    max-width: fit-content;
    align-self: center;
}


.container {
    flex-wrap: wrap;
}

.div-w-title {
    border-left: 2px solid var(--blue-mdm);
}

.w-title {
    background-color: var(--blue-mdm);
    color: white;
    width: fit-content;
    min-width: 200px;
    text-transform: uppercase;
    font-weight: bold;
    padding: 0.3em 1em;
}

.w-img {
    height: 10em;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    position: relative;
}

.w-img > img {
    height: 80px;
    position: absolute;
    right: 5px;
    top: 5px;
}

.w-img-tag-article{
    position: absolute;
    bottom: 0;

    width: 100%;
    padding: 0.2em 1em;
    background: linear-gradient(90deg, var(--green-mdm) 40%, rgba(255, 255, 255, 0));
    color: white;
    align-self: flex-end;
    font-size: 0.9rem;
}



.home-article-block-body-title{
    font-weight: bold;
}

.home-article-block-body-infos{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;

    color: #757474;
    font-size: 0.9rem;
}

.home-article-block-body-infos-img{
    max-height: 50px;
    max-width: 50px;
    margin-right: 0.5rem;
    border-radius: 10px;
}

.home-article-block {
    flex-direction: column;
    flex: 1 1 32% !important;
    border: 1px solid var(--blue-mdm-light);
    border-radius: 5px;
}

@media(min-width: 768px) {
    .home-article-block {
        max-width: 33%;
    }
}

.home-podcast-block a,
.home-article-block a {
    color: initial;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.home-podcast-block a {
    text-transform: uppercase;
    font-size: 1.6em;
}

.home-podcast-block {
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.podcastItemImg {
    height: 15em;
    padding: 1em;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.5em;
    line-height: 1.5em;
    text-shadow: #093a4b 2px 2px 2px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 15px;
    align-content: unset;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.podcastProviders {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.podcastProviders > a {
    background: white;
    padding: 0.3em;
    border-radius: 10px;
    display: flex;
    box-shadow: black 0 0 5px;
    margin: 0.3em;
}

.podcastProviders > a:hover {
    transform: scale(1.2);
    transition: all .2s;
}

.show-slider-video {
    cursor: pointer;
    box-shadow: gray 0 0 3px;
}

#video-current {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    color: white;
    background-color: var(--blue-mdm-ee);
    padding: 1em;
    border-radius: 1em;
    box-shadow: black 0 0 50px;
}


@keyframes loopOn {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

#partenaires-block > div {
    animation: loopOn 25s infinite linear;
}

#partenaires-block:hover > div {
    animation-play-state: paused;
}

#partenaires-block > div img {
    max-height: 100px;
    max-width: 200px;
    object-fit: contain;
}

#partenaires-block .logos,
#partenaires-block .logos-2 {
    align-items: center;
}

.form-quick-search {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.nav.nav-tabs > .nav-item > a.nav-link {
    color: var(--blue-mdm-dark);
}

article img[alt] {
    color: darkgray;
    font-style: italic;
    font-size: 1.5em;
}

article ul.thumbnails {
    list-style: none;
    padding: 0;
}

article ul.thumbnails .thumbnail {
    padding: 1em;
    border-radius: 10px;
    box-shadow:gray 0 0 5px;
}

article ul.thumbnails .thumbnail img {
    border-radius: 10px;
    margin-bottom:1em;
}


/** Podcasts **/

.podcastListItem > a:hover {
    text-decoration: none;
}

.podcastItemImg {
    height: 15em;
    padding: 1em;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.5em;
    line-height: 1.5em;
    text-shadow: #093a4b 2px 2px 2px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 15px;
    align-content: unset;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.podcastItemImg:hover {
    transform: scale(1.02);
    transition: all .2s;
}

.podcastProviders {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.podcastProviders > a {
    background: white;
    padding: 0.3em;
    border-radius: 10px;
    display: flex;
    box-shadow: black 0 0 5px;
    margin: 0.3em;
}

.podcastProviders > a:hover {
    transform: scale(1.2);
    transition: all .2s;
}

h3 {
    color: var(--blue-mdm);
    font-weight: bold;
    font-size: 1.5em;
}

#banner-contact {
    display: flex;
    background-image: url('/img/bg-vague.png');
    background-size: cover;
    padding: 0.5em 1em 0.7em;
    background-repeat: no-repeat;
    background-position-x: center;
    border-radius: 0.5em;
    justify-content: space-evenly;
}

#banner-contact img {
    max-height: 4em;
    float: left;
    margin: 0.2em 1em 0 0;
}

#banner-contact a {
    border-radius: 25px;
    padding: 0.5em 3em;
    text-transform: uppercase;
    font-weight: bold;
}

#banner-contact a:hover {
    text-decoration: none;
}

/** Outil **/
.striped-rows > .row:nth-child(2n+1) {
    background-color: whitesmoke;
    padding: 0.5em 0;
}

#penalites {
    margin: auto;
}

@media (min-width: 1200px) {
    #penalites {
        width: 50%;
    }
}

@media (max-width: 1199px) {
    #penalites {
        width: 80%;
    }
}

/** Agenda **/
.day {
    color: var(--blue-mdm);
    box-shadow: -1px -1px var(--blue-mdm), inset -1px -1px 0 0 var(--blue-mdm);
    position: relative;
}

.dayd + .dayd {
    border-left: 1px solid white;
}

.day-num {
    align-self: end;
    justify-self: end;
    margin-right: 5px;
}

.dayd {
    width: -moz-available;
    width: -webkit-fill-available;
    text-align: center;
}

.event {
    border-radius: 3px;
    padding: 2px 5px;
    color: white;
    margin-right: 10%;
    cursor: pointer;
    height: fit-content;
}

#month-select .dayd {
    text-transform: uppercase;
}

#month-select .dayd a {
    text-decoration: none;
    color: var(--blue-mdm);
    align-self: center;
}

#month-select .dayd.current-month a {
    font-size: 1.2em;
    font-weight: bold;
}

@media (min-width: 798px) {

    .week,
    .week-days {
        display: flex;
        background-color: whitesmoke;
    }

    .day {
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: 0;
        display: grid;
    }

    .event {
        font-size: 0.9em;
    }

    /* OTHER STYLES */
    .month-days,
    .month-days .we {
        text-transform: uppercase;
    }

    .month-days .dayd.we {
        background-color: var(--blue-mdm);
        color: white;
    }

    .month-days .dayd:not(.we) {
        color: var(--blue-mdm);
        border-bottom: 1px solid white;
    }

    .month .day.we {
        background-color: #e5f8ff;
    }

    .month .day:not(.we) {
        background-color: white;
    }

    .week {
        min-height: 120px;
    }

    .day-num-title {
        display: none;
    }
}

@media (max-width: 797px) {
    .month-days {
        display: none;
    }

    .day:not(.has-events) {
        display: none;
    }

    .day.has-events {
        display: grid;
        margin-bottom: 1em;
        padding: 0.5em;
        border-radius: 6px;
    }

    .event {
        font-size: 1.1em;
    }

    .day-num {
        display: none;
    }

    .day-num-title {
        font-size: 1.4em;
    }
}

.week .day.agenda-offset-start-1 {
    margin-left: calc(var(--agenda-day-width-percent) * 1);
}

.week .day.agenda-offset-start-2 {
    margin-left: calc(var(--agenda-day-width-percent) * 2);
}

.week .day.agenda-offset-start-3 {
    margin-left: calc(var(--agenda-day-width-percent) * 3);
}

.week .day.agenda-offset-start-4 {
    margin-left: calc(var(--agenda-day-width-percent) * 4);
}

.week .day.agenda-offset-start-5 {
    margin-left: calc(var(--agenda-day-width-percent) * 5);
}

.week .day.agenda-offset-start-6 {
    margin-left: calc(var(--agenda-day-width-percent) * 6);
}

.week .day.agenda-offset-end-1 {
    margin-right: calc(var(--agenda-day-width-percent) * 1);
}

.week .day.agenda-offset-end-2 {
    margin-right: calc(var(--agenda-day-width-percent) * 2);
}

.week .day.agenda-offset-end-3 {
    margin-right: calc(var(--agenda-day-width-percent) * 3);
}

.week .day.agenda-offset-end-4 {
    margin-right: calc(var(--agenda-day-width-percent) * 4);
}

.week .day.agenda-offset-end-5 {
    margin-right: calc(var(--agenda-day-width-percent) * 5);
}

.week .day.agenda-offset-end-6 {
    margin-right: calc(var(--agenda-day-width-percent) * 6);
}

.event-langue-icon {
    width: 16px;
    background-color: white;
    padding: 1px;
    border-radius: 2px;
    float: right;
    margin-top: 2px;
    margin-left: 2px;
}

/** Cookie consent **/
/**
    Redéfinir certains styles pour être plus "My DSO" like
 */
/* Bandeau en pleine largeur (au lieu de 1/2 largeur) */
.termsfeed-com---nb-simple {
    max-width: 100% !important;
}

/* Couleur de fond du bandeau en bleu My DSO */
.termsfeed-com---palette-light.termsfeed-com---nb {
    background-color: var(--blue-mdm) !important;
}

/* Couleur du texte en blanc */
.termsfeed-com---palette-light .cc-nb-text,
.termsfeed-com---palette-light .cc-nb-title {
    color: #fff !important;
}

/* Couleur de fond du bouton "J'accepte" et "Je refuse" */
.termsfeed-com---palette-light .cc-nb-okagree,
.termsfeed-com---palette-light .cc-nb-reject,
.termsfeed-com---palette-light .cc-cp-foot-save {
    background-color: var(--green-mdm) !important;
}

/* Couleur de fond + texte du bouton "Changer mes préférences" */
.termsfeed-com---palette-light .cc-nb-changep {
    background-color: #6ba0b1 !important;
    color: #fff !important;
}

/* Bordure du select "Langue" dans les préférences */
.termsfeed-com---palette-light .cc-pc-head-lang select:focus {
    box-shadow: 0 0 0 2px #6ba0b1 !important;
}

.mHover{
    cursor: pointer;
}

.scrollToElement{
    font-size: 0.9rem;
    color: var(--green-mdm-hover);

}

.scrollToElement svg{
    max-width: 16px;
    max-height: 16px;
    color: var(--green-mdm-hover);
}

.scrollToElement:hover{
    text-decoration: underline;
}

/* WARNING LOG IN */
.warning-login{
    position: absolute;
    opacity: 0;
    transition: opacity 2s;
    font-size: 0.8rem;
    padding: 8px 16px;
    background: white;
    box-shadow: 4px 3px 5px #d0d0d0;
    border-radius: 7px;
    color: red;
}

.warning-login.visible{
    opacity: 1;
}

/* FIN WARNING LOG IN */

/* BOOTSTRAP EXTEND */
.ms-60{
    margin-left: 60px;
}

/* FIN BOOSTRAP EXTEND */

@media (max-width: 800px) {
    .scrollToDownload{
        width: 100%;
    }
}

.recent-post-footer{
    padding-left: 8px;
}

.btn-recent-post-footer{
    /*width: 45%;*/
    margin-right: 30px;
    &:hover {
        text-decoration: none !important;
    }
}


.bg-header-news {
    background-color: #f9f9f9;
}

.fs-7 {
    font-size: 0.9rem !important;
}

.fs-8 {
    font-size: 0.8rem !important;
}

.fs-9 {
    font-size: 0.7rem !important;
}

.fs-10 {
    font-size: 0.6rem !important;
}

.fs-11 {
    font-size: 0.5rem !important;
}


/* ==========================================================================
   2026-11 : typographie des contenus (tutoriels, catégories, actualités)
   Limité à <article> pour ne pas modifier l'accueil, les outils et l'admin.
   ========================================================================== */
article {
    line-height: 1.7;
    color: #2b2f33;
}

article p,
article li {
    margin-bottom: 0.8em;
}

article h2,
article h3,
article h4 {
    line-height: 1.3;
    text-wrap: pretty; /* évite un mot seul en dernière ligne, sans couper le titre en deux moitiés comme « balance » */
    scroll-margin-top: 84px; /* les ancres ne passent plus sous la barre de navigation fixe */
}

article h2 {
    display: flow-root; /* le titre (et son filet) s'arrête à côté des encadrés flottants au lieu de passer dessous */
    position: relative;
    color: var(--blue-mdm-dark);
    font-weight: 700;
    font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.85rem);
    margin: 2em 0 0.8em;
    padding-bottom: 0.35em;
    border-bottom: 1px solid #d7e9f1;
}

article h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 56px;
    height: 3px;
    background: var(--green-mdm);
}

article > h2:first-child,
article > .scrollToDownload + h2 {
    margin-top: 0.5em;
}

article h3 {
    color: var(--blue-mdm-dark);
    font-weight: 600;
    font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
    margin: 1.6em 0 0.5em;
    padding-left: 0.65em;
    border-left: 3px solid var(--green-mdm);
}

article h4 {
    color: var(--gray-dark-mdm);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 1.4em 0 0.4em;
}

article h5,
article h6 {
    color: var(--gray-dark-mdm);
    font-weight: 700;
    font-size: 1rem;
    margin: 1.2em 0 0.4em;
}

/* Titres dans les encadrés (alertes, « exclamation ») : pas de grande marge ni de filet */
article .alert h2,
article .exclamation h2,
article div.alert > div.h2 {
    margin-top: 0;
    padding-bottom: 0;
    border-bottom: 0;
    font-size: 1.3rem;
}

article .alert h2::after,
article .exclamation h2::after {
    display: none;
}


/* ==========================================================================
   2026-11 : lot 1 — lisibilité, contraste, cartes d'outils, listes et tableaux
   ========================================================================== */
:root {
    /* Vert assez foncé pour du TEXTE sur fond blanc (contraste ≈ 5:1, norme WCAG AA).
       Le vert clair --green-mdm reste réservé aux fonds, boutons et filets. */
    --green-mdm-text: #3f7d2a;
}

/* Colonne de lecture unique (60rem ≈ 960 px) : texte, titres, schémas et captures partagent le même bord gauche
   et le même bord droit. Avant, les <p> étaient limités mais les textes écrits dans des <div> et les images
   occupaient toute la largeur, et les images centrées l'étaient sur 1 296 px, décalées par rapport au texte.
   Les grandes captures restent lisibles : un clic les ouvre en plein écran (visionneuse existante). */
article:not(.home-article-block):not(.post-card) {
    max-width: 60rem;
}

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

article figure {
    margin: 1.5em 0;
}

/* Texte des tutoriels et actualités légèrement plus grand (17 px) : plus confortable sur une ligne plus large.
   Les cartes de l'accueil (.home-article-block) gardent leur taille. */
article:not(.home-article-block):not(.post-card) {
    font-size: 1.0625rem;
}

/* Chapeau d'introduction : graisse normale, plus lisible que la police fine (300) */
article .lead {
    font-weight: 400;
    color: #3a4046;
    line-height: 1.6;
}

/* Liens dans les contenus et titres verts : vert foncé lisible */
article :is(p, li, td, th, dd, blockquote, h2, h3, h4) a:not(.btn),
.card-title > a,
.scrollToElement,
.scrollToElement svg {
    color: var(--green-mdm-text);
}

/* Pas de soulignement au repos (jugé trop chargé) ; soulignement fin au survol */
article :is(p, li, td, th, dd, blockquote) a:not(.btn) {
    text-decoration: none;
    text-underline-offset: 0.18em;
}

article :is(p, li, td, th, dd, blockquote) a:not(.btn):hover,
article :is(p, li, td, th, dd, blockquote) a:not(.btn):focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

/* Cartes des outils en ligne : toute la carte est cliquable, avec un effet au survol */
.card:has(.card-title > a) {
    transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.card:has(.card-title > a):hover {
    border-color: var(--green-mdm);
    box-shadow: 0 6px 18px rgba(0, 76, 104, 0.12);
    transform: translateY(-2px);
}

.card .card-title > a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.card-title > a:hover {
    text-decoration: none;
}

/* Listes dans les articles */
article ul {
    padding-left: 1.4em;
}

article ul > li::marker {
    color: var(--green-mdm);
}

article ol > li::marker {
    color: var(--blue-mdm);
    font-weight: 700;
}

article li {
    margin-bottom: 0.4em;
    padding-left: 0.2em;
}

article li > ul,
article li > ol {
    margin-top: 0.4em;
}

/* Tableaux dans les articles */
article table {
    width: 100%;
    margin: 1.2em 0 1.6em;
    border-collapse: collapse;
    font-size: 0.95rem;
}

article table th,
article table td {
    padding: 0.55em 0.8em;
    border-bottom: 1px solid #dfe9ee;
    vertical-align: top;
}

/* Bootstrap (.table) peint chaque cellule avec ses variables : on les redéfinit pour que nos couleurs passent */
article table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: transparent;
}

article table > thead > tr > * {
    --bs-table-bg: var(--blue-mdm);
    --bs-table-color: #fff;
    background-color: var(--blue-mdm);
    color: #fff;
    border-color: var(--blue-mdm);
    font-weight: 600;
    text-align: left;
}

/* En-têtes de ligne (première colonne en <th>) */
article table > tbody > tr > th {
    --bs-table-color: var(--blue-mdm-dark);
    color: var(--blue-mdm-dark);
    font-weight: 600;
}

article table tbody tr:nth-child(even) {
    background: #f4f9fb;
}

@media (max-width: 767px) {
    /* Sur mobile, un tableau large défile horizontalement au lieu de déborder de l'écran */
    article table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 2026-11 : un tableau déjà placé dans .table-responsive (Bootstrap) garde son affichage de tableau ;
       c'est le conteneur qui défile. Sinon, les colonnes étaient écrasées et la dernière coupée. */
    article .table-responsive > table {
        display: table;
        overflow-x: visible;
    }
}

/* Citations */
article blockquote {
    margin: 1.4em 0;
    padding: 0.8em 1.2em;
    border-left: 4px solid var(--green-mdm);
    background: #f5fbf1;
    color: #3a4046;
    font-style: italic;
}

article blockquote > :last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   2026-11 (lot 2) : mise en page des tutoriels
   ========================================================================== */

/* Colonne latérale : sommaire + rubriques. Sur mobile et tablette, elle passe au-dessus de l'article. */
.tuto-layout {
    display: flex;
    flex-direction: column;
}

/* Largeur de lecture (~80 caractères par ligne) sur tous les écrans, tablette comprise */
.tuto-main,
.tuto-comments {
    max-width: 48rem;
}

/* Formulaire de commentaire sur une colonne : l'introduction au-dessus du formulaire */
.tuto-comments #comment-form {
    flex-direction: column !important; /* .flex-md-row de Bootstrap est en !important */
    gap: 0.75rem;
}

.tuto-comments #comment-form > * {
    width: 100%;
    max-width: none;
    flex: none;
}

.tuto-comments #comment-form > :first-child {
    padding-bottom: 0 !important;
    text-align: left !important;
}

@media (min-width: 1200px) {
    .tuto-layout {
        display: grid;
        /* texte limité à ~80 caractères par ligne ; l'espace libre se place entre le texte et la colonne */
        grid-template-columns: minmax(0, 48rem) clamp(300px, 25vw, 400px); /* colonne de 300 à 400px selon l'écran */
        justify-content: space-between;
        column-gap: 3rem;
    }

    .tuto-main {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .tuto-aside {
        grid-column: 2;
        grid-row: 1;
    }

    /* Filet de sécurité : tout autre bloc de la grille reste dans la colonne de lecture */
    .tuto-layout > :not(.tuto-aside):not(.tuto-main) {
        grid-column: 1;
    }

    .tuto-aside-inner {
        position: sticky;
        top: 80px; /* sous l'en-tête fixe (64px) */
        padding-top: 1rem;
    }
}

/* Rubriques de la catégorie, repliables */
.cat-rubriques > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    list-style: none;
    cursor: pointer;
    color: var(--green-mdm-text);
    font-weight: 500;
}

.cat-rubriques > summary::-webkit-details-marker {
    display: none;
}

.cat-rubriques > summary::after {
    content: "\f282"; /* bi-chevron-down */
    font-family: "bootstrap-icons";
    font-size: 0.85em;
    transition: transform 0.2s;
}

.cat-rubriques[open] > summary::after {
    transform: rotate(180deg);
}

.cat-rubriques .rub-list {
    margin-top: 0.6rem;
    font-size: 0.92rem;
}

.cat-rubriques .rub-list > a {
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.2em 0.4em;
    line-height: 1.35;
}

/* Grand écran : la liste devient la navigation principale de la colonne (encadré vert titré,
   seule la liste défile, le sélecteur de catégorie et le titre restent visibles) */
@media (min-width: 1200px) {
    .tuto-aside .cat-rubriques {
        margin: 0;
        padding: 0.85rem 0.5rem 0.6rem 0.85rem;
        background: #f3faef;
        border: 1px solid #d9eecf;
        border-radius: 0.75rem;
    }

    .tuto-aside .cat-rubriques > summary {
        margin: 0 0.35rem 0.55rem 0;
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--blue-mdm-dark);
        pointer-events: none; /* toujours dépliée sur grand écran */
    }

    .tuto-aside .cat-rubriques > summary::after {
        display: none;
    }

    .tuto-aside .cat-rubriques .rub-list {
        max-height: calc(100vh - 280px);
        min-height: 12rem;
        margin: 0;
        padding-right: 0.35rem;
        overflow-y: auto;
        font-size: 0.9rem;
        border-left: 2px solid #d9eecf;
        scrollbar-width: thin;
    }

    .tuto-aside .cat-rubriques .rub-list > a {
        display: block;
        margin-left: -2px;
        padding: 0.32rem 0.5rem 0.32rem 0.85rem;
        border: 0;
        border-left: 2px solid transparent;
        border-radius: 0;
        color: #2b2f33;
        background: none;
    }

    .tuto-aside .cat-rubriques .rub-list > a:hover {
        border: 0;
        border-left: 2px solid transparent;
        color: var(--blue-mdm-dark);
        background: #fff;
    }

    .tuto-aside .cat-rubriques .rub-list > a.active {
        border: 0;
        border-left: 2px solid var(--green-mdm);
        color: var(--blue-mdm-dark);
        font-weight: 600;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }
}

.cat-rubriques > summary small {
    font-weight: 400;
    font-size: 0.8rem;
    color: #6c757d;
}

.cat-rubriques .rub-list > a.rub-hub {
    font-weight: 600;
}

/* 2026-11 : sommaire automatique des articles de blog (layout/blocks/articleToc.php).
   Pas de liste de tutos au-dessus : le sommaire est visible aussi sur mobile et les titres passent à la ligne. */
.article-toc .rub-list {
    min-height: 0 !important;
    border-left: 0 !important;
}

.article-toc .rub-toc {
    display: block;
    margin: 0;
    padding: 0;
    background: none;
}

.article-toc .rub-toc a {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    font-size: 0.88rem;
    white-space: normal;
}

/* Sommaire de l'article, sous le tuto en cours */
.rub-toc {
    display: none;
    list-style: none;
    margin: 0 0 0.4rem;
    padding: 0.2rem 0 0.3rem 0.85rem;
    background: #fff;
    border-radius: 0 0 0.4rem 0;
}

@media (min-width: 1200px) {
    .rub-toc {
        display: block;
    }
}

.rub-toc a {
    display: block;
    padding: 0.16rem 0.5rem 0.16rem 0.75rem;
    overflow: hidden;
    border-left: 2px solid #e3e9ec;
    color: #5f6b73;
    font-size: 0.8rem;
    line-height: 1.3;
    white-space: nowrap; /* une ligne par entrée : la liste des tutos reste visible */
    text-overflow: ellipsis;
    text-decoration: none;
}

.rub-toc a:hover {
    color: var(--blue-mdm-dark);
}

.rub-toc a.active {
    border-left-color: var(--blue-mdm);
    color: var(--blue-mdm-dark);
    font-weight: 600;
}

/* Sélecteur de catégorie (grand écran ; le menu du haut suffit sur mobile) */
.cat-switch {
    display: none;
    margin-bottom: 1rem;
}

@media (min-width: 1200px) {
    .cat-switch {
        display: block;
    }
}

.cat-switch label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6c757d;
}

.cat-switch select {
    width: 100%;
    padding: 0.45rem 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--blue-mdm-dark);
    background-color: #fff;
    border: 1px solid #cfdde4;
    border-radius: 0.5rem;
}

/* Précédent / Suivant en bas des tutoriels */
.tuto-prevnext {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 60rem;
    margin: 2.5rem 0;
}

.tuto-prevnext a {
    display: block;
    padding: 0.9rem 1.1rem;
    border: 1px solid #dde7ec;
    border-radius: 0.6rem;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.tuto-prevnext a:hover {
    border-color: var(--green-mdm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tuto-prevnext small {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6c757d;
}

.tuto-prevnext span {
    font-weight: 600;
    line-height: 1.3;
    color: var(--blue-mdm-dark);
}

.tuto-prevnext .next {
    grid-column: 2;
    text-align: right;
}

@media (max-width: 575px) {
    .tuto-prevnext {
        grid-template-columns: 1fr;
    }

    .tuto-prevnext .next {
        grid-column: 1;
    }
}

/* Encart My DSO Manager : même largeur que le texte */
.encart-mdm {
    max-width: 60rem;
}

/* Légendes des schémas */
article figure {
    text-align: center;
}

article figcaption {
    margin-top: 0.6rem;
    font-size: 0.875rem;
    font-style: italic;
    color: #5f6b73;
    text-align: center;
}

/* Outils et téléchargements, juste après l'article */
#tools-and-downloads {
    max-width: 60rem;
    margin: 2.5rem 0 !important;
    padding: 1.5rem 1.75rem;
    background: #f5fbf1;
    border: 1px solid #d9eecf;
    border-radius: 0.75rem;
}

#tools-and-downloads > .head .h2 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--blue-mdm-dark);
}

#tools-and-downloads .section {
    margin: 1.1rem 0 0 !important;
}

#tools-and-downloads .section .head {
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gray-dark-mdm);
}

#tools-and-downloads .section .body > div,
#tools-and-downloads .section li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0 0 !important;
    padding: 0.65rem 0.9rem;
    background: #fff;
    border: 1px solid #e1ecdc;
    border-radius: 0.5rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

#tools-and-downloads .section .body > div:hover,
#tools-and-downloads .section li:hover {
    border-color: var(--green-mdm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

#tools-and-downloads .bi-arrow-right {
    display: none;
}

#tools-and-downloads .section ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.5rem;
    margin: 0;
}

#tools-and-downloads .section ul > li {
    margin: 0 !important;
}

#tools-and-downloads .section ul > :not(li) {
    grid-column: 1 / -1; /* boîte de connexion insérée dans la liste */
}

#tools-and-downloads .section .body > div > a,
#tools-and-downloads .section li > a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--green-mdm-text);
    text-decoration: none;
}

#tools-and-downloads .section li > a::after,
#tools-and-downloads .section .body > div > a::after {
    content: "\f30a"; /* bi-download */
    font-family: "bootstrap-icons";
    font-weight: normal;
}

#tools-and-downloads .section .body > div > a::after {
    content: "\f1c5"; /* bi-box-arrow-up-right */
}

@media (max-width: 575px) {
    #tools-and-downloads {
        padding: 1.1rem 1rem;
    }
}

/* ==========================================================================
   2026-11 : bandeau d'en-tête des pages (layout/common/subheader.php)
   ========================================================================== */
.page-hero {
    margin-bottom: 2rem;
    background: linear-gradient(100deg, #eef6fa 0%, #f3f9ef 100%);
    border-bottom: 1px solid #dfeae4;
}

.page-hero > .container-xl {
    padding-top: 2rem;
    padding-bottom: 2.1rem;
}

.page-hero-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--green-mdm-text);
}

.page-hero-crumb a {
    color: var(--green-mdm-text);
    text-decoration: none;
}

.page-hero-crumb a:hover,
.page-hero-crumb a:focus-visible {
    text-decoration: underline;
}

.page-hero-crumb .sep {
    opacity: 0.6;
}

.page-hero h1 {
    max-width: 48rem;
    margin: 0 0 0.7rem;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--blue-mdm-dark);
    text-wrap: balance; /* titre court sur deux lignes : lignes équilibrées */
}

.page-hero-lead {
    max-width: 46rem;
    font-size: 1.15rem;
    line-height: 1.55;
    color: #4a5560;
}

.page-hero-lead:empty {
    display: none;
}

@media (max-width: 767px) {
    .page-hero > .container-xl {
        padding-top: 1.4rem;
        padding-bottom: 1.5rem;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .page-hero-lead {
        font-size: 1.05rem;
    }
}

/* ==========================================================================
   2026-11 : en-tête du site (layout/common/navbar.php, js/navbar.js)
   ========================================================================== */
#navbar {
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: saturate(1.4) blur(6px);
    backdrop-filter: saturate(1.4) blur(6px);
    border-bottom: 1px solid #e3e9ec;
}

.nv-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    height: 64px;
}

.nv-logo {
    flex: none;
}

.nv-logo img {
    display: block;
    width: auto;
    height: 42px;
}

.nv-i {
    width: 18px;
    height: 18px;
    flex: none;
}

.nv-i-sm {
    width: 16px;
    height: 16px;
}

/* Menu principal */
.nv-nav {
    height: 100%;
}

.nv-menu {
    display: flex;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nv-item {
    display: flex;
}

.nv-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    height: 64px;
    padding: 0 0.6rem;
    border: 0;
    border-bottom: 3px solid transparent;
    background: none;
    font-size: 0.94rem;
    font-weight: 600;
    color: #2b2f33;
    white-space: nowrap;
}

.nv-chev {
    width: 13px;
    height: 13px;
    opacity: 0.45;
    transition: transform 0.2s;
}

.nv-cur .nv-link {
    color: var(--blue-mdm-dark);
    border-bottom-color: #cfe9c2;
}

.nv-open .nv-link,
.nv-link:hover,
.nv-link:focus-visible {
    color: var(--blue-mdm-dark);
    border-bottom-color: var(--green-mdm);
}

.nv-open .nv-chev {
    transform: rotate(180deg);
    opacity: 0.9;
}

/* Panneaux */
.nv-panel {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 1040;
    background: #fff;
    border-top: 1px solid #e3e9ec;
    box-shadow: 0 18px 40px rgba(0, 40, 60, 0.12);
}

.nv-open .nv-panel {
    display: block;
    animation: nvIn 0.16s ease-out;
}

@keyframes nvIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
}

.nv-panel-in {
    padding-top: 1.6rem;
}

.nv-tut,
.nv-tools,
.nv-dl {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.nv-cols {
    flex: 1;
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 1.6rem;
}

.nv-fam + .nv-fam {
    margin-top: 1.3rem;
}

.nv-fam-h {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--blue-mdm-dark);
    text-decoration: none;
}

.nv-fam-h:hover {
    color: var(--blue-mdm);
}

.nv-fam-i {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #eef6fa;
    color: var(--blue-mdm);
}

.nv-lk {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin: 0 -0.5rem;
    padding: 0.32rem 0.5rem;
    border-radius: 6px;
    font-size: 0.93rem;
    color: #2b2f33;
    text-decoration: none;
}

.nv-lk:hover,
.nv-lk:focus-visible {
    background: #f3f8fa;
    color: var(--blue-mdm-dark);
}

.nv-cnt {
    flex: none;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    background: #eef2f4;
    font-size: 0.72rem;
    font-weight: 600;
    color: #5f6b73;
}

.nv-grp {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--green-mdm-text);
}

.nv-grp .nv-i {
    width: 16px;
    height: 16px;
}

.nv-tool {
    display: block;
    margin: 0 -0.6rem;
    padding: 0.42rem 0.6rem;
    border-radius: 8px;
    text-decoration: none;
}

.nv-tool b {
    display: block;
    font-size: 0.93rem;
    font-weight: 600;
    color: #2b2f33;
}

.nv-tool span {
    font-size: 0.82rem;
    color: #5f6b73;
}

.nv-tool:hover,
.nv-tool:focus-visible {
    background: #f3f8fa;
}

.nv-tool:hover b {
    color: var(--blue-mdm-dark);
}

/* Encadré latéral des panneaux : gris-bleu pâle, discret */
.nv-feat {
    flex: none;
    width: 250px;
    padding: 0.95rem 1.1rem;
    border: 1px solid #e1eaef;
    border-radius: 12px;
    background: #f5f8fa;
}

.nv-feat-t {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5f6b73;
}

.nv-feat a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.38rem 0;
    border-bottom: 1px solid #e6edf1;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--blue-mdm-dark);
    text-decoration: none;
}

.nv-feat a:last-child {
    border-bottom: 0;
}

.nv-feat a:hover {
    color: var(--blue-mdm);
}

.nv-feat p {
    margin: 0 0 0.3rem;
    font-size: 0.88rem;
    color: #4a5560;
}

.nv-a {
    flex: none;
    width: 15px;
    height: 15px;
    color: var(--green-mdm-text);
}

.nv-dl-list {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
    align-content: start;
}

.nv-simple {
    display: flex;
    gap: 3rem;
}

.nv-simple > div {
    min-width: 220px;
}

.nv-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.4rem calc(-0.5 * var(--bs-gutter-x, 1.5rem)) 0;
    padding: 0.85rem calc(0.5 * var(--bs-gutter-x, 1.5rem));
    border-top: 1px solid #edf1f3;
    background: #f6f9fa;
    font-size: 0.88rem;
    color: #5f6b73;
}

.nv-foot a {
    font-weight: 600;
    color: var(--blue-mdm-dark);
    text-decoration: none;
}

/* Partie droite : recherche, langue, compte */
.nv-right {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-left: auto;
}

.nv-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 215px;
    padding: 0.32rem 0.75rem 0.32rem 0.45rem;
    border: 1px solid #e1e8ec;
    border-radius: 999px;
    background: #f3f6f8;
}

.nv-search:focus-within {
    border-color: var(--blue-mdm);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 127, 177, 0.12);
}

.nv-search-btn {
    display: grid;
    place-items: center;
    padding: 0.1rem;
    border: 0;
    background: none;
    color: #6c757d;
}

.nv-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: none;
    background: none;
    font-size: 0.88rem;
}

.nv-search input::-webkit-search-cancel-button {
    display: none;
}

.nv-sugg {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1050;
    width: 430px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid #e3e9ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 40, 60, 0.14);
}

.nv-sugg.nv-on {
    display: block;
}

.nv-sg-h {
    padding: 0.5rem 0.6rem 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7a868e;
}

.nv-sg {
    display: block;
    padding: 0.4rem 0.6rem;
    border-radius: 7px;
    font-size: 0.9rem;
    color: #2b2f33;
    text-decoration: none;
}

.nv-sg small {
    display: block;
    font-size: 0.76rem;
    color: #7a868e;
}

.nv-sg:hover,
.nv-sg.nv-sel,
.nv-sg-all.nv-sel {
    background: #f3f8fa;
    color: var(--blue-mdm-dark);
}

.nv-sg mark {
    padding: 0;
    background: #e3f4da;
    color: inherit;
}

.nv-sg-none {
    padding: 0.6rem;
    font-size: 0.88rem;
    color: #5f6b73;
}

.nv-sg-all {
    display: block;
    margin-top: 0.3rem;
    padding: 0.55rem;
    border-top: 1px solid #edf1f3;
    border-radius: 0 0 7px 7px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue-mdm-dark);
    text-decoration: none;
}

.nv-lang {
    display: flex;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #9aa5ad;
}

.nv-lang a {
    color: #6c757d;
    text-decoration: none;
}

.nv-lang a.on {
    color: var(--blue-mdm-dark);
}

#navbar #container-show-login {
    min-width: 0;
}

.nv-login {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.36rem 0.9rem;
    border: 1px solid #cfdde4;
    border-radius: 999px;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--blue-mdm-dark);
    white-space: nowrap;
}

.nv-login:hover,
.nv-login[aria-expanded="true"] {
    border-color: var(--blue-mdm);
}

.nv-burger,
.nv-mobile-close {
    display: none;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--blue-mdm-dark);
}

.nv-burger .nv-i,
.nv-mobile-close .nv-i {
    width: 24px;
    height: 24px;
}

/* Écrans moyens : recherche repliée en loupe */
@media (max-width: 1399.98px) {
    .nv-search {
        width: auto;
        padding: 0.32rem;
        border-color: transparent;
        background: none;
    }

    .nv-search input {
        display: none;
    }

    .nv-search-open .nv-search {
        position: absolute;
        right: calc(0.5 * var(--bs-gutter-x, 1.5rem));
        z-index: 2;
        width: min(420px, 60vw);
        padding: 0.32rem 0.75rem 0.32rem 0.45rem;
        border-color: var(--blue-mdm);
        background: #fff;
    }

    .nv-search-open .nv-search input {
        display: block;
    }
}

/* Petits écrans d'ordinateur : menus resserrés, compte sans libellé */
@media (max-width: 1199.98px) {
    .nv-link {
        padding: 0 0.45rem;
    }

    .nv-link .nv-chev {
        display: none;
    }

    .nv-login span {
        display: none;
    }

    .nv-login {
        padding: 0.42rem;
    }
}

/* Mobile et tablette : menu latéral */
@media (max-width: 991.98px) {
    .nv-nav,
    .nv-search,
    .nv-lang {
        display: none !important;
    }

    .nv-burger,
    .nv-mobile-close {
        display: grid;
    }

    .nv-logo img {
        height: 36px;
    }
}

.nv-mobile {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1060;
    width: min(88vw, 390px);
    overflow-y: auto;
    padding: 0 1rem 1.5rem;
    background: #fff;
    box-shadow: -10px 0 30px rgba(0, 30, 50, 0.18);
    transform: translateX(100%);
    transition: transform 0.25s ease;
}

.nv-mobile.nv-show {
    transform: none;
}

.nv-overlay {
    position: fixed;
    inset: 0;
    z-index: 1055;
    background: rgba(10, 30, 40, 0.35);
    opacity: 0;
    transition: opacity 0.25s;
}

.nv-overlay.nv-show {
    opacity: 1;
}

html.nv-lock,
html.nv-lock body {
    overflow: hidden;
}

.nv-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    font-weight: 700;
    color: var(--blue-mdm-dark);
}

.nv-mobile-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid #dfe7ec;
    border-radius: 10px;
    background: #f5f8fa;
    color: #6c757d;
}

.nv-mobile-search input {
    width: 100%;
    border: 0;
    outline: none;
    background: none;
    font-size: 1rem;
}

.nv-acc {
    border-bottom: 1px solid #edf1f3;
}

.nv-acc > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0.2rem;
    list-style: none;
    font-size: 1.02rem;
    font-weight: 600;
    color: #2b2f33;
    cursor: pointer;
}

.nv-acc > summary::-webkit-details-marker {
    display: none;
}

.nv-acc[open] > summary {
    color: var(--blue-mdm-dark);
}

.nv-acc[open] > summary .nv-chev {
    transform: rotate(180deg);
}

.nv-acc-body {
    padding: 0 0.2rem 1rem;
}

.nv-acc-body .nv-tut,
.nv-acc-body .nv-tools,
.nv-acc-body .nv-dl,
.nv-acc-body .nv-simple {
    flex-direction: column;
    gap: 1rem;
}

.nv-acc-body .nv-cols {
    grid-auto-flow: row;
    gap: 1rem;
}

.nv-acc-body .nv-dl-list {
    grid-template-columns: 1fr;
}

.nv-acc-body .nv-feat {
    width: 100%;
}

.nv-acc-all {
    display: inline-block;
    margin-top: 0.6rem;
    font-weight: 600;
    color: var(--blue-mdm-dark);
    text-decoration: none;
}

.nv-mobile-foot {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
}

.nv-mobile-foot a {
    font-size: 0.92rem;
    font-weight: 600;
    color: #6c757d;
    text-decoration: none;
}

.nv-mobile-foot a.on {
    color: var(--blue-mdm-dark);
}

/* Liens des panneaux : pas de soulignement au survol (fond coloré à la place) */
#navbar a:hover,
#navbar a:focus-visible,
.nv-mobile a:hover,
.nv-mobile a:focus-visible {
    text-decoration: none;
}

/* ==========================================================================
   2026-11 : page d'accueil (index.php, classes .hm-*)
   Ordre : actualités et paroles d'experts, tutoriels, vidéos, outils en ligne,
   téléchargements + lexique, newsletter, partenaires.
   ========================================================================== */
.hm {
    --hm-ink: #1f2b33;
    --hm-muted: #5b6770;
    --hm-line: #e3e9ee;
    --hm-alt: #f5f8fa;
    color: var(--hm-ink);
}

.hm a {
    text-decoration: none;
}

.hm-i {
    width: 1.25rem;
    height: 1.25rem;
    flex: none;
}

.hm-a {
    width: 1rem;
    height: 1rem;
    flex: none;
    transition: transform .15s;
}

/* Bandeau */
.hm-hero {
    background: linear-gradient(100deg, #eef6fa 0%, #f3f9ef 100%);
    border-bottom: 1px solid #dfeae4;
}

.hm-hero > .container-xl {
    padding-top: 1.6rem;
    padding-bottom: 1.5rem;
}

.hm-kicker {
    margin: 0 0 .5rem;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--green-mdm-text);
}

.hm-hero h1 {
    max-width: 62rem;
    margin: 0 0 .5rem;
    font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.15rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--blue-mdm-dark);
    text-wrap: pretty;
}

.hm-lead {
    max-width: 52rem;
    margin: 0 0 1rem;
    font-size: 1.08rem;
    line-height: 1.55;
    color: #4a5560;
}

.hm-jump {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.hm-jump a {
    padding: .4rem .85rem;
    border: 1px solid #cfe0e8;
    border-radius: 999px;
    background: #fff;
    font-size: .92rem;
    font-weight: 600;
    color: var(--blue-mdm-dark);
    transition: border-color .15s, background .15s;
}

.hm-jump a:hover,
.hm-jump a:focus-visible {
    border-color: var(--blue-mdm);
    background: #f0f8fc;
}

/* Sections */
.hm-sec {
    padding: 2.4rem 0;
    scroll-margin-top: 64px;
}

.hm-sec-alt {
    background: var(--hm-alt);
    border-top: 1px solid var(--hm-line);
    border-bottom: 1px solid var(--hm-line);
}

.hm-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .4rem 1.5rem;
    margin-bottom: 1.4rem;
}

.hm-head h2 {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--blue-mdm-dark);
}

.hm-head-sub {
    flex: 1 1 100%;
    order: 3;
    margin: 0;
    color: var(--hm-muted);
}

.hm-head-links {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem 1.4rem;
}

.hm-all {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 600;
    color: var(--blue-mdm);
}

.hm-all:hover .hm-a,
.hm-all:focus-visible .hm-a {
    transform: translateX(3px);
}

.hm-tag {
    display: inline-block;
    align-self: flex-start;
    padding: .12rem .5rem;
    border-radius: 4px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    background: #e6f2f8;
    color: var(--blue-mdm-dark);
}

.hm-tag-publication {
    background: #eaf6e3;
    color: var(--green-mdm-text);
}

.hm-tag-video {
    background: #eef0f2;
    color: #4a5560;
}

.hm-date {
    font-size: .85rem;
    color: var(--hm-muted);
}

/* Actualités : une grande + liste */
.hm-news {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 1.5rem;
}

.hm-news-une,
.hm-news-item {
    display: flex;
    color: inherit;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--hm-line);
    overflow: hidden;
    transition: box-shadow .15s, border-color .15s;
}

.hm-news-une:hover,
.hm-news-item:hover,
.hm-news-une:focus-visible,
.hm-news-item:focus-visible {
    border-color: #bcd6e2;
    box-shadow: 0 6px 18px rgba(0, 76, 104, .09);
}

.hm-news-une:hover .hm-news-title,
.hm-news-item:hover .hm-news-title {
    color: var(--blue-mdm);
}

.hm-news-une {
    flex-direction: column;
}

.hm-news-img {
    display: block;
    aspect-ratio: 16 / 9;
    background: #e9eef1;
}

.hm-news-img img,
.hm-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hm-news-body {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: 1rem 1.15rem 1.1rem;
    min-width: 0;
}

.hm-news-title {
    font-weight: 700;
    line-height: 1.3;
    color: var(--hm-ink);
    transition: color .15s;
    text-wrap: pretty;
}

.hm-news-une .hm-news-title {
    font-size: 1.4rem;
}

.hm-news-ex {
    color: var(--hm-muted);
    line-height: 1.5;
}

.hm-news-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.hm-news-item {
    flex: 1 1 auto;
    align-items: stretch;
}

.hm-news-thumb {
    flex: 0 0 34%;
    max-width: 180px;
    background: #e9eef1;
}

.hm-news-item .hm-news-body {
    justify-content: center;
    padding: .7rem .95rem;
    gap: .3rem;
}

.hm-news-item .hm-news-title {
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tutoriels */
.hm-fams {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.hm-fam {
    padding: 1.1rem 1.1rem .8rem;
    border: 1px solid var(--hm-line);
    border-radius: 10px;
    background: #fff;
}

.hm-fam-h {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: .7rem;
    color: var(--blue-mdm-dark);
}

.hm-fam-h b {
    display: block;
    font-size: 1.08rem;
    line-height: 1.25;
}

.hm-fam-h small {
    display: block;
    font-size: .82rem;
    color: var(--hm-muted);
}

.hm-fam-h:hover b {
    color: var(--blue-mdm);
}

.hm-fam-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9px;
    background: #e6f2f8;
    color: var(--blue-mdm);
}

.hm-fam ul,
.hm-links,
.hm-dl {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hm-fam li a,
.hm-dl li a {
    display: flex;
    justify-content: space-between;
    gap: .6rem;
    padding: .42rem 0;
    border-top: 1px solid #eef2f5;
    color: var(--hm-ink);
    line-height: 1.3;
}

.hm-fam li a span,
.hm-dl li a span {
    flex: none;
    min-width: 1.8rem;
    padding: 0 .4rem;
    border-radius: 999px;
    background: #f0f4f7;
    font-size: .8rem;
    line-height: 1.5rem;
    text-align: center;
    color: var(--hm-muted);
    align-self: center;
}

.hm-fam li a:hover,
.hm-fam li a:focus-visible,
.hm-dl li a:hover,
.hm-dl li a:focus-visible {
    color: var(--blue-mdm);
}

.hm-tuto-lists {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.hm-box {
    padding: 1.2rem 1.25rem;
    border: 1px solid var(--hm-line);
    border-radius: 10px;
    background: #fff;
}

.hm-box h3,
.hm-h3 {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .7rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue-mdm-dark);
}

.hm-box h3 .hm-i,
.hm-h3 .hm-i {
    color: var(--green-mdm-text);
}

.hm-box-sub {
    margin: -.2rem 0 .8rem;
    color: var(--hm-muted);
}

.hm-links li a {
    display: block;
    padding: .5rem 0;
    border-top: 1px solid #eef2f5;
    color: var(--hm-ink);
}

.hm-links li:first-child a {
    border-top: 0;
}

.hm-links b {
    display: block;
    font-weight: 600;
    line-height: 1.3;
}

.hm-links span {
    display: block;
    font-size: .84rem;
    color: var(--hm-muted);
}

.hm-links a:hover b,
.hm-links a:focus-visible b {
    color: var(--blue-mdm);
}

/* Vidéos */
.hm-videos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.hm-video {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--hm-line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.hm-video-player {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    background: #0c2a37;
    cursor: pointer;
    overflow: hidden;
}

.hm-video-player img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s, opacity .2s;
}

.hm-video-player:hover img,
.hm-video-player:focus-visible img {
    transform: scale(1.03);
    opacity: .9;
}

.hm-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.6rem;
    height: 3.6rem;
    margin: -1.8rem 0 0 -1.8rem;
    border-radius: 50%;
    background: rgba(0, 76, 104, .88);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    transition: background .15s, transform .15s;
}

.hm-play .hm-i {
    width: 1.8rem;
    height: 1.8rem;
    margin-left: .2rem;
}

.hm-video-player:hover .hm-play,
.hm-video-player:focus-visible .hm-play {
    background: var(--blue-mdm);
    transform: scale(1.06);
}

.hm-video-on {
    cursor: default;
}

.hm-video-on iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.hm-video-body {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: .85rem 1rem 1rem;
}

.hm-video-title {
    font-weight: 700;
    line-height: 1.3;
    text-wrap: pretty;
}

.hm-podcast {
    display: flex;
    align-items: center;
    gap: .9rem;
    max-width: 34rem;
    margin-top: 1.25rem;
    padding: .7rem 1rem;
    border: 1px solid var(--hm-line);
    border-radius: 10px;
    background: #fff;
    color: var(--hm-ink);
}

.hm-podcast img {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 8px;
    object-fit: cover;
    flex: none;
}

.hm-podcast > span:not(.hm-fam-ico) {
    flex: 1;
    min-width: 0;
}

.hm-podcast small {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--green-mdm-text);
}

.hm-podcast b {
    display: block;
    font-weight: 600;
    line-height: 1.3;
}

.hm-podcast .hm-a {
    color: var(--blue-mdm);
}

.hm-podcast:hover {
    border-color: #bcd6e2;
}

.hm-podcast:hover .hm-a {
    transform: translateX(3px);
}

/* Bandeau : outils les plus utilisés */
.hm-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
    gap: 1.5rem 2.5rem;
    align-items: center;
}

.hm-quick {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    padding: 1rem;
    border: 1px solid #dfeae4;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(16, 52, 74, .07);
}

.hm-quick-t {
    margin: 0 0 .15rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--green-mdm-text);
}

.hm-quick-a {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .55rem .6rem;
    border-radius: 9px;
    color: var(--blue-mdm-dark);
    transition: background .15s;
}

.hm-quick-a:hover,
.hm-quick-a:focus-visible {
    background: #f0f8fc;
}

.hm-quick-a > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.hm-quick-a b {
    font-size: .98rem;
    line-height: 1.25;
}

.hm-quick-a small {
    font-size: .82rem;
    line-height: 1.3;
    color: #5b6670;
}

.hm-quick .hm-all {
    align-self: flex-start;
    margin: .2rem 0 0 .6rem;
}

@media (max-width: 991.98px) {
    .hm-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Outils en ligne */
.hm-tools-wrap {
    display: grid;
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.hm-dso {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    padding: 1.2rem 1.25rem;
    border-radius: 12px;
    background: var(--blue-mdm-dark);
    color: #fff;
}

.hm-dso-t {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.hm-dso label {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    font-size: .88rem;
    color: #d5e7ef;
}

.hm-dso-in {
    position: relative;
}

.hm-dso-in input {
    width: 100%;
    padding: .5rem 2rem .5rem .7rem;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 1rem;
    color: var(--hm-ink);
}

.hm-dso-in input:focus {
    outline: 3px solid var(--green-mdm);
    outline-offset: 0;
}

.hm-dso-in i {
    position: absolute;
    right: .7rem;
    top: 50%;
    transform: translateY(-50%);
    font-style: normal;
    color: var(--hm-muted);
}

.hm-dso-r {
    margin: .2rem 0 0;
    font-size: 1rem;
}

.hm-dso-r b {
    font-size: 2.1rem;
    line-height: 1;
    color: var(--green-mdm);
}

.hm-dso-n {
    margin: 0;
    font-size: .82rem;
    color: #b9d3de;
}

.hm-dso a {
    font-weight: 600;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hm-tools {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.hm-tools-g {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.hm-tools-g h3 {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 .1rem;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--green-mdm-text);
}

.hm-tool {
    display: block;
    padding: .7rem .9rem;
    border: 1px solid var(--hm-line);
    border-radius: 9px;
    background: #fff;
    color: var(--hm-ink);
    transition: border-color .15s, box-shadow .15s;
}

.hm-tool b {
    display: block;
    font-weight: 700;
    line-height: 1.3;
    color: var(--blue-mdm-dark);
}

.hm-tool span {
    display: block;
    font-size: .86rem;
    line-height: 1.35;
    color: var(--hm-muted);
}

.hm-tool:hover,
.hm-tool:focus-visible {
    border-color: #bcd6e2;
    box-shadow: 0 4px 12px rgba(0, 76, 104, .08);
}

.hm-tool:hover b {
    color: var(--blue-mdm);
}

/* Téléchargements + lexique */
.hm-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.hm-duo .hm-all {
    margin-top: .9rem;
}

.hm-dl {
    columns: 2;
    column-gap: 1.5rem;
}

.hm-dl li {
    break-inside: avoid;
}

.hm-az {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(2.4rem, 1fr));
    gap: .4rem;
}

.hm-az a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.4rem;
    border: 1px solid var(--hm-line);
    border-radius: 7px;
    font-weight: 700;
    color: var(--blue-mdm-dark);
    transition: background .15s, color .15s, border-color .15s;
}

.hm-az a:hover,
.hm-az a:focus-visible {
    background: var(--blue-mdm);
    border-color: var(--blue-mdm);
    color: #fff;
}

/* Newsletter */
.hm-news-letter {
    background: var(--blue-mdm-dark);
    color: #fff;
}

.hm-news-letter > .container-xl {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hm-nl-txt h2 {
    margin: 0 0 .25rem;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
}

.hm-nl-txt p {
    margin: 0;
    color: #cfe3ec;
}

.hm-nl-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    flex: 0 1 30rem;
}

.hm-nl-form .row-newsletter-email {
    flex: 1 1 14rem;
}

.hm-nl-form .row-newsletter-anti-spam {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex: 1 1 14rem;
}

.hm-nl-form .row-newsletter-anti-spam.hide {
    display: none;
}

.hm-nl-form .row-newsletter-anti-spam label {
    font-size: .9rem;
    color: #cfe3ec;
}

.hm-nl-form .row-newsletter-anti-spam input {
    width: 5rem;
}

.hm-nl-form .btn.hide {
    display: none;
}

.hm-nl-form #contact-ajax-response {
    flex: 1 1 100%;
}

.hm-nl-form #contact-ajax-response:empty {
    display: none;
}

/* Partenaires */
.hm-partners {
    padding: 2rem 0 2.4rem;
}

.hm-partners-t {
    margin: 0 0 1rem;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--hm-muted);
}

.hm-partners #partenaires-block {
    overflow: hidden;
    gap: 1.5rem;
}

.hm-partners #partenaires-block img {
    max-height: 64px;
    filter: grayscale(1);
    opacity: .75;
    transition: filter .2s, opacity .2s;
}

.hm-partners #partenaires-block a:hover img,
.hm-partners #partenaires-block a:focus-visible img {
    filter: none;
    opacity: 1;
}

/* Écrans moyens et petits */
@media (max-width: 1199.98px) {
    .hm-fams {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hm-tools-wrap {
        grid-template-columns: minmax(0, 1fr);
    }

    .hm-dso {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: end;
        gap: .7rem 1rem;
    }

    .hm-dso-t,
    .hm-dso-n {
        grid-column: 1 / -1;
    }

    .hm-dso-n {
        order: 9;
    }

    .hm-dso a {
        justify-self: end;
    }
}

@media (max-width: 991.98px) {
    .hm-news,
    .hm-tuto-lists,
    .hm-duo {
        grid-template-columns: minmax(0, 1fr);
    }

    .hm-videos,
    .hm-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hm-videos .hm-video:nth-child(3) {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .hm-hero > .container-xl {
        padding-top: 1.5rem;
        padding-bottom: 1.4rem;
    }

    .hm-lead {
        font-size: 1rem;
    }

    .hm-sec {
        padding: 2rem 0;
    }

    .hm-head h2 {
        font-size: 1.4rem;
    }

    .hm-fams,
    .hm-videos,
    .hm-tools {
        grid-template-columns: minmax(0, 1fr);
    }

    .hm-videos .hm-video:nth-child(3) {
        display: flex;
    }

    .hm-news-une .hm-news-title {
        font-size: 1.2rem;
    }

    .hm-news-thumb {
        flex-basis: 32%;
    }

    .hm-dso {
        display: flex;
        align-items: stretch;
    }

    .hm-dso-n {
        order: 0;
    }

    .hm-dl {
        columns: 1;
    }
}

/* ==========================================================================
   2026-11 : pages du pied de page — lexique (.lx-*), FAQ (.fq-*), partenaires (.pt-*),
   contact (.ct-*), agenda (.ag-*)
   ========================================================================== */
.lx-side-box {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding: 1.2rem 1.25rem;
    border: 1px solid #e3e9ee;
    border-radius: 10px;
    background: #fff;
}

.lx-side-box p {
    margin: 0;
    color: #5b6770;
}

.lx-side-box .lx-side-t,
.lx-side-t {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--blue-mdm-dark);
}

/* Lexique : barre de recherche et lettres */
.lx-bar {
    position: sticky;
    top: 64px;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.5rem;
    margin: -.5rem 0 1.5rem;
    padding: .75rem 0;
    background: #fff; /* opaque : le texte ne doit pas transparaître quand il défile dessous */
    box-shadow: 0 1px 0 #e3e9ee, 0 8px 12px -10px rgba(16, 52, 74, .25);
}

.lx-search {
    position: relative;
    flex: 1 1 16rem;
    max-width: 34rem;
}

.lx-search svg {
    position: absolute;
    left: .8rem;
    top: 50%;
    width: 1.1rem;
    height: 1.1rem;
    transform: translateY(-50%);
    color: #5b6770;
}

.lx-search input {
    width: 100%;
    padding: .6rem 1rem .6rem 2.4rem;
    border: 1px solid #cfdbe3;
    border-radius: 999px;
    font-size: 1rem;
}

.lx-search.lx-has-count input {
    padding-right: 6.5rem;
}

.lx-search input:focus {
    outline: 3px solid rgba(0, 127, 177, .25);
    border-color: var(--blue-mdm);
}

.lx-count {
    position: absolute;
    right: 2.6rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: .85rem;
    color: #5b6770;
}

.lx-az {
    display: flex;
    flex-wrap: wrap;
    gap: .15rem;
}

.lx-az a,
.lx-az span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.9rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: .92rem;
    text-decoration: none;
}

.lx-az a {
    color: var(--blue-mdm-dark);
}

.lx-az a:hover,
.lx-az a:focus-visible {
    background: #e6f2f8;
}

.lx-az a.on {
    background: var(--blue-mdm);
    color: #fff;
}

.lx-az a.off,
.lx-az span {
    color: #c3ccd3;
    pointer-events: none;
}

/* Lexique : liste */
.lx-list {
    max-width: 56rem;
}

.lx-letter {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: 1rem;
    padding: 1.2rem 0;
    border-top: 1px solid #e3e9ee;
    scroll-margin-top: var(--lx-off, 140px);
}

.lx-letter:first-child {
    border-top: 0;
}

.lx-letter[hidden],
.lx-def[hidden] {
    display: none;
}

.lx-letter-h {
    position: sticky;
    top: var(--lx-off, 140px);
    align-self: start;
    margin: 0;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--green-mdm-text);
}

.lx-defs {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.lx-def {
    scroll-margin-top: var(--lx-off, 140px);
}

.lx-def h3 {
    margin: 0 0 .3rem;
    font-size: 1.12rem;
    font-weight: 700;
}

.lx-def h3 a {
    color: var(--blue-mdm-dark);
    text-decoration: none;
}

.lx-def h3 a:hover,
.lx-def h3 a:focus-visible {
    color: var(--blue-mdm);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lx-def-txt,
.lx-term-def {
    color: #36424b;
    line-height: 1.6;
}

.lx-def-txt p,
.lx-term-def p {
    margin: 0 0 .5rem;
}

.lx-def-txt p:last-child {
    margin-bottom: 0;
}

.lx-empty {
    padding: 2rem 0;
    color: #5b6770;
}

/* Lexique : page d'un terme */
.lx-term {
    display: grid;
    grid-template-columns: minmax(0, 48rem) minmax(260px, 320px);
    justify-content: space-between;
    gap: 2.5rem;
    align-items: start;
}

.lx-term-k {
    margin: 0 0 .5rem;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--green-mdm-text);
}

.lx-term-def {
    font-size: 1.1rem;
    line-height: 1.7;
}

.lx-term-def p {
    margin-bottom: 1rem;
}

.lx-term-rel {
    margin-top: 2rem;
}

.lx-term-rel h2 {
    margin: 0 0 .7rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blue-mdm-dark);
}

.lx-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.lx-chips a {
    padding: .35rem .8rem;
    border: 1px solid #cfe0e8;
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 600;
    color: var(--blue-mdm-dark);
    text-decoration: none;
}

.lx-chips a:hover,
.lx-chips a:focus-visible {
    border-color: var(--blue-mdm);
    background: #f0f8fc;
}

.lx-term-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e3e9ee;
}

.lx-term-nav a {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .8rem 1rem;
    border: 1px solid #e3e9ee;
    border-radius: 10px;
    text-decoration: none;
    color: var(--blue-mdm-dark);
}

.lx-term-nav a:hover,
.lx-term-nav a:focus-visible {
    border-color: #bcd6e2;
    background: #f7fbfd;
}

.lx-term-nav small {
    color: #5b6770;
}

.lx-term-nav .lx-next {
    grid-column: 2;
    text-align: right;
}

.lx-term-side {
    position: sticky;
    top: 84px;
}

.lx-side-search input {
    width: 100%;
    padding: .5rem .8rem;
    border: 1px solid #cfdbe3;
    border-radius: 8px;
}

.lx-az-s {
    gap: .2rem;
}

.lx-az-s a {
    min-width: 1.75rem;
    height: 1.75rem;
    font-size: .85rem;
}

/* FAQ */
.fq-page {
    display: grid;
    grid-template-columns: minmax(0, 48rem) minmax(260px, 320px);
    justify-content: space-between;
    gap: 2.5rem;
    align-items: start;
}

.fq {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.fq-item {
    border: 1px solid #e3e9ee;
    border-radius: 10px;
    background: #fff;
}

.fq-item summary {
    position: relative;
    padding: 1rem 3rem 1rem 1.2rem;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--blue-mdm-dark);
    cursor: pointer;
    list-style: none;
}

.fq-item summary::-webkit-details-marker {
    display: none;
}

.fq-item summary::after {
    content: "";
    position: absolute;
    right: 1.2rem;
    top: 50%;
    width: .6rem;
    height: .6rem;
    margin-top: -.4rem;
    border-right: 2px solid var(--blue-mdm);
    border-bottom: 2px solid var(--blue-mdm);
    transform: rotate(45deg);
    transition: transform .15s;
}

.fq-item[open] summary::after {
    margin-top: -.1rem;
    transform: rotate(-135deg);
}

.fq-item summary:hover {
    color: var(--blue-mdm);
}

.fq-a {
    padding: 0 1.2rem 1rem;
    color: #36424b;
    line-height: 1.6;
}

.fq-a p,
.fq-a ul {
    margin: 0 0 .6rem;
}

.fq-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 84px;
}

.fq-links {
    margin: 0;
    padding-left: 1.1rem;
}

.fq-links li {
    padding: .15rem 0;
}

#modalHtml .fq-item summary {
    font-size: 1rem;
}

/* Partenaires */
.pt-intro {
    max-width: 52rem;
    margin-bottom: 1.5rem;
    color: #36424b;
    line-height: 1.6;
}

.pt-intro ul {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: .7rem 0 0;
    padding: 0;
    list-style: none;
}

.pt-intro li {
    padding: .3rem .75rem;
    border-radius: 999px;
    background: #eef5f9;
    font-size: .9rem;
    font-weight: 600;
    color: var(--blue-mdm-dark);
}

.pt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.pt-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    padding: 1.25rem;
    border: 1px solid #e3e9ee;
    border-radius: 12px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.pt-card:hover,
.pt-card:focus-within {
    border-color: #bcd6e2;
    box-shadow: 0 6px 18px rgba(0, 76, 104, .09);
}

.pt-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 96px;
    margin-bottom: .5rem;
    padding: .5rem;
    border-radius: 8px;
    background: #f7f9fb;
}

.pt-card-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.pt-card-name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.pt-card-name a {
    color: var(--blue-mdm-dark);
    text-decoration: none;
}

.pt-card-name a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.pt-card-slogan {
    margin: 0;
    color: #5b6770;
    line-height: 1.4;
}

.pt-acts {
    margin: .2rem 0 0;
    padding-left: 1.1rem;
    font-size: .92rem;
    color: #36424b;
}

.pt-card-more {
    margin-top: auto;
    padding-top: .5rem;
    font-weight: 600;
    color: var(--blue-mdm);
}

.pt-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-top: 2rem;
    padding: 1.3rem 1.5rem;
    border-radius: 12px;
    background: #eef6fa;
}

.pt-cta p {
    margin: 0;
}

.pt-fiche {
    display: grid;
    grid-template-columns: minmax(0, 48rem) minmax(260px, 320px);
    justify-content: space-between;
    gap: 2.5rem;
    align-items: start;
}

.pt-fiche-body {
    line-height: 1.65;
}

.pt-fiche-body img {
    max-width: 100%;
    height: auto;
}

.pt-fiche-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 84px;
}

.pt-fiche-logo {
    display: flex;
    justify-content: center;
    padding: .5rem;
}

.pt-fiche-logo img {
    max-width: 100%;
    max-height: 110px;
    object-fit: contain;
}

.pt-back {
    font-weight: 600;
    text-decoration: none;
}

/* Contact */
.ct-page {
    display: grid;
    grid-template-columns: minmax(0, 46rem) minmax(260px, 340px);
    justify-content: space-between;
    gap: 2.5rem;
    align-items: start;
}

.ct-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid #e3e9ee;
    border-radius: 12px;
    background: #fff;
}

.ct-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ct-field .form-label {
    margin-bottom: .3rem;
    font-weight: 600;
    color: #36424b;
}

.ct-req {
    color: #b42318;
}

.ct-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ct-spam {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .92rem;
    color: #5b6770;
}

.ct-spam input {
    width: 5rem;
}

.ct-send {
    padding: .55rem 1.6rem;
}

.ct-note {
    margin: 0;
    font-size: .85rem;
    color: #5b6770;
}

.ct-side {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    position: sticky;
    top: 84px;
}

.ct-motifs {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.ct-motif {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .8rem 1rem;
    border: 1px solid #e3e9ee;
    border-radius: 10px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.ct-motif b {
    color: var(--blue-mdm-dark);
}

.ct-motif span {
    font-size: .88rem;
    color: #5b6770;
}

.ct-motif:hover,
.ct-motif:focus-visible,
.ct-motif.on {
    border-color: var(--blue-mdm);
    background: #f0f8fc;
}

.ct-faq {
    margin: .4rem 0 0;
    color: #5b6770;
}

/* Agenda */
.ag-next {
    margin-bottom: 2rem;
}

.ag-next h2,
.ag-h {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-mdm-dark);
}

.ag-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.ag-ev {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
    border: 1px solid #e3e9ee;
    border-radius: 10px;
    background: #fff !important;
    color: inherit !important;
    text-align: left;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.ag-ev:hover,
.ag-ev:focus-visible {
    border-color: #bcd6e2;
    box-shadow: 0 6px 18px rgba(0, 76, 104, .09);
}

.ag-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 5.2rem;
    padding: .7rem .4rem;
    background: var(--blue-mdm-dark);
    color: #fff;
}

.ag-date b {
    font-size: 1.7rem;
    line-height: 1;
}

.ag-date small {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.ag-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .3rem;
    padding: .8rem 1rem;
}

.ag-title {
    font-weight: 700;
    line-height: 1.3;
    color: var(--blue-mdm-dark);
}

.ag-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .3rem;
    font-size: .86rem;
    color: #5b6770;
}

/* Écrans moyens et petits */
@media (max-width: 991.98px) {
    .lx-term,
    .fq-page,
    .pt-fiche,
    .ct-page {
        grid-template-columns: minmax(0, 1fr);
    }

    .lx-term-side,
    .fq-side,
    .pt-fiche-side,
    .ct-side {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .lx-bar {
        gap: .6rem;
    }

    .lx-az {
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        scrollbar-width: none;
    }

    .lx-az-s {
        flex-wrap: wrap;
        overflow: visible;
    }

    .lx-letter {
        grid-template-columns: minmax(0, 1fr);
        gap: .5rem;
    }

    .lx-letter-h {
        position: static;
        font-size: 1.8rem;
    }

    .lx-term-nav {
        grid-template-columns: minmax(0, 1fr);
    }

    .lx-term-nav .lx-next {
        grid-column: 1;
    }

    .ct-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .ct-form {
        padding: 1.1rem;
    }
}

/* ==========================================================================
   2026-11 : outils DSO — calcul (/outils/dso.php, .ds-*) et reporting (/outils/reporting.php, .rp-*)
   ========================================================================== */
.ds {
    --ds-line: #e3e9ee;
    --ds-muted: #5b6770;
    --ds-ink: #1f2b33;
    --ds-bleu: #007fb1;
    --ds-orange: #e8833a;
    color: var(--ds-ink);
}

.ds-intro {
    max-width: 60rem;
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #36424b;
}

.ds-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 2rem;
    align-items: start;
}

.ds-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ds-step {
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--ds-line);
    border-radius: 12px;
    background: #fff;
}

.ds-step h2 {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 1rem;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--blue-mdm-dark);
}

.ds-step h2::before,
.ds-step h2::after {
    display: none;
}

.ds-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: var(--blue-mdm);
    color: #fff;
    font-size: .9rem;
}

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

.ds-field label {
    display: block;
    margin-bottom: .3rem;
    font-weight: 600;
    font-size: .93rem;
    color: #36424b;
}

.ds-field-main {
    max-width: 22rem;
    margin-bottom: 1rem;
}

.ds-field-taux {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--ds-line);
}

.ds-field-taux small {
    display: block;
    margin-top: .3rem;
    color: var(--ds-muted);
}

.ds-static {
    margin: .45rem 0 0;
    color: var(--ds-muted);
}

.ds-req {
    color: #b42318;
}

.ds-in {
    position: relative;
}

.ds-in input {
    width: 100%;
    padding: .5rem 2rem .5rem .75rem;
    border: 1px solid #cfdbe3;
    border-radius: 8px;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
    background: #fff;
}

.ds-in input:focus {
    outline: 3px solid rgba(0, 127, 177, .2);
    border-color: var(--ds-bleu);
}

.ds-in input.ds-err {
    border-color: #b42318;
}

.ds-in i {
    position: absolute;
    right: .7rem;
    top: 50%;
    transform: translateY(-50%);
    font-style: normal;
    color: var(--ds-muted);
    pointer-events: none;
}

.ds-in-s {
    max-width: 9rem;
}

.ds-hint {
    margin: -.4rem 0 .9rem;
    font-size: .88rem;
    color: var(--ds-muted);
}

.ds-step .ds-hint:last-child,
.ds-hint.ds-hint-after {
    margin: .6rem 0 0;
}

.ds-ventes {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.ds-v {
    display: grid;
    grid-template-columns: minmax(9rem, 1fr) minmax(9rem, 13rem) minmax(4rem, 1fr);
    align-items: center;
    gap: .9rem;
}

.ds-v label {
    margin: 0;
    font-size: .95rem;
    color: #36424b;
}

.ds-v label small {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--green-mdm-text);
}

.ds-conso {
    height: .55rem;
    border-radius: 999px;
    background: #eef2f5;
    overflow: hidden;
}

.ds-conso span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: var(--green-mdm);
    transition: width .25s;
}

.ds-v.manque input {
    border-color: var(--ds-orange);
    background: #fff8f2;
}

.ds-tools {
    display: flex;
    gap: 1.5rem;
}

.ds-link {
    padding: 0;
    border: 0;
    background: none;
    font-weight: 600;
    color: var(--ds-bleu);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.ds-link-a {
    display: inline-block;
    margin-top: .7rem;
    font-weight: 600;
    text-decoration: none;
}

/* Résultat */
.ds-side {
    position: sticky;
    top: 84px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ds-resultat,
.ds-histo-box {
    padding: 1.3rem 1.4rem;
    border: 1px solid var(--ds-line);
    border-radius: 12px;
    background: #fff;
}

.ds-resultat {
    border-top: 4px solid var(--ds-bleu);
}

.ds-r-k {
    margin: 0;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--green-mdm-text);
}

.ds-r-val {
    margin: .2rem 0 .3rem;
    color: var(--blue-mdm-dark);
}

.ds-r-val b {
    font-size: 3rem;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

.ds-r-val span {
    font-size: 1.1rem;
    font-weight: 600;
}

.ds-resultat.vide .ds-r-val b {
    color: #c3ccd3;
}

.ds-r-msg {
    margin: 0 0 .6rem;
    font-size: .92rem;
    color: var(--ds-muted);
}

.ds-r-msg:empty {
    display: none;
}

.ds-r-msg.err {
    color: #b54708;
}

.ds-r-barre {
    display: flex;
    height: .7rem;
    margin: .3rem 0 .9rem;
    border-radius: 999px;
    background: #eef2f5;
    overflow: hidden;
}

.ds-r-barre span {
    height: 100%;
    transition: width .3s;
}

.ds-r-barre .c,
.ds-r-list i.c {
    background: var(--ds-bleu);
}

.ds-r-barre .r,
.ds-r-list i.r {
    background: var(--ds-orange);
}

.ds-r-barre .t {
    background: var(--blue-mdm-dark);
}

.ds-r-list {
    margin: 0;
}

.ds-r-list div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .45rem 0;
    border-top: 1px solid #eef2f5;
}

.ds-r-list dt {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-weight: 400;
    color: #36424b;
}

.ds-r-list dt i {
    width: .7rem;
    height: .7rem;
    border-radius: 3px;
}

.ds-r-list dd {
    margin: 0;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.ds-r-detail {
    margin: .6rem 0 1rem;
    font-size: .88rem;
    color: var(--ds-muted);
}

.ds-r-detail:empty {
    margin: 0 0 .6rem;
}

.ds-r-note {
    margin: .6rem 0 0;
    font-size: .82rem;
    color: var(--ds-muted);
}

.ds-etat {
    margin: .6rem 0 0;
    font-size: .9rem;
}

.ds-etat:empty {
    display: none;
}

.ds-etat.ok {
    color: var(--green-mdm-text);
}

.ds-etat.err {
    color: #b42318;
}

.ds-cta {
    margin-top: .4rem;
    padding: 1rem;
    border-radius: 10px;
    background: #f1f7fa;
}

.ds-cta p {
    margin: 0 0 .8rem;
    font-size: .92rem;
    color: #36424b;
}

/* Graphiques */
.ds-chart {
    position: relative;
    min-height: 120px;
}

.ds-chart svg {
    display: block;
    overflow: visible;
}

.ds-legende {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem 1rem;
    margin-top: .4rem;
    font-size: .82rem;
    color: var(--ds-muted);
}

.ds-legende span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.ds-legende i {
    display: inline-block;
    width: .8rem;
    height: .8rem;
    border-radius: 3px;
}

.ds-legende i.l {
    height: .2rem;
}

.ds-bulle {
    position: absolute;
    top: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 11rem;
    padding: .5rem .7rem;
    border: 1px solid var(--ds-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
    font-size: .82rem;
    pointer-events: none;
}

.ds-bulle[hidden] {
    display: none;
}

.ds-bulle i {
    display: inline-block;
    width: .6rem;
    height: .6rem;
    margin-right: .35rem;
    border-radius: 2px;
}

/* Explications */
.ds-explain {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    max-width: 60rem;
    margin-top: 2.5rem;
}

.ds-explain details {
    border: 1px solid var(--ds-line);
    border-radius: 10px;
    background: #fff;
}

.ds-explain summary {
    padding: .9rem 1.2rem;
    font-weight: 700;
    color: var(--blue-mdm-dark);
    cursor: pointer;
}

.ds-explain details > div {
    padding: 0 1.2rem 1rem;
    line-height: 1.6;
    color: #36424b;
}

/* Reporting */
.rp-demo,
.rp-vide {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: 1.5rem;
    padding: 1.2rem 1.4rem;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fde3c8;
}

.rp-vide {
    flex-direction: column;
    align-items: flex-start;
    background: #f1f7fa;
    border-color: #d6e7ef;
}

.rp-vide[hidden] {
    display: none;
}

.rp-sans .rp-content {
    display: none;
}

.rp-demo p,
.rp-vide p {
    margin: 0;
    max-width: 46rem;
    color: #36424b;
}

.rp-demo .rp-demo-t,
.rp-vide .rp-demo-t {
    margin-bottom: .2rem;
    font-weight: 700;
    color: var(--blue-mdm-dark);
}

.rp-demo-a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rp-demo-a .ds-link-a {
    margin-top: .4rem;
}

.rp-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    margin-bottom: 1.2rem;
}

.rp-bar-l {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.rp-bar-l label {
    margin: 0;
    font-weight: 600;
}

.rp-bar-l .form-select {
    width: auto;
}

.rp-bar-r {
    display: flex;
    gap: .5rem;
}

.rp-k {
    margin: 0 0 .7rem;
    color: var(--ds-muted);
}

.rp-tiles {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.rp-tile {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--ds-line);
    border-radius: 12px;
    background: #fff;
}

.rp-tile-main {
    border-top: 4px solid var(--ds-bleu);
}

.rp-tile .l {
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--ds-muted);
}

.rp-tile .v {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    color: var(--blue-mdm-dark);
}

.rp-tile-main .v {
    font-size: 2rem;
}

.rp-tile .d {
    font-size: .82rem;
    color: var(--ds-muted);
}

.rp-tile .d.bon {
    color: var(--green-mdm-text);
}

.rp-tile .d.mauvais {
    color: #b42318;
}

.rp-card {
    margin-bottom: 1.25rem;
    padding: 1.2rem 1.3rem;
    border: 1px solid var(--ds-line);
    border-radius: 12px;
    background: #fff;
}

.rp-card h2 {
    margin: 0 0 .3rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue-mdm-dark);
}

.rp-card h2::before,
.rp-card h2::after {
    display: none;
}

.rp-sub {
    margin: 0 0 .8rem;
    font-size: .88rem;
    color: var(--ds-muted);
}

.rp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.25rem;
}

.rp-params ul {
    margin: .5rem 0 .8rem;
    padding-left: 1.1rem;
    line-height: 1.9;
}

.rp-table-wrap {
    overflow-x: auto;
}

.rp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
    font-variant-numeric: tabular-nums;
}

.rp-table th,
.rp-table td {
    padding: .55rem .6rem;
    border-bottom: 1px solid #eef2f5;
    text-align: right;
    white-space: nowrap;
}

.rp-table thead th {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--ds-muted);
    background: #f7f9fb;
}

.rp-table th[scope="row"],
.rp-table thead th:first-child {
    text-align: left;
    font-weight: 600;
}

.rp-manque td {
    color: #b0bac2;
}

.rp-saisir {
    margin-left: .5rem;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
}

.rp-manque .rp-saisir {
    padding: .1rem .5rem;
    border-radius: 999px;
    background: #e6f2f8;
}

.ds-mbar {
    position: fixed;
    left: .75rem;
    right: .75rem;
    bottom: .75rem;
    z-index: 20;
    display: flex;
    align-items: baseline;
    gap: .5rem;
    padding: .7rem 1rem;
    border: 0;
    border-radius: 12px;
    background: var(--blue-mdm-dark);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    text-align: left;
}

.ds-mbar[hidden] {
    display: none;
}

.ds-mbar b {
    font-size: 1.35rem;
}

.ds-mbar small {
    margin-left: auto;
    color: #cfe3ec;
}

@media (max-width: 1199.98px) {
    .rp-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .ds-layout,
    .rp-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ds-side {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .ds-step {
        padding: 1rem;
    }

    .ds-v {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
        gap: .3rem .7rem;
    }

    .ds-conso {
        grid-column: 1 / -1;
        height: .35rem;
    }

    .rp-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rp-tile-main {
        grid-column: 1 / -1;
    }
}

/* ==========================================================================
   2026-11 : calcul des dates d'échéance (/outils/calcul-date-echeance.php, .ec-*)
   ========================================================================== */
.ec-tabs {
    display: inline-flex;
    gap: .25rem;
    margin-bottom: 1.25rem;
    padding: .25rem;
    border-radius: 999px;
    background: #eef3f6;
}

.ec-tab {
    padding: .45rem 1.1rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-weight: 600;
    color: #36424b;
}

.ec-tab[aria-selected="true"] {
    background: #fff;
    color: var(--blue-mdm-dark);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
}

.ec-field {
    margin-bottom: 1.2rem;
}

.ec-field:last-child {
    margin-bottom: 0;
}

.ec-field[hidden] {
    display: none;
}

.ec-field label,
.ec-label {
    display: block;
    margin-bottom: .35rem;
    font-weight: 600;
    color: #36424b;
}

.ec-field small {
    display: block;
    margin-top: .3rem;
    color: #5b6770;
}

.ec-date-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ec-date-row input {
    max-width: 14rem;
    font-size: 1.05rem;
}

.ec-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: .7rem;
}

.ec-chip {
    padding: .4rem .85rem;
    border: 1px solid #cfdbe3;
    border-radius: 999px;
    background: #fff;
    font-weight: 600;
    font-size: .92rem;
    color: var(--blue-mdm-dark);
    transition: border-color .15s, background .15s;
}

.ec-chip:hover,
.ec-chip:focus-visible {
    border-color: var(--blue-mdm);
}

.ec-chip.on {
    border-color: var(--blue-mdm);
    background: var(--blue-mdm);
    color: #fff;
}

.ec-perso {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e3e9ee;
}

.ec-perso[hidden] {
    display: none;
}

.ec-perso .ec-field {
    margin-bottom: 0;
}

.ec-r-date {
    margin: .15rem 0 0;
    color: var(--blue-mdm-dark);
}

.ec-r-date b {
    font-size: 2.6rem;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.ec-resultat.vide .ec-r-date b {
    color: #c3ccd3;
}

.ec-r-long {
    margin: .1rem 0 .5rem;
    font-size: 1.08rem;
    font-weight: 600;
    color: #36424b;
}

.ec-r-meta {
    margin: 0 0 .8rem;
    font-size: .9rem;
    color: #5b6770;
}

.ec-resultat.vide .ec-r-meta,
.ec-resultat.vide .ec-actions {
    display: none;
}

.ec-etapes {
    margin: 0 0 .8rem;
    padding: 0;
    list-style: none;
    counter-reset: et;
}

.ec-etapes li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .4rem 0;
    border-top: 1px solid #eef2f5;
    font-size: .92rem;
    color: #36424b;
}

.ec-etapes li b {
    font-variant-numeric: tabular-nums;
}

.ec-comp {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    margin-bottom: .8rem;
    padding: .7rem .8rem;
    border-radius: 8px;
    background: #f1f7fa;
    font-size: .88rem;
}

.ec-comp[hidden] {
    display: none;
}

.ec-comp em {
    color: #5b6770;
}

.ec-legal {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: .88rem;
    color: #5b6770;
}

.ec-legal:empty {
    display: none;
}

.ec-legal::before {
    position: absolute;
    left: 0;
    top: -.05rem;
    font-weight: 700;
}

.ec-legal.ok::before {
    content: "✓";
    color: var(--green-mdm-text);
}

.ec-legal.ko {
    color: #b54708;
}

.ec-legal.ko::before {
    content: "!";
    color: #b54708;
}

.ec-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.ds-layout.ec-mode-lot {
    grid-template-columns: minmax(0, 1fr);
}

.ec-lot-table td:nth-child(2),
.ec-lot-table th:nth-child(2) {
    text-align: left;
}

.ec-lot-table td:first-child {
    text-align: left;
}

.ec-lot-table .ec-err td {
    color: #b42318;
}

.ec-content {
    gap: 1.5rem;
}

.ec-txt h2,
.ec-faq h2 {
    margin: 0 0 .7rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--blue-mdm-dark);
}

.ec-txt {
    line-height: 1.65;
    color: #36424b;
}

.ec-txt h3 {
    margin: 1rem 0 .5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue-mdm-dark);
}

.ec-faq {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.ec-faq details > div ul {
    padding-left: 0;
}

.ec-mdm {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .8rem 2rem;
    padding: 1.1rem 1.3rem;
    border: 1px solid #e3e9ee;
    border-radius: 12px;
    background: #f7f9fb;
}

.ec-mdm p {
    margin: 0;
    max-width: 44rem;
    font-size: .92rem;
    color: #5b6770;
}

.ec-mdm .ec-mdm-t {
    margin-bottom: .2rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue-mdm-dark);
}


/* ==========================================================================
   2026-11 : pénalités de retard de paiement et de livraison (.pn-*)
   ========================================================================== */
.pn-lignes {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-bottom: 1rem;
}

.pn-ligne {
    display: grid;
    grid-template-columns: minmax(8rem, 1.1fr) minmax(9rem, 1fr) minmax(9rem, 1fr) minmax(8rem, 1fr) 2rem;
    align-items: end;
    gap: .7rem;
    padding: .7rem .8rem;
    border: 1px solid #e3e9ee;
    border-radius: 10px;
    background: #fafcfd;
}

.pn-ligne.retard {
    border-color: #f5c9a6;
    background: #fffaf5;
}

.pn-ligne label {
    display: block;
    margin-bottom: .2rem;
    font-size: .78rem;
    font-weight: 600;
    color: #5b6770;
}

.pn-ligne:not(:first-child) label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.pn-c {
    min-width: 0;
}

.pn-c input {
    width: 100%;
    min-width: 0;
}

.pn-ref .ds-r-list dd {
    white-space: nowrap;
}

.pn-res {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-height: 2.4rem;
    text-align: right;
}

.pn-j {
    font-size: .8rem;
    color: #5b6770;
}

.pn-ligne.retard .pn-j {
    color: #b54708;
}

.pn-p {
    font-variant-numeric: tabular-nums;
    color: var(--blue-mdm-dark);
}

.pn-suppr {
    width: 2rem;
    height: 2.4rem;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: none;
    font-size: 1.4rem;
    line-height: 1;
    color: #9aa7b0;
}

.pn-suppr:hover,
.pn-suppr:focus-visible {
    background: #fde8e8;
    color: #b42318;
}

.pn-check {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin-top: .9rem;
    font-size: .93rem;
    color: #36424b;
}

.pn-check input {
    margin-top: .25rem;
}

.pn-ref .ds-r-list dt {
    font-size: .88rem;
}

@media (max-width: 767.98px) {
    .pn-ligne {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 2rem;
    }

    .pn-ligne label,
    .pn-ligne:not(:first-child) label {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
    }

    .pn-ligne .pn-c:nth-child(1) {
        grid-column: 1 / 3;
    }

    .pn-ligne .pn-suppr {
        grid-column: 3;
        grid-row: 1;
    }

    .pn-ligne .pn-res {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        min-height: 0;
    }
}

/* ==========================================================================
   2026-11 : coût du crédit, Z-score, limite de crédit, notations (.ot-*)
   ========================================================================== */
.ot-aide {
    display: block;
    margin-top: .3rem;
    font-size: .84rem;
    line-height: 1.4;
    color: #5b6770;
}

.ds .ds-row + .ds-row {
    margin-top: 1rem;
}

.ot .ds-in input {
    padding-right: 2.2rem;
}

.ot .ds-in-s input {
    padding-right: 3.2rem;
}

.ot-mix dd {
    white-space: nowrap;
}

.ot-mix dt i {
    display: inline-block;
    width: .7rem;
    height: .7rem;
    margin-right: .4rem;
    border-radius: 3px;
}

.ot-mix dt,
.ot-mix dd {
    font-size: .86rem;
}

.ot-choix,
.ot-cats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: .6rem;
}

.ot-choix label,
.ot-catopt {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: .8rem 1rem .8rem 2.4rem;
    border: 1px solid #cfdbe3;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.ot-choix input,
.ot-catopt input {
    position: absolute;
    left: .9rem;
    top: 1rem;
}

.ot-choix label:has(input:checked),
.ot-catopt:has(input:checked) {
    border-color: var(--blue-mdm);
    background: #f0f8fc;
}

.ot-choix small,
.ot-catopt small {
    font-size: .82rem;
    color: #5b6770;
}

.ot-cats {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.ot-catopt b {
    font-size: 1.3rem;
}

.ot-zone {
    display: inline-block;
    margin: .2rem 0 .6rem;
    padding: .2rem .7rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .9rem;
}

.ot-zone:empty {
    display: none;
}

.ot-zone.z0 { background: #fde8e8; color: #b42318; }
.ot-zone.z1 { background: #fff4e5; color: #b54708; }
.ot-zone.z2 { background: #eaf6e3; color: var(--green-mdm-text); }

.ot-jauge {
    position: relative;
    display: flex;
    height: .8rem;
    margin: .5rem 0 1.6rem;
    border-radius: 999px;
    overflow: visible;
}

.ot-jauge span { height: 100%; }
.ot-jauge .z0 { background: #f3a59f; border-radius: 999px 0 0 999px; }
.ot-jauge .z1 { background: #f8cf8f; }
.ot-jauge .z2 { flex: 1; background: #a8dc8e; border-radius: 0 999px 999px 0; }

.ot-jauge i {
    position: absolute;
    top: -.35rem;
    width: .25rem;
    height: 1.5rem;
    margin-left: -.125rem;
    border-radius: 2px;
    background: var(--blue-mdm-dark);
    transition: left .3s;
}

.ot-jauge em {
    position: absolute;
    top: 1.05rem;
    transform: translateX(-50%);
    font-style: normal;
    font-size: .75rem;
    color: #5b6770;
}

.ot-ratios th,
.ot-ratios td {
    font-size: .82rem;
    padding: .35rem .3rem;
}

.ot-ratios td:nth-child(2) {
    text-align: left;
    white-space: normal;
}

.ot-contraintes div.on dt,
.ot-contraintes div.on dd {
    font-weight: 700;
    color: var(--blue-mdm-dark);
}

.ot-contraintes div.on dt::before {
    content: "▸ ";
    color: var(--blue-mdm);
}

.ot-pcats {
    white-space: nowrap;
}

.ot-intro {
    max-width: 60rem;
    margin-bottom: 1.25rem;
    border: 1px solid #e3e9ee;
    border-radius: 10px;
    background: #fff;
}

.ot-intro summary {
    padding: .8rem 1.1rem;
    font-weight: 700;
    color: var(--blue-mdm-dark);
    cursor: pointer;
}

.ot-intro > div {
    padding: 0 1.1rem 1rem;
    line-height: 1.6;
    color: #36424b;
}

.ot-admin {
    margin-left: auto;
    font-size: .82rem;
    font-weight: 600;
}

.ot-crit {
    margin: 0;
    padding: .9rem 0;
    border: 0;
    border-top: 1px solid #eef2f5;
}

.ot-crit:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.ot-crit legend {
    float: none;
    width: auto;
    margin: 0 0 .3rem;
    font-size: 1rem;
    font-weight: 700;
    color: #36424b;
}

.ot-crit.fait legend::after {
    content: " ✓";
    color: var(--green-mdm-text);
}

.ot-crit .ot-aide {
    margin: -.1rem 0 .5rem;
}

.ot-reps {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.ot-reps label {
    cursor: pointer;
}

.ot-reps input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ot-reps span {
    display: inline-block;
    padding: .38rem .8rem;
    border: 1px solid #cfdbe3;
    border-radius: 999px;
    background: #fff;
    font-size: .9rem;
    color: #36424b;
    transition: border-color .15s, background .15s;
}

.ot-reps label:hover span {
    border-color: var(--blue-mdm);
}

.ot-reps input:focus-visible + span {
    outline: 3px solid rgba(0, 127, 177, .3);
}

.ot-reps input:checked + span {
    border-color: var(--blue-mdm);
    background: var(--blue-mdm);
    color: #fff;
}

.ot-note {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: .2rem 0 .3rem;
}

.ot-note b {
    font-size: 2.8rem;
    line-height: 1.1;
    color: var(--blue-mdm-dark);
}

.ds-resultat.vide .ot-note b {
    color: #c3ccd3;
}

.ot-cat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 .3rem;
    border-radius: 6px;
    font-weight: 700;
    color: #fff;
}

.ot-cat:empty {
    display: none;
}

.ot-note .ot-cat {
    min-width: 2.6rem;
    height: 2.6rem;
    font-size: 1.5rem;
    border-radius: 10px;
}

.ot-cat.cA { background: #3f7d2a; }
.ot-cat.cB { background: #7fb85a; }
.ot-cat.cC { background: #e8833a; }
.ot-cat.cD { background: #b42318; }

.ot-prog {
    height: .4rem;
    margin-top: .4rem;
    border-radius: 999px;
    background: #eef2f5;
    overflow: hidden;
}

.ot-prog span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--green-mdm);
    transition: width .2s;
}

.ot-echelle {
    margin-top: 1rem;
}

.ot-echelle dt,
.ot-echelle dd {
    font-size: .84rem;
}

.ot-echelle .ot-cat {
    min-width: 1.3rem;
    height: 1.3rem;
    margin-right: .3rem;
    font-size: .78rem;
}


/* ==========================================================================
   2026-11 : listes d'articles (blog, paroles d'experts, page auteur, articles liés)
   Carte : layout/blocks/article.php
   ========================================================================== */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
}

article.post-card {
    max-width: none;
    font-size: 1rem;
    line-height: 1.55;
    background: #fff;
    border: 1px solid #e3ecf0;
    border-radius: 0.9rem;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

article.post-card:hover,
article.post-card:focus-within {
    border-color: #cfe3ec;
    box-shadow: 0 8px 24px rgba(0, 76, 104, 0.1);
    transform: translateY(-2px);
}

.post-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

/* Au survol, seul le titre est souligné (la règle générale a:hover soulignait toute la carte) */
.post-card-link:hover,
.post-card-link:focus {
    color: inherit;
    text-decoration: none;
}

article.post-card .post-card-link:hover .post-card-title,
article.post-card .post-card-link:focus-visible .post-card-title {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
}

.post-card-link:focus-visible {
    outline: 3px solid var(--blue-mdm-light);
    outline-offset: -3px;
}

.post-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef5f8;
}

.post-card-media > img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform 0.35s;
}

article.post-card:hover .post-card-media > img {
    transform: scale(1.03);
}

/* Sans image : visuel aux couleurs du site */
.post-card-media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue-mdm-dark, #004c68) 0%, var(--blue-mdm, #007fb1) 55%, var(--green-mdm, #7fcf5a) 130%);
}

.post-card-media--placeholder > img.post-card-placeholder-photo {
    width: 38%;
    height: auto;
    aspect-ratio: 1;
    border: 4px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

article.post-card:hover .post-card-media--placeholder > img {
    transform: none;
}

.post-card-placeholder-icon {
    width: 56px;
    height: 56px;
    color: rgba(255, 255, 255, 0.85);
}

.post-card-tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--blue-mdm-dark, #004c68);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 2rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.post-card--expert .post-card-tag {
    color: var(--green-mdm-text, #3f7d2a);
}

.post-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.1rem 1.25rem 1.25rem;
}

.post-card-date {
    font-size: 0.82rem;
    color: #6c757d;
}

article.post-card .post-card-title {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--blue-mdm-dark, #004c68);
}

article.post-card .post-card-title::after {
    content: none;
}

article.post-card:hover .post-card-title {
    color: var(--blue-mdm, #007fb1);
}

article.post-card .post-card-excerpt {
    margin: 0;
    font-size: 0.93rem;
    color: #4a5258;
}

.post-card-author {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 0.6rem;
    font-size: 0.87rem;
    font-weight: 500;
    color: #3a4046;
}

.post-card-author img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
}

/* Article mis en avant : pleine largeur, image à gauche sur grand écran */
article.post-card--featured {
    grid-column: 1 / -1;
}

@media (min-width: 992px) {
    article.post-card--featured .post-card-link {
        display: grid;
        grid-template-columns: 1.15fr 1fr;
    }

    article.post-card--featured .post-card-media {
        aspect-ratio: auto;
        min-height: 300px;
    }

    article.post-card--featured .post-card-body {
        justify-content: center;
        gap: 0.75rem;
        padding: 2rem 2.25rem;
    }

    article.post-card--featured .post-card-title {
        font-size: 1.6rem;
    }

    article.post-card--featured .post-card-excerpt {
        font-size: 1.02rem;
    }
}

/* Barre d'outils des listes : rubriques / catégories à gauche, recherche ou bouton à droite */
.list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.list-filters {
    display: flex;
    gap: 0.5rem;
    min-width: 0;
    max-width: 100%;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.list-filters::-webkit-scrollbar {
    display: none;
}

.list-filters > a {
    flex: none;
    padding: 0.4rem 0.95rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--blue-mdm-dark, #004c68);
    text-decoration: none;
    white-space: nowrap;
    background: #fff;
    border: 1px solid #d5e4ea;
    border-radius: 2rem;
    transition: background 0.15s, border-color 0.15s;
}

.list-filters > a:hover {
    border-color: var(--blue-mdm, #007fb1);
}

.list-filters > a.active {
    color: #fff;
    background: var(--blue-mdm-dark, #004c68);
    border-color: var(--blue-mdm-dark, #004c68);
}

.list-toolbar .form-quick-search {
    display: block;
    flex: 0 1 340px;
    min-width: 0;
}

@media (max-width: 575px) {
    .list-toolbar .form-quick-search {
        flex: 1 1 100%;
    }
}

.list-toolbar .form-quick-search .error-message:not(:empty) {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #b02a37;
}

.list-results {
    margin: 1rem 0 0;
    color: #4a5258;
}

.related-posts {
    margin-top: 2.5rem;
}

/* Appel à contribution (paroles d'experts) */
.contrib-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin: 0 0 3rem;
    padding: 1.5rem 1.75rem;
    background: #f3faef;
    border: 1px solid #d9eecf;
    border-left: 4px solid var(--green-mdm, #7fcf5a);
    border-radius: 0.9rem;
}

.contrib-banner-title {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue-mdm-dark, #004c68);
}

.related-posts .post-grid {
    margin-top: 1rem;
}

/* Pagination plus aérée */
#nav-pagination {
    margin: 0.5rem 0 2.5rem !important;
}

#nav-pagination .btn-group {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
}

#nav-pagination .btn {
    min-width: 2.5rem;
    border-radius: 0.5rem !important;
}

#nav-pagination .btn.active.disabled {
    opacity: 1; /* page en cours bien visible (Bootstrap la grisait) */
}

/* 2026-11 : encadré de l'auteur des paroles d'experts (colonne de droite, au-dessus du sommaire ; au-dessus de l'article sur mobile) */
.author-card {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1rem;
    padding: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #3a4046;
    background: #e8f4fa;
    border-radius: 0.75rem;
}

.author-card > img {
    flex: none;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
}

.author-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.author-card-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--green-mdm-text, #3f7d2a);
}

.author-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blue-mdm-dark, #004c68);
    text-decoration: none;
}

.author-card-site {
    overflow-wrap: anywhere;
    color: var(--blue-mdm, #007fb1);
}

/* ==========================================================================
   2026-11 : outils à télécharger — liste (tools-download.php), kits (tools-download-kits.php),
   fiche (outil-description.php). Classes .td-*, fonctions dans inc/telechargements.inc.php.
   ========================================================================== */
.td {
    --td-ink: #1f2b33;
    --td-muted: #5b6770;
    --td-line: #e3e9ee;
    --td-alt: #f5f8fa;
    --td-go: var(--green-mdm-text);
    --td-go-hover: #346a22;
    padding-bottom: 2.5rem;
    color: var(--td-ink);
}

.td a {
    text-decoration: none;
}

.td-i {
    width: 1.15rem;
    height: 1.15rem;
    flex: none;
}

.td-i-sm {
    width: .95rem;
    height: .95rem;
}

/* Boutons (vert foncé : texte blanc lisible, contraste ≈ 5:1) */
.td-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .45rem .95rem;
    border: 1px solid var(--td-go);
    border-radius: 8px;
    background: var(--td-go);
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff !important;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.td-btn > * {
    pointer-events: none; /* le clic arrive toujours sur le lien (fenêtre de connexion) */
}

.td-btn:hover,
.td-btn:focus-visible {
    border-color: var(--td-go-hover);
    background: var(--td-go-hover);
}

.td-btn-ghost {
    border-color: #cfdbe2;
    background: #fff;
    color: var(--blue-mdm-dark) !important;
}

.td-btn-ghost:hover,
.td-btn-ghost:focus-visible {
    border-color: var(--blue-mdm);
    background: #f2f8fb;
}

.td-btn-lg {
    width: 100%;
    padding: .75rem 1rem;
    font-size: 1.05rem;
    white-space: normal;
    text-align: center;
}

/* Bandeau « gratuit avec un compte » */
.td-free {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .9rem 1.2rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.2rem;
    border: 1px solid #d6e9cc;
    border-radius: 12px;
    background: #f4faf0;
}

.td-free-i {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: #fff;
    color: var(--td-go);
}

.td-free-t {
    flex: 1 1 22rem;
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.td-free-t b {
    font-size: 1.05rem;
    color: var(--blue-mdm-dark);
}

.td-free-t span {
    font-size: .95rem;
    color: var(--td-muted);
}

.td-free-a {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

/* Barre de recherche et de filtres (collante sous l'en-tête de 64 px) */
.td-bar {
    position: sticky;
    top: 64px;
    z-index: 5;
    margin: 0 -.75rem;
    padding: .75rem .75rem .6rem;
    border-bottom: 1px solid var(--td-line);
    background: rgba(255, 255, 255, .97);
}

.td-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.td-search {
    flex: 1 1 20rem;
    position: relative;
    margin: 0;
}

.td-search .td-i {
    position: absolute;
    top: 50%;
    left: .8rem;
    transform: translateY(-50%);
    color: var(--td-muted);
}

.td-search input,
.td-select select {
    width: 100%;
    height: 2.75rem;
    border: 1px solid #cfdbe2;
    border-radius: 10px;
    background-color: #fff;
    font-size: 1rem;
    color: var(--td-ink);
}

.td-search input {
    padding: 0 .9rem 0 2.5rem;
}

.td-select {
    flex: 0 1 12rem;
    margin: 0;
}

.td-select select {
    padding: 0 2rem 0 .8rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6770' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .6rem center;
    background-size: 1rem;
    cursor: pointer;
}

.td-search input:focus,
.td-select select:focus {
    border-color: var(--blue-mdm);
    outline: 3px solid rgba(0, 127, 177, .15);
}

.td-chips {
    display: flex;
    gap: .4rem;
    margin-top: .6rem;
    padding-bottom: .15rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.td-chips a {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .75rem;
    border: 1px solid #cfe0e8;
    border-radius: 999px;
    background: #fff;
    font-size: .88rem;
    font-weight: 600;
    color: var(--blue-mdm-dark);
    transition: border-color .15s, background .15s;
}

.td-chips a span {
    font-size: .78rem;
    font-weight: 600;
    color: var(--td-muted);
}

.td-chips a:hover {
    border-color: var(--blue-mdm);
}

.td-chips a.on {
    border-color: var(--blue-mdm-dark);
    background: var(--blue-mdm-dark);
    color: #fff;
}

.td-chips a.on span {
    color: rgba(255, 255, 255, .8);
}

.td-count {
    min-height: 1.4rem;
    margin: .7rem 0 0;
    font-size: .9rem;
    color: var(--td-muted);
}

.td-count:empty {
    min-height: 0;
}

/* Thèmes et tutoriels */
.td-theme {
    padding-top: 1.4rem;
    scroll-margin-top: 190px;
}

.td-theme-h {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .2rem .7rem;
    margin: 0 0 .6rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--blue-mdm-dark);
}

.td-theme-h span {
    font-size: .9rem;
    font-weight: 600;
    color: var(--td-muted);
}

.td-group {
    margin-bottom: 1.4rem;
}

.td-group-h {
    margin: 0 0 .6rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--td-ink);
}

.td-group-h a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--td-ink);
}

.td-group-h a .td-i {
    color: var(--td-go);
}

.td-group-h a:hover,
.td-group-h a:focus-visible {
    color: var(--blue-mdm);
    text-decoration: underline;
}

/* Cartes */
.td-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
    gap: .9rem;
}

.td-card {
    position: relative;
    display: flex;
    gap: .9rem;
    padding: .85rem;
    border: 1px solid var(--td-line);
    border-radius: 12px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.td-card[hidden],
.td-group[hidden],
.td-theme[hidden] {
    display: none;
}

.td-card:hover {
    border-color: #c9dbe5;
    box-shadow: 0 4px 14px rgba(16, 52, 73, .07);
}

.td-thumb {
    position: relative;
    flex: none;
    width: 84px;
    height: 108px;
    overflow: hidden;
    border: 1px solid var(--td-line);
    border-radius: 6px;
    background: var(--td-alt);
}

.td-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.td-thumb .td-fmt {
    position: absolute;
    left: 4px;
    bottom: 4px;
}

.td-fmt {
    display: inline-block;
    padding: .1rem .4rem;
    border-radius: 4px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.4;
    color: #fff;
    background: #5b6770;
}

.td-fmt-xls {
    background: #1d7044;
}

.td-fmt-doc {
    background: #2b5797;
}

.td-fmt-pdf {
    background: #b3261e;
}

.td-fmt-zip {
    background: #7a5a12;
}

.td-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.td-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    text-wrap: pretty;
}

.td-title a {
    color: var(--blue-mdm-dark);
}

.td-title a::after {
    /* toute la carte est cliquable (sauf les autres liens, placés au-dessus) */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
}

.td-title a:hover,
.td-title a:focus-visible {
    color: var(--blue-mdm);
    text-decoration: underline;
}

.td-rub,
.td-btn,
.td-lang {
    position: relative;
    z-index: 1;
}

.td-rub {
    align-self: flex-start;
    font-size: .85rem;
    font-weight: 600;
    color: var(--td-go);
}

.td-rub:hover {
    text-decoration: underline;
}

.td-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    font-size: .88rem;
    line-height: 1.45;
    color: var(--td-muted);
}

.td-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .8rem;
    margin-top: auto;
    padding-top: .45rem;
}

.td-foot .td-btn {
    padding: .32rem .75rem;
    font-size: .85rem;
}

.td-lang {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .8rem;
    color: var(--td-muted);
}

.td-lang img {
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.td-card .warning-login {
    top: .5rem;
    right: .5rem;
    z-index: 2;
}

/* Kits : cartes plus larges, description plus longue */
.td-grid-kits {
    grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr));
}

.td-grid-kits .td-thumb {
    width: 120px;
    height: 150px;
}

.td-grid-kits .td-title {
    font-size: 1.15rem;
}

.td-grid-kits .td-desc {
    -webkit-line-clamp: 5;
}

/* Aucun résultat */
.td-empty {
    margin: 1.5rem 0;
    padding: 1.5rem;
    border: 1px dashed #cfdbe2;
    border-radius: 12px;
    background: var(--td-alt);
    text-align: center;
}

.td-empty p {
    margin: 0 0 .6rem;
}

.td-empty a {
    color: var(--td-go);
    font-weight: 600;
}

/* Liens vers les autres rubriques */
.td-more {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: .9rem;
    margin-top: 2.5rem;
}

.td-more-c {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--td-line);
    border-radius: 12px;
    background: var(--td-alt);
    font-size: .9rem;
    line-height: 1.45;
    color: var(--td-muted);
    transition: border-color .15s, background .15s;
}

.td-more-c b {
    display: block;
    margin-bottom: .15rem;
    font-size: 1rem;
    color: var(--blue-mdm-dark);
}

.td-more-c:hover,
.td-more-c:focus-visible {
    border-color: #c9dbe5;
    background: #fff;
}

.td-more-i {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 8px;
    background: #fff;
    color: var(--blue-mdm);
}

.td-more-a {
    margin-left: auto;
    align-self: center;
    color: var(--blue-mdm);
    transition: transform .15s;
}

.td-more-c:hover .td-more-a {
    transform: translateX(3px);
}

/* Fiche d'un outil */
.td-f-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-areas: "main side";
    gap: 2rem;
    align-items: start;
}

.td-f-main {
    grid-area: main;
    max-width: 50rem;
}

.td-f-side {
    grid-area: side;
    position: sticky;
    top: 84px;
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.td-f-box {
    position: relative;
    padding: 1.2rem;
    border: 1px solid var(--td-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(16, 52, 73, .06);
}

.td-f-fmt {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .9rem;
    font-weight: 700;
    color: var(--blue-mdm-dark);
}

.td-f-fmt .td-fmt {
    font-size: .8rem;
    padding: .2rem .5rem;
}

.td-f-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .45rem .9rem;
    margin: 0 0 1.1rem;
    font-size: .92rem;
}

.td-f-dl dt {
    font-weight: 600;
    color: var(--td-muted);
}

.td-f-dl dd {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin: 0;
}

.td-f-dl dd img {
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.td-f-dl a {
    color: var(--td-go);
    font-weight: 600;
}

.td-f-login {
    margin: .7rem 0 0;
    font-size: .9rem;
    text-align: center;
    color: var(--td-muted);
}

.td-f-login a {
    font-weight: 600;
    color: var(--blue-mdm-dark);
    text-decoration: underline !important;
}

.td-f-box .warning-login {
    top: -2.6rem;
    left: 0;
    right: 0;
}

.td-f-tuto {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    border: 1px solid #d6e9cc;
    border-radius: 12px;
    background: #f4faf0;
    color: var(--td-go);
}

.td-f-tuto > .td-i {
    width: 1.5rem;
    height: 1.5rem;
}

.td-f-tuto small {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--td-muted);
}

.td-f-tuto b {
    color: var(--blue-mdm-dark);
    line-height: 1.3;
}

.td-f-tuto:hover b {
    text-decoration: underline;
}

.td-f-h {
    margin: 0 0 .7rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue-mdm-dark);
}

.td-f-desc {
    margin-bottom: 2rem;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #2f3a42;
}

.td-f-desc a {
    color: var(--green-mdm-text);
    text-decoration: underline;
}

.td-f-desc img {
    max-width: 100%;
    height: auto;
}

.td-f-preview {
    margin: 0 0 1rem;
    padding: 1rem;
    border: 1px solid var(--td-line);
    border-radius: 12px;
    background: var(--td-alt);
    text-align: center;
}

.td-f-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(16, 52, 73, .12);
}

.td-f-lies {
    margin-top: 2.5rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--td-line);
}

@media (max-width: 991px) {
    .td-f-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "side" "main";
        gap: 1.5rem;
    }

    .td-f-side {
        position: static;
    }
}

@media (max-width: 767px) {
    /* Sur téléphone, la barre de filtres prendrait un tiers de l'écran : elle n'est pas collante */
    .td-bar {
        position: static;
    }

    .td-theme {
        scroll-margin-top: 80px;
    }

    .td-select {
        flex: 1 1 45%;
    }

    .td-grid,
    .td-grid-kits {
        grid-template-columns: minmax(0, 1fr);
    }

    .td-theme-h {
        font-size: 1.35rem;
    }

    .td-free-a {
        width: 100%;
    }

    .td-free-a .td-btn {
        flex: 1;
    }
}

/* ==========================================================================
   2026-11 : podcasts (podcast.php, classes .pd-*)
   ========================================================================== */
.pd {
    --pd-ink: #1f2b33;
    --pd-muted: #5b6770;
    --pd-line: #e3e9ee;
    padding-bottom: 2.5rem;
    color: var(--pd-ink);
}

.pd-k {
    margin: 0 0 .3rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--green-mdm-text);
}

.pd-date {
    margin: 0 0 1rem;
    color: var(--pd-muted);
}

/* Dernier épisode */
.pd-une {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 1.75rem;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 1.25rem;
    border: 1px solid var(--pd-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(16, 52, 74, .06);
}

.pd-une-media {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #e9eef1;
}

.pd-une-media img,
.pd-ep-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 55 / 36;
    object-fit: cover;
}

.pd-une h2 {
    margin: 0 0 .4rem;
    font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--blue-mdm-dark);
    text-wrap: pretty;
}

.pd-une-actions,
.pd-ep-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.25rem;
}

/* Lecteur intégré */
.pd-une.pd-on .pd-une-media img {
    display: none;
}

.pd-une .pd-frame {
    aspect-ratio: 55 / 36;
}

.pd-frame iframe {
    display: block;
    width: 100%;
    border: 0;
}

.pd-frame .pd-if-spotify {
    height: 152px;
    border-radius: 12px;
}

.pd-frame .pd-if-youtube {
    height: auto;
    aspect-ratio: 16 / 9;
}

.pd-une .pd-frame .pd-if-spotify,
.pd-une .pd-frame .pd-if-youtube {
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
}

.pd-ep .pd-frame {
    margin-top: .8rem;
}

/* Boutons et liens */
.pd-play {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem 1rem .45rem .7rem;
    border: 1px solid var(--blue-mdm);
    border-radius: 999px;
    background: #fff;
    font-size: .92rem;
    font-weight: 600;
    color: var(--blue-mdm-dark);
    transition: background .15s, color .15s;
}

.pd-play svg {
    width: 1.15rem;
    height: 1.15rem;
}

.pd-play:hover,
.pd-play:focus-visible,
.pd-on .pd-play {
    background: var(--blue-mdm);
    color: #fff;
}

.pd-play-lg {
    padding: .65rem 1.4rem .65rem 1rem;
    background: var(--blue-mdm);
    font-size: 1rem;
    color: #fff;
}

.pd-play-lg:hover,
.pd-play-lg:focus-visible {
    background: var(--blue-mdm-dark);
    border-color: var(--blue-mdm-dark);
}

.pd-links {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.pd-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid var(--pd-line);
    border-radius: 8px;
    background: #fff;
    transition: border-color .15s, transform .15s;
}

.pd-links a:hover,
.pd-links a:focus-visible {
    border-color: #bcd6e2;
    transform: translateY(-1px);
}

.pd-links svg,
.pd-subs svg {
    width: 1.2rem;
    height: 1.2rem;
}

/* Liste des épisodes */
.pd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 2.5rem;
    align-items: start;
}

.pd-saison + .pd-saison {
    margin-top: 2.5rem;
}

.pd-h {
    display: flex;
    align-items: baseline;
    gap: .7rem;
    margin: 0 0 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-mdm-dark);
}

.pd-h small {
    font-size: .9rem;
    font-weight: 600;
    color: var(--pd-muted);
}

.pd-list {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pd-ep {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 1.1rem;
    padding: .9rem;
    border: 1px solid var(--pd-line);
    border-radius: 12px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.pd-ep:hover,
.pd-ep.pd-on {
    border-color: #c9dbe5;
    box-shadow: 0 4px 14px rgba(16, 52, 73, .07);
}

.pd-ep-media {
    align-self: start;
    border-radius: 8px;
    overflow: hidden;
    background: #e9eef1;
}

.pd-ep h3 {
    margin: 0 0 .7rem;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--blue-mdm-dark);
    text-wrap: pretty;
}

.pd-vide {
    padding: 1.5rem;
    border: 1px dashed #cfdbe2;
    border-radius: 12px;
    text-align: center;
    color: var(--pd-muted);
}

/* Colonne */
.pd-side {
    position: sticky;
    top: 84px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pd-box {
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--pd-line);
    border-radius: 12px;
    background: #fff;
}

.pd-box-alt {
    border-color: #d9eecf;
    background: #f4faf0;
}

.pd-box p {
    margin: 0 0 .7rem;
    font-size: .93rem;
    line-height: 1.55;
    color: #36424b;
}

.pd-box .pd-box-t {
    margin-bottom: .4rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blue-mdm-dark);
}

.pd-box .pd-box-s {
    margin: .9rem 0 .5rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--pd-muted);
}

.pd-subs,
.pd-also {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pd-subs li + li,
.pd-also li + li {
    border-top: 1px solid #eef2f5;
}

.pd-subs a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem 0;
    font-weight: 600;
    color: var(--blue-mdm-dark);
    text-decoration: none;
}

.pd-also a {
    display: block;
    padding: .45rem 0;
    font-weight: 600;
    color: var(--blue-mdm-dark);
    text-decoration: none;
}

.pd-subs a:hover,
.pd-also a:hover,
.pd-more:hover {
    color: var(--blue-mdm);
    text-decoration: none;
}

.pd-more {
    font-weight: 600;
    color: var(--green-mdm-text);
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .pd-layout,
    .pd-une {
        grid-template-columns: minmax(0, 1fr);
    }

    .pd-side {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .pd-une {
        padding: .9rem;
        gap: 1rem;
    }

    .pd-ep {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: .8rem;
        padding: .75rem;
    }

    .pd-ep h3 {
        font-size: 1rem;
    }
}
