/* =========================================================
   YANN MUSHID — PORTFOLIO FUTURISTE
   FICHIER : style.css
   VERSION : FUTURISTIC ENGINEERING UI — 2.4
   COMPATIBLE AVEC : index.html + script.js (v7.1)

   Nouveauté de la v2.4 : cartes repliables « Voir plus »
   (Expériences, Compétences, Projets) — fin de la section 33.

   Nouveauté de la v2.3 : section 33 (éléments créés à partir
   du contenu du dashboard : dates, entreprises, outils,
   vignettes sans image, lien « Voir le projet »).

   Principales corrections de la v2.0 :
   - Parcours, Compétences et Projets retrouvent leur fond
     sombre (leur fond était écrasé : texte blanc sur fond clair).
   - L'indicateur « SCROLL » est positionné (il décalait le hero).
   - Les points décoratifs de « À propos » sont placés.
   - Timeline mobile : suppression de la colonne vide.
   - Textes de 7 à 9 px agrandis et contrastes renforcés.
   - Focus clavier visible partout, lien d'évitement,
     préfixes Safari, impression, animations plus légères.
========================================================= */


/* =========================================================
   01 — VARIABLES
========================================================= */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;

    --cyan: #06b6d4;
    --cyan-light: #22d3ee;
    --electric: #38bdf8;

    --violet: #7c3aed;
    --green: #22c55e;

    --dark: #050816;
    --dark-2: #080d1f;
    --dark-3: #0c1329;
    --dark-card: #0d152d;

    --white: #ffffff;
    --text: #1f2937;
    --text-light: #64748b;
    --text-dark-light: #94a3b8;

    --light: #f8fafc;
    --light-blue: #eff6ff;

    --border: rgba(148, 163, 184, 0.18);
    --border-light: rgba(255, 255, 255, 0.12);

    --gradient-accent: linear-gradient(135deg, var(--primary), var(--cyan));

    --gradient-dark:
        linear-gradient(
            135deg,
            var(--dark) 0%,
            var(--dark-2) 50%,
            var(--dark) 100%
        );

    --glow-blue:
        0 0 20px rgba(37, 99, 235, 0.35),
        0 0 50px rgba(37, 99, 235, 0.12);

    --glow-cyan:
        0 0 20px rgba(6, 182, 212, 0.4),
        0 0 50px rgba(6, 182, 212, 0.15);

    --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    --shadow-dark: 0 25px 70px rgba(0, 0, 0, 0.35);

    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;

    --max-width: 1180px;
    --header-height: 78px;

    --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);

    /* Polices de secours si Google Fonts ne charge pas */
    --font-main: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-tech: "Orbitron", "Segoe UI", system-ui, sans-serif;

    /* Couleur du contour de focus clavier (bleu sur fond clair) */
    --focus-ring: var(--primary);
}


/* Zones sombres : contour de focus cyan, plus visible */

.site-header,
.hero,
.section-dark,
.site-footer,
.back-to-top {
    --focus-ring: var(--cyan-light);
}


/* =========================================================
   02 — RESET & BASE
========================================================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}


body {
    font-family: var(--font-main);
    background:
        radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.04), transparent 30%),
        var(--light);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* « clip » évite le débordement horizontal sans créer
   de zone de défilement (plus fiable que « hidden ») */

@supports (overflow-x: clip) {
    body {
        overflow-x: clip;
    }
}


/* Appliqué à tout le texte sélectionné
   (body::selection ne ciblait que le texte direct du body) */

::selection {
    background: var(--primary);
    color: var(--white);
}


img {
    display: block;
    max-width: 100%;
    height: auto;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}


button {
    border: 0;
    background: none;
    cursor: pointer;
}


ul {
    list-style: none;
}


h1,
h2,
h3 {
    text-wrap: balance;
}


p {
    text-wrap: pretty;
}


[hidden] {
    display: none !important;
}


/* =========================================================
   02b — ACCESSIBILITÉ
========================================================= */

/* Focus clavier visible sur tous les éléments interactifs
   (:focus-visible ne s'affiche pas au clic de souris) */

:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 4px;
}


/* <main tabindex="-1"> reçoit le focus via le lien d'évitement */

main[tabindex="-1"]:focus {
    outline: none;
}


.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10000;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    background: var(--cyan-light);
    color: var(--dark);
    font-size: 14px;
    font-weight: 600;
    transform: translateY(-200%);
    transition: transform 0.2s ease;
}


.skip-link:focus {
    transform: translateY(0);
    outline: 2px solid var(--white);
    outline-offset: 2px;
}


.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* =========================================================
   03 — GLOBAL BACKGROUND
   Visible derrière les sections claires.
========================================================= */

.global-tech-background {
    position: fixed;
    inset: 0;
    z-index: -10;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.5;
}


/* L'animation déplace la grille avec transform (calculé par
   la carte graphique) au lieu de background-position, qui
   redessinait tout l'écran à chaque image. */

.tech-grid {
    position: absolute;
    inset: -50%;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.045) 1px, transparent 1px);
    background-size: 70px 70px;
    transform: perspective(800px) rotateX(55deg);
    transform-origin: center center;
    animation: globalGridMove 25s linear infinite;
}


.tech-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.18;
}


.tech-glow-1 {
    background: var(--primary);
    top: -250px;
    left: -200px;
}


.tech-glow-2 {
    background: var(--cyan);
    bottom: -300px;
    right: -200px;
}


.tech-particles {
    position: absolute;
    inset: 0;
}


.tech-particles span {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--cyan-light);
    border-radius: 50%;
    box-shadow:
        0 0 8px var(--cyan),
        0 0 18px rgba(6, 182, 212, 0.6);
    animation: particleFloat 12s linear infinite;
    opacity: 0;
}


.tech-particles span:nth-child(1)  { left: 10%; top: 20%; animation-delay: -2s; }
.tech-particles span:nth-child(2)  { left: 25%; top: 70%; animation-delay: -7s; }
.tech-particles span:nth-child(3)  { left: 40%; top: 30%; animation-delay: -4s; }
.tech-particles span:nth-child(4)  { left: 55%; top: 80%; animation-delay: -9s; }
.tech-particles span:nth-child(5)  { left: 70%; top: 15%; animation-delay: -5s; }
.tech-particles span:nth-child(6)  { left: 82%; top: 50%; animation-delay: -1s; }
.tech-particles span:nth-child(7)  { left: 15%; top: 90%; animation-delay: -8s; }
.tech-particles span:nth-child(8)  { left: 92%; top: 25%; animation-delay: -6s; }
.tech-particles span:nth-child(9)  { left: 63%; top: 42%; animation-delay: -3s; }
.tech-particles span:nth-child(10) { left: 35%; top: 60%; animation-delay: -10s; }


/* =========================================================
   04 — CONTAINER
========================================================= */

.container {
    width: min(calc(100% - 40px), var(--max-width));
    margin-inline: auto;
}


