﻿/* =============================================================================
   $Container
   ========================================================================== */
.container {
    position: relative;
    width: 1420px;
    margin: 0 auto;
    padding: 0 4rem;
}
@media screen and (max-width: 1420px) {
    .container {
        width: 1280px;
    }
}
@media screen and (max-width: 1280px) {
    .container {
        width: 100%;
    }
}
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 2.4rem;
    }
}
@media screen and (max-width: 768px) {
    .container {
        padding: 0 1.6rem;
    }
}
/* =============================================================================
   Header
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    background: var(--greyscale-000);
    border-bottom: 4px solid var(--primary-800);
    padding: 1.8rem 0;
    z-index: 10;
}

header .logo {
    line-height: 0;
}
header .logo img {
    width: 200px;
}

@media screen and (max-width: 1280px) {
    header .logo img {
        width: 150px;
    }
}

/* Search bar */
header .form_search {
    position: relative;
    flex-grow: 1;
    margin: 0 0 0 4rem;
}

header .form_search > p {
    display: none;
}
header .form_search #search-form > .icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 2.4rem;
    z-index: 1;
    color: var(--primary-800);
}

header .form_search form {
    width: 100%;
    padding: 0;
}

header .form_search form input {
    width: 100%;
    padding: 1.4rem 15.4rem 1.4rem 6.4rem;
    border-radius: var(--radius-full);
}

header form .form_submit,
header .form_delete {
    opacity: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.2s ease-in-out;
}

header form input:focus ~ .form_submit,
header form .form_submit:focus,
header form:has(input:focus) ~ .form_delete,
header .form_delete:focus {
    opacity: 1;
}

header form .form_submit {
    right: 6.4rem;
    color: var(--greyscale-600);
}

header form .form_submit .icon {
    margin-left: 4px;
}

header .form_delete {
    right: 2.4rem;
}

header form input:focus ~ .form_delete {
    display: block;
}

header .form_delete .icon {
    color: var(--primary-800);
}

@media screen and (max-width: 1024px) {
    header .form_search {
        display: none;
    }
    header .form_search > p {
        display: block;
    }
    .form_search {
        padding: 2.4rem 1.6rem;
        background: #fff;
    }

    #search-form {
        margin-top: 1.6rem;
    }

    #ajaxSearchResult {
        top: 100%;
        width: 100%;
        left: 0;
        border: none;
        border-bottom: 4px solid var(--primary-800);
        border-radius: 0;
    }

    header form .form_submit {
        right: 4.2rem;
    }

    header .form_delete {
        top: 9.5rem;
        right: 3.2rem;
    }
}
@media screen and (max-width: 980px) {
    header {
        padding: 1.4rem 0;
    }

    header .grid .column {
        width: auto;
    }

    header .btn {
        padding: 1rem;
    }

    header .form_results .grid .segment {
        width: 100%;
    }
}
/* Résultats */
header .form_results {
    position: absolute;
    top: calc(100% + 4px);
    left: -10rem;
    width: 99rem;
    background: var(--greyscale-000);
    padding: 1.4rem 1.6rem;
    border: 1px solid var(--primary-800);
    border-radius: 8px;
    z-index: 5;
    max-height: 600px;
    overflow-y: auto;
    scrollbar-color: var(--secondary-400) var(--greyscale-100);
    scrollbar-width: thin;
}
header .form_results .title {
    margin-bottom: 1.2rem;
}

header .form_results .tags {
    width: max-content;
    margin-bottom: 2.4rem;
}
header .form_results .grid {
    gap: 2.4rem;
}
header .form_results .grid .segment {
    width: calc(50% - 1.2rem);
    margin: 0;
}
header .form_results .grid .segment figure {
    display: grid;
    place-self: center;
    width: 140px;
}

header .form_results .grid .segment .tags {
    flex-direction: row;
}

@media screen and (max-width: 1280px) {
    header .form_results {
        width: 86rem;
    }

    header .form_search form input {
        padding-right: 10rem;
        padding-left: 4.8rem;
        font-size: 1.2rem;
        font-weight: 400;
        line-height: 1.6rem;
    }

}
@media screen and (max-width: 1024px) {
    header .form_search  {
        position: absolute;
        top: calc(100% + 1.8rem);
        width: 100%;
        left: -4rem;
    }
}


