/*
POLICES : fichiers heberges avec le site (aucun appel a un service externe).
Inter = texte courant et titres, tres lisible a l'ecran.
JetBrains Mono = accents "terminal" (etiquettes, code, commandes).
font-display: swap affiche le texte tout de suite avec une police systeme,
puis la remplace quand le fichier est charge.
*/
@font-face {
    font-family: "Inter";
    src: url("assets/fonts/Inter-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("assets/fonts/Inter-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("assets/fonts/Inter-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "JetBrains Mono";
    src: url("assets/fonts/JetBrainsMono-Variable.woff2") format("woff2");
    font-weight: 100 800;
    font-style: normal;
    font-display: swap;
}
:root {
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
:root {
    color-scheme: dark;
    --theme-gradient: rgba(21,32,57,.96);
    --theme-color-0: rgb(23.47, 42.9, 56.3);
    --theme-color-1: rgba(11, 18, 34, 0.95);
    --theme-color-2: rgba(16, 24, 41, 0.95);
    --theme-color-3: rgba(17, 26, 45, 0.93);
    --theme-color-4: rgba(17, 26, 45, 0.6);
    --theme-color-5: rgb(201, 194, 239);
    --theme-color-6: rgb(208, 219, 237);
    --theme-color-7: rgb(217, 229, 241);
    --theme-color-8: rgb(211, 194, 255);
    --theme-color-9: rgb(255, 255, 255);
    --theme-color-10: rgb(50, 245, 162);
    --theme-color-11: rgb(24, 33, 54);
    --theme-color-12: rgb(17, 26, 45);
    --theme-color-13: rgb(18, 51, 36);
    --theme-color-14: #080d1bd9;
    --theme-color-15: #edf3ff;
    --theme-color-16: #a6b4cc;
    --theme-color-17: #63ead3;
    --theme-color-18: #0b1222;
    --theme-color-19: #080d1b;
    --theme-color-20: #35405d;
    --theme-color-21: #26334d;
    --theme-color-22: #b0a0ff;
    --theme-color-23: #97a8be;
    --theme-color-24: #b3c0d2;
    --theme-color-25: #c2cee0;
}
/* LIGHT MODE PALETTE
   One set of tokens (--lm-*) holds every light-mode colour; the older numbered
   --theme-color-* names point at them, so all pages follow the same palette.
   Neutrals are a cool grey scale rather than pure white everywhere: the page is a
   soft grey, and cards are an off-white (never pure white) with a hairline border.
   Contrast on the cards: text 16:1, text-2 7:1, text-3 5.5:1, accent 5.6:1 (5:1 on the page). */
:root[data-theme="light"] {
    color-scheme: light;
    --lm-canvas: #e9ecf0;
    --lm-surface: #f6f7f9;
    --lm-surface-2: #eff1f4;
    --lm-surface-3: #e7eaef;
    --lm-border: #d9dde4;
    --lm-border-strong: #c3c9d3;
    --lm-text: #101828;
    --lm-text-2: #475467;
    --lm-text-3: #5b6475;
    --lm-accent: #0a7062;
    --lm-accent-hover: #085d52;
    --lm-accent-soft: #e0efeb;
    --lm-accent-line: #a9d8cf;
    --lm-accent-ring: rgba(11, 122, 108, 0.2);
    --lm-violet: #6941c6;
    --lm-violet-soft: #f4f0ff;
    --lm-success: #067647;
    --lm-danger: #b42318;
    --lm-shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
    --lm-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 2px 8px -2px rgba(16, 24, 40, 0.06);
    --lm-shadow-md: 0 1px 3px rgba(16, 24, 40, 0.05), 0 12px 28px -10px rgba(16, 24, 40, 0.14);
    --lm-shadow-lg: 0 2px 6px rgba(16, 24, 40, 0.05), 0 28px 56px -20px rgba(16, 24, 40, 0.22);

    --theme-gradient: color-mix(in srgb, var(--lm-surface) 94%, transparent);
    --theme-color-0: var(--lm-accent-soft);
    --theme-color-1: var(--lm-surface);
    --theme-color-2: var(--lm-surface);
    --theme-color-3: var(--lm-surface);
    --theme-color-4: var(--lm-surface-3);
    --theme-color-5: var(--lm-violet);
    --theme-color-6: var(--lm-text-2);
    --theme-color-7: var(--lm-text-2);
    --theme-color-8: var(--lm-violet);
    --theme-color-9: var(--lm-text);
    --theme-color-10: var(--lm-success);
    --theme-color-11: var(--lm-surface-3);
    --theme-color-12: var(--lm-surface-2);
    --theme-color-13: #ecfdf3;
    --theme-color-14: color-mix(in srgb, var(--lm-surface) 88%, transparent);
    --theme-color-15: var(--lm-text);
    --theme-color-16: var(--lm-text-2);
    --theme-color-17: var(--lm-accent);
    --theme-color-18: var(--lm-surface);
    --theme-color-19: var(--lm-canvas);
    --theme-color-20: var(--lm-border-strong);
    --theme-color-21: var(--lm-border);
    --theme-color-22: var(--lm-violet);
    --theme-color-23: var(--lm-text-3);
    --theme-color-24: var(--lm-text-2);
    --theme-color-25: #344054;
}
/*
CSS DU PORTFOLIO - Guide de lecture
.nom cible une classe HTML ; #nom cible un identifiant.
:hover applique un style au survol ; ::before et ::after ajoutent un decor.
Flex aligne les elements ; Grid les place dans des colonnes.
margin = espace exterieur ; padding = espace interieur.
rgba() ajoute de la transparence ; gradient() cree un degrade.
clamp(minimum, taille adaptable, maximum) garde le texte responsive.
@media applique des regles selon l'ecran ou les preferences du visiteur.
L'ordre compte : une regle plus bas peut remplacer une regle precedente.
Les effets visuels sont conserves pour garder le meme rendu.
*/

/* 1. BASE : taille des elements, police et couleurs du site */
* {
    box-sizing: border-box;
}

body {
    margin: 0px;
    color: var(--theme-color-15);
    font-weight: normal;
    line-height: 1.8;
    font-family: var(--font-sans);
}

#matrix {
    width: 100%;
    height: 100%;
}

header, main {
    position: relative;
    z-index: 1;
}

header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 28px 30px;
}

/* 2. PROFIL : photo, nom et description */
.profile {
    position: fixed;/* Le bloc reste collé à l'écran, même lorsque l'utilisateur fait défiler la page (scroll).*/
    left: 150px;
    top: 50%; /*Le bloc est centré parfaitement verticalement au milieu de la fenêtre d'affichage*/
    transform: translateY(-50%); /* déplace un élément sur l'axe vertical (axe Y) */
    display: flex; /*element sont alignés verticalement de haut en bas*/
    flex-direction: column;
    align-items: center;/*enfants*/
    gap: 18px;
    width: 230px;
    text-align: center;
}

.personal-photo {
    width: 250px;
    height: 250px;
    border: 2.5px solid var(--theme-color-20);
    border-radius: 50%; /*kay7wel conteur l ceercle */
    background: radial-gradient(circle, var(--theme-color-11), var(--theme-color-18));
}

.photo-orbit {
    flex-shrink: 0; /*empêche un élément flex de réduire sa taille lorsque l'espace disponible dans le conteneur parent devient trop restreint.*/
    margin: 16px;
    isolation: isolate; /*isole le contexte de rendu de l'élément, ce qui signifie que les effets visuels appliqués à cet élément n'affecteront pas les éléments situés en dehors de celui-ci.*/
}

.photo-orbit .personal-photo {
    display: block; /* remove comportement inline dyal image,*/
    object-fit: cover;
}

.profile p {
    margin: 0px;
}

.profile-name {
    color: var(--theme-color-15);
    font-size: 33px;
    font-weight: bold;
}

.profile-description {
    color: var(--theme-color-16);
    font-size: 20px;
}

main {
    max-width: 1250px;
    margin: 45px 35px 45px 500px;
    padding-top: 0px;
    padding-right: 15px;
    padding-left: 15px;
}

/* 3. ACCUEIL : texte et terminal cote a cote */
.home-layout {
    display: grid;
    grid-template-columns: minmax(0px, 1.2fr) minmax(0px, 1fr); /* colone 1 prend 1.2 part de l'espace disponible :  54.5 % de la largeur , colone 2 prend 1fr : 45.5 % de la largeur */
}

.home-text {
    min-width: 0px; /* kaykhli l element ysgher ta7te largeur naturelle dyal contenu  bach yn9es risk dial debordement */
}

.eyebrow {
    margin: 0px 0px 20px;
    color: var(--theme-color-17);
    font-size: 16px;
    letter-spacing: 2px;
}

.page-heading .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    max-width: 100%;
    margin: 0px 0px 24px;
    padding: 12px 20px;
    border: 1px solid rgba(99, 234, 211, 0.314);
    border-radius: 12px;
    background: linear-gradient(120deg, rgba(99, 234, 211, 0.07), rgba(99, 234, 211, 0.04)), var(--theme-color-18);
    color: var(--theme-color-17);
    font-size: clamp(18px, 2vw, 23px);
    font-weight: bold;
    line-height: 1.5;
    letter-spacing: 0.5px;
    box-shadow: rgba(0, 0, 0, 0.267) 0px 6px 24px, rgba(255, 255, 255, 0.04) 0px 1px inset;/* L'ombre externe (portée / d'arrière-plan) décalage X | décalage Y | flou ,L'ombre interne (lumière / reflet) :  Mot-clé inset  inset = ombre intérieure  */
}

.page-heading .eyebrow::after {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 20px;
    border-radius: 1px;
    background: var(--theme-color-17);
    box-shadow: rgba(99, 234, 211, 0.25) 0px 0px 10px;
}

h1 {
    margin: 0px 0px 25px; /* haut  cotes bas */
    font-size: clamp(36px, 3.8vw, 64px); /* permet de créer un texte responsive moderne sans avoir besoin d'écrire des @media queries.*/
    line-height: 1.15;
    letter-spacing: -2px;
}

h1 span {
    color: var(--theme-color-17);
}

.introduction, .page-intro {
    max-width: 720px;
    color: var(--theme-color-16);
    font-size: 18px;
}

.actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 28px 0px;
}

.button {
    display: inline-block;
    padding: 14px 18px;
    background: var(--theme-color-17);
    color: rgb(7, 32, 29);
    font: 600 16px / 1.8 var(--font-sans);
    text-decoration: none;
    border: 0px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: rgba(99, 234, 211, 0.25) 0px 6px 28px, rgba(255, 255, 255, 0.376) 0px 1px inset;
}

