/* ==========================================================================
   GOMES DIGITAL CREATIONS — STYLE SYSTEM 2.2
   Palette : Deep Midnight Blue (#020813), Cyber Cyan (#00e5ff), Sapphire (#2563eb)
   ========================================================================== */

:root {
    --bg-dark: #020813;
    --bg-darker: #01040a;
    --bg-surface: rgba(7, 24, 46, 0.72);
    --bg-surface-elevated: rgba(10, 31, 58, 0.85);
    --bg-card: rgba(8, 25, 48, 0.65);
    --bg-card-hover: rgba(14, 38, 72, 0.85);
    
    --border-glass: rgba(56, 189, 248, 0.18);
    --border-glass-hover: rgba(0, 229, 255, 0.5);
    --border-subtle: rgba(255, 255, 255, 0.08);

    --accent-cyan: #00e5ff;
    --accent-sky: #38bdf8;
    --accent-blue: #2563eb;
    --accent-navy: #031b38;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;

    --text-white: #f8fafc;
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-glow-cyan: 0 0 30px rgba(0, 229, 255, 0.25);
    --shadow-glow-blue: 0 0 35px rgba(37, 99, 235, 0.3);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);

    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
    line-height: 1.65;
    min-height: 100vh;
}

/* Background Interactive Canvas */
#cyber-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
}

/* Halos lumineux d'ambiance */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.28;
    will-change: transform;
}

.glow-1 {
    top: -100px;
    left: 20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #0284c7 0%, rgba(3, 169, 244, 0) 70%);
}

.glow-2 {
    top: 35%;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #1e40af 0%, rgba(30, 64, 175, 0) 70%);
}

.glow-3 {
    bottom: -150px;
    left: -100px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #00e5ff 0%, rgba(0, 229, 255, 0) 70%);
    opacity: 0.15;
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    letter-spacing: -0.02em;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 60%, var(--accent-sky) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.gradient-text-alt {
    background: linear-gradient(135deg, var(--accent-sky) 0%, #60a5fa 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-cyan { color: var(--accent-cyan) !important; }
.text-blue { color: var(--accent-sky) !important; }
.text-amber { color: var(--accent-amber) !important; }
.text-emerald { color: var(--accent-emerald) !important; }
.text-center { text-align: center; }

/* Sections Global */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
    scroll-margin-top: 110px;
}

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

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.25);
    color: var(--accent-cyan);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.12rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar-wrapper {
    position: fixed;
    top: 16px;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 20px;
    transition: var(--transition-smooth);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(4, 15, 30, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-white);
}

.brand-logo-glow {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.25) 0%, transparent 70%);
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--accent-cyan);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
    transition: var(--transition-smooth);
}

.brand-link:hover .brand-logo {
    transform: rotate(15deg) scale(1.05);
    box-shadow: 0 0 20px var(--accent-cyan);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.12em;
    color: #ffffff;
    line-height: 1.1;
}

.brand-sub {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--accent-cyan);
    font-weight: 600;
}

.nav-links-desktop {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-item {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 6px 2px;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-cyan);
    transition: var(--transition-fast);
    box-shadow: 0 0 8px var(--accent-cyan);
}

.nav-item:hover {
    color: #ffffff;
}

.nav-item:hover::after {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(37, 99, 235, 0.3));
    border: 1px solid var(--accent-cyan);
    color: #ffffff;
    text-decoration: none;
    padding: 9px 20px;
    border-radius: var(--radius-full);
    font-size: 0.92rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

.nav-cta:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.6);
    transform: translateY(-2px);
}

.nav-cta:hover i {
    transform: translateX(3px);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Drawer */
.mobile-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 20px;
    right: 20px;
    background: rgba(3, 14, 28, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.mobile-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.mobile-link:hover {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
}

.mobile-link.cta {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: var(--bg-dark);
    text-align: center;
    margin-top: 8px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #0284c7 100%);
    color: #020813;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #38e9ff 0%, #0369a1 100%);
    box-shadow: 0 6px 30px rgba(0, 229, 255, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(8, 25, 48, 0.7);
    color: #ffffff;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(14, 40, 75, 0.85);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.15);
    transform: translateY(-2px);
}

.btn-tertiary {
    background: rgba(0, 229, 255, 0.08);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 229, 255, 0.35);
    backdrop-filter: blur(10px);
}

.btn-tertiary:hover {
    background: rgba(0, 229, 255, 0.18);
    border-color: var(--accent-cyan);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.25);
    transform: translateY(-2px);
}

.btn-hero-cta {
    position: relative;
    overflow: hidden;
}

.btn-hero-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: rotate(30deg);
    animation: shineBtn 4.5s infinite;
}

