/* ===========================
   Variables & Reset
   =========================== */
:root {
    --bg: #0D0B14;
    --bg-soft: #1A1530;
    --bg-card: #251F38;
    --bg-dark: #12101D;
    --text: #C4BFD8;
    --text-muted: #8B7FC7;
    --text-heading: #E8E5F0;
    --identity: #6D28D9;
    --identity-light: #7C3AED;
    --accent: #8B5CF6;
    --accent-light: #A78BFA;
    --accent-dim: rgba(139, 92, 246, 0.12);
    --line: #4A3F6B;
    --line-hover: rgba(139, 92, 246, 0.5);
    --radius: 16px;
    --radius-sm: 8px;
    --nav-height: 72px;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.navbar.scrolled {
    background: rgba(13, 11, 20, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    transition: opacity 0.3s var(--ease);
}

.nav-logo:hover {
    opacity: 0.85;
    text-shadow: none;
}

.nav-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 26px;
    background: linear-gradient(135deg, var(--identity) 0%, var(--accent) 100%);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 7px;
    box-shadow: 0 2px 14px rgba(139, 92, 246, 0.5);
    transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
    flex-shrink: 0;
}

.nav-logo:hover .nav-logo-mark {
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.7);
    transform: scale(1.05);
}

.nav-logo-dot {
    color: var(--accent);
    font-size: 1.2rem;
    line-height: 1;
}

.navbar.scrolled .nav-logo {
    color: var(--text-heading);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    font-weight: 400;
    padding: 7px 13px;
    border-radius: 100px;
    transition: color 0.3s var(--ease), background 0.3s var(--ease);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.navbar.scrolled .nav-link {
    color: var(--text-muted);
}

.nav-link:hover,
.nav-link.active {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.12);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--accent-light);
    background: var(--accent-dim);
}

.nav-link-cta {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF !important;
    margin-left: 8px;
}

.nav-link-cta:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

.navbar.scrolled .nav-link-cta {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF !important;
}

.navbar.scrolled .nav-link-cta:hover {
    background: var(--identity) !important;
    border-color: var(--identity);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #FFFFFF;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.navbar.scrolled .nav-toggle span {
    background: var(--text-heading);
}

/* ===========================
   Hero
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(139, 92, 246, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.hero-bg-lines {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 32px;
    pointer-events: none;
}

.hero-bg-lines .line {
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.06);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 32px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    color: #FFFFFF;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

.hero-title em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.55);
}

.hero-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    max-width: 480px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.hero-image {
    flex-shrink: 0;
}

.hero-photo-wrapper {
    position: relative;
}

.hero-photo-wrapper::before {
    content: '';
    position: absolute;
    inset: -12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.hero-photo-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-photo-wrapper img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-scroll span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--accent);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4);
}

.btn-primary svg {
    transition: transform 0.3s var(--ease);
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ===========================
   Sections
   =========================== */
.section {
    padding: 120px 0;
    position: relative;
}

.section-dark {
    background: var(--bg-dark);
}

.section-header {
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--text-heading);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-title em {
    font-style: italic;
    color: var(--text-muted);
}

/* ===========================
   Timeline (dans Présentation)
   =========================== */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 180px 40px 1fr;
    gap: 0;
    padding: 32px 0;
    border-top: 1px solid var(--line);
    transition: border-color 0.3s var(--ease);
}

.timeline-item:hover {
    border-top-color: var(--line-hover);
}

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

.timeline-left {
    padding-top: 4px;
}

.timeline-date {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.timeline-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 8px;
}

.timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.timeline-line {
    width: 1px;
    flex: 1;
    background: var(--line);
    margin-top: 8px;
}

.timeline-right h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 4px;
}

.timeline-location {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 500;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text);
    max-width: 500px;
}

/* ===========================
   Présentation personnelle
   =========================== */
.presentation-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    align-items: start;
    margin-bottom: 80px;
}

.presentation-text p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: 20px;
}

.presentation-text p:last-child {
    margin-bottom: 0;
}

.presentation-intro {
    font-size: 1.05rem !important;
    color: var(--text-heading) !important;
}

.presentation-text strong {
    color: var(--text-heading);
    font-weight: 600;
}

.presentation-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.fact-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.fact-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px var(--accent-dim);
}

