/* =====================================================================
   NEXUS THEME — design system double variante (clair / sombre)
   Vanilla CSS, aucun framework. La variante est pilotée par
   <html data-theme="light|dark"> (définie par le PHP + toggle utilisateur).
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
    --nx-font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --nx-font-display: 'Sora', var(--nx-font-body);

    --nx-accent: #2f6bff;
    --nx-accent-2: #8b5cf6;
    --nx-gradient: linear-gradient(120deg, var(--nx-accent) 0%, var(--nx-accent-2) 100%);
    --nx-success: #16a34a;
    --nx-danger: #dc2626;
    --nx-warning: #f59e0b;

    --nx-radius-lg: 22px;
    --nx-radius: 14px;
    --nx-radius-sm: 9px;
    --nx-transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    --nx-container: 1280px;
}

html[data-theme="light"] {
    color-scheme: light;
    --nx-bg: #f5f7fb;
    --nx-bg-alt: #eceff7;
    --nx-surface: #ffffff;
    --nx-surface-2: #f1f4fa;
    --nx-ink: #0d1322;
    --nx-ink-2: #3c4456;
    --nx-muted: #69728a;
    --nx-border: rgba(13, 19, 34, 0.1);
    --nx-shadow: 0 18px 45px -18px rgba(13, 19, 34, 0.22);
    --nx-shadow-sm: 0 6px 18px -8px rgba(13, 19, 34, 0.18);
    --nx-glass: rgba(255, 255, 255, 0.78);
    --nx-glass-border: rgba(13, 19, 34, 0.08);
    --nx-hero-glow-1: rgba(47, 107, 255, 0.16);
    --nx-hero-glow-2: rgba(139, 92, 246, 0.14);
    --nx-img-bg: #e9edf5;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --nx-bg: #0a0d14;
    --nx-bg-alt: #0e1119;
    --nx-surface: #12161f;
    --nx-surface-2: #1a1f2c;
    --nx-ink: #f3f5fb;
    --nx-ink-2: #c4cad9;
    --nx-muted: #8f97ac;
    --nx-border: rgba(243, 245, 251, 0.1);
    --nx-shadow: 0 22px 50px -20px rgba(0, 0, 0, 0.65);
    --nx-shadow-sm: 0 8px 20px -10px rgba(0, 0, 0, 0.55);
    --nx-glass: rgba(14, 17, 25, 0.72);
    --nx-glass-border: rgba(243, 245, 251, 0.09);
    --nx-hero-glow-1: rgba(47, 107, 255, 0.22);
    --nx-hero-glow-2: rgba(139, 92, 246, 0.2);
    --nx-img-bg: #161b26;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--nx-font-body);
    background-color: var(--nx-bg);
    color: var(--nx-ink);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
    transition: background-color 0.35s ease, color 0.35s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }

h1, h2, h3, h4, h5 {
    font-family: var(--nx-font-display);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--nx-ink);
}

::selection { background: var(--nx-accent); color: #fff; }

.nx-container {
    max-width: var(--nx-container);
    margin: 0 auto;
    padding: 0 22px;
}

section { position: relative; }
.nx-section { padding: 90px 0; }
.nx-section-alt { background: var(--nx-bg-alt); }

/* Titres de section */
.nx-section-head { max-width: 640px; margin: 0 auto 54px; text-align: center; }
.nx-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--nx-accent);
    margin-bottom: 14px;
}
.nx-kicker::before { content: ''; width: 26px; height: 2px; background: var(--nx-gradient); border-radius: 2px; }
.nx-kicker::after { content: ''; width: 26px; height: 2px; background: var(--nx-gradient); border-radius: 2px; }
.nx-section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.nx-section-head p { color: var(--nx-muted); font-size: 17px; }

.nx-grad-text {
    background: var(--nx-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- 3. Boutons ---------- */
.nx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid transparent;
    transition: transform var(--nx-transition), box-shadow var(--nx-transition), background var(--nx-transition), color var(--nx-transition), border-color var(--nx-transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.nx-btn-primary {
    background: var(--nx-gradient);
    color: #fff;
    box-shadow: 0 10px 26px -10px rgba(47, 107, 255, 0.6);
}
.nx-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(47, 107, 255, 0.7); }
.nx-btn-primary:active { transform: translateY(0); }

.nx-btn-ghost {
    background: transparent;
    color: var(--nx-ink);
    border-color: var(--nx-border);
}
.nx-btn-ghost:hover { border-color: var(--nx-accent); color: var(--nx-accent); transform: translateY(-2px); }

.nx-btn-light {
    background: var(--nx-surface);
    color: var(--nx-ink);
    border-color: var(--nx-border);
    box-shadow: var(--nx-shadow-sm);
}
.nx-btn-light:hover { color: var(--nx-accent); transform: translateY(-2px); }

.nx-btn-lg { padding: 16px 34px; font-size: 16px; }
.nx-btn-sm { padding: 9px 18px; font-size: 13.5px; }
.nx-btn-block { width: 100%; }
.nx-btn[disabled] { opacity: 0.6; pointer-events: none; }

/* Shine au survol des boutons primaires */
.nx-btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
    transform: translateX(-110%);
    transition: transform 0.6s ease;
}
.nx-btn-primary:hover::after { transform: translateX(110%); }

/* ---------- 4. Barre de progression + topbar + header ---------- */
.nx-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: var(--nx-gradient);
    z-index: 1300;
    transition: width 0.12s linear;
}

