:root {
    --bg-main: #181A18;
    --bg-secondary: #111311;
    --text-main: #ffffff;
    --text-secondary: rgba(255,255,255,0.65);
    --text-muted: rgba(255,255,255,0.45);
    --text-soft: rgba(255,255,255,0.58);
    --border-color: rgba(255,255,255,0.08);
    --border-strong: rgba(255,255,255,0.12);
    --card-bg: rgba(255,255,255,0.04);
    --card-bg-hover: rgba(255,255,255,0.07);
    --card-bg-soft: rgba(255,255,255,0.03);
    --header-bg: rgba(10, 10, 14, 0.65);
    --terminal-toolbar: #212121;
    --terminal-body: rgba(0, 0, 0, 0.6);
    --terminal-text: #e6e6e6;
    --terminal-user: #d5d0ce;
    --scrollbar-thumb: #555;
    --track-line: rgba(255,255,255,0.14);
    --progress-line: rgba(255,255,255,0.88);
    --handle-bg: #ffffff;
    --button-text: #ffffff;
    --button-bg: rgba(255,255,255,0.05);
    --button-border: rgba(255,255,255,0.12);
    --card-text-dark: #f0f0f0;
    --accent-cyan: #9affea;
    --accent-green: #6aff6a;
    --accent-blue: #6ab5ff;
}

/* THEME BLANC */
body.light {
    --bg-main: #ffffff;
    --bg-secondary: #f3f4f6;
    --text-main: #111111;
    --text-secondary: rgba(0,0,0,0.68);
    --text-muted: rgba(0,0,0,0.45);
    --text-soft: rgba(0,0,0,0.58);
    --border-color: rgba(0,0,0,0.08);
    --border-strong: rgba(0,0,0,0.12);
    --card-bg: rgba(0,0,0,0.03);
    --card-bg-hover: rgba(0,0,0,0.06);
    --card-bg-soft: rgba(0,0,0,0.025);
    --header-bg: rgba(255, 255, 255, 0.75);
    --terminal-toolbar: #e5e7eb;
    --terminal-body: rgba(255, 255, 255, 0.92);
    --terminal-text: #1f2937;
    --terminal-user: #374151;
    --scrollbar-thumb: #b8bcc4;
    --track-line: rgba(0,0,0,0.14);
    --progress-line: rgba(0,0,0,0.88);
    --handle-bg: #111111;
    --button-text: #111111;
    --button-bg: rgba(0,0,0,0.04);
    --button-border: rgba(0,0,0,0.12);
    --card-text-dark: #1f2937;
    --accent-cyan: #0f766e;
    --accent-green: #15803d;
    --accent-blue: #2563eb;
}

html {
    scroll-behavior: smooth;
}

body{
    margin: 0;
    padding-top: 70px;
    background:
            radial-gradient(circle at top center, rgba(120, 120, 120, 0.08), transparent 35%),
            linear-gradient(90deg, var(--bg-main) 0%, var(--bg-secondary) 50%, var(--bg-main) 100%);
    color: var(--text-main);
    font-family: Arial, Helvetica, sans-serif;
    transition: background 0.35s ease, color 0.35s ease;
}

*{
    box-sizing: border-box;
}

#haut{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

#goche{
    text-align: center;
    width: 60%;
    color: var(--text-main);
}

#goche h1{
    font-size: 3rem;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

#goche h2{
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 0;
}

#drouate{
    width: 40%;
    display: flex;
    justify-content: center;
}

#moi{
    width: 220px;
    max-width: 80%;
    border-radius: 18px;
    display: block;
}

.socials{
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 14px;
}

.social_btn img {
    width: 40px;
    height: 40px;
    transition: transform 0.2s ease;
}

.social_btn:hover img {
    transform: scale(1.12);
}

.timeline_slider_section{
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 70px;
    margin-bottom: 70px;
    padding: 0 20px;
}

.timeline_slider_minimal{
    width: min(900px, 70%);
    padding: 0;
    position: relative;
}

