/* =========================================================
   HoDigit – site vitrine
   Couleurs reprises du manager (indigo / violet / cyan)
   ========================================================= */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/poppins-latin-800-normal.woff2') format('woff2'); }

:root {
    --ink: #0b1020;
    --ink-2: #1e2440;
    --muted: #5b6275;
    --line: rgba(15, 23, 42, .08);
    --bg: #ffffff;
    --bg-soft: #f5f5fb;
    --accent: #4f46e5;
    --accent-2: #7c3aed;
    --cyan: #06b6d4;
    --orange: #f97316;
    --teal: #0f766e;
    --rose: #e11d48;
    --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --radius: 20px;
    --shadow-1: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
    --shadow-2: 0 2px 4px rgba(15, 23, 42, .04), 0 30px 60px rgba(15, 23, 42, .14);
    --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
[data-lucide] { width: 18px; height: 18px; stroke-width: 2; flex-shrink: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 14px; border: 1px solid transparent;
    font: 600 15px/1 'Poppins', sans-serif; white-space: nowrap; cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-lg { padding: 15px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 8px 20px rgba(11, 16, 32, .22); }
.btn-primary:hover { background: var(--accent); box-shadow: 0 10px 26px rgba(79, 70, 229, .35); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-1); }
.btn-ghost { color: var(--ink-2); background: transparent; }
.btn-ghost:hover { background: var(--bg-soft); }

/* ---------- En-tête ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(15, 23, 42, .05); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.nav-logo img { height: 42px; width: auto; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle [data-lucide] { width: 26px; height: 26px; }
.mobile-nav { display: flex; flex-direction: column; padding: 8px 24px 20px; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 12px 0; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-nav a.btn { margin-top: 14px; border: 0; color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(600px 400px at 85% 10%, rgba(124, 58, 237, .14), transparent 70%),
        radial-gradient(500px 380px at 10% 90%, rgba(6, 182, 212, .12), transparent 70%),
        linear-gradient(180deg, #fbfbff 0%, #f3f2fd 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1);
    font-size: 13px; font-weight: 600; color: var(--accent);
}
.hero h1 { margin-top: 22px; font-size: clamp(36px, 4.6vw, 58px); font-weight: 800; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 22px; font-size: 18px; color: var(--muted); max-width: 560px; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points [data-lucide] { color: #10b981; }

.hero-visual { position: relative; }
.browser { border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f4f4f8; border-bottom: 1px solid var(--line); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d9d9e3; }
.browser-bar span:nth-child(1) { background: #ff6058; }
.browser-bar span:nth-child(2) { background: #ffbd2e; }
.browser-bar span:nth-child(3) { background: #28c840; }
.browser-bar em { margin-left: 12px; font-style: normal; font-size: 12px; color: var(--muted); background: #fff; padding: 3px 12px; border-radius: 8px; }
.hero-visual .browser { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); }
.float-card {
    position: absolute; left: -48px; bottom: -40px; width: 52%;
    border-radius: 16px; overflow: hidden; background: #fff;
    border: 1px solid var(--line); box-shadow: var(--shadow-2);
    animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Bandeau ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-grid > div { display: flex; align-items: center; gap: 14px; padding: 26px 20px; font-size: 14px; font-weight: 500; color: var(--ink-2); line-height: 1.4; }
.strip-grid > div + div { border-left: 1px solid var(--line); }
.strip-grid [data-lucide] { width: 26px; height: 26px; color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { margin-top: 12px; font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; }
.section-head p { margin-top: 16px; font-size: 17px; color: var(--muted); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.eyebrow-light { color: #a5b4fc; }

/* ---------- Fonctionnalités ---------- */
.features { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.feature {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
    box-shadow: var(--shadow-1); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.feature h3 { margin-top: 18px; font-size: 17px; font-weight: 700; }
.feature p { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.ico { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; color: #fff; }
.ico [data-lucide] { width: 22px; height: 22px; }
.ico-violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.ico-indigo { background: linear-gradient(135deg, #6366f1, #4338ca); }
.ico-cyan   { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.ico-orange { background: linear-gradient(135deg, #fb923c, #ea580c); }
.ico-teal   { background: linear-gradient(135deg, #2dd4bf, #0f766e); }
.ico-rose   { background: linear-gradient(135deg, #fb7185, #e11d48); }

/* ---------- Showcase ---------- */
.showcase { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.showcase-text h2 { margin-top: 12px; font-size: clamp(28px, 3vw, 38px); font-weight: 800; }
.showcase-text p { margin-top: 16px; color: var(--muted); font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.checks [data-lucide] { color: var(--accent); }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding: 32px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.step-n {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
    background: var(--grad); color: #fff; font-weight: 800; font-size: 18px;
}
.step h3 { margin-top: 20px; font-size: 19px; font-weight: 700; }
.step p { margin-top: 10px; color: var(--muted); }

/* ---------- Usages (fond sombre) ---------- */
.section-dark {
    color: #fff;
    background:
        radial-gradient(700px 400px at 90% 0%, rgba(124, 58, 237, .35), transparent 70%),
        radial-gradient(600px 400px at 0% 100%, rgba(6, 182, 212, .2), transparent 70%),
        var(--ink);
}
.section-dark .section-head p { color: #b8bdd1; }
.usages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.usage { padding: 28px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.usage [data-lucide] { width: 28px; height: 28px; color: #a5b4fc; }
.usage h3 { margin-top: 18px; font-size: 18px; font-weight: 700; }
.usage p { margin-top: 8px; color: #b8bdd1; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 24px; box-shadow: var(--shadow-1); }
.faq summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 0; font-weight: 600; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary [data-lucide] { color: var(--accent); transition: transform .25s var(--ease); }
.faq details[open] summary [data-lucide] { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-text h2 { margin-top: 12px; font-size: clamp(28px, 3vw, 40px); font-weight: 800; }
.contact-text p { margin-top: 16px; color: var(--muted); font-size: 17px; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.contact-list [data-lucide] { color: var(--accent); }
.contact-list a { color: var(--ink); }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow-2); display: grid; gap: 16px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form select, .contact-form textarea {
    width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid #dfe1ea; background: #fafbff;
    font: 400 15px 'Poppins', sans-serif; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); background: #fff; }
.contact-form textarea { resize: vertical; }
.contact-form .consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--muted); font-size: 13px; }
.contact-form .consent input { margin-top: 4px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.alert-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---------- Mentions légales ---------- */
.legal h1 { margin-top: 16px; font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; }
.legal h2 { margin-top: 36px; font-size: 20px; font-weight: 700; }
.legal p { margin-top: 10px; color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

/* ---------- Pied de page ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 42px; width: auto; }
.footer-brand p { margin-top: 16px; color: var(--muted); font-size: 14px; max-width: 300px; }
.footer-grid > div:not(.footer-brand) { display: grid; gap: 10px; align-content: start; font-size: 14px; }
.footer-grid a, .footer-grid span { color: var(--muted); }
.footer-grid a:hover { color: var(--accent); }
.footer-title { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 48px; padding: 22px 24px 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-bottom a { color: var(--ink-2); font-weight: 600; }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .float-card { animation: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .features { grid-template-columns: repeat(3, 1fr); }
    .usages { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
    .nav-links, .nav-actions .btn-ghost { display: none; }
    .nav-toggle { display: inline-flex; }
    .hero { padding: 48px 0 80px; }
    .hero-grid, .showcase, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual .browser { transform: none; }
    .float-card { left: auto; right: 12px; bottom: -32px; width: 55%; }
    .strip-grid { grid-template-columns: repeat(2, 1fr); }
    .strip-grid > div:nth-child(3) { border-left: 0; }
    .strip-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .section { padding: 72px 0; }
}
@media (max-width: 600px) {
    .nav-actions > .btn-primary { display: none; }
    .features { grid-template-columns: 1fr 1fr; gap: 12px; }
    .feature { padding: 20px 16px; }
    .usages { grid-template-columns: 1fr; }
    .strip-grid { grid-template-columns: 1fr; }
    .strip-grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
    .contact-form { padding: 22px; }
    .contact-form .row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .float-card { display: none; }
}