.button:hover {
    background: var(--theme-color-17);
    box-shadow: rgba(99, 234, 211, 0.25) 0px 5px 26px;
}

.about-link, .text-link {
    color: var(--theme-color-17);
    text-underline-offset: 5px;
    overflow-wrap: anywhere;
}

.about-link:hover, .text-link:hover {
    color: var(--theme-color-15);
}

.funny-text {
    color: var(--theme-color-16);
    font-size: 16px;
}

/* 4. TERMINAL : fenetre qui ressemble a une console */
.terminal {
    min-width: 0px;
    overflow: hidden;
    background: var(--theme-color-1);
    border: 1px solid var(--theme-color-20);
    border-radius: 12px;
    box-shadow: rgba(99, 234, 211, 0.08) 0px 0px 30px;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    background: var(--theme-color-11);
    color: var(--theme-color-16);
    font-size: 16px;
    border-bottom: 1px solid var(--theme-color-21);
}

.terminal-dots {
    display: flex;
    gap: 7px;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--theme-color-17);
}

.red {
    background: rgb(255, 117, 135);
}

.yellow {
    background: rgb(248, 199, 115);
}

.terminal-content {
    padding: 22px 18px;
    font-size: 16px;
}

.terminal-content p {
    margin: 0px 0px 16px;
}

.terminal pre {
    margin: 0px 0px 20px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.terminal code {
    font-family: inherit;
}

.prompt {
    color: var(--theme-color-17);
}

.variable {
    color: var(--theme-color-17);
}

.string {
    color: var(--theme-color-17);
}

.cursor {
    color: var(--theme-color-17);
    animation: blink 1s step-end infinite;
}

/* 5. TECHNOLOGIES : listes et etiquettes */
.technologies {
    max-width: 100%;
}

.technology-list, .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0px;
    padding: 0px;
    list-style: none;
}

.technology-list li, .tag-list li {
    padding: 9px 16px;
    background: var(--theme-color-12);
    border: 1px solid var(--theme-color-20);
    border-radius: 8px;
}

.technology-list li:hover {
    transform: translateY(-6px);
    background: var(--theme-color-11);
}

a:focus-visible {
    outline: var(--theme-color-17) solid 3px;
    outline-offset: 4px;
}

/* 6. PAGES INTERNES : cartes, titres et listes */
.inner-page {
    animation: page-enter 0.65s ease-out both;
}

main.about-page, main.skills-page, main.projects-page {
    width: 100%;
    margin: 45px auto;
    text-align: center;
}

.about-page .page-intro, .skills-page .page-intro, .projects-page .page-intro {
    margin-left: auto;
    margin-right: auto;
}

.about-page .terminal {
    text-align: left;
}

.about-page .content-grid, .about-page .experience-grid {
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.about-page .content-grid > .panel > p:not(.panel-label) {
    font-size: 18px;
    line-height: 1.9;
}

.skills-page .goal-list {
    padding: 0px;
    list-style-position: inside;
}

.page-heading {
    margin-bottom: 32px;
}

.page-heading h1 {
    font-size: clamp(34px, 3.5vw, 58px);
}

.content-grid, .skills-grid, .experience-grid {
    display: grid;
    grid-template-columns: minmax(0px, 1fr) minmax(0px, 1fr);
    gap: 24px;
    align-items: start;
}

.panel {
    min-width: 0px;
    background: var(--theme-color-2);
    border: 1px solid var(--theme-color-20);
    border-radius: 12px;
    box-shadow: rgba(99, 234, 211, 0.05) 0px 0px 30px;
}

.skills-grid {
    align-items: stretch;
}

.skills-grid .skill-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.skills-grid .skill-card > p:not(.panel-label) {
    font-size: 18px;
    line-height: 1.9;
}

.skill-card .text-link {
    margin-top: auto;
}

.panel-label {
    margin: 0px 0px 12px;
    color: var(--theme-color-17);
    font-size: 16px;
    letter-spacing: 2px;
}

h2 {
    margin: 0px 0px 16px;
    color: var(--theme-color-15);
    font-size: 25px;
    line-height: 1.35;
}

h3 {
    margin: 0px 0px 8px;
    color: var(--theme-color-15);
    font-size: 18px;
}

.panel p, .panel dd {
    color: var(--theme-color-16);
}

.panel .code-note {
    color: var(--theme-color-17);
    font-size: 16px;
}

.section-space {
    margin-top: 26px;
}

.timeline {
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    padding: 0px;
    list-style: none;
}

.timeline li {
    position: relative;
    margin-left: 6px;
    padding-top: 0px;
    padding-right: 0px;
    border-left: 1px solid var(--theme-color-20);
}

.timeline li:last-child {
    padding-bottom: 0px;
}

.timeline li::before {
    content: "";
    position: absolute;
    top: 7px;
    left: -6px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--theme-color-17);
    box-shadow: rgba(99, 234, 211, 0.45) 0px 0px 12px;
}

.timeline-date {
    display: block;
    color: var(--theme-color-17);
    font-size: 16px;
    margin-bottom: 8px;
}

.small-card {
    background: var(--theme-color-18);
    border: 1px solid var(--theme-color-21);
    border-radius: 10px;
}

.tag-list {
    margin: 20px 0px;
    gap: 8px;
}

.tag-list li {
    padding: 6px 10px;
    color: var(--theme-color-5);
    font-size: 16px;
}

.skill-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-logo {
    flex-shrink: 0;
    object-fit: contain;
}