@keyframes shineBtn {
    0% { transform: translateX(-100%) rotate(30deg); }
    22%, 100% { transform: translateX(100%) rotate(30deg); }
}

.btn-project {
    width: 100%;
    padding: 13px 24px;
    border-radius: var(--radius-md);
    font-size: 0.96rem;
}

.btn-cinescape {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(37, 99, 235, 0.4));
    border: 1px solid var(--accent-cyan);
    color: #ffffff;
}
.btn-cinescape:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.5);
    transform: translateY(-2px);
}

.btn-maths {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(16, 185, 129, 0.35));
    border: 1px solid #38bdf8;
    color: #ffffff;
}
.btn-maths:hover {
    background: #38bdf8;
    color: var(--bg-dark);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
    transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 95vh;
    padding-top: 150px;
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(7, 25, 48, 0.85);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: var(--radius-full);
    color: var(--text-light);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 28px;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}

.pulse-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: clamp(2.4rem, 5.2vw, 4.4rem);
    line-height: 1.12;
    margin-bottom: 24px;
    max-width: 1020px;
}

.hero-subtitle {
    max-width: 880px;
    margin-bottom: 40px;
    text-align: center;
}

.hero-subtitle p {
    font-size: clamp(1.02rem, 1.7vw, 1.2rem);
    color: var(--text-muted);
    line-height: 1.68;
    margin-bottom: 14px;
}

.hero-subtitle p:last-child {
    margin-bottom: 0;
}

.hero-intro-name {
    font-size: clamp(1.15rem, 2vw, 1.35rem) !important;
    color: #ffffff !important;
    font-weight: 500;
    margin-bottom: 12px !important;
}

.hero-subtitle strong {
    color: #ffffff;
    font-weight: 700;
}

.hero-bullets {
    list-style: none;
    padding: 0;
    margin: 22px auto 0 auto;
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    max-width: 740px;
}

.hero-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: clamp(0.95rem, 1.4vw, 1.08rem);
    color: var(--text-light);
    line-height: 1.55;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    transition: var(--transition-fast);
}

.hero-bullets li:hover {
    border-color: rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.04);
}

.hero-bullets li i {
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 60px;
}

.hero-stats {
    width: 100%;
    max-width: 980px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-card);
    gap: 20px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--accent-cyan);
    line-height: 1.1;
    margin-bottom: 4px;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.35);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   QUOTE MANIFESTO SECTION (MISE EN AVANT SPECTACULAIRE DE LA CITATION)
   ========================================================================== */
.quote-manifesto-section {
    padding: 60px 0 80px;
    position: relative;
    z-index: 1;
}

.quote-manifesto-card {
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(8, 28, 56, 0.88) 0%, rgba(3, 14, 28, 0.96) 100%);
    border: 1.5px solid rgba(0, 229, 255, 0.35);
    border-radius: 28px;
    padding: 50px 60px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 25px 65px -15px rgba(0, 0, 0, 0.85), 
                0 0 50px rgba(0, 229, 255, 0.22), 
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    text-align: center;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.quote-manifesto-card:hover {
    border-color: rgba(0, 229, 255, 0.6);
    box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.9), 
                0 0 70px rgba(0, 229, 255, 0.32), 
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
}

/* Lueurs intégrées d'ambiance */
.quote-glow-bg {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(0, 229, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.quote-glow-orb {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.quote-inner {
    position: relative;
    z-index: 1;
}

/* Badge Supérieur */
.quote-top-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 20px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: var(--radius-full);
    color: var(--accent-cyan);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.2);
}

/* Grande Icône de Citation */
.quote-symbol {
    font-size: 2.8rem;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    line-height: 1;
    text-shadow: 0 0 25px rgba(0, 229, 255, 0.7);
    opacity: 0.9;
}

/* Texte de la Citation */
.quote-main-statement {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    line-height: 1.48;
    color: #ffffff;
    font-weight: 600;
    max-width: 900px;
    margin: 0 auto 36px;
    letter-spacing: -0.01em;
}

.quote-glow-keyword {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-sky) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    border-bottom: 2px solid rgba(56, 189, 248, 0.5);
    padding-bottom: 2px;
}

