/* ===== PAGE CV - STYLE MODERNE & ÉPURÉ ===== */

/* Configuration */
:root {
    --primary-color: #CF8CD6;
    --text-dark: #333;
    --text-grey: #666;
    --bg-light: #f9fbfc;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #CF8CD6 0%, #9e6cbd 100%);
}

body {
    background-color: var(--bg-light);
}

.main-content {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* En-tête (cohérent avec les autres pages) */
.page-header-container {
    text-align: center;
    margin-bottom: 5rem;
}

.page-title {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.page-subtitle {
    color: var(--text-grey);
    font-size: 1.1rem;
}

.title-decoration {
    width: 60px;
    height: 4px;
    background: var(--gradient);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

/* --- GRILLE PRINCIPALE (2 Colonnes) --- */
.cv-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* La colonne CV est un peu plus large */
    gap: 5rem;
    align-items: center;
    margin-bottom: 6rem;
}

/* --- COLONNE GAUCHE (TEXTE & ACTIONS) --- */
.cv-intro-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.intro-text h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.intro-text p {
    color: var(--text-grey);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* Tags de compétences */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px solid rgba(207, 140, 214, 0.3);
    border-radius: 50px;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.skill-tag i {
    color: var(--primary-color);
}

.skill-tag:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(207, 140, 214, 0.2);
}

/* Boutons d'action */
.cv-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-download {
    padding: 1rem 2rem;
    background: var(--gradient);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(207, 140, 214, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(207, 140, 214, 0.6);
}

.btn-view {
    padding: 1rem 2rem;
    background: white;
    color: var(--text-dark);
    border: 1px solid #ddd;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-view:hover {
    background: #fdf5fe;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* --- COLONNE DROITE (PREVIEW CV - STYLE PAPIER) --- */
.cv-preview-col {
    position: relative;
    padding: 1rem; /* Espace pour l'ombre */
}

.cv-paper-container {
    position: relative;
    width: 100%;
    height: 500px; /* Hauteur fixe pour l'aperçu */
    background: white;
    border-radius: 4px; /* Coins peu arrondis pour faire "papier" */
    overflow: hidden;

    /* Ombre portée réaliste */
    box-shadow: 0 1px 1px rgba(0,0,0,0.11),
    0 2px 2px rgba(0,0,0,0.11),
    0 4px 4px rgba(0,0,0,0.11),
    0 8px 8px rgba(0,0,0,0.11),
    0 16px 16px rgba(0,0,0,0.11),
    0 32px 32px rgba(0,0,0,0.11);

    transition: all 0.5s ease;
    border: 1px solid #eee;
}

.cv-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Effet "Glow" violet derrière le papier */
.paper-shadow {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: -10px;
    background: var(--primary-color);
    filter: blur(40px);
    opacity: 0.3;
    z-index: -1;
    border-radius: 20px;
    transition: opacity 0.5s ease;
}

.cv-paper-container:hover {
    transform: translateY(-5px) scale(1.01);
}

.cv-paper-container:hover + .paper-shadow {
    opacity: 0.5; /* L'ombre violette s'intensifie */
}

/* --- SECTION CTA BAS DE PAGE --- */
.cv-cta-section {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
}

.cv-cta-section h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.cv-cta-section p {
    color: var(--text-grey);
    margin-bottom: 2rem;
}

.btn-contact {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(207, 140, 214, 0.3);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .cv-wrapper {
        grid-template-columns: 1fr; /* Une seule colonne */
        gap: 3rem;
        text-align: center;
    }

    .cv-intro-col {
        order: 1; /* Le texte reste en premier */
    }

    .cv-preview-col {
        order: 2;
    }

    .skills-tags, .cv-actions {
        justify-content: center;
    }

    .cv-paper-container {
        height: 400px; /* Un peu moins haut sur tablette */
    }
}

@media (max-width: 600px) {
    .page-title { font-size: 2.2rem; }

    .cv-paper-container {
        height: 300px; /* Adapté mobile */
    }

    .cv-actions {
        flex-direction: column;
    }

    .btn-download, .btn-view {
        width: 100%;
        justify-content: center;
    }
}