/*  1.3.0 */

.loader-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #ffffff;
    border-top-color: var(--fifth-color);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =============================================================================
   1) FICHES
============================================================================= */

.fiche-animate {
    padding: 0;
    overflow: hidden;
}

.skeleton {
    background: #eee;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    height: 100%;
    width: 100%;
    background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0) 100%
    );
    animation: skeleton-loading 1.4s ease infinite;
}

@keyframes skeleton-loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.skel-title {
    height: 22px;
    margin-bottom: 12px;
}

.skel-line {
    height: 14px;
    margin-bottom: 8px;
}

.skel-block {
    height: 180px;
    margin-bottom: 16px;
}

.fiche-wrapper {
    background: linear-gradient(to bottom, #0046ae 3%, rgba(0, 93, 184, 0.63) 7%, transparent 20%, transparent 100%),
    url("../assets/mer.svg");
    min-height: 100%;
    background-size: 100% auto;
    background-repeat: repeat-y;
    background-position: center bottom;
    position: relative;
    z-index: 1;

}

/* Animation apparition fiche */
.fiche-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2s ease, transform 2s ease;
}

/* Quand la classe active est ajoutée */
.fiche-animate.show {
    opacity: 1;
    transform: translateY(0);
}

/******************
HEADER
****************/
.fiche-header {
    display: flex;
    flex-direction: row;
    height: var(--fiche-header-h);
    padding-bottom: calc(var(--fiche-header-content-top) - 2vh);
    padding-left: 4%;
    padding-right: 4%;
}

/*.bkg-header{*/
/*    background: url("../assets/losange-header.svg") no-repeat var(--diamond-background-left) var(--diamond-background-top);*/
/*    background-size: var(--diamond-background-size);*/
/*}*/
.fiche-header * {
    font-family: 'DanoneOne', sans-serif;
}

.title-header {
    Position: relative;
    padding-top: var(--fiche-header-content-top);
    padding-right: 5% !important;
    overflow: hidden;
    z-index: 2;
}

.fiche-header .content {
    position: relative;
    top: 0;
}

.fiche-header .content .title {
    color: #fff !important;
    text-transform: uppercase;
    font-weight: 600;
    font-size: var(--title-fs);
}

.fiche-header .content .description {
    color: #fff;
    line-height: 1.2;
    width: 100%;
    margin: 0 0 24px 0;
}

a.link-pdf {
    position: absolute;
    width: auto;
    top: calc(var(--fiche-header-content-top) / 3.5);
    right: 45px;
    background-color: #FFF;
    padding: 2px 10px;
    border-radius: 5px;
    color: #e53930;
    text-align: center;
}

a.link-pdf:hover, a.link-pdf:focus {
    transform: scale(1.1);
}

@media (min-width: 641px) {

    .fiche-header .content {
        padding: 0 4% 0 3%;
    }

    .fiche-header .content .title {
        font-size: var(--font-size-lg);
        line-height: 1.3;
        letter-spacing: 0.03em;
    }

    .fiche-header .content .description {
        font-size: var(--font-size-lg);
        margin: 25px 0 0;
    }
}

#diamond-desktop {
    display: block;
}

#diamond-mobile {
    display: none;
}

.cartouche-simple svg {
    max-width: 40%;
}

img._idDiamond {
    display: none;
    z-index: 1;
    position: absolute;
}

