/* Kobo — thème sombre premium (reprise du design Next.js)
   Palette : fond #050505, surfaces glass, accent lime #A8FF3E, texte blanc */

:root {
    --bg: #050505;
    --surface: #111113;
    --surface-2: #1c1c1f;
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text: #ffffff;
    --muted: #a1a1aa;
    --accent: #a8ff3e;
    --accent-dim: rgba(168, 255, 62, 0.12);
    --danger: #f87171;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    color-scheme: dark;
}

h1, h2, h3, h4 { font-family: "Sora", "Inter", system-ui, sans-serif; letter-spacing: -0.01em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--accent); color: #050505; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===== Topbar ===== */
.topbar {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.25rem; height: 4rem;
    background: rgba(11, 11, 12, 0.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.topbar .brand {
    display: inline-flex; align-items: center; gap: .6rem;
    color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em;
}
.topbar .brand:hover { text-decoration: none; }
.kobo-mark {
    display: inline-grid; place-items: center;
    width: 2.25rem; height: 2.25rem; border-radius: .75rem;
    background: #fff; color: #09090b; flex-shrink: 0;
}
.kobo-mark svg { width: 58%; height: 58%; }
.topbar nav { display: flex; align-items: center; gap: .25rem; }
.topbar nav a {
    color: #d4d4d8; margin: 0; padding: .5rem .8rem; border-radius: .6rem;
    font-size: .9rem; font-weight: 500;
}
.topbar nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.topbar nav a.active { background: var(--accent-dim); color: var(--accent); }
.topbar .topbar-right { display: flex; align-items: center; gap: .6rem; }
.user-name { font-size: .9rem; font-weight: 500; color: #d4d4d8; }

/* Sur mobile : la navigation se fait via la barre du bas (.mobile-nav).
   Exception : les admins n'ont pas de barre du bas — leur nav reste
   visible en version compacte et scrollable horizontalement. */
@media (max-width: 767px) {
    .topbar nav { display: none; }
    .topbar.is-admin nav {
        display: flex; overflow-x: auto; scrollbar-width: none;
        max-width: 58vw; gap: .1rem;
    }
    .topbar.is-admin nav::-webkit-scrollbar { display: none; }
    .topbar.is-admin nav a { white-space: nowrap; padding: .45rem .55rem; font-size: .78rem; }
    .topbar .user-name { display: none; }
    .topbar { padding: 0 .9rem; }
    /* Tableaux de données : scroll horizontal au lieu de déborder */
    .container table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .container table th, .container table td { white-space: nowrap; }
}
.credits-pill {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--accent-dim); color: var(--accent);
    border: 1px solid rgba(168,255,62,.25);
    padding: .4rem .8rem; border-radius: 999px;
    font-size: .82rem; font-weight: 600; white-space: nowrap;
}

.container { flex: 1; width: 100%; max-width: 72rem; margin: 0 auto; padding: 1.5rem 1rem 6rem; }
@media (min-width: 640px) { .container { padding: 2rem 1.5rem 2rem; } }

/* ===== Cartes (glass) ===== */
.card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 1.75rem;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
    padding: 1.5rem; margin-bottom: 1.2rem;
}
.card-pad { padding: 2rem; }

h1 { font-size: 1.6rem; margin-bottom: 1rem; }
h2 { font-size: 1.15rem; margin-bottom: .75rem; }

/* ===== Formulaires ===== */
label, .lbl { display: block; font-size: .9rem; font-weight: 600; margin: .9rem 0 .35rem; color: #e4e4e7; }
input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], input[type=date], input[type=file], select, textarea {
    width: 100%; height: 3rem; padding: 0 .9rem;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 1rem;
    font-size: .95rem; background: rgba(255,255,255,.04); color: #fff;
    transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; padding: .7rem .9rem; }
input::placeholder, textarea::placeholder { color: #71717a; }
input:focus, select:focus, textarea:focus {
    outline: none; border-color: rgba(255,255,255,.5);
    box-shadow: 0 0 0 3px rgba(168,255,62,.18);
}
input[type=file] { height: auto; padding: .55rem .9rem; }
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .9rem center; background-size: 1.1rem;
    padding-right: 2.4rem;
}
input[type=checkbox] { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; }

/* ===== Boutons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1.6rem; border: 0; border-radius: 1rem;
    background: var(--accent); color: #09090b;
    font-size: .95rem; font-weight: 700; cursor: pointer;
    transition: transform .15s, background .15s, opacity .15s;
    text-decoration: none; white-space: nowrap;
}
.btn:hover { background: #c2ff70; text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.secondary { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.15); }
.btn.secondary:hover { background: rgba(255,255,255,.1); }
.btn.danger { background: rgba(248,113,113,.15); color: var(--danger); border: 1px solid rgba(248,113,113,.3); }
.btn.danger:hover { background: rgba(248,113,113,.25); }
.btn.small { padding: .4rem .9rem; font-size: .82rem; border-radius: .7rem; }

/* ===== Tableaux ===== */
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th {
    text-align: left; padding: .7rem .9rem; font-size: .75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
    border-bottom: 1px solid var(--border);
}
td { padding: .8rem .9rem; border-bottom: 1px solid rgba(255,255,255,.05); color: #e4e4e7; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255,255,255,.02); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 1.25rem; background: rgba(255,255,255,.02); }

/* ===== Alertes ===== */
.alert { padding: .85rem 1.1rem; border-radius: 1rem; margin-bottom: 1rem; font-size: .9rem; border: 1px solid transparent; }
.alert-success { background: rgba(168,255,62,.1); color: var(--accent); border-color: rgba(168,255,62,.25); }
.alert-error   { background: rgba(248,113,113,.1); color: var(--danger); border-color: rgba(248,113,113,.25); }
.alert-info    { background: rgba(255,255,255,.06); color: #d4d4d8; border-color: var(--border); }

/* ===== Badges ===== */
.badge {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .2rem .7rem; border-radius: 999px;
    font-size: .75rem; font-weight: 600; border: 1px solid transparent;
}
.badge-green  { background: var(--accent-dim); color: var(--accent); border-color: rgba(168,255,62,.3); }
.badge-blue   { background: rgba(255,255,255,.08); color: #d4d4d8; border-color: rgba(255,255,255,.15); }
.badge-orange { background: rgba(251,191,36,.1); color: #fbbf24; border-color: rgba(251,191,36,.3); }
.badge-red    { background: rgba(248,113,113,.1); color: var(--danger); border-color: rgba(248,113,113,.3); }
.badge-gray   { background: rgba(255,255,255,.06); color: var(--muted); border-color: rgba(255,255,255,.12); }

/* ===== Divers ===== */
.auth-wrap { max-width: 26rem; margin: 3rem auto; }
.auth-wrap .card { padding: 2rem; }
.muted { color: var(--muted); font-size: .85rem; }
.text-right { text-align: right; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.4rem 0; }

.footer { text-align: center; padding: 1.5rem; color: #52525b; font-size: .85rem; }

/* ===== Stats ===== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.stat {
    background: rgba(255,255,255,.04); border: 1px solid var(--border);
    border-radius: 1.5rem; padding: 1.3rem; backdrop-filter: blur(14px);
}
.stat .num { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; }
.stat .lbl { color: var(--muted); font-size: .82rem; margin-top: .2rem; }

/* ===== Admin ===== */
.admin-nav { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .6rem; }
.admin-nav a {
    padding: .45rem 1rem; background: rgba(255,255,255,.04);
    border: 1px solid var(--border); border-radius: 999px;
    font-size: .85rem; color: #d4d4d8;
}
.admin-nav a:hover { background: rgba(255,255,255,.08); border-color: var(--border-strong); text-decoration: none; }
.admin-nav-advanced summary { list-style: none; }
.admin-nav-advanced summary::-webkit-details-marker { display: none; }

/* ===== Landing ===== */
.landing { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.landing-hero { text-align: center; padding: 4rem 1rem 3rem; }
.landing-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.1; font-weight: 800;
    letter-spacing: -0.03em; margin-bottom: 1.2rem;
}
.landing-hero h1 .accent { color: var(--accent); }
.landing-hero p { max-width: 36rem; margin: 0 auto 1.8rem; color: var(--muted); font-size: 1.05rem; }
.landing-features {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem; max-width: 64rem; margin: 0 auto 3rem;
}
.landing-features h2 { font-size: 1.05rem; margin-bottom: .5rem; }
.landing-features .card p { color: var(--muted); font-size: .9rem; }

/* ===== Calculateur ===== */
.calc-wrap { max-width: 64rem; margin: 0 auto; }
.calc-head { text-align: center; margin-bottom: 1.5rem; }
.calc-head h1 { font-size: 1.8rem; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
@media (max-width: 800px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-price-box {
    background: linear-gradient(135deg, #a8ff3e, #6fae3e);
    color: #09090b; border-radius: 1.75rem; padding: 1.4rem; margin: -1.5rem -1.5rem 1rem;
}
.calc-price-box .muted { color: rgba(9,9,11,.7) !important; }
.calc-price { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.02em; margin: .3rem 0; }
.calc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.calc-stats div { background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 1rem; padding: .9rem; display: flex; flex-direction: column; }
.calc-stats strong { font-size: 1.1rem; }
.calc-cta { text-align: center; background: rgba(168,255,62,.08); border: 1px solid rgba(168,255,62,.2); border-radius: 1.5rem; padding: 2rem; margin-top: 2rem; }

/* ===== Facture : lignes articles ===== */
.item-row { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: .6rem; margin-bottom: .6rem; align-items: center; }
.item-row .remove-item { background: none; border: 0; color: var(--danger); cursor: pointer; font-size: 1.2rem; padding: .3rem; }

/* ===== Nav mobile (bas d'écran) ===== */
.mobile-nav {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
    display: flex; justify-content: space-around;
    background: rgba(11,11,12,.92); backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: .4rem 0 calc(.4rem + env(safe-area-inset-bottom));
}
@media (min-width: 768px) { .mobile-nav { display: none; } }
.mobile-nav a {
    display: flex; flex-direction: column; align-items: center; gap: .2rem;
    font-size: .65rem; font-weight: 500; color: #71717a; padding: .4rem .8rem;
    text-decoration: none;
}
.mobile-nav a.active, .mobile-nav a:hover { color: var(--accent); text-decoration: none; }
.mobile-nav svg { width: 1.35rem; height: 1.35rem; }

/* Désactive le souligné au survol pour la nav */
.topbar nav a:hover, .mobile-nav a:hover { text-decoration: none; }

/* ===== Landing page (port Next.js) ===== */
.glass {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 1.75rem;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.glass-strong {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 1.75rem;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass { background: #111113; } .glass-strong { background: #161618; }
}
.glow-bg { position: relative; }
.glow-bg::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 55% 45% at 12% -5%, rgba(111,174,62,0.30), transparent 70%),
        radial-gradient(ellipse 50% 40% at 55% -10%, rgba(111,174,62,0.22), transparent 70%),
        radial-gradient(ellipse 45% 35% at 85% 105%, rgba(111,174,62,0.14), transparent 70%);
}
.grain::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Nav pilule flottante (landing) */
.lp-nav {
    position: fixed; top: 1rem; left: 50%; transform: translateX(-50%);
    z-index: 50; display: flex; width: calc(100% - 2rem); max-width: 75rem;
    height: 3.5rem; align-items: center; justify-content: space-between;
    padding: 0 .5rem 0 1.25rem;
}
.lp-nav .lp-links { display: none; align-items: center; gap: 1.75rem; }
.lp-nav .lp-cta { display: none; align-items: center; gap: .75rem; }
@media (min-width: 768px) {
    .lp-nav .lp-links, .lp-nav .lp-cta { display: flex; }
}
.lp-nav a { color: #d4d4d8; font-size: .9rem; font-weight: 500; }
.lp-nav a:hover { color: #fff; text-decoration: none; }
.lp-nav .lp-dot { display: inline-block; width: .4rem; height: .4rem; border-radius: 999px; background: var(--accent); box-shadow: 0 0 8px var(--accent); margin-right: .4rem; vertical-align: middle; }
.lp-btn-white {
    display: inline-flex; height: 2.5rem; align-items: center; border-radius: 999px;
    background: #fff; color: #09090b; padding: 0 1.25rem;
    font-size: .9rem; font-weight: 700;
}
.lp-btn-white:hover { background: #e4e4e7; text-decoration: none; }

/* Sections */
.lp { background: #050505; color: #fff; }
.lp-section { padding: 5rem 0; }
.lp-eyebrow { margin-bottom: 1rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: #d4d4d8; }
.lp-h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 300; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.1; color: #fff; }
.lp-wrap { margin: 0 auto; max-width: 75rem; padding: 0 1.25rem; }
@media (min-width: 640px) { .lp-wrap { padding: 0 2rem; } }

/* Hero */
.lp-hero { position: relative; overflow: hidden; padding: 9rem 0 6rem; }
.lp-hero-grid { position: relative; margin: 0 auto; display: grid; max-width: 75rem; align-items: center; gap: 3.5rem; padding: 0 1.25rem; }
@media (min-width: 1024px) { .lp-hero-grid { grid-template-columns: 1fr 1fr; padding: 0 2rem; } }
.lp-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); font-weight: 300; line-height: 1.02; letter-spacing: -0.03em; text-transform: uppercase; color: #fff; }
.lp-hero h1 .med { font-weight: 500; }
.lp-hero-sub { margin-top: 1.75rem; max-width: 28rem; font-size: 1.1rem; line-height: 1.7; color: #d4d4d8; }
.lp-hero-cta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.lp-hero-note { font-size: .9rem; color: #d4d4d8; }
.icon-pill {
    display: inline-flex; align-items: center; gap: .4rem; vertical-align: middle;
    margin: 0 .25rem; transform: translateY(.35rem);
    border: 1px solid rgba(255,255,255,.15); border-radius: 999px;
    background: rgba(255,255,255,.06); padding: .45rem .8rem;
}
.icon-pill svg { width: .95rem; height: .95rem; }
.icon-pill .lime { color: var(--accent); } .icon-pill .zinc { color: #d4d4d8; }

/* Carte graphique hero */
.hero-card { padding: 1.75rem; }
.hero-card .lbl2 { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: #d4d4d8; }
.hero-card .big { margin-top: .5rem; font-size: 2.5rem; font-weight: 300; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hero-card .big small { font-size: 1.1rem; color: #d4d4d8; }
.hero-badge { display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px; background: rgba(168,255,62,.1); padding: .4rem .75rem; font-size: .85rem; font-weight: 600; color: var(--accent); }
.hero-chart { position: relative; margin-top: 1rem; }
.hero-chart svg { width: 100%; height: auto; display: block; }
.hero-tip {
    position: absolute; right: .5rem; top: 1.5rem;
    display: flex; align-items: center; gap: .5rem;
    border-radius: 999px; padding: .5rem .9rem; font-size: .75rem; color: #e4e4e7;
}
.hero-tip .dot { width: .4rem; height: .4rem; border-radius: 999px; background: var(--accent); }
.hero-months { margin-top: .75rem; display: flex; justify-content: space-between; padding: 0 .25rem; font-size: .7rem; color: #d4d4d8; }
.hero-note { margin-top: 1rem; text-align: center; font-size: .7rem; color: #d4d4d8; }

/* Marquee */
.marquee-wrap { overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); padding: 2.5rem 0; }
.marquee-label { margin-bottom: 2rem; text-align: center; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: #71717a; }
.marquee { position: relative; overflow: hidden; }
.marquee-track {
    display: flex; width: max-content; white-space: nowrap;
    animation: marquee 32s linear infinite;
}
.marquee-track span { display: flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem; }
.marquee-track .m-name { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; color: #d4d4d8; }
.marquee-track .m-dot { width: .3rem; height: .3rem; border-radius: 999px; background: #52525b; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-25%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Grilles de cartes */
.lp-grid-3 { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .lp-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.lp-card { display: flex; flex-direction: column; padding: 1.75rem; transition: border-color .2s, background .2s; }
.lp-card:hover { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.06); }
.lp-card .icon-round {
    display: flex; height: 2.75rem; width: 2.75rem; align-items: center; justify-content: center;
    border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.05); color: #fff;
}
.lp-card .icon-round svg { width: 1.25rem; height: 1.25rem; }
.lp-card h3 { margin-top: 1.5rem; font-size: 1.25rem; font-weight: 500; color: #fff; }
.lp-card p { margin-top: .5rem; font-size: .95rem; line-height: 1.65; color: #d4d4d8; }
.lp-card .arrow { color: #d4d4d8; transition: transform .2s, color .2s; }
.lp-card .arrow svg { width: 1.1rem; height: 1.1rem; }
.lp-card:hover .arrow { color: var(--accent); transform: translate(2px, -2px); }
.lp-card .top-row { display: flex; align-items: flex-start; justify-content: space-between; }
.lp-tag { display: inline-block; margin-bottom: .5rem; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: .3rem .8rem; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #d4d4d8; }

/* Comment ça marche : onglets */
.how-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.how-tab {
    position: relative; display: flex; align-items: center; gap: .5rem;
    border-radius: 1rem 1rem 0 0; padding: .85rem 1.5rem;
    font-size: .9rem; font-weight: 600; color: #d4d4d8; background: transparent; border: 0; cursor: pointer;
}
.how-tab.active { background: rgba(255,255,255,.07); color: #fff; }
.how-tab.active::after {
    content: ""; position: absolute; left: 1rem; right: 1rem; bottom: -1px; height: 2px;
    border-radius: 999px; background: var(--accent);
}
.how-panel { border-radius: 0 0 1.75rem 1.75rem; padding: 2.5rem; }
.how-grid { display: grid; align-items: center; gap: 2.5rem; }
@media (min-width: 1024px) { .how-grid { grid-template-columns: auto 1fr auto; } }
.how-phone { display: flex; justify-content: center; }
.phone-frame {
    position: relative; width: 230px; border-radius: 2.4rem; padding: .5rem;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
}
@media (min-width: 640px) { .phone-frame { width: 260px; } }
.phone-frame::before {
    content: ""; position: absolute; left: 50%; top: .9rem; z-index: 2;
    width: 5rem; height: 1rem; transform: translateX(-50%);
    border-radius: 999px; background: rgba(0,0,0,.8);
}
.phone-screen {
    position: relative; aspect-ratio: 390/844; overflow: hidden;
    border-radius: 1.9rem; background: #0b0b0c;
}
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .5s; }
.phone-screen img.on { opacity: 1; }
.how-step-icon {
    display: flex; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center;
    border-radius: 999px; border: 1px solid rgba(168,255,62,.4); color: var(--accent);
}
.how-step-icon svg { width: 1.1rem; height: 1.1rem; }
.how-title { margin-top: 1rem; font-size: 1.6rem; font-weight: 300; color: #fff; }
@media (min-width: 768px) { .how-title { font-size: 1.9rem; } }
.how-text { margin-top: .75rem; max-width: 30rem; font-size: .95rem; line-height: 1.65; color: #d4d4d8; }
.meter { width: 100%; max-width: 220px; border-radius: 1rem; padding: 1.25rem; }
.meter .ml { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #d4d4d8; }
.meter .mv { margin-top: .25rem; font-size: 1.9rem; font-weight: 300; color: var(--accent); font-variant-numeric: tabular-nums; }
.meter .bar { margin-top: 1rem; height: .4rem; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.1); }
.meter .bar i { display: block; height: 100%; width: 30%; border-radius: 999px; background: var(--accent); }
.meter .mb { margin-top: .5rem; font-size: .7rem; color: #d4d4d8; }

/* Section téléphone */
.phone-section-grid { display: grid; align-items: center; gap: 3rem; }
@media (min-width: 1024px) { .phone-section-grid { grid-template-columns: 1fr 1fr; } }
.check-list { margin-top: 2rem; display: flex; flex-direction: column; gap: .9rem; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: .75rem; font-size: .95rem; color: #d4d4d8; }
.check-list .ck { margin-top: .3rem; width: .5rem; height: .5rem; flex-shrink: 0; border-radius: 999px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* Tarifs */
.price-grid { display: grid; align-items: stretch; gap: 1.5rem; }
@media (min-width: 768px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card { position: relative; display: flex; flex-direction: column; border-radius: 1.75rem; border: 1px solid rgba(255,255,255,.1); padding: 2rem; transition: border-color .2s; }
.price-card:hover { border-color: rgba(255,255,255,.25); }
.price-card.popular { border-color: rgba(168,255,62,.5); box-shadow: 0 0 40px rgba(168,255,62,.08); }
.price-pop-badge {
    position: absolute; top: -1rem; left: 50%; transform: translateX(-50%);
    border-radius: 999px; background: var(--accent); padding: .4rem 1rem;
    font-size: .85rem; font-weight: 700; color: #09090b; box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.price-card h3 { font-size: 1.25rem; font-weight: 700; color: #fff; }
.price-val { margin-top: .75rem; font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: #fff; }
.price-val s { font-size: 1.2rem; color: #71717a; font-weight: 500; }
.price-credits { margin-top: .5rem; font-size: .9rem; font-weight: 500; color: #d4d4d8; }
.price-feats { margin-top: 2rem; flex: 1; display: flex; flex-direction: column; gap: .75rem; }
.price-feats .pf { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: #d4d4d8; }
.price-feats svg { width: 1rem; height: 1rem; flex-shrink: 0; color: #fff; }
.price-btn {
    margin-top: 2rem; display: inline-flex; height: 3.25rem; align-items: center; justify-content: center;
    border-radius: 999px; font-size: .9rem; font-weight: 700; transition: background .2s, border-color .2s;
}
.price-btn.solid { background: #fff; color: #09090b; }
.price-btn.solid:hover { background: #e4e4e7; text-decoration: none; }
.price-btn.ghost { border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.05); color: #fff; }
.price-btn.ghost:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); text-decoration: none; }
.price-note { margin-top: 4rem; text-align: center; }
.price-note p { font-size: .9rem; color: #d4d4d8; }
.price-note p + p { margin-top: .75rem; }

/* FAQ */
.faq-wrap { margin: 0 auto; max-width: 48rem; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { overflow: hidden; }
.faq-item summary {
    display: flex; width: 100%; align-items: center; justify-content: space-between;
    padding: 1rem 1.5rem; text-align: left; font-weight: 500; color: #fff;
    cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .fq-icon { color: #d4d4d8; transition: transform .2s; flex-shrink: 0; }
.faq-item summary .fq-icon svg { width: 1.25rem; height: 1.25rem; }
.faq-item[open] summary .fq-icon { transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 1.5rem 1.25rem; font-size: .95rem; line-height: 1.7; color: #d4d4d8; }

/* CTA */
.lp-cta-box { position: relative; margin: 0 auto; max-width: 56rem; padding: 4rem 2rem; text-align: center; }
.lp-cta-box h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.lp-cta-box p { margin: 1.5rem auto 0; max-width: 38rem; font-size: 1.1rem; color: #d4d4d8; }
.dotgrid {
    position: absolute; inset: 0; pointer-events: none; opacity: .15;
    background-image: radial-gradient(circle, #a1a1aa 1px, transparent 1px);
    background-size: 26px 26px;
}

/* Footer landing */
.lp-footer { border-top: 1px solid rgba(255,255,255,.1); background: #050505; padding: 4rem 0; color: #d4d4d8; }
.lp-footer .grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .lp-footer .grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.lp-footer h3 { margin-bottom: 1.25rem; font-size: .95rem; font-weight: 700; color: #fff; }
.lp-footer ul { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.lp-footer ul a { font-size: .95rem; color: #d4d4d8; }
.lp-footer ul a:hover { color: #fff; text-decoration: none; }
.lp-footer .f-desc { margin-top: 1.25rem; max-width: 16rem; font-size: .95rem; line-height: 1.6; }
.lp-footer .f-bottom { margin-top: 3.5rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.1); padding-top: 2rem; }
@media (min-width: 640px) { .lp-footer .f-bottom { flex-direction: row; align-items: center; } }
.lp-footer .f-bottom .links { display: flex; gap: 1.5rem; }

/* Utilitaires internes */
.only-mobile { display: block; }
@media (min-width: 640px) { .only-mobile { display: none; } }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid transparent; padding: .4rem .7rem; }
.btn.ghost:hover { color: #fff; background: rgba(255,255,255,.06); }

/* ===== Pages auth (shell 2 colonnes) ===== */
.auth-body { background: #050505; }
.auth-grid { display: grid; min-height: 100vh; }
@media (min-width: 1024px) { .auth-grid { grid-template-columns: 1fr 1fr; max-width: 87.5rem; margin: 0 auto; width: 100%; } }
.auth-left { display: flex; flex-direction: column; padding: 1.5rem 1.25rem; }
@media (min-width: 640px) { .auth-left { padding: 2.5rem; } }
.auth-topbar { display: flex; align-items: center; justify-content: space-between; padding: .5rem 0; }
.auth-main { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 28rem; margin: 0 auto; padding: 2rem 0; }
.auth-title { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
@media (min-width: 640px) { .auth-title { font-size: 2.3rem; } }
.auth-sub { margin-top: .5rem; font-size: 1rem; color: #d4d4d8; }
.auth-bullets { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .6rem; list-style: none; }
.auth-bullets li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 500; color: #d4d4d8; }
.auth-check { display: flex; height: 1.25rem; width: 1.25rem; align-items: center; justify-content: center; border-radius: 999px; background: rgba(255,255,255,.1); flex-shrink: 0; }
.auth-form { margin-top: 2rem; }
.auth-right { display: none; padding: 2rem; }
@media (min-width: 1024px) { .auth-right { display: block; } }
.auth-promo { height: 100%; padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.auth-promo-title { margin-top: .5rem; font-size: 1.6rem; font-weight: 300; letter-spacing: -0.02em; color: #fff; }
.promo-steps { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.promo-step { display: flex; align-items: center; gap: .9rem; }
.promo-ico { display: flex; height: 2.75rem; width: 2.75rem; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05); color: #fff; flex-shrink: 0; }
.ps-t { font-size: .95rem; font-weight: 600; color: #fff; }
.ps-s { font-size: .8rem; color: var(--muted); }
.promo-fake-card { margin-top: 2.5rem; border-radius: 1.25rem; border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.3); padding: 1.25rem; }
.pfc-row { display: flex; justify-content: space-between; font-size: .9rem; padding: .4rem 0; }
.pfc-row span { color: var(--muted); }
.pfc-bar { margin-top: .75rem; height: .4rem; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.pfc-bar i { display: block; height: 100%; width: 100%; background: var(--accent); border-radius: 999px; }
.pfc-note { margin-top: .75rem; font-size: .8rem; color: var(--accent); font-weight: 600; }
