/* =====================================================================
   PORTFOLIO ALEXIS MOTTNER
   Design : Mercedes AMG F1 + Java (sombre, cyan néon, cockpit)
   ===================================================================== */

/* ---------- VARIABLES ---------- */
:root {
    /* Palette Mercedes AMG F1 */
    --bg-deep:        #0a0e12;
    --bg-dark:        #11161c;
    --bg-card:        #161c24;
    --bg-elevated:    #1d242d;
    --border:         #2a3540;
    --border-soft:    #1f2731;

    --text:           #e6edf3;
    --text-muted:     #8b96a3;
    --text-dim:       #5a6573;

    --cyan:           #00d2be;        /* Couleur Mercedes Petronas */
    --cyan-soft:      #00d2be33;
    --cyan-glow:      0 0 12px rgba(0, 210, 190, 0.6);
    --cyan-bright:    #4be3d2;
    --silver:         #c8d0d8;
    --red:            #ff3860;        /* alertes / erreurs */
    --green:          #00ff9d;        /* success */

    /* Typo */
    --font-tech:      'Orbitron', sans-serif;
    --font-body:      'Rajdhani', sans-serif;
    --font-mono:      'JetBrains Mono', monospace;

    /* Spacing */
    --container:      1200px;
    --radius:         4px;
    --transition:     0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;

    /* Grille de fond style cockpit */
    background-image:
        linear-gradient(rgba(0, 210, 190, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 190, 0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cyan-bright); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- LOADING SCREEN ---------- */
#loading-screen {
    position: fixed; inset: 0;
    background: var(--bg-deep);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loading-screen.hidden { opacity: 0; visibility: hidden; }
.loader-content { text-align: center; }
.loader-logo {
    font-family: var(--font-tech);
    font-size: 4rem; font-weight: 900;
    color: var(--cyan);
    text-shadow: var(--cyan-glow);
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    animation: pulse 1.2s ease-in-out infinite;
}
.loader-bar {
    width: 240px; height: 3px;
    background: var(--bg-elevated);
    margin: 0 auto 1rem;
    overflow: hidden;
    border-radius: 2px;
}
.loader-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--cyan), var(--cyan-bright));
    box-shadow: var(--cyan-glow);
    animation: loadFill 1.4s ease-in-out forwards;
}
.loader-text {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes loadFill { to { width: 100%; } }

/* ---------- HEADER ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10, 14, 18, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo {
    font-family: var(--font-tech);
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    color: var(--text);
    display: flex; align-items: center; gap: 0.5rem;
}
.logo:hover { color: var(--text); }
.logo-bracket { color: var(--cyan); font-weight: 500; }
.logo-status {
    font-size: 0.65rem;
    background: var(--cyan);
    color: var(--bg-deep);
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
    margin-left: 0.5rem;
    font-family: var(--font-mono);
    animation: blink 2s infinite;
}
@keyframes blink { 50% { opacity: 0.4; } }

.main-nav ul { display: flex; gap: 0.3rem; }
.nav-link {
    display: inline-block;
    padding: 0.6rem 1.1rem;
    font-family: var(--font-tech);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
}
.nav-link:hover {
    color: var(--cyan);
    border-color: var(--border);
    background: var(--bg-card);
}
.nav-link.is-active {
    color: var(--cyan);
    border-color: var(--cyan);
    box-shadow: inset 0 0 10px rgba(0, 210, 190, 0.15);
}
.nav-link.is-active::before {
    content: '';
    position: absolute;
    bottom: -1px; left: 50%;
    transform: translateX(-50%);
    width: 60%; height: 2px;
    background: var(--cyan);
    box-shadow: var(--cyan-glow);
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; }
.nav-toggle span { width: 25px; height: 2px; background: var(--cyan); transition: var(--transition); }

.hud-bar {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-soft);
    padding: 0.4rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.15em;
    display: flex; align-items: center; justify-content: center; gap: 0.7rem;
}
.hud-dot {
    width: 8px; height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: var(--cyan-glow);
    animation: blink 2s infinite;
}
.hud-sep { color: var(--cyan); opacity: 0.5; }
.hud-label { text-transform: uppercase; }

/* ---------- MAIN ---------- */
.main-content {
    max-width: var(--container);
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: 70vh;
}

/* ---------- TITRES ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-tech);
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.05em;
    line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.8rem; color: var(--cyan); }
.section-title {
    display: flex; align-items: center; gap: 1rem;
    margin: 3rem 0 2rem;
}
.section-title::before {
    content: ''; display: block;
    width: 4px; height: 28px;
    background: var(--cyan);
    box-shadow: var(--cyan-glow);
}
.section-title small {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.2em;
    margin-left: 0.5rem;
}

/* ---------- HERO (accueil) ---------- */
.hero {
    min-height: 70vh;
    display: flex; flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 2rem 0;
}
.hero-tag {
    font-family: var(--font-mono);
    color: var(--cyan);
    letter-spacing: 0.3em;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    display: flex; align-items: center; gap: 0.8rem;
}
.hero-tag::before {
    content: ''; width: 30px; height: 1px; background: var(--cyan);
}
.hero h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1;
    margin-bottom: 1.5rem;
}
.hero h1 .accent { color: var(--cyan); text-shadow: var(--cyan-glow); }
.hero-typewriter {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    min-height: 1.6em;
}
.hero-typewriter .cursor {
    display: inline-block;
    width: 9px; height: 1.1em;
    background: var(--cyan);
    margin-left: 4px;
    vertical-align: middle;
    animation: blink 1s steps(2) infinite;
}
.hero-cta {
    display: flex; gap: 1rem; flex-wrap: wrap;
    margin-top: 1rem;
}

/* Telemetry / dashboard cards (style cockpit) */
.telemetry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
}
.telemetry::before {
    content: 'LIVE TELEMETRY';
    position: absolute; top: -10px; left: 20px;
    background: var(--bg-deep);
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0 0.5rem;
    letter-spacing: 0.2em;
}
.telemetry-item { text-align: left; }
.telemetry-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.telemetry-value {
    font-family: var(--font-tech);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--cyan);
    margin-top: 0.3rem;
}
.telemetry-unit { font-size: 0.8rem; color: var(--text-muted); margin-left: 0.2rem; }