.timeline_slider_intro{
    margin-bottom: 18px;
}

.timeline_label{
    display: inline-block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--text-muted);
    font-weight: 600;
}

.timeline_slider{
    position: relative;
    width: 100%;
    height: 22px;
    user-select: none;
}

.timeline_track{
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    transform: translateY(-50%);
    background: var(--track-line);
}

.timeline_progress{
    position: absolute;
    top: 50%;
    left: 0;
    height: 1px;
    width: 0%;
    transform: translateY(-50%);
    background: var(--progress-line);
    transition: width 0.22s ease;
}

.timeline_point{
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    z-index: 3;
}

.point_inner{
    display: block;
    width: 8px;
    height: 8px;
    margin: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.30);
    transition: all 0.22s ease;
}

body.light .point_inner{
    background: rgba(0,0,0,0.24);
}

.timeline_point.active .point_inner{
    background: var(--handle-bg);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.06);
}

body.light .timeline_point.active .point_inner{
    box-shadow: 0 0 0 4px rgba(0,0,0,0.06);
}

.timeline_handle{
    position: absolute;
    top: 50%;
    left: 0%;
    width: 14px;
    height: 14px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--handle-bg);
    border: 1px solid var(--border-strong);
    box-shadow:
            0 0 0 6px rgba(255,255,255,0.03),
            0 0 12px rgba(255,255,255,0.08);
    cursor: grab;
    z-index: 4;
    transition: left 0.22s ease;
}

body.light .timeline_handle{
    box-shadow:
            0 0 0 6px rgba(0,0,0,0.03),
            0 0 12px rgba(0,0,0,0.08);
}

body.dragging .timeline_handle{
    cursor: grabbing;
}

