/*
body {
    margin: 0;
    font-family:'Lato', sans-serif;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url('../images/index/background.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}*/

body > header {
    width: 100%;
}

body > div {
  width: 100%;
  display: flex;
  justify-content: center;
}

.width {
    width: 100%;
    max-width: 1320px;
    padding: 64px 12px;
}

.logo svg path {
  fill: #002AB4;
  transition: fill 0.3s ease;
}

/* Reset global */

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

ul {
    list-style: none;
}

/* Navbar */

html {
  scroll-behavior: smooth;
}

header {
    position: sticky;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    background-color: transparent;
    backdrop-filter: blur(0); 
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);       /* Safari */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}


.navbar {
    width: 100%;
    max-width: 1320px;
    padding: 16px 12px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.nav-links li:not(:nth-child(4)) a {
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
    color: #002AB4;
    transition: color 0.3s;
}

.nav-links li:not(:nth-child(4)) a:hover {
    text-decoration: underline;
    text-underline-offset: 8px;
}

.nav-links li:not(:nth-child(4)) a:visited, a:active {
    text-decoration: underline;
    text-underline-offset: 8px;
}

/* Button */

.button {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: fit-content;
    gap: 12px;
}

.btn-primary{
    text-decoration: none;
    border: none;
    border-radius: 100px;
    background-color: #7842D7;
    color: #fff;
}

.btn-secondary {
    text-decoration: none;
    border-width: 2px;
    border-style: solid;
    border-color: #9968ED;
    border-radius: 100px;
    background-color: #F6F1FF;
    color: #7842D7;
    box-shadow: none; 
    outline: none;        
}

.btn-tertiary {
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 100px;
    background-color: #002AB4;
    color: #fff;
}

.btn-primary img {
    width: 24px;
    height: 24px;
    color: #fff;
}

.btn-secondary img {
    width: 24px;
    height: 24px;
    color: #7842D7;
}

.btn-primary svg path {
    fill: #fff; /* couleur icône normale */
    transition: fill 0.3s ease;
}

.btn-secondary svg path {
    fill: #7842D7; /* couleur icône normale */
    transition: fill 0.3s ease;
}

.btn-primary:active,
.btn-primary:focus,
.btn-secondary:active,
.btn-secondary:focus,
.btn-tertiary:active,
.btn-tertiary:focus {
    text-decoration: none;
    outline: none;
}

/* Bouton hover active */

.btn-primary:hover,
.btn-primary:active {
    background-color: #5925B1;
}

.btn-secondary:hover,
.btn-secondary:active {
    background-color: #E5D6FF;
}

.btn-tertiary:hover,
.btn-tertiary:active {
    background-color: #002499;
}

.btn-primary, .btn-secondary, .btn-tertiary {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Footer */

footer {
    width: 100%;
    display: flex;
    justify-content: center;
    border-top: 2px solid #2e75ba2e;
        background-color: rgba(255, 255, 255, 0.8);

}

footer div {
    width: 100%;
    max-width: 1320px;  
    padding: 16px 12px;
}

footer div p {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: #3357CC;
}

/* ---------- MENU BURGER ---------- */

.burger {
    display: none; /* caché en desktop */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger span {
    width: 28px;
    height: 3px;
    background-color: #002AB4;
    border-radius: 5px;
    transition: 0.3s;
}

/* ------ Animation du burger en X ------ */
.burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ----- RESPONSIVE ----- */

@media (max-width: 960px) {
    .width {
        max-width: 960px;
        padding: 56px 12px;
    }
}

@media (max-width: 720px) {
    .width {
        max-width: 720px;
        padding: 48px 12px;
    }

    .button {
        font-size: 14px;
    }

    .button > svg {
        width: 20px;
        height: auto;
    }

    header {
        background-color: rgba(255, 255, 255, 0.3);;
    }

    .nav-links li:not(:nth-child(4)) a {
        font-size: 14px;
    }

    footer div p {
        font-size: 14px;
    }

    /* afficher le burger */
    .burger {
        display: flex;
    }

    /* cacher les liens au départ */
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        right: 0;
        width: 100%;
        background: rgba(255,255,255,0.9);
        backdrop-filter: blur(6px);
        flex-direction: column;
        padding: 24px 0;
        gap: 16px;
        border-top: 2px solid #0000000c;
    }

    /* afficher quand actif */
    .nav-links.active {
        display: flex;
    }

    /* aligner le nav en mobile */
    nav {
        position: relative;
    }
}

@media (max-width: 540px) {
    .width {
        max-width: 540px;
        padding: 40px 24px;
    }

    .logo img {
        height: 48px;
    }
}

@media (max-width: 376px) {
    .width {
        max-width: 375px;
    }
}