.quote-cyan-keyword {
    color: var(--accent-cyan);
    font-weight: 800;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

/* Ligne Auteur & Signature */
.quote-author-row {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: rgba(3, 14, 28, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-full);
    padding: 8px 24px 8px 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.quote-author-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.author-mini-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.author-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-emerald);
    border: 2px solid #030e1c;
    box-shadow: 0 0 6px var(--accent-emerald);
}

.quote-author-meta {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.author-role {
    font-size: 0.82rem;
    color: var(--accent-sky);
    font-weight: 500;
}

/* Angles Cybernétiques */
.quote-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: var(--accent-cyan);
    opacity: 0.7;
    pointer-events: none;
}

.quote-corner.top-left {
    top: 14px;
    left: 14px;
    border-top: 2px solid var(--accent-cyan);
    border-left: 2px solid var(--accent-cyan);
}

.quote-corner.top-right {
    top: 14px;
    right: 14px;
    border-top: 2px solid var(--accent-cyan);
    border-right: 2px solid var(--accent-cyan);
}

.quote-corner.bottom-left {
    bottom: 14px;
    left: 14px;
    border-bottom: 2px solid var(--accent-cyan);
    border-left: 2px solid var(--accent-cyan);
}

.quote-corner.bottom-right {
    bottom: 14px;
    right: 14px;
    border-bottom: 2px solid var(--accent-cyan);
    border-right: 2px solid var(--accent-cyan);
}

@media (max-width: 768px) {
    .quote-manifesto-card {
        padding: 36px 24px;
        border-radius: 20px;
    }
    
    .quote-author-row {
        flex-direction: column;
        text-align: center;
        border-radius: 16px;
        padding: 16px;
    }
}

/* ==========================================================================
   ABOUT SECTION — ORIENTATION GESTION DE PROJET & LISIBILITÉ OPTIMALE
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.portrait-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.portrait-glow {
    position: absolute;
    inset: -15px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.3) 0%, rgba(37, 99, 235, 0.2) 50%, transparent 70%);
    border-radius: var(--radius-lg);
    filter: blur(20px);
    z-index: 0;
}

.portrait-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(180deg, #071930 0%, #030d1b 100%);
    border: 2px solid var(--border-glass-hover);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.portrait-img {
    width: 100%;
    height: auto;
    display: block;
    filter: contrast(1.05) brightness(1.02);
    transition: transform 0.5s ease;
}

.portrait-card:hover .portrait-img {
    transform: scale(1.03);
}

.floating-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(3, 14, 28, 0.94);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    z-index: 2;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: var(--transition-fast);
}

.floating-chip:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
}

.floating-chip i {
    font-size: 1.4rem;
}

.floating-chip strong {
    display: block;
    font-size: 0.9rem;
    color: #ffffff;
}

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

.chip-top {
    top: -20px;
    right: -24px;
}

.chip-bottom {
    bottom: -20px;
    left: -20px;
}

.about-content {
    display: flex;
    flex-direction: column;
}

.about-subtitle {
    font-size: 1.35rem;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 20px;
}

.about-lead-box {
    background: rgba(7, 24, 46, 0.65);
    border-left: 3px solid var(--accent-cyan);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 16px 20px;
    margin-bottom: 24px;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.65;
}

.about-lead-box strong {
    color: #ffffff;
}

/* 3 Piliers d'Impact Clairs */
.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.pillar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    transition: var(--transition-fast);
}

.pillar-card:hover {
    border-color: var(--accent-cyan);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.pillar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.pillar-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.pillar-header h4 {
    font-size: 1.05rem;
    color: #ffffff;
}

.pillar-sub {
    font-size: 0.8rem;
    color: var(--accent-sky);
    font-weight: 600;
}

.pillar-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

.about-actions-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
    gap: 36px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-card);
    position: relative;
}

.project-card:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 45px -10px rgba(0, 229, 255, 0.2);
}

.project-banner-wrapper {
    position: relative;
    width: 100%;
    height: 270px;
    overflow: hidden;
    background: #000;
    display: block;
    cursor: pointer;
    text-decoration: none;
}

