/* ════════════════════════════════════════════════════════════════════════════
   DropRoad — theme/style.css
   Fichier de style partagé entre index.php et admin.php
   Supporte les thèmes sombre (dark) et clair (light)
   ════════════════════════════════════════════════════════════════════════════ */

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

/* ══════════════════════════════════════════════════════════════════════════════
   THÈME SOMBRE (défaut)
   ══════════════════════════════════════════════════════════════════════════════ */
:root,
[data-theme="dark"] {
    --black: #08080a;
    --surface: #111114;
    --surface2: #18181d;
    --surface3: #1e1e24;
    --border: #222228;
    --border2: #2e2e36;
    --white: #f0eee8;
    --text: #f0eee8;
    --text-secondary: #aaa;
    --muted: #666;
    --red: #E43925;
    --red-dim: #b82d1c;
    --red-alpha-10: rgba(228, 57, 37, 0.10);
    --red-alpha-20: rgba(228, 57, 37, 0.20);
    --red-alpha-25: rgba(228, 57, 37, 0.25);
    --road: #eacd9b;
    --green: #22c55e;
    --green-alpha-10: rgba(34, 197, 94, 0.10);
    --green-alpha-30: rgba(34, 197, 94, 0.30);
    --green-text: #4ade80;
    --yellow: #f59e0b;
    --blue: #3b82f6;
    --overlay-bg: rgba(0, 0, 0, 0.70);
    --overlay-blur: blur(4px);
    --topbar-bg: rgba(17, 17, 20, 0.95);
    --toast-success-bg: rgba(34, 197, 94, 0.10);
    --toast-success-border: rgba(34, 197, 94, 0.30);
    --toast-success-color: #4ade80;
    --toast-error-bg: rgba(228, 57, 37, 0.10);
    --toast-error-border: rgba(228, 57, 37, 0.30);
    --toast-error-color: #ff7060;
    --grain-opacity: 0.03;
    --shadow-lg: 0 40px 80px rgba(0, 0, 0, 0.6);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.3);
    --input-bg: #18181d;
    --input-placeholder: #3a3a3a;
    --badge-inactive-bg: rgba(100, 100, 100, 0.10);
    --badge-inactive-border: #333;
    --badge-inactive-color: #666;
    --log-info: #3b82f6;
    --log-warning: #f59e0b;
    --log-error: #E43925;
    --log-success: #22c55e;
    --scrollbar-track: #111114;
    --scrollbar-thumb: #2e2e36;
}

/* ══════════════════════════════════════════════════════════════════════════════
   THÈME CLAIR — Blanc / Gris / Sable
   ══════════════════════════════════════════════════════════════════════════════ */
[data-theme="light"] {
    --black: #f6f5f1;
    --surface: #ffffff;
    --surface2: #f3f2ed;
    --surface3: #eae8e2;
    --border: #ddd9d0;
    --border2: #cec9bf;
    --white: #1a1917;
    --text: #1a1917;
    --text-secondary: #5c584f;
    --muted: #918c82;
    --red: #c4321a;
    --red-dim: #a82b16;
    --red-alpha-10: rgba(196, 50, 26, 0.07);
    --red-alpha-20: rgba(196, 50, 26, 0.13);
    --red-alpha-25: rgba(196, 50, 26, 0.18);
    --road: #eacd9b;
    --green: #2d8a4e;
    --green-alpha-10: rgba(45, 138, 78, 0.07);
    --green-alpha-30: rgba(45, 138, 78, 0.22);
    --green-text: #2d8a4e;
    --yellow: #b87514;
    --blue: #2b6cb0;
    --overlay-bg: rgba(26, 25, 23, 0.25);
    --overlay-blur: blur(6px);
    --topbar-bg: rgba(255, 255, 253, 0.94);
    --toast-success-bg: rgba(45, 138, 78, 0.07);
    --toast-success-border: rgba(45, 138, 78, 0.22);
    --toast-success-color: #2d8a4e;
    --toast-error-bg: rgba(196, 50, 26, 0.07);
    --toast-error-border: rgba(196, 50, 26, 0.18);
    --toast-error-color: #c4321a;
    --grain-opacity: 0.012;
    --shadow-lg: 0 20px 60px rgba(26, 25, 23, 0.10);
    --shadow-card: 0 1px 4px rgba(26, 25, 23, 0.06);
    --input-bg: #f3f2ed;
    --input-placeholder: #b5b0a5;
    --badge-inactive-bg: rgba(100, 95, 85, 0.06);
    --badge-inactive-border: #d5d0c6;
    --badge-inactive-color: #918c82;
    --log-info: #2b6cb0;
    --log-warning: #b87514;
    --log-error: #c4321a;
    --log-success: #2d8a4e;
    --scrollbar-track: #f3f2ed;
    --scrollbar-thumb: #cec9bf;
}

/* ── Fonts ─────────────────────────────────────────────────────────────────── */
html,
body {
    height: 100%;
    background: var(--black);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
}

/* ── Grain overlay ─────────────────────────────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: var(--grain-opacity);
    pointer-events: none;
    z-index: 0;
}

/* ── Scrollbar ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMPOSANTS PARTAGÉS (admin.php + index.php)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Boutons ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: none;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.btn-primary {
    background: var(--red);
    color: white;
}

.btn-primary:hover {
    background: var(--red-dim);
}

.btn-ghost {
    background: var(--surface2);
    border: 1px solid var(--border2);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--muted);
}

.btn-danger {
    background: var(--red-alpha-10);
    border: 1px solid var(--red-alpha-25);
    color: var(--red);
}

.btn-danger:hover {
    background: var(--red-alpha-20);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* ── Badges ───────────────────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 4px;
    font-size: 10px;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    color: var(--text-secondary);
    margin: 1px;
}

.badge-active {
    background: var(--green-alpha-10);
    border-color: var(--green-alpha-30);
    color: var(--green-text);
}

.badge-inactive {
    background: var(--badge-inactive-bg);
    border-color: var(--badge-inactive-border);
    color: var(--badge-inactive-color);
}

/* ── Formulaire ───────────────────────────────────────────────────────────── */
.form-input,
.form-select {
    background: var(--input-bg);
    border: 1px solid var(--border2);
    border-radius: 8px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    padding: 10px 14px;
    width: 100%;
    outline: none;
    transition: border-color 0.15s, background 0.3s;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--red);
}

