/* ============================================================
   STELIAUP — VITRINE V4
   Charte : #1A2B48 (midnight) / #00E676 (emerald) / Inter
   Externalise depuis la maquette HTML validee
   ============================================================ */

:root {
    --midnight: #1A2B48;
    --midnight-dark: #0F1A2E;
    --midnight-soft: #2A3B58;
    --emerald: #00E676;
    --emerald-dark: #00B85F;
    --emerald-soft: #E6FBF1;
    --offwhite: #F4F7F6;
    --pearl: #E0E6ED;
    --pearl-soft: #F0F4F2;
    --text: #1A2B48;
    --text-muted: #5A6A82;
    --text-light: #8898AB;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(26, 43, 72, 0.04);
    --shadow-md: 0 8px 24px rgba(26, 43, 72, 0.08);
    --shadow-lg: 0 20px 60px rgba(26, 43, 72, 0.12);
    --shadow-emerald: 0 8px 24px rgba(0, 230, 118, 0.25);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* Reset minimal pour les zones V4 (sans casser le layout existant) */
.v4-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.v4 * { box-sizing: border-box; }
.v4 a { text-decoration: none; color: inherit; }
.v4 img { max-width: 100%; height: auto; display: block; }
.v4 button { font-family: inherit; cursor: pointer; border: none; background: none; }
.v4 h1, .v4 h2, .v4 h3, .v4 h4 { letter-spacing: -0.02em; line-height: 1.15; font-weight: 700; color: var(--midnight); }

.serif { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.v4-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; background: var(--emerald-soft); color: var(--emerald-dark);
    font-size: 13px; font-weight: 600; border-radius: 100px;
    text-transform: uppercase; letter-spacing: 0.05em;
}

/* ============== BOUTONS V4 ============== */
.v4-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 26px; border-radius: 100px; font-weight: 600; font-size: 15px;
    transition: all 0.25s ease; white-space: nowrap; cursor: pointer;
}
.v4-btn-primary { background: var(--emerald); color: var(--midnight); box-shadow: var(--shadow-emerald); }
.v4-btn-primary:hover { background: var(--emerald-dark); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 230, 118, 0.35); }
.v4-btn-secondary { background: var(--midnight); color: var(--white); }
.v4-btn-secondary:hover { background: var(--midnight-dark); transform: translateY(-2px); }
.v4-btn-outline { background: transparent; color: var(--midnight); border: 1.5px solid var(--pearl); }
.v4-btn-outline:hover { border-color: var(--midnight); background: var(--midnight); color: var(--white); }
.v4-btn-ghost { background: transparent; color: var(--midnight); }
.v4-btn-ghost:hover { color: var(--emerald-dark); }
.v4-btn-arrow::after { content: '→'; transition: transform 0.25s ease; }
.v4-btn-arrow:hover::after { transform: translateX(4px); }

/* ============== HERO ============== */
.v4-hero { position: relative; padding: 80px 0 100px; overflow: hidden; background: radial-gradient(ellipse 800px 400px at 80% -100px, rgba(0, 230, 118, 0.08), transparent 70%), radial-gradient(ellipse 600px 300px at 0% 100%, rgba(26, 43, 72, 0.04), transparent 70%), var(--white); }
.v4-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(26, 43, 72, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(26, 43, 72, 0.025) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%); pointer-events: none; }
.v4-hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.v4-hero h1 { font-size: clamp(40px, 5.5vw, 64px); line-height: 1.05; margin-bottom: 24px; font-weight: 800; }
.v4-hero h1 .accent { color: var(--emerald-dark); position: relative; }
.v4-hero h1 .accent::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 8px; background: var(--emerald); opacity: 0.25; border-radius: 100px; z-index: -1; }
.v4-hero .lead { font-size: 19px; color: var(--text-muted); margin-bottom: 32px; max-width: 560px; line-height: 1.55; }
.v4-hero-checks { display: grid; gap: 12px; margin-bottom: 36px; max-width: 520px; }
.v4-hero-check { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text); font-weight: 500; }
.v4-hero-check svg { flex-shrink: 0; width: 22px; height: 22px; background: var(--emerald-soft); border-radius: 50%; padding: 4px; color: var(--emerald-dark); }
.v4-hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.v4-hero-trust { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-light); }
.v4-hero-trust svg { color: var(--emerald-dark); width: 18px; height: 18px; }

