/* Styles spécifiques pour la page info-perso */

.parcours-header {
    height: 50vh;
    min-height: 300px;
    justify-content: center;
    padding-top: 80px;
    width: 100%;
}

/* Fix pour le titre qui est tronqué */
.title-wrapper h1 {
    margin-bottom: 10px;
    word-break: break-word;
    font-size: 7vw;
}

.title-wrapper {
    width: 100%;
}

.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 14px 32px;
    margin: 25px 0;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(93, 18, 255, 0.2);
    border-radius: 50px;
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    z-index: 1;
    opacity: 1; /* Assuré visible */
    transform: none; /* Pas de transformation initiale */
}

.back-button:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(93, 18, 255, 0.15);
    border-color: rgba(93, 18, 255, 0.4);
}

.back-button-icon {
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.back-button:hover .back-button-icon {
    transform: translateX(-5px);
}

.back-button-text {
    position: relative;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.back-button:hover .back-button-text {
    color: var(--accent-color-2);
}

/* Timeline Section - Nouveau style épuré avec plus d'espacement */
.timeline-section {
    padding-top: 80px;
    padding-bottom: 160px; /* Plus d'espace en bas */
    max-width: 1200px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    margin-bottom: 250px; /* Augmentation de l'espace entre les sections */
    position: relative;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1), transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: opacity, transform;
}

.timeline-item:last-child {
    margin-bottom: 50px;
}

/* Repositionnement des années */
.timeline-year {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    width: 160px; /* Ajusté pour la largeur du texte de l'année (approx 150px) */
}

.timeline-year span {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-color-2);
    opacity: 0.25;
    letter-spacing: -2px;
    display: block;
    transform: scale(1);
    position: relative;
    z-index: 1;
    margin-left: 0;
    transition: all 0.3s ease;
}

.timeline-content {
    position: relative;
    width: 100%;
    padding-top: 20px;
    padding-left: 190px; /* width (160) + dot (12) + gap (18) */
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-content h3 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    font-weight: 700;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
    margin-left: 0;
}

.timeline-content:hover h3 {
    transform: translateX(10px);
    border-bottom-color: var(--accent-color-2);
}

.timeline-content p {
    margin-bottom: 12px;
    color: var(--secondary-color);
    line-height: 1.6;
    font-size: 1.1rem;
    margin-left: 0;
}

/* Séparateur entre les éléments timeline - Ajustements */
.timeline-item::after {
    content: '';
    position: absolute;
    left: 160px; /* Aligné à la fin du conteneur de l'année */
    top: 70px; /* Aligné avec le texte */
    bottom: -80px; /* Réduit pour éviter le débordement */
    width: 1px;
    background: linear-gradient(
        to bottom,
        rgba(93, 18, 255, 0.03) 0%,
        rgba(93, 18, 255, 0.2) 15%,
        rgba(93, 18, 255, 0.2) 85%, 
        rgba(93, 18, 255, 0.03) 100%
    );
    z-index: 0;
}

.timeline-item:last-child::after {
    bottom: 0;
    height: auto;
    background: linear-gradient(
        to bottom,
        rgba(93, 18, 255, 0.2) 0%,
        rgba(93, 18, 255, 0.03) 100%
    );
}

/* Point sur la timeline - Repositionné */
.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(160px - 6px); /* Centré sur la ligne (12px/2) */
    top: 70px; /* Aligné avec le texte */
    width: 12px;
    height: 12px;
    background: white;
    box-shadow: 0 0 0 5px rgba(93, 18, 255, 0.2), 0 0 0 10px rgba(93, 18, 255, 0.05);
    border-radius: 50%;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Effet hover amélioré pour les années */
.timeline-item:hover .timeline-year span {
    opacity: 0.5;
    transform: scale(1.05) translateX(5px);
    color: var(--accent-color-3);
}

/* Effet hover sur le point timeline */
.timeline-item:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(93, 18, 255, 0.3), 0 0 0 16px rgba(93, 18, 255, 0.1);
}

.competences {
    margin-top: 40px;
    position: relative;
    margin-left: 0;
}