.nx-topbar {
    background: var(--nx-surface);
    border-bottom: 1px solid var(--nx-border);
    font-size: 13.5px;
}
.nx-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    gap: 14px;
}
.nx-topbar-info { display: flex; align-items: center; gap: 14px; color: var(--nx-muted); min-width: 0; }
.nx-topbar-info a { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--nx-ink-2); transition: color var(--nx-transition); }
.nx-topbar-info a:hover { color: var(--nx-accent); }
.nx-topbar-info i { color: var(--nx-accent); font-size: 12px; }
.nx-topbar-address { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-topbar-sep { width: 1px; height: 14px; background: var(--nx-border); }
.nx-topbar-socials { display: flex; gap: 4px; }
.nx-topbar-socials a {
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--nx-muted);
    font-size: 12.5px;
    transition: all var(--nx-transition);
}
.nx-topbar-socials a:hover { background: var(--nx-gradient); color: #fff; transform: translateY(-2px); }

.nx-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: var(--nx-glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--nx-glass-border);
    transition: box-shadow var(--nx-transition), background var(--nx-transition);
}
.nx-header.scrolled { box-shadow: var(--nx-shadow-sm); }
.nx-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
}

.nx-logo { display: flex; align-items: center; }
.nx-logo img { max-height: 56px; width: auto; transition: transform var(--nx-transition); }
.nx-logo:hover img { transform: scale(1.04); }
.nx-logo-text { font-family: var(--nx-font-display); font-size: 22px; font-weight: 800; }

.nx-nav ul { display: flex; gap: 4px; }
.nx-nav a {
    display: block;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    color: var(--nx-ink-2);
    position: relative;
    transition: color var(--nx-transition), background var(--nx-transition);
}
.nx-nav a:hover { color: var(--nx-ink); background: var(--nx-surface-2); }
.nx-nav li.active a { color: var(--nx-accent); background: color-mix(in srgb, var(--nx-accent) 11%, transparent); }

.nx-header-actions { display: flex; align-items: center; gap: 12px; }

.nx-theme-toggle {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--nx-border);
    background: var(--nx-surface);
    color: var(--nx-ink);
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--nx-transition);
    position: relative;
}
.nx-theme-toggle:hover { border-color: var(--nx-accent); color: var(--nx-accent); transform: rotate(15deg); }
html[data-theme="light"] .nx-icon-sun { display: none; }
html[data-theme="dark"] .nx-icon-moon { display: none; }

.nx-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nx-burger span { width: 24px; height: 2.5px; border-radius: 2px; background: var(--nx-ink); transition: all var(--nx-transition); }
.nx-burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nx-burger.open span:nth-child(2) { opacity: 0; }
.nx-burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Menu mobile */
.nx-mobile-menu {
    position: fixed;
    top: 0; right: -320px;
    width: 300px;
    height: 100dvh;
    background: var(--nx-surface);
    z-index: 1250;
    padding: 90px 26px 30px;
    transition: right 0.45s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: var(--nx-shadow);
    overflow-y: auto;
}
.nx-mobile-menu.open { right: 0; }
.nx-mobile-menu ul li { margin-bottom: 6px; }
.nx-mobile-menu ul a {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 14px;
    border-radius: var(--nx-radius-sm);
    font-weight: 600;
    transition: all var(--nx-transition);
}
.nx-mobile-menu ul a i { color: var(--nx-accent); width: 18px; text-align: center; }
.nx-mobile-menu ul a:hover { background: var(--nx-surface-2); padding-left: 20px; }
.nx-mobile-phone { margin-top: 22px; }

.nx-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 14, 0.55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--nx-transition), visibility var(--nx-transition);
    z-index: 1200;
}
.nx-overlay.show { opacity: 1; visibility: visible; }

/* ---------- 5. Hero ---------- */
.nx-hero {
    position: relative;
    padding: 110px 0 140px;
    overflow: hidden;
}
.nx-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.16;
    filter: saturate(0.7);
}
html[data-theme="dark"] .nx-hero-bg { opacity: 0.22; filter: saturate(0.6) brightness(0.7); }

