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

:root {
    --bg: #07111f;
    --bg-2: #0b1728;
    --card: rgba(11, 23, 40, 0.76);
    --card-strong: #0f1d31;
    --stroke: rgba(255, 255, 255, 0.08);
    --text: #f5f7fb;
    --muted: #9cb0c8;
    --primary: #5b8cff;
    --primary-2: #7a5cff;
    --green: #2ad89a;
    --yellow: #ffbf5f;
    --red: #ff6c81;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius: 24px;
    --container: 1340px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 15%, rgba(91, 140, 255, 0.18), transparent 20%),
        radial-gradient(circle at 85% 10%, rgba(122, 92, 255, 0.18), transparent 22%),
        linear-gradient(180deg, #06101d 0%, #081321 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.bg-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}

.bg-orb-1 {
    width: 320px;
    height: 320px;
    background: rgba(91, 140, 255, 0.22);
    top: 70px;
    left: -60px;
}

.bg-orb-2 {
    width: 360px;
    height: 360px;
    background: rgba(122, 92, 255, 0.18);
    right: -80px;
    top: 20px;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 92%);
    pointer-events: none;
    z-index: 0;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ===== HEADER ===== */

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(16px);
    background: rgba(6, 16, 29, 0.68);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topbar-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text);
    min-width: 0;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 900;
    box-shadow: 0 18px 45px rgba(91, 140, 255, 0.34);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}

.brand-text strong {
    font-size: 1rem;
    letter-spacing: -0.03em;
}

.brand-text span {
    font-size: 0.8rem;
    color: var(--muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.95rem;
    transition: 0.25s ease;
}

.nav a:hover {
    color: var(--text);
}

.topbar-tools {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    transition: 0.25s ease;
}

.lang-pill:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.lang-pill.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 10px 28px rgba(91, 140, 255, 0.24);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Hamburger — caché sur desktop */
.topbar-hamburger {
    display: none;
}

/* Panneau mobile — caché sur desktop */
.topbar-panel {
    display: none;
}

/* ===== UI ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1;
    transition: 0.25s ease;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    min-width: 160px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 16px 40px rgba(91, 140, 255, 0.28);
}

.btn-outline {
    min-width: 140px;
    color: var(--text);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
}

.btn-soft {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-outline:hover,
.btn-soft:hover {
    background: rgba(255, 255, 255, 0.06);
}

.btn-lg {
    min-height: 56px;
    padding: 0 26px;
    border-radius: 17px;
    font-size: 1rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d5e0ef;
    font-size: 0.84rem;
    font-weight: 800;
    margin-bottom: 22px;
}

.section {
    padding: 110px 0;
}

.section-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-head {
    margin-bottom: 38px;
}

.section-head.center {
    text-align: center;
}

.section-head h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.04em;
    margin-bottom: 14px;
}

.section-head p {
    color: var(--muted);
    font-size: 1.03rem;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== INDEX ===== */

.hero {
    padding: 92px 0 44px;
}

.hero-ultra .container,
#plans .container,
#features .container,
#preview .container {
    width: min(1440px, calc(100% - 48px));
}

.hero-ultra-centered {
    text-align: center;
}

.hero-ultra-center {
    max-width: 980px;
    margin: 0 auto;
}

.hero-ultra-title {
    font-size: clamp(3.2rem, 6vw, 5.8rem);
    line-height: 0.92;
    letter-spacing: -0.065em;
    margin-bottom: 26px;
}

.hero-ultra-title-centered {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-line {
    display: block;
}

.hero-line-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #7aa3ff 45%, #9a87ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-line-plain {
    color: var(--text);
}

.hero-ultra-description {
    font-size: 1.04rem;
    line-height: 1.9;
    color: var(--muted);
}

.hero-ultra-description-centered {
    max-width: 760px;
    margin: 0 auto 40px;
}

.hero-ultra-trust {
    display: grid;
    gap: 16px;
}

.hero-ultra-trust-centered {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 980px;
    margin: 0 auto;
    text-align: left;
}

