/* ========================================
   MAHALIA5 - CSS V3 CORRIGÉ
   ======================================== */

:root {
    --color-gold: #c9a962;
    --color-gold-light: #e2d4a7;
    --color-gold-dark: #a68a3a;
    --color-navy: #0a0f1a;
    --color-navy-light: #141c2e;
    --color-navy-lighter: #1e2942;
    --color-white: #ffffff;
    --color-off-white: #fafafa;
    --color-cream: #f5f3ef;
    --color-gray-light: #f0eeeb;
    --color-gray: #596577;
    --color-gray-dark: #2d3748;
    --color-text: #1a1a2e;
    --color-text-light: #c8d4e8;
    --color-success: #34d399;
    --color-error: #ef4444;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.1);
    --shadow-gold: 0 8px 32px rgba(201, 169, 98, 0.25);
    --focus-ring: 0 0 0 3px rgba(201, 169, 98, 0.5);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--color-text); line-height: 1.7; overflow-x: hidden; background: var(--color-off-white); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }

/* Accessibility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.skip-link { position: absolute; top: -100px; left: 50%; transform: translateX(-50%); background: var(--color-gold); color: var(--color-navy); padding: 1rem 2rem; border-radius: 0 0 8px 8px; font-weight: 600; z-index: 10000; transition: top 0.2s; text-decoration: none; }
.skip-link:focus { top: 0; }

/* NAVBAR */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 1rem 5%; display: flex; justify-content: space-between; align-items: center; background: transparent; transition: all var(--transition-smooth); }
.navbar.scrolled { background: rgba(10, 15, 26, 0.95); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.08); padding: 0.75rem 5%; }

.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--color-white); }
.logo-mark { width: 40px; height: 40px; background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark)); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem; color: var(--color-navy); }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-size: 1rem; font-weight: 700; }
.logo-sub { font-size: 0.6rem; font-weight: 500; color: var(--color-gold); letter-spacing: 1.5px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { color: var(--color-white); text-decoration: none; font-size: 0.875rem; font-weight: 500; opacity: 0.85; transition: all var(--transition-fast); padding: 0.5rem 0; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--color-gold); }

.nav-btn { padding: 0.625rem 1.25rem; border-radius: 8px; font-weight: 600; font-size: 0.8rem; text-decoration: none; transition: all var(--transition-smooth); }
.nav-btn-outline { border: 1.5px solid rgba(201, 169, 98, 0.6); color: var(--color-gold); background: transparent; }
.nav-btn-outline:hover { background: var(--color-gold); color: var(--color-navy); }
.nav-btn-filled { background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark)); color: var(--color-navy); }
.nav-btn-filled:hover { transform: translateY(-2px); }

/* Mobile Menu */
.mobile-menu-btn { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 10px; width: 44px; height: 44px; border-radius: 8px; }
.mobile-menu-btn:hover { background: rgba(255,255,255,0.1); }
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: var(--color-gold); transition: all var(--transition-fast); }
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(10, 15, 26, 0.98); z-index: 999; padding: 100px 2rem 2rem; opacity: 0; visibility: hidden; transition: all var(--transition-smooth); }
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu-links { list-style: none; text-align: center; }
.mobile-menu-links li { margin-bottom: 0.5rem; }
.mobile-menu-links a { display: block; padding: 1rem; min-height: 48px; color: var(--color-white); text-decoration: none; font-size: 1.25rem; font-weight: 500; border-radius: 12px; }
.mobile-menu-links a:hover { background: rgba(201, 169, 98, 0.1); color: var(--color-gold); }
.mobile-menu-links .nav-btn { display: block; margin-top: 1rem; padding: 1rem; font-size: 1rem; }

/* SECTIONS */
section { padding: 5rem 5%; position: relative; }
.section-white { background: var(--color-white); }
.section-cream { background: var(--color-cream); }
.section-navy { background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-light) 100%); color: var(--color-white); }

.section-header { text-align: center; margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.section-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--color-gold); margin-bottom: 0.75rem; display: block; }
.section-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 600; color: var(--color-text); line-height: 1.25; }
.section-title-light { color: var(--color-white); }
.section-title span { color: var(--color-gold); }
.section-subtitle { font-size: 1rem; color: var(--color-gray); margin-top: 0.75rem; }

