/* -------------
    SOMMAIRE
------------- */

/*
    @AUTHOR : Nicolas BOUDOT

    DOM : CHILD
    Styles liés aux classes .child_* qui permettent de cibler un enfant
*/

/*
    01 - XS
        Child
            P
                Line-height
            A
                Color
                Text-decoration
            Strong
                Color
            Img
                Height
                    Max-height
            Spécifiques
                Atom_ul
        First-child
        Last-child
        Nth-child
    02 - SM
    03 - MD
    04 - LG
    05 - XL
    06 - XXL
*/



/* ---------------------
    01 - XS
        Child
            P
                Line-height
--------------------- */

.child_p--lh-100 p {
    line-height: 1;
}

.child_p--lh-120 p {
    line-height: 1.2;
}

.child_p--lh-150 p {
    line-height: 1.5;
}

.child_p--lh-200 p {
    line-height: 2;
}



/* ---------------------
    01 - XS
        Child
            Input
                Background-color
--------------------- */

.child_input-email--bgc-gray-200 input[type="email"],
.child_input--bgc-gray-200 input {
    background-color: var(--gray-200);
}



/* ---------------------
    01 - XS
        Child
            Input
                Border
--------------------- */

.child_input--b-none input {
    border: none;
}



/* ---------------------
    01 - XS
        Child
            Input
                Text-align
--------------------- */

.child_input--ta-center input {
    text-align: center;
}



/* ---------------------
    01 - XS
        Child
            A
                Color
--------------------- */

.child_a--c-white a:not(.atom_button) {
    color: var(--white);
}



/* ---------------------
    01 - XS
        Child
            A
                Text-decoration
--------------------- */

.child_a--td-underline a:not(.atom_button) {
    text-decoration: underline;
}



/* ---------------------
    01 - XS
        Child
            Strong
                Color
--------------------- */

.child_strong--c-white strong {
    color: var(--white);
}

.child_strong--c-gray-900 strong {
    color: var(--gray-900);
}

.child_strong--c-quaternary strong {
    color: var(--c-quaternary);
}



/* ---------------------
    01 - XS
        Child
            Img
                Height
                    Max-height
--------------------- */

.child_img--m-height-70px img {
    max-height: 70px;
}



/* ---------------------
    01 - XS
        Child
            Spécifiques
                Atom_ul
--------------------- */

/*
    @infos : Permet de cibler les ul dans un WYSIWYG de wordpress en mettant cette classe avant
*/

.child_ul--atom_ul ul:not(:last-child) {
    margin-bottom: 30px;
}

.child_ul--atom_ul ul li {
    list-style: none;
    line-height: 1.8;
}

    .child_ul--atom_ul ul li::before {
        content: "";
        display: inline-block;
        background-color: var(--c-primary);
        margin-right: 8px;
        width: 6px;
        height: 6px;
        transform: translateY(-50%);
    }

.child_ul--atom_ul ul li a {
    color: var(--c-hyperlink);
    text-decoration: underline;
}

    /* Fond foncé */
    .bgc-secondary .child_ul--atom_ul ul li a {
        color: var(--white);
    }



/* ---------------------
    01 - XS
        First-child
--------------------- */

.first-child--mt-10px > :first-child {
    margin-top: 1rem;
}



/* ---------------------
    01 - XS
        Last-child
            Margin
--------------------- */

.last-child--mb-10px > :last-child {
    margin-bottom: 1rem;
}



/* ---------------------
    01 - XS
        Last-child
            Padding
--------------------- */

.last-child--pb-10px > :last-child {
    padding-bottom: 1rem;
}