/* Visual hero : mockup planning */
.v4-hero-visual { position: relative; perspective: 1500px; }
.v4-hero-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--pearl); overflow: hidden; transform: rotateY(-8deg) rotateX(4deg); transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.v4-hero-card:hover { transform: rotateY(-4deg) rotateX(2deg); }
.v4-hero-card-header { padding: 14px 18px; background: var(--offwhite); border-bottom: 1px solid var(--pearl); display: flex; align-items: center; gap: 8px; }
.v4-hero-card-dot { width: 11px; height: 11px; border-radius: 50%; }
.v4-hero-card-dot.r { background: #FF5F57; }
.v4-hero-card-dot.y { background: #FFBD2E; }
.v4-hero-card-dot.g { background: #28CA42; }
.v4-hero-card-title { margin-left: 12px; font-size: 12px; color: var(--text-light); font-weight: 500; }
.v4-hero-card-body { padding: 20px; }

.v4-planning-grid { display: grid; grid-template-columns: 80px repeat(5, 1fr); gap: 6px; font-size: 11px; }
.v4-planning-cell { padding: 8px 6px; border-radius: 6px; text-align: center; font-weight: 500; }
.v4-planning-header { background: var(--offwhite); color: var(--text-muted); font-size: 10px; font-weight: 600; text-transform: uppercase; }
.v4-planning-name { background: var(--white); color: var(--text); text-align: left; padding-left: 8px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.v4-planning-name .v4-avatar { width: 18px; height: 18px; border-radius: 50%; background: var(--midnight); color: var(--white); font-size: 9px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.v4-shift-1 { background: linear-gradient(135deg, #00E676, #00B85F); color: white; }
.v4-shift-2 { background: linear-gradient(135deg, #1A2B48, #2A3B58); color: white; }
.v4-shift-3 { background: var(--emerald-soft); color: var(--emerald-dark); }
.v4-shift-empty { background: var(--pearl-soft); }

.v4-floating { position: absolute; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 14px 18px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--pearl); }
.v4-floating-1 { top: -20px; left: -30px; animation: v4-float 6s ease-in-out infinite; }
.v4-floating-2 { bottom: -20px; right: -20px; animation: v4-float 6s ease-in-out infinite reverse; }
.v4-floating-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--emerald-soft); color: var(--emerald-dark); display: flex; align-items: center; justify-content: center; }
.v4-floating-text { font-size: 13px; }
.v4-floating-text strong { display: block; color: var(--midnight); font-weight: 700; }
.v4-floating-text span { color: var(--text-light); font-size: 11px; }
@keyframes v4-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ============== TRUSTBAR ============== */
.v4-trustbar { padding: 60px 0; background: var(--offwhite); border-top: 1px solid var(--pearl); border-bottom: 1px solid var(--pearl); }
.v4-trustbar-title { text-align: center; font-size: 14px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 32px; }
.v4-trustbar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.v4-trust-item { background: var(--white); border-radius: var(--radius-md); padding: 28px 24px; border: 1px solid var(--pearl); text-align: center; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.v4-trust-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.v4-trust-icon { width: 44px; height: 44px; margin: 0 auto 16px; border-radius: 12px; background: var(--emerald-soft); color: var(--emerald-dark); display: flex; align-items: center; justify-content: center; }
.v4-trust-value { font-size: 32px; font-weight: 800; color: var(--midnight); line-height: 1; margin-bottom: 8px; letter-spacing: -0.02em; }
.v4-trust-label { font-size: 14px; color: var(--text-muted); font-weight: 500; }

/* ============== SECTION HEAD COMMUN ============== */
.v4-section { padding: 100px 0; }
.v4-section.alt { background: var(--offwhite); }
.v4-section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.v4-section-eyebrow { color: var(--emerald-dark); font-weight: 600; font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 16px; display: block; }
.v4-section-head h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; line-height: 1.1; }
.v4-section-head p { font-size: 18px; color: var(--text-muted); line-height: 1.55; }

/* ============== FEATURES TABS ============== */
.v4-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 auto 50px; padding: 6px; background: var(--offwhite); border-radius: 100px; max-width: 720px; }
.v4-tab { padding: 12px 24px; border-radius: 100px; font-weight: 600; font-size: 14px; color: var(--text-muted); transition: all 0.25s; background: transparent; white-space: nowrap; }
.v4-tab.active { background: var(--midnight); color: var(--white); box-shadow: var(--shadow-md); }
.v4-tab:not(.active):hover { color: var(--midnight); }
.v4-tab-panel { display: none; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.v4-tab-panel.active { display: grid; animation: v4-fade 0.4s ease; }
@keyframes v4-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.v4-tab-content h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 20px; line-height: 1.2; }
.v4-tab-content > p { font-size: 17px; color: var(--text-muted); margin-bottom: 28px; line-height: 1.6; }
.v4-tab-checks { display: grid; gap: 14px; margin-bottom: 32px; }
.v4-tab-check { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; }
.v4-tab-check svg { flex-shrink: 0; width: 22px; height: 22px; background: var(--emerald-soft); color: var(--emerald-dark); border-radius: 50%; padding: 4px; margin-top: 1px; }
.v4-tab-check strong { color: var(--midnight); font-weight: 600; }
.v4-tab-visual { background: linear-gradient(135deg, var(--offwhite) 0%, var(--pearl-soft) 100%); border-radius: var(--radius-xl); padding: 40px; position: relative; overflow: hidden; min-height: 420px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); }
.v4-tab-visual::before { content: ''; position: absolute; top: -50%; right: -20%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(0, 230, 118, 0.15), transparent 70%); pointer-events: none; }

.v4-mock-card { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 24px; border: 1px solid var(--pearl); position: relative; z-index: 1; width: 100%; max-width: 420px; }

/* ============== SECTORS ============== */
.v4-sectors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.v4-sector-card { background: var(--white); border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--pearl); transition: all 0.3s ease; cursor: pointer; position: relative; overflow: hidden; }
.v4-sector-card::before { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--emerald); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.v4-sector-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.v4-sector-card:hover::before { transform: scaleX(1); }
.v4-sector-icon { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--emerald-soft), var(--pearl-soft)); color: var(--emerald-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.v4-sector-icon svg { width: 28px; height: 28px; }
.v4-sector-card h4 { font-size: 18px; margin-bottom: 8px; font-weight: 700; }
.v4-sector-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; margin-bottom: 20px; }
.v4-sector-link { display: inline-flex; align-items: center; gap: 6px; color: var(--emerald-dark); font-weight: 600; font-size: 14px; }
.v4-sector-link::after { content: '→'; transition: transform 0.2s; }
.v4-sector-card:hover .v4-sector-link::after { transform: translateX(4px); }

/* ============== IA SECTION (dark) ============== */
.v4-ia-section { padding: 100px 0; background: linear-gradient(135deg, var(--midnight) 0%, var(--midnight-dark) 100%); color: var(--white); position: relative; overflow: hidden; }
.v4-ia-section::before { content: ''; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(0, 230, 118, 0.15), transparent 70%); pointer-events: none; }
.v4-ia-section::after { content: ''; position: absolute; bottom: -100px; left: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(0, 230, 118, 0.08), transparent 70%); pointer-events: none; }
.v4-ia-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; }
.v4-ia-section .v4-section-eyebrow { color: var(--emerald); }
.v4-ia-section h2 { font-size: clamp(32px, 4vw, 48px); color: var(--white); margin-bottom: 24px; line-height: 1.1; }
.v4-ia-section h2 .serif { color: var(--emerald); }
.v4-ia-section .lead { font-size: 18px; color: rgba(255, 255, 255, 0.75); margin-bottom: 32px; line-height: 1.6; }
.v4-ia-features { display: grid; gap: 20px; margin-bottom: 36px; }
.v4-ia-feature { display: flex; gap: 16px; align-items: flex-start; }
.v4-ia-feature-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(0, 230, 118, 0.15); color: var(--emerald); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.v4-ia-feature h4 { font-size: 16px; color: var(--white); margin-bottom: 4px; font-weight: 700; }
.v4-ia-feature p { font-size: 14px; color: rgba(255, 255, 255, 0.7); line-height: 1.55; margin: 0; }
.v4-ia-visual { background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-xl); padding: 32px; position: relative; }
.v4-ia-chat { display: grid; gap: 14px; }
.v4-ia-msg { padding: 14px 18px; border-radius: 16px; font-size: 14px; line-height: 1.5; max-width: 85%; }
.v4-ia-msg.user { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.9); align-self: flex-end; border-bottom-right-radius: 4px; margin-left: auto; }
.v4-ia-msg.bot { background: var(--emerald); color: var(--midnight); border-bottom-left-radius: 4px; font-weight: 500; }
.v4-ia-msg-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.6; margin-bottom: 6px; }
.v4-ia-typing { display: inline-flex; gap: 4px; padding: 6px 12px; background: rgba(255, 255, 255, 0.08); border-radius: 100px; }
.v4-ia-typing span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.6); animation: v4-typing 1.4s infinite; }
.v4-ia-typing span:nth-child(2) { animation-delay: 0.2s; }
.v4-ia-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes v4-typing { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

/* ============== COMPARISON ============== */
.v4-compare-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--pearl); }
.v4-compare-table { width: 100%; border-collapse: collapse; background: var(--white); min-width: 700px; }
.v4-compare-table th, .v4-compare-table td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--pearl); font-size: 14px; }
.v4-compare-table th { background: var(--offwhite); font-weight: 700; color: var(--midnight); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
.v4-compare-table th.highlighted { background: var(--midnight); color: var(--white); position: relative; }
.v4-compare-table th.highlighted::after { content: 'Recommande'; position: absolute; top: -10px; right: 12px; background: var(--emerald); color: var(--midnight); font-size: 10px; padding: 3px 8px; border-radius: 100px; font-weight: 800; letter-spacing: 0; text-transform: none; }
.v4-compare-table tbody tr:hover { background: var(--pearl-soft); }
.v4-compare-table td.feature { font-weight: 600; color: var(--midnight); }
.v4-compare-table td.highlighted { background: rgba(0, 230, 118, 0.04); font-weight: 600; }
.v4-compare-yes { color: var(--emerald-dark); font-weight: 700; }

/* ============== PRICING ============== */
.v4-pricing-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 6px; background: var(--white); border-radius: 100px; margin: 24px auto 40px; border: 1px solid var(--pearl); }
.v4-toggle-btn { padding: 10px 22px; border-radius: 100px; font-weight: 600; font-size: 14px; color: var(--text-muted); transition: all 0.2s; }
.v4-toggle-btn.active { background: var(--midnight); color: var(--white); }
.v4-toggle-badge { background: var(--emerald); color: var(--midnight); font-size: 10px; padding: 2px 6px; border-radius: 100px; margin-left: 6px; font-weight: 800; }
.v4-plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.v4-plan-card { background: var(--white); border-radius: var(--radius-lg); padding: 32px 28px; border: 1.5px solid var(--pearl); transition: all 0.3s ease; position: relative; display: flex; flex-direction: column; }
.v4-plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.v4-plan-card.popular { border-color: var(--emerald); box-shadow: 0 12px 40px rgba(0, 230, 118, 0.15); }
.v4-plan-card.popular::before { content: 'Le plus choisi'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--emerald); color: var(--midnight); font-size: 11px; padding: 5px 14px; border-radius: 100px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; box-shadow: var(--shadow-emerald); }
.v4-plan-name { font-size: 18px; font-weight: 700; color: var(--midnight); margin-bottom: 6px; }
.v4-plan-tagline { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; min-height: 36px; }
.v4-plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.v4-plan-price-value { font-size: 42px; font-weight: 800; color: var(--midnight); letter-spacing: -0.03em; line-height: 1; }
.v4-plan-price-currency { font-size: 22px; color: var(--midnight); font-weight: 700; }
.v4-plan-price-period { font-size: 13px; color: var(--text-light); margin-bottom: 24px; }
.v4-plan-cta { width: 100%; margin-bottom: 24px; padding: 12px 18px; font-size: 14px; }
.v4-plan-features { display: grid; gap: 10px; margin-top: auto; }
.v4-plan-feature { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text); line-height: 1.5; }
.v4-plan-feature svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--emerald-dark); margin-top: 1px; }
.v4-plan-feature.disabled { color: var(--text-light); }
.v4-plan-feature.disabled svg { color: var(--text-light); opacity: 0.4; }

