/* =====================================================
   MISSELEY YAOTSÈ ROBERT — PORTFOLIO PROFESSIONNEL
   Design System Moderne, Élégant & 100% Responsive
   Compatible Mobile, Tablette, Laptop & Grand Écran
===================================================== */

/* ================= 1. VARIABLES & THEMES ================= */

:root {
    /* Palette Sombre (Défaut) */
    --bg-primary: #070b14;
    --bg-secondary: #0d1527;
    --bg-tertiary: #131f38;
    --bg-card: rgba(15, 25, 48, 0.78);
    --bg-card-hover: rgba(22, 36, 68, 0.92);
    --bg-glass: rgba(13, 21, 39, 0.85);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-highlight: #ffffff;

    /* Accents Géomatique & Tech */
    --accent-primary: #00f5d4;
    --accent-primary-rgb: 0, 245, 212;
    --accent-secondary: #38bdf8;
    --accent-secondary-rgb: 56, 189, 248;
    --accent-emerald: #10b981;
    --accent-indigo: #6366f1;
    --accent-amber: #f59e0b;
    --accent-soft: rgba(0, 245, 212, 0.12);

    /* Dégradés */
    --gradient-primary: linear-gradient(135deg, #00f5d4 0%, #38bdf8 50%, #6366f1 100%);
    --gradient-accent: linear-gradient(135deg, #00f5d4 0%, #10b981 100%);
    --gradient-hero: radial-gradient(circle at 80% 20%, rgba(0, 245, 212, 0.15), transparent 45%),
                     radial-gradient(circle at 10% 80%, rgba(56, 189, 248, 0.12), transparent 40%);

    /* Bordures & Ombres */
    --border-color: rgba(255, 255, 255, 0.09);
    --border-hover: rgba(0, 245, 212, 0.38);
    --border-focus: rgba(0, 245, 212, 0.65);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 35px rgba(0, 245, 212, 0.22);
    --shadow-glow-sm: 0 0 15px rgba(0, 245, 212, 0.3);

    /* Rayons & Transitions */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);

    --font-heading: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Thème Clair */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #edf2f7;
    --bg-tertiary: #e2e8f0;
    --bg-card: rgba(255, 255, 255, 0.94);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --bg-glass: rgba(255, 255, 255, 0.92);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-highlight: #020617;

    --accent-primary: #008f7a;
    --accent-primary-rgb: 0, 143, 122;
    --accent-secondary: #0284c7;
    --accent-secondary-rgb: 2, 132, 199;
    --accent-emerald: #059669;
    --accent-indigo: #4f46e5;
    --accent-amber: #d97706;
    --accent-soft: rgba(0, 143, 122, 0.1);

    --gradient-primary: linear-gradient(135deg, #008f7a 0%, #0284c7 50%, #4f46e5 100%);
    --gradient-accent: linear-gradient(135deg, #008f7a 0%, #059669 100%);
    --gradient-hero: radial-gradient(circle at 85% 20%, rgba(0, 143, 122, 0.1), transparent 45%),
                     radial-gradient(circle at 15% 85%, rgba(2, 132, 199, 0.08), transparent 40%);

    --border-color: rgba(15, 23, 42, 0.1);
    --border-hover: rgba(0, 143, 122, 0.38);
    --border-focus: rgba(0, 143, 122, 0.65);
    --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 0 30px rgba(0, 143, 122, 0.15);
    --shadow-glow-sm: 0 0 12px rgba(0, 143, 122, 0.2);
}

/* ================= 2. RESET & BASE GLOBALE ================= */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent-primary);
    color: #070b14;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea {
    font-family: inherit;
    font-size: 16px; /* Prévention zoom iOS */
    border: none;
    outline: none;
    background: none;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
    padding: 0 4px;
}

/* ================= 3. SCROLL PROGRESS BAR ================= */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 1100;
    transition: width 0.1s linear;
}