/* ---------- BOUTONS ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    font-family: var(--font-tech);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.btn:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 210, 190, 0.3);
    transform: translateY(-2px);
}
.btn-primary {
    background: var(--cyan);
    color: var(--bg-deep);
    border-color: var(--cyan);
}
.btn-primary:hover {
    background: var(--cyan-bright);
    color: var(--bg-deep);
    box-shadow: 0 0 25px rgba(0, 210, 190, 0.6);
}
.btn::after {
    content: '→';
    transition: transform var(--transition);
}
.btn:hover::after { transform: translateX(4px); }

/* ---------- CARDS GÉNÉRIQUES ---------- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--cyan);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--transition);
}
.card:hover {
    border-color: var(--cyan);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 210, 190, 0.1);
}
.card:hover::before { transform: scaleY(1); }
.card-corner {
    position: absolute;
    top: 8px; right: 12px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 0.15em;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ---------- TIMELINE (parcours) ---------- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
    content: '';
    position: absolute; left: 8px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--cyan), transparent);
}
.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.7rem; top: 0.5rem;
    width: 14px; height: 14px;
    background: var(--bg-deep);
    border: 2px solid var(--cyan);
    border-radius: 50%;
    box-shadow: var(--cyan-glow);
}
.timeline-date {
    font-family: var(--font-mono);
    color: var(--cyan);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
}
.timeline-item h3 { color: var(--text); margin-bottom: 0.3rem; }
.timeline-item .place { color: var(--text-muted); font-style: italic; margin-bottom: 0.8rem; }
.timeline-item ul { padding-left: 1.2rem; list-style: none; }
.timeline-item ul li { position: relative; margin-bottom: 0.4rem; color: var(--text); }
.timeline-item ul li::before {
    content: '▸';
    position: absolute; left: -1.2rem;
    color: var(--cyan);
}

/* ---------- SKILLS (barres) ---------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.skill-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.skill-group h3 {
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.skill-item { margin-bottom: 1rem; }
.skill-item:last-child { margin-bottom: 0; }
.skill-label {
    display: flex; justify-content: space-between;
    margin-bottom: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}
.skill-percent { color: var(--cyan); }
.skill-bar {
    width: 100%; height: 6px;
    background: var(--bg-elevated);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}
.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--cyan-bright));
    box-shadow: 0 0 8px rgba(0, 210, 190, 0.5);
    width: 0;
    transition: width 1.5s ease-out;
    border-radius: 3px;
}

/* Liste de compétences (remplace les barres %) */
.skill-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 0.8rem;
    padding-left: 0;
}
.skill-list li {
    position: relative;
    padding-left: 1.2rem;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.7;
}
.skill-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--cyan);
}
@media (max-width: 480px) {
    .skill-list { grid-template-columns: 1fr; }
}

/* ---------- PROJETS ---------- */
.projects-filter {
    display: flex; gap: 0.5rem; flex-wrap: wrap;
    margin-bottom: 2rem;
}
.filter-btn {
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    transition: all var(--transition);
    letter-spacing: 0.1em;
}
.filter-btn:hover { color: var(--cyan); border-color: var(--cyan); }
.filter-btn.is-active {
    background: var(--cyan);
    color: var(--bg-deep);
    border-color: var(--cyan);
}
.project-card { display: flex; flex-direction: column; }
.project-image {
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
    height: 160px;
    margin: -1.8rem -1.8rem 1.2rem;
    display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-tech);
    color: var(--cyan);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}
.project-image::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 210, 190, 0.1) 100%);
}
.project-tags {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
    margin: 0.8rem 0 1rem;
}
.project-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: var(--bg-elevated);
    color: var(--cyan);
    border: 1px solid var(--cyan-soft);
    border-radius: 2px;
    letter-spacing: 0.1em;
}
.project-features {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.project-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    padding-left: 1rem;
    position: relative;
}
.project-features li::before {
    content: '▸';
    position: absolute; left: 0;
    color: var(--cyan);
}

/* ---------- BTS SIO : en-tête de bloc référentiel ---------- */
.bloc-header {
    display: flex; align-items: center; gap: 1rem;
    margin: 2rem 0 1rem;
    padding: 0.9rem 1.1rem;
    background: linear-gradient(90deg, var(--bg-card), transparent);
    border-left: 3px solid var(--cyan);
    border-radius: var(--radius);
}
.bloc-num {
    font-family: var(--font-tech);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--cyan);
    text-shadow: var(--cyan-glow);
    background: var(--bg-deep);
    border: 1px solid var(--cyan-soft);
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
}
.bloc-header-text { flex: 1; }
.bloc-header-text h3 {
    color: var(--text);
    font-size: 1.1rem;
    margin: 0 0 0.3rem;
}
.bloc-option {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    padding: 0.2rem 0.55rem;
    border-radius: 2px;
    text-transform: uppercase;
}
.bloc-option-commun {
    color: var(--silver);
    background: rgba(200, 208, 216, 0.08);
    border: 1px solid var(--silver);
}
.bloc-option-slam {
    color: var(--cyan);
    background: rgba(0, 210, 190, 0.1);
    border: 1px solid var(--cyan);
}

/* Sous-titre de section (Débouchés / Poursuites) */
.subsection-title {
    font-family: var(--font-tech);
    font-size: 1.15rem;
    color: var(--text);
    letter-spacing: 0.06em;
    margin: 2.4rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border);
}
.subsection-title small {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.18em;
    margin-left: 0.5rem;
}
.next-stage-intro {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* ---------- BTS SIO : compétences fusionnées dans la présentation ---------- */
.bts-skills {
    margin-top: 1.8rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border);
}
.bts-skills-head { margin-bottom: 1rem; }
.bts-skills-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--cyan);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}
.bts-skills-head h4 {
    font-family: var(--font-tech);
    color: var(--text);
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    margin: 0;
}
.bts-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
}
.bts-skill {
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.bts-skill-tag {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    color: var(--cyan);
    background: rgba(0, 210, 190, 0.08);
    border: 1px solid var(--cyan-soft);
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
}
.bts-skill p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0;
}

