
.slider {
    width: 100%;
    min-height: 80vh;
    aspect-ratio: 16/9;
    background-color: black; 
    position: relative;
}


.slider-background {
    display: none;
}

.slider-content {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slider-content p {
    color: white;
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 40px; 
}

.scroll-down {
    margin-top: 0;
    cursor: pointer;
    z-index: 100;
    animation: bounce 1.5s infinite;
    transition: transform 0.3s ease;
    position: relative; 
    width: 100%;
    text-align: center;
}

.scroll-down span {
    font-size: 50px;
    color: white;
    transition: all 0.3s ease;
    display: inline-block;
}

.scroll-down:hover {
    transform: translateX(-50%) scale(1.1);
}

.scroll-down:hover span {
    opacity: 0.7;
    color: #f0f0f0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: scale(1.1); 
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}


.about {
    background-color: white;
    padding: 100px 0;
}


.about-image {
    width: 30%;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
}


.about-text {
    width: 60%;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.5rem;
    line-height: 1.6em;
    margin-bottom: 30px;
}


.about-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.about-buttons .btn {
    transition: all 0.3s ease;
}

.about-buttons .btn:hover {
    background-color: #ff0000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.about-buttons .btn-alt:hover {
    background-color: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}


.projets {
    overflow-wrap: break-word;
    box-sizing: border-box;
    height: auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 32%;
    padding: 10px;
    margin-bottom: 20px;
    word-wrap: break-word;
    border-radius: 10px;
}

.projets h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    text-align: center;
    max-width: 90%;
    opacity: 0;
    transition: .4s ease;
    line-height: 1.4;
}

.projets a {
    display: block;
    text-align: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #fff;
}

.projets img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: cover;
    filter: brightness(40%);
    transition: .4s ease;
}

.projets:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.projets:hover img {
    filter: brightness(60%);
}

.projets:hover h3 {
    opacity: 1;
}


.swiper {
    width: 90%;
    margin: auto;
    padding: 20px 0;
    position: relative;
    margin-top: 40px; 
    margin-bottom: 50px; 
}

.swiper h3 {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
}

.swiper a {
    color: black;
    text-decoration: none;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.swiper-slide img {
    width: 100%;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    object-fit: cover;
    border-radius: 10px;
}


.swiper-button-prev, 
.swiper-button-next {
    color: #ff0000 !important; 
    position: absolute;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 20px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.swiper-button-prev:hover, 
.swiper-button-next:hover {
    color: #ff0000 !important;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}


.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background-color: #ff0000 !important; 
    opacity: 1;
}

.swiper-pagination {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
}


@media(max-width: 810px) {
    .slider {
        height: 60vh;
    }

    .slider-content {
        width: 90%;
    }

    .slider-content p {
        margin-top: 20px;
        font-size: 1.5rem;
        text-wrap: balance;
    }
}


@media (min-width: 768px) and (max-width: 992px) {
    .swiper {
        width: 80%;
        margin: 40px auto;
    }
    
    .swiper-slide {
        padding: 20px;
    }
    
    .swiper-slide img {
        height: 220px;
        object-fit: cover;
    }
    
    .swiper-slide h3 {
        font-size: 1.3rem;
        margin-top: 15px;
    }
    

    .swiper-button-prev, 
    .swiper-button-next {
        padding: 30px;
        background-color: rgba(0, 0, 0, 0.1);
        border-radius: 50%;
        top: 40%;
    }
    
    .swiper-button-prev {
        left: -5px;
    }
    
    .swiper-button-next {
        right: -5px;
    }
    
    .swiper-pagination {
        bottom: -40px;
    }
    
    .swiper-pagination-bullet {
        width: 12px;
        height: 12px;
    }
    

    .projets {
        width: 48%; 
        margin-bottom: 15px;
        height: 240px; 
    }
    
    .projets img {
        height: 220px; 
        object-fit: cover;
    }
    
    .projets h3 {
        font-size: 0.95rem; 
        max-width: 85%; 
    }
    

    .flex.wrap.gap20.space-between {
        gap: 15px;
        justify-content: space-around; 
    }
    

    .section.dark .boxed {
        max-width: 95%;
    }
    

    .projets:active,
    .projets:focus {
        transform: scale(1.03);
        transition: transform 0.2s ease;
    }
    

    .swiper-slide:active,
    .swiper-slide:focus {
        transform: translateY(-5px);
        transition: transform 0.2s ease;
    }
    

    .swiper-button-prev, 
    .swiper-button-next {
        background-color: rgba(255, 255, 255, 0.3);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .swiper-button-prev:after, 
    .swiper-button-next:after {
        font-size: 18px !important;
    }
}

@media (max-width: 992px) {
    .about-text h2 {
        font-size: 2.5rem;
    }
    
    .about-text p {
        font-size: 1.3rem;
    }
}

@media (max-width: 810px) {
    .slider {
        height: 60vh;
    }

    .slider-content {
        width: 90%;
    }

    .slider-content p {
        margin-top: 10px;
        font-size: 1.5rem;
    }
    
    .about {
        padding: 60px 0;
    }
    
    .about-image {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .about-image img {
        max-width: 250px;
        margin: 0 auto;
        display: block;
    }
    
    .about-text {
        width: 100%;
        text-align: center;
    }
    
    .about-buttons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .slider-content h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .slider-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .about-text p {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    .about-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .about-buttons .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .projets {
        width: 100%;
    }
    

    .swiper-slide {
        padding: 10px;
    }
    
    .swiper h3 {
        font-size: 1rem;
    }
    
    .about {
        padding: 50px 0 30px; 
    }
    
    .about-image img {
        max-width: 200px; 
    }
    
    .about-text h2 {
        margin-bottom: 15px;
    }
    
    .swiper {
        width: 100%; 
        padding: 15px 0;
    }
}

@media (max-width: 400px) {
    .slider-content h1 {
        font-size: 1.6rem;
    }
    
    .slider-content p {
        font-size: 0.9rem;
    }
    
    .about-text h2 {
        font-size: 1.6rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .about-image img {
        max-width: 180px;
    }
    
    .swiper-slide img {
        height: 160px;
    }
}


@media (max-width: 360px) {
    .about-buttons .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .about {
        padding: 40px 0;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    

    .projets {
        width: 100%; 
        margin-bottom: 15px;
        height: 220px; 
    }
    
    .projets img {
        height: 200px;
    }
    

    .projets:active {
        transform: scale(0.98); 
        opacity: 0.9;
        transition: all 0.15s ease;
    }
    
    .projets h3 {
        opacity: 1; 
        background-color: rgba(0, 0, 0, 0.6); 
        padding: 8px;
        border-radius: 5px;
        font-size: 0.9rem;
    }
    

    .swiper {
        width: 95%;
        margin: 20px auto 40px;
    }
    
    .swiper-slide {
        padding: 10px;
    }
    
    .swiper-button-prev, 
    .swiper-button-next {
        display: none; 
    }
    
    .swiper-pagination {
        bottom: -25px;
    }
    

    .about-buttons .btn:active {
        transform: scale(0.95);
        opacity: 0.9;
        transition: all 0.1s ease;
    }
}