.nx-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    animation: nx-float 14s ease-in-out infinite;
}
.nx-blob-1 { width: 480px; height: 480px; background: var(--nx-hero-glow-1); top: -140px; right: -90px; }
.nx-blob-2 { width: 420px; height: 420px; background: var(--nx-hero-glow-2); bottom: -160px; left: -110px; animation-delay: -7s; }

@keyframes nx-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 26px) scale(1.07); }
}

.nx-hero-content { position: relative; z-index: 2; max-width: 760px; }
.nx-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--nx-glass);
    border: 1px solid var(--nx-glass-border);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--nx-ink-2);
    margin-bottom: 26px;
}
.nx-hero-badge i { color: var(--nx-accent); }
.nx-hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    margin-bottom: 22px;
}
.nx-hero p.nx-hero-sub {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--nx-muted);
    max-width: 560px;
    margin-bottom: 36px;
}
.nx-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.nx-hero-stats {
    display: flex;
    gap: 38px;
    margin-top: 52px;
    flex-wrap: wrap;
}
.nx-stat .nx-stat-num {
    font-family: var(--nx-font-display);
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}
.nx-stat .nx-stat-label { color: var(--nx-muted); font-size: 13.5px; margin-top: 6px; }

/* Carte de recherche flottante */
.nx-search-wrap { position: relative; z-index: 5; margin-top: -78px; }
.nx-search-card {
    background: var(--nx-glass);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--nx-glass-border);
    border-radius: var(--nx-radius-lg);
    box-shadow: var(--nx-shadow);
    padding: 26px;
}
.nx-search-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 14px;
    align-items: end;
}
.nx-search-form .nx-field { min-width: 0; }
.nx-search-submit { height: 50px; }

/* ---------- 6. Champs de formulaire ---------- */
.nx-field label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--nx-ink-2);
    margin-bottom: 7px;
}
.nx-field label i { color: var(--nx-accent); font-size: 12px; }

.nx-input, .nx-select, .nx-textarea {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border-radius: var(--nx-radius-sm);
    border: 1.5px solid var(--nx-border);
    background: var(--nx-surface);
    color: var(--nx-ink);
    transition: border-color var(--nx-transition), box-shadow var(--nx-transition);
    appearance: none;
}
.nx-textarea { height: auto; min-height: 140px; padding: 14px 16px; resize: vertical; }
.nx-input:focus, .nx-select:focus, .nx-textarea:focus {
    outline: none;
    border-color: var(--nx-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--nx-accent) 16%, transparent);
}
.nx-input::placeholder, .nx-textarea::placeholder { color: var(--nx-muted); }

.nx-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232f6bff' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
    cursor: pointer;
}
.nx-select option { background: var(--nx-surface); color: var(--nx-ink); }

.nx-input.input-error, .nx-select.input-error, .nx-textarea.input-error { border-color: var(--nx-danger); }
.nx-error { color: var(--nx-danger); font-size: 13px; margin-top: 5px; min-height: 0; }
.nx-form-msg { margin-top: 18px; font-weight: 700; text-align: center; display: none; }
.nx-form-msg.success { display: block; color: var(--nx-success); }
.nx-form-msg.error { display: block; color: var(--nx-danger); }

.nx-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.nx-form-grid .nx-span-2 { grid-column: span 2; }

.nx-form-note { color: var(--nx-muted); font-size: 13px; margin-top: 16px; text-align: center; }
.nx-form-note i { color: var(--nx-accent); margin-right: 6px; }

/* Spinner bouton */
.nx-spinner {
    width: 18px; height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: nx-spin 0.7s linear infinite;
    display: none;
}
.nx-btn.loading .nx-spinner { display: inline-block; }
.nx-btn.loading .nx-btn-label i { display: none; }
@keyframes nx-spin { to { transform: rotate(360deg); } }

/* ---------- 7. Cartes véhicules ---------- */
.nx-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 26px;
}

.nx-car-card {
    background: var(--nx-surface);
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius-lg);
    overflow: hidden;
    transition: transform var(--nx-transition), box-shadow var(--nx-transition), border-color var(--nx-transition);
    display: flex;
    flex-direction: column;
    position: relative;
}
.nx-car-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--nx-shadow);
    border-color: color-mix(in srgb, var(--nx-accent) 40%, var(--nx-border));
}

.nx-car-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--nx-img-bg);
}
.nx-car-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.nx-car-card:hover .nx-car-media img { transform: scale(1.07); }

.nx-car-badges { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; gap: 8px; z-index: 2; }
.nx-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.nx-badge-available { background: rgba(22, 163, 74, 0.92); }
.nx-badge-reserved { background: rgba(220, 38, 38, 0.92); }
.nx-badge-new { background: var(--nx-gradient); }