/* ---------- BTS SIO : Après le BTS (débouchés + poursuites) ---------- */
.next-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.next-stage-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem 1.8rem;
    border-top: 3px solid var(--cyan);
}
.next-stage-block-alt {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
}
.next-stage-block header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px dashed var(--border);
}
.next-stage-icon {
    font-size: 2rem;
    line-height: 1;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-deep);
    border: 1px solid var(--cyan-soft);
    border-radius: 4px;
    flex-shrink: 0;
}
.next-stage-block header h3 { margin: 0 0 0.3rem; color: var(--cyan); }
.next-stage-block header p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

.next-stage-list { padding-left: 0; }
.next-stage-list li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.2rem;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.5;
    border-bottom: 1px solid var(--border-soft);
}
.next-stage-list li:last-child { border-bottom: none; }
.next-stage-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--cyan);
}
.next-stage-list strong { color: var(--text); }
.next-stage-pill {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    color: var(--bg-deep);
    background: var(--cyan);
    padding: 0.12rem 0.5rem;
    border-radius: 2px;
    text-transform: uppercase;
    margin-left: 0.4rem;
    vertical-align: middle;
}

@media (max-width: 900px) {
    .next-stage { grid-template-columns: 1fr; }
}

/* ---------- BTS SIO comparatif ---------- */
.compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}
.compare > div {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem;
    border-top: 3px solid var(--cyan);
}
.compare h3 {
    color: var(--cyan);
    text-shadow: var(--cyan-glow);
    margin-bottom: 1rem;
}
.compare ul { padding-left: 1.2rem; }
.compare ul li {
    color: var(--text);
    margin-bottom: 0.5rem;
    list-style: none;
    position: relative;
}
.compare ul li::before {
    content: '▸';
    position: absolute; left: -1.2rem;
    color: var(--cyan);
}

/* ---------- FORMULAIRE CONTACT ---------- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
    align-items: start;
}
.contact-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}
.contact-info h3 { margin-bottom: 1rem; }
.contact-info p { margin-bottom: 0.8rem; color: var(--text-muted); }
.contact-info strong { color: var(--text); display: block; font-family: var(--font-mono); font-size: 0.85rem; }

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}
.form-group { margin-bottom: 1.4rem; }
.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--cyan);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 210, 190, 0.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }

.alert {
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border-left: 3px solid;
}
.alert-success { background: rgba(0, 255, 157, 0.08); border-color: var(--green); color: var(--green); }
.alert-error   { background: rgba(255, 56, 96, 0.08); border-color: var(--red); color: var(--red); }

/* ---------- PROFIL/INTRO BOX ---------- */
.intro-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--cyan);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
}
.intro-box .meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.meta-item .meta-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.meta-item .meta-value { color: var(--cyan); font-family: var(--font-tech); margin-top: 0.2rem; }

/* ---------- INTERESTS ---------- */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.interest-chip {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    transition: all var(--transition);
}
.interest-chip:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-2px);
}
.interest-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    margin-top: 5rem;
    padding: 3rem 2rem 1rem;
}
.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
.footer-title {
    font-family: var(--font-mono);
    color: var(--cyan);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}
.footer-col p, .footer-col li { color: var(--text-muted); margin-bottom: 0.4rem; font-size: 0.9rem; }
.footer-nav li a { color: var(--text-muted); }
.footer-nav li a:hover { color: var(--cyan); }
.footer-bottom {
    max-width: var(--container);
    margin: 0 auto;
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}
.status-dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green);
    margin-right: 0.4rem;
    animation: blink 2s infinite;
}

/* ---------- SOCIAL LINKS (home + footer) ---------- */
.social-links {
    display: flex; gap: 1rem; flex-wrap: wrap;
    margin-top: 2rem;
}
.social-link {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.6rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    transition: all var(--transition);
}
.social-link:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 210, 190, 0.2);
}
.footer-socials {
    display: flex; gap: 0.8rem; margin-top: 0.8rem;
}
.footer-socials a {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    transition: all var(--transition);
}
.footer-socials a:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 210, 190, 0.3);
}

/* ---------- COMPÉTENCES BTS SIO (référentiel) ---------- */
.competences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}
.competence-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    border-left: 3px solid var(--cyan);
    transition: all var(--transition);
}
.competence-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0, 210, 190, 0.1);
}
.competence-code {
    font-family: var(--font-mono);
    color: var(--cyan);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    background: rgba(0, 210, 190, 0.1);
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    margin-bottom: 0.8rem;
}
.competence-libelle {
    font-family: var(--font-body);
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.4;
}
.competence-preuves {
    border-top: 1px solid var(--border);
    padding-top: 0.8rem;
}
.competence-preuves-label {
    font-family: var(--font-mono);
    color: var(--text-dim);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.competence-preuves ul {
    padding-left: 1rem;
}
.competence-preuves ul li {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    position: relative;
}
.competence-preuves ul li::before {
    content: '▸';
    position: absolute; left: -1rem;
    color: var(--cyan);
}

/* ---------- DOC CARDS ---------- */
.doc-card {
    display: flex; flex-direction: column;
}
.doc-card.is-pending { opacity: 0.6; }
.doc-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
    padding: 1.2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.doc-pending {
    text-align: center;
    padding: 0.8rem;
    background: var(--bg-elevated);
    border-radius: var(--radius);
}

/* ---------- VEILLE - sources & articles ---------- */
.source-card {
    text-decoration: none;
    color: inherit;
    display: block;
}
.source-card:hover h3 { color: var(--cyan); }
.article-card { border-left: 3px solid var(--cyan); }
.article-theme {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--cyan);
    background: rgba(0, 210, 190, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    text-transform: uppercase;
    margin-top: 0.3rem;
}
.article-bts {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}
.article-bts-label {
    color: var(--cyan);
    margin-right: 0.3rem;
}

/* ---------- PROJETS ENRICHIS ---------- */
.project-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
    margin-top: 0.8rem;
    padding: 0.8rem;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    font-size: 0.85rem;
}
.project-meta-item {
    display: flex; flex-direction: column;
}
.project-meta-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}
.project-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.project-section-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--cyan);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.project-bts-tags {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.bts-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: var(--bg-deep);
    color: var(--cyan-bright);
    border: 1px solid var(--cyan);
    border-radius: 2px;
    letter-spacing: 0.1em;
}

/* ---------- PAGE DÉTAIL PROJET ---------- */
.back-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    transition: color var(--transition);
}
.back-link:hover { color: var(--cyan); }