/* ============== TESTIMONIAL ============== */
.v4-testimonial-card { background: linear-gradient(135deg, var(--midnight) 0%, var(--midnight-dark) 100%); color: var(--white); border-radius: var(--radius-xl); padding: 60px; position: relative; overflow: hidden; }
.v4-testimonial-card::before { content: '"'; position: absolute; top: -40px; left: 30px; font-size: 280px; color: var(--emerald); opacity: 0.15; font-family: 'Instrument Serif', Georgia, serif; line-height: 1; }
.v4-testimonial-quote { font-family: 'Instrument Serif', Georgia, serif; font-size: clamp(24px, 3vw, 36px); line-height: 1.3; font-style: italic; margin-bottom: 32px; position: relative; max-width: 800px; }
.v4-testimonial-author { display: flex; align-items: center; gap: 16px; position: relative; }
.v4-testimonial-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--emerald), var(--emerald-dark)); color: var(--midnight); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; }
.v4-testimonial-author-info strong { display: block; font-size: 15px; color: var(--white); font-weight: 600; }
.v4-testimonial-author-info span { font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.v4-testimonial-note { margin-top: 32px; padding: 14px 18px; background: rgba(0, 230, 118, 0.1); border-left: 3px solid var(--emerald); border-radius: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.85); line-height: 1.5; max-width: 600px; }

/* ============== FAQ ============== */
.v4-faq-grid { max-width: 820px; margin: 0 auto; }
.v4-faq-item { background: var(--white); border-radius: var(--radius-md); margin-bottom: 12px; border: 1px solid var(--pearl); transition: all 0.2s ease; overflow: hidden; }
.v4-faq-item:hover { border-color: var(--text-light); }
.v4-faq-item[open] { border-color: var(--emerald); box-shadow: var(--shadow-md); }
.v4-faq-question { padding: 22px 28px; font-weight: 600; color: var(--midnight); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 16px; line-height: 1.4; list-style: none; }
.v4-faq-question::-webkit-details-marker { display: none; }
.v4-faq-question::after { content: ''; flex-shrink: 0; width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; transition: transform 0.2s; opacity: 0.5; }
.v4-faq-item[open] .v4-faq-question::after { transform: rotate(-135deg); margin-top: 2px; color: var(--emerald-dark); opacity: 1; }
.v4-faq-answer { padding: 0 28px 24px; color: var(--text-muted); font-size: 15px; line-height: 1.65; }