.fact-card-highlight {
    border-color: rgba(139, 92, 246, 0.3);
    background: var(--accent-dim);
    grid-column: 1 / -1;
}

.fact-card-highlight:hover {
    border-color: var(--accent);
}

.fact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 1px;
}

.fact-icon svg {
    width: 100%;
    height: 100%;
}

.fact-card div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.fact-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.fact-value {
    font-size: 0.85rem;
    color: var(--text-heading);
    font-weight: 500;
}

.fact-card-highlight .fact-value {
    color: var(--accent);
}

/* CV + LinkedIn buttons */
.presentation-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    border-radius: 100px;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.btn-outline:hover {
    background: var(--accent);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-dim);
}

.btn-outline svg {
    transition: transform 0.3s var(--ease);
}

.btn-outline:hover svg {
    transform: translateX(2px);
}

/* Entreprise section */
.entreprise-block {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 48px;
    background: var(--bg-card);
}

.entreprise-block h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.entreprise-block .entreprise-subtitle {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.entreprise-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

.entreprise-desc p {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 16px;
}

.entreprise-desc p:last-child { margin-bottom: 0; }

.entreprise-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.entreprise-info-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
}

.info-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    width: 90px;
    flex-shrink: 0;
    padding-top: 1px;
}

.info-value {
    font-size: 0.85rem;
    color: var(--text-heading);
    font-weight: 500;
}

.missions-list {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.missions-list h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-heading);
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.missions-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mission-tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-light);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    padding: 6px 14px;
    border-radius: 100px;
}

/* ===========================
   BTS SIO
   =========================== */
.bts-intro {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 64px;
}

.bts-desc p {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.85;
    margin-bottom: 16px;
}

.bts-desc p:last-child { margin-bottom: 0; }

.bts-option-card {
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 32px;
    background: var(--accent-dim);
}

.bts-option-card h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--identity);
    margin-bottom: 8px;
}

.bts-option-card .option-subtitle {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.bts-option-card p {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.7;
}

.bts-modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 64px;
}

.module-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card);
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.module-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--accent-dim);
}

.module-num {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.module-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 10px;
    line-height: 1.3;
}

.module-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.bts-exams {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.exam-card {
    padding: 24px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.exam-badge {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
    background: var(--identity);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-serif);
}

.exam-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.exam-content p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===========================
   Skills (garde son rôle)
   =========================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.skill-card {
    background: var(--bg-card);
    padding: 36px 32px;
    transition: background 0.3s var(--ease);
}

.skill-card:hover {
    background: var(--bg-soft);
}

.skill-number {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 16px;
}

.skill-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-heading);
    margin-bottom: 12px;
}

.skill-divider {
    width: 32px;
    height: 2px;
    background: var(--accent);
    margin-bottom: 16px;
    opacity: 0.4;
}

.skill-list li {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 4px 0;
    position: relative;
    padding-left: 14px;
}

.skill-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
}

/* ===========================
   PPE — Situations professionnelles
   =========================== */
.projects-list {
    display: flex;
    flex-direction: column;
}

.project-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    padding: 40px 0;
    border-top: 1px solid var(--line);
    transition: border-color 0.3s var(--ease);
}

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

.project-card:hover {
    border-top-color: var(--accent);
}

.project-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: rgba(15, 23, 42, 0.06);
    font-style: italic;
    padding-top: 4px;
}

.project-card:hover .project-number {
    color: rgba(37, 99, 235, 0.15);
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.project-tag {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 4px 12px;
    border-radius: 100px;
}

.project-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.project-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text-heading);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.project-context {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-style: italic;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 20px;
    max-width: 600px;
    line-height: 1.7;
}

.project-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tech {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--identity);
    padding: 5px 14px;
    border-radius: 100px;
    border: 1px solid rgba(30, 58, 95, 0.2);
    background: rgba(30, 58, 95, 0.04);
    transition: all 0.3s var(--ease);
}

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

.project-ref {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-top: 16px;
    border-top: 1px solid var(--line);
    letter-spacing: 0.02em;
}

/* ===========================
   Veille Technologique
   =========================== */
.veille-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
}

.veille-topic {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px;
    background: var(--bg-card);
}

.veille-topic h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-heading);
    margin-bottom: 20px;
    line-height: 1.4;
}

