/* =============================================
   BERTIN NGONGO — PORTFOLIO PROFESSIONNEL
   ============================================= */

:root {
    --primary:       #0a1628;
    --primary-light: #0e2245;
    --accent:        #3b82f6;
    --accent-dark:   #1d4ed8;
    --green:         #10b981;
    --text:          #1e293b;
    --text-light:    #64748b;
    --text-muted:    #94a3b8;
    --bg:            #f8fafc;
    --bg-alt:        #f1f5f9;
    --white:         #ffffff;
    --border:        #e2e8f0;
    --shadow:        0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.06);
    --shadow-lg:     0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.08);
    --shadow-xl:     0 20px 25px -5px rgba(0,0,0,0.12), 0 8px 10px -6px rgba(0,0,0,0.08);
    --radius:        12px;
    --radius-lg:     18px;
    --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font:          'Inter', system-ui, -apple-system, sans-serif;
}

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

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

html { scroll-behavior: smooth; }

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

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 64px;
    background: rgba(10, 22, 40, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.98);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.logo-dot { color: var(--accent); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.15rem;
}

.nav-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: white;
    background: rgba(255,255,255,0.09);
}

.nav-links a.active {
    color: var(--accent);
    background: rgba(59,130,246,0.1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #060f1e 0%, #0a1628 45%, #0d1e38 72%, #0e2245 100%);
    display: flex;
    align-items: center;
    padding: 80px 4rem 4rem;
    position: relative;
    overflow: hidden;
    gap: 3rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 65% 40%, rgba(59,130,246,0.09) 0%, transparent 70%),
        radial-gradient(ellipse 45% 45% at 15% 85%, rgba(16,185,129,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-content {
    flex: 1;
    max-width: 580px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
    padding: 0.375rem 1rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.5s ease both;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    animation: pulseDot 2s infinite;
    flex-shrink: 0;
}

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

.hero-name {
    font-size: clamp(2.5rem, 5.5vw, 3.75rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 0.75rem;
    animation: fadeInUp 0.5s 0.1s ease both;
}

.accent { color: var(--accent); }

.hero-title {
    font-size: clamp(0.95rem, 2.2vw, 1.2rem);
    color: rgba(255,255,255,0.65);
    margin-bottom: 1.5rem;
    min-height: 1.8rem;
    display: flex;
    align-items: center;
    animation: fadeInUp 0.5s 0.2s ease both;
}

.typing {
    color: #60a5fa;
    font-weight: 600;
    border-right: 2px solid #60a5fa;
    animation: blink 0.75s infinite;
}

@keyframes blink {
    0%, 49% { border-color: #60a5fa; }
    50%, 100% { border-color: transparent; }
}

.hero-desc {
    color: rgba(255,255,255,0.62);
    font-size: 0.975rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
    max-width: 520px;
    animation: fadeInUp 0.5s 0.3s ease both;
}

.hero-desc strong { color: rgba(255,255,255,0.9); }

.hero-location {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 0.5s 0.35s ease both;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    animation: fadeInUp 0.5s 0.4s ease both;
}

.hero-visual {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
    animation: fadeInRight 0.65s 0.2s ease both;
}

.hero-photo-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-photo {
    width: 196px;
    height: 196px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid rgba(59,130,246,0.45);
    position: relative;
    z-index: 1;
    display: block;
}

.photo-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px dashed rgba(59,130,246,0.22);
    animation: spinRing 22s linear infinite;
}

@keyframes spinRing { to { transform: rotate(360deg); } }

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

.stat {
    text-align: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 0.875rem 0.875rem;
    min-width: 78px;
}

.stat-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.42);
    font-weight: 500;
    line-height: 1.3;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 22px rgba(59,130,246,0.35);
}
.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(59,130,246,0.45);
    color: white;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: rgba(255,255,255,0.82);
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.09);
    color: white;
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-linkedin-hero {
    background: #0A66C2;
    color: white;
}
.btn-linkedin-hero:hover {
    background: #004d99;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}
.btn-whatsapp:hover {
    background: #1daa52;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.btn-outline-dark {
    background: transparent;
    color: var(--text-light);
    border: 1.5px solid var(--border);
}
.btn-outline-dark:hover {
    background: var(--bg-alt);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    text-decoration: none;
}

/* ===== SECTIONS ===== */
.section { padding: 6rem 2rem; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--primary); color: white; }

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header.light h2 { color: white; }
.section-header.light .section-subtitle { color: rgba(255,255,255,0.55); }

.section-tag {
    display: inline-block;
    background: rgba(59,130,246,0.1);
    color: var(--accent);
    border: 1px solid rgba(59,130,246,0.22);
    padding: 0.25rem 0.875rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-dark .section-tag {
    background: rgba(59,130,246,0.15);
    border-color: rgba(59,130,246,0.3);
}

.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    line-height: 1.78;
    font-size: 0.95rem;
}

.about-text p strong { color: var(--text); }

.about-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}
.info-item:last-child { border-bottom: none; }

