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

:root {
    --primary-color: #473FF7;
    --dark-bg: #1A1F2C;
    --white: #ffffff;
    --spacing: 2rem;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
}
.nav-links a:not(.contact):hover {
    color: #473FF7;
}

.contact {
    background: #473FF7;
    text-decoration: none;
    color: white;
    padding: 0.5rem 2rem;
    border-radius: 10px;
}
.contact:hover{
    background: #1A1F2C;
    color: white;
}

/* Navigation */
.navbar {
    display: flex;
    list-style: none;
    justify-content: flex-end;
    align-items: center;
    padding: 2rem 5%;
    background-color: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 1rem;
}

.btn {
    text-decoration: none;
    color: #000000;
    transition: color 0.3s ease;
}
.nav-links {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    position: fixed;
    top: 5rem;
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem;
  }
.nav-links.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.switch {
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 3.7em;
    height: 2em;
    margin-top: 2rem;
  }

  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #E5E5FF;
    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;
  }

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

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

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: black;
    transition: all 0.3s ease;
}

/* Projet Principal */
.featured-project {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing);
    margin-bottom: var(--spacing);
}

.featured-image {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4; 
    margin-top: 10rem;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}


.featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.featured-content p {
    color: #a0a0a0;
    margin-bottom: 1.5rem;
}

/* Slider de Projets */
.slider-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
    position: relative;
    overflow: hidden;
}

.slider-projects {
    display: flex;
    transition: transform 0.5s ease;
    gap: 1rem;
}

.slide {
    min-width: calc(33.333% - 1rem);
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide:hover .slide-overlay {
    opacity: 1;
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #473FF7;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.slider-button:hover {
    background: #57ED89;
}

.slider-button.prev {
    left: 1rem;
}

.slider-button.next {
    right: 1rem;
}

footer {
    background-color: #1A1F2C;
    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: #9b87f5;
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
/* Responsive */
@media (max-width: 1024px) {
    .slide {
        min-width: calc(50% - 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 (max-width: 762px) {
    .featured-project {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 5rem;
    }

    h2 {
        font-size: 3rem;
    }

    h3 {
        font-size: 2rem;
    }

    .slide {
        min-width: calc(100% - 1rem);
    }
    .navbar {
        padding: 1rem;
    }
    .logo img{
        height: 4rem;
        width: auto;
    }

    .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: 1fr;
        text-align: center;
    }

    .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:24px;
    }
    .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);
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}