.skill-logos {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.skill-card:hover, .project-card:hover {
    transform: translateY(-5px);
}

.project-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.status-badge {
    padding: 8px 12px;
    background: var(--theme-color-12);
    color: var(--theme-color-17);
    font-size: 16px;
    border: 1px solid var(--theme-color-20);
    border-radius: 6px;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
}

.page-footer {
    margin-top: 40px;
    padding: 20px 0px;
    color: var(--theme-color-16);
    font-size: 16px;
    text-align: center;
    border-top: 1px solid var(--theme-color-21);
}

.muted {
    font-size: 16px;
    color: var(--theme-color-16);
}

nav, .terminal, .technologies, .panel, .small-card, .technology-list li, .tag-list li {
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s, background-color 0.25s;
}

nav:hover, .terminal:hover, .technologies:hover, .panel:hover, .small-card:hover, .technology-list li:hover, .tag-list li:hover {
    border-color: var(--theme-color-17);
    box-shadow: rgba(99, 234, 211, 0.5) 0px 0px 10px, rgba(99, 234, 211, 0.25) 0px 0px 28px, rgba(99, 234, 211, 0.1) 0px 0px 8px inset;
}

.project-card, .skill-card {
    border-top: 3px solid var(--theme-color-17);
    box-shadow: rgba(0, 0, 0, 0.267) 0px 10px 30px, rgba(255, 255, 255, 0.03) 0px 1px inset;
}

.project-card .panel-label, .skill-card .panel-label {
    color: var(--theme-color-17);
}

.project-card:hover, .skill-card:hover {
    border-color: var(--theme-color-17);
    box-shadow: 0 16px 38px #0007,
    0 0 28px rgba(99, 234, 211, 0.22);
}

.projects-page .project-card .tag-list li {
    font-size: 16px;
    padding: 8px 12px;
}

.projects-page .project-card > p {
    font-size: 18px;
    line-height: 1.9;
}

.project-card .status-badge {
    color: var(--theme-color-17);
    border-color: var(--theme-color-17);
    background: var(--theme-color-18);
}

.tag-list li, .technology-list li {
    color: var(--theme-color-17);
    background: rgba(99, 234, 211, 0.063);
    border-color: rgba(99, 234, 211, 0.22);
}

.tag-list li:nth-child(4n+2), .technology-list li:nth-child(4n+2) {
    color: var(--theme-color-17);
    background: rgba(99, 234, 211, 0.063);
    border-color: rgba(99, 234, 211, 0.22);
}

.tag-list li:nth-child(4n+3), .technology-list li:nth-child(4n+3) {
    color: var(--theme-color-22);
    background: rgba(176, 160, 255, 0.063);
    border-color: rgba(176, 160, 255, 0.22);
}

.tag-list li:nth-child(4n), .technology-list li:nth-child(4n) {
    color: var(--theme-color-17);
    background: rgba(99, 234, 211, 0.063);
    border-color: rgba(99, 234, 211, 0.22);
}

.skill-card .tag-list li {
    font-size: 16px;
    padding: 8px 12px;
    color: var(--theme-color-17);
    background: var(--theme-color-0);
    border-color: rgba(99, 234, 211, 0.28);
}

.skill-title, .project-card h2, .terminal code {
    color: var(--theme-color-15);
}

.eyebrow, .timeline-date {
    color: var(--theme-color-22);
}

.text-link, .about-link {
    color: var(--theme-color-17);
}

.goal-list li::marker {
    color: var(--theme-color-17);
}

/* 7. ANIMATIONS : etapes du clignotement et de l'apparition */
@keyframes blink {  /* animation de clignotement pour le curseur */
    50% {
        opacity: 0;
    }
}

@keyframes page-enter { /* animation d'apparition de la page */
    0% {
        opacity: 0;
        transform: translateY(18px);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

/* 8. RESPONSIVE : adaptations selon la largeur de l'ecran */
@media (max-width: 1200px) {
    .profile {
        left: 15px;
        width: 190px;
    }

    .personal-photo {
        width: 155px;
        height: 155px;
    }

    .profile-name {
        font-size: 23px;
    }

    .profile-description {
        font-size: 16px;
    }

    main {
        margin-left: 225px;
        margin-right: 20px;
    }

    .home-layout {
        gap: 22px;
    }

    .home-text h1 {
        font-size: 42px;
    }

    .introduction {
        font-size: 16px;
    }

    .terminal-content {
        font-size: 16px;
    }

    .content-grid, .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    header {
        flex-direction: column;
        gap: 25px;
        padding: 25px 20px;
    }

    .profile {
        position: static;
        transform: none;
        width: 100%;
        gap: 12px;
    }

    .personal-photo {
        width: 130px;
        height: 130px;
    }

    .profile-name {
        font-size: 24px;
    }

    .profile-description {
        font-size: 16px;
    }

    main {
        margin: 20px auto 35px;
        padding: 0px 20px;
    }

    .home-layout {
        grid-template-columns: 1fr;
    }

    .home-text h1 {
        font-size: clamp(36px, 7vw, 60px);
    }

    .terminal-content {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .eyebrow {
        font-size: 16px;
        letter-spacing: 1px;
    }

    h1, .home-text h1, .page-heading h1 {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .introduction {
        font-size: 16px;
    }

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

    .panel {
        padding: 18px;
    }

    .technology-list li {
        padding: 8px 12px;
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    header {
        padding-top: 80px;
        z-index: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation: none !important;
        transition: none !important;
    }

    .skill-card:hover, .project-card:hover, .technology-list li:hover {
        transform: none;
    }
}

/* 9. COULEURS COMMUNES : finitions des titres et des cartes */
.page-heading h1 span, .home-text h1 span {
    background: none;
    color: var(--theme-color-17);
}

.eyebrow, .panel-label {
    color: var(--theme-color-17);
}

.timeline-date, .variable {
    color: var(--theme-color-22);
}

.string, .prompt, .cursor {
    color: var(--theme-color-17);
}

.button, .button:hover {
    background: var(--theme-color-17);
    color: rgb(7, 32, 29);
}

.panel, .project-card, .skill-card {
    background: linear-gradient(135deg, var(--theme-gradient), var(--theme-gradient));
}

.technology-list li, .technology-list li:nth-child(n) {
    background: var(--theme-color-12);
    border-color: var(--theme-color-21);
    color: var(--theme-color-6);
}

.tag-list li, .tag-list li:nth-child(n), .skill-card .tag-list li {
    background: rgba(99, 234, 211, 0.027);
    border-color: rgba(99, 234, 211, 0.157);
    color: var(--theme-color-5);
}

/* 10. NAVIGATION : liens du menu */
nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    border-width: 2px;
    border-style: solid;
    border-image: none;
    border-radius: 20px;
}

nav a {
    padding: 10px 16px;
    font-size: 20px;
    text-decoration: none;
    border-radius: 10px;
    transition: 0.2s;
}

nav a:hover, nav a[aria-current="page"] {
    background: var(--theme-color-13);
    color: var(--theme-color-10);
}

nav {
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s, background-color 0.25s;

    background: linear-gradient(120deg, var(--theme-gradient), var(--theme-gradient) 55%, var(--theme-gradient));
    border-color: rgba(71, 229, 255, 0.25);
    box-shadow: #0006 0px 10px 32px, rgba(255, 255, 255, 0.07) 0px 1px inset;
}

nav:hover {
    border-color: rgba(71, 229, 255, 0.5);
    box-shadow: #0006 0px 10px 32px, rgba(71, 229, 255, 0.094) 0px 0px 24px;
}

nav a {
    color: var(--theme-color-7);
}

nav a:hover {
    background: rgba(182, 154, 255, 0.094);
    color: var(--theme-color-8);
}

nav a[aria-current="page"] {
    background: linear-gradient(120deg, var(--theme-color-10), rgb(71, 229, 255));
    color: rgb(4, 27, 25);
    box-shadow: rgba(50, 245, 162, 0.22) 0px 3px 18px;
}

@media (max-width: 480px) {
    nav {
        width: 100%;
        gap: 3px;
        padding: 7px;
    }

    nav a {
        padding: 8px;
        font-size: 16px;
    }
}

body {
    isolation: isolate;
    background: radial-gradient(at 85% 15%, rgba(40, 33, 74, 0.467), transparent 45%), radial-gradient(at 0px 55%, rgba(18, 61, 67, 0.333), transparent 40%), var(--theme-color-19);
}

body::before {
    content: none;
}

#matrix {
    position: fixed;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    pointer-events: none;
    z-index: -1;
}

@media (prefers-reduced-motion: reduce) {
    #matrix {
        display: block;
    }
}

#matrix {
    opacity: 0.48;

    filter: blur(1.5px);
}

/* 11. ACCUEIL : bandeau, espacements et projets presentes */
.system-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 0px;
    padding-right: 0px;
    padding-left: 0px;
    border-bottom: 1px solid var(--theme-color-21);
    color: var(--theme-color-16);
    font-size: 16px;
    font-weight: bold;
    line-height: 1.6;
    letter-spacing: 1px;
}

.system-strip span:first-child {
    color: var(--theme-color-17);
}

@media (max-width: 600px) {
    .system-strip {
        gap: 8px 16px;
        margin-bottom: 24px;
    }
}

.home-layout {
    border-bottom: 1px solid var(--theme-color-21);
}

.technologies::before {
    content: none;
}

.technologies {
    width: 100%;
    margin-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    background: transparent;
    border: 0px;
    border-radius: 0px;
    box-shadow: none;
}

.technologies:hover {
    border-color: transparent;
    box-shadow: none;
}

.system-strip {
    margin-bottom: 36px;
    padding-bottom: 18px;
}

.home-layout {
    align-items: center;
    gap: 40px;
    padding-bottom: 36px;
}

.home-text .eyebrow {
    margin: 0px 0px 22px;
    line-height: 1.6;
}

.home-text h1 {
    margin-bottom: 24px;
    line-height: 1.15;
}

.home-text .introduction {
    margin: 0px;
    line-height: 1.8;
}

.home-text .actions {
    margin: 28px 0px 24px;
    gap: 18px 24px;
}

.home-text .funny-text {
    margin: 0px;
    line-height: 1.7;
}

.home-layout .terminal {
    align-self: center;
}

.home-layout .terminal-header {
    padding: 16px 20px;
    gap: 20px;
}

.home-layout .terminal-content {
    padding: 24px;
    line-height: 1.8;
}

.home-layout .terminal-content p {
    margin: 0px 0px 18px;
}

.home-layout .terminal-content p:last-child {
    margin-bottom: 0px;
}

.home-layout .terminal pre {
    margin: 0px 0px 22px;
}

.technologies {
    padding-top: 26px;
}

.technology-list {
    gap: 12px;
}

@media (min-width: 901px) and (max-width: 1400px) {
    .home-layout {
        grid-template-columns: minmax(0px, 1fr);
        gap: 30px;
    }

    .home-layout .terminal {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .home-layout {
        gap: 30px;
        padding-bottom: 30px;
    }

    .system-strip {
        margin-bottom: 28px;
    }
}

@media (max-width: 600px) {
    .home-layout {
        gap: 26px;
        padding-bottom: 26px;
    }

    .home-layout .terminal-content {
        padding: 20px;
    }

    .home-text .actions {
        gap: 16px 22px;
    }

    .technology-list {
        gap: 10px;
    }
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.section-heading .panel-label {
    margin: 0px 0px 10px;
    color: var(--theme-color-17);
    font-size: 16px;
}

.section-heading h2 {
    margin: 0px;
    font-size: 26px;
    line-height: 1.35;
}

.featured-work a {
    text-decoration: none;
}

.section-heading > .text-link {
    flex-shrink: 0;
    color: var(--theme-color-17);
    font-size: 16px;
}

.work-preview {
    display: grid;
    grid-template-columns: minmax(0px, 1fr) minmax(0px, 1fr);
}

.work-preview > a {
    display: flex;
    flex-direction: column;
    min-width: 0px;
    border: 1px solid var(--theme-color-21);
    border-radius: 6px;
    background: var(--theme-color-3);
    color: var(--theme-color-15);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.work-preview > a:hover {
    border-color: var(--theme-color-17);
    box-shadow: rgba(0, 0, 0, 0.267) 0px 10px 30px;
}

.work-preview .work-index {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1.5px;
    color: var(--theme-color-17);
    line-height: 1.7;
}

.work-preview h3 {
    font-size: 23px;
    line-height: 1.4;
    color: var(--theme-color-15);
}

.work-preview p {
    margin: 0px;
    color: var(--theme-color-16);
    font-size: 16px;
    line-height: 1.8;
}

.work-preview .tag-list li {
    padding: 5px 10px;
    font-size: 16px;
    line-height: 1.5;
    border: 1px solid rgba(99, 234, 211, 0.157);
    border-radius: 3px;
    background: rgba(99, 234, 211, 0.027);
    color: var(--theme-color-5);
}

.work-preview .text-link {
    margin-top: auto;
    color: var(--theme-color-17);
    font-size: 16px;
}

.featured-work + .page-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 48px;
    padding: 24px 0px;
    border-top: 1px solid var(--theme-color-21);
    text-align: left;
    color: var(--theme-color-16);
    font-size: 16px;
}

.featured-work + .page-footer a {
    color: var(--theme-color-17);
    text-decoration: none;
}

@media (max-width: 1100px) {
    .work-preview {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .featured-work {
        margin-top: 32px;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .work-preview > a {
        padding: 22px;
    }

    .featured-work + .page-footer {
        margin-top: 32px;
    }
}

/* 12. LISIBILITE : tailles du texte et espacements communs */
body {
    font-size: 17px;
}

.system-strip, .eyebrow, .panel-label, .work-preview .work-index, .section-heading .panel-label, .timeline-date, .status-badge {
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0.6px;
}

.system-strip {
    gap: 12px 24px;
}

.system-strip span {
    overflow-wrap: anywhere;
}

.introduction, .page-intro, .panel p, .panel dd, .work-preview p, .skills-grid .skill-card > p:not(.panel-label), .projects-page .project-card > p {
    font-size: 18px;
    line-height: 1.8;
}

.about-link, .text-link, .work-preview .text-link, .section-heading > .text-link, .featured-work + .page-footer a {
    font-size: 17px;
    line-height: 1.65;
}

.technology-list li, .tag-list li, .work-preview .tag-list li, .skill-card .tag-list li, .projects-page .project-card .tag-list li {
    font-size: 16px;
    line-height: 1.6;
}

.terminal-header, .terminal-content, .home-layout .terminal-content, .funny-text, .code-note, .panel .code-note, .muted, .page-footer, .featured-work + .page-footer, .contact-link small {
    font-size: 16px;
    line-height: 1.75;
}

.terminal-content, .terminal code {
    overflow-wrap: anywhere;
}

.work-preview .tag-list {
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 600px) {
    .system-strip {
        flex-direction: column;
        align-items: flex-start;
    }

    .system-strip, .eyebrow, .panel-label, .section-heading .panel-label, .work-preview .work-index, .timeline-date, .status-badge {
        font-size: 16px;
    }

    .terminal-header, .terminal-content, .home-layout .terminal-content {
        font-size: 16px;
    }

    .introduction, .page-intro, .work-preview p {
        font-size: 17px;
    }
}

.technologies h2 {
    margin: 0px 0px 20px;
    color: var(--theme-color-15);
    font-weight: bold;
    line-height: 1.5;
}

.technologies h2 > span {
    color: var(--theme-color-17);
}

.technologies h2 {
    font-size: 24px;
}

main {
    padding-bottom: 32px;
}

main > .section-space {
    margin-top: 36px;
}

.panel {
    padding: clamp(22px, 3vw, 34px);
}

.panel > h2, .small-card h3 {
    margin-bottom: 18px;
    line-height: 1.45;
}

.panel > p {
    margin: 0px 0px 18px;
}

.panel > p:last-child {
    margin-bottom: 0px;
}

.panel .panel-label {
    margin-bottom: 16px;
}

.panel > .tag-list {
    margin: 22px 0px;
    gap: 12px;
}

.panel > .text-link {
    display: inline-block;
    margin-top: 12px;
}

.experience-grid {
    gap: 24px;
    margin-top: 24px;
}

.small-card {
    padding: 24px;
    text-align: left;
}

.small-card p {
    margin: 0px;
    line-height: 1.8;
}

.timeline {
    margin-top: 28px;
    text-align: left;
}

.timeline li {
    padding-left: 28px;
    padding-bottom: 32px;
}

.timeline h3 {
    margin: 8px 0px 12px;
    line-height: 1.5;
}

.timeline p {
    margin: 0px;
    line-height: 1.8;
}

.panel .goal-list {
    margin: 20px 0px 0px;
    padding-left: 24px;
    list-style-position: outside;
    text-align: left;
}

.goal-list li {
    padding-left: 6px;
    margin-bottom: 14px;
    line-height: 1.8;
}

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

.skills-grid {
    gap: 28px;
    grid-auto-rows: auto;
}

.skills-grid .skill-card {
    text-align: left;
}

.skill-title {
    justify-content: flex-start;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.skills-page .tag-list {
    justify-content: flex-start;
}

.projects-page .project-card {
    text-align: left;
}

.projects-page .project-card .tag-list {
    justify-content: flex-start;
    gap: 12px;
}

.project-card.section-space {
    margin-top: 32px;
}

.project-top {
    gap: 16px 24px;
    margin-bottom: 20px;
}

.project-top .panel-label {
    margin: 0px;
}

.project-card h3 {
    margin-bottom: 20px;
    line-height: 1.5;
}

.project-links {
    gap: 16px 28px;
    margin-top: 26px;
}

.featured-work {
    margin-top: 48px;
}

.work-preview {
    gap: 26px;
}

.work-preview > a {
    padding: 28px;
}

.work-preview h3 {
    margin: 18px 0px;
}

.work-preview .tag-list {
    margin: 24px 0px 28px;
}

.page-footer, .featured-work + .page-footer {
    margin-top: 48px;
    padding: 26px 0px;
    line-height: 1.8;
    gap: 20px 32px;
}

.contact-links {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--theme-color-21);
    border-radius: 8px;
    background: var(--theme-color-18);
    text-decoration: none;
}

.contact-link > span:first-child {
    min-width: 0px;
    overflow-wrap: anywhere;
}

.contact-link small {
    display: block;
    margin-top: 8px;
    color: var(--theme-color-16);
}

.contact-link > span:last-child {
    flex-shrink: 0;
    color: var(--theme-color-17);
}

@media (max-width: 700px) {
    .experience-grid, .skills-grid, .content-grid {
        grid-template-columns: minmax(0px, 1fr);
        gap: 24px;
    }

    main > .section-space {
        margin-top: 26px;
    }

    .work-preview > a, .small-card {
        padding: 22px;
    }

    .page-footer, .featured-work + .page-footer {
        margin-top: 32px;
        padding: 24px 0px;

        flex-direction: column;
        align-items: flex-start;
    }
}

.about-page .page-heading .about-command {
    display: inline-flex;
    align-items: center;
    margin-bottom: 24px;
    font-weight: 600;
    line-height: 1.5;
}

.about-command .command-prompt {
    color: var(--theme-color-17);
}

.about-page .page-heading .about-command {
    position: relative;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid rgba(99, 234, 211, 0.19);
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(99, 234, 211, 0.063), var(--theme-color-4));
    color: var(--theme-color-15);
    font-size: 22px;
    letter-spacing: 1px;
    box-shadow: rgba(255, 255, 255, 0.03) 0px 1px 0px inset, rgba(0, 0, 0, 0.133) 0px 6px 20px;
}

.about-page .page-heading .about-command::before {
    content: "";
    display: block;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--theme-color-17);
    box-shadow: rgba(99, 234, 211, 0.314) 0px 0px 10px;
}

.about-page .page-heading .about-command::after {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 25%;
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 234, 211, 0.565), transparent);
    box-shadow: none;
}

.about-page .timeline > li {
    border-left: 0px;
}

.about-page .timeline > li::before {
    left: -5px;
    z-index: 1;
}

.about-page .timeline > li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 0px;
    top: 12px;
    bottom: -12px;
    width: 1px;
    background: var(--theme-color-20);
}