.title {
    color: #fff;
    font-family: 'DanoneOne Condensed', sans-serif;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.title h1, .title h2 {
    text-transform: uppercase;
}

.title h1 {
    font-size: var(--title-h1-fs);
    margin: 0 0 14px 0;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    white-space: normal;
    font-weight: bold;
}

.title h2 {
    font-size: var(--title-h1-fs);
    display: inline-block;
    background: var(--fiche-color-2);
    padding: 0 0.3em 0.1em;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}


@media (min-width: 641px) {
    img._idDiamond {
        position: absolute;
        top: -110px;
        left: -210px;
        height: 485px;
        object-fit: contain;
        z-index: 1;
        display: block;
    }

    .title-header.title {
        position: absolute;
        top: 50px;
        left: 0;
        right: 0;
        width: 96%;
        padding: 0 60px;
        z-index: 2;
        color: #fff;
        text-align: left;
        pointer-events: none;
        box-sizing: border-box;
    }

}

@media (min-width: 767px) {
    .cartouche-simple svg {
        max-width: 60%;
    }

    .fiche-header {
        padding-bottom: calc(var(--fiche-header-content-top) + 3vh);
    }

    .fiche-header .content {
        top: var(--fiche-header-content-top);
    }

    encart-accordion-bloc::before {
        left: 15px;
        right: -15px;
        top: 15px;
        bottom: -15px;
    }

    .accordion-title-text::before,
    .accordion-title-text::after {
        content: "";
        flex: 1;
        height: 3px;
        background: #fff;
    }

    .accordion-title-text {
        margin-left: 40px;
    }

    .cartouche-simple .col-titre {
        border-right: 2px solid var(--color);
    }

    .cartouche-simple svg {
        max-width: 100%;
    }
}

/***********************************
ACCORDEONS
**********************************/
.encart-accordion-bloc {
    position: relative;
    z-index: 2;
}


[class*="color-model-"] .encart-accordion-top,
[class*="color-model-"] .encart-accordion-header-desktop,
[class*="color-model-"] .encart-accordion-header-mobile,
[class*="color-model-"] .encart-accordion-panel,
[class*="color-model-"] .cartouche-simple,
.timeline-junction {
    background-color: var(--bkg-color);
}

[class*="color-model-"] .accordion-title-text,
[class*="color-model-"] .timeline-number,
[class*="color-model-"] .encart-accordion-header-mobile,
.timeline-junction {
    color: var(--color);
}

[class*="color-model-"] .timeline-diamond {
    border-color: var(--color);
}

[class*="color-model-"] .timeline-row-line {
    background: var(--color);
}

/* Bordures */
[class*="color-model-"] .timeline-diamond {
    border-color: var(--color);
}

.encart-accordion-bloc::before {
    content: "";
    position: absolute;
    left: 5px;
    right: -5px;
    top: 5px;
    bottom: -5px;
    background: url(../assets/fond_terre_1.svg) no-repeat center top;
    background-size: cover;
    z-index: -1;
    border-radius: var(--border-radius-2);
}

.etapes-cles .encart-accordion-bloc::before {
    background: none;
    border-radius: 0;
}

.cartouche-simple {
    padding: 18px 22px 18px 22px;
    border-radius: var(--border-radius-2);
    color: #000;
    width: 80%;
}

.cartouche-simple .col-titre {
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    color: var(--color);
    stroke: var(--color);
}

.cartouche-lien-extranet {
    padding: 14px 22px 13px 10px;
    border-radius: var(--border-radius-2);
    background-color: var(--bkg-color);
    max-width: var(--md-cartouche-w);
    cursor: pointer;
    pointer-events: auto;
}

.encart-accordion-panel a {
    display: inline-flex; /* inline-flex pour aligner icône + texte */
    align-items: center;
    gap: .6rem; /* espace entre icône et texte */
    text-decoration: none;
    font-weight: bold;
    background-color: white;
    color: var(--prim-color);
    padding: .5rem 2rem;
    border-radius: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18),
    0 2px 16px rgba(0, 0, 0, 0.18);
    margin: 2rem 0;
}

.encart-accordion-panel a::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("../assets/fleche-extranet.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    flex-shrink: 0; /* évite que l’icône se compresse */
}

.encart-accordion-panel a:hover, .encart-accordion-panel a:focus {
    background-color: var(--color);
    color: #fff;
}

.lien-extranet .encart-accordion-bloc a {
    color: #000;
    font-size: var(--font-size-xl);
    font-weight: bold;
    transition: all 0.2s ease-in-out;
}

.lien-extranet .encart-accordion-bloc::before {
    max-width: var(--md-cartouche-w);
    content: "";
    background-color: var(--color);
    border-radius: 50px;
    left: 0;
    right: -15px;
    top: 12px;
    bottom: -10px;
    background-image: none;
    z-index: -1;
}

.cartouche-lien-extranet:hover, .cartouche-lien-extranet:focus {
    background-color: var(--color);
}

.lien-extranet .encart-accordion-bloc:hover a, .lien-extranet .encart-accordion-bloc:focus a {
    color: #fff;
    background-color: var(--color);
}

.cartouche-lien-extranet svg {
    fill: var(--color);
    max-width: 30px;
    height: auto;
}

.cartouche-lien-extranet:hover svg, .cartouche-lien-extranet:focus svg {
    fill: #fff;
}

.lien-extranet .encart-accordion-bloc:hover::before,
.lien-extranet .encart-accordion-bloc:focus::before {
    background-color: var(--bkg-color);
}

