/* Jack&Cie — site vitrine (jackcie.fr). CSS écrit à la main, sans dépendance. */
@font-face { font-family: 'Inter'; src: url('../fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
    --brand-50: #eff6f2; --brand-100: #dcebe2; --brand-200: #bcd8c7; --brand-500: #2f7655; --brand-600: #1f5f44;
    --brand-700: #174d37; --brand-800: #113e2c; --brand-900: #0d3122;
    --gold-50: #faf6ef; --gold-100: #f3ebde; --gold-200: #e7dac3; --gold-500: #a8875e; --gold-600: #8a6c48;
    --ink: #17211c; --text: #3d4a43; --muted: #66736c; --line: #e6e2d8;
    --bg: #fbfaf6; --cream: #f5f1e8; --white: #fff;
    --radius: 22px; --shadow: 0 1px 2px rgba(13, 49, 34, .05), 0 8px 24px rgba(13, 49, 34, .07);
    --shadow-lg: 0 30px 60px -20px rgba(13, 49, 34, .35);
    --wrap: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 750; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 720; }
h3 { font-size: 1.22rem; font-weight: 650; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand-900); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 6px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand-800); color: #fff; box-shadow: 0 6px 18px -6px rgba(13, 49, 34, .55); }
.btn-primary:hover { background: var(--brand-700); }
.btn-gold { background: var(--gold-200); color: var(--brand-900); }
.btn-gold:hover { background: #efe3cc; }
.btn-light { background: #fff; color: var(--brand-900); border-color: var(--line); }
.btn-light:hover { border-color: var(--brand-200); }
.btn-ghost { color: var(--brand-800); background: transparent; }
.btn-ghost:hover { background: rgba(13, 49, 34, .06); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* En-tête */
.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 246, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.scrolled { border-color: var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 520; font-size: 15.5px; padding: 8px 14px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(13, 49, 34, .06); }
.nav a.btn-primary { color: #fff; background: var(--brand-800); }
.nav a.btn-primary:hover { background: var(--brand-700); }
.nav .btn { margin-left: 8px; padding: 0 18px; min-height: 42px; font-size: 15px; }
.nav .login { color: var(--brand-700); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }
@media (max-width: 880px) {
    .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
    .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; background: var(--bg); padding: 12px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .25); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s; }
    .nav.open { transform: none; opacity: 1; pointer-events: auto; }
    .nav a { padding: 13px 14px; font-size: 17px; }
    .nav .btn { margin: 10px 0 0; min-height: 52px; }
}

/* Sections */
section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.cream { background: var(--cream); }
.dark { background: var(--brand-900); color: rgba(255, 255, 255, .82); }
.dark h2, .dark h3 { color: #fff; }
.eyebrow svg { width: 17px; height: 17px; flex-shrink: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 14px; }
.dark .eyebrow { color: var(--gold-200); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 640px; }
.dark .lead { color: rgba(255, 255, 255, .75); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.head { margin-bottom: 48px; }

/* Héros */
.hero { padding: 56px 0 72px; overflow: hidden; position: relative; }
.hero::before { content: ''; position: absolute; inset: -30% -10% auto 40%; height: 120%; background: radial-gradient(closest-side, rgba(168, 135, 94, .17), transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative; }
.hero h1 em { font-style: normal; color: var(--brand-600); }
.hero .lead { margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.reassure { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 14.5px; color: var(--muted); padding: 0; list-style: none; }
.reassure li { display: flex; align-items: center; gap: 7px; }
.reassure svg { width: 18px; height: 18px; color: var(--brand-500); }
.hero-visual { position: relative; display: flex; justify-content: center; min-height: 560px; }
.hero-visual .phone:nth-child(1) { transform: rotate(-4deg) translate(-56%, 24px); position: absolute; left: 50%; z-index: 1; opacity: .96; }
.hero-visual .phone:nth-child(2) { transform: rotate(3deg) translateX(18%); position: relative; z-index: 2; }
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { min-height: 0; margin-top: 8px; }
    .hero-visual .phone:nth-child(1) { display: none; }
    .hero-visual .phone:nth-child(2) { transform: none; }
}

/* Téléphone et navigateur */
.phone { width: 290px; max-width: 78vw; border-radius: 44px; padding: 10px; background: #111814; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2b3530; flex-shrink: 0; }
.phone img { border-radius: 34px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: #fff; }
.phone.sm { width: 240px; border-radius: 38px; padding: 8px; }
.phone.sm img { border-radius: 30px; }
.browser { border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.browser::before { content: ''; display: block; height: 30px; background: #f1efe9 radial-gradient(circle at 18px 15px, #e1695f 5px, transparent 5.5px), radial-gradient(circle at 36px 15px, #e6b450 5px, transparent 5.5px), radial-gradient(circle at 54px 15px, #64b46b 5px, transparent 5.5px); background-repeat: no-repeat; border-bottom: 1px solid var(--line); }
.browser img { width: 100%; }

/* Bandeau de logos / chiffres */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.proof div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.proof strong { display: block; color: var(--ink); font-size: 1.05rem; }
.proof span { font-size: 14.5px; color: var(--muted); }
@media (max-width: 880px) { .proof { grid-template-columns: 1fr 1fr; } }

/* Fonctionnalités alternées */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 110px; }
.feature.reverse .feature-media { order: -1; }
.feature-media { display: flex; justify-content: center; gap: 20px; }
.feature-media .phone:nth-child(2) { margin-top: 60px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--brand-500); margin-top: 2px; }
.checks b { color: var(--ink); font-weight: 620; }
@media (max-width: 900px) {
    .feature { grid-template-columns: 1fr; gap: 36px; }
    .feature.reverse .feature-media { order: 0; }
    .feature + .feature { margin-top: 80px; }
    .feature-media .phone:nth-child(2) { display: none; }
}

/* Cartes */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card .ico { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand-700); margin-bottom: 16px; }
.card .ico svg { width: 24px; height: 24px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card p.price { font-size: 2.1rem; color: var(--ink); margin: 6px 0 0; }
.card p.price-note { font-size: 13.5px; margin: 6px 0 12px; }
.dark .card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
.dark .card p { color: rgba(255, 255, 255, .7); }
.dark .card .ico { background: rgba(231, 218, 195, .12); color: var(--gold-200); }

/* Assistant (bloc sombre) */
.assistant { display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: center; }
.quotes { display: grid; gap: 12px; margin-top: 26px; }
.quote { display: flex; gap: 14px; align-items: flex-start; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 14px 18px; }
.quote .say { color: #fff; font-weight: 550; }
.quote .done { display: block; font-size: 14.5px; color: var(--gold-200); margin-top: 2px; }
.quote svg { width: 22px; height: 22px; color: var(--gold-200); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 900px) { .assistant { grid-template-columns: 1fr; } .assistant .phone { margin: 0 auto; } }

/* Étapes */
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 64px; }
.steps .card::before { counter-increment: step; content: counter(step); position: absolute; top: 22px; left: 26px; width: 30px; height: 30px; border-radius: 999px; background: var(--brand-800); color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }

/* Tarifs */
.billing-toggle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 0 auto 36px; }
.billing-toggle button { border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: var(--brand-800); color: #fff; }
.billing-toggle .save { font-size: 12px; font-weight: 700; color: var(--gold-600); margin-left: 4px; }
.billing-toggle button[aria-pressed="true"] .save { color: var(--gold-200); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 1080px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.plan.featured { border: 2px solid var(--brand-700); box-shadow: var(--shadow-lg); }
.plan .badge { position: absolute; top: -13px; left: 24px; background: var(--brand-800); color: #fff; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .02em; }
.plan h3 { margin-bottom: 4px; }
.plan .for { color: var(--muted); font-size: 15px; min-height: 48px; margin-bottom: 18px; }
.price { font-size: 2.5rem; font-weight: 760; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-note { font-size: 13.5px; color: var(--muted); min-height: 22px; margin: 8px 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 9px; font-size: 15px; flex: 1; }
.plan li { display: flex; gap: 9px; align-items: flex-start; }
.plan li svg { width: 19px; height: 19px; color: var(--brand-500); flex-shrink: 0; margin-top: 2px; }
.plan li.off { color: #9aa49e; }
.plan li.off svg { color: #c6ccc8; }
.plan .btn { width: 100%; }
.yearly-only { display: none; }
[data-billing="year"] .yearly-only { display: inline; }
[data-billing="year"] .monthly-only { display: none; }

/* Tableau comparatif */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 680px; }
.compare th, .compare td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--ink); }
.compare thead th { font-size: 14px; color: var(--ink); background: var(--cream); position: sticky; top: 0; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--brand-600); font-weight: 700; }
.compare .no { color: #b5bdb8; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 34px 20px 0; font-weight: 620; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--brand-700); border-bottom: 2px solid var(--brand-700); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); padding-bottom: 6px; }

/* Appel final */
.final { background: var(--brand-900); color: rgba(255, 255, 255, .8); border-radius: 32px; padding: 64px 48px; position: relative; overflow: hidden; }
.final::before { content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -180px; border-radius: 50%; background: radial-gradient(closest-side, rgba(168, 135, 94, .35), transparent); }
.final::after { content: ''; position: absolute; width: 380px; height: 380px; right: 60px; bottom: -260px; border-radius: 50%; border: 1px solid rgba(231, 218, 195, .18); box-shadow: 0 0 0 40px rgba(231, 218, 195, .04), 0 0 0 80px rgba(231, 218, 195, .03); }
.final > * { position: relative; }
.final h2 { color: #fff; max-width: 620px; }
.final p { max-width: 560px; }
@media (max-width: 620px) { .final { padding: 44px 24px; border-radius: 24px; } }

/* Galerie d'écrans */
.screens { display: flex; gap: 22px; overflow-x: auto; padding: 10px 20px 30px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.screens figure { margin: 0; scroll-snap-align: center; flex-shrink: 0; text-align: center; }
.screens figcaption { margin-top: 14px; font-size: 14.5px; font-weight: 600; color: var(--ink); }

/* Pages de contenu */
.page-head { padding: 64px 0 24px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.notice { background: var(--gold-50); border: 1px solid var(--gold-200); border-radius: 16px; padding: 14px 18px; font-size: 15px; color: var(--ink); }
.todo { background: #fff4e5; border-radius: 6px; padding: 0 5px; color: #8a4b00; font-weight: 600; }

/* Formulaire */
.form { display: grid; gap: 16px; }
.form label { display: block; font-weight: 600; color: var(--ink); font-size: 15px; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #d9d4c8; border-radius: 14px; padding: 12px 14px; }
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px var(--brand-100); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form .row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -5000px; }
.alert { border-radius: 16px; padding: 14px 18px; font-weight: 550; }
.alert.ok { background: var(--brand-50); color: var(--brand-900); border: 1px solid var(--brand-200); }
.alert.err { background: #fdecea; color: #8c1d18; border: 1px solid #f5c6c2; }

/* Pied de page */
.footer { background: #0a2419; color: rgba(255, 255, 255, .7); padding: 64px 0 32px; font-size: 15px; margin-top: 0; }
.footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer .brand img { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 14px; }
.footer .social { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.footer .social svg { width: 22px; height: 22px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 14px; color: rgba(255, 255, 255, .5); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer .brand { grid-column: 1 / -1; } }

/* Apparition douce */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.credits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.credits .card { padding: 20px 12px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.plan .price { margin: 0; }
.plan ul { align-content: start; }
@media (max-width: 480px) { .proof { grid-template-columns: 1fr; } }
/* Le cadre du téléphone épouse toujours la capture (jamais étiré par un voisin plus haut). */
.phone { height: max-content; align-self: flex-start; }
.feature-media { align-items: flex-start; }
.assistant .phone { align-self: center; }