.project-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-banner-wrapper:hover .project-banner {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 8, 19, 0.1) 0%, rgba(2, 8, 19, 0.85) 100%);
    transition: background 0.3s ease;
}

.project-banner-wrapper:hover .project-overlay {
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.08) 0%, rgba(2, 8, 19, 0.8) 100%);
}

.banner-quick-link {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(3, 14, 28, 0.85);
    border: 1px solid var(--accent-cyan);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.project-banner-wrapper:hover .banner-quick-link {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.7);
    transform: translateY(-2px);
}

.project-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.badge-cinescape {
    background: rgba(3, 14, 28, 0.88);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}

.badge-maths {
    background: rgba(3, 14, 28, 0.88);
    border: 1px solid #38bdf8;
    color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.project-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.project-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
}

.project-icon-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    text-decoration: none;
    transition: var(--transition-fast);
}

.project-icon-link:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    transform: rotate(45deg);
}

.project-tagline {
    font-size: 1.05rem;
    color: var(--accent-sky);
    font-weight: 600;
    margin-bottom: 14px;
}

.project-desc {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 24px;
}

.project-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(4, 15, 30, 0.5);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.feature-item i {
    margin-top: 3px;
    font-size: 0.85rem;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.tech-tag {
    padding: 4px 12px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: #cbd5e1;
    font-weight: 500;
}

.project-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.live-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-dim);
}

.dot-online {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
}

/* ==========================================================================
   SKILLS & EXPERTISE
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    backdrop-filter: blur(14px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.skill-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -10px rgba(0, 229, 255, 0.2);
}

.skill-icon-box {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(37, 99, 235, 0.25));
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.skill-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.skill-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.skill-list {
    list-style: none;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.skill-list li {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   VALUES SECTION
   ========================================================================== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    opacity: 0.7;
    transition: var(--transition-fast);
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glass-hover);
    box-shadow: 0 15px 35px -10px rgba(37, 99, 235, 0.25);
}

.value-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

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

/* ==========================================================================
   CONTACT SECTION & ANTI-BOT SYSTEM
   ========================================================================== */
.contact-single-wrapper {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-card);
}

.form-header-bar {
    background: rgba(3, 12, 24, 0.95);
    border-bottom: 1px solid var(--border-glass);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.terminal-title {
    margin-left: 12px;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(3, 12, 24, 0.7);
    border-top: 1px solid var(--border-glass);
}

.contact-footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-light);
}

.contact-footer-item a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.contact-footer-item a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.secure-form {
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Piège Anti-Robot (Honeypot) */
.robot-trap-container {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-group .required {
    color: var(--accent-cyan);
}

.form-group .optional {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 400;
}

.char-count {
    font-size: 0.78rem;
    color: var(--text-dim);
    font-weight: 400;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-dim);
    font-size: 1rem;
    transition: var(--transition-fast);
    pointer-events: none;
}

.textarea-icon {
    top: 16px;
}

.form-input {
    width: 100%;
    padding: 13px 16px 13px 46px;
    background: rgba(3, 14, 28, 0.75);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.96rem;
    outline: none;
    transition: var(--transition-fast);
}

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

.form-input:focus {
    border-color: var(--accent-cyan);
    background: rgba(5, 20, 40, 0.9);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.25);
}

.form-input:focus + .input-icon,
.input-icon-wrapper:focus-within .input-icon {
    color: var(--accent-cyan);
}

.field-error {
    font-size: 0.82rem;
    color: var(--accent-rose);
    min-height: 18px;
    font-weight: 500;
    transition: var(--transition-fast);
}

/* Validation visuelle dynamique des champs */
.form-input.is-invalid {
    border-color: #f43f5e !important;
    background: rgba(244, 63, 94, 0.08) !important;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.3) !important;
}

.form-input.is-valid {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.06) !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2) !important;
}

/* ==========================================================================
   WIDGET ANTI-BOT SÉCURISÉ (CERTIFICATION HUMAINE 1-CLIC + PIÈGES INVISIBLES)
   ========================================================================== */
.anti-bot-widget-simple {
    background: rgba(3, 14, 28, 0.9);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.anti-bot-widget-simple.is-invalid {
    border-color: #f43f5e !important;
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.35) !important;
    animation: shakeWidget 0.45s ease;
}

.anti-bot-widget-simple.is-valid {
    border-color: #10b981 !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3) !important;
}