.form-input::placeholder {
    color: var(--input-placeholder);
}

/* ── Animation keyframes ──────────────────────────────────────────────────── */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(16px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN.PHP — LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Grid Layout ──────────────────────────────────────────────────────────── */
.layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    grid-template-rows: 56px 1fr;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ── Topbar ───────────────────────────────────────────────────────────────── */
.topbar {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.topbar-brand {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    letter-spacing: 3px;
    color: var(--text);
}

.topbar-brand span {
    color: #eacd9b;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-label {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.topbar-label strong {
    color: var(--text);
    font-weight: 600;
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background 0.3s;
    overflow-y: auto;
}

.sidebar-section {
    padding: 0 16px;
    margin-bottom: 8px;
}

.sidebar-label {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0 8px;
    margin-bottom: 6px;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 12px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
}

.sidebar-btn:hover,
.sidebar-btn.active {
    background: var(--surface2);
    color: var(--text);
}

.sidebar-btn.active {
    color: var(--red);
}

.sidebar-btn .ico {
    font-size: 15px;
    width: 18px;
    text-align: center;
}

.sidebar-count {
    margin-left: auto;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 20px;
    font-size: 10px;
    padding: 1px 7px;
    color: var(--muted);
}

.sidebar-spacer {
    flex: 1;
}

.btn-logout {
    margin: 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid var(--border2);
    border-radius: 8px;
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 9px 12px;
    cursor: pointer;
    transition: all 0.15s;
    width: calc(100% - 32px);
}

.btn-logout:hover {
    border-color: var(--red);
    color: var(--red);
}

/* ── Main ─────────────────────────────────────────────────────────────────── */
.main {
    padding: 32px;
    overflow-y: auto;
    transition: background 0.3s;
}

/* ── Section visibility ───────────────────────────────────────────────────── */
.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
    animation: fadeIn 0.25s ease;
}

/* ── Page header ──────────────────────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
}

.page-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    letter-spacing: 2px;
    line-height: 1;
    color: var(--text);
}

.page-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

/* ── Toast ────────────────────────────────────────────────────────────────── */
.toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 13px;
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.6;
    padding: 2px 6px;
    border-radius: 4px;
    transition: opacity 0.15s, background 0.15s;
    flex-shrink: 0;
}

.toast-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

.toast-success {
    background: var(--toast-success-bg);
    border: 1px solid var(--toast-success-border);
    color: var(--toast-success-color);
}

.toast-error {
    background: var(--toast-error-bg);
    border: 1px solid var(--toast-error-border);
    color: var(--toast-error-color);
}

/* ── Stats cards ──────────────────────────────────────────────────────────── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: background 0.3s, border-color 0.3s;
}

.stat-label {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.stat-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 40px;
    line-height: 1;
    color: var(--text);
}

.stat-value.red {
    color: var(--red);
}

.stat-value.green {
    color: var(--green);
}

/* ── Table entreprises ────────────────────────────────────────────────────────── */
.table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: background 0.3s, border-color 0.3s;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    background: var(--surface2);
    padding: 12px 16px;
    text-align: left;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.1s;
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:hover {
    background: var(--surface2);
}

td {
    padding: 14px 16px;
    vertical-align: middle;
}

.td-id {
    font-size: 11px;
    color: var(--muted);
    font-family: monospace;
}

.td-name {
    font-weight: 600;
    color: var(--text);
}

.td-email {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
    margin-right: 4px;
}

[data-theme="light"] .color-dot {
    border-color: rgba(0, 0, 0, 0.1);
}

.logo-preview {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: contain;
    background: var(--surface2);
    border: 1px solid var(--border2);
}

.logo-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: var(--surface2);
    border: 1px solid var(--border2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.td-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

/* ── Drawer (panneau latéral) ─────────────────────────────────────────────── */
.drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    backdrop-filter: var(--overlay-blur);
    z-index: 500;
}

.drawer-overlay.open {
    display: block;
    animation: fadeIn 0.2s;
}

.drawer {
    position: fixed;
    top: 0;
    right: -580px;
    width: min(580px, 96vw);
    height: 100%;
    background: var(--surface);
    border-left: 1px solid var(--border);
    z-index: 501;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
    overflow: hidden;
}

.drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.drawer-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--text);
}

.drawer-close {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.15s;
    line-height: 1;
    padding: 4px;
}

.drawer-close:hover {
    color: var(--text);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.drawer-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* ── Formulaire grid ──────────────────────────────────────────────────────── */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group.full {
    grid-column: 1 / -1;
}

label {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
}

.form-note {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

.form-sep {
    grid-column: 1 / -1;
    border: none;
    border-top: 1px solid var(--border);
    margin: 8px 0;
}

.form-section-title {
    grid-column: 1 / -1;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: -4px;
}

/* ── Color swatch ─────────────────────────────────────────────────────────── */
.color-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border2);
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
    padding: 0;
}

.color-swatch input[type="color"] {
    width: 100%;
    height: 100%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: none;
}

/* ── Upload zone ──────────────────────────────────────────────────────────── */
.upload-zone {
    border: 1.5px dashed var(--border2);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
    position: relative;
}