/* ============== FINAL CTA ============== */
.v4-final-cta-inner { background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%); color: var(--midnight); border-radius: var(--radius-xl); padding: 80px 60px; text-align: center; position: relative; overflow: hidden; }
.v4-final-cta-inner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2), transparent 50%), radial-gradient(circle at 80% 80%, rgba(26, 43, 72, 0.1), transparent 50%); pointer-events: none; }
.v4-final-cta-inner h2 { font-size: clamp(32px, 4.5vw, 52px); margin-bottom: 20px; line-height: 1.1; position: relative; color: var(--midnight); }
.v4-final-cta-inner h2 .serif { display: block; color: var(--midnight); margin-top: 8px; }
.v4-final-cta-inner p { font-size: 18px; color: var(--midnight-dark); opacity: 0.85; margin-bottom: 36px; max-width: 580px; margin-left: auto; margin-right: auto; position: relative; }
.v4-final-cta-inner .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }
.v4-final-cta-inner .v4-btn-secondary { background: var(--midnight); color: var(--white); }
.v4-final-cta-inner .v4-btn-outline { background: transparent; color: var(--midnight); border: 1.5px solid rgba(26, 43, 72, 0.3); }
.v4-final-cta-inner .v4-btn-outline:hover { background: var(--midnight); color: var(--white); border-color: var(--midnight); }

/* ============== RESPONSIVE ============== */
@media (max-width: 960px) {
    .v4-hero { padding: 50px 0 70px; }
    .v4-hero-inner { grid-template-columns: 1fr; gap: 50px; }
    .v4-hero-visual { order: -1; max-width: 480px; margin: 0 auto; }
    .v4-hero-card { transform: none; }
    .v4-floating { display: none; }
    .v4-tab-panel { grid-template-columns: 1fr; gap: 40px; }
    .v4-tab-visual { min-height: 320px; padding: 28px; }
    .v4-sectors-grid { grid-template-columns: repeat(2, 1fr); }
    .v4-ia-inner { grid-template-columns: 1fr; gap: 40px; }
    .v4-plans-grid { grid-template-columns: repeat(2, 1fr); }
    .v4-section { padding: 70px 0; }
    .v4-ia-section { padding: 70px 0; }
}
@media (max-width: 720px) {
    .v4-trustbar-grid { grid-template-columns: repeat(2, 1fr); }
    .v4-testimonial-card { padding: 40px 28px; }
    .v4-final-cta-inner { padding: 60px 28px; }
}
@media (max-width: 600px) {
    .v4-sectors-grid { grid-template-columns: 1fr; }
    .v4-plans-grid { grid-template-columns: 1fr; }
}

/* Accessibilite */
.v4 *:focus-visible { outline: 2px solid var(--emerald-dark); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .v4 *, .v4 *::before, .v4 *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* ============================================================
   FIX V4.2 - Corrections visuelles
   ============================================================ */

/* FIX 1 : bouton v4-btn-secondary - forcer texte blanc lisible */
.v4 .v4-btn-secondary,
.v4 .v4-btn-secondary:link,
.v4 .v4-btn-secondary:visited {
    color: #FFFFFF !important;
    background: var(--midnight) !important;
}
.v4 .v4-btn-secondary:hover {
    background: var(--midnight-dark) !important;
    color: #FFFFFF !important;
}
.v4 .v4-btn-secondary svg {
    color: #FFFFFF !important;
    stroke: #FFFFFF !important;
}

/* FIX 2 : badge "Recommande" dans le tableau comparatif */
.v4-compare-table th.highlighted {
    padding-top: 36px;
}
.v4-compare-table th.highlighted::after {
    content: 'Recommande';
    position: absolute;
    top: 8px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    background: var(--emerald);
    color: var(--midnight);
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 100px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

/* BONUS FIX : s'assurer que les liens dans .v4-btn-* heritent toujours bien la couleur */
.v4 a.v4-btn-primary,
.v4 a.v4-btn-primary:link,
.v4 a.v4-btn-primary:visited { color: var(--midnight) !important; }

.v4 a.v4-btn-outline,
.v4 a.v4-btn-outline:link,
.v4 a.v4-btn-outline:visited { color: var(--midnight); }
.v4 a.v4-btn-outline:hover { color: #FFFFFF !important; }


/* ============================================================
   ============================================================
   SPRINT 3.5 — DESIGN 200% (V5.2)
   Style : Audacieux et coloré (Stripe/Framer)
   Palette enrichie : Marine + Emerald + Iris + Coral + Sky
   ============================================================
   ============================================================ */

/* ===== EXTENSION PALETTE ===== */
.v4 {
    --iris: #7C5CFF;
    --iris-dark: #5B3FE8;
    --iris-soft: #F0EBFF;
    --coral: #FF6B7A;
    --coral-soft: #FFE5E8;
    --sky: #38BDF8;
    --sky-soft: #E0F2FE;

    --grad-emerald-iris: linear-gradient(135deg, #00E676 0%, #7C5CFF 100%);
    --grad-iris-coral: linear-gradient(135deg, #7C5CFF 0%, #FF6B7A 100%);
    --grad-marine-iris: linear-gradient(135deg, #1A2B48 0%, #4A2D78 50%, #7C5CFF 100%);
    --grad-emerald-sky: linear-gradient(135deg, #00E676 0%, #38BDF8 100%);

    --shadow-xl: 0 30px 80px rgba(26, 43, 72, 0.18);
    --glow-iris: 0 0 60px rgba(124, 92, 255, 0.4);
}

/* ===== GRAIN NOISE GLOBAL ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.15 0 0 0 0 0.25 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

/* ===== EYEBROW IRIS (pour IA) ===== */
.v4 .v4-eyebrow.eyebrow-iris {
    background: var(--iris-soft);
    border: 1px solid rgba(124, 92, 255, 0.2);
    color: var(--iris-dark);
    box-shadow: 0 2px 8px rgba(124, 92, 255, 0.1);
}
.v4 .v4-eyebrow.eyebrow-iris::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--iris);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--iris);
    animation: v4-pulse-dot 2s ease-in-out infinite;
}
@keyframes v4-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* ===== BOUTONS PREMIUM ===== */
.v4 .v4-btn-primary { box-shadow: 0 8px 24px rgba(0, 230, 118, 0.3); position: relative; overflow: hidden; z-index: 1; }
.v4 .v4-btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-emerald-iris);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}
.v4 .v4-btn-primary:hover { color: white !important; box-shadow: 0 16px 40px rgba(124, 92, 255, 0.4); }
.v4 .v4-btn-primary:hover::after { opacity: 1; }

.v4 .v4-btn-iris {
    background: var(--iris);
    color: white !important;
    box-shadow: 0 8px 24px rgba(124, 92, 255, 0.3);
}
.v4 .v4-btn-iris:hover {
    background: var(--iris-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(124, 92, 255, 0.5);
}

/* ============================================================
   HERO V5 — Blob shapes + Glow + Animations cascade
   ============================================================ */

.v4-hero { position: relative; overflow: hidden; padding: 80px 0 100px; }

/* Blobs animés en arrière-plan */
.v4-hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}
.v4-hero-blob-1 {
    top: -100px; right: -50px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.4) 0%, transparent 70%);
    animation: v4-blob-1 18s ease-in-out infinite;
}
.v4-hero-blob-2 {
    top: 200px; right: 200px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.3) 0%, transparent 70%);
    animation: v4-blob-2 22s ease-in-out infinite;
}
.v4-hero-blob-3 {
    bottom: -100px; left: -50px;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
    animation: v4-blob-3 25s ease-in-out infinite;
}
@keyframes v4-blob-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 30px) scale(1.1); }
    66% { transform: translate(20px, -20px) scale(0.95); }
}
@keyframes v4-blob-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -40px) scale(1.15); }
}
@keyframes v4-blob-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, -30px) scale(1.1); }
}

