/**
 * Fichier  : /ott/library/assets/css/sections/style.css
 * Fonction : styles des rangées de la vidéothèque
 */


/* ==================================================
   ROW
================================================== */

#library .row {
    position: relative;
    overflow: hidden;
}

#library .row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

#library .row {
    box-sizing: border-box;
    padding-left: 2em;
}

#library .row {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2vw, 26px);
}


/* ==================================================
   HEADER
================================================== */

#library .row > header {
    position: relative;
}

#library .row > header {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
}

#library .row > header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

#library .row > header > div {
    min-width: 0;
}

#library .row > header > div {
    display: flex;
    flex-direction: column;
    gap: .6em;
}


/* ==================================================
   TITLES
================================================== */

#library .row > header h5 {
    position: relative;
}

#library .row > header h5 {
    width: fit-content;
}

#library .row > header h5 {
    font-family: 'content-font';
    font-size: .8em;
    font-weight: 600;
    line-height: 1.2;
}

#library .row > header h5 {
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.58);
}

#library .row > header h5::after {
    content: "";
}

#library .row > header h5::after {
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
}

#library .row > header h5::after {
    width: 24px;
    height: 1px;
}

#library .row > header h5::after {
    background: rgba(255,120,0,.45);
    transform: translateY(-50%);
}

#library .row > header h4 {
    font-family: 'title-font';
    font-size: 2.2em;
    font-weight: 800;
    line-height: .96;
}

#library .row > header h4 {
    letter-spacing: -.04em;
    text-wrap: balance;
    color: #fff;
}

#library .row > header h4 {
    text-shadow:
        0 2px 18px rgba(0,0,0,.22);
}


/* ==================================================
   BUTTON
================================================== */

#library .row > header > a {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

#library .row > header > a {
    margin-right: 5em;
    flex: 0 0 auto;
}

#library .row > header > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#library .row > header > a {
    padding: 11px 16px;
}

#library .row > header > a {
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.08),
            rgba(255,255,255,.03)
        );
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    backdrop-filter: blur(18px);
}

#library .row > header > a {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05),
        0 10px 30px rgba(0,0,0,.24);
}

#library .row > header > a {
    font-family: 'content-font';
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    color: rgba(255,255,255,.82);
}

#library .row > header > a {
    transition:
        transform .2s ease,
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease,
        color .25s ease;
}


/* ==================================================
   BUTTON HOVER
================================================== */

#library .row > header > a:hover {
    transform: translateY(-1px);
}

#library .row > header > a:hover {
    color: #fff;
}

#library .row > header > a:hover {
    border-color: rgba(255,120,0,.22);

    background:
        linear-gradient(
            135deg,
            rgba(255,95,45,.16),
            rgba(255,145,0,.08)
        );
}

#library .row > header > a:hover {
    box-shadow:
        0 10px 30px rgba(0,0,0,.35),
        0 0 25px rgba(255,120,0,.08);
}


/* ==================================================
   SECTION
================================================== */

#library .row > section {
    position: relative;
    overflow: visible;
}

#library .row > section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}


/* ==================================================
   MODERN SPACING
================================================== */

#library .row + .row {
    margin-top: 2em;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media screen and (max-width: 768px) {

    #library .row {
        padding-inline: 14px;
    }

    #library .row {
        gap: 14px;
    }

    #library .row > header {
        align-items: flex-start;
        gap: 14px;
    }

    #library .row > header h4 {
        font-size: clamp(24px, 9vw, 38px);
        line-height: 1;
    }

    #library .row > header h5 {
        font-size: 10px;
    }

    #library .row > header h5::after {
        width: 14px;
    }

    #library .row > header > a {
        padding: 9px 12px;
    }

    #library .row > header > a {
        font-size: 11px;
    }

}