.competences h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--accent-color-2);
    opacity: 0.8;
    font-weight: 600;
    letter-spacing: 1px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.skill-tag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(93, 18, 255, 0.08);
    color: var(--accent-color-2);
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    opacity: 1 !important; /* Assuré visible */
}

.skill-tag:hover {
    transform: translateY(-3px);
    background: rgba(93, 18, 255, 0.12);
    box-shadow: 0 10px 20px rgba(93, 18, 255, 0.1);
    border-bottom-color: var(--accent-color-2);
}

.skill-tag.method {
    background: rgba(93, 18, 255, 0.12);
    color: var(--accent-color-2);
}

.skill-tag.tech {
    background: rgba(255, 51, 102, 0.08);
    color: var(--accent-color-3);
}

/* Style élégant pour les compétences techniques */
.tech-skills {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.tech-skill-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
    padding-left: 15px;
    opacity: 1 !important; /* Assuré visible */
}

.tech-skill-item:hover {
    transform: translateX(10px);
    border-left-color: var(--accent-color-3);
}

.tech-skill-item .skill-tag {
    width: fit-content;
    margin-bottom: 0;
}

.skill-description {
    font-size: 0.9rem;
    color: var(--secondary-color);
    opacity: 0.8;
    line-height: 1.6;
    margin: 0;
}

/* Cards Grid Section - Nouveau style élégant */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    padding: 120px 0; /* Plus d'espacement */
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    position: relative;
    padding: 40px 0;
    transition: transform 0.5s ease;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1), transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: opacity, transform;
    border-top: 1px solid rgba(93, 18, 255, 0.1);
}

.info-card h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.info-card h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: -15px;
    width: 40px;
    height: 3px;
    background: linear-gradient(
        90deg, 
        var(--accent-color-2), 
        var(--accent-color-3)
    );
    border-radius: 3px;
    opacity: 0.7;
}

.info-card:hover {
    transform: translateY(-5px);
}

/* Skill List Styles */
.skills-list {
    list-style: none;
    padding: 0;
}

.skills-list li {
    padding: 15px 0;
    position: relative;
    padding-left: 30px;
    transition: transform 0.3s ease;
    font-size: 1.1rem;
    color: var(--secondary-color);
    opacity: 0.9;
}

.skills-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color-2);
    font-size: 1.5rem;
    opacity: 0.7;
    transition: transform 0.3s ease, color 0.3s ease;
}

.skills-list li:hover {
    transform: translateX(8px);
}

.skills-list li:hover::before {
    transform: translateY(-50%) scale(1.3);
    color: var(--accent-color-3);
}

/* Languages Section */
.language-level {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.language {
    font-weight: 600;
    margin-right: 15px;
    font-size: 1.4rem;
    color: var(--secondary-color);
}

.level-text {
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--accent-color-2);
    position: relative;
    margin-left: 5px;
}

.level-text::before {
    content: '|';
    margin-right: 10px;
    color: rgba(93, 18, 255, 0.3);
}

/* Suppression de la barre horizontale */
.level-indicator {
    display: none;
}

.level-bar {
    display: none;
}

/* License Badges - Style élégant */
.license-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.license-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    position: relative;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.license-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(93, 18, 255, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
    z-index: -1;
}

.license-badge:hover {
    transform: translateY(-5px);
    color: var(--accent-color-2);
}

.license-badge:hover::before {
    transform: scale(1.1);
    border-color: rgba(93, 18, 255, 0.4);
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(93, 18, 255, 0.1);
}

/* Apparition/disparition animée des sections */
.timeline-item,
.info-card {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1), transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: opacity, transform;
}

.timeline-item.in-view,
.info-card.in-view {
    opacity: 1 !important;
    transform: scale(1) !important;
    transition-delay: 0.1s;
}

.timeline-item.out-view,
.info-card.out-view {
    opacity: 0 !important;
    transform: scale(0.96) !important;
    transition-delay: 0s;
}

/* Styles pour le bouton CV */
.cv-button-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    width: 100%;
}

.cv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 16px 36px;
    background: rgba(93, 18, 255, 0.15);
    border: 1px solid rgba(93, 18, 255, 0.3);
    border-radius: 50px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    z-index: 1;
    overflow: hidden;
}