/* ================= 4. HEADER & NAVIGATION ================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    background: transparent;
    transition: var(--transition);
}

.header.scrolled {
    padding: 12px 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-highlight);
    flex-shrink: 0;
}

.logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient-primary);
    color: #070b14;
    font-size: 16px;
    font-weight: 800;
    box-shadow: var(--shadow-glow-sm);
}

.logo span.logo-dot {
    color: var(--accent-primary);
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 2px;
    transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-primary);
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Thème Switcher */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.theme-toggle:hover {
    color: var(--accent-primary);
    border-color: var(--border-hover);
    transform: rotate(15deg) scale(1.05);
    box-shadow: var(--shadow-glow-sm);
}

.theme-toggle .fa-sun {
    display: none;
}

[data-theme="light"] .theme-toggle .fa-moon {
    display: none;
}

[data-theme="light"] .theme-toggle .fa-sun {
    display: block;
    color: var(--accent-amber);
}

/* Bouton Contact Nav */
.nav-cta {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: #070b14 !important;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-glow-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.nav-cta::after {
    display: none !important;
}

/* Menu Toggle Mobile */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.menu-toggle:hover {
    border-color: var(--border-hover);
    color: var(--accent-primary);
}

/* ================= 5. HERO SECTION ================= */
/* Cette section constitue la première impression du portfolio.
   Elle regroupe le titre, la description, les boutons d’action et la photo. */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 130px 0 70px;
    background: var(--gradient-hero);
    overflow: hidden;
}

/* Canvas interactif en arrière-plan */
#geoCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Ne bloque pas le scroll tactile */
    z-index: 1;
    opacity: 0.65;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 45px;
}

.hero-text {
    max-width: 660px;
}

/* Statut disponible */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    backdrop-filter: blur(12px);
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-emerald);
    position: relative;
    flex-shrink: 0;
}

.pulse-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--accent-emerald);
    opacity: 0.5;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(2.2); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

.location-tag {
    color: var(--accent-primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding-left: 8px;
    border-left: 1px solid var(--border-color);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(34px, 5.2vw, 66px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    color: var(--text-highlight);
    margin-bottom: 14px;
    word-break: break-word;
}

.hero h1 span.gradient-text {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Subtitle avec Typing Effect */
.hero-subtitle {
    font-size: clamp(16px, 2.2vw, 22px);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-subtitle .typed-cursor {
    color: var(--accent-primary);
    font-weight: 300;
    animation: blink 1s infinite;
}

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

.hero-description {
    font-size: 15.5px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.hero-description strong {
    color: var(--text-primary);
}

/* Boutons Hero */
.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #070b14;
    box-shadow: var(--shadow-glow-sm);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px);
    background: var(--bg-card-hover);
}

/* Réseaux sociaux Hero */
.hero-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-socials span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 15px;
    transition: var(--transition);
    flex-shrink: 0;
}

.social-icon:hover {
    color: #070b14;
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-glow-sm);
}

/* Carte Visuelle Hero (Photo de profil) */
/* Cette zone donne à la photo un cadre premium avec effets de verre, ombre et profondeur. */
.hero-visual {
    position: relative;
    width: 100%;
}

.hero-card-3d {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 14px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-slow);
    overflow: hidden;
}

.hero-card-3d:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.hero-fingerprint-art {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 35%, rgba(0, 245, 212, 0.25), transparent 22%),
        linear-gradient(135deg, rgba(3, 8, 17, 0.1), rgba(15, 25, 48, 0.88));
    opacity: 0.96;
    z-index: 0;
}

.scan-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
}

.fingerprint-device {
    position: absolute;
    inset: 20% 18% 18% 18%;
    border-radius: 50%;
    border: 2px solid rgba(0, 245, 212, 0.8);
    box-shadow: inset 0 0 30px rgba(0, 245, 212, 0.18), 0 0 18px rgba(0, 245, 212, 0.2);
    background: radial-gradient(circle, rgba(0, 245, 212, 0.15), rgba(0, 0, 0, 0.12) 62%, rgba(12, 21, 40, 0.85) 100%);
}

.ring {
    position: absolute;
    inset: 8%;
    border: 1px solid rgba(0, 245, 212, 0.55);
    border-radius: 50%;
}

.ring-1 { inset: 14%; }
.ring-2 { inset: 24%; }
.ring-3 { inset: 34%; }
.ring-4 { inset: 45%; }