.v4-hero-inner { position: relative; z-index: 2; }

.v4-hero h1 .accent {
    position: relative;
    display: inline-block;
    color: var(--emerald-dark);
}
.v4-hero h1 .accent::before {
    content: '';
    position: absolute;
    inset: -10px -20px;
    background: radial-gradient(ellipse, rgba(0, 230, 118, 0.35) 0%, transparent 70%);
    filter: blur(20px);
    z-index: -1;
}
.v4-hero h1 .accent::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%; height: 12px;
    background: var(--emerald);
    opacity: 0.3;
    border-radius: 100px;
    z-index: -1;
    transform-origin: left;
    animation: v4-underline-draw 1.5s 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
@keyframes v4-underline-draw {
    from { transform: scaleX(0); opacity: 0; }
    to { transform: scaleX(1); opacity: 0.3; }
}

/* Checks Hero - apparition cascade */
.v4 .v4-hero-check {
    opacity: 0;
    animation: v4-slide-in-left 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.v4 .v4-hero-check:nth-child(1) { animation-delay: 0.3s; }
.v4 .v4-hero-check:nth-child(2) { animation-delay: 0.4s; }
.v4 .v4-hero-check:nth-child(3) { animation-delay: 0.5s; }
.v4 .v4-hero-check:nth-child(4) { animation-delay: 0.6s; }
@keyframes v4-slide-in-left {
    from { opacity: 0; transform: translateX(-15px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Hero visual avec perspective */
.v4-hero-visual {
    position: relative;
    perspective: 2000px;
    animation: v4-hero-card-in 1s 0.2s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    z-index: 2;
}
@keyframes v4-hero-card-in {
    from { opacity: 0; transform: translateY(40px) rotateX(-10deg); }
    to { opacity: 1; transform: translateY(0) rotateX(0); }
}

/* Cartes flottantes - animation pulse */
.v4 .v4-floating {
    opacity: 0;
    animation: v4-float-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    z-index: 3;
}
.v4 .v4-floating-1 { animation-delay: 1.8s; top: -24px; left: -36px; }
.v4 .v4-floating-2 { animation-delay: 2.2s; bottom: -24px; right: -24px; }
@keyframes v4-float-in {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.v4 .v4-floating::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    animation: v4-floating-pulse 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes v4-floating-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
    50% { box-shadow: 0 0 0 12px rgba(0, 230, 118, 0.1); }
}

/* Icone iris pour carte flottante IA */
.v4 .v4-floating-icon-iris {
    background: var(--iris-soft);
    color: var(--iris);
}

/* ============================================================
   MOCK APP MULTI-SITES (Hero + Tab Plannings)
   ============================================================ */

.v4 .v4-mock-app {
    background: #FAFBFC;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--pearl);
    overflow: hidden;
    width: 100%;
    max-width: 580px;
    position: relative;
    z-index: 2;
}
.v4 .v4-mock-app-header {
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid var(--pearl);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.v4 .v4-mock-app-title strong {
    display: block;
    color: var(--midnight);
    font-weight: 700;
    font-size: 14px;
}
.v4 .v4-mock-app-title span {
    color: var(--text-light);
    font-size: 11px;
}
.v4 .v4-mock-app-filters {
    display: flex;
    gap: 4px;
    padding: 10px 16px;
    background: white;
    border-bottom: 1px solid var(--pearl);
    flex-wrap: wrap;
}
.v4 .v4-mock-pill {
    padding: 5px 11px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--pearl);
    color: var(--text-muted);
    background: white;
    white-space: nowrap;
}
.v4 .v4-mock-pill.active-green {
    background: var(--emerald-soft);
    color: var(--emerald-dark);
    border-color: rgba(0, 230, 118, 0.3);
}
.v4 .v4-mock-pill.active-dark {
    background: var(--midnight);
    color: white;
    border-color: var(--midnight);
}
.v4 .v4-mock-pill.iris {
    background: linear-gradient(135deg, var(--iris) 0%, var(--iris-dark) 100%);
    color: white;
    border-color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(124, 92, 255, 0.3);
}
.v4 .v4-mock-pill.iris::before { content: '✨'; font-size: 10px; }

.v4 .v4-mock-app-week-nav {
    padding: 10px 16px;
    background: var(--offwhite);
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--midnight);
    border-bottom: 1px solid var(--pearl);
}

.v4 .v4-mock-app-grid {
    display: grid;
    grid-template-columns: 90px repeat(6, 1fr);
    background: white;
    font-size: 9px;
}
.v4 .v4-mock-grid-cell {
    padding: 6px;
    border-right: 1px solid var(--pearl);
    border-bottom: 1px solid var(--pearl);
    min-height: 36px;
    position: relative;
}
.v4 .v4-mock-grid-cell:nth-child(7n) { border-right: none; }
.v4 .v4-mock-grid-cell.head {
    background: var(--offwhite);
    text-align: center;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 9px;
    padding: 8px 4px;
    min-height: auto;
}
.v4 .v4-mock-grid-cell.head strong {
    display: block;
    color: var(--midnight);
    font-size: 13px;
    margin-top: 2px;
}
.v4 .v4-mock-grid-cell.head.today { background: var(--emerald-soft); }
.v4 .v4-mock-grid-cell.head.today strong { color: var(--emerald-dark); }
.v4 .v4-mock-grid-cell.site {
    background: white;
    font-weight: 700;
    color: var(--midnight);
    font-size: 10px;
    padding: 10px 8px;
    text-align: left;
    line-height: 1.3;
}
.v4 .v4-mock-grid-cell.site span {
    display: block;
    font-weight: 500;
    color: var(--text-light);
    font-size: 9px;
    margin-top: 2px;
}

.v4 .v4-mock-shift {
    padding: 4px 5px;
    border-radius: 5px;
    margin-bottom: 3px;
    font-size: 9px;
    line-height: 1.3;
    border-left: 3px solid;
}
.v4 .v4-mock-shift strong {
    display: block;
    font-weight: 700;
    margin-bottom: 1px;
    color: var(--midnight);
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.v4 .v4-mock-shift span {
    color: var(--text-muted);
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 8px;
    font-weight: 600;
}
.v4 .v4-mock-shift.sm { background: #FDF2F8; border-left-color: #F472B6; }
.v4 .v4-mock-shift.tl { background: #EFF6FF; border-left-color: #38BDF8; }
.v4 .v4-mock-shift.cd { background: #ECFDF5; border-left-color: #34D399; }
.v4 .v4-mock-shift.jg { background: #FFF7ED; border-left-color: #FB923C; }
.v4 .v4-mock-shift.eb { background: #FEF3C7; border-left-color: #FBBF24; }
.v4 .v4-mock-shift.ar { background: #F3F0FF; border-left-color: #7C5CFF; }

.v4 .v4-mock-shift-add {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    border: 1px dashed var(--pearl);
    border-radius: 4px;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 300;
    margin-top: 2px;
    opacity: 0.6;
}

/* === VARIANTE COMPACTE pour le HERO === */
.v4 .v4-mock-app.compact {
    transform: rotateY(-6deg) rotateX(3deg);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-xl);
}
.v4 .v4-mock-app.compact:hover {
    transform: rotateY(-3deg) rotateX(1deg);
}
.v4 .v4-mock-app.compact .v4-mock-app-grid {
    grid-template-columns: 70px repeat(5, 1fr);
    font-size: 8px;
}
.v4 .v4-mock-app.compact .v4-mock-grid-cell {
    padding: 5px;
    min-height: 32px;
}
.v4 .v4-mock-app.compact .v4-mock-grid-cell:nth-child(7n) { border-right: 1px solid var(--pearl); }
.v4 .v4-mock-app.compact .v4-mock-grid-cell:nth-child(6n) { border-right: none; }
.v4 .v4-mock-app.compact .v4-mock-grid-cell.head strong { font-size: 11px; }
.v4 .v4-mock-app.compact .v4-mock-grid-cell.site {
    padding: 8px 6px;
    font-size: 9px;
}
.v4 .v4-mock-app.compact .v4-mock-grid-cell.site span { font-size: 8px; }
.v4 .v4-mock-app.compact .v4-mock-shift {
    padding: 3px 4px;
    margin-bottom: 2px;
}
.v4 .v4-mock-app.compact .v4-mock-shift strong { font-size: 8px; }
.v4 .v4-mock-app.compact .v4-mock-shift span { font-size: 7px; }
.v4 .v4-mock-app.compact .v4-mock-app-header { padding: 9px 14px; }
.v4 .v4-mock-app.compact .v4-mock-app-title strong { font-size: 12px; }
.v4 .v4-mock-app.compact .v4-mock-app-title span { font-size: 10px; }
.v4 .v4-mock-app.compact .v4-mock-app-filters { padding: 7px 14px; gap: 3px; }
.v4 .v4-mock-app.compact .v4-mock-pill { padding: 3px 8px; font-size: 9px; }
.v4 .v4-mock-app.compact .v4-mock-app-week-nav { padding: 7px 14px; font-size: 10px; }
.v4 .v4-mock-app.compact .v4-mock-shift-add { height: 14px; font-size: 10px; }

/* ============================================================
   SECTORS - Hover 3D + Gradient
   ============================================================ */
.v4 .v4-sector-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    perspective: 1000px;
}
.v4 .v4-sector-card::before {
    background: var(--grad-emerald-iris);
}
.v4 .v4-sector-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    background: var(--grad-emerald-iris);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    filter: blur(20px);
}
.v4 .v4-sector-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    border-color: transparent;
}
.v4 .v4-sector-card:hover::after { opacity: 0.4; }
.v4 .v4-sector-card:hover .v4-sector-icon {
    background: var(--grad-emerald-iris);
    color: white;
    transform: scale(1.05) rotate(-5deg);
}
.v4 .v4-sector-card:hover .v4-sector-link { color: var(--iris); }

/* ============================================================
   IA SECTION - Fond marine-iris + Démo IA Live
   ============================================================ */

.v4 .v4-ia-section {
    background: linear-gradient(135deg, #0F1A2E 0%, #2D1B69 50%, #4A1A78 100%);
    position: relative;
    overflow: hidden;
}
.v4 .v4-ia-section::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.4) 0%, transparent 70%);
    pointer-events: none;
    animation: v4-blob-1 25s ease-in-out infinite;
    z-index: 0;
}
.v4 .v4-ia-section::after {
    content: '';
    position: absolute;
    bottom: -150px; left: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.2) 0%, transparent 70%);
    pointer-events: none;
    animation: v4-blob-2 30s ease-in-out infinite;
    z-index: 0;
}
.v4 .v4-ia-inner { position: relative; z-index: 2; }

.v4 .v4-ia-section .v4-section-eyebrow {
    color: var(--emerald);
    background: rgba(0, 230, 118, 0.15);
    padding: 6px 14px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.1em;
}
.v4 .v4-ia-section .v4-section-eyebrow::before { content: '✨'; font-size: 14px; }
.v4 .v4-ia-section h2 .serif {
    background: var(--grad-emerald-iris);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.v4 .v4-ia-feature-icon {
    background: rgba(124, 92, 255, 0.2);
    border: 1px solid rgba(124, 92, 255, 0.3);
    color: white;
}

/* === DEMO IA LIVE - Composant signature === */
.v4 .v4-ia-demo {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.v4 .v4-ia-demo-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: var(--emerald);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    background: rgba(0, 230, 118, 0.15);
    border-radius: 100px;
    margin-bottom: 14px;
}
.v4 .v4-ia-demo-label::before { content: '✨'; }
.v4 .v4-ia-demo h3 { color: white; font-size: 18px; margin-bottom: 16px; font-weight: 700; }
.v4 .v4-ia-demo-prompt {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 14px 18px;
    color: white;
    font-size: 14px;
    margin-bottom: 16px;
    font-style: italic;
}
.v4 .v4-ia-demo-btn {
    width: 100%;
    background: var(--grad-emerald-iris);
    color: white;
    padding: 14px 24px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(124, 92, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.v4 .v4-ia-demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(124, 92, 255, 0.6);
}
.v4 .v4-ia-demo-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.v4 .v4-ia-demo-loading {
    display: none;
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}
.v4 .v4-ia-demo-loading.active { display: block; }
.v4 .v4-ia-demo-dots {
    display: inline-flex;
    gap: 6px;
    margin-bottom: 8px;
}
.v4 .v4-ia-demo-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--iris);
    animation: v4-dots-bounce 1.4s ease-in-out infinite;
    box-shadow: 0 0 12px var(--iris);
}
.v4 .v4-ia-demo-dots span:nth-child(2) { animation-delay: 0.2s; }
.v4 .v4-ia-demo-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes v4-dots-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1.2); opacity: 1; }
}

