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

/* ========== */
/* css header */
/* ========== */

li, a, button {
    font-family: "Heebo";
    font-weight: 500;
    font-size: 16px;
    color: #494a49;
    text-decoration: none;
}

header {
    /*min-width: 100vh; /*à modifier car empêche de réduire la taille du header */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 0px; /* (valeur de base 30px 10%) modifie les dimensions du header, la valeur en px augmente la taille du header 
    en haut et en bas et le % modifie l'espacement gauche et droite  */
    position: sticky;
    top: 0px;
    background-color: white;
    z-index: 1000;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.logo {
    cursor: pointer;
    width: 180px; /* a modifié*/
    display: block;
    margin-right: 50px;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    display: inline-block;
    padding: 0px 20px;
}

.nav-links li a {
    transition: all 0.3s ease 0s;
}

.nav-links li a:hover {
    color: #81c3c9;
}

header button {
    padding: 12px 25px; /* valeur d'origine : 9px 25px */
    background-color: #81c3c9;
    border: none;
    border-radius: 8px; /* valeur d'origine : 50px */
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-left: 50px;
}

header button:hover {
    background-color: #6eaeb3; /* rgba(0,136,169,0.8); */
    color: #fff;
}

/* ============== */
/* Hamburger menu */
/* ============== */

.burger-menu {
    display: none;
    background: transparent;
    padding: 10px;
    border: none;
    cursor: pointer;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #81c3c9;
    transition: all 0.3s ease-in-out;
}

.nav-links.active {
    display: flex;
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ================= */
/* Mediaquery header */
/* ================= */

@media screen and (max-width: 1360px) {
    .logo {
        margin-right: 25px;
    }
    header button {
        margin-left: 25px;
    }
}

@media screen and (max-width: 1290px) {
    .logo {
        margin-right: 15px;
    }
    header button {
        margin-left: 15px;
    }
}

@media screen and (max-width: 1270px) {
    .logo {
        margin-right: 15px;
        width: 170px;
    }
    header button {
        margin-left: 15px;
        padding: 12px 20px;
    }
    .nav-links li, a, button {
        font-size: 15px;
    }
}

@media screen and (max-width: 1211px) {
    .logo {
        margin-right: 15px;
        width: 170px;
    }
    header button {
        margin-left: 15px;
        padding: 12px 20px;
    }
    .nav-links li, a, button {
        font-size: 15px;
    }
    .nav-links li {
        padding: 0px 15px;
    }
}

@media screen and (max-width: 1139px) {
    .logo {
        margin-right: 12px;
        width: 150px;
    }
    header button {
        margin-left: 12px;
        padding: 12px 18px;
    }
    .nav-links li, a, button {
        font-size: 15px;
    }
    .nav-links li {
        padding: 0px 10px;
    }
}

@media screen and (max-width: 1035px) {
    .logo {
        margin-right: 11px;
        width: 145px;
    }
    header button {
        margin-left: 11px;
        padding: 12px 15px;
    }
    .nav-links li, a, button {
        font-size: 15px;
    }
    .nav-links li {
        padding: 0px 9px;
    }
}

@media screen and (max-width: 1000px) {
    header {
        justify-content: space-between; /* logo à gauche et header-right à droite */
        padding: 14px 20px;
    }

    /* Bouton + burger à droite */
    .header-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.7rem;
        position: absolute;
        height: 100vh;
        width: 250px;
        top: 100%; /* à modifier */
        right: 0;
        padding: 2rem 1.5rem;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
        background-color: rgba(255, 255, 255, 1);
    }

    .burger-menu {
        display: block;
        z-index: 1000;
        cursor: pointer;
    }
}

@media screen and (max-width: 430px) {
    .logo {
        width: 130px;
    }

    header button {
        padding: 12px 13px;
    }

    .nav-links li, a, button {
        font-size: 13px;
    }
}

@media screen and (max-width: 389px) { /* 389px ou 390px */
    .logo {
        width: 120px;
    }

    header button {
        padding: 11px 12px;
    }

    .nav-links li, a, button {
        font-size: 12px;
    }
}

@media screen and (max-width: 369px) {
    .logo {
        width: 110px;
    }

    header button {
        padding: 10px 11px;
    }

    .nav-links li, a, button {
        font-size: 11px;
    }
}

@media screen and (max-width: 347px) {
    .logo {
        width: 105px;
    }

    .nav-links li, a, button {
        font-size: 10px;
    }
}

@media screen and (max-width: 333px) {
    .logo {
        width: 100px;
    }

    .nav-links li, a, button {
        font-size: 9.5px;
    }
}

@media screen and (max-width: 324px) {
    .logo {
        width: 100px;
    }

    .nav-links li, a, button {
        font-size: 9px;
    }
}

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

    .nav-links li, a, button {
        font-size: 8.5px;
    }
}