.fingerprint-core {
    position: absolute;
    inset: 34% 34% 34% 34%;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: radial-gradient(circle, rgba(0, 245, 212, 0.5), rgba(0, 245, 212, 0.08) 60%, transparent 75%);
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.35);
}

.fingerprint-device::before,
.fingerprint-device::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-radial-gradient(circle at center, rgba(0, 245, 212, 0.18) 0 2px, transparent 2px 8px);
    transform: rotate(12deg);
}

.fingerprint-device::after {
    inset: 12% 12% 12% 12%;
    border: 1px solid rgba(255,255,255,0.08);
    background: repeating-radial-gradient(circle at center, rgba(255,255,255,0.12) 0 1.5px, transparent 1.5px 7px);
}

.tech-readout {
    position: absolute;
    right: 20px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    z-index: 2;
    color: rgba(255,255,255,0.8);
    text-shadow: 0 0 12px rgba(0, 245, 212, 0.4);
}

.tech-readout span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.28rem;
    color: rgba(0, 245, 212, 0.9);
}

.tech-readout strong {
    font-size: 12px;
    letter-spacing: 0.12rem;
    color: rgba(255,255,255,0.9);
}

.avatar-container {
    position: relative;
    width: 100%;
    height: 460px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(145deg, rgba(3, 8, 17, 0.15), rgba(19, 31, 56, 0.65));
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transform: translateY(0);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 8%;
    transition: var(--transition-slow);
    filter: contrast(1.02) brightness(1.02);
}

.hero-card-3d:hover .profile-photo {
    transform: scale(1.04);
}

.avatar-glass-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 12px 16px;
    background: rgba(7, 11, 20, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 4;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .avatar-glass-badge {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

.online-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
    flex-shrink: 0;
}

.avatar-badge-text {
    display: flex;
    flex-direction: column;
}

.avatar-badge-text strong {
    font-size: 13px;
    color: var(--text-highlight);
    line-height: 1.2;
}

.avatar-badge-text small {
    font-size: 11px;
    color: var(--accent-primary);
    font-weight: 600;
}

.avatar-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    gap: 16px;
    color: var(--text-muted);
}

.avatar-placeholder .geo-icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: var(--accent-primary);
    border: 2px dashed var(--accent-primary);
    animation: rotateSlow 25s linear infinite;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.avatar-placeholder h4 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 17px;
}

.avatar-placeholder p {
    font-size: 12px;
    max-width: 240px;
}

/* Badges Flottants */
.floating-badge {
    position: absolute;
    padding: 8px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    animation: float 4s ease-in-out infinite;
    z-index: 5;
    white-space: nowrap;
}

.floating-badge i {
    color: var(--accent-primary);
    font-size: 14px;
}

.badge-top-left {
    top: -12px;
    left: -12px;
    animation-delay: 0s;
}

.badge-bottom-right {
    bottom: -12px;
    right: -12px;
    animation-delay: 2s;
}

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

/* ================= 6. STATS BANNER ================= */

.stats-banner {
    position: relative;
    z-index: 3;
    margin-top: -30px;
    margin-bottom: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 6px;
}

.stat-item:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-info .stat-number {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--text-highlight);
    line-height: 1.1;
}

.stat-info .stat-label {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ================= 7. SECTION HEADERS ================= */

.section {
    padding: 90px 0;
    position: relative;
}

.section-header {
    max-width: 720px;
    margin-bottom: 45px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--accent-soft);
    color: var(--accent-primary);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
    border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: var(--text-highlight);
    margin-bottom: 12px;
    word-break: break-word;
}

.section-header h2 span.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ================= 8. BENTO GRID (À PROPOS & LEADERSHIP) ================= */

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

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(16px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-main {
    grid-column: span 7;
}

.bento-leadership {
    grid-column: span 5;
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(99, 102, 241, 0.08) 100%);
}

.bento-synergy {
    grid-column: span 6;
}

.bento-values {
    grid-column: span 6;
}

.bento-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.bento-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

.bento-card-header h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-highlight);
}