.accordion-title-text {
    font-size: var(--font-size-xxl);
    font-weight: bold;
    text-transform: uppercase;
}

.accordion :is(p, li) {
    font-size: var(--font-size-lg);
}

.accordion :is(strong,b) {
    font-weight: 800;
}

@media (min-width: 992px) {
    .accordion .text-lg-end ul {
        list-style-position: inside;
    }
}

.cartouche-simple p:last-of-type {
    margin-bottom: 0;
}

.bkg-light {
    background-color: rgba(255, 255, 255, 0.74);
    padding: 20px;
    border-radius: var(--border-radius-2);

}

.accordion-paragraph .column p,
.text-full-width li {
    padding-left: var(--puce-h4-w);
}

.accordion-paragraph h4 {
    font-size: var(--font-size-xl) !important;
    line-height: 1.1;
}

.timeline-desktop,
.encart-accordion-header-desktop {
    display: block;
}

.timeline-mobile,
.encart-accordion-header-mobile {
    display: none;
}

.timeline.two {

}

.accordion-paragraph {
    display: flex;
    flex-direction: column;
}

.accordion-paragraph .column h4,
.accordion-paragraph .column .puce p:first-of-type {
    position: relative;
    padding-left: var(--puce-h4-w);
}

.text-full-width li {
    position: relative;
    padding-left: var(--puce-h4-w);
    list-style: none;
}

.accordion-paragraph .column h4::before,
.accordion-paragraph .column .puce p:first-of-type::before,
.text-full-width li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.1em;
    width: var(--puce-h4-w);
    height: 24px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left center;
}

.accordion-paragraph.no-puce .column ul li,
.accordion-paragraph.no-puce .full-text li {
    list-style: none;
    position: relative;
    padding-left: 32px;
}

.text-full-width li::before {
    width: calc(var(--puce-h4-w) / 2);
}

.timeline.two {
    border-radius: var(--border-radius-2);
    padding-top: 30px;
    margin-bottom: 15px;
}

.accordion-paragraph.no-puce .full-text li::before,
.accordion-paragraph.no-puce .column ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2rem;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left center;
}

[class*="color-model-"] .accordion-paragraph .column h4::before,
[class*="color-model-"] .accordion-paragraph .column .puce p:first-of-type::before,
[class*="color-model-"] .text-full-width li::before,
[class*="color-model-"] .accordion-paragraph.no-puce .full-text li::before,
[class*="color-model-"] .accordion-paragraph.no-puce .column li::before {
    background-image: var(--puce-arrow);
}

.accordion-paragraph.no-puce .column .puce p:first-of-type::before {
    background-image: none;
}

.columns-2 {
    flex-direction: row;
}

.columns-2 .column {
    width: 50%;
}

.columns-3 {
    flex-direction: row;
}

.columns-3 .column {
    width: 33%;
}

.columns-4 {
    flex-direction: row;
}

.columns-4 .column {
    width: 25%;
}

.columns-2,
.columns-3,
.columns-4 {
    display: flex;
    flex-direction: row;
    gap: 4%;
}

.accordion-columns-chained.row {
    margin-right: -40px; /*elargissement pour compenser la derniere colonne moins large*/
}

.accordion-columns-chained .texte {
    width: 80%;
    float: left;
}

.boxed {
    padding: 20px 12px 10px;
    border-radius: var(--border-radius-1);
}

.boxed p:last-of-type {
    margin-bottom: 0;
}

.etapes-cles .boxed {
    position: relative;
    border-radius: var(--border-radius-2);
    padding: 20px;
    isolation: isolate; /* empilement fiable */
}

.etapes-cles .boxed::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translate(15px, 15px);
    background: url(../assets/fond_terre_1.svg) no-repeat center top / cover;
    border-radius: inherit;
    z-index: -2;
    pointer-events: none;
}

.etapes-cles .boxed::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(255, 243, 238);
    border-radius: inherit;
    z-index: -1;
    pointer-events: none;
}

.etapes-cles .boxed > * {
    position: relative;
    z-index: 0;
}


.accordion-columns-chained .texte.boxed,
.boxed {
    background-color: rgb(255, 243, 238);
}

.accordion-columns-chained .signe {
    width: 20%;
    float: right;
    padding-top: 10px;
}

.accordion-columns-chained h4 {
    border-radius: var(--border-radius-1);
    border: 2px solid;
    padding: 10px;
    background-color: #FFF;
    text-align: center;
}

