.demarche {
    --dm-blue: #2B6CB8;
    --dm-blue-dark: #132a67;
    --dm-white: #FFFFFF;
    --dm-text: #222222;
}

.demarche *,
.demarche *::before,
.demarche *::after {
    box-sizing: border-box;
}

.demarche-banner {
    width: 100%;
    max-height: 260px;
    overflow: hidden;
}

.demarche-banner__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.demarche-container {
    padding-top: 1.5rem;
    padding-bottom: 0;
    max-width: 1045px !important;
}

.demarche-intro {
    margin-bottom: 2rem;
}

.demarche-chapo {
    font-family: "Karma";
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 50px;
    color: var(--dm-text);
    margin: 0 0 1rem 0;
    max-width: 30ch;
}

.demarche-visuel img {
    max-width: 100%;
    height: auto;
}

.demarche-nav {
    border-bottom: 1px solid #CACAFB;
    margin-bottom: 0;
    margin-top: 1rem;
}

.demarche-nav__link,
.demarche-nav__link[href] {
    background-image: none !important;
}

.demarche-nav ul {
    list-style: none;
    margin: -3px;
    padding: 0;
    display: flex;
    gap: 0;
}

.demarche-step:nth-child(2) .demarche-col ul,
.demarche-step:nth-child(2) .demarche-texte-riche ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.demarche-step:nth-child(2) .demarche-col ul li,
.demarche-step:nth-child(2) .demarche-texte-riche ul li {
    padding-left: 1.8rem;
    position: relative;
    margin-bottom: 0.75rem;
    font-family: "Montserrat", "Arial", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(19, 42, 103);
    line-height: 1.5;
}

.demarche-step:nth-child(2) .demarche-col ul li::before,
.demarche-step:nth-child(2) .demarche-texte-riche ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.demarche-nav__link {
    font-family: "Montserrat", "Arial", sans-serif;
    display: block;
    padding: 0.75rem 1.25rem 0.65rem;
    font-size: 0.875rem;
    color: #3a3a3a;
    text-decoration: none;
    margin-bottom: -1px;
    border-bottom: 3px solid transparent;
    font-weight: 400;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.demarche-nav__link:hover {
    color: var(--dm-blue);
    background: none;
    text-decoration: none;
}

.demarche-nav__link--active {
    color: var(--dm-text);
    border-bottom-color: var(--dm-blue);
}

.demarche-details {
    padding: 2.5rem 0 3rem;
    scroll-margin-top: 80px;
}

.demarche-titre-demarche {
    font-family: "Karma" !important;
    font-size: 1.875rem;
    color: var(--dm-white);
    font-weight: 400;
    margin: 0 0 2.5rem 0;
}

.demarche-steps-wrapper {
    position: relative;
}

.demarche-steps-wrapper::before {
    display: none;
}

.demarche-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.demarche-step__num {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1px solid var(--dm-white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    background-color: #0d7bc6;
}

.demarche-step__num span {
    font-family: "Montserrat", "Arial", sans-serif !important;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--dm-white);
    line-height: 1;
}

.demarche-step__num::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 1px;
    height: var(--line-height, 0px);
    background: rgba(255, 255, 255, 0.3);
    z-index: 0;
    pointer-events: none;
}

.demarche-step__content {
    flex: 1;
    min-width: 0;
}

.demarche-step__label {
    font-family: "Montserrat" !important;
    color: var(--dm-white);
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0 0 1.25rem 0;
}

.demarche-details .fr-container {
    background-color: #0d7bc6;
    padding: 4.5rem;
    max-width: 1000px;
}

.demarche-bloc-formulaire {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.demarche-bloc-formulaire__titre {
    font-family: "Montserrat" !important;
    color: var(--dm-white);
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0;
    flex: 1;
    min-width: 180px;
}

.demarche-details .demarche-btn-download {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;

    background: var(--dm-blue-dark) !important;
    color: var(--dm-white) !important;
    border: none !important;
    border-radius: 6px !important;

    padding: 14px 24px !important;
    min-width: 180px;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.demarche-details .demarche-btn-download::before,
.demarche-details .demarche-btn-download::after {
    display: none !important;
    content: none !important;
}

.demarche-btn-download__text {
    font-family: "Montserrat", Arial, sans-serif !important;
    font-size: 0.75rem;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.3;
}

.demarche-details .demarche-btn-download svg {
    flex-shrink: 0;
    color: var(--dm-white);
}

.demarche-btn-download__detail {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.9;
}

.demarche-details .demarche-btn-download:hover {
    outline: 1px solid var(--dm-blue-dark);
    outline-offset: 2px;
}

.fr-accordion::before {
    box-shadow: none !important;
}



.demarche-bloc-2col {
    background: rgba(255, 255, 255, 0.18);
    padding: 1.1rem 1.4rem 1.4rem;
    border-radius: 4px 4px 0 0;
}

.demarche-bloc-2col__titre {
    font-family: "Montserrat" !important;
    color: rgb(19, 42, 103);
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 0.65rem 0;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgb(19, 42, 103);
}

.demarche-colonnes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.demarche-col {
    color: rgb(19, 42, 103);
    font-size: 0.875rem;
    line-height: 1.6;
}

.demarche-col--dark {
    color: var(--dm-text);
}

.demarche-col--dark ul li::before {
    color: var(--dm-blue) !important;
}

.demarche-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.demarche-col ul li {
    padding-left: 1.4rem;
    font-weight: 500;
    position: relative;
    margin-bottom: 0.5rem;
    font-family: "Montserrat", "Arial", sans-serif !important;
    line-height: 25px;
}

.demarche-nav ul li:first-child .demarche-nav__link {
    padding-left: 0;
}

.demarche-col ul li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--dm-white);
    font-weight: 300;
}