.project-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--cyan);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
}
.project-hero-icon {
    font-size: 5rem;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-deep));
    width: 140px; height: 140px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.project-hero-tag {
    display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--cyan);
    letter-spacing: 0.25em;
    margin-bottom: 0.8rem;
}
.project-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
.project-hero-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.captures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}
.capture-card {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.capture-card:hover {
    border-color: var(--cyan);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 210, 190, 0.15);
}
.capture-card img { width: 100%; height: auto; display: block; }

/* ---------- COMPTES DE DÉMONSTRATION (page projet-detail) ---------- */
.demo-accounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}
.demo-account {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--cyan);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.demo-account-head {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0.6rem;
    align-items: center;
}
.demo-account-key {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--text-dim);
    text-transform: uppercase;
}
.demo-account code {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--cyan);
    background: var(--bg-deep);
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 3px;
    user-select: all;
}
.demo-account-role {
    padding-top: 0.5rem;
    margin-top: 0.3rem;
    border-top: 1px dashed var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ---------- CARTE PROJET CLIQUABLE ---------- */
.project-link {
    display: flex; flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.project-link:hover { color: inherit; }
.project-link:hover h3 { color: var(--cyan); }
.project-cta {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--cyan);
    letter-spacing: 0.15em;
    opacity: 0.7;
    transition: opacity var(--transition), transform var(--transition);
}
.project-link:hover .project-cta {
    opacity: 1;
    transform: translateX(4px);
}
.project-link.is-pending { border-style: dashed; }

/* ---------- BADGES DE STATUT ---------- */
.status-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.status-badge.warn {
    background: rgba(255, 200, 0, 0.15);
    color: #ffd966;
    border: 1px solid #ffd966;
}

/* ---------- ANIMATIONS UTIL ---------- */
.fade-in { opacity: 0; transform: translateY(20px); transition: all 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =====================================================================
   DOCUMENTS v2 — sections hiérarchisées + cards mises en avant
   ===================================================================== */
.docs-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
    border: 1px solid var(--border);
    border-left: 3px solid var(--cyan);
    border-radius: var(--radius);
    padding: 1.8rem 2rem;
    margin-bottom: 2.5rem;
}
.docs-hero-text p { color: var(--text-muted); font-size: 1rem; }
.docs-hero-stats { display: flex; gap: 1.5rem; }
.docs-stat {
    display: flex; flex-direction: column; align-items: center;
    padding: 0.6rem 1rem;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 90px;
}
.docs-stat-value {
    font-family: var(--font-tech);
    font-size: 1.5rem;
    color: var(--cyan);
    text-shadow: var(--cyan-glow);
}
.docs-stat-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 0.2rem;
}
.docs-section { margin-bottom: 3rem; }
.docs-section-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.docs-section-icon {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--cyan);
    border-radius: var(--radius);
    font-family: var(--font-tech);
    font-size: 1.2rem;
    color: var(--cyan);
    text-shadow: var(--cyan-glow);
}
.docs-section-title {
    font-family: var(--font-tech);
    font-size: 1.4rem;
    color: var(--text);
    letter-spacing: 0.05em;
}
.docs-section-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}
.docs-section-count {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--cyan);
    background: rgba(0, 210, 190, 0.1);
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius);
    border: 1px solid var(--cyan-soft);
}

/* Cards documents v2 */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
}
.doc-card-v2 {
    display: flex; flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.doc-card-v2::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}
.doc-card-v2:hover {
    border-color: var(--cyan);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.doc-card-v2:hover::before { transform: translateX(0); }
.doc-card-v2.is-pending { opacity: 0.6; }
.doc-card-v2.is-pending:hover { transform: none; border-color: var(--border); }

.doc-card-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem;
}
.doc-card-icon {
    font-size: 2rem;
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.doc-card-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    color: var(--cyan);
    background: rgba(0, 210, 190, 0.08);
    border: 1px solid var(--cyan-soft);
    padding: 0.25rem 0.55rem;
    border-radius: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}
.doc-card-title {
    font-family: var(--font-tech);
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}
.doc-card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-grow: 1;
    line-height: 1.5;
}
.doc-card-action {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.doc-btn { width: 100%; justify-content: center; }
.doc-pending-pill {
    display: flex; align-items: center; justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem;
    background: var(--bg-elevated);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.18em;
}
.doc-pending-pill .status-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--text-dim);
}

/* Section "Certifications" : mise en avant */
.docs-section-certifications .docs-section-icon {
    background: linear-gradient(135deg, rgba(0, 210, 190, 0.2), rgba(0, 210, 190, 0.05));
    box-shadow: 0 0 20px rgba(0, 210, 190, 0.3);
}

/* ====== CERTIF-CARD (encadré façon BTS — full width) ====== */
.certif-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.certif-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
    border: 1px solid var(--border);
    border-left: 3px solid var(--cyan);
    border-radius: var(--radius);
    padding: 1.6rem 1.8rem;
    position: relative;
    transition: all var(--transition);
}
.certif-card:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 210, 190, 0.08);
    border-left-width: 4px;
}
.certif-card.is-pending { opacity: 0.85; }
.certif-card.is-pending:hover { transform: none; }

.certif-card-frame {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 1.2rem;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px dashed var(--border);
}
.certif-card-icon {
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    background: var(--bg-deep);
    border: 1px solid var(--cyan-soft);
    border-radius: 4px;
    box-shadow: inset 0 0 12px rgba(0, 210, 190, 0.08);
}
.certif-card-headline { display: flex; flex-direction: column; gap: 0.25rem; }
.certif-card-badge {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    color: var(--cyan);
    background: rgba(0, 210, 190, 0.1);
    border: 1px solid var(--cyan-soft);
    padding: 0.2rem 0.55rem;
    border-radius: 2px;
    text-transform: uppercase;
}
.certif-card-title {
    font-family: var(--font-tech);
    font-size: 1.25rem;
    color: var(--text);
    margin: 0;
    line-height: 1.25;
}
.certif-card-organisme {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}
.certif-card-organisme strong { color: var(--cyan); }