/* ========== */
/* css footer */
/* ========== */

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif; /* à changer */
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    position: relative;
    /* flex-shrink: 0;*/
    width: 100%;
    height: auto;
    padding-top: 80px; /* à modifier (sert a modifier l'espace entre le footer et le main */
    background-color: #ffffff; /* couleur du footer */
}

.container {
    width: 100%;
    max-width: 1450px; /* a modifié peut etre */
    margin: 0 auto;
    padding: 0 12px;
}

.wrapper {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: wrap;
}

.wrapper .footer-widget { /* permet de modifier chaque carré du footer */
    width: calc(20% - 30px);
    margin: 0 15px 50px;
    padding: 0 12px;
}

.wrapper .footer-widget:nth-child(1) { /* :nth-child(1) permet de selectioner le premier enfant dans le parent sert a modifier le premier carré du footer ou y a le logo */
    width: calc(40% - 50px);
    margin-right: 15px;
}

.wrapper .footer-widget .logo-footer {
    margin-bottom: 30px;
    vertical-align: middle;
    cursor: pointer;
    width: 180px;
}

.wrapper .footer-widget p {
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 24px;
}

.wrapper .footer-widget .socials {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.wrapper .footer-widget .socials li {
    list-style: none;
}

.wrapper .footer-widget .socials li a {
    width: 44px;
    height: 44px;
    margin-right: 10px;
    color: white;
    background-color: rgba(129, 195, 201, 0.5);
    border-radius: 50%;
    font-size: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-out;
}

.wrapper .footer-widget .socials li a img {
    width: 2rem;
    height: 2rem;
}

.wrapper .footer-widget .socials li a:hover {
    background-color: #81c3c9;
}

.wrapper .footer-widget h6 {
    color: #585978;
    margin: 10px 0 35px;
    font-size: 20px;
    font-weight: 600;
}

.wrapper .footer-widget .links li {
    list-style: none;
}

.wrapper .footer-widget .links li a {
    color: #585978;
    font-size: 16px;
    text-decoration: none;
    text-transform: none; /* text-transform: capitalize; */
    line-height: 32px;
    transition: all 0.3s ease-out;
}

.wrapper .footer-widget .links li a:hover {
    color: #81c3c9;
}

.footer-widget .links img {
    width: 18px;
    height: 18px;
    margin-right: 8px;       /* espacement */
    vertical-align: middle;  /* bien aligné avec le texte */
}

.copyright-wrapper {
    padding: 0.5rem 0; /* sert a modifier la taille de la zone du copyright */
    border-top: 1px solid rgba(88, 89, 120, 0.4);
}

.copyright-wrapper p {
    color: rgba(88, 89, 120, 0.6);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* ================= */
/* mediaquery footer */
/* ================= */

@media screen and (max-width: 992px) {
    .container {
        max-width: 960px;
    }

    .wrapper .footer-widget,
    .wrapper .footer-widget:nth-child(1) {
        width: calc(50% - 30px);
    }
}

@media screen and (max-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .wrapper .footer-widget,
    .wrapper .footer-widget:nth-child(1) {
        width: 100%;
        margin: 0 10px 50px;
    }
}

@media screen and (max-width: 360px) {
    .wrapper .footer-widget .socials {
        display: grid;
        grid-template-columns: repeat(3, 44px); /* 3 icônes par ligne */
        grid-template-rows: repeat(2, 44px);    /* 2 lignes */
        column-gap: 10px;                       /* espace horizontal entre ronds */
        row-gap: 10px;                          /* espace vertical entre lignes */
        justify-content: start;                 /* alignement à gauche */
    }

    .wrapper .footer-widget .socials li {
        margin: 0;                              /* supprime marges supplémentaires */
    }

    .wrapper .footer-widget .socials li a {
        display: flex;                          /* centre l'image dans le rond */
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
    }

    .wrapper .footer-widget .socials li a img {
        display: block;
        width: auto;                            /* taille originale de l'image */
        height: auto;
        max-height: 24px;                       /* comme sur desktop */
        margin: 0;
    }
}

