:root {

    --primary: #174f50;

    --primary-dark: #103b3d;

    --accent: #68b7aa;

    --background: #f7f9f8;

    --surface: #ffffff;

    --text: #243c3d;

    --muted: #718282;

    --border: #dce7e4;

}



* { box-sizing: border-box; }



html { scroll-behavior: smooth; }



body {

    margin: 0;

    background: var(--background);

    color: var(--text);

    font-family: "Segoe UI", Arial, sans-serif;

    line-height: 1.65;

}



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



.sidebar {

    position: fixed;

    inset: 0 auto 0 0;

    width: 235px;

    padding: 42px 30px;

    background: var(--primary-dark);

    color: white;

    display: flex;

    flex-direction: column;

    z-index: 10;

}



.logo {

    font-size: 35px;

    font-weight: 800;

    letter-spacing: -2px;

}



.logo span { color: var(--accent); }



.sidebar nav {

    display: flex;

    flex-direction: column;

    gap: 24px;

    margin-top: 75px;

}



.sidebar nav a {

    color: #c5d8d5;

    font-size: 14px;

    transition: color .2s;

}



.sidebar nav a:hover { color: white; }



.sidebar-footer {

    margin-top: auto;

    font-size: 11px;

    color: #9bb9b5;

}



main { margin-left: 235px; }



.hero, .section {

    padding: 95px clamp(30px, 7vw, 120px);

}