.cv-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, rgba(93, 18, 255, 0.2), rgba(93, 18, 255, 0.4));
    transition: width 0.5s ease;
    z-index: -1;
    border-radius: 50px;
}

.cv-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(93, 18, 255, 0.2);
    border-color: rgba(93, 18, 255, 0.5);
    color: var(--accent-color-2);
}

.cv-button:hover:before {
    width: 100%;
}

.cv-button:active {
    transform: translateY(-2px);
}

.cv-icon {
    margin-right: 12px;
    stroke: currentColor;
    transition: all 0.3s ease;
}

.cv-button:hover .cv-icon {
    filter: drop-shadow(0 0 3px rgba(93, 18, 255, 0.5));
    transform: scale(1.05);
}

/* Animation pour le bouton CV */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(93, 18, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(93, 18, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(93, 18, 255, 0); }
}

/* Animation subtile pour attirer l'attention */
.cv-button-container.in-view .cv-button {
    animation: pulse-glow 2s infinite;
}

/* Animation d'apparition/disparition spécifique pour le bouton CV au scroll */
#cv-scroll-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Responsive Design */
@media (max-width: 992px) {
    .timeline-year span {
        font-size: 3.2rem;
    }
    
    .timeline-year { /* Ajout pour la largeur responsive de l'année */
        width: 125px; /* Ajusté pour texte ~116px */
    }
    
    .timeline-content {
        padding-left: 150px; /* width (125) + dot (12) + gap (13) */
    }
    
    .timeline-content h3 {
        font-size: 2rem;
    }
    
    .timeline-item {
        margin-bottom: 200px;
    }
    
    .timeline-item::after {
        left: 125px; /* Aligné à la fin du conteneur de l'année */
        bottom: -150px;
    }
    
    .timeline-item::before {
        left: calc(125px - 6px); /* Centré sur la ligne (12px/2) */
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .tech-skills {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .back-button {
        padding: 10px 20px;
    }
    
    .back-button-text {
        font-size: 0.85rem;
    }

    /* Fix pour le titre sur mobile */
    .title-wrapper h1 {
        font-size: 3.3rem;
        white-space: normal;
    }
}

@media (max-width: 576px) {
    .timeline-year span {
        font-size: 2.0rem; /* MODIFIÉ: Réduit pour moins d'espace horizontal */
    }
    
    .timeline-year {
        width: 60px; /* MODIFIÉ: Réduit pour s'adapter à la nouvelle taille de police */
    }
    
    .timeline-content {
        padding-left: 75px; /* MODIFIÉ: Ajusté (année 60px + ~15px pour ligne/point et espacement) */
    }
    
    .timeline-content h3 {
        font-size: 1.4rem; /* MODIFIÉ: Réduit pour économiser de l'espace */
    }
    
    .timeline-content p {
        font-size: 0.9rem; /* MODIFIÉ: Réduit pour économiser de l'espace */
    }
    
    /* MODIFIÉ: Correction du positionnement de la ligne et du point */
    .timeline-item::after { /* La ligne */
        left: 60px; /* Aligné sur la nouvelle largeur de timeline-year */
    }
    
    .timeline-item::before { /* Le point */
        left: calc(60px - 6px); /* Centré sur la ligne (point de 12px de large) */
    }
    
    .tech-skills {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skills-tags {
        gap: 6px; /* MODIFIÉ: Légèrement réduit */
    }
    
    .skill-tag {
        font-size: 0.75rem; /* MODIFIÉ: Légèrement réduit */
        padding: 5px 10px; /* MODIFIÉ: Légèrement réduit */
    }
    
    .info-card h2 {
        font-size: 1.6rem;
    }
    
    .skills-list li {
        font-size: 1rem;
    }
    
    .language {
        font-size: 1.2rem;
    }
    
    .level-text {
        font-size: 1.3rem;
    }

    /* Fix pour le titre sur petit mobile */
    .title-wrapper h1 {
        font-size: 2.5rem;
        line-height: 1.3;
    }
}

/* Garantir que tous les éléments sont visibles */
.parcours-header .title-wrapper h1,
.parcours-header .subtitle,
.back-button,
.timeline-item,
.info-card,
.skill-tag,
.skills-list li {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}