* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #edf2f4;
    font-family: Inter, sans-serif;
    font-size: 1.2rem;
}

/*     HEADER   */

#main-header {
    color: #ccc;
    background-color: #03045e;
    position: sticky;
    top: 0;
    z-index: 20;
}

#main-header #navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    padding: 0 4rem;
    margin: 0 auto;
    position: relative;
    color: #ccc;
}

#navbar #logo {
    font-size: 2rem;
    font-weight: 700;
    margin: .3rem 0;
    text-decoration: none;
    color: inherit;
}

#nav-menu-btn {
    display: none;
}

#nav-menu-btn #nav-btn-check {
    display: none;
}

#nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    height: 3rem;
}

#nav-menu li a {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .05em;
    border-bottom: 2px solid transparent;
    padding-bottom: .1rem;
    transition: all .3s ease;
}

#nav-menu li a:hover, #nav-menu li a:focus-visible, #nav-menu li a.active {
    color: #ffb703;
    border-bottom-color: #ffb703;
    outline: #ffb703;
    outline-offset: .2rem;
}

/*  END HEADER    */

/*  Universal Style     */
h1, h2, h3, #logo {
    font-family: 'Poppins', sans-serif;
}

#main-home .container h1, #main-contact h1, #main-about .container h1 {
    font-size: 1.5em;
    margin-bottom: 1rem;
}

#main-home h2, #main-contact h2, #main-about h2 {
    font-size: 1.3em;
    margin-bottom: 2rem;
}

#main-home h3, #main-contact h3, #main-about h3 {
    font-size: 1.1em;
    margin-bottom: .5rem;
}

.content-section, .container {
    max-width: 1100px;
    padding: 2rem 4rem;
    margin: 0 auto;
}

.container {
    padding-block: 0;
}
/*  end Universal style   */

/*    MAIN   */

main {
    padding: 50px 0;
}

#main-home .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 4rem;
}

#main-home .container p {
    max-width: 700px;
    text-align: center;
}

#main-home section p {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: #ccc;
    line-height: 1.6;
}

#main-home section:first-of-type {
    background: url("images/images1.jpg") center / cover no-repeat;
}

#main-home section:last-of-type {
    background: linear-gradient(to right, #03045e, #3a86ff);
}

/*   A Propos   */
#main-about .container {
    text-align: left;
}

#main-about .section {
    text-align: justify;
    line-height: 1.6;
}

.special-paragraph {
    text-indent: 2rem;
}

.special-paragraph:first-letter {
    font-weight: 700;
    font-style: italic;
    font-size: 2rem;
}

.section.members {
    color: #ccc;
    background-color: #03045e;
}

.section.members .member-list {
    max-width: 100%;
    margin: 2rem auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.member-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
    width: 25%;
    height: 300px;
    border-radius: 1rem;
    border: 2px solid #ccc;
    background-color: rgba(0, 0, 225, .5);
    padding: 2rem 1rem;
    transition: transform .5s ease;
}

.member-item:hover {
    transform: scale(1.05);
}

.member-item .picture {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #000;
    font-size: 3rem;
    font-weight: 700;
}

.member-item .member-name {
    font-size: 1.5rem;
    text-align: center;
}

.member-item .member-firstname {
    font-size: 1rem;
    text-align: center;
}
/*   End A Propos   */

/*      CONTACT     */
#main-contact {
    min-height: 100vh;
}

#main-contact .content-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.section .form-container {
    flex: 1;
    color: #ccc;
    background-color: #03045e;
    border-radius: 15px;
    padding: 2.5rem 2rem;
    min-width: 300px;
}

.form-container #form {
    margin-top: 1rem;
}

.section .infos-container {
    flex: 1;
    padding: 2.5rem 2rem;
    min-width: 300px;
}

.infos-container .infos-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 1.4rem;
}

.infos-list h3 {
    color: #03045e;
}

.infos-list a {
    text-decoration: none;
    color: inherit;
}

.infos-list a:hover {
    text-decoration: underline;
}

#main-contact #form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#form .group-form {
    display: flex;
    flex-direction: column;
    row-gap: .3rem;
}

.group-form .field-name {
    font-size: 1.3rem;
}

