/* ========================================
PAGE : AIDER PENDANT LA MARCHE
======================================== */

.march-help-page {
    width: min(
        860px,
        calc(100% - 40px)
    );

    margin: 0 auto;

    padding:
        42px
        0
        80px;
}


/* ========================================
EN-TÊTE
======================================== */

.march-help-heading {
    margin-bottom: 40px;
}

.march-help-heading h1 {
    margin: 0 0 14px;

    font-size: clamp(
        48px,
        8vw,
        72px
    );

    line-height: .95;

    letter-spacing: -3px;
}

.march-help-heading h1::after {
    content: "";

    display: block;

    width: 72px;
    height: 7px;

    margin-top: 16px;

    background: var(--header-green);

    border-radius: 20px;
}

.march-help-intro {
    width: 100%;
    max-width: none;

    box-sizing: border-box;

    margin: 28px 0 0;

    color: var(--grey);

    font-size: 18px;
    line-height: 1.55;

    overflow-wrap: normal;
    word-break: normal;
}


/* ========================================
TYPOGRAPHIE UI
======================================== */

.march-help-form,
.march-help-form input,
.march-help-form select,
.march-help-form textarea,
.march-help-form button,
.march-help-form label,
.march-help-success,
.march-help-required-note,
.march-help-data,
.march-help-charter-box,
.march-help-disclaimer {
    font-family:
        "Segoe UI",
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}


/* ========================================
SUCCÈS
======================================== */

.march-help-success {
    margin-bottom: 26px;

    padding:
        15px
        18px;

    border-left:
        4px
        solid
        var(--green-dark);

    background: var(--green-soft);

    color: var(--green-dark);

    font-size: 15px;
    font-weight: 650;
}


/* ========================================
FORMULAIRE
======================================== */

.march-help-form-section {
    width: 100%;
}

.march-help-form {
    display: grid;

    gap: 24px;
}


/* ========================================
BLOCS
======================================== */

.march-help-group {
    display: grid;

    gap: 15px;

    padding-top: 21px;

    border-top: 1px solid var(--border);
}

.march-help-group-heading {
    display: grid;

    gap: 4px;

    width: 100%;
}

.march-help-group-heading h2 {
    width: 100%;

    margin: 0;

    font-size: 27px;
    font-weight: 700;

    line-height: 1.1;

    letter-spacing: -.7px;
}

.march-help-group-heading p {
    width: 100%;
    max-width: none;

    margin: 0;

    color: #727b76;

    font-size: 13px;
    font-weight: 450;

    line-height: 1.4;

    overflow-wrap: normal;
    word-break: normal;
}


/* ========================================
COORDONNÉES
======================================== */

.march-help-group:first-of-type {
    gap: 14px;

    padding-top: 21px;
}

.march-help-contact-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

    margin: 0 0 4px;
}

.march-help-contact-grid .march-help-field,
.march-help-contact-grid .march-help-field + .march-help-field {
    margin: 0;
}


/* ========================================
GROUPES DE CHAMPS
======================================== */

.march-help-field {
    display: flex;

    flex-direction: column;

    gap: 8px;

    width: 100%;
    min-width: 0;
}

.march-help-field + .march-help-field {
    margin-top: 0;
}

.march-help-field > label,
.march-help-field label {
    margin: 0;

    color: #303a33;

    font-size: 16px;
    font-weight: 650;

    line-height: 1.3;
}

.required-mark {
    color: inherit;

    font-weight: 700;
}


/* ========================================
INPUTS / SELECTS / TEXTAREAS
======================================== */