.info-item > i {
    color: var(--accent);
    font-size: 0.875rem;
    width: 18px;
    margin-top: 3px;
    flex-shrink: 0;
}

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

.info-value {
    display: block;
    font-size: 0.875rem;
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
}
.info-value:hover { color: var(--accent); }

/* ===== TECHNOLOGIES ===== */
.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.25rem;
}

.tech-category {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tech-category:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: rgba(59,130,246,0.2);
}

.tech-category h4 {
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.tech-category h4 i { color: var(--accent); font-size: 0.9rem; }

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
}

.tech-item:hover {
    background: rgba(59,130,246,0.06);
    border-color: rgba(59,130,246,0.28);
    color: var(--accent);
}

.tech-item i { font-size: 1rem; }
.tech-item .fas,
.tech-item .fab { color: var(--accent); font-size: 0.875rem; }

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent) 0%, rgba(59,130,246,0.08) 100%);
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 2.25rem;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -1.55rem;
    top: 0.3rem;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border: 3px solid var(--bg);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}

.timeline-content {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(59,130,246,0.2);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.timeline-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.2rem;
}

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

.timeline-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 0.2rem 0.625rem;
    border-radius: 100px;
    white-space: nowrap;
    flex-shrink: 0;
}

.timeline-content ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.timeline-content li {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.375rem;
    line-height: 1.55;
}

.timeline-content li strong { color: var(--text); }

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.timeline-tags span {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(59,130,246,0.07);
    border: 1px solid rgba(59,130,246,0.15);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
}

/* ===== FORMATIONS ===== */
.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.4rem;
}

.formation-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.formation-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: rgba(59,130,246,0.2);
}

.formation-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.formation-logo.upl            { background: rgba(59,130,246,0.1);  color: var(--accent); }
.formation-logo.cisco          { background: rgba(0,120,200,0.1);   color: #0078C8; }
.formation-logo.udemy          { background: rgba(236,72,153,0.1);  color: #ec4899; }
.formation-logo.openclassrooms { background: rgba(16,185,129,0.1);  color: var(--green); }

.formation-body { flex: 1; min-width: 0; }

.formation-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.formation-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.formation-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-degree { background: rgba(59,130,246,0.1);  color: var(--accent); border: 1px solid rgba(59,130,246,0.2); }
.badge-cert   { background: rgba(245,158,11,0.1);  color: #d97706;       border: 1px solid rgba(245,158,11,0.2); }
.badge-online { background: rgba(16,185,129,0.1);  color: #059669;       border: 1px solid rgba(16,185,129,0.2); }

.formation-body h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.2rem;
    line-height: 1.35;
}

.formation-org {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.625rem;
}

.formation-desc {
    font-size: 0.825rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.875rem;
}

.formation-desc strong { color: var(--text); }

.formation-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.formation-tags span {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 0.18rem 0.55rem;
    border-radius: 6px;
}

/* ===== PROJECTS ===== */
.section-header .btn { margin-top: 1rem; }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.4rem;
}

/* Carte projet phare — pleine largeur */
.project-card.project-featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #0a1628 0%, #0e2245 60%, #0d2040 100%) !important;
    border-color: rgba(59,130,246,0.3);
    color: white;
    padding: 2rem;
}

.project-card.project-featured:hover {
    border-color: rgba(59,130,246,0.55);
    box-shadow: 0 20px 40px rgba(59,130,246,0.15);
    transform: translateY(-3px);
}

.project-featured-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.featured-left {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.featured-icon {
    background: rgba(59,130,246,0.2);
    color: #60a5fa;
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.featured-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.badge-featured {
    font-size: 0.68rem;
    font-weight: 700;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    color: white;
    padding: 0.2rem 0.625rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-private {
    font-size: 0.68rem;
    font-weight: 600;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.project-card.project-featured .tag-live {
    background: rgba(16,185,129,0.15);
    color: #34d399;
    border: 1px solid rgba(16,185,129,0.3);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
}

.badge-github-link {
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition);
}

.badge-github-link:hover {
    background: rgba(255,255,255,0.15);
    color: white;
    text-decoration: none;
}

.badge-saas {
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(59,130,246,0.2);
    color: #93c5fd;
    border: 1px solid rgba(59,130,246,0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
}

.project-card.project-featured h4 {
    color: #ffffff !important;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    letter-spacing: -0.3px;
}

.featured-subtitle {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
    margin: 0;
}

.project-featured > p {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.featured-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.fstat {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
}

.fstat span {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #60a5fa;
    margin-bottom: 0.1rem;
}

.project-featured .project-stack span {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
}

.project-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
    border-color: rgba(59,130,246,0.22);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.project-icon {
    width: 44px;
    height: 44px;
    background: rgba(59,130,246,0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
}

.project-links { display: flex; gap: 0.5rem; }

.project-links a {
    width: 36px;
    height: 36px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.project-links a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.08);
}

.project-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.project-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.68;
    flex: 1;
    margin-bottom: 1.25rem;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.project-stack span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-light);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
}

.project-stack span.tag-live {
    background: rgba(16,185,129,0.1);
    color: #059669;
    border-color: rgba(16,185,129,0.25);
}

/* ===== CONTACT ===== */
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    text-decoration: none;
    transition: var(--transition);
    min-width: 155px;
    text-align: center;
    color: white;
}

.contact-card:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.22);
    transform: translateY(-4px);
    color: white;
    text-decoration: none;
}

.contact-card > i {
    font-size: 1.75rem;
    color: var(--accent);
}

.contact-card.whatsapp > i    { color: #25D366; }
.contact-card.linkedin > i    { color: #0A66C2; }
.contact-card.github-card > i { color: rgba(255,255,255,0.85); }

.contact-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.38);
}

.contact-value {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.82);
    word-break: break-all;
    text-align: center;
}