/* =========================================================
   05 — HEADER
========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition:
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        backdrop-filter var(--transition);
}


.site-header.header-scrolled {
    background: rgba(5, 8, 22, 0.86);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    border-bottom-color: rgba(56, 189, 248, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
}


.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}


.logo-mark {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-family: var(--font-tech);
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    background: var(--gradient-accent);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    overflow: hidden;
}


.logo-mark::before {
    content: "";
    position: absolute;
    width: 160%;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transform: rotate(-45deg);
    left: -30%;
    top: 50%;
    animation: logoScan 3s linear infinite;
}


.logo-text {
    font-family: var(--font-tech);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}


.nav-link {
    position: relative;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    transition: color var(--transition);
}


.nav-link::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 1px;
    background: linear-gradient(90deg, var(--primary), var(--cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
    box-shadow: 0 0 8px var(--cyan);
}


.nav-link:hover,
.nav-link.active {
    color: var(--white);
}


.nav-link:hover::before,
.nav-link.active::before {
    transform: scaleX(1);
}


.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    transition: background var(--transition);
}


.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}


/* =========================================================
   06 — SECTIONS
========================================================= */

.section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}


.section-dark {
    background: var(--gradient-dark);
    color: var(--white);
}


.tech-section {
    isolation: isolate;
}


.tech-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -2;
}


.section-heading {
    position: relative;
    max-width: 720px;
    margin: 0 auto 70px;
    text-align: center;
    z-index: 2;
}


.section-heading h2 {
    margin-bottom: 12px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}


.section-heading p {
    color: var(--text-light);
    font-size: 16px;
}


.section-heading.light p {
    color: var(--text-dark-light);
}


.section-code {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--cyan);
    font-family: var(--font-tech);
    font-size: 10px;
    letter-spacing: 0.16em;
}


.section-code::before {
    content: "";
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan));
}


/* =========================================================
   07 — HERO
========================================================= */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--header-height) + 70px) 0 80px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 75% 50%, rgba(37, 99, 235, 0.15), transparent 35%),
        radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.08), transparent 30%),
        var(--dark);
    color: var(--white);
    overflow: hidden;
}


.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
    background-size: 55px 55px;
    -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 75%);
    mask-image: radial-gradient(ellipse at center, black, transparent 75%);
    animation: heroGridMove 18s linear infinite;
}


.hero-container {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 70px;
    z-index: 2;
}


.hero-content {
    position: relative;
    z-index: 5;
}


.tech-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    padding: 7px 12px;
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 50px;
    background: rgba(6, 182, 212, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-tech);
    font-size: 10px;
    letter-spacing: 0.14em;
}


.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan-light);
    box-shadow:
        0 0 6px var(--cyan),
        0 0 14px var(--cyan);
    animation: statusPulse 1.8s ease-in-out infinite;
}


.hero-intro {
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 17px;
}


.hero h1 {
    margin-bottom: 12px;
    font-size: clamp(52px, 8vw, 94px);
    line-height: 0.95;
    letter-spacing: -0.065em;
    font-weight: 800;
}


.hero h1 span {
    display: block;
    color: transparent;
    background: linear-gradient(90deg, var(--primary-light), var(--cyan-light));
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(34, 211, 238, 0.15));
}


.hero h2 {
    margin-bottom: 22px;
    font-size: clamp(18px, 2.5vw, 27px);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
}


.hero h2 span {
    color: var(--cyan-light);
}


.hero-description {
    max-width: 640px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 16px;
}


.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 34px;
}


.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    transition:
        border-color var(--transition),
        background var(--transition),
        transform var(--transition);
}


.tech-tag i {
    color: var(--cyan);
}


.tech-tag:hover {
    border-color: rgba(34, 211, 238, 0.4);
    background: rgba(6, 182, 212, 0.07);
    transform: translateY(-3px);
}


.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}


.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition),
        background var(--transition);
}


.btn::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 200%;
    left: -100%;
    top: -50%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}


.btn:hover::before {
    left: 130%;
}


.btn:hover {
    transform: translateY(-3px);
}


.btn-primary {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
}


.btn-primary:hover {
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.25);
}


.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--white);
    background: rgba(255, 255, 255, 0.025);
}


.btn-outline:hover {
    border-color: rgba(34, 211, 238, 0.5);
    background: rgba(6, 182, 212, 0.06);
}


.hero-socials {
    display: flex;
    align-items: center;
    gap: 8px;
}


.hero-socials a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.025);
    transition:
        color var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}


.hero-socials a:hover {
    color: var(--cyan-light);
    border-color: rgba(34, 211, 238, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.12);
}


/* Indicateur de défilement
   (sans style, il se plaçait à côté du contenu du hero
   et le décalait vers la gauche) */

.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-tech);
    font-size: 9px;
    letter-spacing: 0.22em;
    transition: color var(--transition);
}


.scroll-indicator i {
    font-size: 12px;
    color: var(--cyan-light);
    animation: scrollBounce 1.8s ease-in-out infinite;
}


.scroll-indicator:hover {
    color: var(--white);
}


/* =========================================================
   08 — HERO VISUAL / ENERGY CORE
========================================================= */

.hero-visual {
    position: relative;
    min-height: 610px;
    display: grid;
    place-items: center;
}


.profile-frame {
    position: relative;
    width: min(380px, 70vw);
    aspect-ratio: 0.78;
    z-index: 5;
}


.profile-image-wrapper {
    position: absolute;
    inset: 18px;
    overflow: hidden;
    border-radius: 190px 190px 35px 35px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(37, 99, 235, 0.12);
}


.profile-image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.1),
            transparent 45%,
            rgba(6, 182, 212, 0.08)
        );
    pointer-events: none;
}


.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9) contrast(1.05);
    transition:
        transform 0.8s ease,
        filter 0.8s ease;
}


.profile-frame:hover .profile-image {
    transform: scale(1.035);
    filter: saturate(1.05) contrast(1.08);
}


.frame-corner {
    position: absolute;
    width: 48px;
    height: 48px;
    border-color: var(--cyan-light);
    z-index: 7;
    filter: drop-shadow(0 0 7px rgba(34, 211, 238, 0.55));
}


.corner-top-left {
    top: 0;
    left: 0;
    border-top: 2px solid;
    border-left: 2px solid;
}


.corner-top-right {
    top: 0;
    right: 0;
    border-top: 2px solid;
    border-right: 2px solid;
}


.corner-bottom-left {
    bottom: 0;
    left: 0;
    border-bottom: 2px solid;
    border-left: 2px solid;
}


.corner-bottom-right {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid;
    border-right: 2px solid;
}


.energy-core {
    position: absolute;
    width: 520px;
    height: 520px;
    max-width: 90vw;
    max-height: 90vw;
    display: grid;
    place-items: center;
    border-radius: 50%;
}


.core-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(56, 189, 248, 0.18);
}