.v4 .v4-ia-demo-result { display: none; }
.v4 .v4-ia-demo-result.active { display: block; animation: v4-fade-up 0.5s ease forwards; }
@keyframes v4-fade-up {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.v4 .v4-ia-demo-result-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px;
    color: var(--midnight);
}
.v4 .v4-ia-demo-result-days {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin-bottom: 10px;
    font-size: 9px;
    color: var(--text-light);
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
}
.v4 .v4-ia-demo-result-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}
.v4 .v4-ia-demo-result-cell {
    padding: 6px 4px;
    border-radius: 6px;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: white;
    opacity: 0;
}
.v4 .v4-ia-demo-result-cell.shift {
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
}
.v4 .v4-ia-demo-result-cell.shift-iris {
    background: linear-gradient(135deg, var(--iris) 0%, var(--iris-dark) 100%);
}
.v4 .v4-ia-demo-result-cell.empty { background: var(--pearl-soft); color: var(--text-light); }

@keyframes v4-shift-in {
    from { opacity: 0; transform: scale(0.7) translateY(-5px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.v4 .v4-ia-demo-bubble {
    background: rgba(0, 230, 118, 0.15);
    border: 1px solid rgba(0, 230, 118, 0.3);
    border-radius: 12px;
    padding: 12px 14px;
    color: white;
    font-size: 13px;
    margin-top: 14px;
    opacity: 0;
    animation: v4-fade-up 0.5s 2s ease forwards;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.v4 .v4-ia-demo-bubble::before { content: '✨'; flex-shrink: 0; }
.v4 .v4-ia-demo-reset {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-top: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    display: none;
    border: none;
}
.v4 .v4-ia-demo-reset.active { display: inline-block; }
.v4 .v4-ia-demo-reset:hover { color: white; }

/* ============================================================
   FAQ V5 - Boutons +/- propres
   ============================================================ */
.v4 .v4-faq-question::after {
    content: '+';
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--offwhite);
    color: var(--midnight);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 300;
    transition: all 0.3s ease;
    border: none;
    margin: 0;
}
.v4 .v4-faq-item[open] .v4-faq-question::after {
    content: '−';
    background: var(--emerald);
    color: var(--midnight);
    transform: rotate(180deg);
}

/* ============================================================
   FINAL CTA - Dégradé emerald → iris
   ============================================================ */
.v4 .v4-final-cta-inner {
    background: linear-gradient(135deg, var(--emerald) 0%, var(--iris) 100%) !important;
    box-shadow: 0 30px 80px rgba(124, 92, 255, 0.3);
}
.v4 .v4-final-cta-inner::before {
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.25), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 122, 0.3), transparent 50%) !important;
}