.certif-card-status { align-self: start; }
.certif-status {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    border-radius: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}
.certif-status-ok {
    color: var(--green);
    background: rgba(0, 255, 157, 0.08);
    border: 1px solid var(--green);
}
.certif-status-todo {
    color: var(--text-dim);
    background: var(--bg-deep);
    border: 1px dashed var(--border);
}

.certif-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.certif-card-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 1.2rem;
    overflow: hidden;
}
.certif-card-meta > div {
    padding: 0.7rem 1rem;
    border-right: 1px solid var(--border);
}
.certif-card-meta > div:last-child { border-right: none; }
.certif-card-meta dt {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}
.certif-card-meta dd {
    font-family: var(--font-tech);
    font-size: 0.88rem;
    color: var(--cyan);
}

.certif-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}
.certif-card-actions .doc-pending-pill {
    flex: 0 0 auto;
    padding: 0.7rem 1rem;
}

@media (max-width: 760px) {
    .certif-card-frame {
        grid-template-columns: 56px 1fr;
        row-gap: 0.8rem;
    }
    .certif-card-status { grid-column: 1 / -1; }
    .certif-card-meta > div { border-right: none; border-bottom: 1px solid var(--border); }
    .certif-card-meta > div:last-child { border-bottom: none; }
}

/* =====================================================================
   VEILLE v2 — hero, méthode, sources, timeline articles
   ===================================================================== */
.veille-hero {
    display: grid;
    grid-template-columns: 1fr;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
    border: 1px solid var(--border);
    border-left: 3px solid var(--cyan);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2.5rem;
    position: relative;
}
.veille-hero::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(0, 210, 190, 0.15), transparent 70%);
    pointer-events: none;
}
.veille-hero-banner { padding: 2rem; position: relative; z-index: 1; }
.veille-hero-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--cyan);
    background: rgba(0, 210, 190, 0.1);
    border: 1px solid var(--cyan-soft);
    padding: 0.3rem 0.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    border-radius: 2px;
}
.veille-hero-title {
    font-family: var(--font-tech);
    font-size: 1.6rem;
    color: var(--text);
    margin-bottom: 0.8rem;
    line-height: 1.25;
}
.veille-hero-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0.8rem;
}
.veille-hero-bts {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.veille-hero-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--border);
    background: var(--bg-deep);
}
.veille-meta-item {
    display: flex; flex-direction: column;
    padding: 1rem 1.2rem;
    border-right: 1px solid var(--border);
}
.veille-meta-item:last-child { border-right: none; }
.veille-meta-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}
.veille-meta-value {
    font-family: var(--font-tech);
    color: var(--cyan);
    font-size: 0.95rem;
}

/* Méthodologie */
.veille-method {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.veille-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
    transition: all var(--transition);
}
.veille-step:hover {
    border-color: var(--cyan);
    transform: translateY(-3px);
}
.veille-step-num {
    font-family: var(--font-tech);
    font-size: 2rem;
    font-weight: 900;
    color: var(--cyan);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.veille-step h3 {
    font-family: var(--font-tech);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}
.veille-step p { color: var(--text-muted); font-size: 0.9rem; }

/* Sources grid (compact) */
.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.source-tile {
    display: flex; flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    color: inherit;
    text-decoration: none;
    transition: all var(--transition);
}
.source-tile:hover {
    border-color: var(--cyan);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.source-tile-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.6rem;
}
.source-tile-type {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    color: var(--cyan);
    text-transform: uppercase;
}
.source-tile-arrow {
    color: var(--text-dim);
    transition: all var(--transition);
}
.source-tile:hover .source-tile-arrow {
    color: var(--cyan);
    transform: translateX(4px);
}
.source-tile-name {
    font-family: var(--font-tech);
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}
.source-tile:hover .source-tile-name { color: var(--cyan); }
.source-tile-theme {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}
.source-tile-host {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    word-break: break-all;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border);
}

/* Timeline articles */
.veille-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
}
.veille-entry {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.veille-entry:hover {
    border-color: var(--cyan);
    transform: translateX(4px);
}
.veille-entry-date {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: var(--bg-elevated);
    padding: 1.2rem 0.8rem;
    border-right: 1px solid var(--border);
    text-align: center;
}
.veille-entry-day {
    font-family: var(--font-tech);
    font-size: 2rem;
    font-weight: 900;
    color: var(--cyan);
    text-shadow: var(--cyan-glow);
    line-height: 1;
}
.veille-entry-month {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--text);
    margin-top: 0.3rem;
}
.veille-entry-year {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 0.2rem;
}
.veille-entry-body {
    padding: 1.2rem 1.4rem 1.2rem 0;
}
.veille-entry-theme {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--cyan);
    background: rgba(0, 210, 190, 0.08);
    border: 1px solid var(--cyan-soft);
    padding: 0.25rem 0.6rem;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 0.6rem;
}
.veille-entry-title {
    font-family: var(--font-tech);
    font-size: 1.1rem;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 0.6rem;
}
.veille-entry-resume {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 0.8rem;
    line-height: 1.55;
}
.veille-entry-bts {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
    padding: 0.6rem 0.8rem;
    background: var(--bg-deep);
    border-left: 2px solid var(--cyan);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    border-radius: 2px;
}
.veille-entry-bts-label {
    color: var(--cyan);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.7rem;
}
.veille-entry-source {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* =====================================================================
   VEILLE — Schéma flux télémétrique + Circuit live
   ===================================================================== */
.telemetry-flow {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
    border: 1px solid var(--border);
    border-left: 3px solid var(--cyan);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.telemetry-flow-svg { width: 100%; height: auto; display: block; }
.telemetry-flow-svg .flow-node rect { transition: all 0.3s; }
.telemetry-flow-svg .flow-node:hover rect {
    stroke: var(--cyan);
    filter: drop-shadow(0 0 6px rgba(0, 210, 190, 0.5));
}
.telemetry-pulse {
    animation: pulseMove 3s linear infinite;
}
@keyframes pulseMove {
    0%   { transform: translateX(-100%); opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translateX(0%); opacity: 0; }
}
.telemetry-flow-caption {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
}
.telemetry-flow-bts {
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-right: 0.3rem;
    font-size: 0.78rem;
}

/* ====== TRACK LIVE (Monaco) ====== */
.track-live {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-deep));
    border: 1px solid var(--border);
    border-left: 3px solid var(--cyan);
    border-radius: var(--radius);
    padding: 1.5rem 1.8rem 2rem;
    margin-bottom: 2rem;
}
.track-live-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed var(--border);
}
.track-live-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.3rem 0.7rem;
    background: rgba(255, 56, 96, 0.1);
    border: 1px solid var(--red);
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--red);
    letter-spacing: 0.2em;
    margin-bottom: 0.6rem;
}
.track-live-dot {
    width: 8px; height: 8px;
    background: var(--red);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--red);
    animation: blink 1.5s infinite;
}
.track-live-head-left h3 {
    font-family: var(--font-tech);
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 0.4rem;
}
.track-live-head-left p {
    color: var(--text-muted);
    font-size: 0.92rem;
    max-width: 520px;
}
.track-live-info {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 0.3rem 1.2rem;
    background: var(--bg-deep);
    padding: 0.8rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    margin: 0;
}
.track-live-info div { display: flex; flex-direction: column; }
.track-live-info dt {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--text-dim);
    text-transform: uppercase;
}
.track-live-info dd {
    font-family: var(--font-tech);
    font-size: 0.95rem;
    color: var(--cyan);
}

