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

:root {
    --primary: #473FF7;
    --secondary: #57ED89;
    --light-bg: #E5E5FF;
    --dark: #1A1F2C;
    --text: #333;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
    padding-top: 80px;
}
/* Navigation */
.navbar {
    display: flex;
    list-style: none;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem 5%;
    background-color: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 1rem;
  }

  .logo img {
    height: 5rem;
    margin-right: 2rem;
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    gap: 2rem;
}

.nav-links a:not(.contact) {
    text-decoration: none;
    color: var(--text);
    font-size: x-large;
}

.nav-links a:not(.contact):hover {
    color: var(--primary);
}

.contact {
    background: var(--primary);
    text-decoration: none;
    color: white;
    padding: 0.5rem 2rem;
    border-radius: 10px;
    font-size: x-large;
}

.contact:hover {
    background: var(--dark);
    color: white;
}

/* Switch pour le mode sombre */
.switch {
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 3.7em;
    height: 2em;
    margin-left: 2rem;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--light-bg);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 1.4em;
    width: 1.4em;
    left: 0.2em;
    bottom: 0.3em;
    background-color: black;
    border-radius: 50px;
    box-shadow: 0 0px 20px #00000066;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.switch input:checked + .slider:before {
    transform: translateX(2.2em);
    width: 1.4em;
    height: 1.4em;
}

/* Menu burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: all 0.3s ease;
}
.container_762{
    display: flex;
}
/* Contenu principal */
main {
    display: flex;
    justify-content: center;
}

.mentions {
    max-width: 1200px;
    margin: 5rem 0 0 0;
    padding: 2rem;
    border: 4px solid var(--text);
    border-radius: 20px;
}

.mentions h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.mentions h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--text);
}

.mentions li {
    list-style: none;
    margin: 1rem 0;
    line-height: 1.8;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 5% 1rem;
    margin-top: 4rem;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
footer ul {
    list-style: none;
}
footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}
footer a:hover {
    color: var(--primary);
}
.social-media {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
@media screen and (max-width: 821px) {
    .switch input:checked + .slider:before {
        transform: translateX(1.6em);
    }
    .switch{
        margin-top: 2rem;
    }
}
@media screen and (min-width: 821px) {
    .switch input:checked + .slider:before {
        transform: translateX(1.6em);
    }
}
@media screen and (max-width: 762px) {
    .navbar {
        padding: 1rem;
    }

    .mentions {
        padding: 1rem;
    }

    .mentions h1 {
        font-size: 2rem;
    }

    .mentions h2 {
        font-size: 1.5rem;
    }

    .logo img{
        height: 4rem;
        width: auto;
    }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-media {
        justify-content: center;
    }
    .burger {
        display: flex;
        margin-left:2rem;
    }
    .nav-links {
            display: none;
            flex-direction: column;
            width: 100%;
            position: absolute;
            top: 5rem;
            left: 0;
            background: white;
            padding: 1rem;
            font-size:x-large;
    }

    .nav-links.active {
        display: flex;
    }
    .burger.toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .burger.toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        text-align: left;
    }

    .social-media {
        justify-content: center;
    }
    .switch{
        width: 3.7em;
        margin-top: 1rem;
    }
    
}


@media screen and (min-width: 762px) {
    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 5%;
    }
    
    .nav-links {
        position: static;
        display: flex;
        flex-direction: row;
        background: none;
        box-shadow: none;
        padding: 0;
        gap: 2rem;
        font-size: x-large;
    }
    .logo img{
        height: 6rem;
    }
    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        text-align: left;
    }
    .social-media {
        justify-content: flex-start;
    }
    .burger{
        display: none;
    }
    .switch{
        margin-top: 2rem;
    }
}
@media screen and (max-width: 575px) {
    .switch input:checked + .slider:before {
        transform: translateX(1.6em);
    }
}

@media screen and (max-width: 486px) {
    h1 {
        font-size: 4rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}