/* ==========================================================================
   DESIGN SYSTEM & CUSTOM PROPERTIES
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-darker: #06090f;
    --bg-dark: #0a0e17;
    --bg-card: rgba(13, 20, 35, 0.45);
    --border-color: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(99, 102, 241, 0.4);
    
    /* Text Colors */
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Accent Colors (Gradients) */
    --accent-indigo: #4f46e5;
    --accent-purple: #2563eb;
    --accent-pink: #0d9488; /* Remplacé par un bleu-vert corporate */
    --accent-teal: #14b8a6;
    --accent-yellow: #f59e0b;
    
    --gradient-primary: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-purple) 50%, var(--accent-teal) 100%);
    --gradient-text: linear-gradient(to right, #818cf8, #60a5fa, #2dd4bf);
    --gradient-glow: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(37, 99, 235, 0.04) 50%, transparent 100%);

    /* Layout & Shadows */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-darker);
}

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

ul {
    list-style: none;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-indigo);
}

/* ==========================================================================
   BACKGROUND GLOW EFFECT (GLASSMORPHISM PRE-REQUISITE)
   ========================================================================== */
.glow-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.45;
}

.glow-1 {
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
}

.glow-2 {
    bottom: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
}

.glow-3 {
    top: 40%;
    left: 30%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
}

/* ==========================================================================
   LAYOUT CONTAINERS & UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    color: #fff;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism utility card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-slow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-weight: 500;
    border-radius: 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-slow);
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #6366f1 100%);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-slow);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45), var(--shadow-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-icon {
    flex-shrink: 0;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(6, 9, 15, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    display: flex;
    align-items: center;
}

.logo-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 0.1rem;
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
    color: #fff;
}

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

.nav-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
}

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

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 1.5rem;
    height: 1.1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: var(--transition-normal);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding-top: 10rem;
    padding-bottom: 8rem;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 2rem;
    color: #c7d2fe;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: #818cf8;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 620px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-meta-item svg {
    color: var(--accent-indigo);
    flex-shrink: 0;
}

.hero-meta-item a:hover {
    color: #fff;
    text-decoration: underline;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Code visual card */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 90%;
    transform: translate(-50%, -50%);
    background: var(--gradient-glow);
    z-index: -1;
    filter: blur(20px);
}

.visual-card {
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.visual-card .card-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.visual-card .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    display: inline-block;
}

.visual-card .dot.red { background-color: #ef4444; }
.visual-card .dot.yellow { background-color: #eab308; }
.visual-card .dot.green { background-color: #22c55e; }

.visual-card .card-title {
    margin-left: 0.5rem;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.visual-card .code-editor {
    padding: 1.5rem;
    font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.5;
    overflow-x: auto;
}

.code-key { color: #f472b6; }
.code-val { color: #818cf8; }

/* ==========================================================================
   COMPETENCES SECTION
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1), var(--shadow-lg);
}

.skill-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.skill-icon-wrapper.purple {
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent-purple);
}

.skill-icon-wrapper.blue {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-indigo);
}

.skill-icon-wrapper.green {
    background: rgba(20, 184, 166, 0.1);
    color: var(--accent-teal);
}

.skill-icon-wrapper.yellow {
    background: rgba(234, 179, 8, 0.1);
    color: var(--accent-yellow);
}

.skill-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.skill-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-list li::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 50%;
}

/* ==========================================================================
   EXPERIENCES SECTION (TIMELINE)
   ========================================================================== */
.timeline-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 2rem auto 0 auto;
    flex-wrap: wrap;
    max-width: 650px;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.filter-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 4rem auto 0 auto;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0.5rem;
    left: 6px;
    width: 2px;
    height: calc(100% - 1.5rem);
    background: linear-gradient(to bottom, var(--accent-indigo) 0%, var(--accent-pink) 70%, rgba(255, 255, 255, 0.05) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-dot {
    position: absolute;
    left: calc(-2.5rem + 1px);
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px var(--accent-indigo);
    border: 2px solid var(--accent-indigo);
    z-index: 2;
    transition: var(--transition-normal);
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-pink);
    transform: scale(1.3);
}

.timeline-date {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-indigo);
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
}

.timeline-content:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.tag-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 2rem;
    margin-bottom: 1rem;
    margin-right: 0.5rem;
}

.pm-tag {
    background: rgba(168, 85, 247, 0.1);
    color: #e9d5ff;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.tech-tag {
    background: rgba(20, 184, 166, 0.1);
    color: #ccfbf1;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.role-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.company-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.project-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.achievement-heading {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.achievements-list {
    margin-bottom: 1.75rem;
}

.achievements-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.achievements-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-indigo);
    font-weight: bold;
}

.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

/* Filters hidden effect */
.timeline-item.filtered-out {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    position: absolute;
    width: calc(100% - 2.5rem);
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Collapsible for older experiences */
.collapsible-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    opacity: 0;
    position: relative;
}

.collapsible-wrapper.expanded {
    max-height: 5000px; /* high enough to fit older experiences */
    opacity: 1;
}

.timeline-more-container {
    text-align: center;
    margin-top: 3rem;
}

.chevron-icon {
    transition: var(--transition-normal);
}

.expanded + .timeline-more-container .chevron-icon {
    transform: rotate(180deg);
}

/* ==========================================================================
   FORMATIONS & LANGUES SECTION
   ========================================================================== */
.formations-languages-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
}

.glass-section {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.section-header-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.header-icon {
    color: var(--accent-indigo);
    flex-shrink: 0;
}

.sub-section-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
}

.education-item {
    margin-bottom: 2rem;
    position: relative;
}

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

.edu-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-indigo);
    margin-bottom: 0.25rem;
}