.accordion-columns-chained .column {
    padding: 2rem 0;
}

.accordion-columns-chained .column:first-child h4 {
    color: var(--chained-item-color-1);
    border-color: var(--chained-item-color-1);
}

.accordion-columns-chained .column:nth-child(2) h4 {
    color: var(--chained-item-color-2);
    border-color: var(--chained-item-color-2);
}

.accordion-columns-chained .column:nth-child(3) h4 {
    color: var(--chained-item-color-3);
    border-color: var(--chained-item-color-3);
}

.accordion-columns-chained .puce {
    min-width: 70px;
}

.accordion {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 60px;
}

.encart-accordion-wrapper {
    position: relative;
    width: 100%;
}

.cartouche-info {
    border-radius: var(--border-radius-2);
    display: flex;
    flex-direction: row;
    width: 52%;
    padding: 2% 20px;
}

.cartouche-info.a-retenir {
    width: 100%;
}

.cartouche-info.a-retenir svg {
    max-width: 120px;
    height: auto;
}

.cartouche-info.a-retenir p:last-of-type {
    margin-bottom: 0;
}

.cartouche-info.toggle-switch-box {
    justify-content: center;
    align-items: center;
    gap: 18px;

}

[class*="color-model-"] .cartouche-info,
[class*="color-model-"] .timeline.two {
    background-color: var(--bkg-color-cartouche-2);
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 20px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
}

.color-model-1 .toggle-switch {
    background-image: url("../assets/toggle-switch-model-1.svg");
}

.color-model-2 .toggle-switch {
    background-image: url("../assets/toggle-switch-model-2.svg");
}

.cartouche-info.toggle-switch-box .text {
    width: 85%;
    margin-left: 8px;
    display: inline-block;
    font-size: var(--font-size-base);
}

.cartouche-info.toggle-switch-box .text p {
    margin-bottom: 0;
}

.cartouche-info.note .picto {
    position: relative;
}

.cartouche-info.note .picto svg {
    max-width: 70px;
}

.cartouche-info.note .picto::after {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 2px;
    background-color: var(--color);
}

.cartouche-info.note .text {
    display: flex;
    font-size: var(--font-size-lg);
    font-weight: 200;
}

.cartouche-info.note .text p {
    margin-bottom: 0;
}

.timeline-number-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
    position: relative;
}

.timeline-diamond {
    width: 28px;
    height: 28px;
    background-color: white;
    border: 2px solid;
    border-radius: 6px;
    transform: rotate(45deg);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    z-index: 2;
}

.timeline-number {
    transform: rotate(-45deg);
    font-size: 18px;
    line-height: 1;
    margin-bottom: 1px;
    font-weight: bold;
}

