/* ============================================
   IBRAHIMA GEO — Global Stylesheet
   Colors: #383838 (dark) · #50cccc (turquoise) · #ffa33e (orange)
   Font: Plus Jakarta Sans
   ============================================ */

:root {
    --dark: #383838;
    --turquoise: #50cccc;
    --turquoise-dark: #3db5b5;
    --turquoise-pale: #e8f8f8;
    --orange: #ffa33e;
    --orange-light: #fff3e0;
    --text: #383838;
    --text-secondary: #6b7280;
    --border: #e5e7eb;
    --bg: #ffffff;
    --bg-alt: #f9fafb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --bg-card: #ffffff;
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== UTILITIES ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 100px 0; }

.section-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.82rem; font-weight: 600; color: var(--turquoise);
    text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px;
}
.section-label::before {
    content: ''; width: 20px; height: 2px;
    background: var(--turquoise); border-radius: 2px;
}
.section-title {
    font-size: 2.2rem; font-weight: 800; color: var(--dark);
    margin-bottom: 16px; letter-spacing: -0.5px;
}
.section-desc {
    color: var(--text-secondary); font-size: 1.05rem;
    max-width: 560px; margin-bottom: 48px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.95rem;
    transition: all 0.25s; cursor: pointer; border: none;
    font-family: inherit;
}
.btn-primary { background: var(--dark); color: white; }
.btn-primary:hover { background: var(--orange); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--dark); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.btn-white { background: white; color: var(--dark); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ===== NAV ===== */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
    max-width: 1140px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center;
    height: 68px;
}
.nav-logo { display: flex; align-items: center; gap: 8px; }
.nav-logo-mark {
    width: 36px; height: 36px; background: var(--turquoise);
    border-radius: 10px; display: flex; align-items: center;
    justify-content: center; font-weight: 800; font-size: 14px;
    color: white; letter-spacing: -0.5px;
}
.nav-logo-text { font-weight: 700; font-size: 1rem; color: var(--dark); }
.nav-logo-text span { color: var(--turquoise); }

.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a {
    color: var(--text-secondary); font-size: 0.88rem;
    font-weight: 500; transition: color 0.2s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--dark); }
.nav-links a.active::after {
    content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
    height: 2px; background: var(--orange); border-radius: 2px;
}
.nav-cta {
    background: var(--dark); color: white !important;
    padding: 8px 20px; border-radius: 8px; font-size: 0.85rem !important;
    transition: background 0.2s;
}
.nav-cta:hover { background: var(--orange) !important; }

/* Mobile toggle */
.nav-toggle {
    display: none; cursor: pointer; background: none; border: none;
    padding: 8px; z-index: 1001;
}
/* Mobile nav backdrop — hidden on desktop */
.nav-backdrop { display: none; }
/* Mobile nav-extras clone — hidden on desktop */
.nav-extras-mobile { display: none; }
.nav-toggle span {
    display: block; width: 22px; height: 2px; background: var(--dark);
    margin: 5px 0; transition: 0.3s; border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
    padding: 140px 0 60px;
    background: var(--bg-alt);
    position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute;
    top: -200px; right: -200px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,163,62,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.page-hero .breadcrumb {
    font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 12px;
}
.page-hero .breadcrumb a { color: var(--orange); }
.page-hero h1 {
    font-size: 2.6rem; font-weight: 800; color: var(--dark);
    letter-spacing: -0.5px; margin-bottom: 12px;
}
.page-hero > .container > p {
    color: var(--text-secondary); font-size: 1.1rem; max-width: 540px;
}

/* ===== CARDS (services) ===== */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
    background: var(--bg); border-radius: var(--radius); padding: 36px;
    border: 1px solid var(--border); transition: all 0.3s;
    position: relative; overflow: hidden;
}
.card::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--turquoise), var(--orange)); transform: scaleX(0); transition: transform 0.3s;
    transform-origin: left;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card:hover::after { transform: scaleX(1); }
