/* ============================================================
   VARIABLES
   ============================================================ */
:root {
    --bg: #0A192F;
    --bg-alt: #112240;
    --bg-nav: #0A192F;
    --surface: #112240;
    --border: #15304E;
    --border-strong: #22425F;
    --white: #E6F1FF;
    --text: #E6F1FF;
    --text-soft: #CCCCCC;
    --text-muted: #CCCCCC;
    --text-faint: rgba(204, 204, 204, 0.6);
    --accent: #64FFDA;
    --accent-2: #00B4D8;
    --glow: 0 0 12px rgba(100, 255, 218, 0.35);
    --gutter: max(16px, calc((100% - 1100px) / 2));
}


/* ============================================================
   RESET GLOBAL
   ============================================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}


/* ============================================================
   BODY — BASE GLOBALE
   ============================================================ */
body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

strong {
    color: var(--white);
    font-weight: 600;
}

a {
    color: var(--white);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    background-color: var(--white);
    color: var(--bg);
    padding: 8px 14px;
    font-weight: 500;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}


/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px var(--gutter);
    background-color: var(--bg-nav);
    border-bottom: 1px solid var(--border-strong);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}

.logo-mark {
    width: 24px;
    height: 29px;
    overflow: visible;
    filter: drop-shadow(0 0 5px rgba(100, 255, 218, 0.55));
}

.logo-shield {
    fill: none;
    stroke: var(--accent);
    stroke-width: 13;
    stroke-linejoin: round;
}

.logo-key {
    fill: var(--accent);
}

.nav-wordmark {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid #E6F1FF44;
    border-radius: 4px;
    color: var(--white);
    font-size: 20px;
    line-height: 1;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links .nav-cv {
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav-links .nav-cv:hover {
    background-color: #64FFDA1a;
    color: var(--accent);
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: calc(100vh - 62px);
    display: flex;
    align-items: center;
    padding: 80px var(--gutter);
    overflow: hidden;
}

.hero-visuel {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 56%;
    pointer-events: none;
}

.globe {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(#E6F1FF08 1px, transparent 1px),
        linear-gradient(90deg, #E6F1FF08 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
    mask-image: linear-gradient(to bottom, #000 40%, transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.statut-stage {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--accent);
    letter-spacing: 0.3px;
    margin-bottom: 22px;
}

.statut-stage::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--accent);
}

h1 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: clamp(46px, 8.5vw, 96px);
    font-weight: 700;
    line-height: 0.98;
    color: var(--white);
    letter-spacing: -1px;
    margin-bottom: 14px;
}

.etudiant {
    font-size: clamp(18px, 2.5vw, 22px);
    color: var(--text-muted);
    margin-bottom: 24px;
}

.etudiant a {
    text-decoration: underline;
    text-decoration-color: #E6F1FF55;
    text-underline-offset: 4px;
    transition: text-decoration-color 0.2s;
}

.etudiant a:hover {
    text-decoration-color: var(--white);
}

.hero-desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
    border-left: 2px solid var(--accent);
    padding-left: 16px;
}

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

.btn {
    display: inline-block;
    font-size: 15px;
    font-weight: 500;
    padding: 11px 22px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

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

.btn-primary:hover {
    background-color: var(--accent);
    border-color: var(--accent);
}

.btn-ghost {
    color: var(--white);
    border: 1px solid #E6F1FF55;
}

.btn-ghost:hover {
    border-color: var(--white);
    background-color: #E6F1FF10;
}


/* ============================================================
   TITRES DE SECTION
   ============================================================ */
.section-head {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin-bottom: 38px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-strong);
}

.section-num {
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: 15px;
    color: var(--accent);
    letter-spacing: 1px;
    flex-shrink: 0;
    transform: translateY(-0.35em);
}

.titre-section {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: clamp(32px, 5.5vw, 62px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: var(--white);
}

.section {
    padding: 70px var(--gutter) 0 var(--gutter);
}

main > .section:last-child {
    padding-bottom: 70px;
}


/* ============================================================
   ABOUT
   ============================================================ */
.about {
    background-color: var(--bg-alt);
    padding: 60px var(--gutter);
    border-bottom: 1px solid var(--border);
}

.container {
    display: flex;
    align-items: center;
    gap: 48px;
}

.profile-wrap {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 220px;
    background-color: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
}

.about-logo {
    width: 128px;
    height: auto;
    filter: drop-shadow(0 0 12px rgba(100, 255, 218, 0.45));
}

.about-logo .logo-shield {
    stroke-width: 11;
}

.about-text h2 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--white);
}

.about-text p {
    font-size: 17px;
    line-height: 1.7;
    max-width: 700px;
    color: var(--text-soft);
}

.about-text p + p {
    margin-top: 12px;
}

.about-facts {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border-strong);
    font-size: 14px;
    color: var(--text-muted);
}

.about-facts span {
    color: var(--accent);
    margin-right: 6px;
}


/* ============================================================
   PARCOURS — TIMELINE
   ============================================================ */
