/* Profile specific additions */

/* =============================================
   1. HERO SECTION
   ============================================= */
.profil-hero {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 60px var(--padding-sides) 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.profil-hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profil-hero-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 4px;
}

.profil-hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(var(--color-header-bg-rgb), 0.1);
    color: var(--color-header-bg);
    font-size: 0.8em;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    width: fit-content;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(var(--color-header-bg-rgb), 0.2);
}

[data-theme="dark"] .profil-hero-badge {
    background: rgba(var(--color-header-bg-rgb), 0.2);
    border-color: rgba(var(--color-header-bg-rgb), 0.3);
}

.profil-hero h1 {
    font-size: 4.2em;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--color-text);
    margin: 0;
}

.profil-hero-subtitle {
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--color-gray-text);
    max-width: 100%; /* Occupe toute la largeur disponible */
}

.hero-cv-card {
    margin: 0 !important;
    max-width: 320px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px;
    background: var(--color-card-bg) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    text-decoration: none !important;
}

.hero-cv-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-header-bg) !important;
    box-shadow: 0 10px 30px rgba(26, 103, 34, 0.1);
}

.hero-cv-card .certif-icon {
    width: 44px !important;
    height: 44px !important;
    background: #f8f9f8 !important;
    border-radius: 10px !important;
    flex-shrink: 0;
}

.hero-cv-card .certif-icon svg {
    width: 24px !important;
    height: 24px !important;
    color: var(--color-header-bg);
}

.hero-cv-text h3 {
    font-size: 1.05em !important;
    margin: 0 !important;
    font-weight: 700;
    color: var(--color-text) !important;
}

.hero-cv-text p {
    display: block !important;
    font-size: 0.8em !important;
    margin: 2px 0 0 0 !important;
    color: var(--color-gray-text) !important;
    font-weight: 500;
}

.hero-cv-card .download-arrow {
    margin-left: auto;
    color: var(--color-gray-text);
    transition: transform 0.3s ease;
}

.hero-cv-card:hover .download-arrow {
    color: var(--color-header-bg);
    transform: translateX(4px);
}

/* Hero Visual — Stat Cards */
.profil-hero-visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profil-stat-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.profil-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-header-bg), var(--color-accent));
    border-radius: 4px 0 0 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profil-stat-card:hover {
    border-color: rgba(26, 103, 34, 0.3);
    transform: translateX(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.profil-stat-card:hover::before {
    opacity: 1;
}

/* Stat numbers and labels handled by style.css */

/* =============================================
   2. PROFIL SECTIONS (Generic)
   ============================================= */
.profil-section {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 40px var(--padding-sides) 60px;
    background: var(--color-background);
}

.profil-section-alt {
    max-width: 100%;
    background: var(--color-background);
    padding: 30px 0 40px;
}

.profil-section-header {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 40px;
}

.section-tag {
    font-size: 0.8em;
    font-weight: 700;
    color: var(--color-header-bg);
    background: linear-gradient(135deg, rgba(26, 103, 34, 0.08), rgba(20, 72, 25, 0.12));
    padding: 4px 12px;
    border-radius: 6px;
    letter-spacing: 0.04em;
}

.profil-section-header h2 {
    font-size: 3em;
    margin-bottom: 0;
}

/* =============================================
   3. TIMELINE (Education)
   ============================================= */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--color-header-bg) 0%, #e0e0e0 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--color-header-bg);
    box-shadow: 0 0 0 4px rgba(26, 103, 34, 0.1);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    background: var(--color-header-bg);
    box-shadow: 0 0 0 6px rgba(26, 103, 34, 0.15);
}

.timeline-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 28px 32px;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-card:hover {
    border-color: rgba(26, 103, 34, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.timeline-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.timeline-badge {
    font-size: 0.7em;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-badge-active {
    background: linear-gradient(135deg, rgba(26, 103, 34, 0.1), rgba(26, 103, 34, 0.18));
    color: var(--color-header-bg);
    border: 1px solid rgba(26, 103, 34, 0.2);
}

.timeline-badge-done {
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
    color: #666;
    border: 1px solid #ddd;
}

.timeline-date {
    font-size: 0.8em;
    color: var(--color-gray-text);
    font-weight: 500;
}

.timeline-card h3 {
    font-size: 1.35em;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--color-text);
}

.timeline-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88em;
    color: var(--color-gray-text);
    margin-bottom: 12px;
}

.timeline-location svg {
    flex-shrink: 0;
    color: var(--color-header-bg);
}

.timeline-description {
    font-size: 0.95em;
    line-height: 1.7;
    color: var(--color-gray-text);
    margin-bottom: 16px;
}

/* Tags */
.timeline-tags,
.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    font-size: 0.72em;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    background: var(--color-card-bg);
    color: var(--color-gray-text);
    border: 1px solid var(--color-border);
    transition: all 0.25s ease;
}