.timeline-line {
    width: 2px;
    height: 40px;
    background-color: var(--timeline-accent-color);
    margin-top: -2px;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.columns_arrows .column {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

.columns_arrows .text-sup {
    flex-grow: 1;
}

.columns_arrows .text-sup p:last-of-type,
.columns_arrows .text-inf p:last-of-type {
    margin-bottom: 0;
}

.arrow-down img {
    height: 120px;
    width: auto;
}

.columns_arrows .arrow-down {
    margin: 1rem auto;
}

.columns_arrows .text-inf {
    flex-shrink: 0;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-2);
    background-color: var(--bkg-color-cartouche-2);
    font-weight: bold;
}

.accordion-tableau table {
    text-align: center;
    border-radius: var(--border-radius-2);
    border-collapse: separate;
    overflow: hidden;
    width: 100%;
    table-layout: fixed;
}

.accordion-tableau thead {
    background-color: var(--color);
    line-height: 1;
    font-weight: bold;
}

.accordion-tableau table th,
.accordion-tableau table td {
    padding: 0.35rem 1rem;
    font-weight: lighter;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.accordion-tableau table tbody.table-striped tr:nth-child(even) {
    background-color: var(--bkg-color-cartouche-2);
}

.accordion-tableau table tbody.table-striped tr:nth-child(odd) {
    background-color: #ffffff;
}

.accordion-tableau .table-footer p {
    margin-bottom: 0
}

.accordion-tableau table tr.table-footer {
    background-color: transparent;
}

.accordion-tableau .texte_col_gauche * {
    font-size: var(--font-size-lg);
}

.trimestre-box {
    background-color: var(--color);
    color: white;
    font-weight: 800;
    text-align: center;
    border-radius: 25px;
    padding: 5px 22px;
    font-size: var(--font-size-lg);
    display: inline-block;
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    .timeline-desktop,
    .encart-accordion-header-desktop {
        display: none;
    }

    .timeline-mobile,
    .encart-accordion-header-mobile {
        display: block;
        border-radius: var(--border-radius-2);
    }

    .encart-accordion-bloc {
        width: auto;
        margin: 0 auto 32px auto;
        /*background: #fff;*/
        border-radius: 21px;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08), 0 8px 32px rgba(0, 0, 0, 0.08);
        position: relative;
        cursor: pointer;
    }

    .encart-accordion-top {
        display: none;
    }

    .encart-accordion-header-mobile {
        padding: 24px 16px;
        text-align: center;
    }

    ._pictoAccordion {
        display: block;
        position: absolute;
        top: -56px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }

    img._pictoPlacementAccordion {
        width: 80px;
        height: 80px;
        object-fit: contain;
        display: block;
    }

    .encart-accordion-panel {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-radius: 0 0 21px 21px;
        padding: 0 16px;
    }

    .encart-accordion-panel.open {
        max-height: 1200px;
        padding: 16px;
        transition: max-height 0.3s ease;
    }

    .columns-2, .columns-3, .columns-4 {
        flex-direction: column !important;
    }

    .columns-2 .column, .columns-3 .column, .columns-4 .column {
        width: 100% !important;
    }

    .toggle-switch-box {
        margin: 8px 0;
        padding: 8px 16px;
        border-radius: 8px;
        border: none;
        background: #fff;
        color: inherit;
        cursor: pointer;
    }

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

    .timeline-step {
        border-radius: 12px;
        padding: 6px 16px;
        font-size: 16px;
    }

    .timeline-list {
        padding: 20px;
        border-radius: 10px;
        max-width: 500px;
        margin: 20px auto;
    }

    .timeline-item {
        display: flex;
        align-items: flex-start;
    }

    .timeline-item:last-child {
        margin-bottom: 0;
    }

    .timeline-item:last-child .timeline-line {
        display: none;
    }

    .timeline-text {
        font-size: 15px;
        line-height: 1.4;
        margin: 0;
        padding-top: 2px;
    }

    .timeline-text strong {
        font-weight: bold;
    }

    .timeline-list {
        padding: 16px;
        margin: 8px;
        max-width: 100%;
    }

    .accordion-paragraph.puces ul {
        margin: 8px 0 0 0;
        padding-left: 0;
        list-style: none;
    }

    .accordion-paragraph.puces li {
        margin-bottom: 8px;
        font-size: 15px;
        display: flex;
        align-items: flex-start;
    }

}

@media (min-width: 641px) {
    ._pictoAccordion {
        display: none;
    }

    .encart-accordion-header-desktop {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 34px 16px;
        text-align: center;
    }

    .accordion-title-bar {
        position: absolute;
        top: 85%;
        right: -5%;
        left: auto;
        padding: 8px 15px 8px 0;
        transform: translateY(-50%);
        width: 95%;
        min-height: 40px;
        height: auto;
        background: #fff;
        border-radius: 8px;
        z-index: 1;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        display: flex;
        align-items: center;
        overflow: visible;
    }

    .accordion-title-bar.fullwidth {
        width: 105%;
        border-radius: 0;
    }

    .accordion-logo {
        position: absolute;
        left: -50px;
        /*top: 25%;*/
        transform: translateY(-11%);
        height: 100px;
        width: auto;
        z-index: 2;
        pointer-events: none;
        background: none;
    }

    .accordion-title-text {
        margin-left: 50px;
        font-weight: bold;
        top: 10%;
        position: relative;
        z-index: 3;
    }

    .encart-accordion-header-desktop span {
        position: relative;
    }

    .encart-accordion-panel {
        max-height: none !important;
        overflow: visible !important;
        padding: 5% 5% 3% 10%;
        border-radius: 0 0 var(--border-radius-2) var(--border-radius-2);
        transition: none;
        background: inherit;
        display: block;
    }

    .etapes-cles .encart-accordion-panel {
        padding: 0 0 10%;
    }

    .accordion-paragraph.puces ul {
        display: flex;
        gap: 12px;
        list-style: none;
        padding-left: 0;
        margin: 0;
    }

    .accordion-paragraph.puces li {
        display: flex;
        align-items: flex-start;
        font-size: 15px;
        font-weight: normal;
        background: none;
        margin-bottom: 0;
        flex: 1 1 0;
        min-width: 0;
    }


    .encart-accordion-wrapper {
        padding-left: 4%;
        padding-right: 4%;
    }

    .accordion-paragraph.timeline .timeline-list {
        display: flex;
        flex-direction: column;
        gap: 32px;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .timeline-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        position: relative;
        margin-bottom: 24px;
    }

    .timeline-row .timeline-number-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 33.33%;
    }

    .timeline-row .timeline-number-wrapper.long {
        width: 42%;
    }

    .timeline-row .timeline-number-wrapper.short {
        width: 26%;
    }

    .timeline-junction {
        width: 11%;
        z-index: 3;
        text-align: center;
        font-weight: bold;
        font-size: var(--font-size-lg);
    }

    .timeline-row .timeline-diamond {
        margin: 0 auto;
    }

    .timeline-row .timeline-text {
        text-align: center;
        margin-top: 12px;
        font-size: var(--font-size-lg);
        min-height: 40px;
        width: 70%;
    }

    .timeline-row .timeline-text P {
        margin-bottom: 0;
    }

    .timeline-row-line {
        position: absolute;
        top: 12px;
        left: 0;
        right: 0;
        height: 2px;
        z-index: 0;
    }

    .two .timeline-row-line {
        width: 55%;
        margin: auto;
    }

    .encart-accordion-header-desktop {
        border-radius: 20px 20px 0 0;
        margin-bottom: -1px;
    }
}