.nx-car-price {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: var(--nx-glass);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--nx-glass-border);
    color: var(--nx-ink);
    border-radius: 999px;
    padding: 9px 18px;
    font-family: var(--nx-font-display);
    font-weight: 800;
    font-size: 17px;
    z-index: 2;
}

.nx-car-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.nx-car-title { font-size: 19px; margin-bottom: 4px; }
.nx-car-title a:hover { color: var(--nx-accent); }
.nx-car-version {
    color: var(--nx-muted);
    font-size: 13.5px;
    margin-bottom: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nx-car-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    padding: 14px 0;
    border-top: 1px solid var(--nx-border);
    margin-top: auto;
}
.nx-car-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--nx-ink-2);
    font-size: 13.5px;
    font-weight: 600;
    min-width: 0;
}
.nx-car-meta span > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-car-meta i { color: var(--nx-accent); font-size: 12.5px; width: 15px; text-align: center; flex-shrink: 0; }

.nx-car-actions { display: flex; gap: 10px; margin-top: 14px; }
.nx-car-actions .nx-btn { flex: 1; }

/* ---------- 8. Barre filtres + tri (page véhicules) ---------- */
.nx-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.nx-toolbar h3 { font-size: 21px; }
.nx-toolbar h3 strong { color: var(--nx-accent); }
.nx-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--nx-surface);
    border: 1px solid var(--nx-border);
    border-radius: 999px;
    padding: 7px 8px 7px 18px;
}
.nx-sort label { font-size: 13.5px; font-weight: 700; color: var(--nx-muted); white-space: nowrap; }
.nx-sort select {
    border: 0;
    background: transparent;
    color: var(--nx-ink);
    font-weight: 700;
    padding: 6px 30px 6px 8px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232f6bff' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    cursor: pointer;
}
.nx-sort select:focus { outline: none; }
.nx-sort select option { background: var(--nx-surface); color: var(--nx-ink); }

.nx-filters-card {
    background: var(--nx-surface);
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius-lg);
    padding: 26px;
    box-shadow: var(--nx-shadow-sm);
    margin-bottom: 44px;
}
.nx-filters-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.nx-filters-advanced {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.4s ease;
}
.nx-filters-advanced.open { max-height: 400px; opacity: 1; margin-top: 16px; }
.nx-filters-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.nx-advanced-toggle {
    background: none;
    border: 0;
    color: var(--nx-accent);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.nx-advanced-toggle i { transition: transform var(--nx-transition); }
.nx-advanced-toggle.open i { transform: rotate(180deg); }

/* Pagination */
.nx-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 52px; }
.nx-pagination a {
    min-width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--nx-surface);
    border: 1px solid var(--nx-border);
    font-weight: 700;
    transition: all var(--nx-transition);
}
.nx-pagination a:hover { border-color: var(--nx-accent); color: var(--nx-accent); transform: translateY(-2px); }
.nx-pagination a.active { background: var(--nx-gradient); color: #fff; border-color: transparent; }

.nx-empty {
    text-align: center;
    padding: 70px 20px;
    background: var(--nx-surface);
    border: 1px dashed var(--nx-border);
    border-radius: var(--nx-radius-lg);
    color: var(--nx-muted);
    grid-column: 1 / -1;
}
.nx-empty i { font-size: 40px; color: var(--nx-accent); margin-bottom: 16px; display: block; }

/* ---------- 9. Bande de marques (marquee) ---------- */
.nx-marquee { overflow: hidden; padding: 26px 0; border-top: 1px solid var(--nx-border); border-bottom: 1px solid var(--nx-border); }
.nx-marquee-track {
    display: flex;
    gap: 56px;
    width: max-content;
    animation: nx-marquee 36s linear infinite;
}
.nx-marquee:hover .nx-marquee-track { animation-play-state: paused; }
.nx-marquee-item {
    font-family: var(--nx-font-display);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--nx-muted);
    opacity: 0.75;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 56px;
}
.nx-marquee-item::after { content: '✦'; color: var(--nx-accent); font-size: 13px; }
@keyframes nx-marquee { to { transform: translateX(-50%); } }

