/* HERO */
.hero {
    padding-top: 25px;
    background: url("../../img/main_enfant-S5KoGNE.webp") no-repeat;
    background-position: center;
}

.container p {
    margin-bottom: 20px;
}

h2 {
    font-size: var(--text-xl);
    font-weight: 500;
}

h2::after {
    content: "";
    display: block;
    width: 150px;
    height: 5px;
    background-color: var(--jaune);
    margin-top: 8px;
}

.checklist {
    list-style: none;
    margin: 15px 0;
}

.checklist li {
    position: relative;
    padding-left: 25px;
}

.checklist li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #4caf50;
}

/* SERVICES */

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
}

.service {
    width: 100%;
    display: grid;
    align-items: center;
    gap: 25px;
    margin: 0;
    text-align: left;
}

.service:nth-child(odd) {
    grid-template-columns: 1.4fr 1fr;
}

.service:nth-child(even) {
    grid-template-columns: 1fr 1.4fr;
}

.service:nth-child(odd) img {
    order: 1;
}

.service:nth-child(odd) figcaption {
    order: 2;
}

.service:nth-child(even) img {
    order: 2;
}

.service:nth-child(even) figcaption {
    order: 1;
    text-align: right;
}

.service img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10%;
    display: block;
}

.service figcaption {
    margin-top: 0;
}

.service figcaption p {
    margin: 0;
    color: var(--textNoir);
}

.avantages {
    margin: 25px 0;
}

/* BENEFITS */
.avantages .container {
    display: grid;
    gap: 24px;
}

.avantages h2 {
    font-weight: 500;
}

.benefits,
.preparation {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 25px;
    border: 2px solid var(--violet);
    border-radius: 16px;
}

.benefits p {
    font-size: 15px;
}

.benefits ul {
    margin-top: 10px;
    list-style: none;
    padding-left: 0;
}

.benefits li {
    margin-bottom: 20px;
    padding-left: 28px;
    background: url("../../img/icone/etoile---dg5Ov.png") no-repeat left center;
    background-size: 18px 18px;
}

/* preparation */
.preparation ul {
    margin-top: 10px;
    list-style: none;
    padding-left: 0;
}

.preparation li {
    margin-bottom: 12px;
    padding-left: 28px;
    background: url("../../img/icone/coeur_noir-L60j9O6.png") no-repeat left center;
    background-size: 18px 18px;
}

/* RESPONSIVE */
@media (min-width: 768px) {
    .hidden-xs {
        display: none;
    }

    .avantages .container {
        grid-template-columns: repeat(2, 1fr);
        align-items: stretch;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }

    .service {
        width: 100%;
        display: block;
        text-align: center;
    }

    .service:nth-child(even) figcaption {
        text-align: center;
    }

    .service figcaption {
        margin-top: 12px;
    }

    .service figcaption p {
        color: var(--textBlanc);
    }

    .services {
        padding: 25px 0;
        gap: 65px;
        background-color: var(--violet);
    }

    .services h2 {
        color: var(--jaune);
    }

    .services h2::after {
        display: none;
    }

    .service img {
        height: 360px;
        width: 100%;
    }
}

/* FORMULAIRE ADHESION */
.top-link {
    text-align: center;
    color: var(--violet);
    margin-bottom: 30px;
    font-size: 22px;
    font-weight: 500;

    &::after {
        display: none;
    }
}

.top-link img {
    width: 50px;
    height: auto;
    margin-bottom: -14px;
    padding: 0 6px 0 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.full {
    grid-column: span 2;
}

.input-group,
.input-icon {
    min-width: 0;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--violet);
}

.input-icon {
    position: relative;
    display: flex;
    width: 100%;
}

.input-icon img {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
}

.input-icon input,
.input-icon select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--violet);
    background: white;
    padding-left: 38px;
    font-size: 14px;
}

.input-icon select {
    -webkit-appearance: none;
    appearance: none;
    padding-left: 50px;
    padding-right: 40px;
}

.input-icon input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
}

.input-icon:has(select)::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--violet);
    border-bottom: 2px solid var(--violet);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.form-grid input[type="file"] {
    padding-top: 10px;
}

.cni_file {
    display: block;
    margin-top: 6px;
    font-size: var(--text-xs);
    color: var(--textNoir);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;

    label {
        margin: 0;
    }

    a {
        color: var(--violet);

        &:hover {
            color: var(--textviolet);
        }
    }
}

.form-grid input:focus,
.form-grid select:focus {
    outline: none;
    border-color: var(--violet);
    box-shadow: 0 0 5px rgba(140, 115, 201, 0.3);
}

.checkbox-group input[type="checkbox"] {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    accent-color: #7a4cc2;
}

.form-grid button {
    grid-column: span 2;
    width: 50%;
    height: 50px;
    border: none;
    border-radius: 16px;
    background: var(--violet);
    color: white;
    font-size: 16px;
    font-weight: bold;
    margin: 10px auto 0 auto;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-grid button img {
    width: 25px;
    height: 25px;
}

@media (min-width: 768px) {

    h2 {
        font-weight: 600;
    }

    .hero h2,
    .services h2 {
        font-family: "Montserrat-bold", sans-serif;
        text-transform: uppercase;
    }

    .service h2 {
        color: var(--jaune);
    }

    .benefits p {
        font-size: 18px;
    }
}

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

    .full,
    .form-grid button {
        grid-column: span 1;
    }
}