.ring-outer {
    width: 100%;
    height: 100%;
    border-top-color: rgba(34, 211, 238, 0.8);
    border-right-color: rgba(37, 99, 235, 0.25);
    animation: coreRotate 18s linear infinite;
}


.ring-middle {
    width: 78%;
    height: 78%;
    border-bottom-color: rgba(37, 99, 235, 0.7);
    border-left-color: rgba(34, 211, 238, 0.3);
    animation: coreRotateReverse 13s linear infinite;
}


.ring-inner {
    width: 56%;
    height: 56%;
    border-top-color: rgba(34, 211, 238, 0.5);
    border-bottom-color: rgba(37, 99, 235, 0.25);
    animation: coreRotate 9s linear infinite;
}


.core-center {
    width: 100px;
    height: 100px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(34, 211, 238, 0.45);
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(6, 182, 212, 0.2),
            rgba(37, 99, 235, 0.06) 60%,
            transparent
        );
    box-shadow:
        0 0 30px rgba(6, 182, 212, 0.18),
        inset 0 0 30px rgba(6, 182, 212, 0.1);
    z-index: 3;
}


.core-center span {
    font-family: var(--font-tech);
    font-size: 18px;
    color: var(--cyan-light);
    text-shadow: 0 0 15px rgba(34, 211, 238, 0.7);
}


.core-orbit {
    position: absolute;
    border: 1px dashed rgba(56, 189, 248, 0.15);
    border-radius: 50%;
}


.orbit-1 {
    width: 100%;
    height: 55%;
    transform: rotate(28deg);
    animation: orbitPulse 6s ease-in-out infinite;
}


.orbit-2 {
    width: 100%;
    height: 42%;
    transform: rotate(-32deg);
    animation: orbitPulse 7s ease-in-out infinite reverse;
}


.orbit-3 {
    width: 65%;
    height: 100%;
    transform: rotate(55deg);
    animation: orbitPulse 8s ease-in-out infinite;
}


.core-orbit span {
    position: absolute;
    width: 8px;
    height: 8px;
    top: 50%;
    left: -4px;
    border-radius: 50%;
    background: var(--cyan-light);
    box-shadow:
        0 0 10px var(--cyan),
        0 0 25px var(--cyan);
}


.floating-tech-card {
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 10px;
    background: rgba(8, 13, 31, 0.78);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    animation: floatingCard 5s ease-in-out infinite;
}


.floating-tech-card i {
    color: var(--cyan-light);
    font-size: 16px;
}


.floating-tech-card strong {
    display: block;
    font-family: var(--font-tech);
    font-size: 10px;
    letter-spacing: 0.1em;
}


.floating-tech-card small {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 9px;
}


.card-voltage {
    left: 0;
    top: 20%;
}


.card-electronic {
    right: -10px;
    bottom: 18%;
    animation-delay: -2s;
}


.hero-scan-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.7), transparent);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
    opacity: 0.35;
    animation: heroScan 7s linear infinite;
}


/* =========================================================
   09 — CIRCUIT LAYER
========================================================= */

.circuit-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}


.circuit-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.35), transparent);
    opacity: 0.45;
}


.line-1 { width: 32%; top: 25%; left: 0; }
.line-2 { width: 26%; top: 72%; right: 0; }
.line-3 { width: 20%; top: 42%; right: 2%; }
.line-4 { width: 18%; top: 84%; left: 20%; }


.circuit-node {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan-light);
    box-shadow:
        0 0 10px var(--cyan),
        0 0 25px rgba(34, 211, 238, 0.5);
    animation: nodePulse 2.5s ease-in-out infinite;
}


.node-1 { left: 30%; top: 25%; }
.node-2 { right: 28%; top: 42%; animation-delay: -0.8s; }
.node-3 { right: 2%; top: 72%; animation-delay: -1.5s; }
.node-4 { left: 20%; top: 84%; animation-delay: -2s; }


.energy-pulse {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--white);
    box-shadow:
        0 0 8px var(--white),
        0 0 20px var(--cyan);
    opacity: 0;
}


.pulse-1 {
    top: calc(25% - 3px);
    left: 5%;
    animation: circuitFlow1 5s linear infinite;
}


.pulse-2 {
    top: calc(72% - 3px);
    right: 5%;
    animation: circuitFlow2 6s linear infinite;
}


.pulse-3 {
    top: calc(42% - 3px);
    right: 8%;
    animation: circuitFlow3 4s linear infinite;
}


/* =========================================================
   10 — ABOUT
   Les sections claires laissent voir le fond global
   (grille, halos, particules) derrière elles.
========================================================= */

.tech-about {
    background: radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.08), transparent 30%);
}


.tech-about::before {
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
    background-size: 45px 45px;
    -webkit-mask-image: linear-gradient(to bottom, black, transparent);
    mask-image: linear-gradient(to bottom, black, transparent);
}


.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 30px;
}


/* Carte claire : fond plus opaque au lieu d'un flou
   d'arrière-plan (coûteux à calculer sur mobile) */

.tech-card {
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}


.tech-card::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    transition: left 0.7s ease;
}


.tech-card:hover::before {
    left: 100%;
}


.tech-card:hover {
    transform: translateY(-7px);
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow:
        0 25px 70px rgba(15, 23, 42, 0.12),
        0 0 25px rgba(37, 99, 235, 0.05);
}


.about-content {
    padding: 42px;
}


.card-tech-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 65px;
    height: 65px;
    border-top: 1px solid rgba(34, 211, 238, 0.45);
    border-right: 1px solid rgba(34, 211, 238, 0.45);
}


.card-index {
    display: block;
    margin-bottom: 20px;
    color: var(--primary);
    font-family: var(--font-tech);
    font-size: 10px;
    letter-spacing: 0.16em;
}


.about-content h3 {
    margin-bottom: 24px;
    font-size: 31px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}


.about-content h3 span {
    display: block;
    color: var(--primary);
}


.about-content p {
    margin-bottom: 17px;
    color: var(--text-light);
    font-size: 15px;
}


.about-signature {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
}


.signature-line {
    width: 45px;
    height: 2px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--primary), var(--cyan));
}


.about-signature strong {
    font-family: var(--font-tech);
    font-size: 12px;
    letter-spacing: 0.12em;
}


.about-signature small {
    margin-top: 3px;
    color: var(--text-light);
    font-size: 11px;
    letter-spacing: 0.06em;
}


.about-info {
    display: grid;
    gap: 14px;
}


.info-card {
    min-height: 120px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 17px;
}


.info-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.07);
}


.info-card small {
    display: block;
    margin-bottom: 4px;
    color: var(--text-light);
    font-family: var(--font-tech);
    font-size: 10px;
    letter-spacing: 0.1em;
}


.info-card strong {
    display: block;
    font-size: 14px;
}


/* =========================================================
   11 — PARCOURS
========================================================= */

/* Le fond sombre est conservé (il était écrasé par
   le dégradé seul → texte blanc sur fond clair) */

.tech-parcours {
    background:
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.09), transparent 30%),
        var(--gradient-dark);
}