.timeline_labels{
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    color: rgba(255,255,255,0.34);
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.light .timeline_labels{
    color: rgba(0,0,0,0.38);
}

.timeline_content{
    margin-top: 28px;
    max-width: 640px;
    min-height: 86px;
}

.timeline_content h3{
    margin: 0 0 8px 0;
    color: color-mix(in srgb, var(--text-main) 92%, transparent);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.timeline_content p{
    margin: 0;
    color: color-mix(in srgb, var(--text-main) 52%, transparent);
    line-height: 1.65;
    font-size: 0.94rem;
    font-weight: 400;
}

.bas1{
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 70px;
    padding: 0 20px;
}

.container{
    width: min(760px, 90%);
    height: 340px;
}

.terminal_toolbar{
    display: flex;
    height: 30px;
    align-items: center;
    padding: 0 8px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    background: var(--terminal-toolbar);
    justify-content: space-between;
    transition: background 0.35s ease;
}

.butt{
    display: flex;
    align-items: center;
}

.btn{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin-right: 5px;
    height: 12px;
    width: 12px;
    border: none;
    border-radius: 100%;
    background: linear-gradient(#7d7871 0%, #595953 100%);
    box-shadow: 0px 0px 1px 0px #41403A, 0px 1px 1px 0px #474642;
}

.btn-color{
    background: #ee411a;
}

.btn:hover{
    cursor: pointer;
}

.btn:focus{
    outline: none;
}

.add_tab{
    border: 1px solid var(--button-text);
    color: var(--button-text);
    padding: 0 6px;
    border-radius: 4px 4px 0 0;
    border-bottom: none;
    cursor: pointer;
    transition: color 0.35s ease, border-color 0.35s ease;
}

.user{
    color: var(--terminal-user);
    margin-left: 6px;
    font-size: 14px;
    line-height: 15px;
    transition: color 0.35s ease;
}

.terminal_body{
    background: var(--terminal-body);
    height: calc(100% - 30px);
    padding-top: 2px;
    margin-top: -1px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
    overflow-y: auto;
    transition: background 0.35s ease;
}

.irc_connect_line{
    color: var(--accent-cyan);
    font-family: monospace;
    padding: 6px 10px;
    border-bottom: 1px solid var(--border-color);
}

.irc_line{
    display: flex;
    font-family: monospace;
    padding: 4px 10px;
    font-size: 13px;
}

.nick{
    font-weight: bold;
    margin-right: 6px;
}

.msg{
    color: var(--terminal-text);
    transition: color 0.35s ease;
}

.user_v .nick{
    color: var(--accent-green);
}

.user_guest .nick{
    color: var(--accent-blue);
}

.user_v{
    background: var(--card-bg-soft);
}

.user_guest{
    background: rgba(0,0,0,0.15);
}

body.light .user_guest{
    background: rgba(0,0,0,0.04);
}

.scroll_wrapper{
    width: min(1200px, 92%);
    margin: 0 auto 80px auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 48px;
}

.scroll_group{
    flex: 1 1 0;
    max-width: 520px;
    display: flex;
    flex-direction: column;
}

.scroll_group_title{
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-left: 4px;
}

.scroll_tab{
    width: 100%;
    max-height: 260px;
    overflow-y: auto;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.scroll_tab::-webkit-scrollbar{
    width: 6px;
}

.scroll_tab::-webkit-scrollbar-track{
    background: transparent;
}

.scroll_tab::-webkit-scrollbar-thumb{
    background: var(--scrollbar-thumb);
    border-radius: 3px;
}

.rect_item{
    min-height: 160px;
    background: color-mix(in srgb, var(--card-bg) 120%, transparent);
    border: 1px solid color-mix(in srgb, var(--border-strong) 120%, transparent);
    border-radius: 4px;
    padding: 12px;
    color: var(--card-text-dark);
    font-family: monospace;
    font-size: 12px;
    transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.photoproj{
    width: 42px;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.texteprojmain{
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: var(--text-main);
}

.rect_item p{
    margin: 0;
    line-height: 1.5;
    color: color-mix(in srgb, var(--text-main) 88%, transparent);
}

.certifications_section{
    width: min(1100px, 92%);
    margin: 80px auto;
    padding: 0 20px;
}

.certifications_header{
    margin-bottom: 30px;
}

.certifications_label{
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.4);
    display: block;
    margin-bottom: 8px;
}

body.light .certifications_label{
    color: rgba(0,0,0,0.4);
}

.certifications_header h2{
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-main);
}

.certifications_grid{
    display: flex;
    justify-content: center;
    gap: 28px;
}

.cert_card{
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    max-width: 320px;
    padding: 18px;
    border-radius: 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.25s ease, background 0.35s ease, border-color 0.35s ease;
}

.cert_card:hover{
    transform: translateY(-3px);
    background: var(--card-bg-hover);
    border-color: color-mix(in srgb, var(--border-strong) 130%, transparent);
}

.cert_image{
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

.cert_content h3{
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.cert_content p{
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cert_card h3{
    margin: 0 0 8px 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
}

.cert_card p{
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.veille_section{
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 80px 0;
    padding: 0 20px;
}

.veille_frame{
    width: min(1200px, 92%);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 28px;
    background: rgba(255,255,255,0.02);
    transition: background 0.35s ease, border-color 0.35s ease;
}

body.light .veille_frame{
    background: rgba(0,0,0,0.015);
}

.veille_header{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.veille_label{
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.42);
}

body.light .veille_label{
    color: rgba(0,0,0,0.42);
}

.veille_header h2{
    margin: 0 0 10px 0;
    font-size: 2rem;
    color: var(--text-main);
}

.veille_intro{
    margin: 0;
    max-width: 760px;
    color: var(--text-soft);
    line-height: 1.6;
}

.veille_more_btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid var(--button-border);
    border-radius: 10px;
    color: var(--button-text);
    text-decoration: none;
    background: var(--button-bg);
    transition: 0.2s ease, color 0.35s ease, background 0.35s ease, border-color 0.35s ease;
    white-space: nowrap;
}

.veille_more_btn:hover{
    background: color-mix(in srgb, var(--button-bg) 180%, transparent);
    border-color: color-mix(in srgb, var(--button-border) 180%, transparent);
}

.veille_grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.veille_card{
    min-height: 220px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    background: var(--card-bg-soft);
    transition: 0.2s ease, background 0.35s ease, border-color 0.35s ease;
}

.veille_card:hover{
    background: color-mix(in srgb, var(--card-bg-soft) 150%, transparent);
    border-color: color-mix(in srgb, var(--border-strong) 130%, transparent);
}

.veille_meta{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.veille_source{
    color: color-mix(in srgb, var(--text-main) 72%, transparent);
}

.veille_date{
    color: color-mix(in srgb, var(--text-main) 38%, transparent);
}

.veille_card h3{
    margin: 0 0 14px 0;
    font-size: 1.15rem;
    line-height: 1.35;
    color: var(--text-main);
}

.veille_card p{
    margin: 0 0 18px 0;
    color: color-mix(in srgb, var(--text-main) 62%, transparent);
    line-height: 1.65;
    font-size: 0.95rem;
}

.veille_link{
    color: color-mix(in srgb, var(--text-main) 88%, transparent);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--text-main) 18%, transparent);
    padding-bottom: 2px;
    font-size: 0.92rem;
}

.veille_link:hover{
    color: var(--text-main);
    border-color: color-mix(in srgb, var(--text-main) 50%, transparent);
}

.main_header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    z-index: 1000;
    transition: background 0.35s ease, border-color 0.35s ease;
}

body.light .main_header{
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header_container{
    width: min(1200px, 92%);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header_logo span{
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    color: color-mix(in srgb, var(--text-main) 90%, transparent);
}

.header_nav{
    display: flex;
    gap: 26px;
}

.header_nav a{
    font-size: 0.82rem;
    text-decoration: none;
    color: color-mix(in srgb, var(--text-main) 55%, transparent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: 0.2s ease, color 0.35s ease;
}

.header_nav a:hover{
    color: var(--text-main);
}

.header_actions{
    display: flex;
    align-items: center;
}

.theme_toggle{
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--button-border);
    background: var(--button-bg);
    color: var(--button-text);
    cursor: pointer;
    transition: 0.2s ease, color 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.theme_toggle:hover{
    background: color-mix(in srgb, var(--button-bg) 180%, transparent);
    border-color: color-mix(in srgb, var(--button-border) 180%, transparent);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media screen and (max-width: 1024px){
    .timeline_slider_minimal{
        width: 80%;
    }

    #haut{
        min-height: auto;
        padding-top: 60px;
        padding-bottom: 40px;
    }

    .scroll_wrapper{
        width: 94%;
        gap: 24px;
    }
}

@media screen and (max-width: 980px){
    .veille_grid{
        grid-template-columns: 1fr;
    }

    .veille_frame{
        padding: 22px;
    }
}

@media screen and (max-width: 900px){
    .certifications_grid{
        flex-direction: column;
        align-items: center;
    }

    .cert_card{
        width: 100%;
        max-width: 420px;
    }
}

@media screen and (max-width: 800px){
    .header_nav{
        display: none;
    }
}

@media screen and (max-width: 768px){
    #haut{
        flex-direction: column;
        text-align: center;
    }

    #goche,
    #drouate{
        width: 100%;
    }

    #drouate{
        margin-top: 20px;
    }

    .timeline_slider_section{
        margin-top: 40px;
        margin-bottom: 50px;
        padding: 0 16px;
    }

    .timeline_slider_minimal{
        width: 100%;
    }

    .timeline_labels{
        font-size: 0.62rem;
        gap: 6px;
    }

    .timeline_content{
        margin-top: 22px;
    }

    .timeline_content h3{
        font-size: 0.95rem;
    }

    .timeline_content p{
        font-size: 0.88rem;
        line-height: 1.6;
    }

    .scroll_wrapper{
        flex-direction: column;
        width: 92%;
        gap: 32px;
    }

    .scroll_group{
        max-width: none;
        width: 100%;
    }

    .container{
        width: 100%;
    }
}