.hero {

    min-height: 650px;

    background: linear-gradient(125deg, #fff 40%, #e7f3f0);

}



.eyebrow {

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;

    color: #4b958a;

    margin-bottom: 18px;

}



h1, h2, h3 { line-height: 1.2; }



h1 {

    font-size: clamp(48px, 6vw, 82px);

    letter-spacing: -3px;

    margin: 0;

}



h1 span { color: var(--primary); }



.hero h2 {

    font-size: 21px;

    font-weight: 500;

    margin-top: 16px;

}



.hero p, .section > p {

    max-width: 680px;

    color: #5c7070;

}



.actions {

    display: flex;

    gap: 12px;

    flex-wrap: wrap;

    margin-top: 30px;

}



.btn {

    display: inline-block;

    padding: 12px 22px;

    border-radius: 5px;

    font-size: 14px;

    font-weight: 600;

}



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

.btn.secondary { border: 1px solid var(--primary); color: var(--primary); }

.btn:hover { opacity: .85; }



.data-visual {

    max-width: 740px;

    margin-top: 55px;

    padding: 25px;

    background: #123f40;

    border-radius: 9px;

    color: #c9e9e4;

}



.data-heading {

    font-size: 11px;

    letter-spacing: 2px;

    margin-bottom: 25px;

}



.pipeline {

    display: flex;

    justify-content: space-between;

    gap: 15px;

}



.pipeline span {

    border: 1px solid #5b9992;

    padding: 12px;

    border-radius: 5px;

    text-align: center;

    flex: 1;

    font-size: 13px;

}



.section { border-top: 1px solid var(--border); }

.section h2 { font-size: 36px; margin-top: 0; }



.experience {

    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 22px 0;

    border-bottom: 1px solid var(--border);

}



.experience span { color: var(--muted); }



.cards {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;

    margin-top: 35px;

}



.card {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 8px;

    padding: 28px;

    transition: transform .2s, border-color .2s;

}



.card:hover {

    transform: translateY(-4px);

    border-color: var(--accent);

}



.card-number {

    color: #4c988d;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1px;

}



.card h3 { margin: 20px 0 10px; }

.card p { color: var(--muted); font-size: 14px; }



.tags { display: flex; flex-wrap: wrap; gap: 7px; }

.tags span {

    background: #eaf3f0;

    color: var(--primary);

    padding: 4px 9px;

    border-radius: 4px;

    font-size: 11px;

}



.contact { background: #eaf3f0; }

footer { padding: 25px; text-align: center; color: var(--muted); font-size: 12px; }



@media (max-width: 1000px) {

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

}



@media (max-width: 700px) {

    .sidebar {

        position: sticky;

        width: 100%;

        height: auto;

        padding: 12px 20px;

        flex-direction: row;

        align-items: center;

        justify-content: space-between;

    }



    .logo { font-size: 25px; }



    .sidebar nav {

        flex-direction: row;

        gap: 12px;

        margin: 0;

        overflow-x: auto;

    }



    .sidebar nav a { font-size: 11px; }

    .sidebar-footer { display: none; }



    main { margin-left: 0; }

    .hero, .section { padding: 65px 22px; }

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

    .experience { flex-direction: column; gap: 4px; }

    .pipeline { flex-wrap: wrap; }

    .pipeline span { flex-basis: 40%; }

}







/* HERO — Portrait et présentation */



.hero {

    min-height: 680px;

    display: flex;

    align-items: center;

    overflow: hidden;

}



.hero-content {

    display: grid;

    grid-template-columns: 1.15fr 0.85fr;

    align-items: center;

    gap: 50px;

    width: 100%;

    max-width: 1400px;

    margin: auto;

}



.hero-text {

    position: relative;

    z-index: 2;

}



.hero-text h1 {

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(54px, 5.5vw, 88px);

    font-weight: 700;

    letter-spacing: -2px;

}



.hero-text h2 {

    font-family: Georgia, "Times New Roman", serif;

    font-size: 28px;

    color: #08746e;

    margin: 12px 0 25px;

}



.hero-text p {

    max-width: 570px;

    line-height: 1.75;

}



.hero-visual {

    position: relative;

    display: flex;

    justify-content: center;

    align-items: flex-end;

    min-height: 450px;

}



.portrait-frame {

    position: relative;

    width: min(100%, 390px);

    aspect-ratio: 4 / 5;

    overflow: hidden;

    border-radius: 180px 180px 12px 12px;

    background: linear-gradient(

        145deg,

        #dcefed,

        #8cbab3

    );

}



.portrait {

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center 20%;

}



.data-label {

    position: absolute;

    bottom: 25px;

    left: -20px;

    padding: 16px 20px;

    background: #ffffff;

    border: 1px solid #d8e6e3;

    border-radius: 6px;

    box-shadow: 0 12px 35px rgba(0, 50, 50, 0.08);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1px;

    color: #164f50;

}



.data-label small {

    display: block;

    margin-top: 5px;

    font-size: 10px;

    font-weight: 400;

    letter-spacing: 1px;

    color: #718282;

}



.data-label-dot {

    display: inline-block;

    width: 8px;

    height: 8px;

    margin-right: 8px;

    border-radius: 50%;

    background: #168f81;

}



@media (max-width: 1100px) {

    .hero-content {

        grid-template-columns: 1fr;

        gap: 40px;

    }



    .hero-visual {

        min-height: auto;

    }



    .portrait-frame {

        width: 300px;

    }

}



@media (max-width: 700px) {

    .hero-text h1 {

        font-size: 54px;

    }



    .hero-text h2 {

        font-size: 24px;

    }



    .data-label {

        left: 0;

    }

}





/* =========================================

   SIDEBAR — NAVIGATION

========================================= */



.sidebar {

    width: 235px;

    padding: 34px 0 22px;

    background: #0d393c;

    display: flex;

    flex-direction: column;

}



.logo {

    display: block;

    margin: 0 34px 55px;

    font-family: Georgia, serif;

    font-size: 39px;

    font-weight: 700;

    letter-spacing: -3px;

    line-height: 1;

    color: #ffffff;

}



.logo span {

    color: #8ac8bc;

}



.sidebar-nav {

    display: flex;

    flex-direction: column;

    gap: 5px;

    margin: 0;

}



.sidebar-nav .nav-link {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 14px 28px;

    border-left: 4px solid transparent;

    font-size: 14px;

    color: #bdd3d1;

    transition:

        background .2s ease,

        color .2s ease,

        border-color .2s ease;

}



.nav-link svg {

    width: 19px;

    height: 19px;

    stroke-width: 1.7;

    flex-shrink: 0;

}



.sidebar-nav .nav-link:hover {

    background: rgba(255, 255, 255, .06);

    color: #ffffff;

}



.sidebar-nav .nav-link.active {

    background: #14585a;

    border-left-color: #5db8a8;

    color: #ffffff;

    font-weight: 600;

}



.sidebar-bottom {

    margin-top: auto;

    padding: 0 28px;

}



.social-links {

    display: flex;

    align-items: center;

    gap: 20px;

    margin-bottom: 25px;

}



.social-links a {

    color: #bdd3d1;

    transition: color .2s ease;

}



.social-links a:hover {

    color: #ffffff;

}



.social-links svg {

    width: 19px;

    height: 19px;

    stroke-width: 1.7;

}



.sidebar-copyright {

    color: #8eafac;

    font-size: 11px;

    margin: 0;

}



.about-section p + p {

    margin-top: 18px;

}



/* =========================================

   RESPONSIVE

========================================= */



@media (max-width: 700px) {



    .sidebar {

        width: 100%;

        padding: 12px 16px;

        flex-direction: row;

        align-items: center;

        gap: 18px;

    }



    .logo {

        margin: 0;

        font-size: 28px;

        flex-shrink: 0;

    }



    .sidebar-nav {

        flex-direction: row;

        gap: 2px;

        margin: 0;

        overflow-x: auto;

        min-width: 0;

        scrollbar-width: none;

    }



    .sidebar-nav::-webkit-scrollbar {

        display: none;

    }



    .sidebar-nav .nav-link {

        padding: 10px;

        border-left: 0;

        border-bottom: 2px solid transparent;

        flex-shrink: 0;

    }



    .sidebar-nav .nav-link span {

        display: none;

    }



    .sidebar-nav .nav-link.active {

        border-bottom-color: #5db8a8;

    }



    .sidebar-bottom {

        display: none;

    }



}





/* =========================================

   PARCOURS — TIMELINE

========================================= */



.parcours-section {

    background: #f8faf9;

}



.section-heading {

    display: flex;

    align-items: baseline;

    justify-content: space-between;

    gap: 20px;

}



.section-heading h2 {

    margin-bottom: 12px;

}



.section-heading > span {

    font-size: 12px;

    color: #7a8e8b;

    white-space: nowrap;

}



.section-intro {

    max-width: 700px;

    margin-bottom: 45px;

}



/* Conteneur principal */



.timeline {

    position: relative;

    max-width: 1100px;

    margin-top: 35px;

}



/* Ligne verticale */



.timeline::before {

    content: "";

    position: absolute;

    top: 24px;

    bottom: 50px;

    left: 23px;

    width: 1px;

    background: #b8d3ce;

}



/* Élément */



.timeline-item {

    position: relative;

    display: grid;

    grid-template-columns: 48px minmax(0, 1fr);

    gap: 24px;

    padding-bottom: 38px;

}



.timeline-item:last-child {

    padding-bottom: 0;

}



/* Icône */



.timeline-marker {

    position: relative;

    z-index: 1;

    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #e5f1ef;

    color: #08756f;

    border: 4px solid #f8faf9;

}



.timeline-marker svg {

    width: 21px;

    height: 21px;

    stroke-width: 1.8;

}



/* Contenu */



.timeline-content {

    min-width: 0;

    padding: 5px 0 8px;

}



.timeline-header {

    display: flex;

    align-items: baseline;

    justify-content: space-between;

    gap: 20px;

}



.timeline-header h3 {

    font-family: Georgia, "Times New Roman", serif;

    font-size: 21px;

    color: #183a3c;

    margin: 0;

}



.timeline-date {

    font-size: 12px;

    color: #728985;

    white-space: nowrap;

}



.timeline-content h4 {

    font-size: 14px;

    font-weight: 600;

    margin: 7px 0 8px;

    color: #355557;

}



.timeline-content p {

    max-width: 700px;

    margin: 0;

    color: #697e7b;

    font-size: 14px;

    line-height: 1.7;

}



/* Technologies */



.timeline-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 13px;

}



.timeline-tags span {

    padding: 4px 9px;

    border-radius: 4px;

    background: #e6f0ee;

    color: #286f69;

    font-size: 11px;

    font-weight: 500;

}



/* Responsive */



@media (max-width: 700px) {



    .section-heading {

        display: block;

    }



    .section-heading > span {

        display: block;

        margin-bottom: 15px;

    }



    .timeline-item {

        grid-template-columns: 42px minmax(0, 1fr);

        gap: 14px;

        padding-bottom: 32px;

    }



    .timeline-marker {

        width: 42px;

        height: 42px;

    }



    .timeline::before {

        left: 20px;

    }



    .timeline-header {

        flex-direction: column;

        align-items: flex-start;

        gap: 4px;

    }



    .timeline-header h3 {

        font-size: 19px;

    }



    .timeline-date {

        white-space: normal;

    }



}


/* =========================================
   FINALISATION — RESPONSIVE ET ACCESSIBILITÉ
   ========================================= */

/* Empêche les contenus longs de déborder des grilles. */
.hero-content > *,
.cards > *,
.timeline-content {
    min-width: 0;
}

/* Navigation clavier : visible sans modifier l'apparence normale. */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

/* Conserve une grille confortable sur les écrans intermédiaires. */
@media (min-width: 701px) and (max-width: 1100px) {
    .hero, .section {
        padding-left: clamp(28px, 5vw, 70px);
        padding-right: clamp(28px, 5vw, 70px);
    }

    .hero-content {
        gap: 30px;
    }
}

/* La barre de navigation reste utilisable sur téléphone. */
@media (max-width: 700px) {
    .sidebar {
        top: 0;
        z-index: 50;
        max-width: 100%;
    }

    .sidebar-nav {
        flex: 1;
        min-width: 0;
        max-width: 100%;
        overscroll-behavior-x: contain;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-visual {
        width: 100%;
    }

    .portrait-frame {
        max-width: 100%;
    }

    .actions .btn {
        text-align: center;
    }

    .section h2 {
        font-size: clamp(28px, 7vw, 36px);
    }
}

@media (max-width: 420px) {
    .sidebar {
        gap: 10px;
        padding: 10px 12px;
    }

    .logo {
        font-size: 24px;
    }

    .sidebar-nav .nav-link {
        padding: 9px;
    }

    .hero, .section {
        padding: 48px 18px;
    }

    .hero-text h1 {
        font-size: clamp(40px, 12vw, 54px);
    }

    .hero-text h2 {
        font-size: 22px;
    }

    .data-label {
        bottom: 12px;
        padding: 11px 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