.veille-topic > p {
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 28px;
    line-height: 1.8;
}

.veille-points {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.veille-point {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

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

.veille-point-num {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    flex-shrink: 0;
}

.veille-point p {
    font-size: 0.88rem;
    color: var(--text);
}

.veille-methods {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.veille-methods h4 {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.veille-methods p {
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.7;
}

.veille-sources h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-heading);
    margin-bottom: 20px;
}

.source-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.source-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.source-item:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px var(--accent-dim);
}

.source-type {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 3px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

.source-name {
    font-size: 0.88rem;
    color: var(--text-heading);
}

/* ===========================
   Gestion du Patrimoine
   =========================== */
.patrimoine-intro {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.8;
    max-width: 700px;
    margin-bottom: 48px;
}

.patrimoine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.patrimoine-card {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card);
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.patrimoine-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--accent-dim);
}

.patrimoine-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 20px;
}

.patrimoine-icon svg {
    width: 22px;
    height: 22px;
}

.patrimoine-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 10px;
}

.patrimoine-card p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.patrimoine-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.patrimoine-item {
    font-size: 0.78rem;
    color: var(--text);
    padding: 6px 12px;
    border-left: 2px solid var(--accent);
    background: var(--bg-soft);
    border-radius: 0 6px 6px 0;
}

/* ===========================
   Certifications
   =========================== */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.cert-card {
    background: var(--bg-card);
    padding: 36px 28px;
    text-align: center;
    transition: background 0.3s var(--ease);
}

.cert-card:hover {
    background: var(--bg-soft);
}

.cert-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    color: var(--accent);
    opacity: 0.6;
    transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}

.cert-card:hover .cert-icon {
    opacity: 1;
    color: var(--identity);
}

.cert-date {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.cert-card h3 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.cert-org {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cert-card-upcoming {
    opacity: 0.4;
}

.cert-card-upcoming:hover {
    opacity: 0.65;
}

/* ===========================
   Tableau de Synthèse
   =========================== */
.tableau-intro {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.8;
    max-width: 700px;
    margin-bottom: 40px;
}

.tableau-container {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
}

.tableau-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
}

.tableau-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-heading);
}

.tableau-header span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.tableau-placeholder {
    padding: 80px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.tableau-placeholder-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.tableau-placeholder-icon svg {
    width: 32px;
    height: 32px;
}

.tableau-placeholder p {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 400px;
    line-height: 1.7;
}

.tableau-embed {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

.tableau-attestations {
    margin-top: 48px;
}

.tableau-attestations h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-heading);
    margin-bottom: 24px;
}

.attestations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.attestation-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: border-color 0.3s var(--ease);
}

.attestation-card:hover {
    border-color: var(--accent);
}

.attestation-icon {
    width: 36px;
    height: 36px;
    color: var(--accent);
    flex-shrink: 0;
}

.attestation-icon svg {
    width: 100%;
    height: 100%;
}

.attestation-card h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 3px;
}

.attestation-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ===========================
   Bilan Global
   =========================== */
.bilan-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.bilan-card {
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card);
}

.bilan-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-heading);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.bilan-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bilan-list-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.bilan-list-item-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 8px;
}

.bilan-list-item p {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.65;
}

.bilan-recul {
    padding: 40px;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    background: var(--accent-dim);
    margin-top: 0;
}

.bilan-recul h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--identity);
    margin-bottom: 20px;
}

.bilan-recul p {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.85;
    margin-bottom: 16px;
}

.bilan-recul p:last-child { margin-bottom: 0; }

/* ===========================
   Contact
   =========================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 64px;
    align-items: start;
}

.contact-intro {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 36px;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.contact-link:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px var(--accent-dim);
}

.contact-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--accent);
}

.contact-link-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-link-value {
    font-size: 0.9rem;
    color: var(--text-heading);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-heading);
    background: var(--bg-card);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    align-self: flex-start;
}

.btn-contact {
    background: var(--accent);
    color: #FFFFFF;
    border: none;
}

.btn-contact:hover {
    background: var(--identity);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--line);
    padding: 48px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s var(--ease);
}

.footer-links a:hover {
    color: #FFFFFF;
}

/* ===========================
   Animations
   =========================== */
.anim-fade {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease-out) forwards;
}