.tag:hover {
    background: linear-gradient(135deg, rgba(26, 103, 34, 0.06), rgba(26, 103, 34, 0.12));
    color: var(--color-header-bg);
    border-color: rgba(26, 103, 34, 0.2);
}

/* =============================================
   4. EXPERIENCE GRID (Cards)
   ============================================= */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.exp-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.exp-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-header-bg), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.exp-card:hover {
    border-color: rgba(26, 103, 34, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.exp-card:hover::after {
    transform: scaleX(1);
}

.exp-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.exp-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(26, 103, 34, 0.08), rgba(26, 103, 34, 0.15));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-header-bg);
    transition: all 0.3s ease;
}

.exp-card:hover .exp-icon {
    background: var(--color-header-bg);
    color: #ffffff;
}

.exp-type {
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-header-bg);
    background: linear-gradient(135deg, rgba(26, 103, 34, 0.06), rgba(26, 103, 34, 0.1));
    padding: 4px 12px;
    border-radius: 50px;
}

.exp-card h3 {
    font-size: 1.25em;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.exp-role {
    font-size: 0.9em;
    font-weight: 500;
    color: var(--color-header-bg);
    margin: 0;
}

.exp-period {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8em;
    color: var(--color-gray-text);
    margin: 0;
}

.exp-period svg {
    flex-shrink: 0;
    color: #999;
}

.exp-desc {
    font-size: 0.88em;
    line-height: 1.65;
    color: var(--color-gray-text);
    margin: 0;
    flex-grow: 1;
}

/* =============================================
   5. CERTIFICATIONS GRID
   ============================================= */
.certif-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.certif-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.certif-card:hover {
    border-color: rgba(26, 103, 34, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.certif-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(26, 103, 34, 0.08), rgba(26, 103, 34, 0.15));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-header-bg);
    transition: all 0.3s ease;
}

.certif-card:hover .certif-icon {
    background: var(--color-header-bg);
    color: #ffffff;
}

.certif-card h3 {
    font-size: 1.15em;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.certif-card p {
    font-size: 0.9em;
    line-height: 1.6;
    color: var(--color-gray-text);
    margin: 0;
}

/* Download variant */
.certif-card-download {
    cursor: pointer;
    text-decoration: none;
    border: 1px dashed #d0d0d0;
    background: linear-gradient(135deg, #fafffe 0%, #f5faf5 100%);
}

.certif-card-download:hover {
    border-style: solid;
    border-color: var(--color-header-bg);
}

.download-arrow {
    position: absolute;
    top: 28px;
    right: 28px;
    color: var(--color-gray-text);
    transition: all 0.3s ease;
}

.certif-card-download:hover .download-arrow {
    color: var(--color-header-bg);
    transform: translateX(4px);
}

/* CTA */
.profil-cta {
    text-align: center;
    padding-top: 10px;
}

/* =============================================
   6. RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .profil-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 50px;
        padding-bottom: 40px;
    }

    .profil-hero h1 {
        font-size: 3em;
    }

    .profil-hero-visual {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .profil-stat-card {
        flex: 1;
        min-width: 140px;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .certif-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .profil-hero {
        padding: 30px var(--padding-sides) 30px;
    }

    .profil-hero h1 {
        font-size: 2.4em;
    }

    .profil-hero-subtitle {
        font-size: 1em;
    }

    .profil-section-header h2 {
        font-size: 2.2em;
    }

    .profil-section {
        padding: 40px var(--padding-sides) 50px;
    }

    .profil-section-alt {
        padding: 40px 0 50px;
    }

    .profil-hero-visual {
        flex-direction: column;
    }

    .stat-number {
        font-size: 1.3em;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-marker {
        left: -30px;
    }

    .timeline-dot {
        width: 12px;
        height: 12px;
        border-width: 2px;
    }

    .timeline-card {
        padding: 20px;
    }

    .exp-card {
        padding: 20px;
    }
}