/* =========================================================
   VEZURO — interface sobre & moderne (thème sombre)
   Palette issue du logo : #070A0E, #1671D6, #2E9DF0, #22BDB8
   ========================================================= */

:root {
    --bg: #070a0e;
    --bg-2: #0b0f15;
    --surface: #0f141b;
    --surface-2: #131a23;
    --surface-3: #17202b;
    --border: #1e2833;
    --border-soft: #16202a;
    --text: #e8edf3;
    --text-soft: #c3ccd8;
    --muted: #8b98a6;
    --accent: #1671d6;
    --accent-2: #2e9df0;
    --accent-3: #22bdb8;
    --accent-soft: rgba(22, 113, 214, 0.14);
    --danger: #e5484d;
    --danger-soft: rgba(229, 72, 77, 0.12);
    --success: #2fbf71;
    --success-soft: rgba(47, 191, 113, 0.12);
    --warning: #e8a33d;
    --warning-soft: rgba(232, 163, 61, 0.12);
    --radius: 10px;
    --radius-sm: 7px;
    --radius-lg: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --transition: 0.18s ease;
    --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --mono: 'Cascadia Code', 'Consolas', 'SF Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(900px 500px at 80% -10%, rgba(22, 113, 214, 0.12), transparent 60%),
        radial-gradient(700px 400px at 10% 110%, rgba(34, 189, 184, 0.08), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Bandeau de maintenance, visible du seul administrateur. */
.maint-bar {
    position: relative;
    z-index: 20;
    background: var(--warning-soft);
    border-bottom: 1px solid rgba(232, 163, 61, 0.35);
    color: var(--warning);
    text-align: center;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
}

.maint-bar a {
    color: var(--warning);
    text-decoration: underline;
    margin-left: 10px;
}

a {
    color: var(--accent-2);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: #7cc0ff;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--text);
    letter-spacing: -0.01em;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.container--narrow {
    max-width: 860px;
}

.section {
    padding: 72px 0;
    position: relative;
    z-index: 1;
}

.section--alt {
    background: var(--bg-2);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

/* ============ BOUTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition);
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
}

.btn--primary {
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    color: #fff;
    box-shadow: 0 6px 18px rgba(22, 113, 214, 0.35);
}

.btn--primary:hover {
    filter: brightness(1.08);
    color: #fff;
    box-shadow: 0 8px 22px rgba(22, 113, 214, 0.45);
}

.btn--ghost {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

.btn--ghost:hover {
    background: var(--surface-2);
    border-color: #2a3848;
    color: var(--text);
}

.btn--outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn--outline:hover {
    border-color: var(--accent-2);
    color: var(--text);
}

.btn--danger {
    background: var(--danger-soft);
    color: var(--danger);
    border-color: transparent;
}

.btn--danger:hover {
    background: var(--danger);
    color: #fff;
}

.btn--success {
    background: var(--success-soft);
    color: var(--success);
}

.btn--success:hover {
    background: var(--success);
    color: #fff;
}

.btn--sm {
    padding: 7px 14px;
    font-size: 13px;
    border-radius: 6px;
}

.btn--block {
    width: 100%;
}

.btn--lg {
    padding: 14px 30px;
    font-size: 16px;
    border-radius: var(--radius);
}

/* ============ HEADER / NAV ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 10, 14, 0.82);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--border-soft);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.02em;
}

.brand:hover {
    color: var(--text);
}

.brand__logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: #000;
}

.brand__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand__name {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand__name small {
    font-size: 10.5px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav__link {
    color: var(--text-soft);
    padding: 8px 13px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-weight: 500;
}

.nav__link:hover {
    color: var(--text);
    background: var(--surface);
}

.nav__link.active {
    color: var(--text);
    background: var(--surface-2);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.menu-toggle {
    display: none;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    font-size: 18px;
    cursor: pointer;
}

/* ============ HERO ============ */
.hero {
    padding: 88px 0 70px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-soft);
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 26px;
}

.hero__badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-3);
    box-shadow: 0 0 10px var(--accent-3);
}

.hero h1 {
    font-size: clamp(34px, 5.4vw, 58px);
    font-weight: 700;
    letter-spacing: -0.02em;
    max-width: 900px;
    margin: 0 auto 20px;
}

.hero h1 .gradient {
    background: linear-gradient(100deg, var(--accent-2), var(--accent-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__subtitle {
    font-size: 18px;
    color: var(--muted);
    max-width: 660px;
    margin: 0 auto 34px;
}

.hero__cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============ SLIDER ============ */
.slider-section {
    padding-bottom: 10px;
}

.slider {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 7;
    min-height: 320px;
}

.slider__track {
    display: flex;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.slider__item {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.slider__item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider__overlay {
    position: relative;
    z-index: 2;
    padding: 40px;
    width: 100%;
    background: linear-gradient(180deg, transparent 20%, rgba(4, 7, 10, 0.92) 90%);
    color: #fff;
}

.slider__overlay h3 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.slider__overlay p {
    color: #cdd6e0;
    max-width: 560px;
    margin-bottom: 16px;
}

.slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(10, 14, 20, 0.55);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 5;
    backdrop-filter: blur(4px);
    transition: all var(--transition);
}

.slider__nav:hover {
    background: rgba(22, 113, 214, 0.6);
}

.slider__nav--prev {
    left: 16px;
}

.slider__nav--next {
    right: 16px;
}

.slider__dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 6;
}

.slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.slider__dot.active {
    width: 24px;
    background: var(--accent-2);
}

.slider--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--muted);
    background: var(--surface);
    font-size: 15px;
}

/* ============ FEATURES ============ */
.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 50px;
}

.section-head h2 {
    font-size: clamp(28px, 3.4vw, 38px);
    margin-bottom: 14px;
}

.section-head p {
    color: var(--muted);
    font-size: 16.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: #2b3a4c;
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent-2);
    margin-bottom: 18px;
}

