
.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;
    transition: transform 0.3s ease;
}

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


.skills {
    background-color: #fff;
    border-radius: 15px;
    padding: 20px;
    box-sizing: border-box;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.skills:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.skills img {
    width: 80%;   
    height: 100px;
    aspect-ratio: 1/1;
    object-fit: contain;
    display: block;
    margin: 0 auto 15px;
}

.skills h3 {
    color: black;
    margin-top: 10px;
    text-align: center;
    font-size: 1.2rem;
}

.skills p {
    font-size: 0.9rem;
    text-align: center;
}


.skills-section {
    margin-bottom: 60px;
}

.skills-section h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}


.progress-container {
    margin-bottom: 20px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.progress-bar {
    height: 10px;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.progress-value {
    height: 100%;
    background-color: #000;
    border-radius: 5px;
}


.section-subtitle {
    font-size: 1.5rem;
    text-align: center;
    margin-top: -30px;
    margin-bottom: 40px;
    color: white; 
}

.skills-container {
    max-width: 100%;
    margin: 0 auto;
}

.skills-category {
    margin-bottom: 50px;
    background-color: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.skills-category h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #000; 
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.skills-category h3 .material-icons {
    color: #ff0000;
    font-size: 2rem;
}


.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-item {
    background-color: #f8f8f8;
    padding: 12px 20px;
    border-radius: 50px;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    color: #000; 
}

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

.skill-name {
    font-weight: 500;
    font-size: 1rem;
    color: inherit; 
}


.languages-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.language-item {
    margin-bottom: 5px;
}

.language-name {
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
    color: #000; 
}

.language-level {
    color: #333; 
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 10px;
}

.progress-container {
    width: 100%;
    margin-top: 5px;
}

.progress-bar {
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-value {
    height: 100%;
    background-color: #ff0000;
    border-radius: 5px;
    transition: width 1s ease;
}


.certifications-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.certification-item {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.certification-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    background-color: #fff;
}

.certification-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.certification-item:hover .certification-icon {
    background-color: #ff0000;
}

.certification-icon .material-icons {
    font-size: 30px;
    color: #ff0000;
    transition: all 0.3s ease;
}

.certification-item:hover .certification-icon .material-icons {
    color: white;
}

.certification-content {
    flex: 1;
}

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

.certification-content p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff0000;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 50px;
    background-color: rgba(255, 0, 0, 0.1);
}

.download-link:hover {
    background-color: #ff0000;
    color: white;
    transform: translateX(5px);
}

.download-link .material-icons {
    font-size: 20px;
}


#competences-bts, #competences-scolaires, #certifications {
    scroll-margin-top: 80px;
}


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


.projets {
    height: 270px; 
}


.projets {
    overflow-wrap: break-word;
    box-sizing: border-box;
    height: 270px; 
    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: 250px; 
    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;
}


.projets {
    overflow-wrap: break-word;
    box-sizing: border-box;
    height: 270px; 
    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: 15px;
    background-color: #f9f9f9; 
    border: 1px solid #eee; 
}

.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;
    color: white; 
    font-weight: 600; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6); 
}

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

.projets img {
    width: 100%;
    height: 250px; 
    border-radius: 10px; 
    object-fit: cover;
    filter: brightness(45%) saturate(110%); 
    transition: all .4s ease;
}

.projets:hover {
    transform: translateY(-10px) scale(1.02); 
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
    border-color: #ddd; 
}

.projets:hover img {
    filter: brightness(65%) saturate(120%); 
}

.projets:hover h3 {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05); 
}


.section h2 {
    position: relative;
    display: block; 
    padding-bottom: 10px;
    margin-bottom: 30px;
    text-align: center;
    width: 100%; 
}


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


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

.section-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-left-width: 8px;
}

.section-box h4 {
    margin-top: 0;
    color: #ff0000;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-box h4::before {
    content: '\e873'; 
    font-family: 'Material Icons';
    font-size: 1.8rem;
}

.section-box ul {
    margin: 0;
    padding-left: 25px;
    list-style-type: none;
}

.section-box ul li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.7;
    position: relative;
    padding-left: 15px;
    color: #333;
}

.section-box ul li::before {
    content: '\e5cc'; 
    font-family: 'Material Icons';
    position: absolute;
    left: -15px;
    color: #ff0000;
    font-size: 1.2rem;
}


@media (max-width: 768px) {
    .section-box {
        padding: 20px;
        margin: 20px 0;
    }
    
    .section-box {
        padding: 15px;
        margin: 15px 0;
    }
    
    .skills {
        padding: 15px;
    }
    
    .skills h3 {
        font-size: 1.1rem;
    }
    
    .skills img {
        height: 80px;
    }
    
    .download-link {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 810px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projets {
        height: auto; 
        min-height: 180px; 
        margin-bottom: 15px;
    }
    
    .projets img {
        height: 160px; 
    }
    
    .projets h3 {
        font-size: 0.9rem; 
    }
    
    .certification-item {
        padding: 12px;
    }
    
    .certification-content h3 {
        font-size: 1.1rem;
    }
}


@media (max-width: 992px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .certification-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    
    .certification-icon {
        margin-bottom: 15px;
    }
    
    .projets {
        width: 48%; 
    }
}

@media (max-width: 768px) {
    .skills-category {
        padding: 20px;
    }
    
    .skills-category h3 {
        font-size: 1.5rem;
    }
    
    .certification-content h3 {
        font-size: 1.2rem;
    }
    
    .certification-content p {
        font-size: 0.9rem;
    }
    
    .download-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .skills-category h3 .material-icons {
        font-size: 1.6rem;
    }
    
    .section-box {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projets {
        width: 100%; 
        height: 250px; 
    }
    
    .projets img {
        height: 230px; 
    }
    
    .skill-item {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .certification-item {
        padding: 15px;
    }
    
    .certification-icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .projets {
        height: 220px;
    }
    
    .projets img {
        height: 200px; 
    }
    
    .slider-content h1 {
        font-size: 1.8rem;
    }
    
    .slider-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 360px) {
    .skills-category {
        padding: 15px 12px;
    }
    
    .skill-item {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .projets img {
        height: 140px;
    }
    
    .skills-grid {
        gap: 10px;
    }
}


@media (min-width: 768px) and (max-width: 991px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .projets {
        width: 48%; 
        height: 240px;
    }
    
    .projets img {
        height: 220px;
    }
    
    .skills-category {
        padding: 22px;
    }
    
    .skills-category h3 {
        font-size: 1.6rem;
    }
    
    .certification-item {
        flex-direction: row;
        align-items: center;
    }
    
    .certification-icon {
        margin-bottom: 0;
        margin-right: 15px;
    }
    
    .skill-item {
        padding: 10px 16px;
    }
    
    .section-box {
        padding: 22px;
    }
    
    .slider-content p {
        font-size: 1.7rem;
    }
}

