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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    /* Offset pour les ancres sous le header fixe */
    scroll-padding-top: 100px;
}

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

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 10px; border: 2px solid var(--color-bg); }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; border-radius: 4px; }

/* Skip link accessibilité */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 3000; background: var(--color-accent); color: #FFF; padding: 0.8rem 1.2rem; border-radius: 0 0 var(--radius-sm) 0; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; }
.skip-link:focus { left: 0; }

/* =========================================
   2. VARIABLES (Midnight Blue & Silver)
   ========================================= */
:root {
    --color-bg: #F1F5F9;
    --color-surface: #FFFFFF;
    --color-text: #0F172A;
    --color-muted: #475569;
    --color-border: #E2E8F0;
    --color-accent: #172554;
    --color-accent-hover: #0B1120;
    --color-dark-bg: #0B1120;
    --color-dark-surface: #1E293B;
    --color-bright-blue: #3B82F6;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    --fs-h1: clamp(2.5rem, 6vw, 4.5rem);
    --fs-h2: clamp(2rem, 4.5vw, 3.2rem);
    --fs-h3: 1.35rem;
    --fs-body: 1.0625rem;

    --container-width: 1140px;
    --container-pad: clamp(1.5rem, 5vw, 3rem);
    --section-pad: clamp(4rem, 10vw, 7rem);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;

    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 50px 100px rgba(15, 23, 42, 0.1);
    --transition: 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   3. TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.04em; color: var(--color-text); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { color: var(--color-muted); font-size: var(--fs-body); max-width: 65ch; }

.text-accent { background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-bright-blue) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* =========================================
   4. LAYOUT
   ========================================= */
.container { width: 100%; max-width: var(--container-width); margin-inline: auto; padding-inline: var(--container-pad); }
.section-title { margin-bottom: 3rem; max-width: 800px; font-size: var(--fs-h2); }
.section-title.center { margin-inline: auto; text-align: center; }
.section-subtitle { max-width: 620px; margin-bottom: 3.5rem; font-size: 1.15rem; line-height: 1.6; }
.section-subtitle.center { margin-inline: auto; text-align: center; }

/* =========================================
   5. COMPONENTS
   ========================================= */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 2rem; font-family: var(--font-display); font-weight: 600; font-size: 1rem; border-radius: var(--radius-sm); transition: all var(--transition); border: 1px solid transparent; text-align: center; position: relative; overflow: hidden; isolation: isolate; letter-spacing: 0.02em; }

.btn-primary { background-color: var(--color-accent); color: #FFF; box-shadow: 0 4px 14px rgba(23, 37, 84, 0.25); }
.btn-primary:hover { background-color: var(--color-accent-hover); transform: translateY(-3px); box-shadow: 0 15px 35px rgba(23, 37, 84, 0.35); }

.btn-secondary { background-color: var(--color-surface); color: var(--color-text); border-color: var(--color-border); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--color-accent); color: var(--color-accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }

.btn-outline { background-color: transparent; color: #FFF; border-color: rgba(255, 255, 255, 0.3); }
.btn-outline:hover { border-color: #FFF; background-color: rgba(255, 255, 255, 0.05); }

.btn::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent); transition: left 0.6s ease; z-index: -1; }
.btn:hover::after { left: 100%; }
.btn-lg { padding: 1.2rem 2.5rem; font-size: 1.1rem; }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.9rem; }

/* =========================================
   6. NAVIGATION
   ========================================= */
.nav-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: all var(--transition); background: transparent; padding: 1.5rem 0; }
.nav-header.scrolled { background: rgba(241, 245, 249, 0.75); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); border-bottom: 1px solid var(--color-border); padding: 1rem 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.03em; flex-shrink: 0; color: var(--color-text); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { font-size: 0.9rem; color: var(--color-text); opacity: 0.7; transition: opacity var(--transition); position: relative; font-weight: 500; }
.nav-links a:hover { opacity: 1; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--color-accent); transition: width var(--transition); }
.nav-links a:hover::after { width: 100%; }