/* PAGE HERO */
.page-hero { background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-light) 100%); padding: 10rem 5% 5rem; text-align: center; }
.page-hero-content { max-width: 700px; margin: 0 auto; }
.page-title { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700; color: var(--color-white); margin-bottom: 1rem; line-height: 1.2; }
.page-title span { color: var(--color-gold); }
.page-subtitle { font-size: 1.1rem; color: var(--color-text-light); }

/* CTA BANNER */
.cta-banner { background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light)); padding: 4rem 5%; text-align: center; }
.cta-banner h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-white); margin-bottom: 0.5rem; }
.cta-banner p { color: var(--color-text-light); margin-bottom: 1.5rem; }
.cta-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 2rem; background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark)); color: var(--color-navy); text-decoration: none; border-radius: 10px; font-weight: 600; transition: all var(--transition-smooth); }
.cta-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }

/* HERO CTA (pages) */
.hero-cta { display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 2rem; background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark)); color: var(--color-navy); text-decoration: none; border-radius: 10px; font-weight: 600; margin-top: 1.5rem; transition: all var(--transition-smooth); }
.hero-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }

/* PROCESS TIMELINE */
.process-timeline { max-width: 800px; margin: 0 auto; }
.process-step { display: flex; gap: 2rem; margin-bottom: 3rem; padding: 2rem; background: var(--color-white); border-radius: 20px; box-shadow: var(--shadow-md); }
.process-step-number { font-size: 3rem; font-weight: 800; color: var(--color-gold); line-height: 1; }
.process-step-content { flex: 1; }
.process-step-icon { width: 56px; height: 56px; background: linear-gradient(135deg, rgba(201, 169, 98, 0.15), rgba(201, 169, 98, 0.05)); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.process-step-icon svg { width: 28px; height: 28px; color: var(--color-gold); }
.process-step h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.process-step p { color: var(--color-gray); margin-bottom: 1rem; }
.process-benefits { list-style: none; }
.process-benefits li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--color-success); margin-bottom: 0.25rem; }
.process-benefits li::before { content: '✓'; font-weight: 600; }

/* GUARANTEES */
.guarantees-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.guarantee-card { background: var(--color-white); border-radius: 16px; padding: 2rem; text-align: center; box-shadow: var(--shadow-md); }
.guarantee-icon { width: 64px; height: 64px; background: linear-gradient(135deg, rgba(201, 169, 98, 0.15), rgba(201, 169, 98, 0.05)); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.guarantee-icon svg { width: 32px; height: 32px; color: var(--color-gold); }
.guarantee-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.guarantee-card p { font-size: 0.9rem; color: var(--color-gray); }

/* PRICING */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.pricing-card { background: var(--color-white); border-radius: 20px; padding: 2rem; box-shadow: var(--shadow-md); position: relative; transition: all var(--transition-smooth); }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card-featured { border: 2px solid var(--color-gold); }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--color-gold); color: var(--color-navy); font-size: 0.75rem; font-weight: 600; padding: 0.35rem 1rem; border-radius: 20px; }
.pricing-header { text-align: center; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--color-gray-light); }
.pricing-header h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.pricing-price { margin-top: 0.5rem; }
.price-amount { font-size: 2rem; font-weight: 700; color: var(--color-gold); }
.price-amount { font-size: 2rem; font-weight: 700; color: var(--color-gold); }
.pricing-description { font-size: 0.9rem; color: var(--color-gray); margin-bottom: 1.5rem; text-align: center; }
.pricing-features { list-style: none; margin-bottom: 1.5rem; }
.pricing-features li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.9rem; margin-bottom: 0.75rem; }
.pricing-features svg { width: 18px; height: 18px; color: var(--color-success); flex-shrink: 0; margin-top: 2px; }
.pricing-btn { display: block; width: 100%; padding: 0.875rem; background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark)); color: var(--color-navy); text-decoration: none; border-radius: 10px; font-weight: 600; text-align: center; transition: all var(--transition-smooth); }
.pricing-btn:hover { transform: translateY(-2px); }
.pricing-btn-outline { background: transparent; border: 1.5px solid var(--color-gold); color: var(--color-gold-dark); }
.pricing-btn-outline:hover { background: var(--color-gold); color: var(--color-navy); }

/* TARIFS INFO */
.tarifs-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.tarif-info-card { background: var(--color-white); border-radius: 16px; padding: 1.5rem; box-shadow: var(--shadow-sm); }
.tarif-info-card h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--color-gold); }
.tarif-info-card p { font-size: 0.9rem; color: var(--color-gray); }