.upload-zone:hover {
    border-color: var(--red);
}

.upload-zone input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
}

.upload-zone-label {
    font-size: 12px;
    color: var(--muted);
}

.upload-preview {
    max-height: 60px;
    max-width: 100%;
    border-radius: 6px;
    margin-top: 8px;
    display: none;
}

/* ── Toggle ───────────────────────────────────────────────────────────────── */
.toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border2);
    border-radius: 22px;
    cursor: pointer;
    transition: 0.2s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.2s;
}

.toggle input:checked+.toggle-slider {
    background: var(--green);
}

.toggle input:checked+.toggle-slider::before {
    transform: translateX(18px);
}

/* ── Modal Dépôts ─────────────────────────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    backdrop-filter: var(--overlay-blur);
    z-index: 600;
}

.modal-overlay.open {
    display: block;
    animation: fadeIn 0.2s;
}

.modal-depot {
    position: fixed;
    top: 0;
    right: -900px;
    width: min(580px, 96vw);
    height: 100%;
    background: var(--surface);
    border-left: 1px solid var(--border);
    z-index: 601;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
    overflow: hidden;
}

.modal-depot.open {
    right: 0;
}

.depot-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DEPOT MODAL — Cards Grid (flex wrap)
   ═══════════════════════════════════════════════════════════════════════════ */
.dm-cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.dm-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: calc(50% - 7px);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
    overflow: hidden;
}

.dm-card:hover {
    border-color: var(--border2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.dm-card-top {
    position: relative;
}

.dm-card-thumb {
    height: 110px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface3);
}

.dm-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dm-card-thumb-empty {
    flex-direction: column;
    color: var(--muted);
    gap: 2px;
}

.dm-card-photo-count {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

.dm-card-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 5px;
    backdrop-filter: blur(4px);
}

.dm-card-body {
    padding: 12px 14px 14px;
}

.dm-card-vehicle {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dm-card-client {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
}

.dm-card-immat {
    display: inline-block;
    font-size: 10px;
    font-family: monospace;
    background: var(--black);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 1px 6px;
    color: var(--muted);
    margin-bottom: 4px;
}

.dm-card-date {
    font-size: 10px;
    color: var(--muted);
}

.dm-card-panne {
    font-size: 11px;
    color: var(--muted);
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--border);
    line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DEPOT DETAIL — Layout 2 colonnes
   ═══════════════════════════════════════════════════════════════════════════ */
.dd-back {
    background: none;
    border: none;
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
    margin-bottom: 16px;
    transition: color 0.15s;
}

.dd-back:hover {
    color: var(--text);
}

.dd-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.dd-info,
.dd-media {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dd-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.dd-date {
    font-size: 12px;
    color: var(--muted);
}

.dd-vehicle-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    letter-spacing: 1.5px;
    color: var(--text);
    margin-bottom: 2px;
}

.dd-immat {
    display: inline-block;
    font-size: 12px;
    font-family: monospace;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 3px 10px;
    color: var(--text-secondary);
    margin-bottom: 2px;
    width: fit-content;
}

.dd-km {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}

.dd-separator {
    height: 1px;
    background: var(--border);
    margin: 10px 0;
}

.dd-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--muted);
    margin-bottom: 6px;
}

.dd-client-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dd-client-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text);
}

.dd-client-row a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}

.dd-client-row a:hover {
    color: var(--red);
}

.dd-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.dd-comment {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    font-style: italic;
}

/* ── Photos grille ── */
.dd-photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.dd-photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--surface2);
    border: 1px solid var(--border);
    transition: border-color 0.15s;
}

.dd-photo-item:hover {
    border-color: var(--border2);
}

.dd-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dd-photo-zoom {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border-radius: 6px;
    padding: 4px 6px;
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dd-photo-item:hover .dd-photo-zoom {
    opacity: 1;
}

.dd-no-photos {
    text-align: center;
    padding: 30px;
    color: var(--muted);
    font-size: 12px;
    background: var(--surface2);
    border-radius: 8px;
    border: 1px dashed var(--border);
}

/* ── PDF button ── */
.dd-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red-alpha-10);
    border: 1px solid var(--red-alpha-25);
    color: var(--red);
    padding: 10px 16px;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    margin-bottom: 16px;
}

.dd-pdf-btn:hover {
    background: var(--red-alpha-20);
    border-color: var(--red);
}

/* ── Signature ── */
.dd-signature {
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    border: 1px solid var(--border);
    max-width: 200px;
}

.dd-signature img {
    width: 100%;
    cursor: pointer;
}

/* ── Statut action buttons ── */
.dd-statut-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dd-statut-btn {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.dd-statut-btn:hover:not(:disabled) {
    border-color: var(--st-color);
    color: var(--st-color);
    background: color-mix(in srgb, var(--st-color) 8%, transparent);
}

.dd-statut-btn.dd-statut-active {
    border-color: var(--st-color);
    color: var(--st-color);
    background: color-mix(in srgb, var(--st-color) 12%, transparent);
    cursor: default;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PHOTO LIGHTBOX
   ═══════════════════════════════════════════════════════════════════════════ */
.photo-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 40px;
    cursor: zoom-out;
}

.photo-lightbox.open {
    display: flex;
    animation: fadeIn 0.2s;
}

.photo-lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.depot-list {
    display: flex;
    flex-direction: row;
    gap: 12px;
    flex-wrap: wrap;
}

.depot-card {
    width: 260px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    transition: border-color 0.15s, background 0.3s;
}

.depot-card:hover {
    border-color: var(--border2);
}

.depot-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.depot-card-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
}

.depot-card-date {
    font-size: 11px;
    color: var(--muted);
}