.tech-parcours::before {
    background-image:
        linear-gradient(
            90deg,
            transparent 49.8%,
            rgba(34, 211, 238, 0.06) 50%,
            transparent 50.2%
        );
}


/* Décor de fond (éléments présents dans le HTML
   mais qui n'avaient aucun style) */

.timeline-tech-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}


.timeline-energy {
    position: absolute;
    top: 62%;
    left: 0;
    width: 16%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.3), transparent);
}


.timeline-node {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan-light);
    box-shadow:
        0 0 10px var(--cyan),
        0 0 22px rgba(34, 211, 238, 0.4);
    animation: nodePulse 3s ease-in-out infinite;
}


.node-a { left: 16%; top: calc(62% - 3px); }
.node-b { right: 8%; top: 55%; animation-delay: -1s; }
.node-c { left: 9%; bottom: 14%; animation-delay: -2s; }


.timeline {
    position: relative;
    max-width: 900px;
    margin-inline: auto;
}


.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(34, 211, 238, 0.6), transparent);
}


/* Impulsion lumineuse qui parcourt la ligne de temps */

.timeline::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, transparent, var(--cyan-light), transparent) no-repeat;
    background-size: 100% 120px;
    filter: drop-shadow(0 0 6px var(--cyan));
    pointer-events: none;
    animation: timelinePulse 5s linear infinite;
}


.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    margin-bottom: 70px;
}


.timeline-item:last-child {
    margin-bottom: 0;
}


.timeline-item:nth-child(even) .timeline-content {
    grid-column: 2;
}


.timeline-item:nth-child(odd) .timeline-content {
    grid-column: 1;
}


.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    width: 48px;
    height: 48px;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    border: 1px solid rgba(34, 211, 238, 0.5);
    border-radius: 50%;
    background: #071024;
    color: var(--cyan-light);
    font-family: var(--font-tech);
    font-size: 11px;
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.15);
    z-index: 4;
}


.tech-card-dark {
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}


.tech-card-dark::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    transition: left 0.8s ease;
}


.tech-card-dark:hover::before {
    left: 100%;
}


.tech-card-dark:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.2);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(6, 182, 212, 0.06);
}


.timeline-content {
    padding: 30px;
}


.timeline-date {
    display: block;
    margin-bottom: 10px;
    color: var(--cyan);
    font-family: var(--font-tech);
    font-size: 10px;
    letter-spacing: 0.13em;
}


.timeline-content h3 {
    margin-bottom: 12px;
    font-size: 20px;
}


.timeline-content p {
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
}


/* =========================================================
   12 — EXPÉRIENCES
========================================================= */

.tech-experiences {
    background: radial-gradient(circle at 80% 30%, rgba(6, 182, 212, 0.06), transparent 35%);
}


.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}


.experience-card {
    overflow: hidden;
}


.experience-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #e2e8f0;
}


.experience-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.8s ease,
        filter 0.8s ease;
}


.experience-card:hover .experience-image img {
    transform: scale(1.07);
    filter: saturate(1.1) contrast(1.04);
}


.experience-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 8, 22, 0.65), transparent 55%);
}


.experience-number {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    font-family: var(--font-tech);
    color: var(--white);
    font-size: 11px;
}


.experience-content {
    padding: 28px;
}


.experience-label {
    color: var(--primary);
    font-family: var(--font-tech);
    font-size: 9px;
    letter-spacing: 0.14em;
}


.experience-content h3 {
    margin: 8px 0 12px;
    font-size: 20px;
}


.experience-content p {
    color: var(--text-light);
    font-size: 14px;
}


.experience-line {
    width: 35px;
    height: 2px;
    margin-top: 20px;
    background: linear-gradient(90deg, var(--primary), var(--cyan));
    transition: width var(--transition);
}


.experience-card:hover .experience-line {
    width: 100%;
}


/* =========================================================
   13 — COMPÉTENCES
========================================================= */

.tech-competences {
    background:
        radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.09), transparent 45%),
        var(--gradient-dark);
}


.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}


.skill-card {
    padding: 30px;
    min-height: 290px;
}


.skill-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 13px;
    color: var(--cyan-light);
    background: rgba(6, 182, 212, 0.06);
    font-size: 19px;
    box-shadow: inset 0 0 20px rgba(6, 182, 212, 0.04);
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}


/* 360° (et non 180°) : l'icône termine à l'endroit
   au lieu de s'afficher en miroir */

.skill-card:hover .skill-icon {
    transform: rotateY(360deg);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.15);
}


.skill-code {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-tech);
    font-size: 9px;
    letter-spacing: 0.15em;
}


.skill-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
}


.skill-card p {
    min-height: 75px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
}


.skill-progress {
    height: 3px;
    margin-top: 22px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
}


.skill-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--cyan));
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
    transform-origin: left;
    animation: skillLoad 2s ease forwards;
}


/* =========================================================
   14 — QUALITÉS
========================================================= */

.tech-qualities {
    background: radial-gradient(circle at 10% 50%, rgba(37, 99, 235, 0.06), transparent 30%);
}


.qualities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}


.quality-item {
    min-height: 130px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 16px;
}


.quality-item i {
    color: var(--primary);
    font-size: 20px;
}


.quality-item span {
    font-size: 15px;
    font-weight: 600;
}


/* =========================================================
   15 — PROJETS
========================================================= */

.tech-projects {
    background:
        radial-gradient(circle at 70% 60%, rgba(6, 182, 212, 0.08), transparent 35%),
        var(--gradient-dark);
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}


.project-card {
    overflow: hidden;
}


.project-image {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: var(--dark-3);
}


.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s ease;
}


.project-card:hover .project-image img {
    transform: scale(1.08);
}


.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    background: linear-gradient(to top, rgba(5, 8, 22, 0.75), transparent 60%);
}


.project-overlay span {
    color: var(--cyan-light);
    font-family: var(--font-tech);
    font-size: 9px;
    letter-spacing: 0.15em;
}


.project-content {
    padding: 28px;
}


.project-category {
    color: var(--cyan);
    font-family: var(--font-tech);
    font-size: 10px;
    letter-spacing: 0.14em;
}


.project-content h3 {
    margin: 8px 0 12px;
    font-size: 20px;
}


.project-content p {
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
}


.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
}


/* 7 px → 10 px : les technologies étaient illisibles */

.project-tech span {
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-tech);
    font-size: 10px;
    letter-spacing: 0.04em;
}


/* =========================================================
   16 — CERTIFICATIONS
========================================================= */

.tech-certifications {
    background: radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.06), transparent 35%);
}


.certifications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}


.certification-card {
    overflow: hidden;
}


.certificate-image {
    position: relative;
    height: 260px;
    padding: 18px;
    background: linear-gradient(145deg, #eef2ff, #f8fafc);
}


.certificate-image::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    pointer-events: none;
}


.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition);
}


.certification-card:hover .certificate-image img {
    transform: scale(1.04);
}


