/* Alfinext — feuille de style unique, sans framework */

:root {
    --ink: #1b2429;
    --ink-2: #263238;
    --ink-3: #33434b;
    --yellow: #ffc800;
    --yellow-dark: #e0b000;
    --text: #263238;
    --muted: #5b6a71;
    --bg: #ffffff;
    --bg-alt: #f5f6f4;
    --line: #e3e6e3;
    --on-dark: #eef1f2;
    --on-dark-muted: #a9b6bc;
    --radius: 14px;
    --shadow: 0 1px 2px rgb(27 36 41 / .06), 0 8px 24px rgb(27 36 41 / .07);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 16px; top: -100px; z-index: 100;
    background: var(--yellow); color: var(--ink); padding: .6em 1em; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
    font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--yellow-dark); margin-bottom: .9em;
}

/* Boutons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent;
    font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
    transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: #ffd43a; }
.btn-ghost { border-color: rgb(255 255 255 / .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-sm { padding: .5em 1.1em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* En-tête */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgb(27 36 41 / .92);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid rgb(255 255 255 / .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.brand img { height: 40px; width: auto; }

.site-nav ul { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:not(.btn):hover { color: var(--yellow); }
.site-nav a.btn-primary { color: var(--ink); }

.nav-toggle {
    display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
    position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    position: absolute; left: 11px; width: 22px; height: 2px; background: #fff; border-radius: 2px;
    transition: transform .2s, opacity .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--ink); border-bottom: 1px solid rgb(255 255 255 / .08);
        display: none;
    }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; }
    .site-nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid rgb(255 255 255 / .06); }
    .site-nav .btn { margin-top: 16px; width: 100%; }
}

/* Hero */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(60rem 30rem at 85% -10%, rgb(255 200 0 / .16), transparent 60%),
        radial-gradient(40rem 25rem at -10% 110%, rgb(255 200 0 / .08), transparent 60%),
        var(--ink);
    color: var(--on-dark);
    padding: clamp(80px, 14vw, 160px) 0 clamp(80px, 12vw, 140px);
}
.hero::before {
    /* Trame de points discrète, clin d'œil au numérique */
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgb(255 255 255 / .07) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.hero-inner { position: relative; }
.hero-inner > * { max-width: 860px; }
.hero h1 { color: #fff; }
.highlight { color: var(--yellow); }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--on-dark-muted); max-width: 680px; margin-bottom: 2em; }
.hero .eyebrow { color: var(--yellow); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Les petits carrés jaunes du logo, en décor */
.pixels { position: absolute; right: 8%; bottom: 18%; width: 120px; height: 120px; }
.pixels span { position: absolute; width: 22px; height: 22px; background: var(--yellow); border-radius: 3px; animation: float 6s ease-in-out infinite; }
.pixels span:nth-child(1) { left: 0; top: 0; }
.pixels span:nth-child(2) { left: 30px; top: 30px; opacity: .8; animation-delay: -1s; }
.pixels span:nth-child(3) { left: 60px; top: 60px; opacity: .6; animation-delay: -2s; }
.pixels span:nth-child(4) { left: 90px; top: 30px; opacity: .4; animation-delay: -3s; }
.pixels span:nth-child(5) { left: 60px; top: 0; opacity: .25; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (max-width: 820px) { .pixels { display: none; } }

/* Sections */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; }

/* Cartes possibilités */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow);
    transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--yellow); }