.depot-card-vehicle {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.depot-card-client {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.depot-card-immat {
    display: inline-block;
    font-size: 11px;
    font-family: monospace;
    background: var(--black);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 8px;
    color: var(--muted);
    margin-top: 4px;
}

.depot-card-panne {
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION DÉPÔTS (sidebar gauche — tous entreprises)
   ═══════════════════════════════════════════════════════════════════════════ */
.depot-global-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.depot-global-filters .form-input {
    max-width: 260px;
    font-size: 13px;
    padding: 8px 12px;
}

.depot-global-filters select {
    background: var(--input-bg);
    border: 1px solid var(--border2);
    border-radius: 8px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    padding: 8px 12px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s;
}

.depot-global-filters select:focus {
    border-color: var(--red);
}

.depot-entreprise-group {
    margin-bottom: 28px;
}

.depot-entreprise-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 1.5px;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.depot-entreprise-title .depot-count-badge {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 20px;
    padding: 2px 8px;
    color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION LOGS
   ═══════════════════════════════════════════════════════════════════════════ */
.log-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.log-controls select,
.log-controls .form-input {
    font-size: 13px;
    padding: 8px 12px;
}

.log-controls select {
    background: var(--input-bg);
    border: 1px solid var(--border2);
    border-radius: 8px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    outline: none;
    cursor: pointer;
}

.log-table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.log-table {
    width: 100%;
    border-collapse: collapse;
}

.log-table thead th {
    background: var(--surface2);
    padding: 10px 14px;
    text-align: left;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

.log-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.1s;
}

.log-table tbody tr:last-child {
    border-bottom: none;
}

.log-table tbody tr:hover {
    background: var(--surface2);
}

.log-table td {
    padding: 10px 14px;
    font-size: 13px;
    vertical-align: middle;
}

.log-level {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.log-level.info {
    background: rgba(59, 130, 246, 0.12);
    color: var(--log-info);
}

.log-level.warning {
    background: rgba(245, 158, 11, 0.12);
    color: var(--log-warning);
}

.log-level.error {
    background: rgba(228, 57, 37, 0.12);
    color: var(--log-error);
}

.log-level.success {
    background: rgba(34, 197, 94, 0.12);
    color: var(--log-success);
}

.log-empty {
    text-align: center;
    padding: 40px;
    color: var(--muted);
    font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION PARAMÈTRES
   ═══════════════════════════════════════════════════════════════════════════ */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.settings-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    transition: background 0.3s, border-color 0.3s;
}

.settings-card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 1.5px;
    color: var(--text);
    margin-bottom: 6px;
}

.settings-card-desc {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 18px;
    line-height: 1.5;
}

/* Theme selector */
.theme-options {
    display: flex;
    gap: 12px;
}

.theme-option {
    flex: 1;
    background: var(--surface2);
    border: 2px solid var(--border2);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.theme-option:hover {
    border-color: var(--muted);
}

.theme-option.active {
    border-color: var(--red);
}

.theme-option-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.theme-option-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   INDEX.PHP — LANDING PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Landing topbar ───────────────────────────────────────────────────────── */
.landing-topbar {
    position: fixed;
    max-width: 100vw;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    transition: background 0.3s;
}

[data-theme="light"] .landing-topbar {
    background: rgba(255, 255, 255, 0.88);
}

.topbar-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 3px;
    color: var(--text);
    text-decoration: none;
}

.topbar-logo span {
    color: #eacd9b;
}

.btn-admin {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-admin:hover {
    border-color: var(--red);
    color: var(--red);
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 32px 100px;
    position: relative;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 15%;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--red) 40%, transparent);
    opacity: 0.15;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1100px;
    width: 100%;
    align-items: center;
    justify-items: center;
}

/* ── Illustration ──────────────────────────────────────────────────────────── */
.illustration {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 380px;
    width: 100%;
    padding-bottom: 0px;
}

.illustration .carton {
    width: 78%;
    max-width: 300px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
    animation: float 6s ease-in-out infinite;
}

.float-icon {
    position: absolute;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
}

.float-icon.bike {
    width: 52%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    animation: floatBike 5s ease-in-out infinite;
}

.float-icon.car {
    width: 38%;
    top: 28%;
    left: 0px;
    z-index: 4;
    animation: floatCar 7s ease-in-out infinite;
}

.float-icon.laptop {
    width: 34%;
    top: 18%;
    right: 0px;
    z-index: 4;
    animation: floatLaptop 6s ease-in-out infinite 1s;
}

.illustration-badge {
    position: absolute;
    bottom: -12px;
    right: 12%;
    background: var(--red);
    color: white;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    padding: 5px 14px;
    border-radius: 2px;
    z-index: 6;
}

.mainlogo {
    width: 100%;
    max-width: 80%;

}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes floatBike {

    0%,
    100% {
        transform: translateX(-50%) translateY(0px) rotate(-2deg);
    }

    50% {
        transform: translateX(-50%) translateY(-14px) rotate(1deg);
    }
}

@keyframes floatCar {

    0%,
    100% {
        transform: translateY(0px) rotate(2deg);
    }

    50% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

@keyframes floatLaptop {

    0%,
    100% {
        transform: translateY(0px) rotate(-3deg);
    }

    50% {
        transform: translateY(-12px) rotate(1deg);
    }
}

/* ── Content ──────────────────────────────────────────────────────────────── */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
}

.eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--red);
}

h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(52px, 6vw, 84px);
    line-height: 0.95;
    letter-spacing: 2px;
    color: var(--text);
}

h1 span {
    color: var(--red);
}

.tagline {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 420px;
}

.tagline strong {
    color: var(--text);
    font-weight: 500;
}

.type-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
}

.download-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-store {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    background: var(--surface2);
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    color: var(--text);
    min-width: 160px;
    max-width: 160px;
    opacity: 0.5;
    position: relative;
    overflow: hidden;
}