/* 13. CONTACT : disposition et cartes de contact */
.contact-page .contact-main {
    width: calc(100% - 48px);
    max-width: 1160px;
    margin: 40px auto;
    padding: 0px 0px 32px;
}

.contact-page .page-heading {
    max-width: 860px;
    margin-bottom: 32px;
}

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

.contact-page .content-grid > .panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-page .panel-label {
    font-size: 16px;
    line-height: 1.6;
    margin: 0px 0px 16px;
}

.contact-page .panel h2 {
    line-height: 1.4;
}

.contact-page .contact-link strong, .contact-page .panel > .text-link {
    font-size: 18px;
    line-height: 1.6;
}

.contact-page .panel > .tag-list {
    gap: 12px;
    margin: 0px 0px 24px;
}

.contact-page .tag-list li {
    font-size: 16px;
    line-height: 1.6;
    padding: 8px 12px;
}

@media (max-width: 760px) {
    .contact-page .content-grid {
        grid-template-columns: minmax(0px, 1fr);
        gap: 24px;
    }

    .contact-page .contact-main {
        width: calc(100% - 32px);
        margin: 24px auto;
    }
}

.contact-page .contact-main {
    text-align: center;
}

.contact-page .page-heading {
    margin-left: auto;
    margin-right: auto;
}

.contact-page .page-intro {
    margin-left: auto;
    margin-right: auto;
}

.contact-page .contact-links {
    width: 100%;
}

.contact-page .panel > .tag-list {
    justify-content: center;
}

.contact-page .page-footer {
    text-align: center;
}

.contact-page .contact-link small {
    line-height: 1.75;
}

.contact-page .content-grid > aside.panel > .tag-list {
    grid-template-columns: minmax(0px, 1fr) minmax(0px, 1fr);
    width: 100%;
}

.contact-page .content-grid > aside.panel > .tag-list li {
    align-items: center;
    justify-content: center;
    overflow-wrap: anywhere;
}

.contact-page .content-grid > aside.panel > .tag-list li:last-child {
    grid-column: 1 / -1;
}

@media (max-width: 480px) {
    .contact-page .content-grid > aside.panel > .tag-list {
        grid-template-columns: 1fr;
    }
}

.contact-page .content-grid {
    gap: 24px;
    align-items: stretch;
    font-family: var(--font-sans);
}

.contact-page .content-grid > .panel {
    align-items: stretch;
    text-align: left;
    padding: 30px;
    border-width: 1px;
    border-style: solid;
    border-image: none;
    border-radius: 8px;
}

.contact-page .panel .panel-label {
    font-family: var(--font-mono);
    font-size: 16px;
    letter-spacing: 1.5px;
    margin: 0px 0px 20px;
}

.contact-page .panel h2 {
    font-size: 26px;
    margin: 0px 0px 20px;
}

.contact-page .panel p:not(.panel-label) {
    font-size: 18px;
    line-height: 1.8;
    margin: 0px 0px 24px;
    color: var(--theme-color-16);
}

.contact-page .contact-links {
    margin-top: 0px;
    gap: 16px;
}

.contact-page .contact-link {
    justify-content: space-between;
    text-align: left;
    padding: 22px;
    min-height: 96px;
    border-radius: 5px;
}

.contact-page .contact-link strong {
    font-size: 18px;
    color: var(--theme-color-9);
}

.contact-page .contact-link small {
    font-size: 17px;
    margin-top: 6px;
}

.contact-page .contact-link > span:last-child {
    font-size: 24px;
}

.contact-page .contact-photo {
    display: block;
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-width: 1px;
    border-style: solid;
    border-image: none;
    border-radius: 6px;
    margin-bottom: 22px;
}

.contact-page .content-grid > aside.panel > .tag-list {
    display: flex;
    flex-wrap: wrap;
    flex: 0 0 auto;
    place-content: flex-start;
    align-items: center;
    gap: 10px;
    margin: 0px 0px 24px;
}

.contact-page .content-grid > aside.panel > .tag-list li {
    display: block;
    min-height: 0px;
    padding: 6px 10px;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 3px;
}

.contact-page .panel > .text-link {
    align-self: flex-start;
    font-size: 17px;
    font-weight: 600;
    padding-top: 0px;
    margin-top: 0px;
    text-decoration: none;
}

@media (max-width: 760px) {
    .contact-page .content-grid > .panel {
        padding: 24px;
    }
}

.contact-page .content-grid > .panel {
    background: linear-gradient(135deg, var(--theme-gradient), var(--theme-gradient));
    border-color: var(--theme-color-20);
    color: var(--theme-color-15);
    box-shadow: rgba(99, 234, 211, 0.05) 0px 0px 30px;
}

.contact-page .panel h2, .contact-page .contact-link strong {
    color: var(--theme-color-15);
}

.contact-page .panel .panel-label, .contact-page .panel > .text-link, .contact-page .contact-link > span:last-child {
    color: var(--theme-color-17);
}

.contact-page .panel p:not(.panel-label), .contact-page .contact-link small {
    color: var(--theme-color-16);
}

.contact-page .contact-link {
    background: var(--theme-color-18);
    border-color: var(--theme-color-21);
    color: var(--theme-color-15);
}

.contact-page .contact-link:hover {
    background: var(--theme-color-12);
    border-color: var(--theme-color-17);
}

.contact-page .content-grid > aside.panel > .tag-list li {
    background: rgba(99, 234, 211, 0.027);
    border-color: rgba(99, 234, 211, 0.157);
    color: var(--theme-color-5);
}

.contact-page .contact-photo {
    border-color: var(--theme-color-20);

    filter: none;
}

