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

.profile-header {
    text-align: center;
    margin-bottom: 60px; 
}

.profile-image {
    width: 250px; 
    height: 250px; 
    border-radius: 50%;
    margin: 0 auto 30px;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    position: relative;
    animation: entranceAnimation 1.5s ease forwards;
    transition: all 0.4s ease; 
    cursor: pointer; 
}

.profile-image:hover {
    transform: translateY(-5px) scale(1.05); 
    box-shadow: 0 12px 30px rgba(0,0,0,0.2); 
}

.profile-image img {
    width: 110%; 
    height: 110%;
    object-fit: cover;
    object-position: center 35%; 
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.5s ease; 
}

.profile-image:hover img {
    transform: translate(-50%, -50%) scale(1.1);
}


@keyframes entranceAnimation {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}


@keyframes pulseAnimation {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 30px rgba(0,0,0,0.2), 0 0 0 2px rgba(255,0,0,0.1);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
}


.profile-image.visible {
    animation: pulseAnimation 3s infinite;
}

.profile-bio {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

.light-bg {
    background-color: white;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #000;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 30px 40px;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    position: relative;
    transition: all 0.3s ease; 
}

.timeline-content:hover {
    transform: translateY(-5px) scale(1.03); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    z-index: 2; 
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: 22px;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid #000;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -50px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -50px;
}

.timeline-date {
    color: #555;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.timeline-desc {
    font-size: 0.9rem;
    line-height: 1.5;
}


.timeline-image {
    width: 100%;
    height: 180px; 
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 8px;
    position: relative; 
    background-color: #f0f0f0;
    transition: all 0.3s ease; }

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; 
    transition: transform 0.3s ease;
    display: block; 
}

.timeline-content:hover .timeline-image {
    transform: scale(1.02); 
}

.timeline-content:hover .timeline-image img {
    transform: scale(1.05);
}


.profile-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.profile-links.horizontal {
    flex-direction: row;
    justify-content: center;
    margin-top: 20px;
}

.profile-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.profile-link:hover {
    transform: translateY(-5px) scale(1.05); 
}

.profile-link-icon {
    width: 80px;
    height: 80px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
}

.profile-link:hover .profile-link-icon {
    background-color: #ff0000; 
    color: white;
}

.profile-link-icon span {
    font-size: 40px;
}

.profile-link-text {
    font-size: 1.1rem;
    font-weight: 500;
}


.school-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.school-link:after {
    content: '→ Visiter le site';
    display: block;
    margin-top: 10px;
    text-align: right;
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
    font-weight: 500;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.timeline-content:hover .school-link:after {
    opacity: 1;
    transform: translateX(0);
}


.timeline-content a.school-link {
    position: relative;
}

.timeline-content:hover a.school-link:before {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    opacity: 0.8;
    transform: scale(1);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1);
        opacity: 0.9;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

@media (max-width: 992px) {
    .timeline::after {
        left: 40px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 30px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -45px;
    }
    
    .cv-container {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -36px;
    }
    
    .profile-links {
        flex-direction: column;
        gap: 20px;
    }

    .timeline-image {
        height: 140px; 
    }

    .cv-preview {
        height: auto;
    }
    
    .profile-links.horizontal {
        flex-direction: column;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .profile-bio {
        font-size: 1rem;
        line-height: 1.5;
        padding: 0 15px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 60px; 
        padding-right: 15px; 
    }
    
    .timeline-image {
        height: 130px; 
    }
}

@media (max-width: 576px) {
    .timeline-item {
        padding: 20px 20px 20px 60px;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    .timeline-date {
        font-size: 0.8rem;
    }
    
    .timeline-title {
        font-size: 1.1rem;
    }
    
    .timeline-desc {
        font-size: 0.85rem;
    }
    
    .profile-link-icon {
        width: 60px;
        height: 60px;
    }
    
    .profile-link-icon span {
        font-size: 30px;
    }
    
    .profile-link-text {
        font-size: 1rem;
    }
    
    .cv-image {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .profile-image {
        width: 180px;
        height: 180px;
    }
    
    .timeline::after {
        left: 20px;
        width: 4px;
    }
    
    .timeline-item {
        padding-left: 45px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        width: 16px;
        height: 16px;
        left: -28px;
        top: 15px;
    }
    
    .slider-content h1 {
        font-size: 1.8rem;
    }
    
    .slider-content p {
        font-size: 1rem;
    }
    
    .timeline-content {
        padding: 12px; 
    }
    
    .timeline-title {
        font-size: 1rem;
    }
    
    .timeline-desc {
        font-size: 0.8rem;
    }
    
    .profile-link-icon {
        width: 50px;
        height: 50px;
    }
    
    .profile-link-icon span {
        font-size: 24px;
    }
    
    .slider-content h1 {
        font-size: 1.6rem;
        padding: 0 10px; 
    }
    
   
    .section.white-bg {
        padding: 40px 0;
    }
}


@media (max-width: 360px) {
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline::after {
        left: 15px;
    }
    
    .timeline-content::after {
        width: 14px;
        height: 14px;
        left: -24px;
    }
}


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


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

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

.dark-bg .timeline-content {
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    background-color: white;
    color: #000; 
}

.dark-bg .timeline::after {
    background-color: #fff;
}

.dark-bg .timeline-content::after {
    border-color: #fff;
}


.dark-bg .timeline-date {
    color: #555; 
}

.dark-bg .timeline-title {
    color: #000; 
}

.dark-bg .timeline-desc {
    color: #333; 
}

.dark-bg .school-link:after {
    color: #666; 
}




.cv-container {
    max-width: 90%; 
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 0; 
}

.cv-preview {
    width: 100%;
    text-align: center;
 
    background-color: transparent; 
    position: relative;
    padding: 0; 
    margin-bottom: 0; 
}

.cv-image {
    width: 100%;
    max-width: 800px; 
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
    border-radius: 0; 
    box-shadow: none; 
}

.cv-image:hover {
    transform: scale(1.03); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.cv-actions {
    margin-bottom: 0; 
    padding-bottom: 0; 
}

.cv-actions .btn {
    transition: all 0.3s ease;
}

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

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


.section.white-bg:last-child {
    padding-bottom: 0; 
    margin-bottom: 0;
}


footer {
    margin-top: 0 !important; 
}


footer::before {
    display: block; 

}


@media (max-width: 768px) {
    .cv-container {
        max-width: 100%; 
    }
    
    .cv-preview {
        height: auto; 
    }
}


#a-propos, #parcours-scolaire, #liens-professionnels {
    scroll-margin-top: 80px; 
}