.btn-store:hover {
    border-color: var(--muted);
    opacity: 0.7;
}

.btn-store-icon {
    max-width: 160px;
}

.btn-store-text {
    display: flex;
    flex-direction: column;
}

.btn-store-text small {
    font-size: 9px;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-store-text strong {
    font-size: 15px;
    font-weight: 600;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 18px 32px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    z-index: 100;
    transition: background 0.3s;
}

[data-theme="light"] footer {
    background: rgba(255, 255, 255, 0.9);
}

footer a {
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
    flex: 1;
}

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

footer .sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--border);
}

/* ── Modal login (index.php) ──────────────────────────────────────────────── */
.login-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.80);
    backdrop-filter: blur(6px);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.login-modal-overlay.open {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px 36px;
    width: 100%;
    max-width: 380px;
    position: relative;
    animation: slideUp 0.25s ease;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text);
}

.modal-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 3px;
    margin-bottom: 6px;
    color: var(--text);
}

.modal-logo span {
    color: var(--road);
}

.modal-subtitle {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.5px;
    margin-bottom: 28px;
}

.modal-error {
    background: var(--toast-error-bg);
    border: 1px solid var(--toast-error-border);
    color: var(--toast-error-color);
    font-size: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.field-group input {
    background: var(--black);
    border: 1px solid var(--border2);
    border-radius: 7px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    padding: 12px 16px;
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
}

.field-group input:focus {
    border-color: var(--red);
}

.field-group input::placeholder {
    color: var(--input-placeholder);
}

.btn-submit {
    width: 100%;
    background: var(--red);
    border: none;
    border-radius: 7px;
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: var(--red-dim);
}

.modal-note {
    text-align: center;
    font-size: 10px;
    color: var(--muted);
    margin-top: 16px;
    letter-spacing: 0.3px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   CTA ABONNEMENT (colonne gauche de la landing)
   ══════════════════════════════════════════════════════════════════════════════ */
.cta-subscribe {
    position: absolute;
    top: 100px;
    left: 30px;
    transform: translateX(-50%);
    z-index: 10;
    cursor: pointer;
    width: 260px;
    animation-delay: 0.5s !important;
}

.cta-subscribe-inner {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 14px;
    padding: 16px 20px;
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.cta-subscribe:hover .cta-subscribe-inner {
    border-color: var(--red);
    box-shadow: 0 0 30px rgba(228, 57, 37, 0.15);
    transform: translateY(-2px);
}

.cta-subscribe-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(228, 57, 37, 0.06), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.cta-subscribe-badge {
    display: inline-block;
    background: var(--green-alpha-30);
    color: var(--green-text);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 8px;
}

[data-theme="light"] .cta-subscribe-badge {
    color: #15803d;
}

.cta-subscribe-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--text);
    margin-bottom: 2px;
}

.cta-subscribe-price {
    font-size: 13px;
    color: var(--muted);
}

.cta-subscribe-price strong {
    color: var(--red);
    font-weight: 700;
    font-size: 15px;
}

.cta-subscribe-price span {
    font-size: 11px;
    color: var(--muted);
}

.cta-subscribe-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--red);
    opacity: 0;
    transition: all 0.3s;
}

.cta-subscribe:hover .cta-subscribe-arrow {
    opacity: 1;
    right: 12px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   MODAL ABONNEMENT (popup multi-étapes)
   ══════════════════════════════════════════════════════════════════════════════ */
.sub-modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 32px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.sub-modal::-webkit-scrollbar {
    width: 6px;
}

.sub-modal::-webkit-scrollbar-track {
    background: transparent;
}

.sub-modal::-webkit-scrollbar-thumb {
    background: var(--border2);
    border-radius: 3px;
}

.sub-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.sub-offer-badge {
    display: inline-block;
    background: var(--red-alpha-10);
    color: var(--red);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    border: 1px solid var(--red-alpha-20);
    margin-top: 6px;
}

.sub-hero-price {
    text-align: center;
    margin-bottom: 20px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.sub-hero-amount {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    letter-spacing: 2px;
    color: var(--text);
    line-height: 1;
}

.sub-hero-amount span {
    font-size: 20px;
    color: var(--muted);
    letter-spacing: 0;
}

.sub-hero-trial {
    font-size: 13px;
    color: var(--green-text);
    font-weight: 600;
    margin-top: 4px;
}

[data-theme="light"] .sub-hero-trial {
    color: #15803d;
}

.sub-pitch {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 24px;
}

.sub-pitch strong {
    color: var(--text);
    font-weight: 500;
}

/* ── Features list ── */
.sub-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.sub-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 14px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.2s;
}

.sub-feature:hover {
    border-color: var(--border2);
}

.sub-feature-icon {
    font-size: 22px;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
}

.sub-feature-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.sub-feature-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

/* ── CTA Button ── */
.btn-subscribe-cta {
    width: 100%;
    background: var(--red);
    border: none;
    border-radius: 10px;
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-subscribe-cta:hover {
    background: var(--red-dim);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(228, 57, 37, 0.3);
}

.btn-subscribe-cta:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-subscribe-arrow {
    font-size: 18px;
    transition: transform 0.2s;
}

.btn-subscribe-cta:hover .btn-subscribe-arrow {
    transform: translateX(3px);
}

.sub-note {
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    margin-top: 14px;
    letter-spacing: 0.2px;
}

/* ── Step indicator ── */
.sub-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 10px;
}

.sub-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    background: var(--surface2);
    transition: all 0.3s;
}

.sub-step-dot.active {
    border-color: var(--red);
    color: var(--red);
    background: var(--red-alpha-10);
}