/* ---------- 10. Features / process / CTA ---------- */
.nx-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}
.nx-feature {
    background: var(--nx-surface);
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius-lg);
    padding: 32px 26px;
    transition: transform var(--nx-transition), box-shadow var(--nx-transition);
    position: relative;
    overflow: hidden;
}
.nx-feature::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--nx-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s ease;
}
.nx-feature:hover { transform: translateY(-7px); box-shadow: var(--nx-shadow); }
.nx-feature:hover::before { transform: scaleX(1); }
.nx-feature-icon {
    width: 58px; height: 58px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--nx-accent) 12%, transparent);
    color: var(--nx-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    margin-bottom: 20px;
    transition: all var(--nx-transition);
}
.nx-feature:hover .nx-feature-icon { background: var(--nx-gradient); color: #fff; transform: rotate(-6deg) scale(1.06); }
.nx-feature h3 { font-size: 18px; margin-bottom: 9px; }
.nx-feature p { color: var(--nx-muted); font-size: 14.5px; }

/* Étapes (reprise / réservation) */
.nx-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
    counter-reset: nx-step;
}
.nx-step {
    background: var(--nx-surface);
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius-lg);
    padding: 30px 24px;
    position: relative;
    transition: transform var(--nx-transition), box-shadow var(--nx-transition);
}
.nx-step:hover { transform: translateY(-6px); box-shadow: var(--nx-shadow); }
.nx-step::before {
    counter-increment: nx-step;
    content: counter(nx-step, decimal-leading-zero);
    font-family: var(--nx-font-display);
    font-size: 42px;
    font-weight: 800;
    background: var(--nx-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.85;
    display: block;
    line-height: 1;
    margin-bottom: 16px;
}
.nx-step h3 { font-size: 17px; margin-bottom: 8px; }
.nx-step p { color: var(--nx-muted); font-size: 14px; }

/* CTA */
.nx-cta {
    position: relative;
    border-radius: var(--nx-radius-lg);
    overflow: hidden;
    padding: 70px 40px;
    text-align: center;
    background: var(--nx-gradient);
    color: #fff;
}
.nx-cta::before, .nx-cta::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}
.nx-cta::before { width: 300px; height: 300px; top: -150px; right: -80px; }
.nx-cta::after { width: 220px; height: 220px; bottom: -120px; left: -60px; }
.nx-cta h2 { color: #fff; font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 12px; position: relative; z-index: 1; }
.nx-cta p { color: rgba(255, 255, 255, 0.85); max-width: 560px; margin: 0 auto 30px; position: relative; z-index: 1; }
.nx-cta .nx-cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.nx-cta .nx-btn-light { background: #fff; color: var(--nx-accent); border: 0; }
.nx-cta .nx-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.nx-cta .nx-btn-ghost:hover { border-color: #fff; color: #fff; }

/* ---------- 11. En-tête de page interne ---------- */
.nx-page-head {
    position: relative;
    padding: 76px 0;
    overflow: hidden;
    background: var(--nx-bg-alt);
}
.nx-page-head .nx-blob-1 { width: 340px; height: 340px; top: -120px; right: 4%; }
.nx-page-head .nx-blob-2 { width: 280px; height: 280px; bottom: -140px; left: 2%; }
.nx-page-head h1 { font-size: clamp(30px, 4.6vw, 46px); position: relative; z-index: 1; }
.nx-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    color: var(--nx-muted);
    font-size: 14px;
    position: relative;
    z-index: 1;
}
.nx-breadcrumb a { font-weight: 600; transition: color var(--nx-transition); }
.nx-breadcrumb a:hover { color: var(--nx-accent); }
.nx-breadcrumb i { font-size: 10px; opacity: 0.7; }
.nx-breadcrumb .current { color: var(--nx-accent); font-weight: 700; }

/* ---------- 12. Page détails véhicule ---------- */
.nx-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
}

/* Galerie */
.nx-gallery { border-radius: var(--nx-radius-lg); overflow: hidden; }
.nx-gallery-main {
    position: relative;
    background: var(--nx-img-bg);
    border-radius: var(--nx-radius-lg);
    overflow: hidden;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nx-gallery-main img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: opacity 0.25s ease; }
.nx-gallery-main iframe { width: 100%; height: 100%; border: 0; }

.nx-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 0;
    background: var(--nx-glass);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--nx-ink);
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--nx-transition);
    z-index: 3;
}
.nx-gallery-nav:hover { background: var(--nx-gradient); color: #fff; transform: translateY(-50%) scale(1.08); }
.nx-gallery-prev { left: 16px; }
.nx-gallery-next { right: 16px; }

.nx-gallery-count {
    position: absolute;
    bottom: 16px; right: 16px;
    background: rgba(5, 8, 14, 0.6);
    color: #fff;
    border-radius: 999px;
    padding: 5px 15px;
    font-size: 13px;
    z-index: 3;
}
.nx-gallery-count .current { color: #9db8ff; font-weight: 800; }

.nx-gallery-fullscreen-btn {
    position: absolute;
    top: 16px; right: 16px;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 0;
    background: rgba(5, 8, 14, 0.55);
    color: #fff;
    z-index: 3;
    transition: all var(--nx-transition);
}
.nx-gallery-fullscreen-btn:hover { background: var(--nx-accent); transform: scale(1.08); }

.nx-gallery-reserved {
    position: absolute;
    top: 24px; left: -52px;
    background: var(--nx-danger);
    color: #fff;
    padding: 8px 60px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transform: rotate(-45deg);
    z-index: 3;
    box-shadow: var(--nx-shadow-sm);
}

.nx-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}
.nx-thumb {
    flex: 0 0 92px;
    height: 70px;
    border-radius: var(--nx-radius-sm);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.55;
    border: 2px solid transparent;
    background: var(--nx-img-bg);
    transition: all var(--nx-transition);
}
.nx-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nx-thumb:hover { opacity: 0.9; transform: translateY(-3px); }
.nx-thumb.active { opacity: 1; border-color: var(--nx-accent); }

/* Galerie plein écran */
.nx-gallery.fullscreen {
    position: fixed;
    inset: 0;
    z-index: 1400;
    background: rgba(4, 6, 11, 0.96);
    padding: 36px;
    display: flex;
    flex-direction: column;
    border-radius: 0;
}
.nx-gallery.fullscreen .nx-gallery-main { flex: 1; height: auto; background: transparent; }
.nx-gallery.fullscreen .nx-thumbs { justify-content: center; }

/* En-tête détail + prix */
.nx-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin: 34px 0 28px;
}
.nx-detail-head h1 { font-size: clamp(26px, 3.6vw, 38px); }
.nx-detail-version { color: var(--nx-muted); font-size: 16px; margin-top: 6px; }
.nx-detail-ref { color: var(--nx-muted); font-size: 13px; margin-top: 4px; }
.nx-price-box {
    background: var(--nx-surface);
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius);
    padding: 18px 30px;
    text-align: center;
    box-shadow: var(--nx-shadow-sm);
    position: relative;
    overflow: hidden;
}
.nx-price-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--nx-gradient); }
.nx-price-box.reserved::before { background: var(--nx-danger); }
.nx-price-box .nx-price { font-family: var(--nx-font-display); font-size: 30px; font-weight: 800; }
.nx-price-box .nx-price-label { color: var(--nx-muted); font-size: 13px; margin-top: 2px; }
.nx-price-box.reserved .nx-price { color: var(--nx-danger); }

