/* =========================================================
   CL LAW FIRM
   FICHIER : /assets/css/cllawfirm.css

   IMPORTANT :
   Ce fichier ne redessine PAS la navbar de la template.
   Il ajoute uniquement les mega-dropdowns.
========================================================= */


/* =========================================================
   PARENT DU MEGA MENU
========================================================= */

.cl-mega-parent {
    position: relative;
}


/* =========================================================
   TRIGGER
========================================================= */

.cl-mega-trigger {
    border: 0;
    background: transparent;
    cursor: pointer;
}


/* =========================================================
   CHEVRON
========================================================= */

.cl-mega-chevron {
    display: inline-block;

    width: 6px;
    height: 6px;

    margin-left: 7px;

    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;

    transform: rotate(45deg);

    transition:
        transform .2s ease;
}

.cl-mega-parent.is-open
.cl-mega-chevron {
    transform: rotate(225deg);
}


/* =========================================================
   MEGA MENU
========================================================= */

.cl-mega-menu {
    position: absolute;

    top: 100%;
    left: 50%;

    width: min(
        1100px,
        calc(100vw - 32px)
    );

    background: #ffffff;

    border: 1px solid rgba(0, 0, 0, .08);

    box-shadow:
        0 24px 60px
        rgba(0, 0, 0, .14);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transform:
        translate(-50%, 8px);

    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s ease;

    z-index: 99999;
}


/* =========================================================
   OUVERTURE — CLIC
========================================================= */

.cl-mega-parent.is-open
> .cl-mega-menu {

    opacity: 1;
    visibility: visible;

    pointer-events: auto;

    transform:
        translate(-50%, 0);
}


/* =========================================================
   OUVERTURE — SURVOL DESKTOP

   Même si le JavaScript ne fonctionne pas,
   le dropdown reste utilisable.
========================================================= */

@media (min-width: 992px) {

    .cl-mega-parent:hover
    > .cl-mega-menu {

        opacity: 1;
        visibility: visible;

        pointer-events: auto;

        transform:
            translate(-50%, 0);
    }

}


/* =========================================================
   CONTENU
========================================================= */

.cl-mega-inner {

    display: grid;

    grid-template-columns:
        270px
        minmax(0, 1fr);

    gap: 30px;

    padding: 30px;
}


/* =========================================================
   INTRO
========================================================= */

.cl-mega-intro {

    padding-right: 25px;

    border-right:
        1px solid
        rgba(0, 0, 0, .08);
}

.cl-mega-kicker {

    display: block;

    margin-bottom: 10px;

    font-size: .64rem;

    font-weight: 700;

    letter-spacing: .13em;

    text-transform: uppercase;

    opacity: .58;
}

.cl-mega-intro h3 {

    margin:
        0
        0
        12px;

    font-size:
        1.2rem;

    line-height:
        1.35;
}

.cl-mega-intro p {

    margin:
        0
        0
        18px;

    font-size:
        .75rem;

    line-height:
        1.7;

    opacity: .7;
}


/* =========================================================
   LIEN INTRO
========================================================= */

.cl-mega-more {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    font-size: .72rem;

    font-weight: 700;

    text-decoration: none;
}

.cl-mega-more:hover {
    text-decoration: none;
}

.cl-mega-more span {

    transition:
        transform .2s ease;
}

.cl-mega-more:hover span {

    transform:
        translateX(4px);
}


/* =========================================================
   À PROPOS
========================================================= */

.cl-mega-links-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
}

.cl-mega-link-card {

    display: grid;

    grid-template-columns:
        38px
        minmax(0, 1fr);

    gap: 12px;

    padding: 17px;

    text-decoration: none;

    border:
        1px solid
        transparent;

    transition:
        background .2s ease,
        border-color .2s ease;
}

.cl-mega-link-card:hover {

    text-decoration: none;

    background:
        rgba(0, 0, 0, .025);

    border-color:
        rgba(0, 0, 0, .07);
}

.cl-mega-number {

    font-size:
        .67rem;

    font-weight:
        700;

    opacity:
        .5;
}

.cl-mega-link-card strong {

    display: block;

    margin-bottom:
        5px;

    font-size:
        .82rem;
}

.cl-mega-link-card small {

    display: block;

    font-size:
        .70rem;

    line-height:
        1.55;

    opacity:
        .68;
}


/* =========================================================
   EXPERTISE
========================================================= */

