/* =========================
   PAGE PARTICIPATION
   ========================= */

.participation-page {

    width: min(
        860px,
        calc(100% - 40px)
    );

    margin: 0 auto;

    padding:
        42px
        0
        90px;
}


/* =========================
   TITRE
   ========================= */

.participation-heading {
    margin-bottom: 50px;
}

.participation-heading h1 {

    margin: 0 0 14px;

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

    line-height: .95;

    letter-spacing: -3px;
}

.participation-heading h1::after {

    content: "";

    display: block;

    width: 72px;
    height: 7px;

    margin-top: 16px;

    background: var(--header-green);

    border-radius: 20px;
}

.participation-heading p {

    max-width: 650px;

    margin: 28px 0 0;

    color: var(--grey);

    font-size: 18px;

    line-height: 1.55;
}


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

.form-group,
.participation-submit,
.participation-success,
.participation-required,
.participation-data,
.participation-charter-box {

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


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

.participation-form {

    display: grid;

    gap: 46px;
}


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

.participation-block {

    display: grid;

    gap: 26px;

    padding-top: 30px;

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

.participation-block h2 {

    margin: 0 0 4px;

    font-size: 27px;

    font-weight: 700;

    line-height: 1.1;

    letter-spacing: -.7px;
}


/* =========================
   LIGNES
   ========================= */

.form-row {

    display: grid;

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

    gap: 18px;
}

.participation-counts {

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

/* Une ligne contenant un seul champ doit occuper toute la largeur. */
.form-row--single {
    grid-template-columns: minmax(0, 1fr);
}

.form-row--single > .form-group {
    min-width: 0;
}


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

.form-group {

    display: flex;

    flex-direction: column;

    gap: 8px;
}

.form-group > label {

    color: #303a33;

    font-size: 16px;

    font-weight: 650;

    line-height: 1.3;
}


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

.form-group input,
.form-group select {

    width: 100%;

    box-sizing: border-box;

    min-height: 52px;

    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;
}

.form-group input:hover,
.form-group select:hover {

    border-color: #8f9f8f;

    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus {

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

    background: #ffffff;

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


/* =========================
   DÉPARTEMENTS
   ========================= */

.department-selection {

    gap: 9px;
}


/*
 * Zone principale du sélecteur.
 */

.department-picker {

    display: grid;

    gap: 12px;

    max-width: 620px;
}


/*
 * Liste des départements déjà ajoutés.
 */

.department-tags {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    min-height: 0;
}

.department-tags:empty {

    display: none;
}


/*
 * Pastille d'un département.
 */

.department-tag {

    display: inline-flex;

    align-items: center;

    gap: 3px;

    min-height: 34px;

    padding:
        5px
        7px
        5px
        12px;

    border: 1px solid #cbd8c7;

    border-radius: 999px;

    background: #f2f7ef;

    color: #3f553b;

    font-size: 14px;

    font-weight: 700;

    line-height: 1;

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

.department-tag:hover {

    border-color: #b6c8b0;

    background: #eaf3e6;

    transform: translateY(-1px);
}


/*
 * Numéro du département.
 */

.department-tag__label {

    display: block;

    padding-top: 1px;
}


/*
 * Bouton de suppression de la pastille.
 */

.department-tag__remove {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 25px;
    height: 25px;

    margin-left: 1px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: transparent;

    color: #71806d;

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 18px;

    font-weight: 400;

    line-height: 1;

    cursor: pointer;

    transition:
        background .15s ease,
        color .15s ease;
}

.department-tag__remove:hover {

    background: rgba(255, 255, 255, .85);

    color: var(--coral);
}


/*
 * Ligne permettant de choisir puis
 * d'ajouter un département.
 */

.department-add {
    display: flex;
    align-items: stretch;
    gap: 9px;
    width: 100%;
}


/*
 * Menu déroulant.
 */

.department-add__select {
    width: 100%;
    max-width: 420px;
    min-height: 50px;

    box-sizing: border-box;

    padding:
        12px
        42px
        12px
        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;

    cursor: pointer;

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

.department-add__select:hover {
    border-color: #8f9f8f;
    background: #ffffff;
}

.department-add__select:focus {
    border-color: var(--green-dark);

    background: #ffffff;

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


/*
 * Bouton Ajouter.
 */

.department-add__button {
    flex: 0 0 auto;

    min-width: 104px;
    min-height: 50px;

    padding:
        0
        18px;

    border: 1px solid #6f8767;
    border-radius: 7px;

    background: #7b9174;

    color: #ffffff;

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

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

    line-height: 1;

    cursor: pointer;

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

.department-add__button:hover {
    background: #6d8367;
    border-color: #687e62;

    transform: translateY(-1px);

    box-shadow:
        0
        3px
        8px
        rgba(56, 73, 51, .10);
}

.department-add__button:active {
    transform: translateY(0);
    box-shadow: none;
}


/*
 * Le champ Symfony reste présent pour
 * transmettre tous les départements.
 */

.department-hidden-field {
    display: none;
}


/* =========================
   AIDE
   ========================= */

.form-help {

    margin:
        1px
        0
        0;

    color: #727b76;

    font-size: 13px;

    font-weight: 450;

    line-height: 1.45;
}


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

.form-group ul {

    margin:
        3px
        0
        0;

    padding: 0;

    list-style: none;

    color: #b6384d;

    font-size: 13px;

    font-weight: 600;
}


/* =========================
   REPAS DU SOIR
   ========================= */

.evening-meal-group {

    gap: 14px;
}

.radio-options > div {

    display: flex;

    gap: 24px;

    flex-wrap: wrap;
}

.radio-options > div > div {

    display: flex;

    align-items: center;

    gap: 8px;
}

.radio-options input[type="radio"] {

    width: 19px;
    height: 19px;

    min-height: 0;

    margin: 0;

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

.radio-options label {

    color: #303a33;

    font-size: 16px;

    font-weight: 500;

    cursor: pointer;
}


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

.participation-required {

    margin:
        -4px
        0
        0;

    color: #727b76;

    font-size: 13px;

    font-weight: 450;

    line-height: 1.45;
}


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

.participation-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;
}

.participation-data p {

    margin: 0;
}

.participation-data p + p {

    margin-top: 7px;
}

.participation-data__title {

    color: #303a33;

    font-size: 14px;

    font-weight: 650;
}

.participation-data a {

    color: var(--green-dark);

    font-weight: 600;

    text-decoration: underline;

    text-underline-offset: 2px;
}


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

.participation-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;
}

.participation-charter-accordion {
    width: 100%;
}

.participation-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;
}

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

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

.participation-charter-summary-copy {
    display: flex;

    flex-direction: column;

    gap: 3px;

    min-width: 0;
}

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

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

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

    color: #616b65;

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

    line-height: 1.4;
}

.participation-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;
}

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


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

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

    border-top: 1px solid #dfe4dd;

    background: #fff;
}

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

    padding-top: 20px;

    border-top: 1px solid #edf0ec;
}

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

    color: var(--green-dark);

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

    line-height: 1.3;
}

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

    color: #303a33;

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

    line-height: 1.4;
}

.participation-charter-part p {
    margin: 0;

    color: #616b65;

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

    line-height: 1.62;
}

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

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

    color: #727b76 !important;

    font-size: 13px !important;

    font-style: italic;
}


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