/* Navigation */
@media screen and (max-width: 1420px) {
    header .header-nav.is-3 {
        --width: 33%!important;
    }
}
@media screen and (max-width: 1024px) {
    header .header-nav.is-3 {
        --width: max-content !important;
        gap: 1.2rem;
    }
}
header .header-nav {
    justify-content: end;
}
header .header-nav .btn,
header .header-nav button {
    position: relative;
    color: var(--primary-800);
    gap: 8px;
}

header .header-nav button.menu_kebab {
    font-size: 1.8rem;
}

header .header-nav button.menu_kebab .icon {
    transition: transform 0.2s ease-in-out;
}

header .menu_kebab .grid {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    width: max-content;
}

header .menu-dropdown {
    width: 320px;
    background: var(--greyscale-000);
    border: 1px solid var(--primary-800);
    border-radius: var(--radius-16);
    overflow: hidden;
    z-index: 5;
    padding: 0!important;
}

header .menu-dropdown h2 {
    text-align: left;
    padding: 1.6rem;
    cursor: default;
    color: var(--greyscale-900);
    border-bottom: 1px solid var(--greyscale-200);
}

header .menu-dropdown .tags {
    flex-direction: column;
    gap: 0;
}

header .menu-dropdown .tag {
    display: block;
    width: 100%;
    text-align: left;
    padding: 2rem 1.2rem;
    border: none;
    border-radius: 0;
}

header .menu-dropdown li:not(:last-of-type) {
    border-bottom: 1px solid var(--greyscale-200);
}

header .header-nav #showSearch {
    display: none;
}

@media screen and (max-width: 1024px) {
    header .header-nav .btn,
    header .header-nav button {
        display: grid;
        place-items: center;
        width: 4rem;
        height: 4rem;
        padding: 0;
    }
    header .header-nav #showSearch {
        display: grid;
    }
    header .menu-dropdown {
        width: 300px !important;
    }
}
/* Notification */
.nbNotifs {
    display: none;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    color: var(--greyscale-000);
    background: var(--primary-800);
    padding: 2px;
    line-height: 1;
    font-size: 1.2rem;
    position: absolute;
    right: 1rem;
    top: 4px;
    border-radius: 100%;
}
@media screen and (max-width: 1024px) {
    .nbNotifs {
        right: -2px;
        top: 0;
    }
}
#notifications {
    width: 450px;
    flex-direction: column;
    margin-left: auto;
    padding: 1.6rem 1.6rem 0;
    min-height: 100vh;
    border: 0;
    overflow-x: hidden;
}

#notifications[open] {
    display: flex;
}

#notifications::backdrop {
    background: #333333;
    opacity: 75%;
}

#closeNotifications,
.supprNotif {
    margin-left: auto;
}

#notifications h1 {
    margin: 8px 0 2.4rem;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    height: calc(150px * 4 + 1.6rem * 3);
    margin-top: 1.6rem;
    padding-right: 1.6rem;
    overflow-y: auto;
    scrollbar-color: var(--secondary-400) var(--greyscale-100);
    scrollbar-width: thin;
    scrollbar-gutter: stable;
}

.notification-list::-webkit-scrollbar-thumb {
    border-radius: 8px;
}

.notification {
    padding: 1.6rem 1.2rem;
    border: 1px solid var(--primary-800);
}

.notification h3 {
    margin: 1.6rem 0;
}

.notification .icon {
    color: var(--primary-800);
}

.goNotif {
    width: calc(100% + 3.2rem);
    margin-top: auto;
    margin-left: -1.6rem;
    border-top: 1px solid var(--greyscale-100);
}

.goNotif a {
    margin: 1.6rem auto;
}

@media screen and (max-width: 980px) {
    #notifications {
        width: 95vw;
    }
}
/* =============================================================================
   Footer
   ========================================================================== */
footer {
    padding-top: 4.8rem;
    padding-bottom: 4.8rem;
    border-bottom: 4px solid var(--primary-800);
}
footer img {
    width: 175px;
}
footer .font-subtitle {
    font-weight: 700;
}

footer .flex {
    gap: 2.4rem;
}

footer .footer-section {
    color: var(--greyscale-700);
    flex-grow: 1;
    margin-top: 1.6rem;
    max-width: 25%;
}