.skills-page .page-heading > .eyebrow, .projects-page .page-heading > .eyebrow, .contact-page .page-heading > .eyebrow, .status-page .page-heading > .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    max-width: 100%;
    margin: 0px 0px 24px;
    padding: 12px 20px;
    border: 1px solid rgba(99, 234, 211, 0.314);
    border-radius: 12px;
    background: linear-gradient(120deg, rgba(99, 234, 211, 0.07), rgba(99, 234, 211, 0.04)), var(--theme-color-18);
    color: var(--theme-color-17);
    font-family: var(--font-mono);
    font-size: clamp(18px, 2vw, 23px);
    font-weight: bold;
    line-height: 1.5;
    letter-spacing: 0.5px;
    box-shadow: rgba(0, 0, 0, 0.267) 0px 6px 24px, rgba(255, 255, 255, 0.04) 0px 1px inset;
}

.skills-page .page-heading > .eyebrow::after, .projects-page .page-heading > .eyebrow::after, .contact-page .page-heading > .eyebrow::after, .status-page .page-heading > .eyebrow::after {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 20px;
    border-radius: 1px;
    background: var(--theme-color-17);
    box-shadow: rgba(99, 234, 211, 0.25) 0px 0px 10px;
}

.skills-page .page-heading > .about-command, .projects-page .page-heading > .about-command, .contact-page .page-heading > .about-command, .status-page .page-heading > .about-command {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(99, 234, 211, 0.19);
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(99, 234, 211, 0.063), var(--theme-color-4));
    color: var(--theme-color-15);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 1px;
    box-shadow: rgba(255, 255, 255, 0.03) 0px 1px 0px inset, rgba(0, 0, 0, 0.133) 0px 6px 20px;
}

.skills-page .page-heading > .about-command::before, .projects-page .page-heading > .about-command::before, .contact-page .page-heading > .about-command::before, .status-page .page-heading > .about-command::before {
    content: "";
    display: block;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--theme-color-17);
    box-shadow: rgba(99, 234, 211, 0.314) 0px 0px 10px;
}

.skills-page .page-heading > .about-command::after, .projects-page .page-heading > .about-command::after, .contact-page .page-heading > .about-command::after, .status-page .page-heading > .about-command::after {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 25%;
    width: 50%;
    height: 1px;
    border-radius: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 234, 211, 0.565), transparent);
    box-shadow: none;
}

.photo-orbit {
    position: relative;
}

/* 14. EFFETS : anneaux autour de la photo et apparition au defilement */
.photo-orbit::before, .photo-orbit::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    padding: 3px;
    mask: linear-gradient(var(--theme-color-9) 0px, var(--theme-color-9) 0px) content-box exclude, linear-gradient(var(--theme-color-9) 0px, var(--theme-color-9) 0px);
}

.photo-orbit::before {
    top: -12px;
    right: -12px;
    bottom: -12px;
    left: -12px;
    background: conic-gradient(transparent 0deg, transparent 55deg, rgba(99, 234, 211, 0.19) 95deg, var(--theme-color-17) 145deg, var(--theme-color-15) 165deg, transparent 175deg, transparent 235deg, var(--theme-color-22) 285deg, transparent 310deg);
    filter: drop-shadow(rgba(99, 234, 211, 0.5) 0px 0px 7px);
    animation: portrait-ring 6s linear infinite;
}

.photo-orbit::after {
    top: -23px;
    right: -23px;
    bottom: -23px;
    left: -23px;
    padding: 2px;
    background: conic-gradient(from 120deg, transparent 0deg, transparent 130deg, rgba(176, 160, 255, 0.25) 170deg, var(--theme-color-22) 220deg, transparent 240deg, transparent 360deg);
    filter: drop-shadow(rgba(176, 160, 255, 0.44) 0px 0px 6px);
    animation: portrait-ring 10s linear infinite reverse;
}

.photo-orbit .personal-photo {
    position: relative;
    border-color: rgba(99, 234, 211, 0.5);
    animation: portrait-glow 3.5s ease-in-out infinite;
}

@keyframes portrait-ring {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes portrait-glow {
    0%, 100% {
        box-shadow: rgba(99, 234, 211, 0.1) 0px 0px 18px, rgba(0, 0, 0, 0.267) 0px 12px 30px;
    }

    50% {
        box-shadow: rgba(99, 234, 211, 0.22) 0px 0px 34px, rgba(176, 160, 255, 0.1) 0px 0px 54px, rgba(0, 0, 0, 0.267) 0px 12px 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .photo-orbit::before, .photo-orbit::after, .photo-orbit .personal-photo {
        animation: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
    }

    .project-card, .skill-card, .work-preview > a {
        transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    }

    .animated-arrow {
        display: inline-block;
    }

    a:hover > .animated-arrow, a:focus-visible > .animated-arrow, a:hover .text-link .animated-arrow, a:focus-visible .text-link .animated-arrow, .contact-link:hover .animated-arrow, .contact-link:focus-visible .animated-arrow {
        transform: translateX(4px);
    }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .project-card:hover, .skill-card:hover, .work-preview > a:hover {
        transform: translateY(-3px);
        border-color: var(--theme-color-17);
        box-shadow: rgba(0, 0, 0, 0.267) 0px 12px 30px, rgba(99, 234, 211, 0.063) 0px 0px 18px;
    }
}

@media (prefers-reduced-motion: reduce), print {
    .scroll-reveal {
        opacity: 1;
        translate: none;
        filter: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    /* Le contenu arrive flou et un peu bas, puis se pose a sa place. */
    .scroll-reveal {
        translate: 0px 32px;
        filter: blur(10px);
    /* Le JavaScript fixe --reveal-delay pour decaler les apparitions. */
        transition: opacity .9s ease var(--reveal-delay, 0ms), translate .9s cubic-bezier(.16,1,.3,1) var(--reveal-delay, 0ms), filter .9s ease var(--reveal-delay, 0ms);
    }

    .scroll-reveal.is-revealed {
        opacity: 1;
        translate: 0px;
        filter: none;
    }

    .animated-arrow {
        transition: transform 0.25s;
    }

    a:hover .animated-arrow, a:focus-visible .animated-arrow {
        transform: translateX(7px);
    }

    .home-layout .terminal-content > p:first-child {
        min-height: 1.8em;
    }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .work-preview > a:hover, .project-card:hover, .skill-card:hover {
        transform: translateY(-5px);
        border-color: var(--theme-color-17);
        box-shadow: rgba(0, 0, 0, 0.333) 0px 14px 32px, rgba(99, 234, 211, 0.17) 0px 0px 22px;
    }
}

.skills-page .timeline > li {
    border-left: 0px;
}

.skills-page .timeline > li::before {
    left: -5px;
    z-index: 1;
}

.skills-page .timeline > li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 0px;
    top: 12px;
    bottom: -12px;
    width: 1px;
    background: var(--theme-color-20);
}

/* 15. PIED DE PAGE : invitation et liens */
footer.portfolio-footer.page-footer {
    display: block;
    margin-top: 88px;
    padding: 40px 0 16px;
    border-top: 1px solid var(--theme-color-21);
    text-align: left;
}

.footer-invitation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 0 6% 42px 0;
}

.footer-kicker {
    margin: 0 0 14px;
    color: var(--theme-color-16);
    font: 16px/1.5 var(--font-mono);
}

.footer-kicker span {
    color: var(--theme-color-17);
    margin-right: 8px;
}

.footer-invitation h2 {
    margin: 0;
    color: var(--theme-color-15);
    font-size: clamp(32px,4.8vw,62px);
    line-height: 1.08;
    letter-spacing: -2px;
    font-weight: 600;
}

.footer-invitation h2 span {
    color: var(--theme-color-17);
}

footer.portfolio-footer a.footer-hello {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--theme-color-15);
    font-size: 16px;
    text-decoration: none;
}

.footer-arrow {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border: 1px solid var(--theme-color-17);
    border-radius: 50%;
    color: var(--theme-color-17);
    font-size: 34px;
    transition: background .2s, color .2s, transform .2s;
}

a.footer-hello:hover .footer-arrow {
    background: var(--theme-color-17);
    color: var(--theme-color-19);
    transform: rotate(8deg);
}

.footer-baseline {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px 0 0;
    border-top: 1px solid var(--theme-color-21);
}

nav.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    position: static;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
}

footer.portfolio-footer nav.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    border: 0;
    background: none;
    color: var(--theme-color-16);
    font: 500 16px/1.5 var(--font-sans);
    text-decoration: none;
}

.footer-link-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

footer.portfolio-footer nav.footer-links a:hover {
    color: var(--theme-color-17);
}

.footer-copyright {
    color: var(--theme-color-16);
    font: 16px/1.5 var(--font-mono);
}

footer.portfolio-footer a.footer-top {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--theme-color-21);
    border-radius: 50%;
    color: var(--theme-color-16);
    text-decoration: none;
}

footer.portfolio-footer a.footer-top:hover {
    color: var(--theme-color-17);
    border-color: var(--theme-color-17);
}

@media (max-width:700px) {
    footer.portfolio-footer.page-footer {
        margin-top: 56px;
        padding-top: 28px;
    }

    .footer-invitation {
        padding: 0 0 30px;
        gap: 16px;
    }

    .footer-invitation h2 {
        font-size: 34px;
        letter-spacing: -1px;
    }

    a.footer-hello {
        flex-direction: column-reverse;
        gap: 8px !important;
    }

    .footer-arrow {
        width: 54px;
        height: 54px;
        font-size: 27px;
    }

    .footer-baseline {
        flex-wrap: wrap;
        gap: 18px;
    }

    nav.footer-links {
        width: auto;
    }

    .footer-copyright {
        order: 4;
        width: 100%;
    }
}

.info-skip {
    position: absolute;
    left: 16px;
    top: -120px;
    padding: 12px 18px;
    background: var(--theme-color-15);
    color: var(--theme-color-19);
    z-index: 100;
}

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

/* Nom et copyright du pied de page. */
.footer-baseline .footer-owner {
    margin-right: auto;
    color: var(--theme-color-16);
    white-space: nowrap;
}

@media (max-width:700px) {
    .footer-baseline .footer-owner {
        order: 0;
    }
}

/* Adapter le texte du pied de page aux petits ecrans. */
.footer-baseline {
    flex-wrap: wrap;
    gap: 20px 28px;
}

.footer-kicker {
    letter-spacing: 1px;
}

.footer-baseline .footer-owner {
    line-height: 1.6;
}

@media (max-width:700px) {
    .footer-baseline .footer-owner {
        width: 100%;
    }

    nav.footer-links {
        gap: 18px;
    }
}

/* Pied de page de la page Contact. */
.contact-page footer.portfolio-footer.page-footer {
    border-top: 0;
}