.card > p { color: var(--muted); }
.card > p:last-child { margin-bottom: 0; }
.card > p a { color: var(--text); font-weight: 700; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.card-icon {
    width: 48px; height: 48px; border-radius: 12px; background: var(--ink-2);
    display: grid; place-items: center; margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--yellow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.examples { list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.examples li { position: relative; padding-left: 20px; margin-top: .55em; }
.examples li::before {
    content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px;
    background: var(--yellow); border-radius: 2px;
}
.cards-note { margin-top: 36px; text-align: center; color: var(--muted); }
.cards-note a { color: var(--text); font-weight: 700; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Méthode */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; counter-reset: none; }
.step { background: var(--bg); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.step p { color: var(--muted); margin: 0; }
.step-num {
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
    background: var(--yellow); color: var(--ink); font-weight: 800; margin-bottom: 16px;
}

/* Tarifs */
.promise {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
    margin: 28px 0 0; padding: 20px 24px; border-radius: var(--radius);
    background: var(--ink); color: var(--on-dark); font-size: 1.05rem;
}
.promise strong {
    background: var(--yellow); color: var(--ink); padding: .2em .7em;
    border-radius: 8px; font-weight: 800; white-space: nowrap;
}
.pilot {
    margin: 16px 0 0; padding: 18px 24px; border-radius: var(--radius);
    background: var(--bg); border: 2px dashed var(--yellow-dark);
}
.pilot a { font-weight: 700; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pricing-note { margin: 14px 0 0; font-size: .85rem; color: var(--muted); }

.pricing { display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px; }
@media (max-width: 820px) { .pricing { grid-template-columns: 1fr; } }
.price-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.price-card p { margin: 0 0 .8em; }
.price-card p:last-child { margin-bottom: 0; }
.price-step { font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.price-amount { font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--ink); }
.price-card .price-refund {
    display: inline-block; padding: .45em .9em; border-radius: 8px;
    background: var(--yellow); color: var(--ink); font-weight: 800;
}
.price-offer { font-size: .95rem; padding-top: .8em; border-top: 1px dashed var(--yellow-dark); }
.price-offer strong { color: var(--ink); }
.price-offer a { color: var(--text); font-weight: 700; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.price-small { font-size: .9rem; color: var(--muted); }
.split-caption { color: var(--muted); }
.split-caption strong { color: var(--text); }
.split { display: flex; gap: 2px; margin-bottom: 1em; }
.split-part {
    display: flex; flex-direction: column; justify-content: center; min-height: 72px;
    padding: 10px 14px; line-height: 1.25;
}
.split-part strong { font-size: 1.35rem; font-weight: 800; }
.split-part span { font-size: .88rem; }
.split-total { font-size: 1.1rem; }
.split-total strong { font-size: 1.35rem; font-weight: 800; color: var(--ink); box-shadow: inset 0 -.35em 0 var(--yellow); }
.split-client { flex-basis: 60%; background: var(--yellow); color: var(--ink); border-radius: 4px 0 0 4px; }
.split-fee { flex-basis: 40%; background: var(--ink); color: #fff; border-radius: 0 4px 4px 0; }

/* Sites web */
.web-offer {
    display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center;
    background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px);
}
@media (max-width: 820px) { .web-offer { grid-template-columns: 1fr; } }
.web-offer h3 { margin-bottom: .2em; }
.web-offer .examples { margin-bottom: 1em; }
.web-offer p { margin: 0 0 .8em; }
.web-offer-price { text-align: center; }
.web-offer-from { font-weight: 700; color: var(--muted); }
.web-offer-price .btn { margin-top: .4em; }

/* FAQ */
.section-head a { color: var(--text); font-weight: 700; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq-item { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item[open] { border-color: var(--yellow); }
.faq-item summary {
    list-style: none; cursor: pointer; padding: 18px 56px 18px 24px; position: relative;
    font-weight: 700; font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
    background: var(--yellow); color: var(--ink); font-weight: 800; line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: var(--radius); }
.faq-item p { margin: 0; padding: 0 24px 20px; color: var(--muted); }

/* Contact */
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark .eyebrow { color: var(--yellow); }
.section-dark h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-intro > p { color: var(--on-dark-muted); font-size: 1.1rem; }
.contact-points { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-points li { position: relative; padding-left: 30px; margin-top: .8em; }
.contact-points li::before {
    content: "✓"; position: absolute; left: 0; top: 0; color: var(--ink); background: var(--yellow);
    width: 20px; height: 20px; border-radius: 6px; font-size: .75rem; font-weight: 800;
    display: grid; place-items: center; margin-top: .2em;
}

.contact-form { background: var(--ink-2); border: 1px solid rgb(255 255 255 / .08); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input, .field textarea {
    width: 100%; font: inherit; color: #fff; background: var(--ink);
    border: 1px solid var(--ink-3); border-radius: 10px; padding: .75em .9em;
    transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #6f7f86; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--yellow); }
.field [aria-invalid="true"] { border-color: #ff8a7a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-feedback { margin: 14px 0 0; min-height: 1.5em; font-weight: 600; }
.form-feedback.is-success { color: #8fe3a8; }
.form-feedback.is-error { color: #ffb0a5; }
.form-legal { font-size: .82rem; color: var(--on-dark-muted); margin: 10px 0 0; }
.form-legal a { color: var(--on-dark); }

/* Pied de page */
.site-footer { background: #141b1f; color: var(--on-dark-muted); font-size: .9rem; padding: 28px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--on-dark); }

/* Page de mentions légales */
.legal { padding: clamp(56px, 8vw, 96px) 0; }
.legal .container { max-width: 780px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
