
.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;
    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 {
    
    position: relative;
    margin-top: 0; 
    width: 100%;
    text-align: center;
    cursor: pointer;
    z-index: 100;
    animation: bounce 1.5s infinite;
}

.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);
    }
}

.project-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.project-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.project-tech span {
    background-color: #f8f8f8;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: #333;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.project-tech span:hover {
    background-color: #ff0000;
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.2);
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.project-links a:hover {
    color: #ff0000;
}

.project-link {
    margin-top: auto;
}

.btn-small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ff0000;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.btn-small .material-icons {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-small:hover {
    color: #cc0000;
    transform: translateY(-2px); 
}

.btn-small:hover .material-icons {
    transform: translateX(3px);
}


.project-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.project-card-link:hover {
    color: inherit; 
}

.project-card-link .project-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card-link .project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-card-link .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-card-link .project-image img {
    transform: scale(1.1);
}


.project-card-link .btn-small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ff0000;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.project-card-link .btn-small .material-icons {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.project-card:hover .project-card-link .btn-small .material-icons {
    transform: translateX(3px);
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}


.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: #f8f8f8;
    padding: 12px 20px;
    border-radius: 50px;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    color: #000;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
}

.filter-btn:hover {
    background-color: #ff0000;
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.2);
}

.filter-btn.active {
    background-color: #ff0000;
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.2);
}


.section.dark-bg {
    background-color: #000000;
    color: #ffffff;
}


.section.white-bg {
    background-color: #ffffff;
}


.section-title, 
.section h2 {
    text-align: center;
    width: 100%;
    margin-bottom: 40px;
}


@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .project-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .project-card-link .project-image {
        height: 180px; 
    }
    
    .project-content h3 {
        font-size: 1.1rem;
    }
    
    .project-content p {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-filters {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 30px;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
    }
    
    .project-card-link .project-image {
        height: 200px; 
    }
    
    .slider-content h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .slider-content p {
        font-size: 1rem;
    }
}


.competence-objectifs {
    background-color: #f9f9f9;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    border-left: 5px solid #ff0000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.competence-objectifs:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.competence-objectifs h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.objectifs-list {
    list-style-type: none;
    padding: 0;
}

.objectifs-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.6;
}

.objectif-marker {
    color: #ff0000;
    position: absolute;
    left: 0;
    font-weight: bold;
}


@media (max-width: 768px) {
    .competence-objectifs {
        padding: 20px;
    }
    
    .competence-objectifs h3 {
        font-size: 1.4rem;
    }
    
    .objectifs-list li {
        font-size: 1rem;
    }
}