.feature-card__icon svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 19px;
    margin-bottom: 9px;
}

.feature-card p {
    color: var(--muted);
    font-size: 15px;
}

/* ============ STATS ============ */
.stats-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 6px;
}

.stat {
    text-align: center;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stat__value {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(100deg, var(--accent-2), var(--accent-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 6px;
}

.stat__label {
    color: var(--muted);
    font-size: 14.5px;
}

/* ============ DOWNLOADS CTA ============ */
.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Une seule plateforme disponible : la carte se centre au lieu de rester collée à gauche
   avec un vide à droite. Largeur bornée, sinon une carte unique s'étirerait sur toute la
   page et n'aurait plus rien d'une carte. */
.download-grid--single {
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
}

.download-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all var(--transition);
}

.download-card:hover {
    border-color: #2b3a4c;
}

.download-card .platform-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-2);
}

.download-card h3 {
    font-size: 22px;
}

.download-card p {
    color: var(--muted);
    font-size: 14.5px;
    flex-grow: 1;
}

.download-card .meta {
    font-size: 13px;
    color: var(--muted);
    font-family: var(--mono);
}

/* ============ FOOTER ============ */
.site-footer {
    border-top: 1px solid var(--border-soft);
    padding: 48px 0 36px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
    background: var(--bg-2);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-col h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-soft);
    font-size: 14.5px;
}

.footer-col a:hover {
    color: var(--accent-2);
}

.footer-bottom {
    margin-top: 38px;
    padding-top: 22px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13.5px;
}

/* ============ FORMULAIRES ============ */
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    max-width: 460px;
    margin: 0 auto;
}

.form-card h1 {
    font-size: 26px;
    margin-bottom: 8px;
}

.form-card .sub {
    color: var(--muted);
    margin-bottom: 26px;
    font-size: 14.5px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    background: var(--bg-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font);
    transition: all var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-control::placeholder {
    color: #5b6878;
}

.form-control.mono {
    font-family: var(--mono);
    font-size: 13px;
}

textarea.form-control {
    min-height: 160px;
    resize: vertical;
    line-height: 1.5;
}

textarea.form-control.code {
    font-family: var(--mono);
    font-size: 13.5px;
    min-height: 320px;
}

.form-hint {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 5px;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
}

.form-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}