.parts-des-regimes .section1 {
    background-color: rgb(212, 241, 252);
    border-radius: var(--border-radius-2);
}

.parts-des-regimes .section1 > header {
    background-color: #fff;
    height: 80px;
    border-radius: var(--border-radius-2) var(--border-radius-2) 0 0;
    text-align: center;
    color: rgb(0, 172, 237);
    font-size: 24px;
    font-weight: bold;
    line-height: 100px;
}

.parts-des-regimes .section2 {
    background-color: var(--fiche-color-3);
    border-radius: var(--border-radius-2);
    min-height: 100px;
}

.parts-des-regimes .section3 {
    background-color: rgb(226, 243, 243);
    border-radius: var(--border-radius-2);
    min-height: 100px;
}

.parts-des-regimes .titre {
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
}

.parts-des-regimes .texte {
    text-align: center;
}

.motifvague {
    position: relative;
    background: url("../assets/motif-verticale-vague.png");
    background-repeat: repeat-y;
    background-position: left center;
    background-size: auto;
}


.etapes-cles .encart-accordion-header-desktop .accordion-title-text {
    margin-left: 0;
    font-size: var(--font-size-xxxl);
    color: #fff
}

.encart-accordion-header-mobile.etapes-cles-mobile {
    background-color: rgb(238, 140, 107);
    color: #FFF
}

.etape-badge {
    margin-top: calc(var(--font-size-xxxl) + 5px);
    position: relative;
    width: 120px;
    height: 60px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.etape-badge::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 16px solid #fff;
}

.etape-badge span {
    font-size: 48px;
    font-weight: 700;
    color: rgb(238, 140, 107);;
    line-height: 1;
}

.accordion-title-text {
    display: flex;
    align-items: center;
    gap: 16px;
}

.accordion-title-text div {
    display: flex;
    margin: auto;
}


/***********************************
FOOTER
*/

.footer {
    width: 100%;
    height: 200px;
    background: rgba(34, 34, 34, 0);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DanoneOne Condensed', sans-serif;
    font-size: 24px;
    position: relative;
    overflow: hidden;
}

.footer .circle {
    position: absolute;
    right: -150px;
    bottom: -385px;
    width: 568px;
    height: 568px;
    background: #ffffff;
    border-radius: 50%;
    z-index: 1;
}