.certificate-content {
    padding: 24px;
}


.certificate-content span {
    color: var(--primary);
    font-family: var(--font-tech);
    font-size: 9px;
    letter-spacing: 0.13em;
}


.certificate-content h3 {
    margin: 8px 0;
    font-size: 18px;
}


.certificate-content p {
    color: var(--text-light);
    font-size: 14px;
}


/* ---------- Certifications chargées depuis Supabase ---------- */

/* Message pendant le chargement */
.certifications-loading {
    grid-column: 1 / -1;
    padding: 40px 0;
    color: var(--text-light);
    font-size: 14px;
    text-align: center;
}

/* Organisme */
.certificate-content .certificate-issuer {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

/* Date d'obtention */
.certificate-content .certificate-date {
    margin-top: 2px;
    font-size: 13px;
}

.certificate-content .certificate-description {
    margin-top: 10px;
}

/* Lien « Voir le certificat » */
.certificate-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    transition: color var(--transition);
}

.certificate-link i {
    font-size: 11px;
    transition: transform var(--transition);
}

.certificate-link:hover {
    color: var(--primary-dark);
}

.certificate-link:hover i {
    transform: translate(2px, -2px);
}

/* Certification sans image : grande icône */
.certificate-image--empty {
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 54px;
}

.certificate-image--empty i {
    opacity: 0.35;
}


/* =========================================================
   17 — AMBITIONS
========================================================= */

.ambitions-section {
    min-height: 600px;
    display: flex;
    align-items: center;
}


.tech-ambitions {
    background:
        radial-gradient(circle at center, rgba(6, 182, 212, 0.12), transparent 32%),
        var(--dark);
}


.ambitions-content {
    position: relative;
    max-width: 850px;
    margin-inline: auto;
    text-align: center;
    z-index: 3;
}


.ambitions-content h2 {
    margin-bottom: 25px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}


.ambitions-content h2 span {
    display: block;
    color: var(--cyan-light);
}


.ambitions-content p {
    max-width: 700px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 16px;
}


.ambition-values {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}


.ambition-values span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border: 1px solid rgba(34, 211, 238, 0.16);
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.025);
    font-family: var(--font-tech);
    font-size: 10px;
    letter-spacing: 0.08em;
}


.ambition-values i {
    color: var(--cyan);
}


/* AMBITION CORE */

.ambition-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 700px;
    height: 700px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
}


.ambition-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(34, 211, 238, 0.08);
    border-radius: 50%;
}


.ambition-ring.ring-1 {
    animation: coreRotate 20s linear infinite;
}


.ambition-ring.ring-2 {
    inset: 12%;
    animation: coreRotateReverse 14s linear infinite;
}


.ambition-ring.ring-3 {
    inset: 25%;
    border-style: dashed;
    animation: coreRotate 10s linear infinite;
}


.ambition-pulse {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.3), transparent 70%);
    box-shadow: 0 0 80px rgba(6, 182, 212, 0.2);
    animation: ambitionPulse 3s ease-in-out infinite;
}


/* =========================================================
   18 — CONTACT
========================================================= */

.contact-section {
    background: radial-gradient(circle at 90% 50%, rgba(37, 99, 235, 0.08), transparent 35%);
}


.contact-grid {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 22px;
}


.contact-intro {
    padding: 45px;
}


.contact-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    color: var(--primary);
    font-family: var(--font-tech);
    font-size: 10px;
    letter-spacing: 0.12em;
}


.contact-status span {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
    animation: statusPulse 2s infinite;
}


.contact-intro h3 {
    margin-bottom: 18px;
    font-size: 38px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}


.contact-intro h3 span {
    display: block;
    color: var(--primary);
}


.contact-intro p {
    color: var(--text-light);
    font-size: 15px;
}


.contact-socials {
    display: flex;
    gap: 8px;
    margin-top: 30px;
}


.contact-socials a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 9px;
    color: var(--text-light);
    transition:
        color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}


.contact-socials a:hover {
    color: var(--primary);
    border-color: rgba(37, 99, 235, 0.35);
    transform: translateY(-4px);
}


.contact-info {
    display: grid;
    gap: 14px;
}


.contact-item {
    min-height: 120px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 15px;
}


.contact-item > div {
    min-width: 0;
}


.contact-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.07);
}


.contact-item small {
    display: block;
    margin-bottom: 5px;
    color: var(--text-light);
    font-family: var(--font-tech);
    font-size: 10px;
    letter-spacing: 0.1em;
}


/* L'adresse e-mail peut passer à la ligne sur petit écran */

.contact-item strong {
    display: block;
    font-size: 14px;
    overflow-wrap: anywhere;
}


.contact-arrow {
    margin-left: auto;
    color: rgba(37, 99, 235, 0.5);
    transition: transform var(--transition);
}


.contact-item:hover .contact-arrow {
    transform: translate(4px, -4px);
}


/* CONTACT CORE */

.contact-tech-core {
    position: absolute;
    right: -150px;
    top: 50%;
    width: 600px;
    height: 600px;
    transform: translateY(-50%);
    pointer-events: none;
}


.contact-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(37, 99, 235, 0.08);
    border-radius: 50%;
}


.contact-ring.ring-1 {
    animation: coreRotate 20s linear infinite;
}


.contact-ring.ring-2 {
    inset: 12%;
    border-color: rgba(6, 182, 212, 0.08);
    animation: coreRotateReverse 15s linear infinite;
}


.contact-ring.ring-3 {
    inset: 25%;
    border-style: dashed;
    animation: coreRotate 10s linear infinite;
}


.contact-scan {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.6), transparent);
    animation: contactScan 4s ease-in-out infinite;
}


/* =========================================================
   19 — FOOTER
========================================================= */

.site-footer {
    position: relative;
    padding: 28px 0;
    color: rgba(255, 255, 255, 0.6);
    background: #03050d;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}


.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}


.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}


.footer-brand .logo-mark {
    width: 35px;
    height: 35px;
    font-size: 10px;
}


.footer-brand strong {
    display: block;
    color: var(--white);
    font-size: 13px;
}


.footer-brand small {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
}


.footer-system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-tech);
    font-size: 9px;
    letter-spacing: 0.1em;
}


.footer-system-status .status-dot {
    width: 5px;
    height: 5px;
}


.footer-copyright {
    font-size: 12px;
}


/* =========================================================
   20 — BACK TO TOP
========================================================= */

.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 10px;
    color: var(--cyan-light);
    background: rgba(5, 8, 22, 0.82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition:
        opacity var(--transition),
        visibility var(--transition),
        transform var(--transition),
        border-color var(--transition);
    z-index: 900;
}


.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.back-to-top:hover {
    border-color: rgba(34, 211, 238, 0.6);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.15);
}


/* =========================================================
   21 — SECTION TECH DECORATIONS (À PROPOS)
========================================================= */

.section-tech-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}


.data-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.2), transparent);
}