.participation-success {

    margin-bottom: 32px;

    padding:
        15px
        18px;

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

    background: var(--green-soft);

    color: var(--green-dark);

    font-size: 15px;

    font-weight: 650;
}


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

.participation-submit {

    display: flex;

    justify-content: stretch;

    padding-top: 2px;
}

.participation-submit button {

    width: 100%;

    min-height: 60px;

    padding:
        16px
        26px;

    border: 0;

    border-radius: 7px;

    background: var(--coral);

    color: #ffffff;

    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;
}

.participation-submit button::after {

    content: " →";

    margin-left: 9px;
}

.participation-submit button:hover {

    transform: translateY(-2px);

    filter: brightness(.97);

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



/* =========================
   TABLETTE
   761 px à 1024 px
   ========================= */

@media (min-width: 761px) and (max-width: 1024px) {

    .participation-page {
        width: min(
            860px,
            calc(100% - 48px)
        );

        padding:
            38px
            0
            78px;
    }

    .participation-heading {
        margin-bottom: 44px;
    }

    .participation-heading h1 {
        font-size: clamp(54px, 7vw, 66px);
        letter-spacing: -2.6px;
    }

    .participation-form {
        gap: 42px;
    }

    .participation-block {
        gap: 24px;
        padding-top: 28px;
    }

    .participation-counts {
        gap: 14px;
    }

    .participation-charter-accordion summary {
        padding:
            14px
            16px;
    }
}

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

@media (max-width: 760px) {

    .participation-page {

        width: calc(100% - 32px);

        padding:
            32px
            0
            65px;
    }


    .participation-heading {

        margin-bottom: 38px;
    }

    .participation-heading h1 {

        font-size: 48px;

        letter-spacing: -2.5px;
    }

    .participation-heading h1::after {

        width: 58px;

        height: 6px;
    }

    .participation-heading p {

        font-size: 16px;
    }


    .participation-form {

        gap: 40px;
    }


    .participation-block {

        gap: 23px;

        padding-top: 25px;
    }

    .participation-block h2 {

        font-size: 24px;
    }


    .form-row,
    .participation-counts {

        grid-template-columns: 1fr;

        gap: 23px;
    }


    .form-group > label {

        font-size: 15px;
    }


    .form-group input,
    .form-group select {

        font-size: 16px;

        padding:
            14px;
    }


    /* =====================
       DÉPARTEMENTS MOBILE
       ===================== */

    .department-picker {

        max-width: none;
    }

    .department-add {

        display: grid;

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

        gap: 8px;
    }

    .department-add__select {

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

    .department-add__button {

        min-width: 96px;
    }

    .department-tag {

        min-height: 33px;

        padding:
            5px
            6px
            5px
            11px;

        font-size: 14px;
    }


    /* =====================
       REPAS
       ===================== */

    .radio-options label {

        font-size: 15px;
    }


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

    .participation-data {

        padding:
            15px
            16px;
    }



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

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

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

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

    .participation-submit button {

        min-height: 58px;

        font-size: 17px;
    }
}


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

@media (max-width: 430px) {

    .participation-page {
        width: calc(100% - 24px);

        padding:
            26px
            0
            54px;
    }

    .participation-heading {
        margin-bottom: 32px;
    }

    .participation-heading h1 {
        font-size: clamp(36px, 12vw, 42px);
        line-height: .98;
        letter-spacing: -1.8px;
    }

    .participation-heading h1::after {
        width: 52px;
        height: 5px;
        margin-top: 13px;
    }

    .participation-heading p {
        margin-top: 22px;
        font-size: 15px;
        line-height: 1.5;
    }

    .participation-form {
        gap: 34px;
    }

    .participation-block {
        gap: 20px;
        padding-top: 22px;
    }

    .participation-block h2 {
        font-size: 22px;
    }

    .department-add {
        grid-template-columns: 1fr;
    }

    .department-add__button {
        width: 100%;
        min-height: 48px;
    }

    .participation-data {
        padding:
            14px
            14px;
    }

    .participation-charter-accordion summary {
        gap: 10px;
        padding:
            12px
            12px;
    }

    .participation-charter-summary-copy strong {
        font-size: 13.5px;
    }

    .participation-charter-summary-copy span {
        font-size: 12.5px;
        line-height: 1.35;
    }

    .participation-charter-summary-icon {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
        font-size: 22px;
    }

    .participation-charter-content {
        padding:
            16px
            12px
            18px;
    }

    .participation-submit button {
        min-height: 56px;
        padding:
            14px
            18px;
        font-size: 16px;
    }
}


/* ========================================
   CTA SOUS LE FORMULAIRE PARTICIPATION
   ======================================== */

.participation-help-cta {
    margin-top: 28px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f6f8f5;
    text-align: center;
    font-family:
        "Segoe UI",
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}

.participation-help-cta p {
    margin: 0 0 14px;
    color: #303a33;
    font-size: 15px;
    line-height: 1.5;
}

.participation-help-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 12px 20px;
    border-radius: 7px;
    background: var(--green-dark);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform .15s ease,
        filter .15s ease,
        box-shadow .15s ease;
}

.participation-help-cta__button:hover {
    transform: translateY(-2px);
    filter: brightness(.97);
    box-shadow:
        0
        6px
        14px
        rgba(0, 0, 0, .07);
}

@media (max-width: 760px) {
    .participation-help-cta {
        padding: 20px 16px;
    }

    .participation-help-cta__button {
        width: 100%;
        box-sizing: border-box;
    }
}