.track-live-body {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    align-items: start;
}
.track-map {
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 210, 190, 0.05), transparent 60%),
        var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1rem;
    overflow: hidden;
    position: relative;
}
.track-map::after {
    /* grille discrète façon écran ingénieur */
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 210, 190, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 190, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}
.track-map svg {
    width: 100%; height: auto;
    position: relative;
    z-index: 1;
}
.track-map-image {
    width: 100%; height: auto;
    display: block;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 12px rgba(0, 210, 190, 0.15));
}
.track-map-overlay {
    position: absolute;
    inset: 1rem; /* matches .track-map padding */
    width: calc(100% - 2rem);
    height: calc(100% - 2rem);
    pointer-events: none;
    z-index: 2;
}

.track-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.2rem;
    font-family: var(--font-mono);
}
.track-stat-label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}
.track-stat-bar {
    height: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}
.track-stat-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--cyan), var(--cyan-bright));
    box-shadow: 0 0 8px rgba(0, 210, 190, 0.6);
    transition: width 0.2s linear;
}
.track-stat-bar-fill-rpm {
    background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan-bright) 60%, #ffd966 80%, var(--red) 100%);
}
.track-stat-line {
    display: flex; align-items: baseline; justify-content: flex-end; gap: 0.3rem;
}
.track-stat-value {
    font-family: var(--font-tech);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--cyan);
    line-height: 1;
}
.track-stat-unit {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
}
.track-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border);
}
.track-stat-mini {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 0.55rem 0.7rem;
}
.track-stat-mini .track-stat-value { font-size: 1.1rem; }
.track-stat-mini .track-stat-value small {
    font-size: 0.6em;
    color: var(--text-dim);
    margin-left: 0.1rem;
}
#stat-drs[data-state="on"] {
    color: var(--green);
    text-shadow: 0 0 10px var(--green);
}
#stat-drs[data-state="off"] { color: var(--text-dim); }

.track-pedals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}
.pedal {
    display: flex; flex-direction: column; gap: 0.3rem;
}
.pedal > span {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    color: var(--text-dim);
}
.pedal-bar {
    height: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
}
.pedal-bar-fill { height: 100%; width: 0%; transition: width 0.15s linear; }
.pedal-throttle .pedal-bar-fill { background: var(--green); box-shadow: 0 0 6px rgba(0, 255, 157, 0.5); }
.pedal-brake    .pedal-bar-fill { background: var(--red);   box-shadow: 0 0 6px rgba(255, 56, 96, 0.5); }

.track-stat-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border);
}
.track-stat-foot-label {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    text-transform: uppercase;
}
.track-stat-foot-value {
    font-family: var(--font-tech);
    color: var(--cyan);
    font-size: 1.1rem;
    text-shadow: var(--cyan-glow);
}