.footer .logo {
    position: absolute;
    right: 0;
    top: 80px;
    width: 300px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.footer .logo img {
    width: 225px;
    height: auto;
    object-fit: contain;
}


/*******************************
   MODALE — Bootstrap
********************************/

.modale-ma-mobilite .modal-picto {
    position: absolute;
    background: url('../assets/pictos/boussole.png') no-repeat center center;
    background-size: contain;
    width: var(--modal-picto-size-lg);
    aspect-ratio: 863 / 680;
    transform: translate(0%, -56%);
    z-index: 21;
}

.modale-ma-mobilite .modal-body hr {
    display: none
}

.modale-ma-mobilite .modal-content::before {
    content: "";
    position: absolute;
    top: -35px;
    left: -70px;
    width: 300px;
    height: 300px;
    background-image: url("../assets/corde02.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 20;
    pointer-events: none;
}

.modale-ma-mobilite .js-modal-body {
    position: relative;
    z-index: 12;
}

.js-modal-body .fiche-animate {
    border-radius: var(--border-radius-2);
}

.modale-ma-mobilite .modal-header .btn-close {
    top: -28px;
    right: -28px;
}

.modale-ma-mobilite h5.modal-title {
    margin-top: 25px;
    colorr: #fff
}

.fiches-list-group .list-group-item {
    position: relative;
    padding: 15px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-transform: capitalize;
    height: auto;
}

.fiches-list-group:not(.js-mobilite-fiches) .list-group-item {
    border-bottom: 1.5px solid var(--fifth-color);
}

.fiche-card {
    padding: 10px 5px;
}

.fiche-card img {
    max-width: 70px;
    height: auto;
    max-height: 70px;
}

.js-mobilite-fiches .fiche-card img {
    max-width: 80px;
}

.fiche-card p {
    line-height: 1;
    font-weight: 400;
    margin: 5px 0 0;
}

.js-mobilite-fiches .fiche-card {
    background-color: #fff;
    border-radius: var(--border-radius-1);
    padding: 10px 8px;
    width: 100%;
    font-size: var(--fiche-btn-fs) !important;
    font-weight: normal;
    line-height: 1;
}
.js-mobilite-fiches .fiche-card p {
    font-size: var(--fiche-btn-fs) !important;

}

.modal-content {
    padding: 15px 15px;
    border: none !important;
}

#ThematiqueModal .modal-body .trait {
    border-top: 1.5px solid var(--fifth-color);
}

#ThematiqueModal *::-webkit-scrollbar {
    width: 12px !important;
}

#ThematiqueModal *::-webkit-scrollbar-track {
    background: transparent !important;
}

#ThematiqueModal *::-webkit-scrollbar-thumb {
    background: var(--fiche-color-1) !important;
    border-radius: 16px !important;
}

#ThematiqueModal *::-webkit-scrollbar-thumb:hover {
    background: var(--fiche-color-2) !important;
}

.fiche-content p.msg-user {
    font-size: var(--font-size-xl);
    text-align: center;
    margin-top: 12%;
}

.modale-ma-mobilite .js-modal-body .fiche-content p.msg-user {
    color: #FFF
}

.fiche-content p.msg-user::before {
    display: inline-block;
    content: "";
    width: 0.8em;
    height: 0.8em;
    margin-right: 0.6em;
    margin-top: 0.25em;
    mask: url("../assets/pictos/picto-arrow-left-green.svg") no-repeat center / contain;
    -webkit-mask: url("../assets/pictos/picto-arrow-left-green.svg") no-repeat center / contain;
    flex-shrink: 0;
}

#ThematiqueModal .modal-body {
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

#ThematiqueModal .js-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#ThematiqueModal .js-modal-body > .row {
    flex: 1 1 auto;
    min-height: 0;
    flex-wrap: nowrap;
    align-items: stretch;
}

#ThematiqueModal .modal-dialog {
    height: 100vh;
}

#ThematiqueModal .modal-content {
    height: 95%;
    display: flex;
    flex-direction: column;
}

#ThematiqueModal .js-modal-body > .row > .fiches-list-group,
#ThematiqueModal .js-modal-body > .row > .fiche-content,
#ThematiqueModal .js-modal-body > .row > [class*="col-"] {
    min-height: 0;
    min-width: 0;
}

/* Scroll colonne gauche */
#ThematiqueModal .fiches-list-group {
    width: var(--fiches-list-width, 20%);
    max-height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 2%;
}


/* Scroll colonne droite */
#ThematiqueModal .fiche-content {
    width: var(--fiche-content-width, 80%);
    height: 100%;
    overflow-y: auto;
}

.modal-content,
.modal-body,
.js-modal-body,
.js-modal-body > .row,
.js-modal-body > .row > [class*="col-"] {
    min-height: 0;
}


/* ===== MODE VIDEO : pas de scroll, la vidéo tient dans la colonne ===== */
#ThematiqueModal .fiche-content .js-video-player-box {
    max-width: var(--video-max-width);
    height: 75%;
    margin: auto;
}

#ThematiqueModal .fiche-content .js-video-player-box iframe,
#ThematiqueModal .fiche-content .js-video-player-box video {
    width: 100%;
    height: 100%;
    display: block;
}