/* Onglets */
.nx-tabs { background: var(--nx-surface); border: 1px solid var(--nx-border); border-radius: var(--nx-radius-lg); overflow: hidden; }
.nx-tabs-nav { display: flex; border-bottom: 1px solid var(--nx-border); overflow-x: auto; scrollbar-width: none; }
.nx-tabs-nav::-webkit-scrollbar { display: none; }
.nx-tabs-nav button {
    background: none;
    border: 0;
    padding: 18px 26px;
    font-weight: 700;
    font-size: 15px;
    color: var(--nx-muted);
    white-space: nowrap;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: color var(--nx-transition);
}
.nx-tabs-nav button::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 3px;
    background: var(--nx-gradient);
    transform: scaleX(0);
    transition: transform var(--nx-transition);
}
.nx-tabs-nav button.active, .nx-tabs-nav button:hover { color: var(--nx-ink); }
.nx-tabs-nav button.active::after { transform: scaleX(1); }
.nx-tab-panel { display: none; padding: 30px; }
.nx-tab-panel.active { display: block; animation: nx-fade 0.4s ease; }
@keyframes nx-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.nx-specs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.nx-spec {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--nx-surface-2);
    border-radius: var(--nx-radius-sm);
    padding: 14px 16px;
}
.nx-spec i {
    width: 38px; height: 38px;
    border-radius: 11px;
    background: color-mix(in srgb, var(--nx-accent) 12%, transparent);
    color: var(--nx-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.nx-spec .nx-spec-label { font-size: 12px; color: var(--nx-muted); }
.nx-spec .nx-spec-value { font-weight: 700; font-size: 14.5px; }

.nx-equip-list { columns: 3; column-gap: 28px; }
.nx-equip-list li {
    break-inside: avoid;
    margin-bottom: 12px;
    padding-left: 26px;
    position: relative;
    color: var(--nx-ink-2);
    font-size: 14.5px;
}
.nx-equip-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--nx-accent);
}

.nx-description { color: var(--nx-ink-2); font-size: 15.5px; }

/* Sidebar */
.nx-widget {
    background: var(--nx-surface);
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}
.nx-widget-title {
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 800;
    border-bottom: 1px solid var(--nx-border);
    background: var(--nx-surface-2);
    display: flex;
    align-items: center;
    gap: 10px;
}
.nx-widget-title i { color: var(--nx-accent); }
.nx-widget-body { padding: 22px 24px; }