.cl-expertise-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 19px;
}

.cl-mega-column {

    padding-left:
        15px;

    border-left:
        1px solid
        rgba(0, 0, 0, .07);
}

.cl-column-title {

    display: block;

    margin-bottom:
        10px;

    font-size:
        .61rem;

    font-weight:
        700;

    letter-spacing:
        .11em;

    text-transform:
        uppercase;

    opacity:
        .58;
}

.cl-mega-text-link {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 9px;

    padding: 8px 0;

    font-size:
        .73rem;

    font-weight:
        600;

    text-decoration:
        none;

    border-bottom:
        1px solid
        rgba(0, 0, 0, .05);

    transition:
        padding-left .2s ease;
}

.cl-mega-text-link:last-child {
    border-bottom: 0;
}

.cl-mega-text-link:hover {

    padding-left:
        3px;

    text-decoration:
        none;
}

.cl-mega-text-link span {

    opacity: 0;

    transform:
        translateX(-4px);

    transition:
        opacity .2s ease,
        transform .2s ease;
}

.cl-mega-text-link:hover span {

    opacity: 1;

    transform:
        translateX(0);
}


/* =========================================================
   ACTUALITÉS
========================================================= */

.cl-news-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;
}

.cl-news-card {

    display: flex;

    flex-direction: column;

    min-height: 215px;

    padding: 20px;

    text-decoration: none;

    background:
        rgba(0, 0, 0, .025);

    border:
        1px solid
        transparent;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.cl-news-card:hover {

    text-decoration: none;

    background:
        #ffffff;

    border-color:
        rgba(0, 0, 0, .08);

    transform:
        translateY(-2px);
}

.cl-news-number {

    font-size:
        .66rem;

    font-weight:
        700;

    opacity:
        .5;
}

.cl-news-category {

    margin-top:
        16px;

    font-size:
        .59rem;

    font-weight:
        700;

    letter-spacing:
        .10em;

    text-transform:
        uppercase;

    opacity:
        .58;
}

.cl-news-card strong {

    display:
        block;

    margin-top:
        7px;

    font-size:
        .88rem;
}

.cl-news-card p {

    margin:
        9px 0 14px;

    font-size:
        .69rem;

    line-height:
        1.58;

    opacity:
        .68;
}

.cl-news-arrow {

    margin-top:
        auto;

    font-size:
        .67rem;

    font-weight:
        700;
}


/* =========================================================
   PUBLICATIONS
========================================================= */

.cl-publications-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
}

.cl-publication-link {

    display: grid;

    grid-template-columns:
        38px
        minmax(0, 1fr);

    gap: 12px;

    padding: 16px;

    text-decoration:
        none;

    border:
        1px solid
        transparent;

    transition:
        background .2s ease,
        border-color .2s ease;
}

.cl-publication-link:hover {

    text-decoration:
        none;

    background:
        rgba(0, 0, 0, .025);

    border-color:
        rgba(0, 0, 0, .07);
}

.cl-publication-number {

    font-size:
        .67rem;

    font-weight:
        700;

    opacity:
        .5;
}

.cl-publication-link strong {

    display:
        block;

    font-size:
        .82rem;
}

.cl-publication-link small {

    display:
        block;

    margin-top:
        5px;

    font-size:
        .69rem;

    line-height:
        1.55;

    opacity:
        .68;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991.98px) {

    .cl-mega-menu {

        position:
            relative;

        top:
            auto;

        left:
            auto;

        width:
            100%;

        display:
            none;

        opacity:
            1;

        visibility:
            visible;

        pointer-events:
            auto;

        transform:
            none !important;

        margin:
            0;
        
        box-shadow:
            none;

        border:
            0;
    }


    .cl-mega-parent.is-open
    > .cl-mega-menu {

        display:
            block;
    }


    .cl-mega-inner {

        grid-template-columns:
            1fr;

        gap:
            22px;

        padding:
            20px 0;
    }


    .cl-mega-intro {

        padding-right:
            0;

        padding-bottom:
            17px;

        border-right:
            0;

        border-bottom:
            1px solid
            rgba(0, 0, 0, .08);
    }


    .cl-expertise-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .cl-news-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 767.98px) {

    .cl-mega-links-grid,
    .cl-expertise-grid,
    .cl-news-grid,
    .cl-publications-grid {

        grid-template-columns:
            1fr;
    }

}