.hero-ultra-trust-item {
    min-height: 118px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.hero-ultra-trust-item strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.2;
}

.hero-ultra-trust-item span {
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.55;
}

.mini-banner {
    padding: 12px 0 20px;
}

.mini-banner-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.mini-banner-inner span {
    padding: 12px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #d7e0ed;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 700;
    font-size: 0.9rem;
}

.plans-modern-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.plan-modern-card {
    padding: 30px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(91, 140, 255, 0.10), transparent 24%),
        radial-gradient(circle at bottom left, rgba(122, 92, 255, 0.10), transparent 26%),
        rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.plan-modern-pro {
    box-shadow:
        var(--shadow),
        inset 0 0 0 1px rgba(91, 140, 255, 0.14);
}

.plan-modern-head {
    margin-bottom: 22px;
}

.plan-modern-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 900;
}

.plan-modern-pro .plan-modern-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border-color: transparent;
}

.plan-modern-head h3 {
    font-size: 2rem;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}

.plan-modern-head p {
    color: var(--muted);
    line-height: 1.75;
    max-width: 480px;
}

.plan-modern-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
}

.plan-modern-price strong {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.plan-modern-price span {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
}

.plan-modern-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 26px;
}

.plan-modern-list li {
    position: relative;
    padding: 14px 16px 14px 42px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-weight: 700;
    line-height: 1.5;
}

.plan-modern-list li::before {
    content: "✓";
    position: absolute;
    left: 16px;
    top: 13px;
    color: var(--green);
    font-weight: 900;
    font-size: 1rem;
}

.plan-modern-btn {
    width: 100%;
    margin-top: auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    padding: 26px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(91, 140, 255, 0.22);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 14px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--muted);
    line-height: 1.7;
}


.preview-section {
    padding-top: 96px;
}

.preview-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top left, rgba(91, 140, 255, 0.08), transparent 30%),
        radial-gradient(circle at bottom right, rgba(122, 92, 255, 0.08), transparent 34%),
        rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-box {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 24px;
    align-items: stretch;
    max-width: none;
    margin: 0;
}

.preview-panel-main,
.preview-panel-side {
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.025)),
        rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
}

.preview-text,
.preview-stats {
    padding: 36px;
}

.preview-text h2 {
    font-size: clamp(2.3rem, 4.2vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
    margin-bottom: 18px;
    max-width: 700px;
}

.preview-text p {
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 28px;
    max-width: 720px;
    font-size: 1.03rem;
}

.check-list {
    gap: 14px;
}

.check-list li {
    padding-left: 30px;
    font-size: 1rem;
    line-height: 1.65;
}

.preview-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-content: start;
}

.big-stat {
    min-height: 122px;
    padding: 24px 24px 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.055);
}

.big-stat span {
    display: block;
    color: #9db1ca;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.big-stat strong {
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.25;
    letter-spacing: -0.04em;
    max-width: 420px;
}

/* ===== FOOTER ===== */


.footer {
    padding: 34px 0 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
}

.footer-inner p {
    color: var(--muted);
    margin-top: 10px;
    max-width: 460px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--text);
}

/* ===== AUTH PAGES ===== */

/* ════════════════════════════════════
   AUTH — Login / Register — layout centré
   ════════════════════════════════════ */

.auth-page {
    padding: 0;
    min-height: calc(100vh - 84px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    width: 700px; height: 700px;
    border-radius: 50%;
    background: rgba(91, 140, 255, 0.09);
    top: -250px; left: 50%;
    transform: translateX(-60%);
    filter: blur(120px);
    pointer-events: none;
}

.auth-page::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: rgba(140, 91, 255, 0.07);
    bottom: -200px; right: -100px;
    filter: blur(110px);
    pointer-events: none;
}

/* Masquer la colonne gauche — inutile sur une page de connexion simple */
.auth-side { display: none; }

.auth-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 1;
    padding: 40px 20px;
}

.auth-card-wrap {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 36px 36px 32px;
    position: relative;
    overflow: hidden;
}