.demarche-col p {
    font-family: "Montserrat" !important;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0 0 0.4rem 0;
    max-width: 33ch;
}

.demarche-details .demarche-texte-riche {
    color: rgb(19, 42, 103);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.demarche-details .fr-accordions-group {
    width: 100%;
}

.demarche-details .fr-accordion {
    background: rgba(255, 255, 255, 0.18) !important;
    border-radius: 0 !important;
    border-top: none !important;
    padding-bottom: 10px !important;
    padding-left: 18px;
    padding-right: 18px;
}

.demarche-faq .fr-accordion {
    max-width: 1000px;
    margin: 0 auto;
}

.fr-accordion__title {
    border-bottom: 1px solid rgb(19, 42, 103);
    max-width: 1000px;
    padding-bottom: 20px;
}

.fr-accordion__btn::after {
    --icon-size: 2rem !important;
}

.demarche-details .fr-accordion__btn {
    font-family: "Montserrat" !important;
    font-size: 0.9375rem;
    color: rgb(19, 42, 103) !important;
    background: transparent !important;
    font-weight: 600;
    border-radius: 4px !important;
    padding: 0 !important
}

.demarche-nav__link[href] {
    background-image: none !important;
}

.demarche-details .fr-accordion__btn::after {
    filter: brightness(0) invert(1) !important;
}

.demarche-details .fr-collapse {
    color: var(--dm-white);
    padding: 0 1.25rem 1.25rem;
}

.demarche-service-bloc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.18);
    padding: 1.5rem;
    border-radius: 4px;
    color: rgb(19, 42, 103);
}

.demarche-service-bloc__texte>p {
    font-family: "Montserrat" !important;
    font-size: 1.25rem;
    margin: 0 0 0.75rem 0;
    font-weight: 400;
    max-width: 25ch;
}

.demarche-service-bloc__texte>div p {
    font-family: "Montserrat" !important;
    font-size: 0.875rem;
    line-height: 25px;
    font-weight: 500;
    max-width: 35ch;
}

.demarche-service-bloc__intro>p {
    font-family: "Montserrat" !important;
    font-size: 0.9375rem;
    line-height: 25px;
    font-weight: 600;
}

.demarche-service-bloc .fr-label,
.demarche-service-bloc .fr-hint-text {
    color: var(--dm-white) !important;
}

.demarche-service-bloc .fr-select {
    background: var(--dm-white);
    margin-bottom: 0.75rem;
    height: 3.125rem;
    width: 330px;
    font-family: "Montserrat";
    font-size: 0.8125rem;
    border-radius: 5px;
}

.fr-icon-search-line {
    font-family: "Montserrat", "Arial", sans-serif;
    font-size: 0.75rem !important;
    font-weight: 400;
    padding: 0 10px;
}

.fr-btn.fr-icon-search-line.fr-btn--icon-left {
    padding: 10px 25px;
    border-radius: 3px;
}

.fr-btn.fr-icon-search-line.fr-btn--icon-left:hover {
    outline: 1px solid var(--dm-blue-dark);
    outline-offset: 2px;
}

.demarche-service-bloc .fr-btn {
    background: var(--dm-blue-dark) !important;
    color: var(--dm-white) !important;
}

.demarche-service-bloc .fr-btn:hover {
    background: #0E2440 !important;
}

.demarche-form-step {
    background: rgba(255, 255, 255, 0.18);
    padding: 1.5rem;
    border-radius: 4px;
    color: var(--dm-white);
}

.demarche-form-step p {
    color: var(--dm-white);
}

