/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #fdfcfa;
    color: #1c1917;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.6;
}

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

button {
    font-family: inherit;
}

img {
    max-width: 100%;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --background: #fdfcfa;
    --surface: #f6f3ee;

    --text: #1c1917;
    --muted: #78716c;

    --border: #e7e2db;

    --accent: #d97706;
    --accent-soft: #fef3e2;

    --terminal: #171717;
    --terminal-light: #242424;
    --terminal-border: #333333;

    --success: #16a34a;
    --danger: #dc2626;
    --info: #2563eb;
}


/* =========================================================
   GLOBAL LAYOUT
========================================================= */

main {
    width: 100%;
    max-width: 900px;

    margin: 0 auto;

    padding: 0 30px;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    width: 100%;
    max-width: 900px;

    margin: 0 auto;

    padding: 28px 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    min-width: 38px;
    min-height: 38px;

    gap: 10px;
}

.logo-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.logo-name {
    color: var(--text);

    font-size: 15px;
    font-weight: 700;

    letter-spacing: 1.5px;
}


/* =========================================================
   RUBIK'S CUBE
========================================================= */

.rubiks-cube {
    width: 28px;
    height: 28px;

    display: grid;

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

    gap: 2px;

    padding: 2px;

    background: #171717;

    border-radius: 4px;

    transform: rotate(-5deg);

    box-shadow:
        3px 4px 0 rgba(0, 0, 0, 0.12);
}

.rubiks-cube span {
    display: block;

    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    border-radius: 1px;
}

.rubiks-cube span:nth-child(1) {
    background: #ffffff;
}

.rubiks-cube span:nth-child(2) {
    background: #ef4444;
}

.rubiks-cube span:nth-child(3) {
    background: #3b82f6;
}

.rubiks-cube span:nth-child(4) {
    background: #facc15;
}

.rubiks-cube span:nth-child(5) {
    background: #22c55e;
}

.rubiks-cube span:nth-child(6) {
    background: #ffffff;
}

.rubiks-cube span:nth-child(7) {
    background: #f97316;
}

.rubiks-cube span:nth-child(8) {
    background: #3b82f6;
}

.rubiks-cube span:nth-child(9) {
    background: #ef4444;
}


/* Cube du hero */

.hero-cube {
    width: 42px;
    height: 42px;

    gap: 3px;

    padding: 3px;

    transform: rotate(-8deg);

    box-shadow:
        5px 6px 0 rgba(0, 0, 0, 0.12);
}


/* =========================================================
   NAVIGATION
========================================================= */

.navbar nav {
    display: flex;
    align-items: center;

    gap: 25px;
}

.navbar nav a {
    color: var(--muted);

    font-size: 14px;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.navbar nav a:hover {
    color: var(--text);
}


/* =========================================================
   HERO INDEX
========================================================= */

.hero {
    width: 100%;
    max-width: 560px;

    margin: 0 auto;

    padding: 130px 20px 110px;

    display: flex;
    flex-direction: column;

    align-items: center;

    text-align: center;
}

.hero-avatar {
    width: 88px;
    height: 88px;

    margin-bottom: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--accent-soft);

    box-shadow:
        0 10px 30px rgba(217, 119, 6, 0.15);
}

.eyebrow {
    color: var(--muted);

    font-size: 13px;

    margin-bottom: 25px;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: clamp(34px, 6vw, 46px);

    line-height: 1.15;

    letter-spacing: -1px;

    font-weight: 700;
}

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

.intro {
    max-width: 440px;

    margin-top: 18px;

    color: var(--muted);

    font-size: 17px;
}


/* =========================================================
   CONTACT
========================================================= */

.contact-widget {
    position: relative;

    display: inline-block;

    margin-top: 40px;
}

.contact-trigger {
    font-size: 14px;
    font-weight: 600;

    padding: 12px 24px;

    border: 1px solid var(--accent);
    border-radius: 7px;

    background: var(--accent);
    color: white;

    cursor: pointer;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.contact-trigger:hover {
    opacity: 0.9;

    transform: translateY(-1px);
}


/* =========================================================
   CONTACT CARD
========================================================= */

.contact-card {
    position: absolute;

    top: calc(100% + 12px);
    left: 50%;

    width: 280px;

    transform:
        translateX(-50%)
        translateY(-8px);

    background: var(--terminal);

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

    border-radius: 10px;

    overflow: hidden;

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.2);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s;

    z-index: 100;
}

.contact-card.open {
    opacity: 1;
    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0);
}