.auth-card-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 10%, rgba(91,140,255,0.10), transparent 60%);
    pointer-events: none;
}

.auth-card {
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    position: relative;
    z-index: 1;
}

.auth-card-head { margin-bottom: 24px; }

.auth-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(91, 140, 255, 0.12);
    border: 1px solid rgba(91, 140, 255, 0.22);
    color: #7aacff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.auth-card-head h2 {
    font-size: 1.75rem;
    letter-spacing: -0.04em;
    margin-bottom: 5px;
    color: var(--text);
}

.auth-card-head p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.87rem;
}

.auth-alert {
    padding: 11px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.5;
}

.auth-alert-error {
    background: rgba(255, 108, 129, 0.10);
    border: 1px solid rgba(255, 108, 129, 0.18);
    color: #ffd0d7;
}

.auth-alert-success {
    background: rgba(42, 216, 154, 0.10);
    border: 1px solid rgba(42, 216, 154, 0.18);
    color: #cffff0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(237, 243, 251, 0.7);
}

.form-group input {
    width: 100%;
    min-height: 46px;
    padding: 0 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
    transition: 0.18s ease;
}

.form-group input::placeholder { color: rgba(127, 147, 173, 0.65); }

.form-group input:focus {
    border-color: rgba(91, 140, 255, 0.42);
    box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.08);
    background: rgba(91, 140, 255, 0.04);
}

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.form-link {
    color: rgba(122, 172, 255, 0.7);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    transition: color .15s;
}
.form-link:hover { color: #7aacff; }

.form-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-line {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 0.84rem;
    cursor: pointer;
}

.checkbox-line input {
    width: 14px; height: 14px;
    accent-color: #6d82ff;
}

.auth-submit { width: 100%; margin-top: 4px; }

/* Confirmation mail — accordion */
.auth-confirm-toggle {
    display: block;
    text-align: center;
    margin-top: 9px;
    color: rgba(122, 172, 255, 0.55);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 3px;
    transition: color .15s;
    width: 100%;
}
.auth-confirm-toggle:hover { color: #7aacff; }

.auth-confirm-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.2s ease;
}
.auth-confirm-panel.is-open { max-height: 160px; opacity: 1; }

.auth-confirm-inner {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(91, 140, 255, 0.05);
    border: 1px solid rgba(91, 140, 255, 0.12);
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-confirm-inner label {
    font-size: 0.76rem;
    font-weight: 600;
    color: rgba(122, 172, 255, 0.65);
}

.auth-confirm-inner input {
    width: 100%;
    min-height: 40px;
    padding: 0 13px;
    border-radius: 9px;
    border: 1px solid rgba(91, 140, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-family: inherit;
    font-size: 0.86rem;
    outline: none;
}
.auth-confirm-inner input:focus { border-color: rgba(91, 140, 255, 0.38); }

.auth-confirm-inner button {
    width: 100%;
    min-height: 36px;
    border-radius: 9px;
    background: rgba(91, 140, 255, 0.14);
    border: 1px solid rgba(91, 140, 255, 0.24);
    color: #7aacff;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}
.auth-confirm-inner button:hover { background: rgba(91, 140, 255, 0.24); }

.auth-separator {
    position: relative;
    text-align: center;
    margin: 16px 0 13px;
}

.auth-separator::before {
    content: "";
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
}

.auth-separator span {
    position: relative;
    display: inline-block;
    padding: 0 11px;
    background: transparent;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.auth-discord-btn {
    width: 100%;
    min-height: 46px;
    padding: 0 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(220, 230, 243, 0.45);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: not-allowed;
}

.auth-discord-icon { font-size: 0.9rem; line-height: 1; }

.auth-footer { margin-top: 14px; text-align: center; }
.auth-footer p { color: var(--muted); font-size: 0.86rem; }
.auth-footer a { color: #9bbcff; text-decoration: none; font-weight: 700; }
.auth-footer a:hover { color: #fff; }

.auth-note { display: none; }

@media (max-width: 480px) {
    .auth-card-wrap { padding: 28px 22px 26px; border-radius: 18px; }
}

/* ===== RESPONSIVE ===== */

/* ══ HERO B ══ */
.hero-b {
    padding: 78px 0 92px;
    min-height: calc(100vh - 84px);
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-b-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 54px;
    min-height: calc(100vh - 240px);
}

.hero-b-center {
    text-align: center;
    max-width: 980px;
    margin: 0 auto;
}

.hero-b-center .tag {
    margin-bottom: 26px;
}

.hero-b-title {
    font-size: clamp(3.8rem, 7vw, 6.6rem);
    line-height: 0.88;
    letter-spacing: -0.075em;
    font-weight: 900;
    color: var(--text);
    max-width: 980px;
    margin: 0 auto 24px;
}

.hero-b-title .hero-line-gradient {
    display: block;
    background: linear-gradient(130deg, #c8dcff, #7aacff 40%, #9a87ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-b-desc {
    font-size: 1.08rem;
    color: var(--muted);
    line-height: 1.82;
    max-width: 700px;
    margin: 0 auto 34px;
}

.hero-b-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-b-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 1320px;
    margin: 0 auto;
}

.hero-b-card {
    min-height: 170px;
    padding: 24px 22px 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.hero-b-card:hover {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.13);
    transform: translateY(-4px);
}

.hero-b-card-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.28);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.hero-b-card-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 8px;
}

.hero-b-card-sub {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.6;
    flex: 1;
}

.hero-b-bar {
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    margin-top: 18px;
}

.hero-b-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #5b8cff, #7a5cff);
}

/* ══ Comment ça marche ══ */
.how-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.how-step {
    padding: 28px 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.how-num {
    font-size: 2.6rem;
    font-weight: 900;
    color: rgba(91, 140, 255, 0.18);
    line-height: 1;
    margin-bottom: 14px;
    letter-spacing: -0.04em;
}

.how-step h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text);
}

.how-step p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.7;
}

@media (max-width: 1280px) {
    .hero-ultra .container,
    #plans .container,
    #features .container,
    #preview .container {
        width: min(100%, calc(100% - 32px));
    }

    .preview-box {
        grid-template-columns: 1fr;
    }

    .preview-shell {
        padding: 14px;
        border-radius: 28px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-ultra-trust-centered {
        grid-template-columns: 1fr;
        max-width: 760px;
    }
}

@media (max-width: 1080px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-card-wrap {
        max-width: 620px;
    }
}

@media (max-width: 920px) {
    /* ── Header mobile : une seule ligne brand + hamburger ── */
    .nav { display: none; }

    .topbar-inner {
        min-height: 60px;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        padding: 0;
        gap: 12px;
        position: relative;
    }

    /* Masquer les tools en ligne — remplacés par le panneau déroulant */
    .topbar-tools {
        display: none;
    }

    /* Bouton hamburger */
    .topbar-hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        border: 1px solid rgba(255,255,255,0.10);
        background: rgba(255,255,255,0.05);
        cursor: pointer;
        flex-shrink: 0;
        color: #fff;
        gap: 0;
        flex-direction: column;
        padding: 0;
    }

    .topbar-hamburger span {
        display: block;
        width: 16px;
        height: 1.5px;
        background: currentColor;
        border-radius: 999px;
        transition: transform 0.18s, opacity 0.18s;
        margin: 2.5px 0;
    }

    .topbar-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .topbar-hamburger.is-open span:nth-child(2) { opacity: 0; }
    .topbar-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

    /* Panneau déroulant sous le header */
    .topbar-panel {
        display: block;
        position: absolute;
        top: 100%;
        left: -16px;
        right: -16px;
        background: rgba(6,16,29,0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255,255,255,0.07);
        padding: 0 16px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.28s cubic-bezier(0.4,0,0.2,1),
                    padding 0.28s ease;
        z-index: 100;
    }

    .topbar-panel.is-open {
        max-height: 300px;
        padding: 14px 16px 18px;
    }

    .topbar-panel-inner {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* Lang switcher dans le panneau */
    .topbar-panel .lang-switcher {
        justify-content: center;
        width: 100%;
    }

    /* Boutons dans le panneau : pleine largeur */
    .topbar-panel .nav-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .topbar-panel .nav-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }

    .plans-modern-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .container,
    .hero-ultra .container,
    #plans .container,
    #features .container,
    #preview .container {
        width: calc(100% - 24px);
    }

    .topbar-inner {
        min-height: 58px;
        gap: 10px;
    }

    .brand-text span {
        display: none;
    }

    .hero {
        padding-top: 42px;
    }

    .hero-ultra-title {
        font-size: 2.45rem;
        line-height: 0.95;
    }

    .hero-ultra-description {
        font-size: 0.98rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 70px 0;
    }

    .auth-page {
        padding: 42px 0 70px;
    }

    .auth-card {
        padding: 22px;
        border-radius: 22px;
    }

    .auth-side h1 {
        font-size: 2.3rem;
    }

    .form-label-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .plan-modern-card,
    .preview-text,
    .preview-stats,
    .hero-ultra-trust-item {
        padding: 22px;
        border-radius: 24px;
    }

    .plan-modern-head h3 {
        font-size: 1.75rem;
    }
}
@media (max-width: 1100px) {
    .hero-b {
        min-height: auto;
        padding: 64px 0 72px;
    }

    .hero-b-wrap {
        min-height: auto;
        gap: 36px;
    }

    .hero-b-band { grid-template-columns: repeat(2, 1fr); }
    .hero-b-title { font-size: clamp(2.8rem, 6vw, 4.4rem); }
    .hero-b-desc { max-width: 620px; }
}