.group-form .field, .group-form .msg-field {
    font-size: 1rem;
    padding: .1rem .4rem;
}

.group-form .msg-field {
    resize: vertical;
    min-height: 6rem;
    line-height: 1.4;
}

#form #btn {
    font-size: 1rem;
    font-weight: bold;
    padding: .6rem 1rem;
    margin-top: 1.5rem;
    border: none;
    border-radius: 15px;
    transition: all .3s;
}

#form #btn:hover {
    color: #fff;
    background-color: #ffb703;
}
/*      End CONTACT     */
/*  END MAIN */

/*  FOOTER */

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    color: lightgray;
    padding: 1rem 1.5rem;
    margin: 0 auto;
    font-size: .8em;
}

/*  END FOOTER*/

/* Mise en forme pour les versions mobiles */
@media (max-width: 600px) {
    body {
        font-size: 1rem;
    }

    #navbar #logo {
        font-size: 1.4rem;
    }

    #main-header #navbar {
        padding: 0 1.5rem;
    }

    /* Menu Hamburger   */
    #nav-menu-btn {
        display: block;
        cursor: pointer;
    }

    #nav-menu-btn .nav-menu-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 17px;
        cursor: pointer;
    }

    .nav-menu-icon span {
        display: block;
        height: 3px;
        border-radius: 3px;
        background-color: #ccc;
        transition: all .3s ease;
    }

    #nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: absolute;
        top: 100%;
        right: 0;
        max-width: 0;
        height: auto;
        overflow: hidden;
        background-color: #03045e;
        transition: all .5s ease;
    }
    
    #nav-menu li a {
        padding: .5rem 2rem;
        width: 100%;
        white-space: nowrap;
    }

    #nav-menu li a:hover, #nav-menu li a:focus-visible, #nav-menu li a.active {
        color: #03045e;
        background-color: #ffb703;
        border-bottom-color: transparent;
    }

    #nav-btn-check:checked ~ .nav-menu-icon span:first-child {
        transform: translateY(7px) rotate(45deg);
    }

    #nav-btn-check:checked ~ .nav-menu-icon span:nth-child(2) {
        opacity: 0;
    }

    #nav-btn-check:checked ~ .nav-menu-icon span:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }

    #navbar:has(#nav-btn-check:checked) #nav-menu {
        max-width: 150px;
    }
    /* end Menu Hamburger*/

    /*  Universal Styles for Mobile   */
    #main-home .container h1, #main-contact h1, #main-about .container h1 {
        font-size: 1.4em;
        margin-bottom: .5rem;
    }

    #main-home h2, #main-contact h2, #main-about h2 {
        font-size: 1.3em;
        margin-bottom: .2rem;
    }

    #main-home h3, #main-contact h3, #main-about h3 {
        font-size: 1.1em;
        margin-bottom: 0;
    }

    .content-section, .container {
        padding: 0 1.5rem;
    }
    /*  end Universal style for Mobile  */

    /*     Home Page    */
    #main-home .container {
        padding-bottom: 2rem;
    }

    /*   A Propos   */
    #main-about .content-section {
        padding: 2rem 1.5rem;
        line-height: 1.4;
    }
    
    #members-section {
        padding: 2rem 1.5rem;
    }

    .member-item {
        row-gap: 1.5rem;
        min-width: 200px;
        height: 250px;
        border-radius: .6rem;
        padding: 1.5rem 1rem;
    }

    .member-item .picture {
        width: 90px;
        height: 90px;
        font-size: 2rem;
    }

    .member-item .member-name {
        font-size: 1.2rem;
    }

    .member-item .member-firstname {
        font-size: .8rem;
    }

    /*      Contact Page     */
    #main-contact .container h1 {
        margin-bottom: 1rem;
    }

    #main-contact .form-container {
        gap: 1rem;
        border-radius: 8px;
        padding: 1.5rem 2rem;
    }

    .group-form .field-name {
        font-size: 1.1rem;
    }

    #form #btn {
        font-size: .8rem;
        padding: .4rem 1rem;
        margin-top: 1.5rem;
        border-radius: 30px;
    }

    #main-contact .infos-list {
        row-gap: 1rem;
    }
    /*   footer for Mobile   */
    footer {
        font-size: .8em;
    }
    /*   end footer for Mobile*/
}