.data-line-1 { width: 35%; top: 20%; right: 0; }
.data-line-2 { width: 25%; top: 70%; left: 0; }
.data-line-3 { width: 20%; top: 45%; right: 5%; }


.data-node {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.7);
    animation: nodePulse 3s ease-in-out infinite;
}


/* Positions manquantes : les 3 points étaient empilés
   dans le coin supérieur gauche de la section */

.data-node-1 { right: 35%; top: calc(20% - 2px); }
.data-node-2 { left: 25%; top: calc(70% - 2px); animation-delay: -1s; }
.data-node-3 { right: 25%; top: calc(45% - 2px); animation-delay: -2s; }


/* =========================================================
   22 — NETWORK BACKGROUND (EXPÉRIENCES)
========================================================= */

.network-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.5;
}


.network-node {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.7);
    animation: nodePulse 4s ease-in-out infinite;
}


.n1 { left: 8%; top: 30%; }
.n2 { left: 30%; top: 70%; animation-delay: -0.8s; }
.n3 { left: 55%; top: 20%; animation-delay: -1.6s; }
.n4 { right: 20%; top: 65%; animation-delay: -2.4s; }
.n5 { right: 7%; top: 25%; animation-delay: -3.2s; }


.network-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.2), transparent);
    transform-origin: left center;
}


.nl1 { width: 28%; left: 8%; top: 30%; transform: rotate(23deg); }
.nl2 { width: 32%; left: 30%; top: 70%; transform: rotate(-24deg); }
.nl3 { width: 27%; right: 7%; top: 25%; transform: rotate(32deg); }


/* =========================================================
   23 — CHIP BACKGROUND (COMPÉTENCES)
========================================================= */

.chip-background {
    position: absolute;
    width: 600px;
    height: 600px;
    right: -170px;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(34, 211, 238, 0.08);
    border-radius: 50%;
    opacity: 0.8;
    pointer-events: none;
}


.chip-background::before {
    content: "";
    position: absolute;
    inset: 18%;
    border: 1px dashed rgba(37, 99, 235, 0.18);
    border-radius: 50%;
    animation: coreRotate 15s linear infinite;
}


.chip-background::after {
    content: "";
    position: absolute;
    inset: 35%;
    border: 1px solid rgba(34, 211, 238, 0.2);
    transform: rotate(45deg);
    animation: chipPulse 4s ease-in-out infinite;
}


.chip-line {
    position: absolute;
    height: 1px;
    width: 35%;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.25));
}


.chip-line-1 { top: 25%; left: 0; }
.chip-line-2 { top: 75%; left: 0; }
.chip-line-3 { top: 25%; right: 0; transform: scaleX(-1); }
.chip-line-4 { top: 75%; right: 0; transform: scaleX(-1); }


.chip-core {
    position: absolute;
    width: 100px;
    height: 100px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(34, 211, 238, 0.4);
    background: rgba(6, 182, 212, 0.04);
    box-shadow: 0 0 35px rgba(6, 182, 212, 0.1);
    animation: chipCorePulse 3s ease-in-out infinite;
}


/* =========================================================
   24 — PROJECT ENERGY NETWORK
========================================================= */

.project-energy-network {
    position: absolute;
    inset: 0;
    pointer-events: none;
}


.project-node {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan-light);
    box-shadow:
        0 0 10px var(--cyan),
        0 0 25px rgba(34, 211, 238, 0.4);
    animation: nodePulse 3s ease-in-out infinite;
}


.pn1 { left: 5%; top: 20%; }
.pn2 { left: 28%; bottom: 15%; animation-delay: -0.75s; }
.pn3 { right: 25%; top: 18%; animation-delay: -1.5s; }
.pn4 { right: 5%; bottom: 25%; animation-delay: -2.25s; }


.project-path {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.25), transparent);
}


.pp1 { width: 30%; left: 5%; top: 20%; transform: rotate(24deg); }
.pp2 { width: 33%; left: 28%; bottom: 15%; transform: rotate(-28deg); }
.pp3 { width: 25%; right: 5%; bottom: 25%; transform: rotate(-35deg); }


/* =========================================================
   25 — CERTIFICATION RINGS
========================================================= */

.certification-rings {
    position: absolute;
    width: 550px;
    height: 550px;
    right: -180px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}


.certification-rings span {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(37, 99, 235, 0.08);
    border-radius: 50%;
}


.certification-rings span:nth-child(1) {
    animation: coreRotate 20s linear infinite;
}


.certification-rings span:nth-child(2) {
    inset: 18%;
    border-style: dashed;
    animation: coreRotateReverse 12s linear infinite;
}


.certification-rings span:nth-child(3) {
    inset: 35%;
    border-color: rgba(6, 182, 212, 0.15);
    animation: coreRotate 8s linear infinite;
}


/* =========================================================
   26 — RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .nav-links {
        gap: 0;
    }

    .nav-link {
        padding-inline: 8px;
        font-size: 12px;
    }

    .hero-container {
        gap: 30px;
    }

    .hero h1 {
        font-size: clamp(48px, 7vw, 72px);
    }

}


@media (max-width: 900px) {

    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .main-navigation {
        position: absolute;
        top: calc(var(--header-height) + 8px);
        left: 20px;
        right: 20px;
        padding: 12px;
        border: 1px solid rgba(34, 211, 238, 0.15);
        border-radius: 14px;
        background: rgba(5, 8, 22, 0.96);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition:
            opacity var(--transition),
            visibility var(--transition),
            transform var(--transition);
    }

    .main-navigation.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-link {
        display: block;
        padding: 13px 14px;
        font-size: 14px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-description {
        margin-inline: auto;
    }

    /* Étiquettes et boutons centrés comme le reste du hero */
    .hero-tags,
    .hero-actions,
    .hero-socials {
        justify-content: center;
    }

    .hero-visual {
        min-height: 530px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Cartes d'infos sur 2 colonnes au lieu d'une longue pile */
    .about-info {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Timeline : la ligne passe à gauche.
       Une seule colonne (l'ancienne colonne vide de 48 px
       décalait inutilement les cartes vers la droite). */
    .tech-parcours::before,
    .timeline-energy,
    .node-a {
        display: none;
    }

    .timeline::before,
    .timeline::after {
        left: 24px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 40px;
        padding-left: 68px;
    }

    .timeline-marker {
        left: 24px;
    }

    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        grid-column: 1;
    }

    .experience-grid,
    .skills-grid,
    .projects-grid,
    .certifications-grid,
    .qualities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 3 cartes sur 2 colonnes : la dernière prend toute la largeur */
    .experience-grid > :last-child:nth-child(odd),
    .projects-grid > :last-child:nth-child(odd),
    .certifications-grid > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

}