.sub-step-dot.done {
    border-color: var(--green);
    color: white;
    background: var(--green);
}

.sub-step-line {
    width: 32px;
    height: 2px;
    background: var(--border2);
}

/* ── Form fields ── */
.sub-form-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px;
    letter-spacing: 1px;
    color: var(--text);
    text-align: center;
    margin-bottom: 4px;
}

.sub-form-subtitle {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    margin-bottom: 24px;
}

.sub-field {
    margin-bottom: 18px;
}

.sub-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.sub-field input[type="text"],
.sub-field input[type="email"],
.sub-field input[type="password"],
.sub-field input[type="tel"] {
    width: 100%;
    background: var(--black);
    border: 1px solid var(--border2);
    border-radius: 8px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.2s;
}

.sub-field input:focus {
    border-color: var(--red);
}

.sub-field input::placeholder {
    color: var(--input-placeholder);
}

.sub-field-note {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}

/* ── Type selection buttons ── */
.sub-type-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sub-type-btn {
    flex: 1;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
    background: var(--surface2);
    border: 2px solid var(--border2);
    border-radius: 10px;
    color: var(--text-secondary);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.sub-type-btn:hover {
    border-color: var(--text-secondary);
}

.sub-type-btn.selected {
    border-color: var(--red);
    background: var(--red-alpha-10);
    color: var(--text);
    box-shadow: 0 0 0 3px var(--red-alpha-20);
}

.sub-type-icon {
    font-size: 24px;
}

/* ── Theme selection ── */
.sub-theme-row {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.sub-theme-btn {
    flex: 1;
    padding: 10px;
    background: var(--surface2);
    border: 2px solid var(--border2);
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.sub-theme-btn:hover {
    border-color: var(--text-secondary);
}

.sub-theme-btn.active {
    border-color: var(--red);
    background: var(--red-alpha-10);
    color: var(--text);
}

/* ── Upload zone ── */
.sub-upload-zone {
    width: 100%;
    border: 2px dashed var(--border2);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.sub-upload-zone:hover {
    border-color: var(--muted);
    background: var(--surface2);
}

.sub-upload-label {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

.sub-upload-label span {
    font-size: 10px;
    color: var(--input-placeholder);
}

.sub-upload-preview {
    max-width: 120px;
    max-height: 80px;
    border-radius: 6px;
    object-fit: contain;
}

/* ── Form actions ── */
.sub-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-sub-back {
    padding: 14px 20px;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 10px;
    color: var(--text-secondary);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-sub-back:hover {
    border-color: var(--text-secondary);
    color: var(--text);
}

.sub-form-error {
    background: var(--toast-error-bg);
    border: 1px solid var(--toast-error-border);
    color: var(--toast-error-color);
    font-size: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 4px;
}

/* ── Spinner ── */
.sub-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: subSpin 0.6s linear infinite;
}

@keyframes subSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Animations d'entrée ──────────────────────────────────────────────────── */
.anim {
    opacity: 0;
    transform: translateY(20px);
    animation: reveal 0.6s ease forwards;
}

.anim:nth-child(1) {
    animation-delay: 0.1s;
}

.anim:nth-child(2) {
    animation-delay: 0.2s;
}

.anim:nth-child(3) {
    animation-delay: 0.32s;
}

.anim:nth-child(4) {
    animation-delay: 0.44s;
}

.anim:nth-child(5) {
    animation-delay: 0.55s;
}

.anim:nth-child(6) {
    animation-delay: 0.65s;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TARIFS ADMIN
   ═══════════════════════════════════════════════════════════════════════════ */
.tarifs-entreprise-select {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.tarifs-entreprise-select label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.tarifs-entreprise-select select {
    background: var(--input-bg);
    border: 1px solid var(--border2);
    border-radius: 8px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    padding: 10px 14px;
    outline: none;
    cursor: pointer;
    min-width: 240px;
    transition: border-color 0.15s;
}

.tarifs-entreprise-select select:focus {
    border-color: var(--red);
}

.tarifs-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    font-size: 14px;
}

.tarifs-toolbar {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}

.tarifs-section {
    margin-bottom: 24px;
}

.tarifs-sec-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 0 4px;
}

.tarifs-sec-icon {
    font-size: 22px;
    line-height: 1;
}

.tarifs-sec-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 1px;
    color: var(--text);
    flex: 1;
}

.tarifs-sec-actions {
    display: flex;
    gap: 6px;
}

.tarifs-act-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid var(--border2);
    background: var(--surface2);
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.tarifs-act-btn:hover {
    border-color: var(--red);
    background: var(--red-alpha-10);
}

.tarifs-act-danger {
    color: var(--red);
}

.tarifs-act-danger:hover {
    background: var(--red-alpha-20);
}

.tarifs-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.tarifs-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.1s;
}

.tarifs-row:hover {
    background: var(--surface3);
}

.tarifs-row-last {
    border-bottom: none;
}

.tarifs-row-label {
    flex: 1;
    font-size: 13px;
    color: var(--text);
    padding-right: 12px;
    padding: 4px 2px;
}

.tarifs-row-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--red);
    min-width: 80px;
    text-align: right;
    white-space: nowrap;
}

.tarifs-row-free {
    color: var(--green-text);
}

.tarifs-row-acts {
    display: flex;
    gap: 4px;
    margin-left: 10px;
}

.tarifs-act-btn-sm {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    border: 1px solid var(--border2);
    background: var(--surface3);
    color: var(--text);
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.tarifs-act-btn-sm:hover {
    border-color: var(--red);
}

.tarifs-act-danger-sm {
    color: var(--red);
}

.tarifs-note {
    font-size: 11px;
    color: var(--muted);
    font-style: italic;
    margin-top: 6px;
    padding-left: 6px;
}

.tarifs-empty-cat {
    padding: 20px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    font-style: italic;
}

.tarifs-add-item {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--red);
    font-size: 13px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    border-top: 1px dashed var(--border2);
    margin-top: 4px;
    transition: background 0.15s;
}

.tarifs-add-item:hover {
    background: var(--red-alpha-10);
}

.tarifs-add-cat {
    display: block;
    width: 100%;
    padding: 16px;
    text-align: center;
    border: 2px dashed var(--border2);
    border-radius: 10px;
    background: transparent;
    color: var(--red);
    font-size: 15px;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.15s;
}

.tarifs-add-cat:hover {
    border-color: var(--red);
    background: var(--red-alpha-10);
}

/* ── Modal tarifs ── */
.tarifs-modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    backdrop-filter: var(--overlay-blur);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.2s;
}