/* ============ ALERTES ============ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.alert--error {
    background: var(--danger-soft);
    border-color: rgba(229, 72, 77, 0.25);
    color: #ff8a8e;
}

.alert--success {
    background: var(--success-soft);
    border-color: rgba(47, 191, 113, 0.25);
    color: #7be0a8;
}

.alert--info {
    background: var(--accent-soft);
    border-color: rgba(22, 113, 214, 0.3);
    color: #7cc0ff;
}

.alert--warning {
    background: var(--warning-soft);
    border-color: rgba(232, 163, 61, 0.3);
    color: #f0c07c;
}

/* ============ BADGES ============ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}

.badge--green {
    background: var(--success-soft);
    color: var(--success);
}

.badge--red {
    background: var(--danger-soft);
    color: var(--danger);
}

.badge--blue {
    background: var(--accent-soft);
    color: var(--accent-2);
}

.badge--amber {
    background: var(--warning-soft);
    color: var(--warning);
}

.badge--gray {
    background: var(--surface-3);
    color: var(--muted);
}

/* ============ PAGE LEGALE ============ */
.legal {
    max-width: 780px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 46px 50px;
    line-height: 1.75;
}

.legal h1 {
    font-size: 32px;
    margin-bottom: 6px;
}

.legal .updated {
    color: var(--muted);
    font-size: 13.5px;
    margin-bottom: 28px;
}

.legal h2 {
    font-size: 20px;
    margin: 30px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-soft);
}

.legal h3 {
    font-size: 17px;
    margin: 24px 0 10px;
}

.legal p {
    color: var(--text-soft);
    margin-bottom: 14px;
}

.legal ul {
    margin: 0 0 14px 22px;
    color: var(--text-soft);
}

.legal li {
    margin-bottom: 8px;
}

.legal a {
    word-break: break-word;
}

/* ============ PAGE ACCOUNT ============ */
.account-hero {
    padding: 56px 0 40px;
}

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
}

.panel h3 {
    font-size: 17px;
    margin-bottom: 16px;
}

.plan-box {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}

.plan-box__price {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.plan-box__label {
    color: var(--muted);
    font-size: 13.5px;
}

.list-meta {
    list-style: none;
    margin-top: 12px;
}

.list-meta li {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 14px;
    color: var(--text-soft);
}

.list-meta li:last-child {
    border-bottom: none;
}

/* ============ ADMIN LAYOUT ============ */
.admin {
    display: flex;
    min-height: calc(100vh - 66px);
}

.admin__sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--bg-2);
    border-right: 1px solid var(--border);
    padding: 20px 14px;
    position: sticky;
    top: 66px;
    height: calc(100vh - 66px);
    overflow-y: auto;
}

.admin__sidebar .side-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    padding: 0 10px 12px;
}

.admin__nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.admin__nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 11px;
    border-radius: var(--radius-sm);
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 500;
}

.admin__nav a:hover {
    background: var(--surface);
    color: var(--text);
}

.admin__nav a.active {
    background: var(--accent-soft);
    color: #8bc4ff;
}

.admin__nav a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.admin__main {
    flex: 1;
    padding: 28px 32px;
    min-width: 0;
}

.admin__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.admin__head h1 {
    font-size: 24px;
}

/* ============ STATS CARDS ============ */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.stat-card__label {
    font-size: 12.5px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.stat-card__value {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.stat-card__value.accent {
    color: var(--accent-2);
}

.stat-card__value.success {
    color: var(--success);
}

.stat-card__extra {
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px;
}

/* ============ CARDS PANELS ============ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.card__header h2 {
    font-size: 18px;
}

.card__header .sub {
    font-size: 13px;
    color: var(--muted);
}

/* ============ TABLES ============ */
.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th {
    text-align: left;
    color: var(--muted);
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text-soft);
    vertical-align: middle;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: rgba(255, 255, 255, 0.015);
}

.table .primary {
    color: var(--text);
    font-weight: 500;
}

.table .mono {
    font-family: var(--mono);
    font-size: 12.5px;
}

.table .actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

/* ============ BAR CHART (mini) ============ */
.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 180px;
    padding-top: 10px;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.chart-bar__fill {
    width: 100%;
    max-width: 34px;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    border-radius: 5px 5px 0 0;
    min-height: 3px;
    transition: height 0.3s ease;
}

.chart-bar__value {
    font-size: 11px;
    color: var(--muted);
    font-family: var(--mono);
}

.chart-bar__label {
    font-size: 10.5px;
    color: var(--muted);
    white-space: nowrap;
}

/* ============ CHECKBOX SWITCH ============ */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch__slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 24px;
    transition: all var(--transition);
}