.anim-fade[data-delay="1"] { animation-delay: 0.15s; }
.anim-fade[data-delay="2"] { animation-delay: 0.3s; }
.anim-fade[data-delay="3"] { animation-delay: 0.45s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger .reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger .reveal:nth-child(6) { transition-delay: 0.4s; }

/* ===========================
   Projet — bouton fiche
   =========================== */
.project-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 0.78rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--accent);
    background: transparent;
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.project-view-btn:hover {
    color: #FFFFFF;
    border-color: var(--accent);
    background: var(--accent);
    gap: 12px;
}

.project-view-btn svg {
    transition: transform 0.3s var(--ease);
}

.project-view-btn:hover svg {
    transform: translateX(2px);
}

/* ===========================
   Modal — fiche PPE
   =========================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.35s var(--ease);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}

.modal-overlay.open .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: sticky;
    top: 0;
    float: right;
    margin: 20px 20px 0 0;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
    flex-shrink: 0;
}

.modal-close:hover {
    background: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
}

.modal-inner {
    padding: 32px 40px 40px;
    clear: both;
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-heading);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.modal-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
}

.modal-field.full-width {
    grid-column: 1 / -1;
}

.modal-field-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.modal-field-content {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.75;
}

.modal-field-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-field-content ul li {
    position: relative;
    padding-left: 14px;
    font-size: 0.85rem;
    color: var(--text);
}

.modal-field-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
}

.modal-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.modal-open {
    overflow: hidden;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1100px) {
    .bts-modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .patrimoine-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .certs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }
    .bts-intro {
        grid-template-columns: 1fr;
    }
    .bts-exams {
        grid-template-columns: 1fr;
    }
    .entreprise-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .presentation-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .attestations-grid {
        grid-template-columns: 1fr 1fr;
    }
    .bilan-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }

    .nav-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 32px 20px;
        gap: 4px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s var(--ease);
        overflow-y: auto;
    }

    .nav-menu.open {
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        font-size: 1rem;
        padding: 12px 0;
        color: rgba(255, 255, 255, 0.7) !important;
    }

    .nav-link:hover, .nav-link.active {
        color: #FFFFFF !important;
        background: transparent;
    }

    .navbar.scrolled .nav-link {
        color: rgba(255, 255, 255, 0.7) !important;
    }

    .nav-link-cta {
        margin-left: 0;
        margin-top: 16px;
        text-align: center;
        display: block;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
        padding: calc(var(--nav-height) + 40px) 20px 80px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .hero-photo-placeholder {
        width: 200px;
        height: 200px;
    }

    .hero-photo-wrapper img {
        width: 200px;
        height: 200px;
    }

    .hero-bg-lines { display: none; }
    .hero-scroll { display: none; }

    .section { padding: 80px 0; }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .timeline-center { display: none; }
    .timeline-left { padding-top: 0; }

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

    .project-card {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .project-number { display: none; }

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

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row { grid-template-columns: 1fr; }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .presentation-facts { grid-template-columns: 1fr; }

    .fact-card-highlight { grid-column: 1; }

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

    .bts-modules-grid { grid-template-columns: 1fr; }

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

    .modal-inner { padding: 24px 20px 28px; }

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

    .modal-field.full-width { grid-column: 1; }

    .modal-title { font-size: 1.25rem; }

    .entreprise-block { padding: 28px 24px; }

    .presentation-actions { flex-direction: column; }

    .btn-outline { justify-content: center; }
}

/* ===========================
   Terminal (hero)
   =========================== */