@media (max-width: 900px) {
    .track-live-head { grid-template-columns: 1fr; }
    .track-live-body { grid-template-columns: 1fr; }
    .telemetry-flow-svg { min-width: 720px; }
    .telemetry-flow { overflow-x: auto; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .veille-hero-meta { grid-template-columns: repeat(2, 1fr); }
    .veille-meta-item:nth-child(2) { border-right: none; }
    .veille-meta-item:nth-child(1),
    .veille-meta-item:nth-child(2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 900px) {
    .compare { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .docs-hero { grid-template-columns: 1fr; gap: 1.5rem; }
    .docs-hero-stats { justify-content: flex-start; }
    .docs-section-head {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        row-gap: 0.5rem;
    }
    .docs-section-count { grid-column: 2; justify-self: start; }
    .veille-hero-title { font-size: 1.3rem; }
    .veille-entry { grid-template-columns: 90px 1fr; gap: 1rem; }
    .veille-entry-day { font-size: 1.6rem; }
    .veille-entry-body { padding: 1rem 1.2rem 1rem 0; }
}
@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }
    .main-nav.is-open { max-height: 500px; }
    .main-nav ul { flex-direction: column; padding: 1rem; }
    .nav-link { display: block; }
    .header-inner { padding: 1rem; }
    .main-content { padding: 2rem 1rem; }
    .hud-bar { font-size: 0.6rem; flex-wrap: wrap; padding: 0.4rem 1rem; }

    /* Documents */
    .docs-hero { padding: 1.4rem; }
    .docs-hero-stats { gap: 0.8rem; }
    .docs-stat { min-width: 70px; padding: 0.5rem 0.8rem; }
    .docs-stat-value { font-size: 1.2rem; }
    .docs-grid { grid-template-columns: 1fr; gap: 1rem; }
    .docs-section { margin-bottom: 2rem; }
    .docs-section-icon { width: 36px; height: 36px; font-size: 1rem; }
    .docs-section-title { font-size: 1.15rem; }

    /* Veille */
    .veille-hero-banner { padding: 1.4rem; }
    .veille-hero-title { font-size: 1.15rem; }
    .veille-hero-meta { grid-template-columns: 1fr; }
    .veille-meta-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 0.8rem 1.2rem;
    }
    .veille-meta-item:last-child { border-bottom: none; }
    .veille-method { grid-template-columns: 1fr; gap: 0.8rem; }
    .veille-step { padding: 1.2rem; }
    .veille-step-num { font-size: 1.6rem; }
    .sources-grid { grid-template-columns: 1fr; }
    .veille-entry {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .veille-entry-date {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.7rem 1.2rem;
        border-right: none;
        border-bottom: 1px solid var(--border);
        justify-content: flex-start;
    }
    .veille-entry-day { font-size: 1.4rem; }
    .veille-entry-month, .veille-entry-year { margin-top: 0; }
    .veille-entry-body { padding: 1.2rem; }
    .veille-entry-title { font-size: 1rem; }
    .veille-entry:hover { transform: none; }

    /* Cards & grids globaux */
    .cards-grid { grid-template-columns: 1fr; gap: 1rem; }
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
    .section-title { font-size: 1.2rem; }
}
@media (max-width: 480px) {
    .docs-hero-stats { width: 100%; justify-content: space-between; }
    .doc-card-top { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
    .doc-card-badge { font-size: 0.6rem; }
    .veille-hero-title { font-size: 1.05rem; }
    .veille-hero-tag { font-size: 0.6rem; }
}

/* =====================================================================
   ACCUEIL v2 — Pit-wall asymétrique (paddock ID + pit board)
   ===================================================================== */
.pit-wall {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 2rem;
    align-items: stretch;
    margin: 1rem 0 4rem;
    position: relative;
}
.pit-wall::before {
    content: '';
    position: absolute;
    inset: -2rem -2rem -1rem -2rem;
    background:
        radial-gradient(800px 360px at 90% 10%, rgba(0, 210, 190, 0.10), transparent 70%),
        radial-gradient(500px 300px at 0% 90%, rgba(0, 210, 190, 0.06), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* ========== PADDOCK ID (carte gauche, photo encadrée) ========== */
.paddock-id {
    background:
        linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.4rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    /* Coupes en biseau type laissez-passer */
    clip-path: polygon(
        0 0, calc(100% - 18px) 0, 100% 18px,
        100% 100%, 18px 100%, 0 calc(100% - 18px)
    );
}
.paddock-id::after {
    /* Bande Mercedes diagonale décorative */
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 70px; height: 70px;
    background: linear-gradient(135deg, transparent 50%, var(--cyan) 50%, var(--cyan-bright) 100%);
    opacity: 0.15;
    pointer-events: none;
}
.paddock-id-head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed var(--border);
}
.paddock-id-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--cyan);
    text-transform: uppercase;
}
.paddock-id-code {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.15em;
}

/* ========== PHOTO (encadré façon CV) ========== */
.paddock-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    background:
        linear-gradient(135deg, rgba(0, 210, 190, 0.08), rgba(0, 0, 0, 0)),
        var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.paddock-photo img {
    width: 100%; height: 100%;
    object-fit: contain;
    filter: contrast(1.05) saturate(1.05);
}
.paddock-photo-placeholder {
    text-align: center;
    color: var(--text-dim);
    font-family: var(--font-mono);
}
.paddock-photo-initials {
    display: block;
    font-family: var(--font-tech);
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--cyan);
    text-shadow: var(--cyan-glow);
    letter-spacing: 0.1em;
    line-height: 1;
}
.paddock-photo-hint {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    margin-top: 0.6rem;
    color: var(--text-dim);
}
/* Coins type viseur photo CV */
.paddock-photo-corners span {
    position: absolute;
    width: 18px; height: 18px;
    border: 2px solid var(--cyan);
    box-shadow: 0 0 6px rgba(0, 210, 190, 0.5);
}
.paddock-photo-corners span:nth-child(1) { top: 8px; left: 8px;    border-right: none; border-bottom: none; }
.paddock-photo-corners span:nth-child(2) { top: 8px; right: 8px;   border-left: none;  border-bottom: none; }
.paddock-photo-corners span:nth-child(3) { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.paddock-photo-corners span:nth-child(4) { bottom: 8px; right: 8px;border-left: none;  border-top: none; }

/* ========== DATA (cartouche fiche technique) ========== */
.paddock-id-data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-deep);
}
.paddock-id-data > div {
    padding: 0.7rem 0.9rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.paddock-id-data > div:nth-child(2n) { border-right: none; }
.paddock-id-data > div:nth-last-child(-n+2) { border-bottom: none; }
.paddock-id-data dt {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}
.paddock-id-data dd {
    font-family: var(--font-tech);
    font-size: 0.85rem;
    color: var(--cyan);
    letter-spacing: 0.05em;
}
.paddock-id-foot {
    display: flex; align-items: center; gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    text-transform: uppercase;
    padding-top: 0.4rem;
}
.paddock-id-foot-dot {
    width: 8px; height: 8px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green);
    animation: blink 2s infinite;
}

/* ========== PIT BOARD (colonne droite) ========== */
.pit-board {
    background:
        repeating-linear-gradient(
            -45deg,
            transparent 0,
            transparent 18px,
            rgba(0, 210, 190, 0.018) 18px,
            rgba(0, 210, 190, 0.018) 36px
        ),
        linear-gradient(135deg, var(--bg-card), var(--bg-deep));
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2rem 2.2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    clip-path: polygon(
        18px 0, 100% 0, 100% calc(100% - 18px),
        calc(100% - 18px) 100%, 0 100%, 0 18px
    );
}
/* Stripes décoratives en haut (style pit board) */
.pit-board-stripes {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    display: flex;
}
.pit-board-stripes span {
    flex: 1;
    background: var(--cyan);
    opacity: 0.18;
}
.pit-board-stripes span:nth-child(odd)  { opacity: 0.45; }
.pit-board-stripes span:nth-child(3)    { opacity: 0.8;  box-shadow: var(--cyan-glow); }

.pit-board-tag {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--cyan);
    letter-spacing: 0.22em;
    margin-bottom: 1rem;
}

/* Grand nom en deux temps */
.pit-board-name {
    font-family: var(--font-tech);
    font-weight: 900;
    line-height: 0.92;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.1em;
}
.pit-board-first {
    font-size: clamp(2.5rem, 6vw, 4.4rem);
    color: var(--text);
    letter-spacing: 0.02em;
}
.pit-board-last {
    font-size: clamp(3rem, 7.5vw, 5.6rem);
    color: var(--cyan);
    text-shadow: 0 0 28px rgba(0, 210, 190, 0.45);
    letter-spacing: -0.01em;
    /* Outline + remplissage style trackside */
    -webkit-text-stroke: 1px var(--cyan);
}
.pit-board-role {
    font-family: var(--font-tech);
    font-size: 1rem;
    letter-spacing: 0.15em;
    color: var(--text);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}
