/* Page d'accueil publique — thème clair */
.home {
    --ink: #0f172a; --text: #334155; --muted: #64748b; --line: #e2e8f0;
    --bg: #ffffff; --soft: #f5f8fc; --brand: #0d9488; --brand-dark: #0f766e; --accent: #f59e0b;
    background: var(--bg); color: var(--text);
}
.home-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.home h1, .home h2, .home h3 { display: block; color: var(--ink); letter-spacing: -.015em; }
.home a { color: var(--brand-dark); }

/* Boutons (remplacent le style sombre du dashboard) */
.home .btn { background: var(--brand); color: #fff; text-decoration: none; border: 1px solid var(--brand); box-shadow: 0 6px 16px -8px rgba(13, 148, 136, .7); }
.home .btn:hover { background: var(--brand-dark); }
.home .btn-ghost { background: #fff; color: var(--ink); border-color: #cbd5e1; box-shadow: none; }
.home .btn-ghost:hover { background: var(--soft); }
.home .btn-white { background: #fff; color: var(--brand-dark); border-color: #fff; }
.home .btn-light { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); color: #fff; box-shadow: none; }
.btn-big { padding: 14px 24px; font-size: 1.02rem; }

/* En-tête */
.home-nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.home-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.home-nav nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.home-nav nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.home-nav nav a:hover { color: var(--brand-dark); }
.home-nav nav a.btn { color: #fff; margin: 0; }
.home-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink) !important; text-decoration: none; letter-spacing: .02em; }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; background: conic-gradient(from 210deg, #14b8a6, #0ea5e9, #6366f1, #f59e0b, #14b8a6); }
.logo-mark.small { width: 20px; height: 20px; border-radius: 6px; }

/* Bandeau principal */
.hero { padding: 76px 0 70px; background:
    radial-gradient(700px 360px at 90% 10%, rgba(20, 184, 166, .14), transparent 70%),
    radial-gradient(600px 320px at 5% 90%, rgba(245, 158, 11, .10), transparent 70%),
    linear-gradient(180deg, #f8fbff, #ffffff); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #ecfdf5; color: var(--brand-dark); border: 1px solid #a7f3d0; font-weight: 700; font-size: .82rem; padding: 6px 12px; border-radius: 999px; margin: 0 0 18px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .2); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08; margin: 0 0 18px; }
.hl { color: var(--brand); }
.lead { font-size: 1.14rem; color: var(--text); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 20px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: .94rem; }
.hero-points li::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 7px; }

.mock { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 30px 60px -24px rgba(15, 23, 42, .28), 0 0 0 6px rgba(13, 148, 136, .05); }
.mock-head { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.mock-head span { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.mock-head b { margin-left: auto; font-size: .8rem; color: var(--muted); letter-spacing: .06em; }
.mock-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 13px; background: var(--soft); border-radius: 10px; margin-bottom: 10px; }
.mock-row b { font-weight: 600; color: var(--ink); }
.mock-row i, .dash-list i { font-style: normal; font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.ok { background: #dcfce7; color: #15803d; }
.warn { background: #fee2e2; color: #b91c1c; }
.mock-bars { display: grid; gap: 9px; margin: 4px 0 12px; }
.mock-bars div { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 10px; }
.mock-bars em { font-style: normal; color: var(--muted); font-size: .8rem; }
.mock-bars s { display: block; height: 8px; border-radius: 99px; background: #eef2f7; overflow: hidden; }
.mock-bars u { display: block; height: 100%; border-radius: 99px; }
.anim-cpu { background: linear-gradient(90deg, #14b8a6, #10b981); width: 37%; animation: cpu 6s ease-in-out infinite; }
.anim-ram { background: linear-gradient(90deg, #6366f1, #0ea5e9); width: 62%; animation: ram 9s ease-in-out infinite; }
@keyframes cpu { 0%, 100% { width: 37%; } 30% { width: 58%; } 60% { width: 24%; } }
@keyframes ram { 0%, 100% { width: 62%; } 50% { width: 70%; } }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.mock-stats div { background: var(--soft); border-radius: 10px; padding: 10px; text-align: center; }
.mock-stats strong { display: block; font-size: 1.3rem; color: var(--ink); }
.mock-stats small { color: var(--muted); }

/* Chiffres clés */
.stats-band { background: var(--ink); color: #e2e8f0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 30px; padding-bottom: 30px; text-align: center; }
.stats-grid strong { display: block; font-size: 2rem; font-weight: 800; color: #fff; }
.stats-grid span { color: #94a3b8; font-size: .92rem; }

/* Sections */
.home-section { padding: 76px 0; }
.home-section h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 12px; }
.section-kicker { color: var(--brand); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin: 0 0 8px; }
.section-lead { color: var(--muted); margin: 0 0 30px; max-width: 640px; font-size: 1.05rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.features article { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; transition: transform .2s, box-shadow .2s; }
.features article:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -22px rgba(15, 23, 42, .35); }
.features h3 { margin: 14px 0 8px; font-size: 1.1rem; }
.features p { color: var(--muted); margin: 0; }

.ico { display: inline-block; width: 44px; height: 44px; border-radius: 12px; background: #ccfbf1; position: relative; }
.ico::after { content: ""; position: absolute; inset: 10px; background: var(--brand-dark); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ico-lock { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); }
.ico-pulse { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 12h4l3-8 4 16 3-8h4'/%3E%3C/svg%3E"); }
.ico-key { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M11 12l9-9M17 6l3 3M15 8l2 2'/%3E%3C/svg%3E"); }
.ico-ticket { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 8a2 2 0 0 0 0 4v4h18v-4a2 2 0 0 1 0-4V4H3z'/%3E%3Cpath d='M13 4v16' stroke-dasharray='2 2'/%3E%3C/svg%3E"); }
.ico-users { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3 20c0-3 3-5 6-5s6 2 6 5M16 5a3 3 0 0 1 0 6M18 15c2 .5 3 2 3 5'/%3E%3C/svg%3E"); }
.ico-power { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3v9'/%3E%3Cpath d='M6.3 7.3a8 8 0 1 0 11.4 0'/%3E%3C/svg%3E"); }

/* Aperçu du tableau de bord */
.preview-section { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.preview-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { padding-left: 32px; position: relative; color: var(--ink); font-weight: 500; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 50%; background: #ccfbf1; color: var(--brand-dark); display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.dash { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 30px 60px -28px rgba(15, 23, 42, .35); }
.dash-top { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.dash-top b { color: var(--ink); }
.dash-top i { margin-left: auto; font-style: normal; color: var(--muted); font-size: .85rem; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.dash-kpis div { background: var(--soft); border-radius: 12px; padding: 12px; }
.dash-kpis small { display: block; color: var(--muted); font-size: .78rem; }
.dash-kpis strong { font-size: 1.45rem; color: var(--ink); }
.dash-kpis strong.g { color: #059669; }
.dash-chart { border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 6px; margin-bottom: 14px; }
.dash-chart-head { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 6px; }
.dash-chart-head b { color: var(--ink); }
.dash-chart-head span { color: var(--muted); }
.dash-chart svg { width: 100%; height: 90px; display: block; }
.line-cpu { stroke: #14b8a6; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s ease-out forwards; }
.line-ram { stroke: #6366f1; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s .4s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dash-list div { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--line); }
.dash-list b { color: var(--ink); font-weight: 600; }
.dash-list span { color: var(--muted); font-size: .85rem; }

/* Étapes */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 24px 24px 76px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps strong { display: block; color: var(--ink); margin-bottom: 6px; }
.steps span { color: var(--muted); }

/* Pays */
.countries-section { background: linear-gradient(180deg, #fffbeb, #ffffff); border-top: 1px solid #fde68a; }
.countries { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.countries li { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-weight: 600; color: var(--ink); }
.countries li.more { justify-content: center; color: var(--muted); font-weight: 500; border-style: dashed; }
.flag { width: 36px; height: 24px; border-radius: 4px; flex: none; box-shadow: 0 0 0 1px rgba(15, 23, 42, .12); }

/* Tarifs */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.price-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.price-card h3 { margin: 0; font-size: 1.1rem; }
.price-card .price { font-size: 2rem; font-weight: 800; color: var(--ink); margin: 8px 0 0; }
.price-card .price small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.price-card .per { margin: 0 0 8px; color: var(--muted); font-size: .88rem; }
.price-list { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; gap: 8px; color: var(--text); font-size: .94rem; }
.price-list li::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 8px; }
.price-card .btn { margin-top: auto; text-align: center; }
.price-card.featured { border: 2px solid var(--brand); box-shadow: 0 24px 48px -28px rgba(13, 148, 136, .6); }
.ribbon { position: absolute; top: -13px; left: 22px; background: var(--accent); color: #451a03; font-weight: 800; font-size: .75rem; padding: 5px 12px; border-radius: 999px; }

/* Appel à l'action + pied de page */
.cta-box { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: linear-gradient(120deg, #0d9488, #0e7490); border-radius: 22px; padding: 38px; }
.cta-box h2, .cta-box p { color: #fff; }
.cta-box p { margin: 0; opacity: .9; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.home-footer { border-top: 1px solid var(--line); padding: 30px 0 44px; color: var(--muted); font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-inner p { margin: 0; text-align: right; }

@media (prefers-reduced-motion: reduce) {
    .anim-cpu, .anim-ram { animation: none; }
    .line-cpu, .line-ram { animation: none; stroke-dashoffset: 0; }
    .features article { transition: none; }
}
@media (max-width: 960px) {
    .hero-grid, .preview-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 480px; }
    .features, .steps { grid-template-columns: 1fr 1fr; }
    .pricing, .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .hero { padding-top: 40px; }
    .features, .steps, .pricing { grid-template-columns: 1fr; }
    .home-nav nav a:not(.btn):not(.nav-login) { display: none; }
    .dash-kpis { grid-template-columns: 1fr 1fr; }
    .footer-inner p { text-align: left; }
}