@media (max-width: 600px) {

    :root {
        --header-height: 70px;
    }

    .container {
        width: min(calc(100% - 28px), var(--max-width));
    }

    .section {
        padding: 85px 0;
    }

    .section-heading {
        margin-bottom: 45px;
    }

    .section-heading h2 {
        font-size: 35px;
    }

    .hero {
        padding-top: calc(var(--header-height) + 45px);
    }

    .hero h1 {
        font-size: clamp(46px, 14vw, 66px);
    }

    .hero h2 {
        font-size: 18px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-visual {
        min-height: 470px;
    }

    .profile-frame {
        width: 290px;
    }

    .energy-core {
        width: 390px;
        height: 390px;
    }

    /* « scale » (et non transform) : l'animation floatingCard
       utilise déjà transform et annulait la réduction */
    .floating-tech-card {
        scale: 0.8;
    }

    .card-voltage {
        left: -15px;
    }

    .card-electronic {
        right: -15px;
    }

    .about-content,
    .contact-intro {
        padding: 28px;
    }

    .about-content h3,
    .contact-intro h3 {
        font-size: 28px;
    }

    .about-info,
    .experience-grid,
    .skills-grid,
    .projects-grid,
    .certifications-grid,
    .qualities-grid {
        grid-template-columns: 1fr;
    }

    .info-card,
    .contact-item,
    .quality-item {
        min-height: 96px;
    }

    .skill-card {
        min-height: auto;
    }

    .skill-card p {
        min-height: auto;
    }

    .ambitions-section {
        min-height: 550px;
    }

    .ambition-core {
        width: 500px;
        height: 500px;
    }

    .contact-tech-core,
    .chip-background,
    .certification-rings {
        opacity: 0.45;
    }

    .footer-copyright {
        text-align: center;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
    }

}


@media (max-width: 400px) {

    .logo-text {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .hero-visual {
        min-height: 400px;
    }

    .profile-frame {
        width: 245px;
    }

    .energy-core {
        width: 330px;
        height: 330px;
    }

    .floating-tech-card {
        display: none;
    }

    .timeline-item {
        padding-left: 58px;
    }

}


/* Téléphone à l'horizontale : pas de place pour l'indicateur */

@media (max-height: 560px) and (orientation: landscape) {

    .scroll-indicator {
        display: none;
    }

}


/* =========================================================
   27 — ACCESSIBILITY / REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}


/* =========================================================
   28 — SCROLL ANIMATION SUPPORT (script.js)
========================================================= */

/* « translate » (et non transform) : l'apparition ne bloque
   plus l'effet de survol des cartes. script.js retire ces
   classes une fois l'apparition terminée. */

.animate-element {
    opacity: 0;
    translate: 0 25px;
    transition:
        opacity 0.8s ease var(--animation-delay, 0ms),
        translate 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--animation-delay, 0ms);
}


.animate-element.show-element {
    opacity: 1;
    translate: 0 0;
}


/* Les barres de compétences se remplissent quand
   la carte apparaît (et non au chargement de la page) */

.skill-card.animate-element:not(.show-element) .skill-progress span {
    animation-play-state: paused;
}


/* =========================================================
   29 — IMAGE INTROUVABLE (script.js)
   La classe .has-image-error est posée sur le conteneur :
   un ::after ne s'affiche pas sur une balise <img>.
========================================================= */

img.image-error {
    opacity: 0;
}


.has-image-error {
    background: linear-gradient(135deg, #0b1124, #111827) !important;
}


.has-image-error::after {
    content: "IMAGE OFFLINE";
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-tech);
    font-size: 10px;
    letter-spacing: 0.15em;
}


/* =========================================================
   30 — EFFETS INTERACTIFS (script.js)
========================================================= */

/* Sections hors écran : animations en pause
   (.energy-ready n'est ajouté que si le suivi fonctionne) */

.energy-ready .tech-section:not(.energy-active)::before,
.energy-ready .tech-section:not(.energy-active) *,
.energy-ready .tech-section:not(.energy-active) *::before,
.energy-ready .tech-section:not(.energy-active) *::after {
    animation-play-state: paused;
}


/* Halo lumineux qui suit la souris
   (« screen » : visible sur fond sombre, discret sur fond clair) */

.cursor-tech-glow {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 360px;
    height: 360px;
    margin: -180px 0 0 -180px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(34, 211, 238, 0.14),
            rgba(37, 99, 235, 0.06) 40%,
            transparent 70%
        );
    mix-blend-mode: screen;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    will-change: transform;
}


.cursor-tech-glow.is-visible {
    opacity: 1;
}


@media (hover: none), (pointer: coarse) {

    .cursor-tech-glow {
        display: none;
    }

}


/* Cartes 3D : inclinaison + reflet qui suit la souris
   (variables --card-* fournies par script.js) */

@media (hover: hover) and (pointer: fine) {

    .experience-card:hover,
    .certification-card:hover {
        transform:
            perspective(900px)
            rotateX(var(--card-rotate-x, 0deg))
            rotateY(var(--card-rotate-y, 0deg))
            translateY(-7px);
    }

    .skill-card:hover,
    .project-card:hover {
        transform:
            perspective(900px)
            rotateX(var(--card-rotate-x, 0deg))
            rotateY(var(--card-rotate-y, 0deg))
            translateY(-6px);
    }

    .experience-card::after,
    .skill-card::after,
    .project-card::after,
    .certification-card::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        border-radius: inherit;
        background:
            radial-gradient(
                260px circle at var(--card-mouse-x, 50%) var(--card-mouse-y, 50%),
                rgba(34, 211, 238, 0.1),
                transparent 65%
            );
        opacity: 0;
        transition: opacity var(--transition);
        pointer-events: none;
    }

    .experience-card:hover::after,
    .skill-card:hover::after,
    .project-card:hover::after,
    .certification-card:hover::after {
        opacity: 1;
    }

}


/* =========================================================
   31 — IMPRESSION
   Version sobre, lisible sur papier ou en PDF.
========================================================= */

@media print {

    .global-tech-background,
    .site-header,
    .skip-link,
    .back-to-top,
    .scroll-indicator,
    .hero-scan-line,
    .tech-layer,
    .energy-core,
    .floating-tech-card,
    .section-tech-decoration,
    .timeline-tech-background,
    .network-background,
    .chip-background,
    .project-energy-network,
    .certification-rings,
    .ambition-core,
    .contact-tech-core,
    .footer-system-status,
    .cursor-tech-glow,
    .tech-section::before,
    .timeline::after {
        display: none !important;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    body {
        background: #ffffff;
        color: #111827;
    }

    .hero,
    .section,
    .section-dark,
    .site-footer {
        background: #ffffff !important;
        color: #111827 !important;
    }

    .hero *,
    .section-dark *,
    .site-footer * {
        color: #111827 !important;
    }

    .hero {
        min-height: auto;
        padding: 24px 0;
    }

    .hero h1 span {
        background: none;
        filter: none;
    }

    .section {
        padding: 28px 0;
        overflow: visible;
    }

    .tech-card,
    .tech-card-dark {
        background: #ffffff !important;
        border: 1px solid #d1d5db !important;
        transform: none !important;
        break-inside: avoid;
    }

    .skill-progress {
        background: #e5e7eb !important;
    }

    .animate-element {
        opacity: 1 !important;
        translate: none !important;
    }

}


/* =========================================================
   32 — ANIMATIONS
========================================================= */

@keyframes globalGridMove {
    from {
        transform: perspective(800px) rotateX(55deg) translate3d(0, 0, 0);
    }
    to {
        transform: perspective(800px) rotateX(55deg) translate3d(70px, 70px, 0);
    }
}


@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    20%,
    80% {
        opacity: 0.7;
    }
    100% {
        opacity: 0;
        transform: translate3d(40px, -100px, 0);
    }
}