.nav-cta-mobile { display: none; margin-top: 1.5rem; }
.hamburger { display: none; flex-direction: column; gap: 6px; z-index: 1001; background: none; border: none; padding: 0; }
.hamburger span { width: 26px; height: 2.5px; background: var(--color-text); transition: all var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* =========================================
   7. HERO SECTION
   ========================================= */
.hero-section { padding-top: 12rem; padding-bottom: var(--section-pad); position: relative; overflow: hidden; }
.hero-section::before { content: ''; position: absolute; top: -20%; right: -10%; width: 800px; height: 800px; background: radial-gradient(circle, rgba(23, 37, 84, 0.08) 0%, rgba(241, 245, 249, 0) 70%); border-radius: 50%; z-index: 0; animation: floatGlow 12s ease-in-out infinite; pointer-events: none; }
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; position: relative; z-index: 1; }
.hero-content h1 { margin-bottom: 2rem; margin-top: 0; }
.hero-subtitle { font-size: 1.2rem; max-width: 90%; margin-bottom: 3rem; color: var(--color-muted); line-height: 1.6; }
.hero-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual { max-width: 100%; position: relative; }
.hero-visual::before { content: ''; position: absolute; top: 10%; left: 10%; right: 10%; bottom: 10%; background: radial-gradient(circle, rgba(23, 37, 84, 0.15) 0%, transparent 70%); z-index: -1; filter: blur(40px); }
.browser-window { background: var(--color-dark-bg); border: 1px solid #1E293B; border-radius: var(--radius-md); overflow: hidden; animation: pulseShadow 6s ease-in-out infinite; box-shadow: var(--shadow-lg); }
.browser-header { background: #1E293B; padding: 1rem 1.2rem; display: flex; gap: 0.6rem; border-bottom: 1px solid #334155; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: #475569; flex-shrink: 0; }
.dot.red { background: #FF5F57; } .dot.yellow { background: #FEBC2E; } .dot.green { background: #28C840; }
.browser-body { padding: clamp(1.5rem, 5vw, 2rem); }
.mock-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; gap: 1rem; }
.mock-logo { display: block; width: 60px; height: 12px; background: #FFF; border-radius: 4px; flex-shrink: 0; opacity: 0.8; }
.mock-links { display: flex; gap: 8px; flex-shrink: 0; }
.mock-links span { display: block; width: 28px; height: 9px; background: #475569; border-radius: 4px; }
.mock-hero { display: flex; flex-direction: column; gap: 10px; margin-bottom: 2rem; }
.mock-line { display: block; height: 12px; background: #475569; border-radius: 4px; }
.w-70 { width: 70%; max-width: 220px; } .w-50 { width: 50%; max-width: 160px; }
.mock-btn { display: block; width: 90px; max-width: 40%; height: 24px; background: var(--color-bright-blue); border-radius: 8px; margin-top: 8px; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4); }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-card { display: block; height: 60px; background: #1E293B; border: 1px solid #334155; border-radius: 10px; }

/* =========================================
   8. INTRO
   ========================================= */
.intro-section { padding-block: var(--section-pad); border-top: 1px solid var(--color-border); background-color: var(--color-surface); }
.intro-asym { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.intro-item { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 2rem; display: flex; flex-direction: column; gap: 1rem; transition: all 0.3s ease; }
.intro-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.intro-item.large { grid-row: span 2; padding: 3rem; justify-content: center; }
.intro-icon { width: 48px; height: 48px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--color-accent); box-shadow: var(--shadow-sm); }
.intro-item h3 { font-size: 1.3rem; }
.intro-item p { font-size: 1rem; line-height: 1.6; }

/* =========================================
   9. CONSTAT
   ========================================= */
.constat-section { padding-block: var(--section-pad); background-color: var(--color-bg); border-top: 1px solid var(--color-border); }
.constat-schema { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--color-border); max-width: 900px; margin: 0 auto; }
.schema-col { padding: 3rem; }
.schema-col.bad { background: var(--color-surface); border-right: 1px solid var(--color-border); }
.schema-col.good { background: var(--color-dark-bg); color: #FFF; }
.schema-title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 2rem; text-align: center; }
.schema-col.bad .schema-title { color: var(--color-muted); }
.schema-col.good .schema-title { color: #FFF; }
.schema-list { list-style: none; }
.schema-list li { margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1rem; font-size: 1.05rem; font-weight: 500; }
.schema-col.bad .schema-list li { color: var(--color-muted); }
.schema-col.good .schema-list li { color: #E2E8F0; }
.schema-icon { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: bold; flex-shrink: 0; }
.schema-col.bad .schema-icon { background: #FEE2E2; color: #EF4444; }
.schema-col.good .schema-icon { background: rgba(59, 130, 246, 0.3); color: #3B82F6; }

/* =========================================
   10. PROCESS
   ========================================= */
.process-section { padding-block: var(--section-pad); border-top: 1px solid var(--color-border); background-color: var(--color-surface); }
.process-stack { max-width: 800px; margin: 0 auto; }
.process-item { padding: 2rem 0 2rem 2.5rem; border-left: 3px solid var(--color-border); position: relative; }
.process-item::before { content: ''; position: absolute; left: -9px; top: 2.5rem; width: 15px; height: 15px; background: var(--color-surface); border: 3px solid var(--color-accent); border-radius: 50%; }
.process-content h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.process-content p { font-size: 1rem; }

/* =========================================
   11. SUPPORT
   ========================================= */
.support-section { padding-block: var(--section-pad); border-top: 1px solid var(--color-border); background-color: var(--color-bg); }
.support-container { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; max-width: 1000px; margin: 0 auto; }
.support-list { list-style: none; margin: 2.5rem 0; }
.support-list li { position: relative; padding-left: 2rem; margin-bottom: 1.2rem; color: var(--color-text); font-size: 1.05rem; font-weight: 500; }
.support-list li::before { content: '→'; position: absolute; left: 0; color: var(--color-accent); font-weight: bold; }
.support-visual { display: flex; justify-content: center; }
.code-block { width: 100%; max-width: 420px; background: var(--color-dark-bg); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid #1E293B; }
.code-header { background: #1E293B; padding: 1rem 1.2rem; border-bottom: 1px solid #334155; }
.code-header span { color: #94A3B8; font-family: monospace; font-size: 0.85rem; }
.code-block pre { padding: 1.8rem; font-family: monospace; font-size: 0.9rem; line-height: 1.7; color: #E2E8F0; overflow-x: auto; }
.code-blue { color: #3B82F6; } .code-green { color: #34D399; } .code-comment { color: #64748B; }

/* =========================================
   12. AVIS
   ========================================= */
.avis-section { padding-block: var(--section-pad); background: var(--color-dark-bg); color: #F1F5F9; border-top: 1px solid #1E293B; position: relative; overflow: hidden; }
.avis-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 60%); pointer-events: none; }
.avis-section .section-title { color: #F1F5F9; position: relative; z-index: 1; }
.avis-card { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; text-align: center; padding: 3rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); backdrop-filter: blur(10px); }
.avis-quote { font-family: var(--font-display); font-size: 5rem; line-height: 0.8; color: var(--color-bright-blue); margin-bottom: 0.5rem; }
.avis-text { font-size: 1.2rem; line-height: 1.7; color: #E2E8F0; font-style: italic; margin-bottom: 2rem; max-width: 100%; }
.avis-author { display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; }
.author-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: #FFF; }

/* =========================================
   13. FAQ
   ========================================= */
.faq-section { padding-block: var(--section-pad); border-top: 1px solid #1E293B; background: var(--color-surface); }
.faq-list { max-width: 800px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 2.5rem 0; text-align: left; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--color-text); transition: color var(--transition); gap: 1rem; background: none; border: none; cursor: pointer; }
.faq-question:hover { color: var(--color-accent); }
.faq-icon { width: 18px; height: 18px; position: relative; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; background: var(--color-text); transition: transform var(--transition); }
.faq-icon::before { width: 100%; height: 2px; top: 50%; transform: translateY(-50%); }
.faq-icon::after { width: 2px; height: 100%; left: 50%; transform: translateX(-50%); }
.faq-item.active .faq-icon::after { transform: translateX(-50%) rotate(90deg); }
.faq-item.active .faq-question { color: var(--color-accent); }
.faq-item.active .faq-icon::before, .faq-item.active .faq-icon::after { background: var(--color-accent); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--transition); }
.faq-item.active .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer-inner p { padding-bottom: 2.5rem; color: var(--color-muted); font-size: 1.05rem; line-height: 1.7; }

/* =========================================
   14. CONTACT
   ========================================= */
.contact-section { padding-block: var(--section-pad); background: var(--color-dark-bg); color: #F1F5F9; text-align: center; position: relative; overflow: hidden; border-top: 1px solid #1E293B; }
.contact-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 60%); pointer-events: none; }
.contact-container { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; }
.contact-section h2 { color: #F1F5F9; font-size: clamp(2.5rem, 5vw, 4rem); }
.contact-subtitle { color: #94A3B8; max-width: 600px; margin-bottom: 3.5rem; font-size: 1.2rem; line-height: 1.6; }
.contact-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.contact-email { font-family: var(--font-display); font-size: 1rem; color: #64748B; border-top: 1px solid #1E293B; padding-top: 2.5rem; width: 100%; max-width: 400px; }

/* =========================================
   15. FOOTER
   ========================================= */
.footer { background: var(--color-dark-bg); color: #64748B; padding: 4rem 0 2rem; border-top: 1px solid #1E293B; }
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3rem; margin-bottom: 3rem; }
.footer-brand { max-width: 320px; }
.footer-brand .brand-name { color: #F1F5F9; display: block; margin-bottom: 1.2rem; font-size: 1.6rem; }
.footer-brand p { color: #94A3B8; font-size: 0.95rem; line-height: 1.6; }
.footer-links { display: flex; gap: 5rem; flex-wrap: wrap; }
.footer-nav { display: flex; flex-direction: column; gap: 1rem; }
.footer a { color: #94A3B8; font-size: 0.95rem; transition: color var(--transition); font-weight: 500; }
.footer a:hover { color: #3B82F6; }
.footer-bottom { border-top: 1px solid #1E293B; padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: #64748B; flex-wrap: wrap; gap: 1rem; }
.legal-links { display: flex; gap: 2rem; }
.legal-btn { color: #64748B; font-size: 0.85rem; transition: color var(--transition); text-decoration: underline; text-underline-offset: 3px; text-align: left; background: none; border: none; cursor: pointer; font-family: inherit; }
.legal-btn:hover { color: #3B82F6; }

/* =========================================
   16. MODAL
   ========================================= */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(11, 17, 32, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 2rem; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: var(--color-surface); color: var(--color-text); border-radius: var(--radius-lg); padding: 3rem; max-width: 600px; width: 100%; max-height: 80vh; overflow-y: auto; position: relative; transform: translateY(30px); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: var(--shadow-lg); }
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close { position: absolute; top: 2rem; right: 2rem; font-size: 2rem; color: var(--color-muted); transition: color 0.2s ease; background: none; border: none; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--color-accent); }
.modal-title { font-size: 1.8rem; margin-bottom: 2.5rem; }
.modal-body h3 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: 1rem; color: var(--color-text); }
.modal-body p { font-size: 1rem; color: var(--color-muted); margin-bottom: 1rem; line-height: 1.7; }
.modal-body a { color: var(--color-accent); text-decoration: underline; font-weight: 500; }
.modal-body code { font-family: monospace; background: var(--color-bg); padding: 0.15em 0.4em; border-radius: 4px; font-size: 0.9em; color: var(--color-accent); }
.modal-body ul.legal-list { list-style: none; margin: 1rem 0 1.5rem; }
.modal-body ul.legal-list li { position: relative; padding-left: 1.5rem; margin-bottom: 0.8rem; color: var(--color-muted); font-size: 0.95rem; line-height: 1.6; }
.modal-body ul.legal-list li::before { content: '▸'; position: absolute; left: 0; color: var(--color-accent); }

/* =========================================
   17. MICRO-ANIMATIONS & REVEAL
   ========================================= */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-stagger { opacity: 0; transform: translateY(50px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.stagger-grid.revealed .reveal-stagger { opacity: 1; transform: translateY(0); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.hero-content h1 { animation: fadeUp 0.8s ease-out 0.1s both; }
.hero-subtitle { animation: fadeUp 0.8s ease-out 0.2s both; }
.hero-cta-group { animation: fadeUp 0.8s ease-out 0.3s both; }
.hero-visual { animation: fadeIn 1.2s ease-out 0.4s both; }

@keyframes floatGlow { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-40px, 40px); } }
@keyframes pulseShadow { 0%, 100% { box-shadow: 0 50px 100px rgba(11, 17, 32, 0.1); } 50% { box-shadow: 0 60px 120px rgba(11, 17, 32, 0.15); } }

/* =========================================
   18. RESPONSIVE — TABLETTE (≤ 992px)
   ========================================= */
@media (max-width: 992px) {
    :root {
        --section-pad: clamp(3.5rem, 8vw, 5rem);
    }

    /* Navigation : passe en mode mobile */
    .nav-cta-desktop { display: none; }
    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        height: 100dvh;
        width: min(75vw, 320px);
        background: var(--color-surface);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem;
        box-shadow: -10px 0 40px rgba(15, 23, 42, 0.1);
        transform: translateX(100%);
        transition: transform var(--transition);
        z-index: 999;
    }
    .nav-links.active { transform: translateX(0); }
    .nav-links li { opacity: 0; transform: translateX(20px); transition: all 0.4s ease; }
    .nav-links.active li { opacity: 1; transform: translateX(0); }
    .nav-links.active li:nth-child(1) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.35s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.45s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.55s; }
    .nav-cta-mobile { display: block; }
    .nav-links a { font-size: 1.1rem; }

    /* Hero : passage en colonne */
    .hero-section { padding-top: 9rem; }
    .hero-container { grid-template-columns: 1fr; gap: 3rem; }
    .hero-content { text-align: center; }
    .hero-subtitle { margin-inline: auto; max-width: 100%; }
    .hero-cta-group { justify-content: center; }
    .hero-visual { max-width: 500px; margin: 0 auto; }

    /* Support : passage en colonne */
    .support-container { grid-template-columns: 1fr; gap: 3rem; }
    .support-content { text-align: center; }
    .support-list { text-align: left; }

    /* Intro : grille asymétrique → colonne */
    .intro-asym { grid-template-columns: 1fr; max-width: 100%; }
    .intro-item.large { grid-row: auto; padding: 2rem; }

    /* Constat : split vertical sur tablette étroite */
    .constat-schema { grid-template-columns: 1fr; max-width: 480px; }
    .schema-col.bad { border-right: none; border-bottom: 1px solid var(--color-border); }
    .schema-col { padding: 2.5rem; }
}

/* =========================================
   19. RESPONSIVE — MOBILE (≤ 600px)
   ========================================= */
@media (max-width: 600px) {
    :root {
        --section-pad: clamp(3rem, 12vw, 4rem);
        --container-pad: 1.25rem;
    }

    /* Boutons : full-width sur mobile */
    .btn { width: 100%; }
    .hero-cta-group { flex-direction: column; gap: 0.8rem; }
    .hero-cta-group .btn { width: 100%; }
    .contact-cta-group { flex-direction: column; gap: 0.8rem; width: 100%; }
    .contact-cta-group .btn { width: 100%; }
    .avis-author { flex-direction: column; gap: 1.2rem; }
    .avis-author .btn { width: auto; }

    /* Card avis */
    .avis-card { padding: 2rem 1.5rem; }
    .avis-text { font-size: 1.05rem; }

    /* FAQ */
    .faq-question { font-size: 1.05rem; padding: 2rem 0; }

    /* Schema */
    .schema-col { padding: 2rem 1.5rem; }
    .schema-list li { font-size: 0.95rem; gap: 0.75rem; }

    /* Modal */
    .modal-content { padding: 2rem 1.5rem; }
    .modal-close { top: 1rem; right: 1rem; font-size: 1.8rem; }

    /* Footer */
    .footer-container { gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
    .legal-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }

    /* Code block */
    .code-block pre { font-size: 0.8rem; padding: 1.2rem; }

    /* Brand */
    .brand-name { font-size: 1.3rem; }

    /* Section title */
    .section-title { margin-bottom: 2rem; }
}

/* =========================================
   20. RESPONSIVE — TRÈS PETITS (≤ 380px)
   ========================================= */
@media (max-width: 380px) {
    .hero-section { padding-top: 8rem; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .avis-quote { font-size: 4rem; }
    .btn { padding: 0.9rem 1.2rem; font-size: 0.95rem; }
}

/* =========================================
   21. ACCESSIBILITÉ — prefers-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;
    }
    .reveal { opacity: 1; transform: none; }
    .reveal-stagger { opacity: 1; transform: none; }
}

/* =========================================
   22. PRINT (léger — utile pour CV / mentions)
   ========================================= */
@media print {
    .nav-header, .hero-visual, .footer, .contact-cta-group,
    .modal-overlay, .hamburger, .nav-cta-desktop, .nav-cta-mobile,
    .faq-icon, .code-block { display: none !important; }
    body { background: #FFF; color: #000; }
    .avis-section, .contact-section, .schema-col.good { background: #FFF; color: #000; }
    .avis-section .section-title, .contact-section h2 { color: #000; }
    .schema-col.good .schema-list li, .schema-col.good .schema-title { color: #000; }
    .schema-col.good .schema-icon { background: #E0E7FF; color: #172554; }
    .avis-text, .contact-subtitle { color: #333; }
    section { page-break-inside: avoid; }
}