@media (max-width: 920px) {
    .how-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .hero-b {
        min-height: auto;
        padding: 44px 0 48px;
    }

    .hero-b-wrap {
        min-height: auto;
        gap: 24px;
    }

    .hero-b-band { grid-template-columns: 1fr; gap: 10px; }
    .hero-b-title { font-size: clamp(2.4rem, 9vw, 3.3rem); }
    .hero-b-desc {
        font-size: 0.98rem;
        max-width: 100%;
        margin-bottom: 26px;
    }
    .hero-b-ctas { flex-direction: column; align-items: center; }
    .hero-b-ctas .btn {
        width: 100%;
        max-width: 320px;
    }
    .hero-b-card {
        min-height: auto;
    }
    .how-section {
        padding-top: 82px;
    }
}


@media (max-width: 420px) {
    .container,
    .hero-ultra .container,
    #plans .container,
    #features .container,
    #preview .container {
        width: calc(100% - 18px);
    }

    .topbar-inner {
        min-height: 54px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 0.75rem;
    }

    .brand-text strong {
        font-size: 0.92rem;
    }

    .btn,
    .btn-lg {
        min-height: 52px;
        padding: 0 18px;
        font-size: 0.94rem;
    }

    .hero-b-title {
        font-size: 2.15rem;
    }

    .hero-b-desc {
        font-size: 0.94rem;
    }

    .hero-b-card {
        padding: 20px 18px 16px;
        border-radius: 18px;
    }

    .hero-b-card-value {
        font-size: 1.5rem;
    }

    .preview-shell {
        padding: 8px;
        border-radius: 18px;
    }

    .preview-text,
    .preview-stats {
        padding: 18px 16px;
        border-radius: 20px;
    }

    .preview-text h2 {
        font-size: 1.75rem;
    }

    .check-list li {
        font-size: 0.94rem;
        padding-left: 26px;
    }

    .big-stat span {
        font-size: 0.88rem;
    }

    .big-stat strong {
        font-size: 1.12rem;
    }

    .how-step {
        padding: 22px 18px;
    }

    .how-num {
        font-size: 2.15rem;
    }

    .feature-card,
    .plan-modern-card {
        padding: 20px 18px;
        border-radius: 20px;
    }
}