/* FAQ ACCORDION */
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-category { margin-bottom: 2rem; }
.faq-category h2 { font-family: var(--font-display); font-size: 1.25rem; color: var(--color-gold); margin-bottom: 1rem; }
.faq-item-accordion { background: var(--color-white); border-radius: 12px; margin-bottom: 0.75rem; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-question-btn { width: 100%; padding: 1.25rem; display: flex; justify-content: space-between; align-items: center; font-size: 1rem; font-weight: 600; color: var(--color-text); cursor: pointer; list-style: none; border: none; background: none; }
.faq-question-btn::-webkit-details-marker { display: none; }
.faq-question-btn svg { width: 20px; height: 20px; transition: transform var(--transition-fast); }
details[open] .faq-question-btn svg { transform: rotate(180deg); }
.faq-answer-content { padding: 0 1.25rem 1.25rem; color: var(--color-gray); }
.faq-answer-content p { font-size: 0.95rem; line-height: 1.7; }

/* LABEL BENEFITS */
.label-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.label-benefit { text-align: center; padding: 1.5rem; }
.label-benefit-icon { width: 64px; height: 64px; background: linear-gradient(135deg, rgba(201, 169, 98, 0.15), rgba(201, 169, 98, 0.05)); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.label-benefit-icon svg { width: 32px; height: 32px; color: var(--color-gold); }
.label-benefit h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.label-benefit p { font-size: 0.85rem; color: var(--color-gray); }

/* CERTIFICATION STEPS */
.certification-steps { display: flex; justify-content: center; gap: 2rem; max-width: 900px; margin: 0 auto; flex-wrap: wrap; }
.certification-step { text-align: center; flex: 1; min-width: 180px; }
.certification-step-number { width: 48px; height: 48px; background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 700; color: var(--color-navy); margin: 0 auto 1rem; }
.certification-step h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.certification-step p { font-size: 0.85rem; color: var(--color-gray); }

/* FORMS */
.expert-form, .contact-form { max-width: 600px; margin: 0 auto; background: var(--color-white); border-radius: 20px; padding: 2.5rem; box-shadow: var(--shadow-lg); }
.expert-form h2, .contact-form h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 1.5rem; text-align: center; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--color-text); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.875rem 1rem; border: 1.5px solid var(--color-gray-light); border-radius: 10px; font-family: var(--font-main); font-size: 16px; transition: border-color var(--transition-fast); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--color-gold); outline: none; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-checkbox { display: flex; align-items: flex-start; gap: 0.75rem; }
.form-checkbox input { width: 20px; height: 20px; margin-top: 2px; }
.form-checkbox label { font-size: 0.85rem; color: var(--color-gray); }
.form-checkbox a { color: var(--color-gold-dark); }
.form-submit { width: 100%; padding: 1rem; background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark)); color: var(--color-navy); border: none; border-radius: 10px; font-family: var(--font-main); font-size: 1rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.5rem; transition: all var(--transition-smooth); }
.form-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }

/* CONTACT LAYOUT */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; max-width: 1100px; margin: 0 auto; align-items: start; }
.contact-info h2 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 1.5rem; }
.contact-method { display: flex; gap: 1rem; margin-bottom: 1.5rem; padding: 1rem; background: var(--color-cream); border-radius: 12px; }
.contact-method-icon { width: 48px; height: 48px; background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark)); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-method-icon svg { width: 24px; height: 24px; color: var(--color-navy); }
.contact-method h3 { font-size: 0.9rem; margin-bottom: 0.25rem; }
.contact-method a { color: var(--color-gold-dark); text-decoration: none; font-weight: 500; }
.contact-method p { font-size: 0.8rem; color: var(--color-gray); margin-top: 0.25rem; }
.contact-promise { background: var(--color-navy); border-radius: 12px; padding: 1.5rem; margin-top: 2rem; }
.contact-promise h3 { color: var(--color-gold); font-size: 1rem; margin-bottom: 1rem; }
.contact-promise ul { list-style: none; }
.contact-promise li { color: var(--color-text-light); font-size: 0.9rem; margin-bottom: 0.5rem; }
.contact-form { max-width: none; margin: 0; }