@media screen and (max-width: 980px) {
    footer .container {
        text-align: center;
        padding: 0 4.8rem;
    }
    footer .footer-section ul {
        justify-content: center;
    }
}
footer .liste_federations ul, footer .liste_banques ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
footer .liste_federations li:not(:last-of-type)::after, footer .liste_banques li:not(:last-of-type)::after {
    content: '-';
    margin-left: 4px;
}

footer .footer-section .font-subtitle,
footer .footer-section img {
    margin-bottom: 8px;
}

footer .footer-section p a {
    font-weight: 700;
}

footer .footer-section:not(:last-of-type) {
    padding-right: 2.4rem;
    border-right: 1px solid var(--greyscale-200);
}

@media screen and (max-width: 980px) {
    footer .footer-section {
        max-width: 100%;
        text-align: center;
        border: none !important;
        padding: 0 !important;
    }
}

footer .nav_model04 {
    color: var(--greyscale-700);
    margin: 4.8rem 0 1.6rem;
}

footer .copyright {
    color: var(--primary-800);
}

/* =============================================================================
   Connexion / Inscription
   ========================================================================== */
.connect {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.connect header,
.connect footer {
    border: none;
    padding: 0;
}

.connect .container {
    width: 700px;
}

@media screen and (max-width: 768px) {
    .connect .container {
        width: 100%;
    }
}

.connect .logo {
    display: block;
    width: 250px;
    margin: 5.8rem auto 4.8rem;
}

.connect footer {
    margin-top: auto;
}

/* =============================================================================
   Liste d'article
   ========================================================================== */
.article_list {
    gap: 2.4rem;
}

.article_list article {
    width: calc(100% / 4 - 2.4rem);
    min-height: 405px;
}

.article_list article.video,
.article_list article.quiz {
    width: calc(100% / 2 - 2.4rem);
}

@media screen and (max-width: 1280px) {
    .article_list article {
        width: calc(100% / 3 - 2.4rem);
    }

    .article_list article.video,
    .article_list article.quiz {
        width: calc(100% / 3 * 2 - 2.4rem);
    }
}

@media screen and (max-width: 1024px) {
    .article_list article {
        width: calc(100% / 2 - 2.4rem);
    }

    .article_list article.video,
    .article_list article.quiz {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .article_list article {
        width: 100%;
    }
}
/* =============================================================================
   Portail
   ========================================================================== */
.portal *[class*="List_Model"],
*[class*="Block_Model"],
.portal .comublock{
    position: relative;
}

.portal *[class*="List_Model"]:not(.List_Model1),
.portal *[class*="Block_Model"]:not(.Block_Model1) {
    padding-top: 2.4rem;
    padding-bottom: 4.8rem;
}

    .portal *[class*="List_Model"]:not(.List_Model1) h2,
    .portal *[class*="Block_Model"] h2,
    .portal .comublock h2{
        color: var(--primary-800);
    }

    .portal *[class*="List_Model"]:not(.List_Model1)::before,
    .portal *[class*="Block_Model"]:not(.Block_Model1)::before,
    .portal .comublock::before {
        content: "";
        position: absolute;
        top: 0;
        left: calc(-50vw + 50%);
        width: 100vw;
        height: 100%;
        z-index: -1;
    }

.portal .List_Model2::before {
    background: var(--secondary-050);
}

.portal .List_Model3::before {
    background: var(--primary-050);
}
.portal .Block_Model3::before {
    background: var(--secondary-000);
}

.portal .Block_Model2::before,
.portal .Block_Model4::before,
.portal .comublock::before {
    background: var(--secondary-100);
}

.portal .Block_Model1 {
    padding-top: 1.2rem;
    padding-bottom: 2.4rem;
    border-bottom: 4px solid var(--primary-800);
}
.portal .Block_Model1 .themes {
    overflow-x: auto;
    padding-bottom: 1.6rem;
}
.portal .Block_Model1 .tags {
    width: max-content;
}

@media screen and (max-width: 1024px) {
    .portal .Block_Model1 .themes {
        margin: 0 -1.6rem 0 0;
    }
    .portal .Block_Model1 .themes .tag:last-of-type {
        margin-right: 1.6rem;
    }
}

.portal .Block_Model1 p {
    font-size: 2.4rem;
    font-weight: bold;
    line-height: 3.2rem;
    padding-bottom: 8px;
}