.tarifs-modal-overlay.open {
    opacity: 1;
}

.tarifs-modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    max-height: 85vh;
    overflow-y: auto;
}

.tarifs-modal-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 1px;
    color: var(--text);
    margin-bottom: 20px;
    text-align: center;
}

.tarifs-modal-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    margin-top: 16px;
}

.tarifs-modal-input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border2);
    border-radius: 8px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    padding: 10px 14px;
    outline: none;
    transition: border-color 0.15s;
}

.tarifs-modal-input:focus {
    border-color: var(--red);
}

.tarifs-modal-input::placeholder {
    color: var(--input-placeholder);
}

.tarifs-modal-btns {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.tarifs-icon-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 4px;
}

.tarifs-icon-pick {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--border2);
    background: var(--surface2);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.tarifs-icon-pick:hover {
    border-color: var(--text-secondary);
    background: var(--surface3);
}

.tarifs-icon-pick.active {
    border-color: var(--red);
    background: var(--red-alpha-20);
    box-shadow: 0 0 0 2px var(--red-alpha-25);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — LANDING PAGE TABLET (769px–1024px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-grid {
        gap: 40px;
        max-width: 900px;
    }

    .illustration {
        min-height: 300px;
        padding-bottom: 0px;
    }

    .illustration .carton {
        width: 60%;
        max-width: 220px;
    }

    .float-icon.bike {
        width: 46%;
    }

    .float-icon.car {
        width: 34%;
    }

    .float-icon.laptop {
        width: 30%;
    }

    .cta-subscribe {
        width: 240px;
    }

    .cta-subscribe-title {
        font-size: 20px;
    }

    .hero {
        padding: 70px 24px 90px;
    }

    .tagline {
        font-size: 14px;
        max-width: 360px;
    }

    .content {
        gap: 22px;
    }

    .mainlogo {
        max-width: 90%;
    }

    footer {
        padding: 14px 20px;
        gap: 24px;
    }

    footer a {
        font-size: 10px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — ADMIN
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .main {
        padding: 16px;
    }

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

    .form-group.full {
        grid-column: 1;
    }

    .modal-depot {
        width: 96vw;
        right: -96vw;
    }

    .dm-card {
        width: 100%;
    }

    .dd-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .page-title {
        font-size: 28px;
    }

    /* Table: horizontal scroll on mobile */
    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 40%;
        max-width: 640px;
    }

    /* Stats: 2 columns on tablet, tighter */
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-value {
        font-size: 30px;
    }

    /* Drawer full width */
    .drawer {
        width: 100vw;
        right: -100vw;
    }

    /* Depot global filters stack */
    .depot-global-filters {
        flex-direction: column;
    }

    .depot-global-filters .form-input {
        max-width: 100%;
    }

    /* Tarifs select full width */
    .tarifs-entreprise-select {
        flex-direction: column;
        align-items: flex-start;
    }

    .tarifs-entreprise-select select {
        min-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 12px;
    }

    .topbar {
        padding: 0 14px;
    }

    .topbar-brand {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .topbar-label {
        display: none;
    }

    .page-title {
        font-size: 24px;
    }

    /* Stats: still 2 cols but even smaller */
    .stats-row {
        gap: 8px;
        margin-bottom: 16px;
    }

    .stat-card {
        padding: 10px;
    }

    .stat-label {
        font-size: 9px;
        letter-spacing: 1.5px;
        margin-bottom: 4px;
    }

    .stat-value {
        font-size: 24px;
    }

    /* Depot cards tighter */
    .depot-card {
        padding: 12px;
    }

    .depot-card-vehicle {
        font-size: 14px;
    }

    /* Log table compact */
    .log-table td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .log-table thead th {
        padding: 8px 10px;
    }
}

@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* ── Illustration on top, smaller ── */
    .illustration {
        min-height: 200px;
        max-width: 80%;
        order: -1;
        padding-bottom: 0px;
        margin: 0 auto;
    }

    .illustration .carton {
        width: 50%;
        max-width: 180px;
    }

    .float-icon.bike {
        width: 44%;
    }

    .float-icon.car {
        width: 32%;
        top: 24%;
        left: 0;
    }

    .float-icon.laptop {
        width: 28%;
        top: 16%;
        right: 2%;
    }

    .illustration-badge {
        font-size: 11px;
        padding: 4px 10px;
        bottom: -8px;
        right: 8%;
    }

    /* ── CTA subscribe repositioned ── */
    .cta-subscribe {
        display: flex;
        position: relative;
        top: 40px;
        bottom: auto;
        left: auto;
        transform: none;
        width: auto;
        max-width: auto;
        margin: 10px 40px 0px 40px;
    }

    .cta-subscribe-badge {
        font-size: 12px;
        padding: 3px 10px;
    }

    .cta-subscribe-inner {
        padding: 12px 16px;
        flex:1;
    }

    .cta-subscribe-title {
        font-size: 24px;
    }

    .cta-subscribe-price {
        font-size: 14px;
    }

    .cta-subscribe-price span {
        font-size: 13px;
    }

    .cta-subscribe-price strong {
        font-size: 17px;
    }

    .cta-subscribe-arrow {
        display: none;
    }

    /* ── Content column ── */
    .content {
        gap: 18px;
        padding: 0 10px;
    }

    .mainlogo {
        max-width: 70%;
    }

    .tagline {
        font-size: 15px;
        line-height: 1.65;
        max-width: 340px;
        text-align: center;
    }

    h1 {
        font-size: 48px;
    }

    .eyebrow {
        font-size: 14px;
        letter-spacing: 2px;
    }

    /* ── Pills wrap better ── */
    .type-pills {
        justify-content: center;
        gap: 6px;
    }

    .pill {
        font-size: 14px;
        padding: 5px 10px;
    }

    /* ── Store buttons smaller ── */
    .download-row {
        gap: 10px;
    }

    .btn-store {
        min-width: 130px;
        max-width: 200px;
    }

    .btn-store-icon {
        max-width: 200px;
    }

    /* ── Hero spacing ── */
    .hero {
        padding: 70px 16px 80px;
        min-height: auto;
    }

    .hero::after {
        display: none;
    }

    /* ── Footer ── */
    footer {
        position: relative;
        gap: 16px;
        padding: 14px 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    footer a {
        font-size: 10px;
        flex: none;
        text-align: center;
    }

    footer .sep {
        display: none;
    }

    /* ── Topbar ── */
    .landing-topbar {
        height: 52px;
        padding: 0 12px;
    }

    .topbar-logo {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .btn-admin {
        font-size: 14px;
        padding: 6px 8px;
        letter-spacing: 1px;
    }

    /* ── Modals ── */
    .modal-box {
        padding: 28px 24px;
        max-width: 92vw;
    }

    .sub-modal {
        padding: 24px 18px;
        max-width: 94vw;
        max-height: 88vh;
        border-radius: 14px;
    }

    .sub-hero-amount {
        font-size: 38px;
    }

    .sub-hero-amount span {
        font-size: 16px;
    }

    .sub-pitch {
        font-size: 13px;
    }

    .sub-feature {
        padding: 10px 12px;
        gap: 10px;
    }

    .sub-feature-icon {
        font-size: 18px;
        width: 28px;
    }

    .sub-feature-title {
        font-size: 12px;
    }

    .sub-feature-desc {
        font-size: 11px;
    }

    .btn-subscribe-cta {
        font-size: 14px;
        padding: 13px 16px;
    }

    .sub-form-title {
        font-size: 22px;
    }

    .sub-type-grid {
        flex-direction: column;
    }

    .sub-type-btn {
        flex-direction: row;
        min-width: auto;
        padding: 12px 14px;
    }

    .sub-form-actions {
        flex-direction: column;
    }

    .btn-sub-back {
        order: 2;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SMALL MOBILE (< 400px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 400px) {
    .hero {
        padding: 60px 12px 70px;
    }

    .illustration {
        min-height: 170px;
        max-width: 90%;
        padding-bottom: 0px;
    }

    .illustration .carton {
        width: 45%;
        max-width: 150px;
    }

    .float-icon.bike {
        width: 40%;
    }

    .float-icon.car {
        width: 28%;
    }

    .float-icon.laptop {
        width: 24%;
    }

    .cta-subscribe {
        max-width: 330px;
    }

    .cta-subscribe-inner {
        padding: 10px 12px;
    }

    .cta-subscribe-badge {
        font-size: 14px;
        padding: 3px 8px;
    }

    .cta-subscribe-title {
        font-size: 26px;
        letter-spacing: 1.5px;
    }

    .cta-subscribe-price {
        font-size: 12px;
    }

    .cta-subscribe-price strong {
        font-size: 13px;
    }

    .content {
        gap: 14px;
    }

    .mainlogo {
        max-width: 85%;
    }

    .tagline {
        font-size: 16px;
        max-width: 300px;
    }

    .eyebrow {
        font-size: 14px;
    }

    h1 {
        font-size: 40px;
    }

    .type-pills {
        gap: 4px;
    }

    .pill {
        font-size: 12px;
        padding: 4px 8px;
        letter-spacing: 0.5px;
    }

    .download-row {
        flex-direction: column;
        gap: 8px;
    }

    .btn-store {
        min-width: 115px;
        max-width: 200px;
    }

    .btn-store-icon {
        max-width: 200px;
    }

    .landing-topbar {
        height: 48px;
        padding: 0 10px;
    }

    .topbar-logo {
        font-size: 20px;
    }

    .btn-admin {
        font-size: 14px;
        padding: 5px 6px;
        letter-spacing: 0.8px;
    }

    footer {
        padding: 12px;
    }

    footer a {
        font-size: 9px;
    }

    .modal-box {
        padding: 24px 18px;
    }

    .sub-modal {
        padding: 20px 14px;
        max-width: 96vw;
    }

    .sub-hero-amount {
        font-size: 32px;
    }

    .sub-hero-price {
        padding: 14px 0;
    }

    .sub-pitch {
        font-size: 12px;
        margin-bottom: 18px;
    }

    .sub-features {
        gap: 10px;
        margin-bottom: 22px;
    }

    .sub-feature {
        padding: 8px 10px;
    }

    .sub-field label {
        font-size: 11px;
    }

    .sub-field input[type="text"],
    .sub-field input[type="email"],
    .sub-field input[type="password"],
    .sub-field input[type="tel"] {
        font-size: 13px;
        padding: 10px 12px;
    }

    .sub-offer-badge {
        font-size: 10px;
        padding: 4px 10px;
    }

    .sub-step-dot {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .sub-step-line {
        width: 24px;
    }
}