/*
 Theme Name:   Science Squad
 Theme URI:    http://example.com/twenty-fifteen-child/
 Description:  Science Squad Theme
 Author:       SLWD
 Author URI:   https://slwd.fr
 Version:      1.0.0
*/


@font-face {
    font-family: 'jefferies';
    src: url('assets/fonts/JEFFE.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.lato-thin {
    font-family: "Lato", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.lato-light {
    font-family: "Lato", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.lato-regular {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.lato-bold {
    font-family: "Lato", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.lato-black {
    font-family: "Lato", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.lato-thin-italic {
    font-family: "Lato", sans-serif;
    font-weight: 100;
    font-style: italic;
}

.lato-light-italic {
    font-family: "Lato", sans-serif;
    font-weight: 300;
    font-style: italic;
}

.lato-regular-italic {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.lato-bold-italic {
    font-family: "Lato", sans-serif;
    font-weight: 700;
    font-style: italic;
}

.lato-black-italic {
    font-family: "Lato", sans-serif;
    font-weight: 900;
    font-style: italic;
}


:root {
    --primary-color: #150a38;
    /* Bleu foncé */
    --secondary-color: #cd1401;
    /* Rouge */
    --background-color: #1c09ae;
    /* Bleu clair */
    --text-color: #000000;
    /* Noir */
    --second-text-color: #fff;
    /* Blanc */

}

body {
    font-family: 'Lato';
    margin: auto;
}

main {
    width: 1000px;
    margin: 0 auto;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'jefferies';
    color: var(--text-color);
}

h1 {
    font-size: 38px;
    font-weight: 600;
}

h2 {
    font-size: 32px;
    font-weight: 600;
}

h3 {
    font-size: 24px;
    font-weight: 600;
}

h4 {
    font-size: 20px;
    font-weight: 600;
}

p,
li,
ul {
    font-size: 18px;
}

ul li {
    margin-bottom: 0.5em;
    /* ajuste selon ce que tu veux */
}

a,
a:link {
    text-decoration: none !important;
}

a:focus {

    outline: none !important;

}


.content-area {
    width: 100%;
}



/******* HEADER ******/
.site-header {
    background-color: var(--text-color);
}

.three-columns-header {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-socials {
    flex: 1;
    display: flex;
    gap: 10px;
    align-items: center;
}

.logo_header {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo_header img {
    width: 100px;
    height: auto;
}

.header-menu {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav_menu {
    display: flex;
    gap: 20px;
}

.nav_menu a {
    color: var(--second-text-color);
    font-family: 'jefferies';
    text-transform: uppercase;
    font-size: 12px;
    transition: 0.2s;
}

.header-socials .fa-brands {
    color: var(--second-text-color);
    width: 20px;
    margin-right: 10px;
    transition: 0.2s;
}

.nav_menu a:hover,
.header-socials .fa-brands:hover {
    color: var(--background-color);
}

.hamburger {
    display: none;
}

/* 
.container-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.navbar-nav {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 50px;
    font-size: 16px;
    font-weight: 600;
    justify-content: end;
    margin: 0;
}

nav ul li {
    float: left;
    width: auto;
    text-align: center;
    position: relative;
}

nav ul::after {
    content: "";
    display: table;
    clear: both;
}

nav a {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 2px solid transparent;
    padding: 10px 0px;
    transition: .3s;
}

.navbar-nav a:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.sub-menu {
    display: none;
    box-shadow: 0px 1px 2px #CCC;
    background-color: white;
    position: absolute;
    width: auto;
    z-index: 1000;
    list-style: none;
}

ul li:hover .sub-menu {
    display: block;
}

.sub-menu li {
    float: none;
    width: 100%;
    text-align: left;
}

.sub-menu a {
    padding: 10px;
    border-bottom: none;
}

.sub-menu a:hover {
    border-bottom: none;
    background-color: RGBa(200, 200, 200, 0.1);
}

.menu-item-40>a::after {
    content: "  ▼";
    font-size: 12px;
}

/*

/********** MEMBRES ************/


.title-membres {
    margin-bottom: 40px;
}

.col-membres {
    width: 1140px;
    margin: 0 auto;
}

.col-membres h2 {
    font-size: 18px;
}


/********** FOOTER ***************/

.site-footer {
    background-color: var(--text-color);
    color: var(--second-text-color);
    text-align: center;
    font-size: 13px;
    padding: 15px 10px;
    line-height: 1.4;
    margin-top: 80px;
}

.footer-socials {
    margin-bottom: 8px;
}

.footer-socials a {
    color: var(--second-text-color);
    margin: 0 10px;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: var(--secondary-color);
}

.footer-links {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--second-text-color);
    margin: 0 8px;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-copy {
    font-size: 12px;
    color: #777;
}

/** Bouton téléchargement logo **/

.card {
    border: 0px !important;
}

.media {
    justify-content: center !important;
}

.mr-3,
.media-body {
    display: none;
}

.btn-primary {
    background-color: #1c09ae !important;
    border-color: #1c09ae !important;
}






/********************************/
/******* RESPONSIVE MOBILE ******/
/********************************/


/* Styles spécifiques aux mobiles */
@media (max-width: 768px) {

    h1 {
        font-size: 24px;
        font-weight: 600;
    }

    h2 {
        font-size: 18px;
        font-weight: 600;
    }

    h3 {
        font-size: 16px;
        font-weight: 600;
    }

    p,
    ul,
    li {
        font-size: 14px;
    }

    header {
        width: auto;
        margin: 0 auto;
    }

    .logo_header img {
        width: 100px;
        height: auto;
    }

    main {
        width: auto;
        margin: 0 10px;
    }


    /** HEADER **/

    .container-header {
        justify-content: flex-start;
    }

    .three-columns-header {
        width: auto;
        display: flex;
        flex-wrap: wrap;
    }

    .logo_header {
        padding-left: 5px;
        justify-content: flex-start;
    }

    .hamburger {
        display: block;
        /* Le bouton hamburger s'affiche sur les mobiles */
        position: absolute;
        font-size: 30px;
        right: 20px;
        /* Positionnement à droite */
        z-index: 2;
        /* S'assure que le hamburger est cliquable */
    }

    .navbar {
        padding: 0;
        width: auto;
    }

    .navbar-collapse.collapse {
        max-height: 0;
        /* Menu caché initialement */
        overflow: hidden;
        opacity: 0;
        transform: translateY(-20px);
        /* Menu légèrement décalé vers le haut */
        transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out, max-height 0.3s ease-in-out;
        /* Transition fluide pour l'apparition */
        position: absolute !important;
        /* Ajuster pour positionner sous la barre de navigation */
        width: 100%;
        background-color: #fff;
        z-index: 1;

    }

    .header-socials {
        display: none;
    }



    #menu-toggle:checked~.navbar-collapse.collapse {
        display: block;
        /* Affiche le menu lorsque la checkbox est cochée */
    }

    .navbar-collapse.collapse.show {
        transform: translateY(0);
        opacity: 1;
        max-height: none;
        top: 98px
    }

    .navbar-collapse.collapse .nav_menu li {
        display: block;
        /* Affiche les éléments du menu en bloc pour une disposition verticale */
        text-align: left;

        /* Centre le texte des éléments du menu */
        a {
            padding-left: 10px;
        }

        a:hover {
            transform: none;
        }

    }


    .nav_menu ul {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: transform 0.5s ease-in-out, max-height 0.5s ease-in-out;
        /* Transition fluide pour l'apparition */
    }

    .nav_menu ul.open {
        transform: translateY(0);
        opacity: 1;
        max-height: none;
    }


    .nav_menu {
        list-style: none;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        margin-bottom: 0;
        gap: 0;
        align-items: flex-start;
        padding: 0;
        margin-top: 0;

    }

    .nav_menu li {
        margin: 0;
        padding: 10px 0;
        border-top: 1px solid black;
        width: 100%;
    }

    header .container {
        width: 100%;
        height: auto;
        margin-top: 5px;
    }

    .nav_menu li a {
        color: var(--text-color) !important;
    }

    .thumbnail-home {
        display: none;
    }

    .nav_menu>li {
        position: relative;
        /* S'assurer que chaque élément de menu est en position relative */
    }

    .nav_menu>li ul {
        position: relative;
        /* Changer de absolute à relative */
        display: none;
        /* Masquer les sous-menus par défaut */
        width: 100%;
        /* S'assurer que le sous-menu occupe toute la largeur disponible */
        overflow: hidden;
        height: 0;
        /* Par défaut, le sous-menu est caché */
    }

    .nav_menu>li:hover ul,
    .nav_menu>li:focus-within ul {
        display: block;
        /* Afficher les sous-menus au survol ou au focus */
        overflow: hidden;
        /* Cacher tout débordement */
    }

    .nav_menu>li ul li {
        width: 100%;
        /* S'assurer que chaque élément du sous-menu prend toute la largeur */
        border-top: 1px solid black;
        /* Ajouter une bordure pour séparer les éléments */
    }

    .nav_menu>li ul li a {
        display: block;
        padding-left: 20px !important;
    }

    .hamburger+.navbar-collapse {
        position: relative;
        z-index: 1;
    }

    .nav_menu>li ul.open {
        height: auto;
        /* Le sous-menu prend sa hauteur naturelle */
    }


    /** MEMBRES ****/

    .title-membres {
        font-size: 24px;
        text-align: center;
    }

    .col-membres {
        width: auto;
    }

    .col-1 {
        margin-bottom: 0 !important;
    }


}