/* Styles spécifiques pour la page d'accueil */
body {
    /* Ajout d'une couleur de fond similaire à l'image pour les zones non couvertes */
    background-color: #001129; /* Couleur bleu foncé qui correspond à ton thème */
}

/* Style pour le cadre avec le nom en effet typed */
.name-box {
    position: absolute;
    width: 580px;
    max-width: 80%;
    border: 2px solid #f0f0f0;
    padding: 20px 30px;
    top: 120px;
    left: 30%;
    transform: translateX(-50%);
    text-align: left;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 5;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

#typed-name {
    color: #e5d9a8; /* Couleur dorée/beige comme sur la capture */
    font-size: 3rem;
    font-weight: bold;
    font-family: 'Lucida Console', monospace;
    margin-bottom: 10px;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
}

.subtitle-container {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligné à gauche pour respecter le design de la page */
}

#typed-subtitle {
    color: #cccccc;
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
    display: inline-block; /* Changé de block à inline-block */
    line-height: 1.5; /* Améliore l'alignement vertical */
}

/* Style spécifique pour la barre de curseur Typed.js */
.typed-cursor {
    font-size: 1.2rem;
    line-height: 1.5;
    vertical-align: middle;
    opacity: 1;
    animation: typedjsBlink 0.7s infinite;
}

@keyframes typedjsBlink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* Style pour la section des compétences */
.competences-wrapper {
    position: relative;
    max-width: 1200px;
    width: 90%;
    margin: 150px auto 100px auto;
    padding: 80px 30px 50px;
    background-color: rgba(0, 17, 41, 0.3);
    border-radius: 15px;
    border: 2px solid #4ecdc4;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.outils-wrapper {
    position: relative;
    max-width: 1200px;
    width: 90%;
    margin: 150px auto 100px auto;
    padding: 80px 30px 50px;
    background-color: rgba(0, 17, 41, 0.3);
    border-radius: 15px;
    border: 2px solid #4ecdc4;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.outils-title {
    color: #4ecdc4;
    font-size: 2.8rem;
    text-align: center;
    margin: -40px 0 50px 0; /* Marge négative pour monter le titre */
    border-bottom: 2px solid rgba(78, 205, 196, 0.3);
    padding-bottom: 15px;
}

.competences-title {
    color: #4ecdc4;
    font-size: 2.8rem;
    text-align: center;
    margin: -40px 0 50px 0; /* Marge négative pour monter le titre */
    border-bottom: 2px solid rgba(78, 205, 196, 0.3);
    padding-bottom: 15px;
}