/* LEGAL PAGES */
.legal-page { padding-top: 80px; }
.legal-content { max-width: 800px; margin: 0 auto; padding: 3rem 5%; }
.legal-content h1 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 0.5rem; }
.legal-update { color: var(--color-gray); font-size: 0.9rem; margin-bottom: 2rem; }
.legal-content h2 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: 1rem; color: var(--color-gold); }
.legal-content p { margin-bottom: 1rem; color: var(--color-gray-dark); }
.legal-content ul { margin-bottom: 1rem; padding-left: 1.5rem; }
.legal-content li { margin-bottom: 0.5rem; color: var(--color-gray-dark); }
.legal-content a { color: var(--color-gold-dark); }

/* FOOTER */
.footer { background: var(--color-navy); padding: 4rem 5% 2rem; }
.footer-content { display: flex; justify-content: space-between; max-width: 1100px; margin: 0 auto; gap: 3rem; }
.footer-brand { max-width: 260px; }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; color: var(--color-white); font-weight: 700; font-size: 1.1rem; margin-bottom: 1rem; text-decoration: none; }
.footer-logo-mark { width: 36px; height: 36px; background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark)); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.8rem; color: var(--color-navy); }
.footer-tagline { font-size: 0.85rem; color: var(--color-text-light); line-height: 1.6; }
.footer-columns { display: flex; gap: 3rem; }
.footer-column h4 { color: var(--color-gold); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1rem; font-weight: 600; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 0.25rem; }
.footer-column a { display: flex; align-items: center; padding: 0.5rem 0; min-height: 44px; color: var(--color-text-light); text-decoration: none; font-size: 0.85rem; transition: color var(--transition-fast); }
.footer-column a:hover { color: var(--color-gold); }
.footer-bottom { max-width: 1100px; margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--color-text-light); }
.footer-bottom a { color: var(--color-text-light); text-decoration: none; margin-left: 1rem; }
.footer-bottom a:hover { color: var(--color-gold); }
.footer-links { display: flex; gap: 1rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { width: 40px; height: 40px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--color-text-light); transition: all var(--transition-fast); }
.footer-social a:hover { background: var(--color-gold); border-color: var(--color-gold); color: var(--color-navy); }
.footer-social svg { width: 18px; height: 18px; }

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    .mobile-menu { display: block; }
    section { padding: 4rem 5%; }
    .guarantees-grid, .pricing-grid, .tarifs-info { grid-template-columns: 1fr; }
    .label-benefits { grid-template-columns: repeat(2, 1fr); }
    .contact-layout { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 2rem; }
    .footer-columns { flex-wrap: wrap; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 768px) {
    .page-hero { padding: 8rem 5% 3rem; }
    .form-row { grid-template-columns: 1fr; }
    .process-step { flex-direction: column; gap: 1rem; }
    .certification-steps { flex-direction: column; gap: 1.5rem; }
    .label-benefits { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .navbar { padding: 0.75rem 4%; }
    .logo-sub { display: none; }
    section { padding: 3rem 4%; }
    .expert-form, .contact-form { padding: 1.5rem; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ========================================
   CORRECTIONS UX/UI V3.1
   ======================================== */

/* 2. CONTRASTES AMÉLIORÉS */
.hero-note { 
    font-size: 0.8rem; 
    color: #d4dce8; /* Ratio 5.5:1 vs navy */
}
.hero-stat-label { 
    color: #b8c4d8; /* Ratio 5.2:1 */
}
.section-subtitle { 
    color: #5a6a7d; /* Ratio 5.0:1 vs white */
}

/* 3. SCROLL INDICATOR pour carousel experts */
.scroll-indicator {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--color-gray);
    animation: bounce-x 1.5s infinite;
}
.scroll-indicator svg {
    width: 16px;
    height: 16px;
}
@keyframes bounce-x {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}
@media (max-width: 768px) {
    .scroll-indicator { display: flex; }
}

/* 4. FORMULAIRES : Validation visuelle */
.form-group input:invalid:not(:placeholder-shown) {
    border-color: var(--color-error);
    background: rgba(239, 68, 68, 0.05);
}
.form-group input:valid:not(:placeholder-shown) {
    border-color: var(--color-success);
}
.form-error {
    color: var(--color-error);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}
.form-group input:invalid:not(:placeholder-shown) ~ .form-error {
    display: block;
}

/* 5. LOADING STATE boutons */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}
.btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin: -9px 0 0 -9px;
    border: 2px solid var(--color-navy);
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 6. HERO MOBILE OPTIMISÉ */
@media (max-width: 480px) {
    .hero {
        min-height: calc(100vh - 60px);
        min-height: calc(100dvh - 60px);
        padding: 4.5rem 4% 1.5rem;
    }
    .hero-badge {
        font-size: 0.65rem;
        padding: 0.35rem 0.7rem;
    }
    .hero h1 {
        font-size: 1.35rem;
        line-height: 1.25;
    }
    .hero-subtitle {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    .hero-stats {
        margin-top: 1.5rem;
        gap: 0.4rem;
    }
    .hero-stat {
        padding: 0.6rem 0.8rem;
    }
    .hero-stat-number {
        font-size: 0.95rem;
    }
    .hero-stat-label {
        font-size: 0.6rem;
    }
}

/* 7. MOBILE MENU : Tap outside to close + X visible */
.mobile-menu::before {
    content: '✕';
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-gold);
    cursor: pointer;
    border-radius: 8px;
    transition: background var(--transition-fast);
}
.mobile-menu::before:hover {
    background: rgba(255,255,255,0.1);
}

/* 8. PIE CHARTS ACCESSIBLES */
.pie-chart[role="img"] {
    position: relative;
}
.pie-chart-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    z-index: 1;
}