.nx-details-list li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--nx-border);
    font-size: 14.5px;
}
.nx-details-list li:last-child { border-bottom: 0; }
.nx-details-list li span:first-child { color: var(--nx-muted); }
.nx-details-list li span:last-child { font-weight: 700; text-align: right; }

.nx-contact-list li { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.nx-contact-list li:last-child { margin-bottom: 0; }
.nx-contact-list i {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--nx-accent) 12%, transparent);
    color: var(--nx-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.nx-contact-list .label { font-size: 12.5px; color: var(--nx-muted); }
.nx-contact-list .value { font-weight: 700; font-size: 14.5px; }
.nx-contact-list .value a:hover { color: var(--nx-accent); }

/* Formulaire encadré */
.nx-form-card {
    background: var(--nx-surface);
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius-lg);
    box-shadow: var(--nx-shadow-sm);
    overflow: hidden;
}
.nx-form-card-head {
    padding: 28px 30px;
    border-bottom: 1px solid var(--nx-border);
    background: var(--nx-surface-2);
    position: relative;
}
.nx-form-card-head::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--nx-gradient); }
.nx-form-card-head h3 { font-size: 21px; margin-bottom: 5px; }
.nx-form-card-head p { color: var(--nx-muted); font-size: 14.5px; }
.nx-form-card-body { padding: 30px; }