.terminal {
    width: 100%;
    max-width: 480px;
    background: #08060F;
    border: 1px solid #3A3060;
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(139, 92, 246, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    font-family: 'Courier New', 'Consolas', 'Menlo', monospace;
    font-size: 0.8rem;
    line-height: 1.65;
}

.terminal-header {
    background: #110D1E;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #2A2040;
}

.t-dots {
    display: flex;
    gap: 7px;
    flex-shrink: 0;
}

.t-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
}
.t-dot--red    { background: #FF5F57; }
.t-dot--yellow { background: #FEBC2E; }
.t-dot--green  { background: #28C840; }

.terminal-title-bar {
    font-size: 0.72rem;
    color: #5B4F7A;
    letter-spacing: 0.05em;
    font-family: var(--font-sans);
}

.terminal-body {
    padding: 18px 22px 22px;
    min-height: 290px;
    max-height: 290px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.t-line {
    display: flex;
    align-items: baseline;
    gap: 0;
    min-height: 1.65em;
    flex-shrink: 0;
}

.t-prompt {
    color: #8B5CF6;
    flex-shrink: 0;
    margin-right: 8px;
    white-space: nowrap;
}

.t-cmd {
    color: #E8E5F0;
    word-break: break-all;
}

.t-out {
    color: #6B5E8A;
    white-space: pre;
    flex-shrink: 0;
}

.t-out--success { color: #4ADE80; }
.t-out--warn    { color: #FBBF24; }
.t-out--info    { color: #A78BFA; }

.t-cursor {
    display: inline-block;
    width: 7px;
    height: 0.9em;
    background: #8B5CF6;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: termBlink 1.1s step-end infinite;
    flex-shrink: 0;
}

@keyframes termBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ===========================
   Schéma réseau
   =========================== */
.schema-wrapper {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.schema-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.schema-summary-card {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
}

.schema-summary-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.schema-summary-card strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-heading);
    line-height: 1.4;
    margin-bottom: 8px;
}

.schema-summary-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.schema-container {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(8, 6, 15, 0.96) 0%, rgba(12, 10, 19, 1) 100%);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}

.schema-header {
    padding: 20px 28px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.schema-header h3 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-heading);
}

.schema-header span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.schema-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.schema-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: 100px;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
    white-space: nowrap;
}

.schema-dl-btn:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.schema-svg-wrap {
    padding: 18px 14px 22px;
}

.schema-legend {
    padding: 14px 28px;
    border-top: 1px solid var(--line);
    background: var(--bg-dark);
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.schema-summary-card {
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.schema-summary-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 10px 24px rgba(139, 92, 246, 0.12);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* SVG network animation */
.net-line {
    stroke: #8B5CF6;
    stroke-width: 1.8;
    fill: none;
    stroke-dasharray: 8 5;
    animation: netFlow 1.8s linear infinite;
}

.net-line--vpn {
    stroke: #A78BFA;
    stroke-width: 1.4;
    fill: none;
    stroke-dasharray: 6 6;
    animation: netFlow 2.2s linear infinite;
    animation-delay: -0.8s;
}

.net-line-faint {
    stroke: #4A3F6B;
    stroke-width: 1.2;
    fill: none;
    stroke-dasharray: 4 5;
    animation: netFlow 3s linear infinite;
}

.net-line--delay1 { animation-delay: -0.6s; }
.net-line--delay2 { animation-delay: -1.2s; }
.net-line--delay3 { animation-delay: -1.8s; }

@keyframes netFlow {
    to { stroke-dashoffset: -52; }
}

@media (max-width: 768px) {
    .terminal { max-width: 100%; }
    .schema-summary { grid-template-columns: 1fr; }
    .schema-legend { gap: 16px; }
    .schema-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 920px) {
    .schema-svg-wrap {
        overflow-x: auto;
    }

    .schema-svg-wrap svg {
        min-width: 920px;
    }
}

/* ===========================
   ✦ Animations avancées
   =========================== */

/* Barre de progression de lecture */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--identity), var(--accent), var(--accent-light));
    transform-origin: left;
    transform: scaleX(0);
    z-index: 9999;
    pointer-events: none;
}

/* Hero — orbe secondaire flottant */
.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(109, 40, 217, 0.13) 0%, transparent 62%);
    bottom: -160px;
    left: -60px;
    animation: orbDrift 14s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes orbDrift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(110px, -70px) scale(1.18); }
}

/* Hero title — italique en glow doux */
.hero-title em {
    animation: italicGlow 5s ease-in-out infinite;
}

@keyframes italicGlow {
    0%, 100% { color: rgba(255, 255, 255, 0.5); }
    50%       { color: rgba(167, 139, 250, 0.85); }
}

/* Hero label — pulsation de bordure */
.hero-label {
    animation: labelPulse 4s ease-in-out infinite;
}

@keyframes labelPulse {
    0%, 100% { border-color: rgba(255, 255, 255, 0.2); box-shadow: none; }
    50%       { border-color: rgba(139, 92, 246, 0.55); box-shadow: 0 0 18px rgba(139, 92, 246, 0.2); }
}