/* 9. TESTIMONIAL DOTS INTERACTIFS */
.testimonial-dot {
    cursor: pointer;
    transition: all var(--transition-fast);
}
.testimonial-dot:hover {
    background: var(--color-gold-light);
}
.testimonial-dot:focus-visible {
    box-shadow: var(--focus-ring);
}

/* 10. TOUCH TARGETS AMÉLIORÉS */
.search-tags a {
    display: inline-block;
    padding: 0.5rem 0.25rem;
    min-height: 44px;
    line-height: 2;
}
.legend-item {
    padding: 0.25rem 0;
}

/* 11. SAFE AREA iOS */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .footer {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    }
    .mobile-menu {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* 12. ORIENTATION PAYSAGE MOBILE */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: auto;
        padding: 5rem 5% 2rem;
    }
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .hero-stat {
        flex: 1 1 auto;
    }
}

/* 13. FAQ ACCORDION STYLES (pour faq.html) */
.faq-item-accordion {
    background: var(--color-white);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.faq-item-accordion summary {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    list-style: none;
    min-height: 48px;
}
.faq-item-accordion summary::-webkit-details-marker {
    display: none;
}
.faq-item-accordion summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-gold);
    transition: transform var(--transition-fast);
}
.faq-item-accordion[open] summary::after {
    content: '−';
}
.faq-item-accordion .faq-answer-content {
    padding: 0 1.25rem 1.25rem;
    color: var(--color-gray);
    line-height: 1.7;
}

/* 14. EXPERT CARDS TOOLTIP */
.expert-name {
    position: relative;
}
.expert-name[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-navy);
    color: var(--color-white);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
}

/* 15. CTA HIERARCHY */
.cta-primary {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-navy);
    box-shadow: var(--shadow-gold);
}
.cta-secondary {
    background: transparent;
    border: 1.5px solid var(--color-gold);
    color: var(--color-gold);
}
.cta-tertiary {
    background: transparent;
    color: var(--color-gold);
    text-decoration: underline;
}

/* 16. VALIDATION FORMULAIRES COMPLÈTE */
.form-group input.touched:invalid,
.form-group textarea.touched:invalid,
.form-group select.touched:invalid {
    border-color: var(--color-error);
    background: rgba(239, 68, 68, 0.03);
}
.form-group input.touched:valid,
.form-group textarea.touched:valid,
.form-group select.touched:valid {
    border-color: var(--color-success);
}
.form-group .form-error {
    color: var(--color-error);
    font-size: 0.75rem;
    margin-top: 0.35rem;
    display: none;
}
.form-group input.touched:invalid ~ .form-error {
    display: block;
}

/* 17. LOADING SPINNER AMÉLIORÉ */
.form-submit {
    position: relative;
    overflow: hidden;
}
.form-submit.btn-loading {
    color: transparent !important;
    pointer-events: none;
}
.form-submit.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2.5px solid var(--color-navy);
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner 0.6s linear infinite;
}
@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* 18. INPUT PLACEHOLDER STYLE */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}
.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0.5;
}

/* 19. SELECT ARROW CUSTOM */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234a5568'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* ========================================
   CTA BANNER STYLES
   ======================================== */