.pit-board-role span {
    color: var(--text-dim);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: none;
    margin-left: 0.5em;
}
.pit-board-typewriter {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.4rem;
    min-height: 1.6em;
}
.pit-board-typewriter .cursor {
    display: inline-block;
    width: 9px; height: 1.1em;
    background: var(--cyan);
    margin-left: 4px;
    vertical-align: middle;
    animation: blink 1s steps(2) infinite;
}

/* ========== START LIGHTS (5 rouges + GO vert) ========== */
.start-lights {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.6rem;
}
.start-lights span {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ff5066, #8b0d22 70%, #2a0008);
    box-shadow:
        inset 0 0 6px rgba(0, 0, 0, 0.6),
        0 0 10px rgba(255, 56, 96, 0.5);
    opacity: 0;
    animation: lightUp 4s ease-in-out infinite;
}
.start-lights span:nth-child(1) { animation-delay: 0s; }
.start-lights span:nth-child(2) { animation-delay: 0.35s; }
.start-lights span:nth-child(3) { animation-delay: 0.7s; }
.start-lights span:nth-child(4) { animation-delay: 1.05s; }
.start-lights span:nth-child(5) { animation-delay: 1.4s; }
.start-lights .go {
    width: auto; height: auto;
    background: none;
    box-shadow: none;
    padding: 0.25rem 0.75rem;
    margin-left: 0.4rem;
    font-family: var(--font-tech);
    font-weight: 900;
    font-size: 0.85rem;
    color: var(--green);
    background: rgba(0, 255, 157, 0.08);
    border: 1px solid var(--green);
    border-radius: 3px;
    letter-spacing: 0.2em;
    animation: goPulse 4s ease-in-out infinite;
    text-shadow: 0 0 10px var(--green);
}
@keyframes lightUp {
    0%, 35%   { opacity: 0; }
    40%, 65%  { opacity: 1; }
    70%, 100% { opacity: 0; }
}
@keyframes goPulse {
    0%, 70%   { opacity: 0; transform: scale(0.95); }
    75%, 90%  { opacity: 1; transform: scale(1.05); }
    95%,100%  { opacity: 0; transform: scale(0.95); }
}

.pit-board-cta {
    display: flex; gap: 0.8rem; flex-wrap: wrap;
    margin-bottom: 1.4rem;
}
.pit-board-social {
    display: flex; gap: 0.8rem; flex-wrap: wrap;
}

/* ========== STARTING GRID (sommaire) ========== */
.grid-start { margin-top: 2rem; }
.grid-start-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    position: relative;
}
.grid-start-track::before {
    /* Ligne de départ pointillée derrière les slots */
    content: '';
    position: absolute;
    top: 50%;
    left: -0.5rem; right: -0.5rem;
    height: 1px;
    background: repeating-linear-gradient(90deg,
        var(--cyan) 0, var(--cyan) 8px,
        transparent 8px, transparent 16px);
    opacity: 0.3;
    z-index: 0;
}
.grid-slot {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.8rem;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
    z-index: 1;
}
.grid-slot::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.grid-slot:hover {
    border-color: var(--cyan);
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 210, 190, 0.12);
}
.grid-slot:hover::before { transform: scaleX(1); }

.grid-slot-pos {
    position: absolute;
    top: 0.8rem; right: 1rem;
    font-family: var(--font-tech);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--cyan);
    text-shadow: var(--cyan-glow);
    letter-spacing: 0;
    opacity: 0.65;
    transition: opacity var(--transition);
}
.grid-slot:hover .grid-slot-pos { opacity: 1; }
.grid-slot-body { display: flex; flex-direction: column; gap: 0.6rem; }
.grid-slot-body h3 { color: var(--text); margin: 0; }
.grid-slot-body p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }
.grid-slot-cta {
    margin-top: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--cyan);
    letter-spacing: 0.15em;
    transition: transform var(--transition);
}
.grid-slot:hover .grid-slot-cta { transform: translateX(4px); }

/* Responsive */
@media (max-width: 980px) {
    .pit-wall { grid-template-columns: 1fr; }
    .paddock-id { max-width: 380px; margin: 0 auto; }
    .grid-start-track { grid-template-columns: 1fr; gap: 1rem; }
    .grid-start-track::before { display: none; }
}
@media (max-width: 720px) {
    .pit-board { padding: 1.6rem 1.4rem; }
    .pit-board-tag { font-size: 0.7rem; }
    .start-lights span { width: 16px; height: 16px; }
    .start-lights .go { font-size: 0.75rem; padding: 0.2rem 0.6rem; }
    .grid-slot-pos { font-size: 1.6rem; }
}

/* ====== PROFIL · Documents officiels (CV + Tableau E6) ====== */
.profil-docs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.profil-doc-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem 1.6rem 1.4rem;
    position: relative;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.profil-doc-card:hover {
    border-color: var(--cyan);
    transform: translateY(-2px);
}
.profil-doc-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.9rem;
}
.profil-doc-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 210, 190, 0.18), rgba(0, 210, 190, 0.04));
    border: 1px solid rgba(0, 210, 190, 0.35);
    border-radius: var(--radius);
}
.profil-doc-title {
    margin: 0;
    font-size: 1.15rem;
    color: var(--text);
}
.profil-doc-sub {
    margin: 0.25rem 0 0;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--cyan);
    letter-spacing: 0.04em;
}
.profil-doc-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 1.2rem;
}
.profil-doc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
}
.profil-doc-preview {
    margin-top: 1.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #1a1a1a;
}
.profil-doc-preview-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.9rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}
.profil-doc-preview-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}
.profil-doc-preview iframe {
    display: block;
    width: 100%;
    height: 720px;
    border: 0;
    background: #fff;
}
@media (max-width: 720px) {
    .profil-doc-preview iframe { height: 520px; }
    .profil-doc-head { flex-direction: column; align-items: flex-start; }
}
