*, *::before, *::after { box-sizing: border-box; }
    body {
        margin: 0; padding: 0;
        background: #0b1628;
        color: #e8f0ff;
        font-family: 'DM Sans', sans-serif;
    }

    .page-wrapper { padding-top: 72px; }

    /* ======================================
       FOND GLOBAL
       ====================================== */
    #bg-layer {
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: 0;
    }

    .bg-grid {
        position: absolute; inset: 0;
        background-image:
            linear-gradient(rgba(60, 130, 255, 0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(60, 130, 255, 0.04) 1px, transparent 1px);
        background-size: 60px 60px;
    }

    .bg-glow {
        position: absolute;
        top: 40%; left: 50%;
        transform: translate(-50%, -50%);
        width: 800px; height: 600px;
        background: radial-gradient(ellipse, rgba(30, 100, 255, 0.08) 0%, transparent 65%);
        animation: breathe 6s ease-in-out infinite;
    }

    @keyframes breathe {
        0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
        50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.1); }
    }

    .bg-code {
        position: absolute; inset: 0;
        font-family: 'Courier New', monospace;
        font-size: 12px; line-height: 2.1;
        color: rgba(60, 140, 255, 0.055);
        overflow: hidden;
    }

    .code-col {
        position: absolute; top: 0;
        white-space: nowrap;
        animation: scrollDown linear infinite;
    }

    @keyframes scrollDown {
        from { transform: translateY(0); }
        to   { transform: translateY(50%); }
    }

    /* ======================================
       HERO
       ====================================== */
    .hero-section {
        position: relative;
        z-index: 10;
        height: calc(100vh - 72px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0 52px;
    }

    .hero-vr {
        position: absolute;
        right: 200px; top: 60px; bottom: 60px;
        width: 1px;
        background: rgba(60, 130, 255, 0.07);
        animation: growLine 1.2s ease 0.4s both;
    }

    @keyframes growLine {
        from { top: 50%; bottom: 50%; opacity: 0; }
        to   { top: 60px; bottom: 60px; opacity: 1; }
    }

    .hero-eyebrow {
        font-size: 14px;
        letter-spacing: 3px;
        color: rgba(120, 175, 255, 0.75); /* contraste renforcé (était 0.5) */
        text-transform: uppercase;
        margin-bottom: 28px;
        animation: fadeUp 0.8s ease 0.2s both;
    }

    .hero-name {
        font-family: 'Instrument Serif', serif;
        font-size: clamp(60px, 8vw, 96px);
        font-weight: 400;
        line-height: 0.9;
        letter-spacing: -2px;
        color: #e8f0ff;
        animation: fadeUp 0.9s ease 0.35s both;
    }

    .hero-name em {
        font-style: italic;
        color: rgba(130, 180, 255, 0.85); /* contraste renforcé (était 0.55) */
    }

    .hero-cursor {
        display: inline-block;
        width: 3px; height: 0.75em;
        background: rgba(80, 150, 255, 0.5);
        margin-left: 6px;
        vertical-align: middle;
        animation: blink 1.1s step-end infinite;
    }

    @keyframes blink {
        0%, 100% { opacity: 1; }
        50%       { opacity: 0; }
    }

    .hero-bottom {
        position: absolute;
        bottom: 36px; left: 52px; right: 52px;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        animation: fadeUp 0.8s ease 0.55s both;
    }

    .hero-descriptor {
        font-size: 16px;
        color: rgba(210, 227, 255, 0.7); /* contraste renforcé (était 0.3) */
        font-weight: 300;
        letter-spacing: 0.5px;
        line-height: 2;
    }

    .hero-cta {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        letter-spacing: 2px;
        color: rgba(180, 215, 255, 0.65);
        cursor: pointer;
        text-transform: uppercase;
        border: 1px solid rgba(60, 140, 255, 0.3);
        padding: 12px 28px;
        background: rgba(60, 140, 255, 0.06);
        font-family: 'DM Sans', sans-serif;
        text-decoration: none;
        transition: background 0.25s, border-color 0.25s;
    }

    .hero-cta:hover {
        background: rgba(60, 140, 255, 0.14);
        border-color: rgba(60, 140, 255, 0.6);
    }

    @keyframes fadeUp {
        from { opacity: 0; transform: translateY(18px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* ======================================
       SECTIONS COMMUNES
       ====================================== */
    .section {
        position: relative;
        z-index: 10;
        padding: 80px 52px;
        border-top: 1px solid rgba(60, 130, 255, 0.07);
    }

    .section h2 {
        font-family: 'Instrument Serif', serif;
        font-size: 44px;
        font-weight: 400;
        color: #e8f0ff;
        letter-spacing: -0.5px;
        margin-bottom: 40px;
        text-align: center;
    }

    .section h2::after {
        content: '';
        display: block;
        width: 32px; height: 1px;
        background: rgba(100, 165, 255, 0.4);
        margin-top: 12px;
        margin-left: auto;
        margin-right: auto;
    }

    .parcours-labels {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 820px;      /* même largeur que .ladder-timeline */
        margin: 0 auto 40px;
        padding: 0 44px;       /* aligne avec le padding des .ladder-item */
    }

    .parcours-col-title {
        flex: 1;
        font-family: 'Instrument Serif', serif;
        font-size: 26px;
        font-weight: 400;
        color: #e8f0ff;
        letter-spacing: -0.3px;
    }

    /* 1er titre (Expériences professionnelles) → aligné à droite */
    .parcours-col-title:first-child {
        text-align: right;
    }

    /* 2e titre (Formation & parcours scolaire) → aligné à gauche */
    .parcours-col-title:last-child {
        text-align: left;
    }

    /* Responsive : on repasse en colonne centrée */
    @media (max-width: 700px) {
        .parcours-labels {
            flex-direction: column;
            gap: 16px;
            padding: 0 20px;
            text-align: center;
        }
        .parcours-col-title,
        .parcours-col-title:first-child,
        .parcours-col-title:last-child {
            text-align: center;
        }
    }

    .fade-in {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* ======================================
       À PROPOS
       ====================================== */
    .cards-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .card {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(60, 130, 255, 0.1);
        padding: 28px;
        transition: border-color 0.2s;
    }

    .card:hover { border-color: rgba(60, 130, 255, 0.25); }

    .card h3 {
        font-size: 17px;
        font-weight: 500;
        letter-spacing: 1px;
        color: rgba(100, 165, 255, 0.7);
        text-transform: uppercase;
        margin-bottom: 16px;
    }

    .card h3 i { margin-right: 8px; font-size: 15px; }

    .card p {
        font-size: 17px;
        font-weight: 300;
        color: rgba(220, 232, 255, 0.88); /* contraste renforcé (était 0.45) */
        line-height: 1.8;
        margin-bottom: 24px;
    }

    .cv-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 22px;
        border: 1px solid rgba(60, 140, 255, 0.3);
        color: rgba(100, 170, 255, 0.8);
        font-size: 14px;
        letter-spacing: 2px;
        text-transform: uppercase;
        text-decoration: none;
        font-family: 'DM Sans', sans-serif;
        background: rgba(60, 140, 255, 0.05);
        transition: background 0.2s, border-color 0.2s;
    }

    .cv-btn:hover {
        background: rgba(60, 140, 255, 0.12);
        border-color: rgba(60, 140, 255, 0.5);
    }

    /* ======================================
       TIMELINE EN ESCALIER (parcours professionnels)
       ====================================== */
    .ladder-timeline {
        position: relative;
        max-width: 820px;
        margin: 0 auto;
    }

    .ladder-timeline::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 4px;
        bottom: 4px;
        width: 1px;
        background: rgba(60, 130, 255, 0.12);
        transform: translateX(-50%);
    }

    .ladder-item {
        position: relative;
        width: 50%;
        margin-bottom: 56px;
    }

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

    .ladder-item.ladder-right {
        margin-left: 50%;
        padding-left: 44px;
    }

    .ladder-item.ladder-left {
        margin-left: 0;
        padding-right: 44px;
        text-align: right;
    }

    /* Nœud sur la ligne centrale */
    .ladder-item::after {
        content: '';
        position: absolute;
        top: 6px;
        width: 11px;
        height: 11px;
        background: #0b1628;
        border: 2px solid rgba(100, 165, 255, 0.55);
        border-radius: 50%;
        z-index: 2;
    }

    .ladder-item.ladder-right::after { left: -6px; }
    .ladder-item.ladder-left::after  { right: -6px; }

    .ladder-content {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(60, 130, 255, 0.1);
        padding: 24px 26px;
        transition: border-color 0.2s;
    }

    .ladder-content:hover { border-color: rgba(60, 130, 255, 0.25); }

    .ladder-item .timeline-date i { margin-right: 6px; opacity: 0.7; }

    @media (max-width: 700px) {
        .ladder-timeline::before { left: 14px; }

        .ladder-item,
        .ladder-item.ladder-right,
        .ladder-item.ladder-left {
            width: 100%;
            margin-left: 0;
            padding-left: 40px;
            padding-right: 0;
            text-align: left;
        }

        .ladder-item.ladder-right::after,
        .ladder-item.ladder-left::after {
            left: 8px;
            right: auto;
        }
    }

    /* ======================================
       TIMELINE (styles communs date/titre/desc/tag)
       ====================================== */
    .timeline-date {
        font-size: 14px;
        letter-spacing: 2px;
        color: rgba(120, 175, 255, 0.7); /* contraste renforcé (était 0.4) */
        text-transform: uppercase;
        margin-bottom: 6px;
    }

    .timeline-title {
        font-size: 22px;
        font-weight: 500;
        color: rgba(220, 232, 255, 0.92); /* contraste renforcé (était 0.7) */
        margin-bottom: 6px;
    }

    .timeline-desc {
        font-size: 17px;
        font-weight: 300;
        color: rgba(215, 230, 255, 0.85); /* contraste renforcé (était 0.35) */
        line-height: 1.6;
    }

    .timeline-tag {
        display: inline-block;
        margin-top: 8px;
        font-size: 12px;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        padding: 4px 11px;
        border: 1px solid rgba(60, 130, 255, 0.2);
        color: rgba(130, 180, 255, 0.8); /* contraste renforcé (était 0.5) */
        background: rgba(60, 130, 255, 0.04);
    }

    /* ======================================
       SLIDER DES COMPÉTENCES
       ====================================== */
    .skills-container {
        position: relative;
        width: 100%;
        overflow: hidden;
        /* fondu sur les bords gauche/droite */
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
                mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    }

    .skills-track {
        display: flex;
        align-items: center;
        gap: 48px;
        width: max-content;
        /* Vitesse du défilement : baisse la valeur (en secondes) pour aller plus vite */
        animation: skills-scroll 8s linear infinite;
    }

    /* Le JS triple la liste des icônes pour boucler sans coupure,
       donc on doit translater exactement d'un tiers (-33.333%) */
    @keyframes skills-scroll {
        from { transform: translateX(0); }
        to   { transform: translateX(-33.3333%); }
    }

    .skill-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
        position: relative;
        border: none;
        outline: none;
        box-shadow: none;
        background: transparent;
    }

    .skill-logo-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        outline: none;
        box-shadow: none;
        background: transparent;
    }

    .skill-logo {
        width: 48px;
        height: 48px;
        display: block;
        border: none;
        outline: none;
        box-shadow: none;
    }

    .skill-name {
        font-size: 15px;
        color: rgba(210, 227, 255, 0.8); /* contraste renforcé (était 0.5) */
        letter-spacing: 0.5px;
    }

    .skill-tooltip {
        display: none; /* affiche-le au survol si tu veux réactiver le tooltip */
    }

    /* ======================================
       DÉTAIL DES COMPÉTENCES
       ====================================== */
    .competences-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 56px 40px;
        max-width: 1100px;
        margin: 64px auto 0;
    }

    .competence-card {
        text-align: center;
        padding: 0 12px;
    }

    .competence-icon {
        width: 84px;
        height: 84px;
        margin: 0 auto 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(60, 140, 255, 0.07);
        border: 1px solid rgba(60, 140, 255, 0.25);
        color: rgba(120, 175, 255, 0.85);
        font-size: 32px;
        box-shadow: 0 0 24px rgba(30, 100, 255, 0.1);
        transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
    }

    .competence-card:hover .competence-icon {
        border-color: rgba(60, 140, 255, 0.55);
        box-shadow: 0 0 32px rgba(30, 100, 255, 0.2);
        transform: translateY(-2px);
    }

    .competence-title {
        font-family: 'Instrument Serif', serif;
        font-weight: 400;
        font-size: 26px;
        letter-spacing: -0.3px;
        color: #e8f0ff;
        margin-bottom: 18px;
    }

    .competence-list {
        list-style: disc;
        text-align: left;
        margin: 0 auto;
        padding: 0 0 0 20px;
        max-width: 300px;
        font-size: 16px;
        font-weight: 300;
        line-height: 1.8;
        color: rgba(215, 230, 255, 0.85); /* contraste renforcé (était 0.45) */
    }

    .competence-list li {
        margin-bottom: 10px;
        padding-left: 4px;
    }

    .competence-list li::marker {
        color: rgba(120, 175, 255, 0.7);
    }

    .competence-list li:last-child {
        margin-bottom: 0;
    }

    .competence-list strong {
        color: var(--text, #e8f0ff);
        font-weight: 600;
    }

    @media (max-width: 700px) {
        .competences-grid {
            gap: 40px 24px;
        }
    }

    /* ======================================
       RESPONSIVE
       ====================================== */
    @media (max-width: 768px) {
        .hero-section  { padding: 0 24px; }
        .hero-bottom   { left: 24px; right: 24px; flex-direction: column; gap: 20px; align-items: flex-start; }
        .hero-vr       { display: none; }
        .section       { padding: 60px 24px; }
    }