/* ===== FOOTER ===== */
.footer {
    background: #050c17;
    color: rgba(255,255,255,0.3);
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer p { margin-bottom: 0.25rem; }
.footer strong { color: rgba(255,255,255,0.55); }

.footer-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(32px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes menuFade {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ===== RESPONSIVE ===== */

/* Tablette large */
@media (max-width: 1024px) {
    .hero { padding: 80px 2.5rem 4rem; gap: 2rem; }
    .about-grid { gap: 2rem; }
    .hero-photo { width: 170px; height: 170px; }
    .hero-photo-wrapper { width: 190px; height: 190px; }
}

/* Tablette & mobile */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
}

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

    .nav-links {
        display: none;
        position: absolute;
        top: 64px; left: 0; right: 0;
        flex-direction: column;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(16px);
        padding: 0.75rem 1rem 1.25rem;
        gap: 0.15rem;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }

    .nav-links.active {
        display: flex;
        animation: menuFade 0.25s ease;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }

    /* Hero */
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 96px 1.5rem 3rem;
        gap: 2rem;
        align-items: center;
    }

    .hero-content  { max-width: 100%; }
    .hero-badge    { margin: 0 auto 1.5rem; }
    .hero-location { justify-content: center; }
    .hero-ctas     { justify-content: center; }
    .hero-title    { justify-content: center; }

    .hero-photo { width: 150px; height: 150px; }
    .hero-photo-wrapper { width: 170px; height: 170px; }

    .hero-stats { gap: 0.6rem; }
    .stat { padding: 0.625rem 0.75rem; min-width: 68px; }
    .stat-number { font-size: 1.2rem; }

    /* Sections */
    .section { padding: 3.5rem 1.25rem; }

    .tech-categories { grid-template-columns: 1fr; }

    .timeline { padding-left: 1rem; }
    .timeline-item { padding-left: 1.5rem; }
    .timeline-dot { left: -1.2rem; }
    .timeline-header { flex-direction: column; gap: 0.4rem; }

    .formations-grid { grid-template-columns: 1fr; }
    .formation-card { flex-direction: column; gap: 1rem; }

    .projects-grid { grid-template-columns: 1fr; }
    .featured-left { flex-direction: column; gap: 0.75rem; }
    .featured-stats { gap: 0.5rem; }
    .fstat { flex: 1; min-width: calc(50% - 0.375rem); text-align: center; }

    .contact-grid { gap: 0.75rem; }
    .contact-card {
        padding: 1.25rem 1rem;
        min-width: 140px;
        flex: 1;
    }
}

/* Mobile petit */
@media (max-width: 480px) {
    .hero { padding: 88px 1rem 2.5rem; }

    .hero-stats { flex-wrap: wrap; justify-content: center; }
    .stat { min-width: 80px; flex: 1; }

    /* Boutons CTA empilés */
    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }
    .hero-ctas .btn { justify-content: center; }

    .about-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .about-actions .btn { justify-content: center; }

    /* Contact : 2 par ligne */
    .contact-card {
        min-width: calc(50% - 0.375rem);
        max-width: calc(50% - 0.375rem);
    }

    /* Timeline plus compact */
    .timeline-content { padding: 1.125rem; }
    .timeline-content li { font-size: 0.825rem; }

    /* Sections header */
    .section-header h2 { font-size: 1.5rem; }
}

/* Très petit mobile (320px) */
@media (max-width: 360px) {
    .navbar { padding: 0 1rem; }
    .section { padding: 3rem 1rem; }

    .contact-card {
        min-width: 100%;
        max-width: 100%;
    }

    .hero-badge { font-size: 0.72rem; }
}