.bento-card p {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.bento-card p:last-child {
    margin-bottom: 0;
}

.bento-card strong {
    color: var(--text-primary);
}

/* Badge leadership distinctions */
.leadership-tags {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.leadership-tag-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.leadership-tag-item i {
    color: var(--accent-amber);
    font-size: 16px;
    flex-shrink: 0;
}

.quote-box {
    margin-top: 16px;
    padding: 14px 16px;
    border-left: 3px solid var(--accent-primary);
    background: var(--bg-tertiary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    font-size: 13.5px;
    color: var(--text-secondary);
}

/* Grille de valeurs */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.value-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

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

.value-pill i {
    color: var(--accent-primary);
    font-size: 16px;
    flex-shrink: 0;
}

/* Double compétence */
.synergy-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.synergy-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.synergy-item i {
    color: var(--accent-secondary);
    font-size: 16px;
    margin-top: 3px;
    flex-shrink: 0;
}

.synergy-item div h5 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.synergy-item div p {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0;
}

/* ================= 9. SECTION EXPÉRIENCES & TIMELINE ================= */

.timeline-modern {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-modern::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-indigo), transparent);
}

.timeline-node {
    position: relative;
    padding-left: 60px;
    margin-bottom: 38px;
}

.timeline-marker-modern {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 15px;
    box-shadow: var(--shadow-glow-sm);
    z-index: 2;
    transition: var(--transition);
}

.timeline-node:hover .timeline-marker-modern {
    background: var(--accent-primary);
    color: #070b14;
    transform: scale(1.1);
}

.timeline-card-modern {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 26px;
    backdrop-filter: blur(16px);
    transition: var(--transition);
}

.timeline-card-modern:hover {
    transform: translateX(6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.timeline-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.exp-badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--accent-soft);
    color: var(--accent-primary);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.exp-date {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--accent-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.timeline-card-modern h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-highlight);
    margin-bottom: 4px;
}

.timeline-card-modern h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.timeline-card-modern p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.timeline-card-modern ul {
    padding-left: 20px;
    list-style: disc;
    margin-bottom: 14px;
}

.timeline-card-modern li {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.timeline-tags span {
    padding: 4px 9px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ================= 10. SECTION COMPÉTENCES ================= */

.filter-tabs-wrapper {
    margin-bottom: 35px;
    width: 100%;
}

.filter-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 9px 18px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.filter-btn:hover {
    color: var(--accent-primary);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: #070b14;
    border-color: transparent;
    box-shadow: var(--shadow-glow-sm);
}

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

.skill-card-modern {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 26px;
    backdrop-filter: blur(16px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.skill-card-modern:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.skill-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.skill-icon-modern {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    transition: var(--transition);
}

.skill-card-modern:hover .skill-icon-modern {
    transform: scale(1.1);
    background: var(--gradient-primary);
    color: #070b14;
}

.skill-level-badge {
    padding: 4px 9px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    font-size: 10.5px;
    font-weight: 700;
    color: var(--accent-secondary);
}

.skill-card-modern h3 {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    color: var(--text-highlight);
    margin-bottom: 8px;
}

.skill-card-modern p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.skill-badges-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.skill-tag-pill {
    padding: 5px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.skill-tag-pill:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Outils additionnels */
.tools-showcase {
    margin-top: 45px;
    padding: 26px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
}

.tools-showcase h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-highlight);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tools-grid-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tool-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.tool-chip:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
    background: var(--bg-card-hover);
}

.tool-chip i {
    color: var(--accent-primary);
}

/* ================= 11. SECTION PROJETS ================= */

.projects-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card-modern {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    backdrop-filter: blur(16px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card-modern:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* ================= 15. BANNIÈRES DES PROJETS ================= */
/* Ces blocs servent de couverture visuelle à chaque projet.
   Les images réelles sont ajoutées via background-image pour
   renforcer la narration du portfolio et l'impact visuel. */
/* On applique ici un effet de superposition sombre pour mieux lire le texte au-dessus des photos. */
.project-banner {
    position: relative;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05), transparent 70%);
}

.banner-pharma {
    background-image: linear-gradient(135deg, rgba(7, 40, 54, 0.8), rgba(0, 77, 68, 0.72)),
        url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
}

.banner-foncier {
    background-image: linear-gradient(135deg, rgba(16, 46, 38, 0.8), rgba(30, 90, 72, 0.68)),
        url('https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
}

.banner-ai {
    background-image: linear-gradient(135deg, rgba(29, 22, 58, 0.8), rgba(62, 38, 111, 0.7)),
        url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
}

.banner-satellite {
    background-image: linear-gradient(135deg, rgba(15, 36, 64, 0.8), rgba(30, 69, 112, 0.7)),
        url('https://images.unsplash.com/photo-1470770841072-f978cf4d019e?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
}

.project-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.project-banner-content i {
    font-size: 46px;
    color: var(--accent-primary);
    transition: var(--transition);
}

.project-card-modern:hover .project-banner-content i {
    transform: scale(1.15) rotate(5deg);
}

.project-category-badge {
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-transform: uppercase;
}

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

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

.project-num {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-primary);
    letter-spacing: 1px;
}

.project-body h3 {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 700;
    color: var(--text-highlight);
    margin-bottom: 8px;
}

.project-body p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.project-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.highlight-pill {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent-primary);
    font-size: 11px;
    font-weight: 700;
}

.project-footer-meta {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.project-tech-stack {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

/* ================= 12. SECTION FORMATION & CERTIFICATIONS ================= */

.education-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.edu-card-modern {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 26px;
    backdrop-filter: blur(16px);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.edu-card-modern:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.edu-card-modern.current-edu {
    border-color: var(--accent-primary);
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(var(--accent-primary-rgb), 0.08) 100%);
}

.edu-badge-status {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--accent-soft);
    color: var(--accent-primary);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 1px;
    border: 1px solid var(--accent-primary);
}

.edu-year {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-secondary);
    margin-bottom: 12px;
}

.edu-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    margin-bottom: 14px;
}

.edu-card-modern h3 {
    font-family: var(--font-heading);
    font-size: 18.5px;
    font-weight: 700;
    color: var(--text-highlight);
    margin-bottom: 5px;
}

.edu-card-modern h4 {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.edu-card-modern p {
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.edu-card-modern small {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* Certifications */
.certs-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 26px;
    backdrop-filter: blur(16px);
}

.certs-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    color: var(--text-highlight);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.certs-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.cert-card-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: var(--transition-fast);
}

.cert-card-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.cert-card-item i {
    color: var(--accent-primary);
    font-size: 20px;
    margin-bottom: 4px;
}

.cert-card-item strong {
    font-size: 13px;
    color: var(--text-primary);
}

.cert-card-item span {
    font-size: 11px;
    color: var(--text-muted);
}

/* ================= 13. LANGUES & INTÉRÊTS ================= */

.profile-extras-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.extra-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 26px;
    backdrop-filter: blur(16px);
}

.extra-box h3 {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    color: var(--text-highlight);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-item {
    margin-bottom: 16px;
}

.language-item:last-child {
    margin-bottom: 0;
}

.lang-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.lang-header span {
    color: var(--accent-primary);
}

.lang-progress-bar {
    height: 7px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.lang-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 1.2s ease-in-out;
}

.interests-grid-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.interest-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

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

.interest-chip i {
    color: var(--accent-primary);
    font-size: 15px;
    flex-shrink: 0;
}

/* ================= 14. SECTION CONTACT ================= */

.contact-section-modern {
    padding: 90px 0 100px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
}

.contact-container-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: start;
}

.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-card-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    gap: 12px;
}

.contact-card-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.contact-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.contact-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-text-content {
    min-width: 0;
}

.contact-text-content small {
    display: block;
    font-size: 11.5px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-text-content strong {
    font-size: 13.5px;
    color: var(--text-primary);
    word-break: break-word;
}

.contact-actions-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.contact-action-btn {
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.contact-action-btn:hover {
    background: var(--accent-primary);
    color: #070b14;
    border-color: var(--accent-primary);
}

/* Formulaire de contact */
.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 30px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
}

.contact-form-card h3 {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 700;
    color: var(--text-highlight);
    margin-bottom: 6px;
}

.contact-form-card p {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 22px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 16px; /* Empêche l'auto-zoom Safari iOS */
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--border-focus);
    background: var(--bg-card-hover);
    box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.15);
}

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

.btn-submit {
    width: 100%;
    padding: 13px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: #070b14;
    font-size: 14px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-glow-sm);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ================= 15. FOOTER ================= */

footer {
    background: #04070d;
    border-top: 1px solid var(--border-color);
    padding: 50px 0 25px;
    color: var(--text-secondary);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 30px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
    max-width: 320px;
    line-height: 1.7;
}

.footer-nav h4,
.footer-social-col h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-highlight);
    margin-bottom: 14px;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav a {
    font-size: 13px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--accent-primary);
    transform: translateX(4px);
    display: inline-block;
}

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