/* ---------- 13. Pages résultat (success / cancel) ---------- */
.nx-result-card {
    max-width: 760px;
    margin: 0 auto;
    background: var(--nx-surface);
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius-lg);
    box-shadow: var(--nx-shadow);
    overflow: hidden;
    text-align: center;
}
.nx-result-head { padding: 46px 30px 34px; background: var(--nx-surface-2); position: relative; }
.nx-result-head::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; }
.nx-result-card.success .nx-result-head::before { background: linear-gradient(90deg, #16a34a, #4ade80); }
.nx-result-card.cancel .nx-result-head::before { background: linear-gradient(90deg, #dc2626, #f87171); }
.nx-result-icon {
    width: 92px; height: 92px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    margin-bottom: 20px;
    animation: nx-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes nx-pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.nx-result-card.success .nx-result-icon { background: rgba(22, 163, 74, 0.13); color: var(--nx-success); }
.nx-result-card.cancel .nx-result-icon { background: rgba(220, 38, 38, 0.13); color: var(--nx-danger); }
.nx-result-head h2 { font-size: 27px; }
.nx-result-head p { color: var(--nx-muted); margin-top: 8px; }
.nx-result-body { padding: 34px 38px; text-align: left; }
.nx-result-body > p { color: var(--nx-ink-2); margin-bottom: 14px; }
.nx-result-table { width: 100%; border-collapse: collapse; margin: 22px 0; }
.nx-result-table td { padding: 11px 0; border-bottom: 1px dashed var(--nx-border); font-size: 14.5px; }
.nx-result-table td:first-child { color: var(--nx-muted); }
.nx-result-table td:last-child { font-weight: 700; text-align: right; }
.nx-result-footer { padding: 26px 30px; border-top: 1px solid var(--nx-border); display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.nx-reasons li { padding: 11px 0 11px 30px; position: relative; color: var(--nx-ink-2); border-bottom: 1px dashed var(--nx-border); font-size: 14.5px; }
.nx-reasons li:last-child { border-bottom: 0; }
.nx-reasons li::before {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 2px;
    color: var(--nx-warning);
}

/* Bandeau récap réservation */
.nx-resa-summary {
    display: flex;
    align-items: center;
    gap: 22px;
    background: var(--nx-surface);
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius-lg);
    padding: 18px 24px;
    box-shadow: var(--nx-shadow-sm);
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.nx-resa-summary img { width: 132px; height: 88px; object-fit: cover; border-radius: var(--nx-radius-sm); background: var(--nx-img-bg); }
.nx-resa-summary .nx-resa-title { flex: 1; min-width: 200px; }
.nx-resa-summary h3 { font-size: 20px; }
.nx-resa-summary .sub { color: var(--nx-muted); font-size: 13.5px; margin-top: 3px; }
.nx-resa-summary .nx-resa-price { font-family: var(--nx-font-display); font-size: 26px; font-weight: 800; color: var(--nx-accent); }

.nx-info-banner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: color-mix(in srgb, var(--nx-accent) 9%, var(--nx-surface));
    border: 1px solid color-mix(in srgb, var(--nx-accent) 30%, transparent);
    border-left: 4px solid var(--nx-accent);
    border-radius: var(--nx-radius-sm);
    padding: 16px 18px;
    margin-bottom: 26px;
    font-size: 14.5px;
    color: var(--nx-ink-2);
}
.nx-info-banner i { color: var(--nx-accent); margin-top: 3px; }

.nx-secure {
    text-align: center;
    color: var(--nx-muted);
    margin-top: 20px;
    font-size: 13.5px;
}
.nx-secure .cards { display: flex; gap: 14px; justify-content: center; font-size: 26px; margin: 10px 0; color: var(--nx-muted); }

/* ---------- 14. Footer ---------- */
.nx-footer {
    position: relative;
    background: var(--nx-surface);
    border-top: 1px solid var(--nx-border);
    margin-top: 90px;
    overflow: hidden;
}
.nx-footer-glow {
    position: absolute;
    top: -180px; left: 50%;
    transform: translateX(-50%);
    width: 640px; height: 280px;
    background: radial-gradient(ellipse, var(--nx-hero-glow-1), transparent 70%);
    pointer-events: none;
}
.nx-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 44px;
    padding: 64px 0 44px;
    position: relative;
}
.nx-footer-logo { max-height: 54px; width: auto; margin-bottom: 18px; }
.nx-footer-logo-text { font-family: var(--nx-font-display); font-size: 22px; font-weight: 800; margin-bottom: 18px; }
.nx-footer-brand p { color: var(--nx-muted); font-size: 14.5px; max-width: 320px; }
.nx-footer-socials { display: flex; gap: 9px; margin-top: 20px; }
.nx-footer-socials a {
    width: 38px; height: 38px;
    border-radius: 12px;
    border: 1px solid var(--nx-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--nx-muted);
    transition: all var(--nx-transition);
}
.nx-footer-socials a:hover { background: var(--nx-gradient); color: #fff; border-color: transparent; transform: translateY(-3px); }

.nx-footer-col h4 {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}
.nx-footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 34px; height: 3px; border-radius: 2px; background: var(--nx-gradient); }

.nx-footer-links li { margin-bottom: 10px; }
.nx-footer-links a { color: var(--nx-muted); font-size: 14.5px; transition: all var(--nx-transition); }
.nx-footer-links a:hover { color: var(--nx-accent); padding-left: 6px; }

.nx-footer-contact li { display: flex; gap: 12px; color: var(--nx-muted); font-size: 14.5px; margin-bottom: 13px; align-items: baseline; }
.nx-footer-contact i { color: var(--nx-accent); width: 16px; text-align: center; }
.nx-footer-contact a:hover { color: var(--nx-accent); }

.nx-footer-bottom {
    border-top: 1px solid var(--nx-border);
    padding: 20px 0;
    text-align: center;
    color: var(--nx-muted);
    font-size: 13.5px;
}
.nx-footer-bottom p { margin: 0; }

/* Back to top */
.nx-backtotop {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 0;
    background: var(--nx-gradient);
    color: #fff;
    font-size: 16px;
    box-shadow: var(--nx-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--nx-transition);
    z-index: 1100;
}
.nx-backtotop.show { opacity: 1; visibility: visible; transform: none; }
.nx-backtotop:hover { transform: translateY(-4px); }

/* ---------- 15. Animations d'apparition ---------- */
.nx-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--nx-delay, 0s);
    will-change: opacity, transform;
}
.nx-reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
    .nx-reveal { opacity: 1; transform: none; }
}

/* ---------- 16. Responsive ---------- */
@media (max-width: 1080px) {
    .nx-search-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nx-search-submit { grid-column: span 2; }
    .nx-filters-grid, .nx-filters-advanced { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nx-detail-layout { grid-template-columns: 1fr; }
    .nx-footer-grid { grid-template-columns: 1fr 1fr; }
    .nx-equip-list { columns: 2; }
}

@media (max-width: 860px) {
    .nx-nav, .nx-header-cta { display: none; }
    .nx-burger { display: inline-flex; }
    .nx-topbar-address { display: none; }
    .nx-topbar-sep { display: none; }
    .nx-section { padding: 64px 0; }
    .nx-hero { padding: 80px 0 120px; }
    .nx-gallery-main { height: 380px; }
}

@media (max-width: 600px) {
    .nx-form-grid { grid-template-columns: 1fr; }
    .nx-form-grid .nx-span-2 { grid-column: span 1; }
    .nx-search-form { grid-template-columns: 1fr; }
    .nx-search-submit { grid-column: span 1; }
    .nx-filters-grid, .nx-filters-advanced { grid-template-columns: 1fr; }
    .nx-vehicles-grid { grid-template-columns: 1fr; }
    .nx-gallery-main { height: 290px; }
    .nx-equip-list { columns: 1; }
    .nx-hero-stats { gap: 24px; }
    .nx-footer-grid { grid-template-columns: 1fr; gap: 34px; }
    .nx-toolbar { flex-direction: column; align-items: flex-start; }
    .nx-detail-head { flex-direction: column; }
    .nx-price-box { width: 100%; }
    .nx-resa-summary { flex-direction: column; text-align: center; }
}