.edu-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.edu-school {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.edu-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.edu-list {
    margin-top: 0.5rem;
}

.edu-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 0.3rem 0;
    padding-left: 1rem;
    position: relative;
}

.edu-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-indigo);
}

.languages-container {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.lang-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lang-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.lang-name {
    font-weight: 600;
    color: #fff;
}

.lang-level {
    color: var(--text-secondary);
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-container {
    max-width: 1000px;
}

.contact-box {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-right: 1px solid var(--border-color);
    padding-right: 3rem;
}

.info-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.info-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-indigo);
    flex-shrink: 0;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.info-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
}

.info-value a:hover {
    color: var(--accent-indigo);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input {
    background: rgba(6, 9, 15, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.85rem 1rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

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

/* Form feedback messages */
.form-feedback {
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 0.5rem;
    display: none;
    padding: 0.75rem 1rem;
}

.form-feedback.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-feedback.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Spinner during form submit */
.btn-submit {
    position: relative;
}

.btn-submit.loading .btn-text {
    visibility: hidden;
    opacity: 0;
}

.spinner {
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.btn-submit.loading .spinner {
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
    background: #04060b;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.footer-qrs {
    display: flex;
    gap: 2rem;
}

.footer-qr {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.qr-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.qr-wrapper {
    background: #fff;
    padding: 0.5rem;
    border-radius: 0.5rem;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ==========================================================================
   NATIVE CSS SCROLL DRIVEN ANIMATIONS (PROGRESSIVE ENHANCEMENT)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
    @supports ((animation-timeline: view()) and (animation-range: entry)) {
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(40px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .card-animated {
            animation: fadeInUp auto linear backwards;
            animation-timeline: view();
            animation-range: entry 5% entry 35%;
        }
    }
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .formations-languages-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* Navigation drawer overlay on mobile */
    .nav-menu {
        position: fixed;
        top: 4.5rem;
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(6, 9, 15, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        overflow: hidden;
        transition: height var(--transition-slow);
    }
    
    .nav-menu.open {
        height: calc(100vh - 4.5rem);
    }
    
    .nav-menu ul {
        flex-direction: column;
        padding: 3rem 1.5rem;
        gap: 2rem;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu ul li {
        width: 100%;
    }
    
    .nav-menu .nav-btn {
        display: inline-block;
        width: 100%;
        max-width: 250px;
    }
    
    /* Close toggle transformations */
    .menu-toggle.open .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    
    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.open .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-dot {
        left: calc(-1.5rem + 1px);
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-box {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2rem;
    }
    
    .contact-info {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 2rem;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }
    
    .footer-qrs {
        justify-content: center;
        width: 100%;
    }
}