.switch__slider::before {
    content: '';
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    top: 3px;
    background: var(--muted);
    border-radius: 50%;
    transition: all var(--transition);
}

.switch input:checked+.switch__slider {
    background: var(--accent);
    border-color: var(--accent);
}

.switch input:checked+.switch__slider::before {
    transform: translateX(20px);
    background: #fff;
}

.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
}

.switch-row .info {
    flex: 1;
}

.switch-row .info strong {
    display: block;
    font-size: 14.5px;
}

.switch-row .info span {
    font-size: 13px;
    color: var(--muted);
}

/* ============ SLIDER ADMIN ============ */
.slider-admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.slide-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    background: var(--surface-2);
}

.slide-row img {
    width: 120px;
    height: 68px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.slide-row .info {
    flex: 1;
    min-width: 0;
}

.slide-row .info strong {
    display: block;
    font-size: 14.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slide-row .info span {
    font-size: 13px;
    color: var(--muted);
}

.slide-row .actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.image-preview {
    margin-top: 10px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
    overflow: hidden;
}

.image-preview img {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
}

/* ============ UPLOAD ZONE ============ */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 34px;
    text-align: center;
    color: var(--muted);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-2);
}

.upload-zone:hover {
    border-color: var(--accent-2);
    background: var(--accent-soft);
}

.upload-zone input[type='file'] {
    display: none;
}

.upload-zone .icon {
    font-size: 34px;
    margin-bottom: 10px;
    color: var(--accent-2);
}

/* ============ GRANT BOX (offrir un accès) ============ */
.grant-box {
    position: relative;
    display: inline-block;
}

.grant-box summary {
    list-style: none;
    cursor: pointer;
}

.grant-box summary::-webkit-details-marker {
    display: none;
}

.grant-box[open] summary {
    opacity: 0.85;
}

.grant-form {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
}

.grant-form .form-control {
    font-size: 13px;
}

/* ============ READY BANNER / PAYPAL ============ */
.paypal-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
}

.paypal-box .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
}

/* ============ UTILITAIRES ============ */
.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.text-muted {
    color: var(--muted);
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gap {
    gap: 12px;
}

.wrap {
    flex-wrap: wrap;
}

.hidden {
    display: none !important;
}

.empty-state {
    text-align: center;
    padding: 44px 20px;
    color: var(--muted);
}

.empty-state .icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.6;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-band {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .slider-admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 52px 0;
    }

    .nav__links,
    .nav__actions {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    /* Le menu déplié passe en flux normal plutôt qu'en position absolue : la hauteur fixe de
       66 px, prévue pour la barre repliée, coupait tout ce qui dépassait. */
    .nav.mobile-open {
        height: auto;
        flex-wrap: wrap;
        padding-bottom: 14px;
    }

    /* .nav__actions contient « Mon compte », « Dashboard » et « Déconnexion ». Le bouton
       burger ne dépliait que .nav__links : sur téléphone, un utilisateur connecté n'avait
       donc AUCUN moyen de se déconnecter ni d'ouvrir son compte. */
    .nav.mobile-open .nav__links,
    .nav.mobile-open .nav__actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 8px;
    }

    .nav.mobile-open .nav__links {
        padding-top: 12px;
        border-top: 1px solid var(--border);
        gap: 2px;
    }

    .nav.mobile-open .nav__actions {
        padding-top: 12px;
        margin-top: 4px;
        border-top: 1px solid var(--border-soft);
    }

    .nav.mobile-open .nav__actions form,
    .nav.mobile-open .nav__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-band {
        grid-template-columns: 1fr;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .account-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 60px 0 50px;
    }

    .slider {
        aspect-ratio: 16 / 10;
        min-height: 260px;
    }

    .slider__overlay {
        padding: 24px;
    }

    .slider__overlay h3 {
        font-size: 20px;
    }

    .slider__nav {
        width: 36px;
        height: 36px;
    }

    .legal {
        padding: 30px 22px;
    }

    .form-card {
        padding: 26px 22px;
    }

    .footer-grid {
        flex-direction: column;
    }

    .admin {
        flex-direction: column;
    }

    .admin__sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 12px 14px;
    }

    .admin__nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }

    .admin__nav a {
        padding: 7px 10px;
        font-size: 13px;
    }

    .admin__main {
        padding: 20px 16px;
    }

    .slider {
        min-height: 220px;
    }
}