:root {
    --primary: #0d3b66;
    --primary-dark: #082844;
    --accent: #2f7fd3;
    --accent-light: #eaf4ff;
    --text: #1d2935;
    --text-light: #5d6a76;
    --border: #dce5ed;
    --background: #ffffff;
    --background-muted: #f5f8fb;
    --shadow: 0 18px 45px rgba(13, 59, 102, 0.10);
    --radius: 18px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--primary-dark);
    line-height: 1.2;
}

h1 {
    margin-bottom: 22px;
    font-size: clamp(2.6rem, 5.6vw, 5.1rem);
    letter-spacing: -0.065em;
}

h1 span {
    display: block;
    color: var(--accent);
}

h2 {
    margin-bottom: 22px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: -0.05em;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.22rem;
}

.container {
    width: min(calc(100% - 42px), var(--container));
    margin-inline: auto;
}

.section {
    padding: 100px 0;
}

.section-muted {
    background: var(--background-muted);
}

.section-label,
.eyebrow {
    margin-bottom: 13px;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(220, 229, 237, 0.8);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark,
.profile-initials {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 0.92rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    color: var(--primary-dark);
    line-height: 1.2;
}

.brand-text strong {
    font-size: 0.96rem;
}

.brand-text span {
    margin-top: 3px;
    color: var(--text-light);
    font-size: 0.72rem;
    font-weight: 600;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.desktop-nav a {
    color: var(--text-light);
    font-size: 0.87rem;
    font-weight: 700;
    transition: color 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus {
    color: var(--accent);
}

/* Buttons */

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary);
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 11px 21px;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease,
        border-color 180ms ease;
}

.button:hover,
.button:focus {
    transform: translateY(-2px);
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 11px 22px rgba(47, 127, 211, 0.24);
}

.button-small {
    min-height: 42px;
    padding: 8px 18px;
    font-size: 0.8rem;
}

.button-secondary {
    border-color: var(--accent);
    background: var(--accent);
}

.button-ghost {
    border-color: var(--border);
    background: transparent;
    color: var(--primary);
}

.button-ghost:hover,
.button-ghost:focus {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    padding: 104px 0 96px;
    background:
        radial-gradient(circle at 86% 18%, rgba(47, 127, 211, 0.15), transparent 31%),
        radial-gradient(circle at 3% 95%, rgba(13, 59, 102, 0.09), transparent 32%),
        linear-gradient(180deg, #f9fcff 0%, #ffffff 100%);
}

.hero::before {
    position: absolute;
    top: 50px;
    right: -160px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(47, 127, 211, 0.18);
    border-radius: 50%;
    content: "";
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.72fr);
    align-items: center;
    gap: 64px;
}

.hero-summary {
    max-width: 760px;
    margin-bottom: 32px;
    color: var(--text-light);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Contact card */

.contact-card {
    border: 1px solid rgba(220, 229, 237, 0.9);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    padding: 32px;
}

.profile-initials {
    width: 76px;
    height: 76px;
    margin-bottom: 20px;
    border-radius: 22px;
    font-size: 1.5rem;
}

.contact-card h2 {
    margin-bottom: 4px;
    font-size: 1.65rem;
    letter-spacing: -0.04em;
}

.contact-card > p {
    margin-bottom: 22px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 800;
}

.contact-list {
    display: grid;
    gap: 11px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

.contact-list a,
.contact-list div {
    display: grid;
    gap: 1px;
    color: var(--text);
    font-size: 0.9rem;
}

.contact-list a:hover {
    color: var(--accent);
}

.contact-label {
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.social-links a {
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 11px;
    transition:
        background 180ms ease,
        color 180ms ease,
        border-color 180ms ease;
}

.social-links a:hover,
.social-links a:focus {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
}

/* About */

.two-column-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 70px;
}

.section-copy {
    color: var(--text-light);
    font-size: 1.02rem;
}

.section-copy p:last-child {
    margin-bottom: 0;
}

/* Timeline */

.timeline {
    position: relative;
    display: grid;
    gap: 22px;
    margin-top: 40px;
}

.timeline::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 92px;
    width: 1px;
    background: var(--border);
    content: "";
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 30px;
}

.timeline-date {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: var(--text-light);
    font-size: 0.73rem;
    font-weight: 800;
    line-height: 1.35;
    padding: 18px 17px 0 0;
}

.timeline-date::after {
    position: absolute;
    top: 21px;
    right: -7px;
    width: 12px;
    height: 12px;
    border: 3px solid var(--background-muted);
    border-radius: 50%;
    background: var(--accent);
    content: "";
}

.timeline-content {
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #ffffff;
    padding: 25px 27px;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(13, 59, 102, 0.08);
}

.featured-role .timeline-content {
    border-color: rgba(47, 127, 211, 0.3);
    box-shadow: 0 14px 34px rgba(13, 59, 102, 0.08);
}

.role-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.role-heading h3 {
    margin-bottom: 3px;
}

.role-heading h3 span {
    color: var(--text-light);
    font-size: 0.84em;
    font-weight: 600;
}

.company {
    margin-bottom: 0;
    color: var(--accent);
    font-size: 0.91rem;
    font-weight: 800;
}

.role-location {
    flex-shrink: 0;
    margin-bottom: 0;
    color: var(--text-light);
    font-size: 0.78rem;
    font-weight: 700;
}

.responsibility-list {
    display: grid;
    gap: 7px;
    margin: 0;
    padding-left: 19px;
    color: var(--text-light);
    font-size: 0.93rem;
}

.responsibility-list li::marker {
    color: var(--accent);
}

/* Skills */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 38px;
}

.skill-card {
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #ffffff;
    padding: 23px;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.skill-card:hover {
    transform: translateY(-4px);
    border-color: rgba(47, 127, 211, 0.45);
    box-shadow: 0 14px 26px rgba(13, 59, 102, 0.08);
}

.skill-card h3 {
    color: var(--primary);
    font-size: 1rem;
}

.skill-card p {
    margin-bottom: 0;
    color: var(--text-light);
    font-size: 0.87rem;
}

.builder-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 26px;
}

.builder-strip span {
    border: 1px solid #cee0f3;
    border-radius: 999px;
    background: var(--accent-light);
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 800;
    padding: 7px 12px;
}

/* Education */

.education-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 38px;
}