/* Hero photo — flottement doux */
.hero-photo-wrapper {
    animation: heroFloat 7s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-14px); }
}

/* Scroll line — descente animée */
.scroll-line {
    animation: scrollDrop 2.2s ease-in-out infinite !important;
    background: linear-gradient(to bottom, var(--accent), transparent) !important;
}

@keyframes scrollDrop {
    0%   { opacity: 0; transform-origin: top; transform: scaleY(0.2); }
    40%  { opacity: 1; transform-origin: top; transform: scaleY(1); }
    65%  { opacity: 1; transform-origin: bottom; transform: scaleY(1); }
    100% { opacity: 0; transform-origin: bottom; transform: scaleY(0); }
}

/* Section label — point pulsant */
.section-label::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 10px;
    vertical-align: middle;
    animation: dotPing 2.5s ease-in-out infinite;
}

@keyframes dotPing {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%       { opacity: 1; transform: scale(1.6); }
}

/* Timeline dots — anneau pulsant */
.timeline-dot {
    position: relative;
}

.timeline-dot::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0;
    animation: dotRing 3s ease-out infinite;
}

@keyframes dotRing {
    0%   { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(2.6); opacity: 0; }
}

/* Reveal — profondeur avec blur */
.reveal {
    filter: blur(4px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), filter 0.7s var(--ease-out);
}

.reveal.visible {
    filter: blur(0);
}

/* Stagger étendu à 8 */
.reveal-stagger .reveal:nth-child(7) { transition-delay: 0.48s; }
.reveal-stagger .reveal:nth-child(8) { transition-delay: 0.56s; }

/* Cards — shimmer au survol */
.module-card,
.fact-card,
.patrimoine-card,
.attestation-card {
    position: relative;
    overflow: hidden;
}

.module-card::after,
.fact-card::after,
.patrimoine-card::after,
.attestation-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 55%;
    height: 100%;
    background: linear-gradient(
        110deg,
        transparent 30%,
        rgba(255, 255, 255, 0.042) 50%,
        transparent 70%
    );
    transition: left 0.6s ease;
    pointer-events: none;
}

.module-card:hover::after,
.fact-card:hover::after,
.patrimoine-card:hover::after,
.attestation-card:hover::after {
    left: 130%;
}

/* PPE — corps coulissant */
.project-body {
    transition: transform 0.35s var(--ease);
}

.project-card:hover .project-body {
    transform: translateX(6px);
}

/* Numéro PPE */
.project-number {
    color: rgba(139, 92, 246, 0.1) !important;
    transition: color 0.4s var(--ease);
}

.project-card:hover .project-number {
    color: rgba(139, 92, 246, 0.28) !important;
}

/* Exam badge — tilt léger */
.exam-badge {
    transition: transform 0.3s var(--ease);
}

.exam-card:hover .exam-badge {
    transform: rotate(-4deg) scale(1.08);
}

/* Mission tags */
.mission-tag {
    transition: all 0.25s var(--ease);
    cursor: default;
}

.mission-tag:hover {
    background: rgba(139, 92, 246, 0.22);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Boutons — shimmer */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 55%;
    height: 100%;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transition: left 0.5s ease;
    pointer-events: none;
}

.btn:hover::after {
    left: 130%;
}

/* Contact link — icône scale */
.contact-link svg {
    transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}

.contact-link:hover svg {
    transform: scale(1.18);
    color: var(--accent-light);
}

/* Attestation icon */
.attestation-icon {
    transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}

.attestation-card:hover .attestation-icon {
    transform: scale(1.18);
    color: var(--accent-light);
}