a.card-link { text-decoration: none; color: inherit; display: block; cursor: pointer; }
a.card-link:hover h3 { color: var(--turquoise); }

.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.card > p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; margin-bottom: 16px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
    padding: 4px 12px; background: var(--bg-alt); border-radius: 6px;
    font-size: 0.78rem; font-weight: 500; color: var(--text-secondary);
}

/* ===== SKILLS PILLS ===== */
.skills-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 50px;
    font-size: 0.88rem; font-weight: 500;
    border: 1px solid var(--border); background: var(--bg);
    transition: all 0.2s;
}
.skill-pill:hover { border-color: var(--turquoise); background: var(--turquoise-pale); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-expert { background: var(--turquoise); }
.dot-avance { background: var(--orange); }
.dot-inter { background: var(--dark); }

.skill-legend {
    display: flex; gap: 24px; margin-top: 24px;
    font-size: 0.82rem; color: var(--text-secondary);
}
.skill-legend span { display: flex; align-items: center; gap: 6px; }

/* Skill categories */
.skill-category { margin-bottom: 36px; }
.skill-category h3 {
    font-size: 1rem; font-weight: 700; margin-bottom: 14px;
    color: var(--dark);
}

/* ===== TIMELINE ===== */
.timeline { display: grid; gap: 0; max-width: 720px; }
.timeline-item {
    display: grid; grid-template-columns: 110px 1fr; gap: 28px;
    padding: 28px 0; border-bottom: 1px solid var(--border);
    transition: all 0.2s;
}
.timeline-item:hover { padding-left: 8px; }
.timeline-item:last-child { border-bottom: none; }

.timeline-year {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 6px 14px; background: var(--orange); color: white;
    border-radius: 8px; font-size: 0.78rem; font-weight: 700;
    height: fit-content; white-space: nowrap;
}
.timeline-content h3 { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.timeline-content .org { color: var(--turquoise-dark); font-size: 0.88rem; font-weight: 600; }
.timeline-content p { color: var(--text-secondary); font-size: 0.88rem; margin-top: 6px; line-height: 1.6; }

/* ===== PORTFOLIO ===== */
.portfolio-placeholder {
    text-align: center; padding: 80px 32px;
    background: var(--bg-alt); border-radius: var(--radius);
    border: 2px dashed var(--border);
}
.portfolio-placeholder .icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.portfolio-placeholder h3 { font-size: 1.1rem; margin-bottom: 8px; }
.portfolio-placeholder p { color: var(--text-secondary); font-size: 0.92rem; }

/* ===== CONTACT ===== */
.contact-section { background: var(--dark); color: white; }
.contact-section .section-label { color: var(--turquoise); }
.contact-section .section-label::before { background: var(--turquoise); }
.contact-section .section-title { color: white; }
.contact-section .section-desc { color: rgba(255,255,255,0.6); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-details { display: grid; gap: 16px; margin-top: 8px; }
.contact-item {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px; background: rgba(255,255,255,0.06);
    border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.2s;
}
.contact-item:hover { background: rgba(255,255,255,0.1); border-color: var(--orange); }
.contact-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(80,204,204,0.15); display: flex;
    align-items: center; justify-content: center; font-size: 1.2rem;
    flex-shrink: 0;
}
.contact-item-text { font-size: 0.92rem; }
.contact-item-text .label {
    font-size: 0.78rem; color: rgba(255,255,255,0.4);
    display: block; margin-bottom: 2px;
}

.contact-form {
    background: white; border-radius: var(--radius); padding: 36px;
    box-shadow: var(--shadow-lg);
}
.contact-form h3 { color: var(--dark); font-size: 1.2rem; margin-bottom: 24px; font-weight: 700; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block; font-size: 0.82rem; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 6px;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); font-family: inherit; font-size: 0.92rem;
    transition: all 0.2s; background: var(--bg-alt); color: var(--dark);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--turquoise);
    box-shadow: 0 0 0 3px rgba(80,204,204,0.12); background: white;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit {
    width: 100%; padding: 14px; background: var(--dark); color: white;
    border: none; border-radius: var(--radius-sm); font-size: 0.95rem;
    font-weight: 700; cursor: pointer; transition: all 0.2s;
    font-family: inherit;
}
.form-submit:hover { background: var(--orange); transform: translateY(-1px); }

/* ===== FORM FEEDBACK ===== */
.form-feedback {
    display: none; padding: 14px 18px; border-radius: var(--radius-sm);
    margin-bottom: 14px; font-size: 0.88rem; line-height: 1.5;
    animation: feedbackSlideIn 0.3s ease;
}
.form-feedback.visible { display: flex; align-items: flex-start; gap: 10px; }
.form-feedback-icon { font-size: 1.2rem; flex-shrink: 0; line-height: 1.3; }
.form-feedback.feedback-success {
    background: rgba(80,204,204,0.12); color: var(--turquoise-dark);
    border: 1px solid rgba(80,204,204,0.25);
}
.form-feedback.feedback-error {
    background: rgba(255,163,62,0.12); color: #e08a2e;
    border: 1px solid rgba(255,163,62,0.25);
}
.form-feedback a { color: inherit; text-decoration: underline; }
@keyframes feedbackSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== CTA BAND ===== */
.cta-band {
    background: linear-gradient(135deg, var(--turquoise), var(--orange)); padding: 60px 0; text-align: center;
}
.cta-band h2 { color: white; font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 24px; font-size: 1.05rem; }

/* ===== FOOTER ===== */
footer {
    background: #2d2d2d; color: rgba(255,255,255,0.5);
    padding: 32px 0; font-size: 0.82rem;
    border-top: 3px solid var(--orange);
}
.footer-inner {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
}
footer a { color: var(--orange); }

/* ===== PULSE ANIMATION (availability badge) ===== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay { transition-delay: 0.15s; }
.fade-in-delay-2 { transition-delay: 0.3s; }

/* ===== STAT CARDS (home) ===== */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.stat-card {
    background: var(--bg-alt); border-radius: var(--radius);
    padding: 28px 24px; border: 1px solid var(--border);
    transition: all 0.3s;
    display: flex; flex-direction: column; justify-content: center;
}
.stat-card:hover { border-color: var(--orange); transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-num { font-size: 2.4rem; font-weight: 800; color: var(--dark); line-height: 1; }
.stat-num .unit { font-size: 1.2rem; color: var(--turquoise); }
.stat-label { font-size: 0.85rem; color: var(--text-secondary); margin-top: 6px; font-weight: 500; }
.stat-card.accent { background: var(--dark); border-color: var(--dark); }
.stat-card.accent .stat-num { color: var(--turquoise); }
.stat-card.accent .stat-label { color: rgba(255,255,255,0.7); }

/* ===== DARK MODE ===== */
[data-theme="dark"] {
    --dark: #e8e8e8;
    --turquoise: #5fd4d4;
    --turquoise-dark: #4ec4c4;
    --turquoise-pale: rgba(80, 204, 204, 0.12);
    --orange: #ffb35e;
    --orange-light: rgba(255, 163, 62, 0.12);
    --text: #e0e0e0;
    --text-secondary: #9ca3af;
    --border: #374151;
    --bg: #1a1a2e;
    --bg-alt: #16213e;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow: 0 4px 16px rgba(0,0,0,0.2);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.3);
    --bg-card: #16213e;
}
[data-theme="dark"] nav {
    background: rgba(26, 26, 46, 0.92);
    border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .nav-logo-text { color: var(--text); }
[data-theme="dark"] .nav-toggle span { background: var(--text); }
[data-theme="dark"] .card { background: var(--bg); border-color: var(--border); }
[data-theme="dark"] .stat-card { background: var(--bg-alt); border-color: var(--border); }
[data-theme="dark"] .stat-card.accent { background: #50cccc; border-color: #50cccc; }
[data-theme="dark"] .stat-card.accent .stat-num { color: #1a1a2e; }
[data-theme="dark"] .stat-card.accent .stat-label { color: rgba(26,26,46,0.7); }
[data-theme="dark"] .contact-form { background: var(--bg-alt); }
[data-theme="dark"] .contact-form h3 { color: var(--text); }
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
    background: var(--bg); border-color: var(--border); color: var(--text);
}
[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .form-group select:focus { background: var(--bg); }
[data-theme="dark"] .portfolio-placeholder { background: var(--bg-alt); border-color: var(--border); }
[data-theme="dark"] footer { background: #0f0f23; }
[data-theme="dark"] .page-hero { background: var(--bg-alt); }
[data-theme="dark"] .page-hero h1 { color: var(--text); }
[data-theme="dark"] .skill-pill { background: var(--bg); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .nav-links { background: var(--bg); }
[data-theme="dark"] .nav-links a { color: #e8e8e8; }
[data-theme="dark"] .nav-links a:hover { color: var(--turquoise); background: rgba(80,204,204,0.1); }
[data-theme="dark"] .nav-links a.active { background: var(--turquoise); color: #1a1a2e; }
[data-theme="dark"] .nav-links li { border-bottom-color: var(--border); }

/* Dark mode — contact section (uses hardcoded dark bg, not --dark which flips) */
[data-theme="dark"] .contact-section { background: #0f0f23; }
[data-theme="dark"] .contact-section .section-title { color: #e8e8e8; }
[data-theme="dark"] .contact-section .section-desc { color: rgba(255,255,255,0.6); }
[data-theme="dark"] .contact-item { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .contact-item:hover { background: rgba(255,255,255,0.1); }
[data-theme="dark"] .contact-item-text { color: #e0e0e0; }
[data-theme="dark"] .contact-item-text .label { color: rgba(255,255,255,0.4); }

/* Dark mode — buttons that use --dark as background */
[data-theme="dark"] .btn-primary { background: #50cccc; color: #1a1a2e; }
[data-theme="dark"] .btn-primary:hover { background: var(--orange); color: #1a1a2e; }
[data-theme="dark"] .btn-outline { border-color: var(--border); color: var(--text); }
[data-theme="dark"] .btn-outline:hover { border-color: var(--orange); color: var(--orange); }
[data-theme="dark"] .btn-white { background: var(--bg); color: var(--text); }

/* Dark mode — nav CTA */
[data-theme="dark"] .nav-cta { background: #50cccc !important; color: #1a1a2e !important; }
[data-theme="dark"] .nav-cta:hover { background: var(--orange) !important; color: #1a1a2e !important; }

/* Dark mode — form submit */
[data-theme="dark"] .form-submit { background: #50cccc; color: #1a1a2e; }
[data-theme="dark"] .form-submit:hover { background: var(--orange); color: #1a1a2e; }

/* Dark mode — form labels */
[data-theme="dark"] .form-group label { color: var(--text-secondary); }

/* Dark mode — section title fix (--dark flips to light) */
[data-theme="dark"] .section-title { color: var(--text); }

/* Dark mode — timeline & skill category headings */
[data-theme="dark"] .skill-category h3 { color: var(--text); }
[data-theme="dark"] .timeline-content h3 { color: var(--text); }

/* Dark mode — dot intermediate (was using --dark) */
[data-theme="dark"] .dot-inter { background: #9ca3af; }

/* Dark mode — tag pills */
[data-theme="dark"] .tag { background: var(--bg); color: var(--text-secondary); }

/* Dark mode — project thumb gradient overlay */
[data-theme="dark"] .project-thumb::after { background: linear-gradient(transparent, var(--bg)); }

/* Dark mode — testimonial author */
[data-theme="dark"] .testimonial-author { color: var(--text); }

/* Dark mode — FAQ question */
[data-theme="dark"] .faq-question { color: var(--text); }

/* Dark mode — stat card accent (hardcoded) */
[data-theme="dark"] .stat-card.accent .stat-num { color: #1a1a2e; }

/* Dark mode — hero heading (uses inline style color:var(--dark)) */
[data-theme="dark"] .hero h1,
[data-theme="dark"] [style*="color:var(--dark)"] { color: var(--text) !important; }

/* Dark mode — CTA band */
[data-theme="dark"] .cta-band { background: linear-gradient(135deg, #3db5b5, #e08a2e); }

/* Dark mode toggle */
.theme-toggle {
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}
.theme-toggle:hover { border-color: var(--orange); }

/* Language toggle */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}
.lang-toggle:hover { border-color: var(--orange); color: var(--orange); }

/* Nav extras container */
.nav-extras {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== TESTIMONIALS ===== */
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.testimonial-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px; left: 24px;
    font-size: 3rem;
    color: var(--orange);
    opacity: 0.4;
    line-height: 1;
    font-family: Georgia, serif;
}
.testimonial-text {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 16px;
}
.testimonial-author { font-weight: 700; font-size: 0.88rem; color: var(--dark); }
.testimonial-role { font-size: 0.78rem; color: var(--text-secondary); }

/* ===== PROJECT CARDS ===== */
.project-card {
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
}
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--orange); }
.project-thumb {
    height: 200px;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}
.project-thumb::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--bg));
}
.project-body { padding: 24px; }
.project-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.project-body p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; margin-bottom: 12px; }

/* ===== FAQ ACCORDION ===== */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    padding: 0;
    transition: color 0.2s;
}
.faq-question:hover { color: var(--orange); }
.faq-question .faq-icon {
    font-size: 1.4rem;
    transition: transform 0.3s;
    color: var(--orange);
    flex-shrink: 0;
    margin-left: 16px;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 500px; padding-top: 12px; }

/* ===== SOCIAL LINKS (Footer) ===== */
.footer-social {
    display: flex;
    gap: 12px;
    align-items: center;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    transition: all 0.2s;
}
.footer-social a:hover { background: var(--orange); }
.footer-social svg { width: 18px; height: 18px; fill: rgba(255,255,255,0.6); }
.footer-social a:hover svg { fill: white; }

/* ===== 404 PAGE ===== */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 24px 80px;
}
.error-code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--turquoise);
    line-height: 1;
    margin-bottom: 16px;
}

/* ===== SERVICE DETAIL (services pages FR + EN) ===== */
.service-section { margin-bottom: 64px; }
.service-section:last-child { margin-bottom: 0; }

.service-header {
    display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
}
.service-header h2 { font-size: 1.5rem; font-weight: 800; }

.service-desc {
    color: var(--text-secondary); font-size: 1rem; line-height: 1.8;
    max-width: 720px; margin-bottom: 20px;
}

.service-clients {
    font-size: 0.88rem; color: var(--turquoise-dark); font-weight: 600;
}

.service-divider {
    border: none; border-top: 1px solid var(--border); margin-bottom: 64px;
}

/* Service detail cards (EN variant) */
.service-detail {
    margin-bottom: 40px; padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}
.service-detail:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.service-detail-icon {
    width: 56px; height: 56px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin-bottom: 16px; background: var(--turquoise-pale);
}
.service-detail h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.service-detail > p {
    color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7;
    max-width: 680px; margin-bottom: 16px;
}
.service-detail ul {
    list-style: none; padding: 0; margin: 0 0 16px 0;
}
.service-detail ul li {
    position: relative; padding-left: 20px;
    color: var(--text-secondary); font-size: 0.92rem;
    line-height: 1.8;
}
.service-detail ul li::before {
    content: '→'; position: absolute; left: 0;
    color: var(--turquoise); font-weight: 700;
}

/* Forfait / Pricing cards (shared FR + EN) */
.forfait-card {
    margin-top: 24px; padding: 20px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px;
}
.forfait-card h3,
.forfait-card h4 {
    font-size: 1rem; font-weight: 700; margin-bottom: 12px;
}
.forfait-card h4 { font-size: 0.92rem; margin-bottom: 10px; }

.forfait-grid {
    display: grid; gap: 10px; font-size: 0.9rem;
}

.forfait-item {
    display: flex; justify-content: space-between; padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.forfait-item:last-child { border-bottom: none; }

.forfait-price { font-weight: 700; color: var(--orange); }

.forfait-cta {
    display: inline-block; margin-top: 16px; padding: 10px 24px;
    background: var(--orange); color: #fff; border-radius: 8px;
    text-decoration: none; font-weight: 600; font-size: 0.88rem;
    transition: all 0.25s;
}
.forfait-cta:hover { background: var(--dark); transform: translateY(-2px); box-shadow: var(--shadow); }
[data-theme="dark"] .forfait-cta:hover { background: #50cccc; color: #1a1a2e; }

/* Dark mode — service detail */
[data-theme="dark"] .service-detail { border-bottom-color: var(--border); }
[data-theme="dark"] .service-header h2 { color: var(--text); }
[data-theme="dark"] .forfait-card { background: var(--bg-card); border-color: var(--border); }

/* ============================================
   RESPONSIVE — TABLET (max 900px)
   ============================================ */
@media (max-width: 900px) {
    .section-padding { padding: 72px 0; }
    .section-title { font-size: 1.8rem; }
    .page-hero h1 { font-size: 2rem; }

    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .hero h1 { font-size: 2.4rem; }

    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .card-grid .card { padding: 20px; }
    .card-grid .card h3 { font-size: 1rem; }
    .card-grid .card p { font-size: 0.85rem; }
    .card-grid.blog-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
    .testimonial-grid { grid-template-columns: 1fr; }

    /* Services tablet */
    .service-section { margin-bottom: 48px; }
    .service-divider { margin-bottom: 48px; }

    /* Timeline tablet — stack year + content */
    .timeline-item { grid-template-columns: 1fr; gap: 8px; }
    .timeline-year { width: fit-content; }

    /* Stat grid — 2 cols at tablet, will go 1 col at small mobile */
    .stat-grid { gap: 12px; }

    /* FAQ answer max-height for longer answers on narrow screens */
    .faq-item.open .faq-answer { max-height: 800px; }
}

/* ============================================
   RESPONSIVE — MOBILE (max 640px)
   ============================================ */
@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .section-padding { padding: 56px 0; }
    .section-title { font-size: 1.6rem; }
    .section-desc { font-size: 0.95rem; margin-bottom: 32px; }

    /* Kill backdrop-filter on mobile — it creates a containing block
       that breaks position:fixed on child elements (.nav-links) */
    nav,
    nav.scrolled {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* === Z-INDEX FIX ===
       <nav> has z-index:1000 which creates a stacking context.
       All children (nav-links, nav-toggle) are TRAPPED inside it.
       The backdrop is on <body> at z-index:1001 → ABOVE the entire nav.
       Fix: raise nav above backdrop on mobile so children are clickable. */
    nav {
        z-index: 1100 !important;
    }

    /* Backdrop: between page content and nav panel */
    .nav-backdrop.active {
        display: block !important;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.35);
        z-index: 1050;
    }

    /* ===== Nav mobile — compact slide-in panel from right ===== */
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 220px;
        max-width: 65vw;
        background: var(--bg);
        padding: 68px 0 16px;
        gap: 0;
        z-index: 1102;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: -4px 0 24px rgba(0,0,0,0.12);
        list-style: none;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links li {
        padding: 0;
        border-bottom: none;
    }
    .nav-links a {
        display: block;
        padding: 11px 20px;
        font-size: 0.88rem;
        font-weight: 600;
        color: var(--dark);
        border-left: 3px solid transparent;
        transition: all 0.15s;
    }
    .nav-links a:hover {
        background: var(--turquoise-pale);
        color: var(--turquoise-dark);
        border-left-color: var(--turquoise);
    }
    .nav-links a.active {
        background: var(--turquoise);
        color: white;
        border-left-color: var(--turquoise-dark);
        border-radius: 0 8px 8px 0;
        margin-right: 12px;
        box-shadow: 0 2px 8px rgba(80,204,204,0.3);
    }
    .nav-links a.nav-cta {
        margin: 12px 16px 0;
        text-align: center;
        padding: 10px 16px;
        border-radius: var(--radius-sm);
        background: var(--dark);
        color: white !important;
        border-left: none;
        font-size: 0.85rem;
    }
    .nav-links a.nav-cta:hover {
        background: var(--orange) !important;
    }

    .nav-toggle { display: block; z-index: 1103; }

    /* Hero mobile — override inline grid */
    .hero { padding: 120px 0 56px; }
    .hero-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }
    .hero h1, .hero h1[style] { font-size: 2rem !important; }
    .hero-desc { font-size: 0.95rem; }
    .hero-buttons, div[style*="hero-buttons"], .hero .hero-buttons[style] {
        flex-direction: column !important;
    }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .stat-grid { gap: 12px; grid-template-columns: 1fr 1fr; }
    .stat-card { padding: 20px 18px; }
    .stat-num { font-size: 2rem; }

    /* Hide decorative circles on mobile */
    .hero > div[style*="position:absolute"],
    section > div[style*="position:absolute"][style*="border-radius:50%"] {
        display: none !important;
    }

    /* FTTH/CTA band mobile — override inline flex */
    .ftth-band-inner {
        flex-direction: column !important;
        gap: 16px !important;
        text-align: center;
    }
    .ftth-band-inner h2[style] { font-size: 1.3rem !important; }

    /* Page hero mobile */
    .page-hero { padding: 110px 0 40px; }
    .page-hero h1 { font-size: 1.8rem; }

    /* Cards mobile */
    .card { padding: 24px; }

    /* Timeline mobile — already handled at 900px, extra padding fix */
    .timeline-item { padding: 20px 0; }

    /* Skills mobile */
    .skill-pill { padding: 8px 14px; font-size: 0.82rem; }
    .skill-legend { flex-wrap: wrap; gap: 14px; }
    .skill-category { margin-bottom: 24px; }

    /* Contact mobile */
    .contact-grid { gap: 24px; }
    .contact-form { padding: 24px; }
    .contact-item { padding: 12px 16px; }

    /* CTA band mobile */
    .cta-band { padding: 40px 0; }
    .cta-band h2 { font-size: 1.4rem; }
    .cta-band p { font-size: 0.92rem; }

    /* Project cards mobile */
    .project-thumb { height: 150px; }

    /* Portfolio grid mobile */
    .portfolio-grid { grid-template-columns: 1fr !important; gap: 16px !important; }

    /* Nav extras: hide on mobile — moved into slide panel via JS */
    .nav-extras { display: none; }
    /* Show nav extras when cloned inside the mobile menu */
    .nav-links .nav-extras-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 20px;
        border-top: 1px solid var(--border);
        margin-top: auto;
        font-size: 0.82rem;
    }

    /* Testimonials mobile */
    .testimonial-card { padding: 24px; }
    .testimonial-card::before { font-size: 2rem; top: 12px; left: 18px; }
    .testimonial-text { font-size: 0.88rem; }

    /* FAQ mobile */
    .faq-question { font-size: 0.92rem; }

    /* Blog cards mobile */
    .card-grid.blog-grid,
    [style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
    }

    /* Services mobile */
    .service-section { margin-bottom: 40px; }
    .service-divider { margin-bottom: 40px; }
    .service-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .service-header h2 { font-size: 1.25rem; }
    .service-desc { font-size: 0.92rem; }
    .forfait-card { padding: 16px; }
    .forfait-item { flex-direction: column; gap: 4px; }
    .forfait-cta { width: 100%; text-align: center; padding: 12px 20px; }

    /* Footer mobile */
    .footer-inner { flex-direction: column; text-align: center; gap: 12px; }
    .footer-social { justify-content: center; }

    /* Inline style font overrides */
    [style*="font-size:3.2rem"] { font-size: 2rem !important; }
    [style*="font-size:1.6rem"] { font-size: 1.2rem !important; }
    [style*="font-size:1.5rem"] { font-size: 1.1rem !important; }
    [style*="font-size:1.15rem"] { font-size: 1rem !important; }
    [style*="font-size:1.05rem"] { font-size: 0.95rem !important; }

    /* Inline padding/gap overrides for tight spaces */
    [style*="padding:100px"] { padding: 56px 0 !important; }
    [style*="padding:140px"] { padding: 80px 0 56px !important; }
    [style*="font-size:2.4rem"] { font-size: 1.6rem !important; }
    [style*="gap:64px"] { gap: 24px !important; }
    [style*="gap:32px"] { gap: 16px !important; }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================ */
@media (max-width: 480px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 14px 12px; }
    .stat-num { font-size: 1.5rem; }
    .stat-label { font-size: 0.75rem; }
}

/* ============================================
   RESPONSIVE — VERY SMALL MOBILE (max 380px)
   ============================================ */
@media (max-width: 380px) {
    .hero h1 { font-size: 1.7rem !important; }
    .btn { padding: 12px 20px; font-size: 0.88rem; }
    .section-title { font-size: 1.3rem; }
    .page-hero h1 { font-size: 1.5rem; }
    .nav-links a { font-size: 1rem; padding: 14px 0; }
    .contact-form { padding: 16px; }
    .card { padding: 20px; }
    .testimonial-card { padding: 20px; }
    [style*="font-size:3.2rem"] { font-size: 1.6rem !important; }
    .card-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ACCESSIBILITY — Reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fade-in { opacity: 1 !important; transform: none !important; }
}

/* ============================================
   ACCESSIBILITY — Keyboard focus
   ============================================ */
:focus-visible {
    outline: 2px solid var(--turquoise);
    outline-offset: 2px;
}
.form-group input:focus-visible, .form-group textarea:focus-visible, .form-group select:focus-visible {
    outline: none;
    border-color: var(--turquoise);
    box-shadow: 0 0 0 3px rgba(80,204,204,0.2);
}
a:focus-visible { border-radius: 4px; }
.btn:focus-visible { outline-offset: 3px; }

/* ============================================
   BRANDING — Text selection
   ============================================ */
::selection { background: rgba(80,204,204,0.2); color: var(--dark); }
[data-theme="dark"] ::selection { background: rgba(80,204,204,0.3); color: #f1f5f9; }

/* ============================================
   PRINT — Clean output
   ============================================ */
@media print {
    nav, .nav-toggle, .sidebar-backdrop, .cta-band, .theme-toggle,
    footer .footer-social, .hero-buttons, .btn, .lang-toggle { display: none !important; }
    body { color: #000; background: #fff; font-size: 12pt; line-height: 1.5; }
    .container { max-width: 100%; padding: 0; }
    .section-padding { padding: 24pt 0; }
    .fade-in { opacity: 1 !important; transform: none !important; }
    a { color: #000; text-decoration: underline; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
    a[href^="#"]::after, a[href^="javascript"]::after { content: ""; }
    .card { break-inside: avoid; border: 1px solid #ccc; }
    h1, h2, h3 { break-after: avoid; }
}