.contact-page .footer-baseline {
    border-top: 1px solid var(--theme-color-21);
}

/* 16. FORMULAIRE : champs et bouton d'envoi */
.message-form {
    display: grid;
    gap: 22px;
    margin-top: 28px;
}

.message-fields {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
}

.message-field {
    display: grid;
    gap: 9px;
    min-width: 0;
}

.message-field label {
    color: var(--theme-color-15);
    font: 600 16px/1.5 var(--font-sans);
}

.message-field input, .message-field textarea {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--theme-color-20);
    border-radius: 10px;
    background: var(--theme-color-14);
    color: var(--theme-color-15);
    font: 16px/1.6 var(--font-sans);
}

.message-field input {
    height: 54px;
    min-height: 0;
}

.message-field textarea {
    resize: vertical;
    min-height: 160px;
}

.message-field input::placeholder, .message-field textarea::placeholder {
    color: var(--theme-color-23);
    opacity: 1;
}

.message-field input:focus-visible, .message-field textarea:focus-visible, .message-send:focus-visible {
    outline: 2px solid var(--theme-color-17);
    outline-offset: 3px;
    border-color: var(--theme-color-17);
}

.contact-page .message-form .message-privacy {
    margin: 0;
    color: var(--theme-color-24);
    font-size: 16px;
    line-height: 1.7;
}

.message-privacy a {
    color: var(--theme-color-17);
    text-decoration: underline;
    text-underline-offset: 3px;
}

button.message-send {
    justify-self: start;
    cursor: pointer;
    font: 600 16px/1.6 var(--font-sans);
}

@media (max-width:700px) {
    .message-fields {
        grid-template-columns: 1fr;
    }

    button.message-send {
        width: 100%;
        justify-content: center;
    }
}

:root {
    color-scheme: dark;
}

/* 17. MENU MOBILE : barre fixe en bas de l'ecran */
header nav .nav-icon {
    display: none;
}

