/* =========================================
   about.css - Page À Propos
   ========================================= */

.about-container {
    display: flex;
    gap: 80px;
    align-items: stretch;
    justify-content: space-between;
}

/* --- COLONNE GAUCHE (Profil) --- */
.about-left {
    flex: 1.2;
    min-width: 300px;
    background: rgba(var(--accent-rgb), 0.02);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

/* --- ACTIONS (Boutons CV & Contact) --- */
.about-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 0px;
    flex-wrap: wrap;
}

.about-actions .btn-about {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    white-space: nowrap;
}

.about-actions .btn-about.primary {
    background: var(--accent-color);
    color: var(--bg-color);
    border: 1px solid var(--accent-color);
}

.about-actions .btn-about.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.3);
}

.about-actions .btn-about.secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.about-actions .btn-about.secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-3px);
}

.profile-container {
    margin-bottom: 30px;
    display: flex;
    justify-content: flex-start;
}

.profile-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 30px;
    z-index: 1;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.2);
    transition: all 0.4s ease;
}

/* Suppression de l'ancien effet carré décalé */
.profile-wrapper::after {
    display: none;
}

.profile-wrapper:hover {
    box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.5);
    transform: scale(1.02);
    border-color: var(--secondary-color);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
    /* Un peu moins que le wrapper pour l'intérieur */
    filter: grayscale(80%);
    transition: all 0.4s ease;

    image-rendering: high-quality;
    transform: translateZ(0);
    /* Force l'accélération matérielle (carte graphique) */
    -webkit-backface-visibility: hidden;
    /* Anti-aliasing forcé pour Chrome/Safari */
    backface-visibility: hidden;
}

.profile-wrapper:hover .profile-img {
    filter: grayscale(0%) contrast(1);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* --- SECTION LANGUES --- */
.languages-section {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    margin-bottom: auto;
}

.languages-section h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.lang-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.lang-item {
    display: flex;
    align-items: center;
    /* Aligne le niveau et le nom sur le même axe vertical */
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, border-color 0.2s;
}

.lang-item:hover {
    transform: translateX(5px);
    border-color: var(--accent-color);
}

/* Conteneur pour regrouper le nom de la langue et le lien PDF (pour l'espagnol) */
.lang-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lang-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-color);
}

/* Style affiné pour le lien PDF */
.pdf-trigger {
    font-size: 0.85rem;
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: opacity 0.2s;
    font-weight: 600;
}

.pdf-trigger:hover {
    opacity: 0.7;
}

/* Pilule de niveau (Bilingue, Avancé...) */
.lang-level {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-color);
    background: rgba(var(--accent-rgb), 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    /* Empêche le texte de revenir à la ligne et de casser la pilule */
}


/* --- COLONNE DROITE (Contenu) --- */
.about-right {
    flex: 1.5;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 60px;
}

/* --- TIMELINE FORMATION --- */
.education-timeline h3,
.certifications-section h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 30px;
    position: relative;
}

.education-timeline h3::after,
.certifications-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.timeline-item {
    padding-bottom: 40px;
    padding-left: 30px;
    border-left: 2px solid var(--border-color);
    /* Ligne de 2px */
    position: relative;
    transition: border-color 0.3s;
}

.timeline-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

/* Le point sur la timeline */
.timeline-item::before {
    content: '';
    position: absolute;
    /* Centrage parfait : La bordure fait 2px, le milieu est à -1px (rappel: border-left occupe 0 à 2px).
       Le cercle fait 16px (12px content + 2*2px border). Son milieu est à 8px.
       On veut aligner le milieu du cercle (8px) avec le milieu de la bordure (-1px).
       Position left = -1px - 8px = -9px.
    */
    left: -9px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--bg-color);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    background-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.4);
}

.timeline-item h4 {
    color: var(--text-color);
    margin: 5px 0 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.timeline-item .date {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent-color);
    display: inline-block;
    margin-bottom: 5px;
    font-weight: 700;
}

.timeline-item p {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.6;
}

/* --- CERTIFICATIONS --- */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.cert-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: transparent;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    background: rgba(var(--accent-rgb), 0.02);
}

.cert-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    background: rgba(var(--accent-rgb), 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.cert-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.3;
    color: var(--text-color);
}

.cert-org {
    font-size: 0.8rem;
    font-family: 'Space Mono', monospace;
    color: var(--accent-color);
    opacity: 0.8;
}

/* --- MODALE PDF --- */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--bg-color);
    padding: 10px;
    border-radius: 12px;
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 85vh;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.close-modal {
    color: var(--text-color);
    position: absolute;
    top: -30px;
    right: 0;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--accent-color);
}

#pdf-frame {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        gap: 50px;
    }

    .about-left {
        padding: 20px;
    }

    .close-modal {
        top: 5px;
        right: 10px;
        z-index: 1001;
        color: #333;
    }
}

/* =========================================
   VALEURS & INTÉRÊTS
   ========================================= */
#values-interests {
    padding-top: 10px;
}

.values-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.6;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

.value-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.value-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 30px rgba(var(--accent-rgb), 0.15);
}

.value-icons {
    display: flex;
    gap: 15px;
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    opacity: 0.8;
}

.value-card:hover .value-icons {
    opacity: 1;
}

.value-card h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.value-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.85;
}