:root {
    --primary: #1f3a5f;
    --secondary: #4a90e2;
    --background: #ffffff;
    --text-main: #2b2b2b;
    --text-muted: #6b6b6b;
    --accent-soft: #d9e2ec;
    --line: #e6edf4;
    --shadow-soft: 0 14px 32px rgba(31, 58, 95, 0.08);
    --shadow-hero: 0 20px 44px rgba(31, 58, 95, 0.24);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background:
        radial-gradient(circle at 12% 10%, #edf3fb 0, transparent 30%),
        radial-gradient(circle at 88% 18%, #e8f1fc 0, transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 42%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: "Sora", "Manrope", sans-serif;
    line-height: 1.25;
    margin: 0;
}

p {
    margin: 0;
}

a {
    color: var(--secondary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.bg-shape {
    position: fixed;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    filter: blur(0);
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
}

.bg-shape-1 {
    top: -120px;
    right: -130px;
    background: radial-gradient(circle at 35% 35%, #4a90e2 0, #8bb9ef 45%, #d9e2ec 100%);
}

.bg-shape-2 {
    bottom: -160px;
    left: -110px;
    background: radial-gradient(circle at 50% 50%, #1f3a5f 0, #54769f 48%, #dbe6f2 100%);
}

.container {
    width: min(1120px, 94vw);
    margin: 32px auto 24px;
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
}

.hero {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    gap: 26px;
    background: linear-gradient(135deg, #1f3a5f 0%, #29507f 62%, #2f5c8f 100%);
    color: #f7fbff;
    border-radius: 16px;
    padding: 28px 30px;
    box-shadow: var(--shadow-hero);
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.35);
    object-fit: cover;
    background: #fff;
}

.eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(217, 226, 236, 0.46);
    color: #e8f2ff;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.hero h1 {
    font-size: clamp(1.9rem, 3.8vw, 2.7rem);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.subtitle {
    font-size: 1.07rem;
    margin-bottom: 6px;
    color: #eff6ff;
}

.specialization {
    color: #d6e8fb;
}

.cv-link {
    display: inline-block;
    margin-top: 14px;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cv-link:hover {
    background: rgba(255, 255, 255, 0.24);
    text-decoration: none;
    transform: translateY(-1px);
}

.cv-frame {
    width: 100%;
    min-height: 760px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
}

.cv-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
    gap: 18px;
    align-items: stretch;
}

.main-column,
.side-column {
    display: grid;
    gap: 18px;
    height: 100%;
}

.side-column {
    grid-template-rows: repeat(3, minmax(0, 1fr));
}

.card {
    background: var(--background);
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
}

.card h2 {
    color: var(--primary);
    margin-bottom: 14px;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line);
}

.contact-list,
.skills-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}

.contact-list li:last-child {
    border-bottom: none;
}

.timeline-item {
    padding: 0 0 14px 16px;
    border-left: 3px solid var(--accent-soft);
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

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

.timeline-item h3 {
    font-size: 1.02rem;
    margin-bottom: 4px;
    color: var(--primary);
}

.timeline-item .meta {
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-size: 0.94rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.skills-grid > div {
    background: linear-gradient(180deg, #f9fbfe 0%, #f4f8fc 100%);
    border: 1px solid #e3ebf4;
    border-radius: 12px;
    padding: 12px 14px;
}

.skills-grid h3 {
    font-size: 0.9rem;
    margin-bottom: 7px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.skills-grid li {
    margin-bottom: 4px;
    color: var(--text-main);
    position: relative;
    padding-left: 14px;
}

.skills-grid li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary);
    position: absolute;
    left: 0;
    top: 0.6em;
}

.footer {
    width: min(1120px, 94vw);
    margin: 0 auto 22px;
    text-align: center;
    color: #eef5ff;
    background: linear-gradient(120deg, #1f3a5f 0%, #2c5485 100%);
    border-radius: 12px;
    padding: 13px;
    position: relative;
    z-index: 1;
}

@media (max-width: 760px) {
    .container {
        width: 100%;
        margin: 0;
        padding: 12px 12px 20px;
        gap: 12px;
        border-radius: 0;
    }

    /* Hero : 1 colonne centrée */
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 22px 18px;
        border-radius: 12px;
    }

    .avatar {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 1.55rem;
    }

    .subtitle {
        font-size: 0.97rem;
    }

    .specialization {
        font-size: 0.9rem;
    }

    .cv-link {
        display: block;
        text-align: center;
        margin-top: 14px;
    }

    /* Objectif */
    #objectif {
        border-radius: 12px;
    }

    /* cv-layout : 1 colonne, ordre DOM = main-column → side-column */
    .cv-layout {
        grid-template-columns: 1fr;
    }

    /* Annule l'étirement des lignes de la colonne droite */
    .side-column {
        grid-template-rows: auto;
        height: auto;
    }

    .main-column {
        height: auto;
    }

    /* Compétences : 2 colonnes sur téléphone */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cv-frame {
        min-height: 480px;
    }

    .card {
        padding: 16px;
        border-radius: 12px;
    }

    .timeline-item {
        padding: 0 0 12px 12px;
        margin-bottom: 12px;
    }

    .contact-list li {
        padding: 7px 0;
        font-size: 0.93rem;
    }

    .footer {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }
}