.contact-card-bar {
    height: 38px;

    display: flex;
    align-items: center;

    padding: 0 14px;

    background: var(--terminal-light);

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

.terminal-dot {
    width: 10px;
    height: 10px;

    flex-shrink: 0;

    border-radius: 50%;

    margin-right: 6px;
}

.terminal-dot.red {
    background: #ff5f56;
}

.terminal-dot.yellow {
    background: #ffbd2e;
}

.terminal-dot.green {
    background: #27c93f;
}

.contact-card-title {
    margin-left: 8px;

    color: #777;

    font-family:
        "SFMono-Regular",
        "Roboto Mono",
        Consolas,
        monospace;

    font-size: 11px;
}

.contact-card-body {
    padding: 18px 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    color: #d4d4d4;

    font-family:
        "SFMono-Regular",
        "Roboto Mono",
        Consolas,
        monospace;

    font-size: 13px;
}

.copy-btn {
    flex-shrink: 0;

    padding: 6px 10px;

    background: transparent;

    color: var(--accent);

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

    border-radius: 5px;

    cursor: pointer;

    font-family: inherit;
    font-size: 11px;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.copy-btn:hover {
    border-color: var(--accent);

    background: rgba(217, 119, 6, 0.08);
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
    padding: 100px 0;

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

.section-header {
    display: grid;

    grid-template-columns: 60px 1fr;

    align-items: baseline;

    margin-bottom: 50px;
}

.section-number {
    color: var(--muted);

    font-size: 13px;
}

.section h2 {
    font-size: 35px;

    line-height: 1.15;

    letter-spacing: -1px;
}


/* =========================================================
   PROJECTS INDEX
========================================================= */

.project-list {
    width: 100%;
}

.project {
    display: grid;

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

    gap: 25px;

    padding: 30px 0;

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

    transition:
        padding 0.2s ease,
        background 0.2s ease;
}

.project:last-child {
    border-bottom: 1px solid var(--border);
}

.project:hover {
    padding-left: 10px;
}

.project-number {
    color: var(--muted);

    font-size: 13px;
}

.project-content {
    min-width: 0;
}

.project h3 {
    font-size: 21px;

    line-height: 1.3;

    margin-bottom: 10px;
}

.project-content p {
    max-width: 500px;

    color: var(--muted);
}

.project-link {
    align-self: center;

    color: var(--accent);

    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.project-link:hover {
    opacity: 0.7;

    transform: translateX(3px);
}


/* =========================================================
   TAGS
========================================================= */

.tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 15px;
}

.tags span {
    padding: 4px 9px;

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

    border-radius: 20px;

    background: var(--surface);

    color: var(--muted);

    font-size: 11px;
}


/* =========================================================
   ABOUT — INTRO
========================================================= */

.about-page {
    padding: 110px 0 90px;
}

.about-page .section-header {
    margin-bottom: 60px;
}

.about-intro {
    max-width: 680px;
}

.about-small-name {
    margin-bottom: 25px !important;

    color: var(--text) !important;

    font-size: 15px !important;

    font-weight: 700;

    letter-spacing: 0.5px;
}

.about-intro p {
    max-width: 620px;

    margin-bottom: 20px;

    color: var(--muted);

    font-size: 17px;
}

.about-intro .about-lead {
    color: var(--text);

    font-size: 21px;

    line-height: 1.5;
}

.about-intro strong {
    color: var(--text);
}


/* =========================================================
   ABOUT — OBJECTIF
========================================================= */

.about-goal {
    margin-top: 45px;

    padding: 28px 30px;

    background: var(--surface);

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

    border-left: 3px solid var(--accent);

    border-radius: 0 8px 8px 0;
}

.about-goal-label {
    display: block;

    margin-bottom: 15px;

    color: var(--accent);

    font-family:
        "SFMono-Regular",
        "Roboto Mono",
        Consolas,
        monospace;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;
}

.about-goal p {
    margin-bottom: 16px;

    font-size: 16px;
}

.about-goal p:last-of-type {
    margin-bottom: 20px;
}


/* =========================================================
   MASTER LINK
========================================================= */

.master-link {
    display: inline-flex;
    align-items: center;

    margin-top: 8px;

    color: var(--accent);

    font-size: 13px;
    font-weight: 600;

    border-bottom: 1px solid transparent;

    transition:
        border-color 0.2s ease,
        opacity 0.2s ease;
}

.master-link:hover {
    border-color: var(--accent);

    opacity: 0.75;
}


/* =========================================================
   ABOUT — COMPÉTENCES
========================================================= */

.about-skills {
    padding-top: 90px;
}

.about-skills-grid {
    display: flex;
    flex-direction: column;
}

.skill-card {
    display: grid;

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

    gap: 25px;

    padding: 30px 0;

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

    transition: padding 0.2s ease;
}

.skill-card:last-child {
    border-bottom: 1px solid var(--border);
}

.skill-card:hover {
    padding-left: 10px;
}

.skill-number {
    color: var(--muted);

    font-size: 13px;
}

.skill-card h3 {
    font-size: 23px;

    line-height: 1.2;

    margin-bottom: 8px;
}

.skill-card p {
    max-width: 600px;

    color: var(--muted);
}


/* =========================================================
   ABOUT — EXPÉRIENCE
========================================================= */

.experience-section {
    padding-bottom: 100px;
}

.experience-card {
    padding: 32px;

    background: var(--surface);

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

    border-radius: 10px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.experience-card:hover {
    border-color: #d8d1c7;

    box-shadow:
        0 15px 35px rgba(28, 25, 23, 0.05);
}

.experience-top {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 30px;
}

.experience-index {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--accent);

    font-family:
        "SFMono-Regular",
        "Roboto Mono",
        Consolas,
        monospace;

    font-size: 11px;
}

.experience-label {
    margin-bottom: 5px !important;

    color: var(--muted) !important;

    font-size: 11px !important;

    text-transform: uppercase;

    letter-spacing: 0.8px;
}

.experience-header h3,
.experience-top h3 {
    font-size: 25px;

    line-height: 1.25;
}

.experience-domain {
    padding: 9px 13px;

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

    border-radius: 20px;

    background: var(--background);

    color: var(--muted);

    font-size: 11px;

    white-space: nowrap;
}

.experience-domain span {
    color: var(--border);

    margin: 0 5px;
}

.experience-divider {
    height: 1px;

    margin: 30px 0;

    background: var(--border);
}

.experience-grid {
    display: grid;

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

    gap: 30px;
}

.experience-column {
    min-width: 0;
}

.experience-column-title {
    display: block;

    margin-bottom: 15px;

    color: var(--text);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.7px;
}

.experience-column ul {
    padding-left: 17px;

    color: var(--muted);

    font-size: 13px;
}

.experience-column li {
    margin-bottom: 10px;
}

.experience-column li:last-child {
    margin-bottom: 0;
}


/* =========================================================
   ABOUT — CERTIFICATIONS & LANGUES
========================================================= */

.certification-layout {
    display: grid;

    grid-template-columns: 1.15fr 0.85fr;

    gap: 50px;

    align-items: start;
}

.subsection-title {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 20px;

    color: var(--text);

    font-size: 15px;
    font-weight: 700;
}

.subsection-title span {
    color: var(--muted);

    font-family:
        "SFMono-Regular",
        "Roboto Mono",
        Consolas,
        monospace;

    font-size: 11px;
}

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

.certification-card {
    display: grid;

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

    gap: 18px;

    padding: 22px 0;

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

.certification-number {
    color: var(--muted);

    font-family:
        "SFMono-Regular",
        "Roboto Mono",
        Consolas,
        monospace;

    font-size: 11px;
}

.certification-card h3 {
    margin-bottom: 5px;

    font-size: 16px;
}

.certification-card p {
    color: var(--muted);

    font-size: 13px;

    line-height: 1.5;
}


/* =========================================================
   LANGUES
========================================================= */

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

.language-item {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 18px 0;

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

.language-item div {
    min-width: 0;
}

.language-item strong {
    display: block;

    font-size: 15px;
}

.language-item span {
    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 11px;
}

.language-item b {
    flex-shrink: 0;

    color: var(--accent);

    font-size: 11px;

    font-weight: 600;

    text-align: right;
}


/* =========================================================
   ABOUT — ENVIRONNEMENT TECHNIQUE
========================================================= */

.technology-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 1px;

    background: var(--border);

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

.technology {
    padding: 25px;

    display: flex;
    flex-direction: column;

    gap: 5px;

    background: var(--background);
}

.technology strong {
    font-size: 16px;
}

.technology span {
    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   ABOUT — TERMINAL
========================================================= */

.real-me {
    padding-top: 100px;
}

.profile-terminal {
    width: 100%;

    background: var(--terminal);

    border: 1px solid #2d2d2d;

    border-radius: 10px;

    overflow: hidden;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.15);
}

.profile-terminal-bar {
    height: 44px;

    display: flex;
    align-items: center;

    padding: 0 15px;

    background: var(--terminal-light);

    border-bottom: 1px solid #333;

    font-family:
        "SFMono-Regular",
        "Roboto Mono",
        Consolas,
        monospace;

    font-size: 11px;
}

.terminal-status {
    display: flex;
    align-items: center;
}

.profile-terminal-bar .terminal-dot {
    margin-right: 6px;
}

.profile-terminal-title {
    margin-left: 8px;

    color: #777;
}

.profile-terminal-online {
    margin-left: auto;

    color: #27c93f;

    font-size: 10px;
}

.profile-terminal-body {
    padding: 30px;

    color: #d4d4d4;

    font-family:
        "SFMono-Regular",
        "Roboto Mono",
        Consolas,
        monospace;

    font-size: 13px;
}

.terminal-command {
    margin-bottom: 10px;

    color: var(--accent);

    font-size: 12px;
}

.terminal-name {
    color: white;

    font-size: 20px;

    font-weight: 700;
}

.terminal-subtitle {
    margin-top: 4px;

    color: #777;

    font-size: 12px;
}

.terminal-separator {
    height: 1px;

    margin: 20px 0;

    background: #333;
}


/* =========================================================
   PROFIL — GRILLE TERMINAL
========================================================= */

.profile-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    border: 1px solid #333;

    background: #333;

    gap: 1px;
}

.profile-cell {
    min-width: 0;

    padding: 18px;

    background: var(--terminal);
}

.profile-cell strong {
    display: block;

    color: #d4d4d4;

    font-size: 13px;

    line-height: 1.4;
}

.profile-cell strong.highlight {
    color: var(--accent);

    font-weight: 600;
}


/* =========================================================
   PROFIL — MOTIVATION
========================================================= */

.progress-row {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 5px;
}

.progress-label {
    flex-shrink: 0;

    color: #777;
}

.progress-bar {
    flex: 1;

    height: 10px;

    min-width: 100px;

    max-width: none;

    background: #292929;

    border-radius: 3px;

    overflow: hidden;
}

.progress-bar span {
    display: block;

    width: 100%;
    height: 100%;

    background:
        repeating-linear-gradient(
            90deg,
            var(--accent) 0,
            var(--accent) 8px,
            transparent 8px,
            transparent 11px
        );
}

.progress-percent {
    flex-shrink: 0;

    color: var(--accent);

    font-size: 11px;
}

.terminal-error {
    margin-top: 10px;

    color: #777;

    font-size: 11px;
}


/* =========================================================
   ABOUT — CONCLUSION
========================================================= */

.about-conclusion {
    max-width: 600px;

    margin-top: 55px;

    padding-left: 20px;

    border-left: 3px solid var(--accent);
}

.conclusion-label {
    display: block;

    margin-bottom: 10px;

    color: var(--accent);

    font-family:
        "SFMono-Regular",
        "Roboto Mono",
        Consolas,
        monospace;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;
}

.about-conclusion p {
    color: var(--muted);

    font-size: 18px;

    margin-bottom: 5px;
}

.about-conclusion strong {
    color: var(--text);
}


/* =========================================================
   PROJECT PAGE — BASE
========================================================= */

.project-hero {
    padding: 120px 0 80px;

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

.project-hero h1 {
    font-size: clamp(42px, 7vw, 68px);

    line-height: 1.05;

    letter-spacing: -2px;

    margin-bottom: 35px;
}

.project-intro {
    max-width: 600px;

    color: var(--muted);

    font-size: 19px;
}

.project-tags {
    margin-top: 30px;
}


/* =========================================================
   PROJECT NETWORK — HERO
========================================================= */

.network-hero {
    position: relative;
}

.network-project-label {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 22px;

    color: var(--accent);

    font-family:
        "SFMono-Regular",
        "Roboto Mono",
        Consolas,
        monospace;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.network-project-label::before {
    content: "";

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--success);

    box-shadow:
        0 0 0 4px rgba(22, 163, 74, 0.08);
}

.network-hero-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 25px;

    margin-top: 35px;

    padding-top: 25px;

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

    color: var(--muted);

    font-size: 12px;
}

.network-hero-meta strong {
    color: var(--text);
}


/* =========================================================
   PROJECT IMAGE
========================================================= */

.project-image-section {
    padding: 80px 0;

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

.project-image-section .section-header {
    margin-bottom: 30px;
}

.project-image {
    padding: 20px 0 0;
}

.project-image img {
    display: block;

    width: 100%;
    height: auto;

    background: var(--surface);

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

    border-radius: 8px;
}

.image-caption {
    margin-top: 12px;

    color: var(--muted);

    font-size: 11px;
}


/* =========================================================
   PROJECT SECTION
========================================================= */

.project-section {
    display: grid;

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

    gap: 30px;

    padding: 90px 0;

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

.project-section h2 {
    font-size: 32px;

    letter-spacing: -1px;
}

.project-text {
    max-width: 550px;
}

.project-text p {
    color: var(--muted);

    font-size: 17px;

    margin-bottom: 25px;
}

.project-text ul {
    padding-left: 20px;

    color: var(--muted);
}

.project-text li {
    margin-bottom: 12px;
}

.project-text h3 {
    font-size: 16px;

    margin: 30px 0 5px;
}

.project-text h3:first-child {
    margin-top: 0;
}


/* =========================================================
   NETWORK — INTRO / CHIFFRES
========================================================= */

.network-overview {
    display: grid;

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

    gap: 1px;

    margin: 30px 0;

    background: var(--border);

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

.network-stat {
    padding: 24px;

    background: var(--background);
}

.network-stat strong {
    display: block;

    color: var(--text);

    font-size: 24px;

    line-height: 1;
}

.network-stat span {
    display: block;

    margin-top: 8px;

    color: var(--muted);

    font-size: 11px;
}


/* =========================================================
   NETWORK — ARCHITECTURE
========================================================= */

.network-architecture {
    margin-top: 30px;

    padding: 25px;

    overflow-x: auto;

    background: var(--terminal);

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

    border-radius: 10px;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.08);
}

.network-architecture pre {
    margin: 0;

    color: #d4d4d4;

    font-family:
        "SFMono-Regular",
        "Roboto Mono",
        Consolas,
        monospace;

    font-size: 12px;

    line-height: 1.65;
}

.network-architecture .highlight {
    color: var(--accent);
}


/* =========================================================
   NETWORK — LAYERS
========================================================= */

.network-layers {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 12px;

    margin-top: 30px;
}

.network-layer {
    padding: 20px;

    background: var(--surface);

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

    border-radius: 8px;
}

.network-layer-label {
    display: block;

    margin-bottom: 8px;

    color: var(--accent);

    font-family:
        "SFMono-Regular",
        "Roboto Mono",
        Consolas,
        monospace;

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.7px;
}

.network-layer strong {
    display: block;

    margin-bottom: 5px;

    font-size: 15px;
}

.network-layer p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   NETWORK — FEATURE GRID
========================================================= */

.network-feature-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 1px;

    margin-top: 30px;

    background: var(--border);

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

.network-feature {
    padding: 24px;

    background: var(--background);
}

.network-feature-number {
    display: block;

    margin-bottom: 15px;

    color: var(--muted);

    font-family:
        "SFMono-Regular",
        "Roboto Mono",
        Consolas,
        monospace;

    font-size: 10px;
}

.network-feature h3 {
    margin: 0 0 8px;

    font-size: 17px;
}

.network-feature p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   NETWORK — VLAN CARDS
========================================================= */

.vlan-grid {
    display: grid;

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

    gap: 10px;

    margin-top: 30px;
}

.vlan-card {
    position: relative;

    padding: 20px;

    background: var(--surface);

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

    border-radius: 8px;

    overflow: hidden;
}

.vlan-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: var(--accent);
}

.vlan-number {
    color: var(--accent);

    font-family:
        "SFMono-Regular",
        "Roboto Mono",
        Consolas,
        monospace;

    font-size: 22px;
    font-weight: 700;
}

.vlan-card h3 {
    margin-top: 5px;

    font-size: 16px;
}

.vlan-card p {
    margin-top: 8px;

    color: var(--muted);

    font-size: 12px;
}


/* =========================================================
   NETWORK — ADDRESSING TABLE
========================================================= */

.address-table {
    margin-top: 30px;
}

.address-table td:first-child {
    color: var(--accent);

    font-family:
        "SFMono-Regular",
        "Roboto Mono",
        Consolas,
        monospace;

    font-weight: 600;
}


/* =========================================================
   NETWORK — SECURITY
========================================================= */

.security-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 10px;

    margin-top: 30px;
}

.security-item {
    display: flex;

    align-items: flex-start;

    gap: 15px;

    padding: 20px;

    background: var(--surface);

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

    border-radius: 8px;
}

.security-icon {
    width: 28px;
    height: 28px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--accent-soft);

    color: var(--accent);

    font-family:
        "SFMono-Regular",
        "Roboto Mono",
        Consolas,
        monospace;

    font-size: 11px;
    font-weight: 700;
}

.security-item h3 {
    margin-bottom: 5px;

    font-size: 15px;
}

.security-item p {
    margin: 0;

    color: var(--muted);

    font-size: 12px;
}


/* =========================================================
   NETWORK — ACL / POLICY
========================================================= */

.policy-box {
    margin-top: 30px;

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

    border-radius: 8px;

    overflow: hidden;
}

.policy-row {
    display: grid;

    grid-template-columns: 130px 1fr 90px;

    align-items: center;

    gap: 20px;

    padding: 15px 18px;

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

.policy-row:last-child {
    border-bottom: none;
}

.policy-source,
.policy-destination {
    font-family:
        "SFMono-Regular",
        "Roboto Mono",
        Consolas,
        monospace;

    font-size: 11px;
}

.policy-source {
    color: var(--text);
}

.policy-destination {
    color: var(--muted);
}

.policy-result {
    text-align: right;

    font-family:
        "SFMono-Regular",
        "Roboto Mono",
        Consolas,
        monospace;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
}

.policy-result.allow {
    color: var(--success);
}

.policy-result.deny {
    color: var(--danger);
}


/* =========================================================
   NETWORK — CODE
========================================================= */

.code-block {
    margin: 20px 0;

    padding: 20px 24px;

    overflow-x: auto;

    background: var(--surface);

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

    border-radius: 8px;

    font-family:
        "SFMono-Regular",
        "Roboto Mono",
        Consolas,
        monospace;

    font-size: 13px;

    line-height: 1.7;

    color: var(--text);
}

.code-block.dark {
    background: var(--terminal);

    border-color: var(--terminal-border);

    color: #d4d4d4;
}

.code-block .command {
    color: var(--accent);
}

.code-block .comment {
    color: #737373;
}

.code-block .success {
    color: #4ade80;
}

.code-block .danger {
    color: #f87171;
}


/* =========================================================
   NETWORK — DIAGNOSTIC COMMANDS
========================================================= */

.command-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 1px;

    margin-top: 30px;

    background: var(--border);

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

.command-item {
    padding: 18px;

    background: var(--background);
}

.command-item code {
    display: block;

    margin-bottom: 5px;

    color: var(--accent);

    font-family:
        "SFMono-Regular",
        "Roboto Mono",
        Consolas,
        monospace;

    font-size: 12px;
}

.command-item span {
    color: var(--muted);

    font-size: 12px;
}


/* =========================================================
   NETWORK — TESTS
========================================================= */

.test-table {
    margin-top: 30px;
}

.test-status {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    font-size: 11px;
    font-weight: 700;
}

.test-status::before {
    content: "";

    width: 7px;
    height: 7px;

    border-radius: 50%;
}

.test-status.ok {
    color: var(--success);
}

.test-status.ok::before {
    background: var(--success);
}

.test-status.no {
    color: var(--danger);
}

.test-status.no::before {
    background: var(--danger);
}

.test-status.partial {
    color: var(--accent);
}

.test-status.partial::before {
    background: var(--accent);
}


/* =========================================================
   NETWORK — RESULT / SUCCESS BOX
========================================================= */

.result-box {
    margin-top: 30px;

    padding: 25px 28px;

    background: #f0fdf4;

    border: 1px solid #bbf7d0;

    border-left: 3px solid var(--success);

    border-radius: 0 8px 8px 0;
}

.result-box-label {
    display: block;

    margin-bottom: 8px;

    color: var(--success);

    font-family:
        "SFMono-Regular",
        "Roboto Mono",
        Consolas,
        monospace;

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.8px;
}

.result-box p {
    margin: 0;

    color: #166534;

    font-size: 14px;
}


/* =========================================================
   NETWORK — LIMITATION
========================================================= */

.limitation-box {
    margin-top: 30px;

    padding: 25px 28px;

    background: #fff7ed;

    border: 1px solid #fed7aa;

    border-left: 3px solid var(--accent);

    border-radius: 0 8px 8px 0;
}

.limitation-label {
    display: block;

    margin-bottom: 10px;

    color: var(--accent);

    font-family:
        "SFMono-Regular",
        "Roboto Mono",
        Consolas,
        monospace;

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.8px;
}

.limitation-box p {
    color: #7c2d12;

    font-size: 14px;

    margin-bottom: 12px;
}

.limitation-box p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   NETWORK — SKILLS
========================================================= */

.network-skills {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 30px;
}

.network-skill {
    padding: 8px 12px;

    background: var(--surface);

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

    border-radius: 20px;

    color: var(--text);

    font-size: 12px;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.network-skill:hover {
    border-color: var(--accent);

    background: var(--accent-soft);
}


/* =========================================================
   NETWORK — GITHUB STRUCTURE
========================================================= */

.repo-tree {
    margin-top: 30px;

    padding: 25px;

    background: var(--terminal);

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

    border-radius: 8px;

    color: #d4d4d4;

    font-family:
        "SFMono-Regular",
        "Roboto Mono",
        Consolas,
        monospace;

    font-size: 12px;

    line-height: 1.8;

    overflow-x: auto;
}

.repo-tree .folder {
    color: #60a5fa;
}

.repo-tree .file {
    color: #d4d4d4;
}

.repo-tree .comment {
    color: #737373;
}


/* =========================================================
   NETWORK — PITCH ENTRETIEN
========================================================= */

.pitch {
    margin-top: 25px;

    padding: 20px 25px;

    background: var(--surface);

    border-left: 3px solid var(--accent);

    color: var(--text);

    font-size: 16px;
}

.network-pitch {
    position: relative;

    margin-top: 30px;

    padding: 30px;

    background: var(--terminal);

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

    border-radius: 10px;

    color: #d4d4d4;

    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.12);
}

.network-pitch-label {
    display: block;

    margin-bottom: 15px;

    color: var(--accent);

    font-family:
        "SFMono-Regular",
        "Roboto Mono",
        Consolas,
        monospace;

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.network-pitch p {
    margin: 0;

    color: #d4d4d4;

    font-family:
        "SFMono-Regular",
        "Roboto Mono",
        Consolas,
        monospace;

    font-size: 13px;

    line-height: 1.8;
}


/* =========================================================
   NETWORK — SCREENSHOTS
========================================================= */

.screenshot-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;

    margin-top: 30px;
}

.screenshot-card {
    overflow: hidden;

    background: var(--surface);

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

    border-radius: 8px;
}

.screenshot-card img {
    display: block;

    width: 100%;

    aspect-ratio: 16 / 10;

    object-fit: cover;

    background: #ebe7e0;
}

.screenshot-card figcaption {
    padding: 12px 15px;

    color: var(--muted);

    font-size: 11px;
}


/* =========================================================
   BACK PROJECTS
========================================================= */

.back-projects {
    padding: 70px 0;
}

.back-projects a {
    font-size: 14px;

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

    transition: opacity 0.2s ease;
}

.back-projects a:hover {
    opacity: 0.6;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    width: 100%;
    max-width: 900px;

    margin: 0 auto;

    padding: 40px 30px 60px;

    display: flex;
    justify-content: space-between;

    color: var(--muted);

    font-size: 13px;
}

footer a {
    border-bottom: 1px solid var(--muted);

    transition: opacity 0.2s ease;
}

footer a:hover {
    opacity: 0.6;
}


/* =========================================================
   MOBILE — 750px
========================================================= */

@media (max-width: 750px) {

    .experience-grid {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .certification-layout {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .experience-domain {
        white-space: normal;
    }

    .network-overview {
        grid-template-columns: 1fr;
    }

    .network-layers {
        grid-template-columns: 1fr;
    }

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

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

    .network-feature-grid {
        grid-template-columns: 1fr;
    }

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


/* =========================================================
   MOBILE — 650px
========================================================= */

@media (max-width: 650px) {

    /* =====================================================
       GLOBAL
    ===================================================== */

    main {
        padding: 0 20px;
    }


    /* =====================================================
       NAVBAR
    ===================================================== */

    .navbar {
        padding: 20px;
    }

    .navbar nav {
        gap: 15px;
    }

    .navbar nav a {
        font-size: 12px;
    }

    .logo-mark {
        gap: 7px;
    }

    .logo-name {
        font-size: 13px;

        letter-spacing: 1px;
    }

    .logo-icon {
        width: 34px;
        height: 34px;
    }

    .rubiks-cube {
        width: 26px;
        height: 26px;
    }


    /* =====================================================
       HERO
    ===================================================== */

    .hero {
        padding: 90px 10px 70px;
    }

    .hero-avatar {
        width: 72px;
        height: 72px;

        margin-bottom: 22px;
    }

    .hero-cube {
        width: 38px;
        height: 38px;

        gap: 2px;
        padding: 3px;
    }

    .hero h1 {
        font-size: 42px;

        letter-spacing: -1.5px;
    }

    .intro {
        font-size: 16px;
    }


    /* =====================================================
       CONTACT
    ===================================================== */

    .contact-card {
        width: 240px;
    }


    /* =====================================================
       SECTIONS
    ===================================================== */

    .section {
        padding: 70px 0;
    }

    .section-header {
        grid-template-columns: 45px minmax(0, 1fr);

        margin-bottom: 35px;
    }

    .section h2 {
        font-size: 30px;
    }


    /* =====================================================
       PROJECTS
    ===================================================== */

    .project {
        grid-template-columns: 40px minmax(0, 1fr);

        gap: 15px;

        padding: 25px 0;
    }

    .project-link {
        display: none;
    }

    .project h3 {
        font-size: 19px;
    }

    .project-content p {
        font-size: 15px;
    }


    /* =====================================================
       ABOUT
    ===================================================== */

    .about-page {
        padding: 80px 0 60px;
    }

    .about-page .section-header {
        margin-bottom: 45px;
    }

    .about-intro .about-lead {
        font-size: 19px;
    }

    .about-intro p {
        font-size: 16px;
    }

    .about-goal {
        margin-top: 35px;

        padding: 22px 20px;
    }

    .about-goal p {
        font-size: 15px;
    }


    /* =====================================================
       SKILLS
    ===================================================== */

    .about-skills {
        padding-top: 70px;
    }

    .skill-card {
        grid-template-columns: 40px minmax(0, 1fr);

        gap: 15px;
    }

    .skill-card h3 {
        font-size: 20px;
    }


    /* =====================================================
       EXPERIENCE
    ===================================================== */

    .experience-card {
        padding: 22px;
    }

    .experience-top {
        flex-direction: column;

        gap: 20px;
    }

    .experience-top h3 {
        font-size: 22px;
    }

    .experience-domain {
        align-self: flex-start;
    }

    .experience-divider {
        margin: 22px 0;
    }


    /* =====================================================
       CERTIFICATIONS & LANGUES
    ===================================================== */

    .certification-card {
        grid-template-columns: 35px minmax(0, 1fr);

        gap: 12px;
    }

    .language-item {
        align-items: flex-start;
    }

    .language-item b {
        text-align: right;
    }


    /* =====================================================
       PROFILE
    ===================================================== */

    .real-me {
        padding-top: 70px;
    }

    .profile-terminal-body {
        padding: 22px 18px;

        font-size: 11px;
    }

    .profile-terminal-bar {
        padding: 0 12px;
    }

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

    .profile-cell {
        padding: 15px;
    }

    .profile-cell strong {
        font-size: 11px;
    }

    .progress-row {
        flex-wrap: wrap;
    }

    .progress-bar {
        order: 3;

        flex-basis: 100%;

        width: 100%;

        min-width: 0;
    }


    /* =====================================================
       CONCLUSION
    ===================================================== */

    .about-conclusion {
        margin-top: 45px;
    }

    .about-conclusion p {
        font-size: 16px;
    }


    /* =====================================================
       PROJECT PAGE
    ===================================================== */

    .project-hero {
        padding: 80px 0 60px;
    }

    .project-hero h1 {
        font-size: 42px;

        letter-spacing: -1.5px;
    }

    .project-intro {
        font-size: 17px;
    }

    .project-section {
        display: block;

        padding: 65px 0;
    }

    .project-section .section-number {
        margin-bottom: 15px;
    }

    .project-section h2 {
        margin-bottom: 30px;

        font-size: 28px;
    }

    .project-text p {
        font-size: 16px;
    }

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

    .project-image {
        padding: 45px 0;
    }


    /* =====================================================
       NETWORK PROJECT
    ===================================================== */

    .network-hero-meta {
        flex-direction: column;

        gap: 12px;
    }

    .network-overview {
        grid-template-columns: 1fr;
    }

    .network-stat {
        padding: 20px;
    }

    .network-layers {
        grid-template-columns: 1fr;
    }

    .network-feature-grid {
        grid-template-columns: 1fr;
    }

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

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

    .policy-row {
        grid-template-columns: 1fr;

        gap: 5px;
    }

    .policy-result {
        text-align: left;
    }

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

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

    .network-architecture {
        padding: 18px;
    }

    .network-architecture pre {
        font-size: 10px;
    }

    .repo-tree {
        padding: 18px;

        font-size: 10px;
    }

    .network-pitch {
        padding: 22px;
    }

    .network-pitch p {
        font-size: 11px;
    }


    /* =====================================================
       TABLES
    ===================================================== */

    .table-wrap {
        width: 100%;

        overflow-x: auto;
    }

    .data-table {
        min-width: 560px;

        font-size: 13px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
    }


    /* =====================================================
       FOOTER
    ===================================================== */

    footer {
        padding: 40px 20px 50px;

        flex-direction: column;

        gap: 10px;
    }
}


/* =========================================================
   VERY SMALL PHONES — 400px
========================================================= */

@media (max-width: 400px) {

    .navbar nav {
        gap: 10px;
    }

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

    .logo-name {
        font-size: 12px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .section h2 {
        font-size: 26px;
    }

    .profile-terminal-body {
        padding: 18px 14px;
    }

    .profile-terminal-online {
        display: none;
    }

    .project-hero h1 {
        font-size: 36px;
    }

    .network-stat strong {
        font-size: 21px;
    }

    .network-feature {
        padding: 20px;
    }

    .security-item {
        padding: 16px;
    }

    .code-block {
        padding: 16px;

        font-size: 11px;
    }
}