@media (max-width: 600px) {
    html {
        scroll-padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
    }

    body {
        padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
    }

    header {
        position: relative;
        z-index: 2;
        padding: 25px 20px;
        gap: 25px;
    }

    header nav {
        position: fixed;
        top: auto;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        left: 12px;
        z-index: 100;
        margin-inline: auto;
    }

    header nav,
    header nav:hover {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        width: calc(100% - 24px);
        max-width: 440px;
        gap: 4px;
        padding: 8px;
        border: 1px solid rgba(159, 204, 213, 0.22);
        border-radius: 25px;
        background: linear-gradient(125deg, var(--theme-gradient), var(--theme-gradient) 55%, var(--theme-gradient));
        -webkit-backdrop-filter: blur(24px) saturate(140%);
        backdrop-filter: blur(24px) saturate(140%);
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
    }

    header nav a {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-width: 0;
        min-height: 48px;
        padding: 4px 2px;
        border: 1px solid transparent;
        border-radius: 18px;
        color: var(--theme-color-16);
        font-family: var(--font-sans);
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
        line-height: 1.2;
        letter-spacing: 0;
        text-align: center;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        transition: color .22s ease, background .22s ease, box-shadow .22s ease, transform .22s cubic-bezier(.2,.8,.2,1);
    }

    header nav .nav-icon {
        display: block;
        width: 23px;
        height: 23px;
        stroke-width: 1.7;
        flex-shrink: 0;
        transition: transform .25s cubic-bezier(.2,.8,.2,1);
    }

    header nav a[aria-current="page"] {
        color: #082b29;
        background: linear-gradient(145deg, #98f5df, var(--theme-color-17) 60%, #64d9df);
        border-color: rgba(183, 255, 235, 0.6);
        box-shadow: 0 4px 16px rgba(99, 234, 211, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }

    header nav a[aria-current="page"] .nav-icon {
        transform: translateY(-1px);
    }

    header nav a:active {
        transform: scale(.92);
    }

    header nav a:focus-visible {
        outline: 2px solid var(--theme-color-17);
        outline-offset: -2px;
    }
}

@media (max-width: 600px) and (hover: hover) {
    header nav a:hover:not([aria-current="page"]) {
        color: var(--theme-color-15);
        background: rgba(99, 234, 211, 0.1);
        box-shadow: none;
        transform: translateY(-2px);
    }
}

@media (max-width: 600px) and (prefers-reduced-motion: reduce) {
    header nav a,
    header nav .nav-icon {
        transition: none;
        transform: none;
    }
}

/* 18. ABOUT : espacement des cartes */

.about-page > .content-grid,
.about-page .experience-grid {
    gap: 25px;
}

.about-page > .section-space {
    margin-top: 25px;
}

.about-page .content-grid > *,
.about-page .experience-grid > * {
    min-width: 0;
}

.about-page .panel,
.about-page .terminal {
    border-radius: 14px;
}

.about-page .panel p,
.about-page .small-card p {
    overflow-wrap: break-word;
}

.about-page .terminal pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 700px) {
    .about-page .content-grid,
    .about-page .experience-grid {
        grid-auto-rows: auto;
    }

    .about-page .panel {
        padding: 22px 20px;
    }

    .about-page .content-grid > .panel > p:not(.panel-label),
    .about-page .panel p:not(.panel-label):not(.code-note) {
        font-size: 16px;
        line-height: 1.8;
    }

    .about-page .panel-label {
        font-size: 13px;
        letter-spacing: 1.2px;
    }

    .about-page .terminal-header {
        gap: 12px;
        padding: 16px;
        font-size: 13px;
    }

    .about-page .terminal-content {
        padding: 20px;
        font-size: 14px;
    }
}

/* 19. FORMATION : le diagramme du parcours est dans features.css */

/* Theme control shares the navigation's rounded, outlined terminal styling. */
header { flex-wrap: wrap; gap: 16px; }
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid rgba(99,234,211,.45);
    border-radius: 12px;
    color: #63ead3;
    background: #0b1222;
    font: 600 14px/1.5 var(--font-mono);
    cursor: pointer;
}
.theme-icon { font-size: 22px; line-height: 1; }
.theme-toggle:hover { border-color: currentColor; background: #182136; }
.theme-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
/* Light page: soft off-white, a faint accent glow at the top, a quieter network background */
:root[data-theme="light"] body {
    background:
        radial-gradient(1100px 520px at 50% -140px, rgba(11, 122, 108, 0.07), transparent 70%),
        radial-gradient(900px 600px at 100% 0, rgba(105, 65, 198, 0.04), transparent 70%),
        linear-gradient(180deg, #eef0f3 0, var(--lm-canvas) 520px);
    background-color: var(--lm-canvas);
    color: var(--lm-text);
}
:root[data-theme="light"] .theme-toggle { color: var(--lm-accent); background: var(--lm-surface); border-color: var(--lm-accent-line); }
:root[data-theme="light"] .theme-toggle:hover { background: var(--lm-accent-soft); }
:root[data-theme="light"] #matrix {
    opacity: 0.16;
    filter: saturate(0.6);
}
:root[data-theme="light"] .button { color: #fff; }
@media (max-width: 700px) {
    .theme-toggle { min-height: 44px; margin: 4px auto; }
}


/* Compact top bar on phones; the page links stay in the bottom dock. */
.theme-toolbar { display: flex; align-items: center; }
.mobile-brand { display: none; }

@media (max-width: 600px) {
    body { padding-top: calc(72px + env(safe-area-inset-top, 0px)); }
    html { scroll-padding-top: calc(84px + env(safe-area-inset-top, 0px)); }
    .theme-toolbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 101;
        justify-content: space-between;
        gap: 12px;
        min-height: calc(64px + env(safe-area-inset-top, 0px));
        padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
        border-bottom: 1px solid rgba(99, 234, 211, .2);
        background: rgba(11, 18, 34, .94);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
    }
    .theme-toolbar .theme-toggle {
        flex-shrink: 0;
        margin: 0;
        min-height: 44px;
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 10px;
    }
    .mobile-brand {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        color: #a6b4cc;
        font: 600 12px/1.5 var(--font-mono);
        text-decoration: none;
        white-space: nowrap;
    }
    .mobile-brand span { color: #63ead3; }
    .mobile-brand:focus-visible { outline: 2px solid #63ead3; outline-offset: 3px; }
    :root[data-theme="light"] .theme-toolbar {
        background: rgba(247, 251, 253, .95);
        border-bottom-color: #bdd8d1;
        box-shadow: 0 4px 20px rgba(35, 65, 80, .06);
    }
    :root[data-theme="light"] .mobile-brand { color: var(--lm-text-2); }
    :root[data-theme="light"] .mobile-brand span { color: var(--lm-accent); }
}


@media (max-width: 600px) {
    .theme-toolbar {
        transition: transform .22s ease;
    }
    .theme-toolbar.is-scroll-hidden {
        transform: translateY(-110%);
        pointer-events: none;
    }
}
@media (max-width: 600px) and (prefers-reduced-motion: reduce) {
    .theme-toolbar { transition: none; }
}


/* Language and appearance controls stay together at every screen size. */
.appearance-controls { display: flex; align-items: center; gap: 8px; }
.language-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 46px;
    padding: 10px;
    border: 1px solid rgba(99,234,211,.45);
    border-radius: 12px;
    background: #0b1222;
    color: #63ead3;
    font: 600 14px/1.5 var(--font-mono);
    cursor: pointer;
}
.language-toggle:hover { border-color: currentColor; background: #182136; }
.language-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
:root[data-theme="light"] .language-toggle { color: var(--lm-accent); background: var(--lm-surface); border-color: var(--lm-accent-line); }
:root[data-theme="light"] .language-toggle:hover { background: var(--lm-accent-soft); }
@media (max-width: 600px) {
    .appearance-controls { gap: 6px; flex-shrink: 0; }
    .language-toggle { min-width: 44px; min-height: 44px; padding: 8px; border-radius: 10px; font-size: 12px; }
    html[lang="fr"] header nav a { font-size: 11px; }
    .theme-toolbar { gap: 8px; }
}
@media (max-width: 360px) {
    .mobile-brand { font-size: 10px; }
    .theme-toolbar { padding-left: 12px; padding-right: 12px; }
}


/* Mobile theme chooser: icon trigger and two explicit options. */
.theme-picker { position: relative; }
.theme-options[hidden] { display: none; }
.theme-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 102;
    display: grid;
    gap: 4px;
    width: 180px;
    padding: 6px;
    border: 1px solid rgba(99, 234, 211, .3);
    border-radius: 14px;
    background: #0b1222;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .3);
}
.theme-options button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #edf3ff;
    font: 600 13px/1.5 var(--font-mono);
    text-align: left;
    cursor: pointer;
}
.theme-options button:hover, .theme-options button[aria-pressed="true"] {
    color: #63ead3;
    background: rgba(99, 234, 211, .1);
    border-color: rgba(99, 234, 211, .25);
}
.theme-options button[aria-pressed="true"]::after { content: "\2713"; margin-left: auto; }
.theme-options button:focus-visible { outline: 2px solid #63ead3; outline-offset: -2px; }
:root[data-theme="light"] .theme-options { background: var(--lm-surface); border-color: var(--lm-accent-line); box-shadow: 0 12px 28px rgba(35, 65, 80, .15); }
:root[data-theme="light"] .theme-options button { color: #294438; }
:root[data-theme="light"] .theme-options button:hover,
:root[data-theme="light"] .theme-options button[aria-pressed="true"] { color: var(--lm-accent); background: var(--lm-accent-soft); border-color: var(--lm-accent-line); }
:root[data-theme="light"] .theme-options button:focus-visible { outline-color: var(--lm-accent); }
@media (max-width: 600px) {
    .theme-toggle .theme-label { display: none; }
    .theme-toolbar .theme-toggle { width: 44px; padding: 8px; }
}

/* 20. TYPOGRAPHIE : polices lisibles et finitions du texte */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Les accents "terminal" gardent une police a chasse fixe. */
.terminal, .system-strip, .eyebrow, .panel-label, .funny-text, .code-note, .panel .code-note,
.technologies h2, .technology-list li, .tag-list li, .status-badge, .timeline-date,
.work-preview .work-index, header nav a, .about-command {
    font-family: var(--font-mono);
}

/* Les ligatures de code (=> != ...) genent la lecture des libelles. */
.terminal, .eyebrow, .panel-label, .system-strip, .tag-list li, .technology-list li {
    font-variant-ligatures: none;
}

/* Titres : Inter en gras, avec un interlettrage proportionnel a la taille. */
h1, .home-text h1, .page-heading h1 {
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2, h3 {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.footer-invitation h2 {
    font-weight: 700;
    letter-spacing: -0.03em;
}

.profile-name {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.technologies h2 {
    letter-spacing: 0;
}

/* Texte courant : longueur de ligne et interligne confortables. */
.introduction, .page-intro, .panel p, .panel dd, .work-preview p,
.skills-grid .skill-card > p:not(.panel-label), .projects-page .project-card > p,
.about-page .content-grid > .panel > p:not(.panel-label),
.goal-list li, .small-card p, .timeline p {
    line-height: 1.7;
}

.panel strong {
    color: var(--theme-color-15);
    font-weight: 600;
}

/* Petites etiquettes : la police mono parait plus grande, on la reduit un peu. */
.technology-list li, .tag-list li, .work-preview .tag-list li, .skill-card .tag-list li,
.projects-page .project-card .tag-list li, .contact-page .tag-list li,
.contact-page .content-grid > aside.panel > .tag-list li {
    font-size: 15px;
    font-weight: 500;
}

.system-strip, .eyebrow, .panel-label, .work-preview .work-index, .section-heading .panel-label,
.status-badge, .contact-page .panel .panel-label {
    font-size: 15px;
    font-weight: 500;
}

.page-heading .eyebrow, .about-page .page-heading .about-command {
    font-size: clamp(17px, 1.6vw, 20px);
    font-weight: 600;
    letter-spacing: 0;
}

header nav a {
    font-size: 17px;
    font-weight: 500;
}

/* Le texte secondaire du theme clair etait trop pale sur fond blanc. */
:root[data-theme="light"] {
    --theme-color-16: #44546b;
    --theme-color-23: #56677a;
}

@media (max-width: 700px) {
    .about-page .panel-label {
        font-size: 14px;
    }

    .about-page .terminal-header {
        font-size: 14px;
    }

    .about-page .terminal-content {
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    header nav a {
        font-family: var(--font-sans);
        font-size: 12px;
        font-weight: 600;
    }

    html[lang="fr"] header nav a {
        font-size: 11px;
    }

    .mobile-brand {
        font-size: 13px;
    }
}

/* Lien d'evitement : visible uniquement au clavier. */
.info-skip {
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

/* Champ piege anti-spam du formulaire : invisible pour les visiteurs. */
.message-honey {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* 21. PAGES DE STATUT : erreur 404 et confirmation d'envoi */
main.status-page {
    width: calc(100% - 48px);
    max-width: 760px;
    margin: 60px auto;
    text-align: center;
}

.status-page .page-intro {
    margin: 0 auto 28px;
}

.status-page .terminal {
    margin: 0 auto 32px;
    max-width: 560px;
    text-align: left;
}

.status-page .actions {
    justify-content: center;
}

.status-code {
    color: var(--theme-color-22);
}

/* Le contenu principal recoit le focus via le lien d'evitement, sans contour. */
main:focus {
    outline: none;
}

.project-card h3 {
    font-size: 22px;
}

/* Theme clair : fond plus lumineux pour garder le texte du lien actif lisible. */
:root[data-theme="light"] nav a[aria-current="page"] {
    background: linear-gradient(120deg, #4fdcaa, rgb(71, 229, 255));
}

.status-page footer.portfolio-footer.page-footer {
    border-top: 0;
}

.contact-page .panel > .text-link {
    margin-bottom: 22px;
}

/* 22. REGLAGES : choix de langue segmente (EN | FR) puis bouton carre du theme, a droite */
.appearance-controls {
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

/* Langue : les deux choix sont visibles, la langue active est remplie. */
.appearance-controls .language-toggle,
:root[data-theme="light"] .appearance-controls .language-toggle {
    gap: 2px;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    padding: 4px;
    border: 1px solid var(--theme-color-20);
    border-radius: 12px;
    background: var(--theme-color-1);
    color: var(--theme-color-16);
    font: 600 13px/1 var(--font-mono);
    letter-spacing: .5px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .06);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transition: border-color .2s;
}

.appearance-controls .language-toggle:hover {
    border-color: var(--theme-color-17);
}

.language-option {
    display: grid;
    place-items: center;
    min-width: 40px;
    height: 34px;
    padding: 0 8px;
    border-radius: 8px;
    transition: background-color .2s, color .2s, box-shadow .2s;
}

html[lang="en"] .language-option[data-language="en"],
html[lang="fr"] .language-option[data-language="fr"] {
    background: var(--theme-color-17);
    color: #07201d;
    box-shadow: 0 2px 12px rgba(99, 234, 211, .28);
}

:root[data-theme="light"][lang="en"] .language-option[data-language="en"],
:root[data-theme="light"][lang="fr"] .language-option[data-language="fr"] {
    color: #fff;
    box-shadow: 0 2px 10px rgba(8, 124, 107, .25);
}

.language-toggle:hover .language-option {
    color: var(--theme-color-15);
}

html[lang="en"] .language-toggle:hover .language-option[data-language="en"],
html[lang="fr"] .language-toggle:hover .language-option[data-language="fr"] {
    color: #07201d;
}

:root[data-theme="light"][lang="en"] .language-toggle:hover .language-option[data-language="en"],
:root[data-theme="light"][lang="fr"] .language-toggle:hover .language-option[data-language="fr"] {
    color: #fff;
}

/* Theme : un bouton carre aux coins arrondis, avec une icone soleil ou lune. */
.appearance-controls .theme-picker {
    display: flex;
    align-items: center;
}

.appearance-controls .theme-toggle,
.theme-toolbar .appearance-controls .theme-toggle,
:root[data-theme="light"] .appearance-controls .theme-toggle {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--theme-color-20);
    border-radius: 12px;
    background: var(--theme-color-1);
    color: var(--theme-color-15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .06);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transition: border-color .2s, color .2s, background-color .2s;
}

.appearance-controls .theme-toggle:hover,
:root[data-theme="light"] .appearance-controls .theme-toggle:hover {
    border-color: var(--theme-color-17);
    background: var(--theme-color-1);
    color: var(--theme-color-17);
}

/* L'icone est un masque SVG colore par la couleur du texte. */
.appearance-controls .theme-icon {
    display: block;
    width: 20px;
    height: 20px;
    overflow: hidden;
    font-size: 0;
    background: currentColor;
    -webkit-mask: var(--theme-icon-sun) center / contain no-repeat;
    mask: var(--theme-icon-sun) center / contain no-repeat;
    transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}

.appearance-controls .theme-icon[data-icon="moon"] {
    -webkit-mask-image: var(--theme-icon-moon);
    mask-image: var(--theme-icon-moon);
}

.appearance-controls .theme-toggle:hover .theme-icon {
    transform: rotate(45deg);
}

:root {
    --theme-icon-sun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E");
    --theme-icon-moon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5z'/%3E%3C/svg%3E");
}

.appearance-controls .theme-toggle:focus-visible,
.appearance-controls .language-toggle:focus-visible {
    outline: 2px solid var(--theme-color-17);
    outline-offset: 2px;
}

/* Le menu du theme s'ouvre vers la gauche, puisque la pastille est a droite. */
.theme-options {
    left: auto;
    right: 0;
}

/* Grand ecran : la pastille se place dans le coin droit de l'en-tete. */
@media (min-width: 1100px) {
    header .theme-toolbar {
        position: absolute;
        top: 50%;
        right: 40px;
        transform: translateY(-50%);
    }
}

/* Tablette : la pastille passe au-dessus du menu, alignee a droite. */
@media (min-width: 601px) and (max-width: 900px) {
    header .theme-toolbar {
        order: -1;
        align-self: flex-end;
    }
}

/* Telephone : le nom du site a gauche, les reglages a droite. */
@media (max-width: 600px) {
    .mobile-brand {
        order: -1;
    }

    .appearance-controls {
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .appearance-controls .theme-toggle:hover .theme-icon {
        transform: none;
    }
}

/* 23. CHANGEMENT DE THEME : le nouveau mode s'etend en cercle depuis le bouton */
.theme-switching::view-transition-old(root),
.theme-switching::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

.theme-switching::view-transition-old(root) {
    z-index: 1;
}

.theme-switching::view-transition-new(root) {
    z-index: 2;
}

/* Navigateurs sans View Transitions : les couleurs changent en fondu. */
.theme-fading,
.theme-fading *,
.theme-fading *::before,
.theme-fading *::after {
    transition: background-color .4s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease !important;
}

/* 24. NAVIGATION "CROCHETS" : sur ordinateur, le menu est une ligne de mots en
   police mono ; la page active est placee entre deux crochets, comme dans du code.
   Sur telephone, la barre fixe du bas (section 17) reste inchangee. */
@media (min-width: 601px) {
    header nav, header nav:hover {
        gap: 4px 14px;
        padding: 4px 0;
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    header nav a,
    header nav a:hover,
    header nav a[aria-current="page"],
    :root[data-theme="light"] header nav a[aria-current="page"] {
        padding: 8px 2px;
        border-radius: 6px;
        background: none;
        box-shadow: none;
        font: 500 17px/1.5 var(--font-mono);
        text-transform: lowercase;
        white-space: pre;
    }

    header nav a {
        color: var(--theme-color-16);
        transition: color .2s;
    }

    /* Les crochets existent toujours (les mots ne bougent pas) ; seule leur couleur change. */
    header nav a::before,
    header nav a::after {
        color: transparent;
        transition: color .2s;
    }

    header nav a::before { content: "[ "; }
    header nav a::after { content: " ]"; }

    header nav a:hover {
        color: var(--theme-color-15);
    }

    header nav a:hover::before,
    header nav a:hover::after {
        color: var(--accent-soft, rgba(99, 234, 211, .45));
    }

    header nav a[aria-current="page"],
    :root[data-theme="light"] header nav a[aria-current="page"] {
        color: var(--theme-color-15);
    }

    header nav a[aria-current="page"]::before,
    header nav a[aria-current="page"]::after {
        color: var(--theme-color-17);
    }

    header nav a:focus-visible {
        outline: 2px solid var(--theme-color-17);
        outline-offset: 3px;
    }
}

/* 25. RECHERCHE (Ctrl K) : bouton dans la barre d'outils et fenetre de commandes */
.search-open {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 10px 0 13px;
    border: 1px solid var(--theme-color-20);
    border-radius: 12px;
    background: var(--theme-color-1);
    color: var(--theme-color-16);
    font: 500 14px/1 var(--font-mono);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .06);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transition: border-color .2s, color .2s;
}

.search-open:hover {
    border-color: var(--theme-color-17);
    color: var(--theme-color-15);
}

.search-open:focus-visible {
    outline: 2px solid var(--theme-color-17);
    outline-offset: 2px;
}

.search-open svg {
    flex-shrink: 0;
}

.search-open kbd,
.palette kbd {
    padding: 4px 7px;
    border: 1px solid var(--theme-color-20);
    border-radius: 6px;
    background: var(--theme-color-12);
    color: var(--theme-color-16);
    font: 500 12px/1 var(--font-mono);
    white-space: nowrap;
}

/* Tablette et telephone : seule l'icone reste. */
@media (max-width: 900px) {
    .search-open {
        justify-content: center;
        width: 44px;
        padding: 0;
    }

    .search-open .search-label,
    .search-open kbd {
        display: none;
    }
}

.palette {
    width: min(620px, calc(100% - 28px));
    max-height: min(560px, 80dvh);
    margin-top: 12vh;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(99, 234, 211, .3);
    border-radius: 16px;
    background: var(--theme-color-18);
    color: var(--theme-color-15);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 40px rgba(99, 234, 211, .08);
    text-align: left;
}

.palette[open] {
    display: flex;
    flex-direction: column;
    animation: palette-in .22s cubic-bezier(.2, .7, .2, 1);
}

.palette::backdrop {
    background: rgba(8, 13, 27, .7);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

@keyframes palette-in {
    from { opacity: 0; transform: translateY(-10px) scale(.98); }
    to { opacity: 1; transform: none; }
}

.palette-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 16px;
    border-bottom: 1px solid var(--theme-color-21);
    color: var(--theme-color-17);
}

.palette-input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--theme-color-15);
    font: 500 16px/1.5 var(--font-mono);
    caret-color: var(--theme-color-17);
}

.palette-input::placeholder {
    color: var(--theme-color-23);
    opacity: .8;
}

.palette-list {
    flex: 1;
    margin: 0;
    padding: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: var(--theme-color-20) transparent;
}

.palette-group {
    padding: 10px 10px 6px;
    color: var(--theme-color-23);
    font: 500 12px/1.5 var(--font-mono);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.palette-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    color: var(--theme-color-15);
    font-size: 16px;
    line-height: 1.5;
    cursor: pointer;
}

.palette-item .palette-mark {
    width: 20px;
    color: transparent;
    font: 600 15px/1 var(--font-mono);
    text-align: center;
}

.palette-item small {
    margin-left: auto;
    color: var(--theme-color-23);
    font: 500 12.5px/1.5 var(--font-mono);
    white-space: nowrap;
}

.palette-item[aria-selected="true"] {
    background: var(--theme-color-4);
    box-shadow: inset 0 0 0 1px rgba(99, 234, 211, .3);
}

.palette-item[aria-selected="true"] .palette-mark {
    color: var(--theme-color-17);
}

.palette-empty {
    padding: 28px 16px;
    color: var(--theme-color-16);
    font: 15px/1.6 var(--font-mono);
    text-align: center;
}

.palette-help {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    padding: 10px 16px;
    border-top: 1px solid var(--theme-color-21);
    color: var(--theme-color-23);
    font: 12.5px/1.6 var(--font-mono);
}

.palette-help span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

html:has(.palette[open]) {
    overflow: hidden;
}

@media (max-width: 600px) {
    .palette {
        margin-top: 8vh;
    }

    /* Sans clavier, les rappels de touches ne servent pas. */
    .palette-help {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .palette[open] {
        animation: none;
    }
}

/* 26. BARRE DU TELEPHONE : quatre pages et, au centre, un bouton de recherche
   en losange. La page Competences reste accessible par la recherche, par les
   cartes "Explorer le site" de l'accueil et par le terminal. */
.nav-search {
    display: none;
}

@media (max-width: 600px) {
    header nav a[href$="skills.html"] {
        display: none;
    }

    /* La recherche est dans la barre du bas : le bouton du haut devient inutile. */
    .search-open {
        display: none;
    }

    header nav a {
        text-transform: lowercase;
    }

    /* Page active : icone et nom en couleur d'accent, sans fond rempli. */
    header nav a[aria-current="page"],
    :root[data-theme="light"] header nav a[aria-current="page"] {
        border-color: transparent;
        background: none;
        box-shadow: none;
        color: var(--theme-color-17);
    }

    .nav-search {
        position: relative;
        display: grid;
        place-items: center;
        min-width: 0;
        padding: 0;
        border: 0;
        background: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    /* Le losange depasse au-dessus de la barre ; l'anneau a la couleur du fond de la page. */
    .nav-search span {
        display: grid;
        place-items: center;
        width: 52px;
        height: 52px;
        margin-top: -34px;
        border-radius: 17px;
        background: linear-gradient(135deg, var(--theme-color-17), rgb(71, 229, 255));
        color: #07201d;
        box-shadow: 0 0 0 5px var(--theme-color-18), 0 10px 24px rgba(71, 229, 255, .35);
        rotate: 45deg;
        transition: scale .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s;
    }

    :root[data-theme="light"] .nav-search span {
        background: linear-gradient(135deg, #4fdcaa, rgb(71, 229, 255));
        box-shadow: 0 0 0 5px var(--theme-color-18), 0 10px 22px rgba(8, 124, 107, .28);
    }

    .nav-search svg {
        rotate: -45deg;
    }

    .nav-search:active span {
        scale: .92;
    }

    .nav-search:focus-visible {
        outline: none;
    }

    .nav-search:focus-visible span {
        outline: 2px solid var(--theme-color-15);
        outline-offset: 3px;
    }
}

@media (max-width: 600px) and (prefers-reduced-motion: reduce) {
    .nav-search span {
        transition: none;
    }
}

/* 27. PAGE COMMAND LABELS: lifted pill (all inner pages) */
.about-page .page-heading .about-command,
.skills-page .page-heading > .about-command,
.projects-page .page-heading > .about-command,
.contact-page .page-heading > .about-command,
.status-page .page-heading > .about-command {
    margin-top: 6px;
    margin-bottom: 30px;
    box-shadow: rgba(255, 255, 255, 0.05) 0px 1px 0px inset, rgba(0, 0, 0, 0.35) 0px 16px 22px -10px, rgba(99, 234, 211, 0.12) 0px 0px 0px 1px;
}

:root[data-theme="light"] .about-page .page-heading .about-command,
:root[data-theme="light"] .skills-page .page-heading > .about-command,
:root[data-theme="light"] .projects-page .page-heading > .about-command,
:root[data-theme="light"] .contact-page .page-heading > .about-command,
:root[data-theme="light"] .status-page .page-heading > .about-command {
    box-shadow: rgba(255, 255, 255, 0.9) 0px 1px 0px inset, rgba(8, 124, 107, 0.3) 0px 16px 22px -10px;
}

/* 28. PAGE COMMAND LABELS: 3D motion (floats, shadow breathes, tilts on hover) */
@media (prefers-reduced-motion: no-preference) {
    .about-page .page-heading .about-command,
    .skills-page .page-heading > .about-command,
    .projects-page .page-heading > .about-command,
    .contact-page .page-heading > .about-command,
    .status-page .page-heading > .about-command {
        transform-style: preserve-3d;
        transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s;
        animation: label-float 4.2s ease-in-out infinite;
    }

    .about-page .page-heading .about-command:hover,
    .skills-page .page-heading > .about-command:hover,
    .projects-page .page-heading > .about-command:hover,
    .contact-page .page-heading > .about-command:hover,
    .status-page .page-heading > .about-command:hover {
        animation: none;
        transform: perspective(600px) rotateX(12deg) rotateY(-8deg) translateY(-4px);
        box-shadow: rgba(255, 255, 255, 0.05) 0px 1px 0px inset, rgba(0, 0, 0, 0.45) 0px 26px 30px -12px;
    }

    .about-page .page-heading .about-command::before,
    .skills-page .page-heading > .about-command::before,
    .projects-page .page-heading > .about-command::before,
    .contact-page .page-heading > .about-command::before,
    .status-page .page-heading > .about-command::before {
        animation: label-dot 2.4s ease-in-out infinite;
    }
}

@keyframes label-float {
    0%, 100% { transform: perspective(600px) translateY(0) rotateX(0deg); }
    50% { transform: perspective(600px) translateY(-5px) rotateX(4deg); }
}

@keyframes label-dot {
    0%, 100% { box-shadow: rgba(99, 234, 211, 0.3) 0px 0px 6px; }
    50% { box-shadow: rgba(99, 234, 211, 0.8) 0px 0px 14px; }
}