.parcours {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.sous-titre {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.timeline {
    list-style: none;
    border-left: 1px solid var(--border-strong);
    padding-left: 24px;
}

.timeline-item {
    position: relative;
}

.timeline-item + .timeline-item {
    margin-top: 28px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 4px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: var(--bg);
    border: 2px solid var(--accent);
}

.timeline-date {
    font-size: 13px;
    color: var(--text-faint);
    letter-spacing: 0.5px;
}

.timeline-item h4 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 18px;
    color: var(--white);
    margin: 4px 0 2px 0;
}

.timeline-lieu {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 6px;
}

.timeline-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}


/* ============================================================
   COMPÉTENCES
   ============================================================ */
.competences {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.bloc {
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    padding: 20px;
    background-color: var(--bg-alt);
    transition: transform 0.3s, border-color 0.3s;
}

.bloc:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.bd_header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bd_img {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
}

.bd_text h3 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 19px;
    line-height: 1.25;
    color: var(--white);
}

.bd_subtitle {
    margin-top: 4px;
    color: var(--text-faint);
    font-size: 14px;
}

.bloc hr {
    border: none;
    border-top: 1px solid var(--border-strong);
    margin: 16px 0 12px 0;
}

.bloc h4 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 15px;
    margin: 12px 0 5px 0;
    color: var(--accent);
}

.bloc h4:first-of-type {
    margin-top: 0;
}

.bloc ul {
    padding-left: 18px;
}

.bloc li {
    margin-bottom: 5px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--text-soft);
}


/* ============================================================
   OUTILS & ENVIRONNEMENT
   ============================================================ */
.outils {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.outil-categorie {
    background-color: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
    transition: border-color 0.3s;
}

.outil-categorie:hover {
    border-color: var(--accent);
}

.outil-cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.outil-icon {
    font-size: 16px;
    color: var(--white);
    opacity: 0.7;
    min-width: 18px;
}

.outil-cat-header h3 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.outil-tags,
.projet-techs {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-soft);
}

.tag.tag-accent {
    border-color: #64FFDA55;
    color: var(--accent);
}


/* ============================================================
   PROJETS
   ============================================================ */
.projets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.projet-bloc {
    background-color: var(--bg-alt);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.3s, border-color 0.3s;
}

.projet-bloc:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.projet-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.projet-icon {
    font-size: 18px;
    line-height: 1.3;
    color: var(--white);
    opacity: 0.7;
}

.projet-titre {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.3;
    color: var(--white);
    flex: 1;
}

.projet-tag-type {
    font-size: 11px;
    padding: 3px 8px;
    border: 1px solid #64FFDA66;
    border-radius: 4px;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.projet-meta {
    font-size: 13px;
    color: var(--text-faint);
}

.projet-points {
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.projet-points li {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.55;
}

.projet-techs {
    margin-top: auto;
    padding-top: 6px;
}


/* ============================================================
   LANGUES & INTÉRÊTS
   ============================================================ */
.extras {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.extra-bloc {
    background-color: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 22px;
}

.langues div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.langues div:last-child {
    border-bottom: none;
}

.langues dt {
    color: var(--white);
}

.langues dd {
    color: var(--text-muted);
}


/* ============================================================
   CONTACT
   ============================================================ */
.contact {
    padding: 60px var(--gutter);
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-strong);
}

.contact h2 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: clamp(32px, 5.5vw, 62px);
    line-height: 1;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: var(--white);
}

.contact-intro {
    color: var(--text-muted);
    margin-bottom: 26px;
}

.contact-infos {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: baseline;
}

.contact-label {
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--accent);
    font-size: 16px;
    min-width: 90px;
}

.contact-value {
    color: var(--text-soft);
    font-size: 16px;
}

.contact-value a {
    text-decoration: none;
    border-bottom: 1px solid #E6F1FF44;
    transition: border-color 0.2s;
}

.contact-value a:hover {
    border-color: var(--white);
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
    text-align: center;
    padding: 20px;
    background-color: var(--bg-nav);
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 13px;
    letter-spacing: 0.3px;
}

.footer-name {
    color: var(--white);
    font-weight: 700;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 801px) and (max-width: 1200px) {
    .hero-content {
        max-width: 460px;
    }

    .hero-visuel {
        width: 52%;
    }
}

@media (max-width: 1024px) {
    .competences {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 800px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background-color: var(--bg-nav);
        border-bottom: 1px solid var(--border-strong);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 14px 16px;
    }

    .nav-links .nav-cv {
        border: none;
        border-radius: 0;
    }

    .hero-visuel {
        width: 100%;
        opacity: 0.25;
    }

    .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .parcours,
    .extras {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .extras {
        gap: 20px;
    }

    .section {
        padding-top: 56px;
    }

    .section-head {
        gap: 12px;
        margin-bottom: 28px;
    }
}

@media (max-width: 560px) {
    .competences,
    .outils {
        grid-template-columns: 1fr;
    }

    .btn {
        flex: 1 1 100%;
        text-align: center;
    }


    .contact-item {
        flex-direction: column;
        gap: 2px;
    }

    .contact-value {
        overflow-wrap: anywhere;
    }
}