/* Source item — glissement */
.source-item {
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.source-item:hover {
    transform: translateX(5px);
}

/* Nav logo — glow */
.nav-logo {
    transition: color 0.4s var(--ease), text-shadow 0.3s var(--ease);
}

.nav-logo:hover {
    text-shadow: 0 0 22px rgba(139, 92, 246, 0.55);
}

/* Projet view btn — icône */
.project-view-btn svg {
    transition: transform 0.3s var(--ease);
}

.project-view-btn:hover svg {
    transform: translateX(4px);
}

/* Fact card highlight — glow pulsant */
.fact-card-highlight {
    animation: highlightGlow 4s ease-in-out infinite;
}

@keyframes highlightGlow {
    0%, 100% { box-shadow: none; }
    50%       { box-shadow: 0 0 20px rgba(139, 92, 246, 0.15); }
}

/* Section dark — légère texture de bruit */
.section-dark {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.018'/%3E%3C/svg%3E");
}

/* Patrimoine items — hover discret */
.patrimoine-item {
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.patrimoine-item:hover {
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.08);
    padding-left: 16px;
}

/* Exam cards grid — hover élévation accrue */
.exam-card {
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.exam-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--accent-dim);
}

/* Schéma summary cards — icône de statut */
.schema-summary-card::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin-bottom: 10px;
    border-radius: 2px;
}

/* ===========================
   🌌 Space background
   =========================== */

/* Base sombre sur html, body transparent pour laisser passer le canvas */
html {
    background: #0A0812;
}

body {
    background: transparent;
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    display: block;
}

/* Hero — transparent total */
.hero {
    background: transparent;
}

/* Sections normales — transparentes, étoiles visibles partout */
.section {
    background: transparent;
}

/* Sections sombres — voile léger pour différencier les blocs, étoiles visibles */
.section-dark {
    background: rgba(8, 6, 16, 0.60);
}

/* Navbar non scrollée — quasi transparent */
.navbar:not(.scrolled) {
    background: rgba(10, 8, 18, 0.25);
}

/* Footer */
.footer {
    background: rgba(8, 6, 16, 0.80);
    border-top: 1px solid var(--line);
}

/* ===========================
   🚀 Loader
   =========================== */
#loader {
    position: fixed;
    inset: 0;
    background: #0A0812;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

#loader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-mk {
    font-family: var(--font-serif);
    font-size: clamp(4.5rem, 12vw, 8rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1;
    animation: loaderIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.loader-mk span {
    color: var(--accent);
    font-style: italic;
}

@keyframes loaderIn {
    from { opacity: 0; transform: translateY(32px) scale(0.88); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.loader-sub {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 18px;
    animation: loaderIn 0.9s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.loader-progress-wrap {
    width: 100px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    margin-top: 44px;
    overflow: hidden;
    animation: loaderIn 0s 0.4s both;
}

.loader-progress {
    height: 100%;
    width: 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--identity), var(--accent-light));
    animation: loaderFill 1.6s 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loaderFill {
    to { width: 100%; }
}


/* ===========================
   📊 Stats animées
   =========================== */
.stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 64px;
    padding: 36px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 0 24px;
}

.stat-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 6px;
}

.stat-num {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--accent-light);
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat-suffix {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent);
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--line);
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .stats-row { flex-wrap: wrap; gap: 24px; border: none; padding: 0; margin-bottom: 48px; }
    .stat-divider { display: none; }
    .stat-item { flex: 1 1 40%; }
}

/* ===========================
   📶 Barres de compétences
   =========================== */
.skill-bars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 48px;
}

.skill-bar-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-bar-header span:first-child {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-heading);
}

.skill-pct {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    font-family: var(--font-serif);
}

.skill-track {
    height: 4px;
    background: rgba(139, 92, 246, 0.12);
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--identity), var(--accent), var(--accent-light));
    transition: width 1.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (max-width: 768px) {
    .skill-bars { grid-template-columns: 1fr; }
}

/* ===========================
   ⬆️ Bouton retour en haut
   =========================== */
#scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    border: 1px solid rgba(167, 139, 250, 0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    opacity: 0;
    transform: translateY(12px) scale(0.85);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
}

#scroll-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#scroll-top:hover {
    background: var(--accent-light);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.55);
    transform: translateY(-3px) scale(1.05);
}

/* ===========================
   🔗 Liens sociaux flottants
   =========================== */
.social-float {
    position: fixed;
    left: 28px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    z-index: 500;
    padding-bottom: 0;
}

.social-float-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.social-float-link:hover {
    color: var(--accent-light);
    transform: translateY(-3px);
}

.social-float-line {
    width: 1px;
    height: 72px;
    background: linear-gradient(to bottom, var(--line), transparent);
}

@media (max-width: 900px) {
    .social-float { display: none; }
}