/* ============================================================
   SCROLL REVEAL (animations à l'apparition)
   ============================================================ */
.v4 .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.v4 .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.v4 .reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.v4 .reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.v4 .reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.v4 .reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.v4 .reveal-stagger.visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.v4 .reveal-stagger.visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }

/* ============================================================
   PALETTE AVATARS (Sophie / Thomas / Camille / Julien / Emma / Antoine)
   ============================================================ */
.v4 .v4-avatar-sm { background: linear-gradient(135deg, #F472B6, #BE185D); }
.v4 .v4-avatar-tl { background: linear-gradient(135deg, #38BDF8, #1E40AF); }
.v4 .v4-avatar-cd { background: linear-gradient(135deg, #34D399, #047857); }
.v4 .v4-avatar-jg { background: linear-gradient(135deg, #FB923C, #C2410C); }
.v4 .v4-avatar-eb { background: linear-gradient(135deg, #FBBF24, #B45309); }
.v4 .v4-avatar-ar { background: linear-gradient(135deg, #7C5CFF, #4C1D95); }

/* Override v4-floating icon iris pour matcher la nouvelle palette */
.v4 .v4-floating-icon[data-color="iris"] {
    background: var(--iris-soft);
    color: var(--iris);
}

/* Responsive overrides */
@media (max-width: 960px) {
    .v4 .v4-mock-app.compact { transform: none; }
    .v4 .v4-hero-blob-1, .v4 .v4-hero-blob-2, .v4 .v4-hero-blob-3 { opacity: 0.5; }
}

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

/* ============================================================
   FIN SPRINT 3.5
   ============================================================ */

/* ============================================================
   ============================================================
   PERFORMANCE FIX (V5.3) — Optimisation GPU et CPU
   Le combo backdrop-filter + filter:blur + animations infinies
   plombe les ordis modestes. On allege sans rien casser visuellement.
   ============================================================
   ============================================================ */

/* ===== 1. Grain noise plus leger ===== */
body::before {
    opacity: 0.2;
    /* Use background-attachment: fixed au lieu de position: fixed */
    /* pour limiter les repaints */
}
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
    body::before {
        display: none;
    }
}

/* ===== 2. Blobs hero : moins de blur + animation plus lente + GPU only ===== */
.v4-hero-blob {
    filter: blur(50px);
    will-change: transform;
    /* GPU compositing : force le layer separe */
    transform: translateZ(0);
    /* Reduit la zone de repaint */
    contain: layout style paint;
}
.v4-hero-blob-1 {
    animation-duration: 30s; /* etait 18s */
}
.v4-hero-blob-2 {
    animation-duration: 35s; /* etait 22s */
}
.v4-hero-blob-3 {
    animation-duration: 40s; /* etait 25s */
}

/* ===== 3. Sur mobile/tablette : on coupe les blobs (gros gain perf) ===== */
@media (max-width: 960px) {
    .v4-hero-blob {
        display: none !important;
    }
    /* IA section : blobs aussi coupes */
    .v4-ia-section::before,
    .v4-ia-section::after {
        display: none !important;
    }
}

/* ===== 4. Backdrop-filter : simplifie ===== */
.vitrine-header {
    backdrop-filter: blur(12px); /* etait 20px */
    -webkit-backdrop-filter: blur(12px);
}
/* Sur mobile/tablette : pas de backdrop-filter du tout (gros gain) */
@media (max-width: 768px) {
    .vitrine-header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.98) !important;
    }
}

/* ===== 5. Demo IA : backdrop-filter retire (lourd) ===== */
.v4-ia-demo {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

/* ===== 6. Mock IA dans tab : pareil ===== */
.v4-mock-ia {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* ===== 7. Content-visibility pour les sections sous la fold ===== */
/* Le navigateur skipped le rendering des sections pas encore visibles */
/* (technique utilisee par Linear, Vercel, Stripe) */
.v4-trustbar,
.v4-section.alt,
.v4-ia-section,
.v4-final-cta-inner {
    content-visibility: auto;
    contain-intrinsic-size: 1px 600px;
}

/* ===== 8. Mockup hero card : reduit le will-change permanent ===== */
.v4-mock-app.compact {
    contain: layout style;
    /* Pas de will-change permanent, juste au hover */
}
.v4-mock-app.compact:hover {
    will-change: transform;
}

/* ===== 9. Reduit les animations de cascade au load ===== */
/* On garde la cascade mais on accélère (1.55s -> 0.8s total) */
.v4 .planning-shift {
    animation-duration: 0.3s !important;
}

/* ===== 10. Cartes flottantes : pulse moins frequent ===== */
.v4 .v4-floating::after {
    animation-duration: 5s !important; /* etait 3s */
}

/* ===== 11. Avatars : pas de transition au repos ===== */
.v4 .v4-avatar,
.v4 .v4-mock-row-avatar,
.v4 .v4-mock-conge-avatar {
    transition: none;
}

/* ===== 12. Smooth scroll : peut etre coute (laissé mais ok) ===== */
/* On le coupe sur mobile */
@media (max-width: 768px) {
    html { scroll-behavior: auto; }
}

/* ===== 13. Force GPU pour les transforms-heavy ===== */
.v4-sector-card,
.v4-trust-item,
.v4-plan-card,
.v4-hero-card,
.v4-mock-app {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ===== 14. prefers-reduced-motion : on coupe TOUTES les animations ===== */
@media (prefers-reduced-motion: reduce) {
    .v4 *, .v4 *::before, .v4 *::after {
        animation: none !important;
        transition: none !important;
    }
    .v4-hero-blob { display: none !important; }
    body::before { display: none !important; }
}

/* ===== 15. Tab visual : limiter la zone de paint ===== */
.v4 .v4-tab-visual {
    contain: layout style paint;
}

/* ============================================================
   FIN PERF FIX V5.3
   ============================================================ */

/* ============================================================
   ============================================================
   PERFORMANCE RADICAL (V5.4) — Mode "sobre fluide"
   On coupe les animations infinies qui plombent le GPU en continu.
   Le design reste 100% beau mais beaucoup plus fluide.
   ============================================================
   ============================================================ */

/* ===== 1. BLOBS : on les rend statiques (PLUS GROS GAIN) ===== */
/* Animations infinies en boucle = 60 repaints/seconde, c'est ca qui tue */
.v4-hero-blob,
.v4-hero-blob-1,
.v4-hero-blob-2,
.v4-hero-blob-3 {
    animation: none !important;
    transition: none !important;
}

/* Les blobs restent visibles mais ne bougent plus -> ZERO repaint */

/* ===== 2. IA SECTION : meme traitement ===== */
.v4-ia-section::before,
.v4-ia-section::after {
    animation: none !important;
}

/* ===== 3. GRAIN NOISE : on le supprime totalement ===== */
/* C'etait un SVG en position:fixed -> repaint a chaque scroll */
body::before {
    display: none !important;
}

/* ===== 4. BACKDROP-FILTER : on le retire partout ===== */
/* Le backdrop-filter sur du contenu qui scrolle = catastrophe perf */
.vitrine-header,
.v4-ia-demo,
.v4-mock-ia,
.v4-floating {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
/* On compense avec un fond plus opaque pour garder la lisibilite */
.vitrine-header {
    background: rgba(255, 255, 255, 0.96) !important;
}
.v4-ia-demo {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* ===== 5. ANIMATIONS POULSE QUI TOURNENT EN BOUCLE : OFF ===== */
/* Le badge "3 a valider" qui pulse, les cartes flottantes qui pulsent, etc */
.v4-conges-badge,
.v4-mock-conges-header .v4-conges-badge,
.v4-floating::after,
.v4 .v4-eyebrow.eyebrow-iris::before,
.v4-mock-clock-status::before,
.v4-mock-add-btn {
    animation: none !important;
}

/* ===== 6. CASCADE HERO : on garde le fade-in mais SANS infinite ===== */
/* Les .planning-shift apparaissent une seule fois puis figees */
.v4 .planning-shift,
.v4-hero-check,
.v4-floating {
    /* L'animation se joue une seule fois (forwards), pas en boucle */
    animation-iteration-count: 1 !important;
    animation-fill-mode: forwards !important;
}

/* ===== 7. underline-draw : un seul passage ===== */
.v4-hero h1 .accent::after {
    animation-iteration-count: 1 !important;
    animation-fill-mode: forwards !important;
}

/* ===== 8. TRANSITIONS HOVER : on les garde (instantané au hover, pas en boucle) ===== */
/* Ne pas toucher aux :hover qui sont du transition (declenches seulement au clic/survol) */

/* ===== 9. Demo IA dots qui pulsent : on garde (uniquement quand demo lancée) ===== */
/* Les dots ne tournent que pendant 1.5s puis disparaissent, c'est OK */

/* ===== 10. CONTENT-VISIBILITY etendu : sections sous la fold ===== */
.v4 .v4-section,
.v4 .v4-ia-section,
.v4 .v4-final-cta {
    content-visibility: auto;
    contain-intrinsic-size: 1px 800px;
}

/* ===== 11. Reveal animations : on les desactive si JS lent ===== */
/* La classe .visible est ajoutée par JS, on garde mais avec une transition tres courte */
.v4 .reveal,
.v4 .reveal-stagger > * {
    transition-duration: 0.4s !important;
}

/* ===== 12. Mockup compact hover 3D : retire (deja gros) ===== */
.v4-mock-app.compact {
    transition: none !important; /* pas de transition au hover, OK */
}

/* ===== 13. Force ZERO blur sur les blobs (test) ===== */
/* Si meme statiques ils plombent, on reduit encore le blur */
.v4-hero-blob {
    filter: blur(40px); /* etait 50px */
}

/* ============================================================
   FIN PERF RADICAL V5.4
   Le site reste beau mais beaucoup plus fluide
   ============================================================ */