.education-card,
.awards-panel {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    padding: 28px;
}

.education-year {
    margin-bottom: 9px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.education-card h3 {
    margin-bottom: 6px;
}

.education-card h3 span {
    color: var(--text-light);
    font-size: 0.86em;
    font-weight: 600;
}

.education-school {
    color: var(--text-light);
    font-size: 0.93rem;
    font-weight: 700;
}

.education-card ul {
    margin-bottom: 0;
    padding-left: 18px;
    color: var(--text-light);
    font-size: 0.91rem;
}

.awards-panel {
    margin-top: 18px;
}

.awards-panel h3 {
    margin-bottom: 20px;
    font-size: 1.35rem;
}

.award-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.award-list article {
    border-left: 3px solid var(--accent);
    padding-left: 14px;
}

.award-list h4 {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.award-list p {
    margin-bottom: 0;
    color: var(--text-light);
    font-size: 0.87rem;
}

/* Contact banner */

.contact-banner {
    padding: 72px 0;
    background:
        linear-gradient(135deg, rgba(8, 40, 68, 0.98), rgba(13, 59, 102, 0.98)),
        var(--primary-dark);
    color: #ffffff;
}

.contact-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.contact-banner h2 {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: clamp(1.9rem, 4vw, 3rem);
}

.contact-banner p:not(.section-label) {
    max-width: 700px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.78);
}

.contact-banner-actions {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    gap: 10px;
}

.button-light {
    border-color: #ffffff;
    background: #ffffff;
    color: var(--primary-dark);
}

.button-light:hover,
.button-light:focus {
    border-color: var(--accent-light);
    background: var(--accent-light);
    color: var(--primary-dark);
}

.button-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    background: transparent;
    color: #ffffff;
}

.button-outline-light:hover,
.button-outline-light:focus {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border);
    background: #ffffff;
    padding: 24px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-inner p,
.footer-inner a {
    margin-bottom: 0;
    color: var(--text-light);
    font-size: 0.79rem;
    font-weight: 700;
}

.footer-inner a:hover {
    color: var(--accent);
}

/* Responsive layouts */

@media (max-width: 1020px) {
    .desktop-nav {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .contact-card {
        max-width: 620px;
    }

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

    .contact-banner-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-banner-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(calc(100% - 30px), var(--container));
    }

    .section {
        padding: 72px 0;
    }

    .hero {
        padding: 72px 0 68px;
    }

    h1 {
        font-size: clamp(2.3rem, 12vw, 4rem);
    }

    .header-inner {
        min-height: 68px;
    }

    .brand-text span {
        display: none;
    }

    .header-inner > .button {
        min-height: 39px;
        padding: 7px 14px;
        font-size: 0.75rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .timeline-date {
        align-items: flex-start;
        flex-direction: row;
        gap: 6px;
        padding: 0;
    }

    .timeline-date span:first-child::after {
        content: " –";
    }

    .timeline-date::after {
        display: none;
    }

    .timeline-content {
        padding: 21px;
    }

    .role-heading {
        flex-direction: column;
        gap: 5px;
    }

    .skills-grid,
    .education-grid,
    .award-list {
        grid-template-columns: 1fr;
    }

    .contact-banner-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

/* Printable résumé styling */

@media print {
    :root {
        --text: #111111;
        --text-light: #333333;
        --primary: #000000;
        --primary-dark: #000000;
        --accent: #000000;
        --border: #cccccc;
    }

    body {
        font-size: 11px;
        line-height: 1.42;
    }

    .site-header,
    .hero-actions,
    .contact-banner,
    .site-footer {
        display: none;
    }

    .hero,
    .section,
    .section-muted {
        background: #ffffff;
        padding: 22px 0;
    }

    .hero-grid,
    .two-column-layout {
        display: block;
    }

    h1 {
        margin-bottom: 10px;
        font-size: 30px;
    }

    h2 {
        margin-bottom: 10px;
        font-size: 22px;
    }

    h3 {
        font-size: 14px;
    }

    .hero-summary {
        margin-bottom: 16px;
        font-size: 12px;
    }

    .contact-card {
        margin-top: 16px;
        border: 1px solid #cccccc;
        box-shadow: none;
        padding: 16px;
    }

    .profile-initials,
    .social-links {
        display: none;
    }

    .timeline {
        gap: 12px;
        margin-top: 18px;
    }

    .timeline::before,
    .timeline-date::after {
        display: none;
    }

    .timeline-item {
        display: block;
        break-inside: avoid;
    }

    .timeline-date {
        display: flex;
        flex-direction: row;
        gap: 5px;
        padding: 0 0 3px;
    }

    .timeline-date span:first-child::after {
        content: " –";
    }

    .timeline-content {
        border: 1px solid #cccccc;
        box-shadow: none;
        padding: 14px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        margin-top: 14px;
    }

    .skill-card,
    .education-card,
    .awards-panel {
        break-inside: avoid;
        border: 1px solid #cccccc;
        padding: 13px;
    }

    .builder-strip {
        margin-top: 14px;
    }

    .builder-strip span {
        border-color: #cccccc;
        background: #ffffff;
        color: #111111;
    }
}