.competences-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0 auto;
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.outils-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0 auto;
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.competence-item {
    width: 120px;
    height: 150px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.competence-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.competence-icon {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.competence-icon i {
    font-size: 2.5rem;
    color: #4ecdc4;
}

.competence-icon img {
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.competence-name {
    color: white;
    font-size: 1rem;
    text-align: center;
}

/* Fond de la page d'accueil */
.main-content {
    position: relative;
    min-height: 100vh;
    overflow-y: auto;
    margin-left: 300px;
    padding: 0;
    background-image: none;
}

.background-container {
    position: fixed;
    top: 0;
    left: 300px; /* Tenir compte de la sidebar */
    right: 0;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
}

.background-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.overlay {
    position: fixed;
    top: 0;
    left: 300px; /* Tenir compte de la sidebar */
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

/* Styles complets pour la timeline du parcours */
.timeline {
    position: relative;
    max-width: 1200px;
    width: 90%;
    margin: 480px auto 100px auto;
    padding: 80px 30px 80px;
    background-color: rgba(0, 17, 41, 0.3);
    border-radius: 15px;
    border: 2px solid #4ecdc4;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.parcours-title {
    color: #4ecdc4;
    font-size: 2.8rem;
    text-align: center;
    margin: -40px 0 50px 0; /* Marge négative pour monter le titre */
    border-bottom: 2px solid rgba(78, 205, 196, 0.3);
    padding-bottom: 15px;
}

/* Container pour la timeline */
.timeline-wrapper {
    position: relative;
    height: 400px;
    margin: 20px 0;
}

/* Ligne horizontale de la timeline */
.timeline-line {
    position: absolute;
    height: 6px;
    background-color: #0e6dcd;
    top: 50%;
    left: 50px;
    right: 50px;
    margin-top: -3px;
    z-index: 1;
}

/* Supprimer le point central */
.timeline-single-point {
    display: none;
}

/* Blocs de contenu */
.timeline-block {
    position: absolute;
    width: 200px;
    z-index: 2;
    transition: transform 0.3s ease;
}

.timeline-block:hover {
    transform: translateY(-5px);
}

/* Positionnement des blocs */
.block-left {
    text-align: right;
    bottom: calc(50% + 35px);
}

.block-right {
    text-align: left;
    top: calc(50% + 35px);
}

/* Positionnement spécifique */
.block-1 {
    left: calc(10% - 100px);
}

.block-2 {
    left: calc(30% - 100px);
}

.block-3 {
    left: calc(50% - 100px);
}

.block-4 {
    left: calc(70% - 100px);
}

.block-5 {
    left: calc(90% - 90px);
    width: 180px;
}

.block-5 .timeline-content h3 {
    font-size: 0.95rem;
    line-height: 1.15;
}

/* Style pour la date */
.timeline-date {
    color: #4ecdc4;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
    height: 25px;
    line-height: 25px;
}

/* Contenu des blocs */
.timeline-content {
    padding: 15px;
    background-color: #001129;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 140px;
    display: flex;
    flex-direction: column;
}

.timeline-content:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    background-color: #001a40;
}

/* Style pour les titres et textes */
.timeline-content h3 {
    color: white;
    margin-top: 0;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.timeline-content p {
    color: #cccccc;
    margin: 3px 0;
    font-size: 0.9rem;
}

.timeline-content .more-info {
    color: #4ecdc4;
    font-style: italic;
    margin-top: 10px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.timeline-content .more-info i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.timeline-content:hover .more-info i {
    transform: translateX(3px);
}

/* Lignes verticales */
.timeline-block::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #4ecdc4;
    z-index: 2;
}

.block-left::after {
    height: 35px;
    width: 3px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.block-right::after {
    height: 70px;
    width: 3px;
    top: 32px;
    left: 50%;
    transform: translate(-50%, -100%);
}

/* Points sur chaque événement */
.timeline-block::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: white;
    z-index: 3;
}

.block-1::before {
    border: 3px solid #ff9f55; /* Orange */
    top: calc(100% + 35px);
    left: 50%;
    transform: translate(-50%, -50%);
}

.block-2::before {
    border: 3px solid #f83a3a; /* Rouge */
    top: 32px;
    left: 50%;
    transform: translate(-50%, -70px);
}

.block-3::before {
    border: 3px solid #4ecdc4; /* Turquoise */
    top: calc(100% + 35px);
    left: 50%;
    transform: translate(-50%, -50%);
}

.block-4::before {
    border: 3px solid #ffcc00; /* Jaune */
    top: 32px;
    left: 50%;
    transform: translate(-50%, -70px);
}

.block-5::before {
    border: 3px solid #9b59b6; /* Violet */
    top: calc(100% + 35px);
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Responsive design */
@media screen and (max-width: 1200px) {
    .timeline-block {
        width: 180px;
    }
    
    .block-1 {
        left: calc(10% - 90px);
    }
    
    .block-2 {
        left: calc(30% - 90px);
    }
    
    .block-3 {
        left: calc(50% - 90px);
    }
    
    .block-4 {
        left: calc(70% - 90px);
    }
    
    .block-5 {
        left: calc(90% - 90px);
        width: 180px;
    }
}

@media screen and (max-width: 992px) {
    .timeline {
        margin-top: 300px;
        padding-top: 60px;
    }
    
    .timeline-wrapper {
        height: 600px;
        display: flex;
        flex-direction: column-reverse;
    }
    
    .timeline-line {
        height: 80%;
        width: 6px;
        left: 50%;
        top: 10%;
        bottom: 10%;
        right: auto;
        margin-left: -3px;
        margin-top: 0;
        position: absolute;
    }
    
    .block-left, .block-right {
        width: 40%;
    }
    
    .block-left {
        left: 5% !important;
        text-align: right;
        top: auto;
    }
    
    .block-right {
        right: 5% !important;
        left: auto !important;
        text-align: left;
        bottom: auto;
    }
    
    .block-1 {
        top: 90%;
    }
    
    .block-2 {
        top: 70%;
    }
    
    .block-3 {
        top: 50%;
    }
    
    .block-4 {
        top: 30%;
    }
    
    .block-5 {
        top: 10%;
    }
    
    .block-left::after {
        top: 50%;
        left: auto;
        right: -30px;
        width: 30px;
        height: 3px;
        transform: none;
    }
    
    .block-right::after {
        top: 50%;
        left: -30px;
        bottom: auto;
        width: 30px;
        height: 3px;
        transform: none;
    }
    
    .block-1::before, .block-3::before {
        top: 50%;
        left: calc(100% + 30px);
        transform: translateY(-50%);
    }
    
    .block-2::before, .block-4::before {
        top: 50%;
        right: calc(100% + 30px);
        left: auto;
        transform: translateY(-50%);
    }
}

@media screen and (max-width: 768px) {
    .timeline {
        padding: 30px 20px;
        margin-top: 250px;
    }
    
    .timeline-wrapper {
        height: auto;
        display: flex;
        flex-direction: column-reverse;
    }
    
    .timeline-line {
        display: none;
    }
    
    .timeline-block {
        position: relative;
        width: 100%;
        margin-bottom: 30px;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        text-align: left;
    }
    
    .timeline-block::after, .timeline-block::before {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        padding-top: 60px;
    }
    
    .background-container, .overlay {
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    .background-container img {
        width: 100%;
        height: 100vh;
        object-fit: cover;
        object-position: center;
    }
    
    .name-box {
        left: 50%;
        width: 90%;
        max-width: 90%;
        top: 80px;
        padding: 15px 20px;
    }
    
    #typed-name {
        font-size: 2rem;
    }
    
    #typed-subtitle {
        font-size: 1rem;
    }
    
    .timeline {
        margin-top: 250px;
        padding: 30px 20px;
    }
    
    .competences-wrapper, .outils-wrapper {
        margin: 80px 15px 80px 15px;
        padding: 50px 15px 30px;
    }
    
    .competences-title, .outils-title {
        font-size: 2rem;
        margin: -30px 0 30px 0;
    }
    
    .competences-container, .outils-container {
        gap: 15px;
        justify-content: center; /* Centrer les éléments */
    }
    
    .competence-item {
        width: 90px;
        height: 120px;
    }
    
    .competence-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 10px;
    }
    
    .competence-icon i {
        font-size: 1.8rem;
    }
    
    .competence-icon img {
        max-width: 45px;
        max-height: 45px;
    }
    
    .competence-name {
        font-size: 0.85rem;
        text-align: center;
    }
    
    .cv-download {
        top: 80px;
        left: 50%;
        width: 90%;
        max-width: 300px;
        z-index: 10;
    }
    
    .cv-button {
        width: 100%;
        max-width: 280px;
        padding: 10px 20px;
        font-size: 1rem;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .name-box {
        width: 95%;
        max-width: 95%;
        padding: 10px 15px;
        top: 70px;
    }
    
    #typed-name {
        font-size: 1.8rem;
    }
    
    .timeline {
        margin-top: 340px; 
    }
    
    .timeline-wrapper {
        height: auto;
    }
    
    .parcours-title, .competences-title, .outils-title {
        font-size: 1.8rem;
        margin: -25px 0 25px 0;
    }
    
    .competences-wrapper, .outils-wrapper {
        margin: 60px 10px 60px 10px;
        padding: 40px 10px 25px;
    }
    
    .competences-container, .outils-container {
        gap: 10px;
        justify-content: center; /* Centrer les éléments */
    }
    
    .competence-item {
        width: 80px;
        height: 110px;
        margin: 5px;
    }
    
    .competence-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }
    
    .competence-icon i {
        font-size: 1.5rem;
    }
    
    .competence-icon img {
        max-width: 40px;
        max-height: 40px;
    }
    
    .competence-name {
        font-size: 0.75rem;
        text-align: center;
        word-wrap: break-word;
    }
    
    .cv-download {
        top: 60px;
        left: 50%;
        width: 95%;
        max-width: 280px;
        z-index: 10;
    }
    
    .cv-button {
        width: 100%;
        max-width: 260px;
        padding: 8px 16px;
        font-size: 0.9rem;
        gap: 8px;
        justify-content: center;
    }
    
    .cv-button i {
        font-size: 1rem;
    }
}

/* Styles des popups et boutons de fermeture */
.timeline-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.popup-content {
    background-color: #001129;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 15px;
    padding: 30px;
    position: relative;
    border: 2px solid #4ecdc4;
    box-shadow: 0 0 30px rgba(78, 205, 196, 0.3);
    overflow-y: auto;
    box-sizing: border-box;
    z-index: 1001;
}

.popup-description {
    color: white;
    line-height: 1.6;
    margin-bottom: 20px;
    overflow: hidden;
}

/* Styles pour les compétences dans les popups */
.popup-skills {
    margin-bottom: 20px;
}

.popup-skills h4 {
    color: #4ecdc4;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.skill-tag {
    display: inline-block;
    background-color: rgba(78, 205, 196, 0.2);
    border: 1px solid #4ecdc4;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    margin: 0 5px 8px 0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background-color: rgba(78, 205, 196, 0.4);
    transform: translateY(-2px);
}

/* Styles pour le bouton de fermeture des popups */
.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: #4ecdc4;
}

.popup-title {
    color: #4ecdc4;
    font-size: 1.8rem;
    margin-bottom: 5px;
    padding-right: 30px;
}

.popup-date {
    color: #cccccc;
    font-size: 1rem;
    margin-bottom: 20px;
    font-style: italic;
}

.popup-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.close-button {
    background-color: #4ecdc4;
    color: #001129;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.close-button:hover {
    background-color: #3ab0a8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cv-download {
    position: absolute;
    top: 320px;
    left: 30%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 5;
}

.cv-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    white-space: nowrap;
    max-width: 250px;
    box-sizing: border-box;
}

.cv-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cv-button i {
    font-size: 1.2em;
}