.march-help-field input,
.march-help-field select,
.march-help-field textarea {
    width: 100%;

    box-sizing: border-box;

    min-height: 52px;

    margin: 0;

    padding:
        13px
        15px;

    border: 1.3px solid #aeb9ae;

    border-radius: 7px;

    background: #f8faf7;

    color: #29322c;

    font-family:
        "Segoe UI",
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 16px;
    font-weight: 450;

    outline: none;

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.march-help-field textarea {
    min-height: 128px;

    resize: vertical;

    line-height: 1.55;
}

.march-help-field input:hover,
.march-help-field select:hover,
.march-help-field textarea:hover {
    border-color: #8f9f8f;

    background: #fff;
}

.march-help-field input:focus,
.march-help-field select:focus,
.march-help-field textarea:focus {
    border-color: var(--green-dark);

    background: #fff;

    box-shadow:
        0
        0
        0
        3px
        rgba(139, 203, 103, .14);
}


/* ========================================
AIDE / TEXTE SOUS CHAMP
======================================== */

.march-help-field-note,
.march-help-field-footer {
    color: #727b76;

    font-size: 13px;
    font-weight: 450;

    line-height: 1.4;
}

.march-help-field-note {
    margin: 0;
}

.march-help-field-footer {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 16px;
}

.march-help-field-footer span:first-child {
    min-width: 0;

    flex: 1 1 auto;
}

.march-help-field-footer span:last-child {
    flex: 0 0 auto;

    white-space: nowrap;
}


/* ========================================
TYPES D'AIDE
======================================== */

.march-help-help-list {
    display: grid;

    gap: 8px;
}

.march-help-option {
    border: 1.3px solid #aeb9ae;

    border-radius: 7px;

    background: #f8faf7;

    overflow: hidden;

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.march-help-option:hover {
    border-color: #8f9f8f;

    background: #fff;
}

.march-help-option.is-selected {
    border-color: var(--green-dark);

    background: #f2f7ef;

    box-shadow:
        0
        0
        0
        2px
        rgba(139, 203, 103, .08);
}

.march-help-option-main {
    display: grid;

    grid-template-columns:
        22px
        minmax(0, 1fr);

    gap: 11px;

    padding:
        13px
        16px;
}

.march-help-option-checkbox {
    width: 19px;
    height: 19px;

    min-height: 0;

    margin: 1px 0 0;

    accent-color: var(--green-dark);

    cursor: pointer;
}

.march-help-option-label {
    display: flex;

    flex-direction: column;

    gap: 2px;

    min-width: 0;

    cursor: pointer;
}

.march-help-option-title {
    color: #303a33;

    font-size: 16px;
    font-weight: 650;

    line-height: 1.3;
}

.march-help-option-description {
    width: 100%;
    max-width: none;

    color: #727b76;

    font-size: 13px;
    font-weight: 450;

    line-height: 1.4;
}


/* ========================================
SOUS-CHAMPS CONDITIONNELS
======================================== */

.march-help-option-details {
    padding:
        0
        16px
        14px
        49px;
}

.march-help-option-details[hidden] {
    display: none;
}

.march-help-option-details .march-help-field {
    padding-top: 13px;

    border-top: 1px solid #dbe2d9;
}

.march-help-option-details textarea {
    min-height: 92px;
}


/* ========================================
RESPONSABLE DE DÉPARTEMENT
======================================== */

.march-help-manager-group {
    display: grid;

    gap: 9px;

    padding-top: 18px;
    padding-bottom: 0;

    border-top: 0 !important;
    border-bottom: 0 !important;

    background: transparent;

    position: relative;
}

.march-help-manager-group::before,
.march-help-manager-group::after {
    display: none !important;

    content: none !important;
}

.march-help-manager-group .march-help-group-heading {
    display: grid;

    gap: 2px;

    margin: 0;
    padding: 0;

    border: 0 !important;
}

.march-help-manager-group .march-help-group-heading::before,
.march-help-manager-group .march-help-group-heading::after {
    display: none !important;

    content: none !important;
}

.march-help-manager-group .march-help-group-heading h2 {
    margin: 0;

    font-size: 27px;
    font-weight: 700;

    line-height: 1.1;

    letter-spacing: -.7px;
}

.march-help-manager-group .march-help-group-heading p {
    margin: 0;

    color: #727b76;

    font-size: 13px;
    font-weight: 450;

    line-height: 1.35;
}


/* ========================================
CASE RESPONSABLE
======================================== */

.march-help-manager-choice {
    display: grid;

    grid-template-columns:
        22px
        minmax(0, 1fr);

    gap: 10px;

    margin: 1px 0 0;

    padding:
        12px
        15px;

    border: 1.3px solid #aeb9ae;
    border-radius: 7px;

    background: #f8faf7;
}

.march-help-manager-choice input[type="checkbox"] {
    width: 19px;
    height: 19px;

    min-height: 0;

    margin: 1px 0 0;

    accent-color: var(--green-dark);

    cursor: pointer;
}

.march-help-manager-choice label {
    display: flex;

    flex-direction: column;

    gap: 1px;

    margin: 0;

    cursor: pointer;
}

.march-help-manager-title {
    margin: 0;

    color: #303a33;

    font-size: 16px;
    font-weight: 650;

    line-height: 1.25;
}

.march-help-manager-note {
    margin: 0;

    color: #727b76;

    font-size: 13px;
    font-weight: 450;

    line-height: 1.35;
}


/* ========================================
DÉPARTEMENT RESPONSABLE
======================================== */

.march-help-manager-departments {
    margin: 2px 0 0;
}

.march-help-manager-departments[hidden] {
    display: none;
}


/* ========================================
ERREURS
======================================== */

.march-help-field ul,
.march-help-group > ul {
    margin:
        3px
        0
        0;

    padding: 0;

    list-style: none;

    color: #b6384d;

    font-size: 13px;
    font-weight: 600;
}


/* ========================================
DERNIÈRE SECTION
======================================== */

.march-help-group:last-of-type {
    padding-bottom: 0;

    border-bottom: 0;
}


/* ========================================
CHAMPS OBLIGATOIRES
======================================== */

.march-help-required-note {
    margin:
        -7px
        0
        0;

    padding: 0;

    border: 0 !important;

    color: #727b76;

    font-size: 13px;
    font-weight: 450;

    line-height: 1.4;
}


/* ========================================
DONNÉES PERSONNELLES
======================================== */

.march-help-data {
    padding:
        17px
        19px;

    border-left:
        3px
        solid
        var(--green-dark);

    background: #f6f8f5;

    color: #616b65;

    font-size: 13px;
    font-weight: 450;

    line-height: 1.55;
}

.march-help-data p {
    margin: 0;
}

.march-help-data p + p {
    margin-top: 7px;
}

.march-help-data__title {
    color: #303a33;

    font-size: 14px;
    font-weight: 650;
}

.march-help-data a {
    color: var(--green-dark);

    font-weight: 600;

    text-decoration: underline;
    text-underline-offset: 2px;
}


/* ========================================
CHARTE
======================================== */

.march-help-charter-box {
    padding: 0;

    border-left:
        3px
        solid
        var(--green-dark);

    background: #f6f8f5;

    color: #616b65;

    font-size: 13px;
    font-weight: 450;

    line-height: 1.55;
}

.march-help-charter-accordion {
    width: 100%;
}

.march-help-charter-accordion summary {
    min-height: 70px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 16px;

    box-sizing: border-box;

    padding:
        14px
        17px;

    list-style: none;

    cursor: pointer;
}

.march-help-charter-accordion summary::-webkit-details-marker {
    display: none;
}

.march-help-charter-accordion summary::marker {
    display: none;
}

.march-help-charter-summary-copy {
    display: flex;

    flex-direction: column;

    gap: 3px;

    min-width: 0;
}

.march-help-charter-summary-copy strong {
    color: #303a33;

    font-size: 14px;
    font-weight: 650;
}

.march-help-charter-summary-copy span {
    width: 100%;

    color: #616b65;

    font-size: 13px;
    font-weight: 450;

    line-height: 1.4;
}

.march-help-charter-summary-icon {
    width: 28px;
    height: 28px;

    flex: 0 0 28px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: var(--green-dark);

    font-size: 24px;
    font-weight: 400;

    line-height: 1;

    transition:
        transform .18s ease;
}

.march-help-charter-accordion[open]
.march-help-charter-summary-icon {
    transform: rotate(45deg);
}


/* ========================================
CHARTE OUVERTE
======================================== */

.march-help-charter-content {
    padding:
        20px
        17px
        22px;

    border-top: 1px solid #dfe4dd;

    background: #fff;
}

.march-help-charter-part + .march-help-charter-part {
    margin-top: 24px;

    padding-top: 20px;

    border-top: 1px solid #edf0ec;
}

.march-help-charter-part h3 {
    margin:
        0
        0
        8px;

    color: var(--green-dark);

    font-size: 18px;
    font-weight: 700;

    line-height: 1.3;
}

.march-help-charter-part h4 {
    margin:
        14px
        0
        6px;

    color: #303a33;

    font-size: 15px;
    font-weight: 650;

    line-height: 1.4;
}

.march-help-charter-part p {
    margin: 0;

    color: #616b65;

    font-size: 14px;
    font-weight: 450;

    line-height: 1.62;
}

.march-help-charter-part p + p {
    margin-top: 10px;
}

.march-help-charter-date {
    margin-top: 22px !important;

    color: #727b76 !important;

    font-size: 13px !important;

    font-style: italic;
}


/* ========================================
BOUTON FINAL
======================================== */

.march-help-submit-zone {
    display: grid;

    gap: 10px;

    padding-top: 0;
}

.march-help-submit {
    width: 100%;

    min-height: 60px;

    padding:
        16px
        26px;

    border: 0;

    border-radius: 7px;

    background: var(--coral);

    color: #fff;

    font-family:
        "Segoe UI",
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 18px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform .15s ease,
        filter .15s ease,
        box-shadow .15s ease;
}

.march-help-submit:hover {
    transform: translateY(-2px);

    filter: brightness(.97);

    box-shadow:
        0
        6px
        14px
        rgba(0, 0, 0, .07);
}

.march-help-disclaimer {
    margin: 0;

    color: #727b76;

    font-size: 13px;
    font-weight: 450;

    line-height: 1.4;
}


/* ========================================
MOBILE
======================================== */

@media (max-width: 760px) {

    .march-help-page {
        width: calc(100% - 32px);

        padding:
            32px
            0
            58px;
    }

    .march-help-heading {
        margin-bottom: 32px;
    }

    .march-help-heading h1 {
        font-size: 48px;

        letter-spacing: -2.5px;
    }

    .march-help-heading h1::after {
        width: 58px;
        height: 6px;
    }

    .march-help-intro {
        width: 100%;
        max-width: none;

        font-size: 16px;
    }

    .march-help-form {
        gap: 22px;
    }

    .march-help-group {
        gap: 14px;

        padding-top: 19px;
    }

    .march-help-group:first-of-type {
        gap: 13px;
    }

    .march-help-group-heading h2 {
        font-size: 24px;
    }

    .march-help-group-heading p {
        width: 100%;
        max-width: none;
    }

    .march-help-contact-grid {
        grid-template-columns: 1fr;

        gap: 14px;

        margin-bottom: 3px;
    }

    .march-help-field > label,
    .march-help-field label {
        font-size: 15px;
    }

    .march-help-field input,
    .march-help-field select,
    .march-help-field textarea {
        font-size: 16px;

        padding: 14px;
    }

    .march-help-option-main {
        padding:
            13px
            14px;
    }

    .march-help-option-details {
        padding:
            0
            14px
            14px
            47px;
    }

    .march-help-manager-group {
        gap: 8px;

        padding-top: 16px;
    }

    .march-help-manager-choice {
        padding:
            12px
            14px;
    }

    .march-help-manager-departments {
        margin-top: 2px;
    }

    .march-help-required-note {
        margin-top: -5px;
    }

    .march-help-data {
        padding:
            15px
            16px;
    }

    .march-help-charter-accordion summary {
        padding:
            13px
            14px;
    }

    .march-help-charter-content {
        padding:
            18px
            14px
            20px;
    }

    .march-help-submit {
        min-height: 58px;

        font-size: 17px;
    }
}


/* ========================================
TRÈS PETITS ÉCRANS
======================================== */

@media (max-width: 430px) {

    .march-help-heading h1 {
        font-size: 44px;
    }

    .march-help-option-details {
        padding-left: 14px;
    }

    .march-help-data {
        padding:
            14px
            14px;
    }
}