.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 12px;
}

/* ================= 16. TOAST NOTIFICATION ================= */

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: calc(100vw - 48px);
}

.toast {
    padding: 12px 18px;
    background: var(--bg-card);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-sm);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
    pointer-events: auto;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast i {
    color: var(--accent-primary);
    font-size: 15px;
}

/* ================= 17. BOUTON RETOUR EN HAUT ================= */

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #070b14;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    cursor: pointer;
    box-shadow: var(--shadow-glow-sm);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: var(--transition);
    z-index: 990;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.back-to-top:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* ================= 18. ANIMATIONS REVEAL ================= */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ================= 19. RESPONSIVE BREAKPOINTS HARMONISÉS ================= */

/* --- TABLETTES & PETITS ORDINATEURS (max 1024px) --- */
@media (max-width: 1024px) {
    .hero {
        padding: 110px 0 50px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text {
        max-width: 100%;
        text-align: center;
    }

    .status-pill {
        margin: 0 auto 18px;
        justify-content: center;
    }

    .hero-subtitle {
        justify-content: center;
    }

    .hero-cta-group,
    .hero-socials {
        justify-content: center;
    }

    .hero-visual {
        max-width: 420px;
        margin: 0 auto;
    }

    .avatar-container {
        height: 420px;
    }

    .bento-main,
    .bento-leadership,
    .bento-synergy,
    .bento-values {
        grid-column: span 12;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .skills-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .education-grid-modern {
        grid-template-columns: 1fr;
    }

    .certs-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

/* --- TABLETTE PORTRAIT & SMARTPHONES (max 768px) --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 66px;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-bottom: 1px solid var(--border-color);
        padding: 24px 20px;
        flex-direction: column;
        gap: 16px;
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 15px;
        width: 100%;
        display: block;
        padding: 8px 0;
    }

    .hero {
        padding: 95px 0 45px;
    }

    .hero h1 {
        font-size: clamp(30px, 7.5vw, 46px);
        letter-spacing: -1.5px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-description {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .hero-visual {
        max-width: 360px;
    }

    .avatar-container {
        height: 380px;
    }

    .floating-badge {
        display: none; /* Évite les débordements sur mobile */
    }

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

    .stats-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .stat-item {
        border-right: none !important;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 14px;
    }

    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .profile-extras-grid {
        grid-template-columns: 1fr;
    }

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

    .interests-grid-items {
        grid-template-columns: 1fr;
    }

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

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

    .contact-actions-group {
        width: 100%;
    }

    .contact-action-btn {
        flex: 1;
        justify-content: center;
    }

    .contact-form-card {
        padding: 22px 16px;
    }

    .bento-card {
        padding: 20px 16px;
    }

    .timeline-node {
        padding-left: 48px;
    }

    .timeline-marker-modern {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .timeline-card-modern {
        padding: 20px 16px;
    }

    .project-body {
        padding: 20px 16px;
    }

    .project-banner {
        height: 170px;
    }
}

/* --- PETITS MOBILES (max 480px) --- */
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0;
    }

    .logo {
        font-size: 20px;
    }

    .logo-badge {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .hero h1 {
        font-size: 29px;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta-group .btn {
        width: 100%;
    }

    .avatar-container {
        height: 330px;
    }

    .avatar-glass-badge {
        padding: 10px 12px;
        gap: 10px;
    }

    .avatar-badge-text strong {
        font-size: 12px;
    }

    .avatar-badge-text small {
        font-size: 10px;
    }

    .stat-info .stat-number {
        font-size: 24px;
    }

    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        padding: 7px 14px;
        font-size: 11.5px;
        flex-shrink: 0;
    }

    .toast-container {
        left: 12px;
        right: 12px;
        bottom: 16px;
    }

    .toast {
        width: 100%;
        font-size: 12px;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}