/* ============================
   PAGE À PROPOS — CSS
   ============================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #041985;
    --secondary-color: #082452;
    --accent-color: #021430;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* ============================
   NAVIGATION
   ============================ */
nav {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.logo img {
    height: 100%;
    width: auto;
    max-height: 78px;
    transition: transform 0.3s ease;
    display: block;
    object-fit: contain;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

/* ============================
   HERO / PROFIL
   ============================ */
.hero-profile {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    padding: 6rem 2rem 5rem;
    position: relative;
    overflow: hidden;
}

.hero-profile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='white' opacity='0.07'/%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.profile-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3.5rem;
    position: relative;
    z-index: 1;
}

/* Photo */
.profile-photo-wrap {
    flex-shrink: 0;
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.35);
    object-fit: cover;
    display: block;
    background: rgba(255,255,255,0.1);
}

.profile-photo-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    gap: 0.5rem;
    text-align: center;
    padding: 1rem;
}

.profile-photo-placeholder svg {
    width: 56px;
    height: 56px;
    opacity: 0.6;
}

/* Infos */
.profile-info {
    color: var(--white);
}

.profile-info h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    letter-spacing: -0.5px;
}

.profile-title {
    font-size: 1.2rem;
    opacity: 0.85;
    margin-bottom: 1rem;
    font-weight: 400;
}

.profile-tagline {
    font-size: 1rem;
    opacity: 0.75;
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.8rem;
}

.badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(4px);
}

.profile-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.profile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.profile-link.primary {
    background: var(--white);
    color: var(--primary-color);
}

.profile-link.primary:hover {
    background: #e8eef8;
    transform: translateY(-2px);
}

.profile-link.secondary {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    color: var(--white);
}

.profile-link.secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* ============================
   LAYOUT PRINCIPAL
   ============================ */
.cv-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem 5rem;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    align-items: start;
}

/* ============================
   BLOCS GÉNÉRIQUES
   ============================ */
.cv-block {
    margin-bottom: 3rem;
}

.cv-block:last-child {
    margin-bottom: 0;
}

.block-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #e5e9f5;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.block-title svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ============================
   TIMELINE (Expérience / Formation)
   ============================ */
.timeline {
    position: relative;
    padding-left: 1.8rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), #c7d2f5);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

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

.timeline-dot {
    position: absolute;
    left: -1.8rem;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary-color);
    flex-shrink: 0;
}

.timeline-item.current .timeline-dot {
    background: #22c55e;
    box-shadow: 0 0 0 2px #22c55e;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 2px #22c55e; }
    50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0.2); }
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.3rem;
    flex-wrap: wrap;
}

.timeline-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
}

.timeline-period {
    font-size: 0.8rem;
    color: var(--primary-color);
    background: #eef1fb;
    padding: 0.2rem 0.7rem;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.timeline-org {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.6rem;
    font-style: italic;
}

.timeline-desc {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.65;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.7rem;
}

.timeline-tag {
    font-size: 0.75rem;
    background: #eef1fb;
    color: var(--primary-color);
    padding: 0.2rem 0.65rem;
    border-radius: 10px;
    font-weight: 500;
}

/* ============================
   SIDEBAR
   ============================ */
.cv-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: var(--bg-light);
    border-radius: 14px;
    padding: 1.8rem;
}

.sidebar-card .block-title {
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

/* Infos perso */
.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.92rem;
}

.info-list .info-label {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 80px;
    flex-shrink: 0;
}

.info-list .info-value {
    color: var(--text-light);
}

.info-list a {
    color: var(--primary-color);
    text-decoration: none;
}

.info-list a:hover {
    text-decoration: underline;
}

/* Compétences */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
}

.skill-name {
    font-weight: 600;
    color: var(--text-dark);
}

.skill-level {
    color: var(--text-light);
    font-size: 0.8rem;
}

.skill-bar {
    height: 6px;
    background: #e5e9f5;
    border-radius: 3px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary-color), #3b5bdb);
    transition: width 0.8s ease;
}

/* Tags de compétences */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.tag.tech {
    background: #eef1fb;
    color: var(--primary-color);
}

.tag.soft {
    background: #f0fdf4;
    color: #16a34a;
}

.tag.hobby {
    background: #fef9ec;
    color: #b45309;
}

/* Langues */
.lang-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.lang-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lang-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    min-width: 80px;
}

.lang-dots {
    display: flex;
    gap: 5px;
}

.lang-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e5e9f5;
}

.lang-dot.filled {
    background: var(--primary-color);
}

.lang-level {
    font-size: 0.78rem;
    color: var(--text-light);
    white-space: nowrap;
}

/* Centres d'intérêt */
.interests-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.interest-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-dark);
    background: var(--white);
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
}

.interest-item span:first-child {
    font-size: 1.1rem;
}

/* ============================
   FOOTER
   ============================ */
footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #111827 100%);
    color: var(--white);
    text-align: center;
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-content p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.8rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ============================
   ANIMATIONS
   ============================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.profile-inner {
    animation: fadeInUp 0.7s ease both;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
    .cv-layout {
        grid-template-columns: 1fr;
    }
    .cv-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: right 0.3s ease;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-links.active {
        right: 0;
    }

    .burger {
        display: flex;
    }

    .nav-container {
        height: 70px;
    }

    .logo img {
        max-height: 60px;
    }

    .profile-inner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .profile-info h1 {
        font-size: 2rem;
    }

    .profile-tagline {
        max-width: 100%;
    }

    .profile-badges,
    .profile-links {
        justify-content: center;
    }

    .cv-layout {
        padding: 2.5rem 1rem 3rem;
        gap: 2rem;
    }

    .interests-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-profile {
        padding: 4rem 1rem 3.5rem;
    }

    .profile-info h1 {
        font-size: 1.7rem;
    }
}