.cta-banner {
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
    padding: 4rem 5%;
    text-align: center;
}
.cta-banner h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}
.cta-banner p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-navy);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-gold);
}
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(201, 169, 98, 0.4);
}

/* ==================== TÉMOIGNAGES ESN ==================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card-esn {
    background: var(--color-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-gray-light);
    transition: all var(--transition-smooth);
}

.testimonial-card-esn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-gold);
}

.testimonial-company {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.company-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    font-weight: 700;
    font-size: 1rem;
}

.company-info {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
}

.company-type {
    font-size: 0.8rem;
    color: var(--color-gray);
}

.testimonial-card-esn .testimonial-text {
    font-size: 0.95rem;
    color: var(--color-gray-dark);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.25rem;
}

.testimonial-author-esn {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-gray-light);
}

.testimonial-author-esn .author-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
}

.testimonial-author-esn .author-role {
    font-size: 0.8rem;
    color: var(--color-gray);
}

.testimonial-metrics {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--color-gray);
}

.testimonial-metrics strong {
    color: var(--color-gold);
    font-size: 1rem;
}

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

/* ==================== CTA ESN SECTION ==================== */
.esn-cta-section {
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
    padding: 5rem 5%;
}

.esn-cta-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.esn-cta-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-white);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.esn-cta-text h2 span {
    color: var(--color-gold);
}

.esn-cta-text p {
    color: var(--color-text-light);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.esn-cta-buttons {
    display: flex;
    gap: 1rem;
}

.esn-cta-buttons .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-navy);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-gold);
}

.esn-cta-buttons .btn-primary:hover {
    transform: translateY(-2px);
}

.esn-cta-buttons .btn-secondary {
    padding: 1rem 2rem;
    background: transparent;
    border: 1.5px solid var(--color-gold);
    color: var(--color-gold);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.esn-cta-buttons .btn-secondary:hover {
    background: var(--color-gold);
    color: var(--color-navy);
}

.esn-cta-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.esn-feature {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.esn-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(201, 169, 98, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.25rem;
}

.esn-feature-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 0.25rem;
}

.esn-feature-label {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

@media (max-width: 1024px) {
    .esn-cta-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .esn-cta-buttons {
        justify-content: center;
    }
    .esn-cta-features {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .esn-cta-buttons {
        flex-direction: column;
    }
    .esn-cta-features {
        grid-template-columns: 1fr;
    }
}

/* Amélioration contrastes placeholders */
::placeholder {
    color: #6b7a8f;
    opacity: 1;
}
input::placeholder, textarea::placeholder {
    color: #6b7a8f;
}

/* Touch targets mobile - minimum 44x44px */
@media (max-width: 768px) {
    /* Tags technologies */
    .tech-tag, .expert-tag, .exp-tag {
        min-height: 44px;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Boutons filtres */
    .filter-group select {
        min-height: 48px;
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
    
    /* Boutons d'action */
    .btn-action, .btn-primary, .btn-secondary {
        min-height: 48px;
        padding: 0.875rem 1rem;
    }
    
    /* Dots pagination/témoignages */
    .testimonial-dot {
        width: 44px;
        height: 44px;
        padding: 18px;
        background-clip: content-box;
    }
    
    /* Liens dans les cards */
    .expert-card a, .feature-card a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Checkboxes et radios */
    input[type="checkbox"], input[type="radio"] {
        min-width: 24px;
        min-height: 24px;
    }
    
    /* Labels cliquables */
    label {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Fil d'Ariane (Breadcrumb) */
.breadcrumb {
    background: var(--color-navy);
    padding: 0.75rem 5%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.85rem;
}
.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.breadcrumb-list a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}
.breadcrumb-list a:hover {
    color: var(--color-gold);
}
.breadcrumb-list .separator {
    color: var(--color-gray);
}
.breadcrumb-list .current {
    color: var(--color-gold);
    font-weight: 500;
}

/* Loading States */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}
.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--color-gray-light) 25%, var(--color-cream) 50%, var(--color-gray-light) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--color-navy);
    color: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}
.toast.success {
    background: var(--color-success);
    color: white;
}
.toast.error {
    background: var(--color-error);
    color: white;
}

/* Harmonisation hover states */
.feature-card,
.benefit-card,
.freelance-card,
.pricing-card,
.testimonial-card,
.stats-chart-container {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover,
.benefit-card:hover,
.freelance-card:hover,
.stats-chart-container:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-gold);
}
.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
}