.demarche-form-step__inner {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.lien-vers-demarche {
    font-family: "Montserrat", "Arial", sans-serif;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    background: var(--dm-blue-dark) !important;
    color: var(--dm-white) !important;
    font-family: "Montserrat" !important;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding: 1.1rem !important;
    border-radius: 4px !important;
}

.lien-vers-demarche:hover{
    outline: 1px solid var(--dm-blue-dark) !important;
    outline-offset: 2px !important;
}

.titre-step3 {
    font-family: "Montserrat";
    font-size: 1.25rem !important;
    font-weight: 400;
    color: rgb(19, 42, 103) !important;
    
}

.form-message {
    font-family: "Montserrat";
    line-height: 2rem;
    margin-bottom: 30px;
    font-size: 1.25rem;
    color: var(--dm-white);
}

.demarche-form-step__inner .fr-btn:hover {
    background: #0E2440 !important;
}

.demarche-toggle-courrier {
    color: rgb(19, 42, 103) !important;
    font-family: "Montserrat" !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    text-decoration: underline;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

.demarche-faq {
    padding: 2rem 0 1rem;
    scroll-margin-top: 80px;
    width: 100%;
    margin: 0 auto;
}

.demarche-faq .demarche-colonnes {
    margin-top: 0.75rem;
}

.demarche-faq .fr-accordion__btn {
    font-family: "Montserrat" !important;
    font-size: 1.25rem;
    color: rgb(19, 42, 103) !important;
    background: transparent !important;
    font-weight: 500;
    border-radius: 4px !important;
    padding: 0 !important;
    max-width: 1000px;
}

.demarche-bottom {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.demarche-temoignage {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.demarche-temoignage__img {
    width: 160px;
    flex-shrink: 0;
    object-fit: cover;
}

.demarche-a-propos {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem 0;
    border-bottom: 1px solid #DDD;
}

.demarche-a-propos img {
    width: 180px;
    flex-shrink: 0;
    object-fit: cover;
}

.demarche-autres {
    border-top: 2px solid #DDD;
}

@media (max-width: 62em) {

    .demarche-colonnes,
    .demarche-service-bloc {
        grid-template-columns: 1fr;
    }

    .demarche-bloc-formulaire {
        flex-direction: column;
        align-items: flex-start;
    }

    .demarche-step {
        gap: 1rem;
    }

    .demarche-step__num {
        width: 50px;
        height: 50px;
        background-color: #0d7bc6;
    }

    .demarche-step__num span {
        font-size: 1.1rem;
    }

    .demarche-a-propos {
        flex-direction: column;
    }

    .demarche-a-propos img,
    .demarche-temoignage__img {
        width: 100%;
    }

    .demarche-details {
        padding: 1.5rem 0 2rem;
    }
}

@media print {
    .demarche-details {
        background: none !important;
    }

    .demarche-titre-demarche,
    .demarche-step__label,
    .demarche-col,
    .demarche-bloc-formulaire__titre {
        color: #000 !important;
    }

    .demarche-step__num {
        background: none !important;
        border: 2px solid #000 !important;
    }

    .demarche-step__num span {
        color: #000 !important;
    }

    .demarche-step__num::after {
        display: none;
    }

    .demarche-nav {
        display: none;
    }
}

.demarche-service-bloc--adresse {
    display: block;
    background: rgba(255, 255, 255, 0.18);
    padding: 1.5rem;
    border-radius: 4px;
    color: rgb(19, 42, 103);
}

.demarche-service-bloc__titre-adresse {
    font-family: "Karma" !important;
    font-size: 1.3125rem;
    font-weight: 500;
    color: rgb(19, 42, 103);
    margin: 0 0 1.25rem 0;
    line-height: 1.5;
}

.demarche-adresse-bloc {
    font-family: "Montserrat", "Arial", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 2;
    color: rgb(19, 42, 103);
    padding-left: 1rem;
}

.demarche-adresse-bloc p {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    max-width: none;
    color: rgb(19, 42, 103);
}

.related-demarches {
    border-top: 2px solid #DDD;
    padding-top: 2rem;
}

.custom-demarches-btn {
    display: inline-flex;
    text-decoration: none;
    border-radius: 4px;
    overflow: hidden;
    border: none;
    cursor: pointer;
    background-color: #1a2a5e;
    background-image: none !important;
}

.custom-demarches-btn .btn-icon {
    background-color: #0d7bc6;
    color: white;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.custom-demarches-btn .btn-label {
    background-color: #1a2a5e;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.custom-demarches-btn .btn-label__text {
    font-family: "Montserrat", "Arial", sans-serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 1px;
    color: white;
    position: relative;
    z-index: 2;
}

.custom-demarches-btn .btn-label::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #0d7bc6;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.custom-demarches-btn:hover .btn-label::before {
    left: 0;
}