#ThematiqueModal .fiche-content .js-video-meta {
    max-width: var(--video-max-width);
    flex: 0 0 auto;
    margin-top: .75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/*#ThematiqueModal .fiche-content .js-video-player{*/
/*    height: 100%;*/
/*    min-height: 0;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    overflow: hidden !important;*/
/*}*/

@media (max-width: 641px) {
    .modale-ma-mobilite .modal-header .btn-close {
        top: -20px;
        right: -20px;
    }
}

@media (min-width: 767px) {
    .cartouche-lien-extranet {
        border-radius: 50px;
    }

    .modale-ma-mobilite .modal-content::after {
        content: "";
        position: absolute;
        top: -78px;
        right: -54px;
        width: 458px;
        height: 576px;
        background-image: url("../assets/corde01.png");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        z-index: 0;
        pointer-events: none;
    }
}

@media (max-width: 1099px) {
    .cartouche-info {
        width: 100%;
        margin-bottom: 15px;
    }

    .cartouche-info.note .picto::after {
        content: "";
        width: 0;
        background-color: transparent;
    }

    .fiches-list-group .list-group-item {
        height: 200px
    }

    .picto-wrapper {
        min-height: 80px;
    }

    .encart-accordion-panel {
        max-height: 0;
        overflow: hidden;
        transition: max-height .4s ease;
    }

    .accordion.is-open .encart-accordion-panel {
        max-height: 2000px !important; /* valeur large suffisante */
    }

    .encart-accordion-header-mobile.is-open-header {
        border-radius: var(--border-radius-2) var(--border-radius-2) 0 0;
    }

    /*.color-model-w .cartouche-simple{*/
    /*    width: 100%;*/
    /*}*/
    /* Backbar visible seulement en mode DETAIL */
    #ThematiqueModal .js-modal-body .js-mobile-backbar {
        display: none;
        margin-bottom: .75rem;
    }

    #ThematiqueModal .js-modal-body.is-mobile-detail .js-mobile-backbar {
        display: block;
    }

    /* LISTE plein écran */
    #ThematiqueModal .js-modal-body.is-mobile-list .fiche-content {
        display: none !important;
    }

    #ThematiqueModal .js-modal-body.is-mobile-list .fiches-list-group {
        width: 100% !important;
    }

    /* DETAIL plein écran */
    #ThematiqueModal .js-modal-body.is-mobile-detail .fiches-list-group {
        display: none !important;
    }

    #ThematiqueModal .js-modal-body.is-mobile-detail .fiche-content {
        display: block !important;
        width: 100% !important;
    }

    /* 1) la modale doit contraindre la hauteur */
    #ThematiqueModal .modal-content {
        display: flex;
        flex-direction: column;
        max-height: 90dvh;
        overflow: hidden;
    }

    /* 2) le body prend l’espace disponible */
    #ThematiqueModal .modal-body {
        flex: 1 1 auto;
        overflow: hidden;
        min-height: 0; /* ✅ sécurité iOS/flex */
    }

    /* 3) le wrapper interne doit aussi pouvoir contenir */
    #ThematiqueModal .js-modal-body {
        height: 100%; /* ✅ on garde ton comportement qui marche */
        overflow: hidden;
        display: flex;
        flex-direction: column;
        min-height: 0; /* ✅ sécurité iOS/flex */
    }

    /* 4) en mode DETAIL : fiche-content doit scroller */
    #ThematiqueModal .js-modal-body.is-mobile-detail .fiche-content {
        flex: 1 1 auto;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        min-height: 0;
    }

    /* en mode LIST : la liste scrolle */
    #ThematiqueModal .js-modal-body.is-mobile-list .fiches-list-group {
        flex: 1 1 auto;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        min-height: 0;
    }
}

@media (max-width: 1040px) {
    .etapes-cles .encart-accordion-header-desktop .accordion-title-text {
        font-size: 24px;
    }
}

@media (min-width: 940px) {
    #ThematiqueModal .modal-body {
        display: flex;
    }

    .encart-accordion-bloc::before {
        left: 12px;
        right: -12px;
        top: 12px;
        bottom: -12px;
    }

    .encart-accordion-panel {
        max-height: 0;
        overflow: hidden;
        transition: max-height .4s ease;
    }

    .accordion.is-open .encart-accordion-panel {
        max-height: 2000px !important; /* valeur large suffisante */
    }

}