@keyframes logoScan {
    0% {
        transform: translateX(-100%) rotate(-45deg);
    }
    100% {
        transform: translateX(100%) rotate(-45deg);
    }
}


@keyframes statusPulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.45;
        transform: scale(0.7);
    }
}


@keyframes heroGridMove {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 55px 55px;
    }
}


@keyframes heroScan {
    0% {
        top: 0;
        opacity: 0;
    }
    15% {
        opacity: 0.35;
    }
    50% {
        opacity: 0.4;
    }
    85% {
        opacity: 0.2;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}


@keyframes scrollBounce {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(6px);
        opacity: 1;
    }
}


/* Utilisée aussi par les anneaux Ambitions, Contact,
   Certifications et Compétences */

@keyframes coreRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


@keyframes coreRotateReverse {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}


@keyframes orbitPulse {
    0%,
    100% {
        opacity: 0.35;
    }
    50% {
        opacity: 1;
    }
}


@keyframes floatingCard {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}


/* Pulsation commune à tous les points lumineux
   (remplace circuitNodePulse, networkNode et projectNodePulse,
   qui étaient presque identiques) */

@keyframes nodePulse {
    0%,
    100% {
        opacity: 0.45;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.35);
    }
}


@keyframes circuitFlow1 {
    0% {
        left: 0;
        opacity: 0;
    }
    10%,
    90% {
        opacity: 1;
    }
    100% {
        left: 32%;
        opacity: 0;
    }
}


@keyframes circuitFlow2 {
    0% {
        right: 0;
        opacity: 0;
    }
    10%,
    90% {
        opacity: 1;
    }
    100% {
        right: 26%;
        opacity: 0;
    }
}


@keyframes circuitFlow3 {
    0% {
        right: 0;
        opacity: 0;
    }
    10%,
    90% {
        opacity: 1;
    }
    100% {
        right: 20%;
        opacity: 0;
    }
}


@keyframes timelinePulse {
    from {
        background-position: 0 -120px;
    }
    to {
        background-position: 0 calc(100% + 120px);
    }
}


@keyframes chipPulse {
    0%,
    100% {
        opacity: 0.3;
        transform: rotate(45deg) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: rotate(135deg) scale(1.08);
    }
}


@keyframes chipCorePulse {
    0%,
    100% {
        box-shadow: 0 0 20px rgba(6, 182, 212, 0.05);
    }
    50% {
        box-shadow: 0 0 45px rgba(6, 182, 212, 0.2);
    }
}


@keyframes skillLoad {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}


@keyframes ambitionPulse {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 1;
    }
}


@keyframes contactScan {
    0%,
    100% {
        transform: translateY(-170px);
        opacity: 0;
    }
    50% {
        transform: translateY(170px);
        opacity: 0.6;
    }
}


/* =========================================================
   33 — CONTENU GÉRÉ DEPUIS LE DASHBOARD (script.js v7)
========================================================= */

/* Chargement du contenu (généralement moins d'une seconde) :
   évite d'afficher un instant l'ancien texte */
main {
    transition: opacity 0.35s ease;
}


.content-loading main {
    opacity: 0;
}


/* Libellés saisis en minuscules dans le dashboard */
.timeline-date,
.project-category {
    text-transform: uppercase;
}


/* Parcours : établissement, domaine, lieu */
.timeline-content .timeline-institution {
    margin: -4px 0 12px;
    color: var(--cyan-light);
    font-size: 13px;
    font-weight: 600;
}


.timeline-institution a,
.experience-meta a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}


/* Expériences : type, entreprise, lieu, dates */
.experience-content .experience-meta {
    margin: -4px 0 12px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}


/* Compétences mobilisées / outils */
.experience-skills,
.skill-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}


.experience-skills li {
    padding: 4px 9px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 5px;
    background: rgba(37, 99, 235, 0.06);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 600;
}


.skill-tools li {
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-tech);
    font-size: 10px;
    letter-spacing: 0.04em;
}


/* Vignette quand aucune image n'est choisie */
.experience-image.is-empty,
.project-image.is-empty {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 25%, rgba(6, 182, 212, 0.22), transparent 55%),
        linear-gradient(135deg, #0b1124, #111827);
}


.experience-image.is-empty > i,
.project-image.is-empty > i {
    color: rgba(34, 211, 238, 0.5);
    font-size: 46px;
}


/* Lien « Voir le projet » */
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--cyan-light);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}


.project-link i {
    font-size: 11px;
    transition: transform var(--transition);
}


.project-link:hover i {
    transform: translate(2px, -2px);
}


@media (prefers-reduced-motion: reduce) {

    main {
        transition: none;
    }

}


/* ---------- Cartes repliables (« Voir plus ») ---------- */

/* Une carte ouverte ne rallonge pas ses voisines */
.experience-grid,
.skills-grid,
.projects-grid {
    align-items: start;
}


.skill-card.has-details {
    min-height: 0;
}


/* Hauteur animée : 0 → hauteur réelle du contenu */
.card-details {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}


.is-open .card-details {
    grid-template-rows: 1fr;
}


.card-details-inner {
    min-height: 0;
    overflow: hidden;
}


.skill-card .card-details p {
    min-height: 0;
}


.card-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 8px 14px;
    border: 1px solid;
    border-radius: 8px;
    background: transparent;
    font-family: var(--font-tech);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}


.card-toggle i {
    font-size: 10px;
    transition: transform 0.35s ease;
}


.is-open .card-toggle i {
    transform: rotate(180deg);
}


/* Sections claires (Expériences) */
.card-toggle--light {
    border-color: rgba(37, 99, 235, 0.28);
    color: var(--primary);
}


.card-toggle--light:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.07);
}


/* Sections sombres (Compétences, Projets) */
.card-toggle--dark {
    border-color: rgba(34, 211, 238, 0.3);
    color: var(--cyan-light);
}


.card-toggle--dark:hover {
    border-color: var(--cyan-light);
    background: rgba(34, 211, 238, 0.08);
}


@media (prefers-reduced-motion: reduce) {

    .card-details,
    .card-toggle i {
        transition: none;
    }

}


/* Impression : tout est déplié */
@media print {

    .card-details {
        grid-template-rows: 1fr !important;
    }

    .card-toggle {
        display: none !important;
    }

}


/* =========================================================
   FIN
========================================================= */