@keyframes shakeWidget {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.antibot-checkbox-label {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    flex: 1;
}

.antibot-checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.antibot-custom-box {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(5, 20, 40, 0.95);
    border: 2px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.antibot-checkbox-label:hover .antibot-custom-box {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.antibot-checkbox-input:checked + .antibot-custom-box {
    background: var(--accent-emerald);
    border-color: #34d399;
    color: #020813;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.6);
}

.antibot-check-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.antibot-main-text {
    font-size: 0.96rem;
    font-weight: 600;
    color: #ffffff;
}

.antibot-sub-text {
    font-size: 0.76rem;
    color: var(--text-dim);
}

.antibot-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.antibot-badge.badge-pending {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.35);
    color: #fb7185;
}

.antibot-badge.badge-verified {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #34d399;
}

/* Bouton Envoyer */
.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #0284c7 100%);
    color: #020813;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.35);
}

.btn-submit:hover:not(:disabled) {
    box-shadow: 0 6px 30px rgba(0, 229, 255, 0.6);
    transform: translateY(-2px);
}

.btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.form-feedback {
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
}

.form-feedback.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--accent-emerald);
    color: #34d399;
}

.form-feedback.error {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid var(--accent-rose);
    color: #fb7185;
}

.form-feedback.info {
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.4);
    color: #ffffff;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.15);
}

.fallback-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: #01040a;
    border-top: 1px solid var(--border-glass);
    padding: 80px 0 30px;
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.25fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand .brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--accent-cyan);
}

.footer-brand-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.05em;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 340px;
    line-height: 1.6;
}

.footer-links-group h4 {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
}

.footer-links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-group a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links-group a:hover {
    color: var(--accent-cyan);
    transform: translateX(3px);
}

.tech-badge-sm {
    font-size: 0.85rem;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(4, 15, 30, 0.85);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 229, 255, 0.3);
    backdrop-filter: blur(12px);
    z-index: 999;
    transition: var(--transition-bounce);
}

.back-to-top:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.7);
    transform: translateY(-4px);
}

.back-to-top.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 90px;
    background: rgba(3, 14, 28, 0.95);
    border: 1px solid var(--accent-cyan);
    border-radius: var(--radius-md);
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), var(--shadow-glow-cyan);
    backdrop-filter: blur(16px);
    z-index: 9999;
    transform: translateY(0);
    transition: var(--transition-bounce);
}

.toast-notification.hidden {
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}

.toast-icon {
    color: var(--accent-cyan);
    font-size: 1.2rem;
}

/* Reveal on Scroll Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-fade {
    animation: fadeInHero 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInHero {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .portrait-card {
        max-width: 320px;
    }

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

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .nav-links-desktop {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

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

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        padding: 24px 20px;
    }

    .stat-divider {
        width: 80%;
        height: 1px;
    }

    .hidden-mobile {
        display: none;
    }

    .section {
        padding: 70px 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .floating-chip {
        position: static;
        margin-top: 14px;
        width: 100%;
    }

    .toast-notification {
        right: 20px;
        left: 20px;
        bottom: 20px;
    }

    #cyber-canvas {
        display: none !important;
    }

    #about-content {
        scroll-margin-top: 80px;
    }

    .hero-subtitle {
        text-align: left;
        margin-bottom: 32px;
    }

    .hero-subtitle p {
        text-align: left;
        font-size: 1.02rem;
    }

    .project-banner-wrapper {
        height: 220px;
    }

    .banner-quick-link {
        font-size: 0.75rem;
        padding: 5px 12px;
        bottom: 12px;
        right: 12px;
    }

    .secure-form {
        padding: 28px 20px;
    }

    .contact-card-footer {
        padding: 18px 20px;
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .secure-form {
        padding: 22px 16px;
    }

    .anti-bot-widget-simple {
        padding: 12px 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .antibot-badge {
        align-self: flex-start;
    }

    .contact-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 16px;
    }
}

/* ==========================================================================
   OPTIMISATIONS MODERNES DE RENDU (First Contentful Paint & Mobile CPU/GPU)
   ========================================================================== */
.quote-manifesto-section,
.about-section,
.projects-section,
.skills-section,
.values-section,
.contact-section,
.site-footer {
    content-visibility: auto;
    contain-intrinsic-size: 1px 700px;
}
