/* ========================================
   LA CAISSE DU COIN — GARAGE PASSION REDESIGN
   Style: Vintage Workshop × Modern Automotive
   Palette: Charcoal · Beige · Olive · Orange Brûlé
   Fonts: Poiret One + Didact Gothic
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Poiret+One&family=Didact+Gothic&display=swap');

/* ========== CSS VARIABLES ========== */
:root {
    /* Palette principale */
    --c-charcoal:    #1a1a18;
    --c-charcoal-2:  #2a2a26;
    --c-charcoal-3:  #3a3a35;
    --c-olive:       #6B7D4F;
    --c-olive-light: #7d9460;
    --c-olive-dark:  #556040;
    --c-orange:      #C4622D;
    --c-orange-light:#d9763e;
    --c-orange-dark: #a84f22;
    --c-beige:       #F2EDE4;
    --c-beige-dark:  #E8E0D0;
    --c-sand:        #D4C9B0;
    --c-metal:       #8a8680;
    --c-metal-light: #b8b4ae;

    /* Texte */
    --c-text-dark:   #1a1a18;
    --c-text-body:   #3a3835;
    --c-text-muted:  #6b6860;
    --c-text-light:  #a8a49e;
    --c-text-white:  #F2EDE4;

    /* Fond */
    --c-bg:          #F2EDE4;
    --c-bg-alt:      #E8E0D0;
    --c-bg-dark:     #1a1a18;

    /* Status */
    --c-success:     #5a7d52;
    --c-warning:     #c4892d;
    --c-error:       #a84c3a;
    --c-info:        #4a6d8c;

    /* Typographie */
    --font-display:  'Poiret One', Georgia, serif;
    --font-body:     'Didact Gothic', Tahoma, sans-serif;

    /* Tailles fluides */
    --fs-hero:   clamp(2.8rem, 7vw, 5rem);
    --fs-h1:     clamp(2.2rem, 5vw, 3.5rem);
    --fs-h2:     clamp(1.7rem, 4vw, 2.5rem);
    --fs-h3:     clamp(1.3rem, 3vw, 1.8rem);
    --fs-h4:     1.2rem;
    --fs-body:   1rem;
    --fs-sm:     0.875rem;
    --fs-xs:     0.75rem;

    /* Espacement 8px grid */
    --sp-1:  4px;
    --sp-2:  8px;
    --sp-3:  12px;
    --sp-4:  16px;
    --sp-5:  20px;
    --sp-6:  24px;
    --sp-8:  32px;
    --sp-10: 40px;
    --sp-12: 48px;
    --sp-16: 64px;
    --sp-20: 80px;
    --sp-24: 96px;

    /* Rayons */
    --r-sm:  3px;
    --r-md:  6px;
    --r-lg:  12px;
    --r-xl:  20px;
    --r-full:9999px;

    /* Ombres chaudes */
    --shadow-sm:  0 1px 3px rgba(26,26,24,.10);
    --shadow-md:  0 4px 12px rgba(26,26,24,.13);
    --shadow-lg:  0 8px 24px rgba(26,26,24,.16);
    --shadow-xl:  0 16px 48px rgba(26,26,24,.20);
    --shadow-2xl: 0 32px 80px rgba(26,26,24,.25);

    /* Transitions */
    --dur-fast:   150ms;
    --dur-med:    280ms;
    --dur-slow:   500ms;
    --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);

    /* Z-index */
    --z-base:    1;
    --z-above:   10;
    --z-dropdown:100;
    --z-sticky:  200;
    --z-fixed:   500;
    --z-modal:   1000;
    --z-toast:   1100;

    /* Conteneur */
    --container: 1280px;
    --container-text: 740px;
}

/* ========== RESET ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--c-bg);
    color: var(--c-text-body);
    line-height: 1.7;
    font-size: var(--fs-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, video, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

ul, ol { list-style: none; }

input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--c-text-dark);
    line-height: 1.15;
    letter-spacing: 0.02em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-family: var(--font-body); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

p {
    margin-bottom: var(--sp-4);
    color: var(--c-text-body);
    line-height: 1.75;
    max-width: 65ch;
}

p.wide { max-width: none; }

a {
    color: var(--c-orange);
    text-decoration: none;
    cursor: pointer;
    transition: color var(--dur-fast) var(--ease-out);
}

a:hover { color: var(--c-orange-dark); }

a:focus-visible {
    outline: 2px solid var(--c-orange);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}

strong { font-weight: 700; color: var(--c-text-dark); }
em { font-style: italic; }

/* ========== LAYOUT ========== */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--sp-6);
}

.container--text {
    max-width: var(--container-text);
}

.section {
    padding-block: var(--sp-20);
}

.section--alt {
    background: var(--c-bg-alt);
}

.section--dark {
    background: var(--c-bg-dark);
    color: var(--c-text-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark p {
    color: var(--c-text-white);
}

.section--dark p {
    color: rgba(242, 237, 228, .80);
}

.section-header {
    margin-bottom: var(--sp-12);
}

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

.section-header--center p {
    margin-inline: auto;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--c-orange);
    margin-bottom: var(--sp-3);
}

.section--dark .section-tag {
    color: var(--c-sand);
}

.section-header h2 {
    margin-bottom: var(--sp-4);
}

.grid {
    display: grid;
    gap: var(--sp-6);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid--2,
    .grid--3,
    .grid--4 { grid-template-columns: 1fr; }
    .section { padding-block: var(--sp-12); }
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: var(--z-fixed);
    background: rgba(26, 26, 24, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(196, 98, 45, 0.2);
    transition: all var(--dur-med) var(--ease-out);
}

.navbar.scrolled {
    background: rgba(26, 26, 24, 0.99);
    box-shadow: var(--shadow-lg);
}

.navbar-container {
    max-width: var(--container);
    margin-inline: auto;
    padding: var(--sp-4) var(--sp-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-6);
}

.navbar-logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--c-beige);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out);
    flex-shrink: 0;
}

.navbar-logo:hover { color: var(--c-orange); }

.logo-emblem {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--c-orange);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--dur-fast) var(--ease-out);
}

.navbar-logo:hover .logo-emblem {
    background: var(--c-orange);
}

.logo-emblem svg {
    width: 18px;
    height: 18px;
    color: var(--c-orange);
    transition: color var(--dur-fast) var(--ease-out);
}

.navbar-logo:hover .logo-emblem svg {
    color: var(--c-beige);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--sp-8);
}

.nav-link {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(242, 237, 228, .75);
    padding-block: var(--sp-2);
    border-bottom: 1.5px solid transparent;
    transition: all var(--dur-fast) var(--ease-out);
    cursor: pointer;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--c-beige);
    border-bottom-color: var(--c-orange);
}

.navbar-cta {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-charcoal);
    background: var(--c-orange);
    padding: var(--sp-3) var(--sp-5);
    border-radius: var(--r-sm);
    text-decoration: none;
    transition: all var(--dur-fast) var(--ease-out);
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar-cta:hover {
    background: var(--c-orange-dark);
    color: var(--c-beige);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196, 98, 45, .4);
}

/* Hamburger */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--sp-2);
    z-index: var(--z-fixed);
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--c-beige);
    border-radius: 2px;
    transition: all var(--dur-med) var(--ease-out);
}

.navbar-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    padding: 14px 30px;
    border: 2px solid transparent;
    border-radius: var(--r-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--dur-med) var(--ease-out);
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    min-height: 48px;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 3px solid var(--c-orange);
    outline-offset: 3px;
}

.btn:active { transform: translateY(1px) !important; }

.btn-primary {
    background: var(--c-orange);
    color: var(--c-beige);
    border-color: var(--c-orange);
}

.btn-primary:hover {
    background: var(--c-orange-dark);
    border-color: var(--c-orange-dark);
    color: var(--c-beige);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(196, 98, 45, .35);
}

.btn-secondary {
    background: transparent;
    color: var(--c-beige);
    border-color: rgba(242, 237, 228, .5);
}

.btn-secondary:hover {
    background: var(--c-beige);
    color: var(--c-charcoal);
    border-color: var(--c-beige);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--c-orange);
    border-color: var(--c-orange);
}

.btn-outline:hover {
    background: var(--c-orange);
    color: var(--c-beige);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(196, 98, 45, .25);
}

.btn-ghost {
    background: transparent;
    color: var(--c-text-body);
    border-color: var(--c-sand);
}

.btn-ghost:hover {
    border-color: var(--c-orange);
    color: var(--c-orange);
    background: rgba(196, 98, 45, .05);
}

.btn-sm {
    font-size: var(--fs-xs);
    padding: 9px 18px;
    min-height: 36px;
}

.btn-lg {
    font-size: var(--fs-sm);
    padding: 17px 40px;
    min-height: 56px;
}

/* ========== CARDS ========== */
.card {
    background: #fff;
    border: 1px solid var(--c-beige-dark);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: all var(--dur-med) var(--ease-out);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(196, 98, 45, .25);
}

.card-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    transition: transform var(--dur-slow) var(--ease-out);
}

.card:hover .card-image {
    transform: scale(1.04);
}

.card-content {
    padding: var(--sp-6);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-4);
    flex-wrap: wrap;
}

/* ========== VEHICLE CARDS ========== */
.vehicle-card {
    cursor: pointer;
    position: relative;
}

.vehicle-card-image-wrap {
    position: relative;
    overflow: hidden;
}

.vehicle-card-badge {
    position: absolute;
    top: var(--sp-4);
    left: var(--sp-4);
    z-index: var(--z-above);
}

.vehicle-card-title {
    font-family: var(--font-display);
    font-size: var(--fs-h3);
    font-weight: 400;
    color: var(--c-text-dark);
    margin-bottom: var(--sp-3);
    letter-spacing: 0.02em;
}

.vehicle-card-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2) var(--sp-4);
    margin-block: var(--sp-4);
    padding: var(--sp-4);
    background: var(--c-bg);
    border-radius: var(--r-sm);
}

.vehicle-card-specs span {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vehicle-card-specs strong {
    color: var(--c-text-body);
    font-size: var(--fs-sm);
    font-weight: 700;
}

.vehicle-card-price {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--c-orange);
    letter-spacing: 0.02em;
    margin-block: var(--sp-4);
}

/* ========== BADGES ========== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: var(--r-sm);
    white-space: nowrap;
}

.badge-disponible,
.badge-en_vente  { background: rgba(90,125,82,.15);  color: #3a5e34; }
.badge-restaure,
.badge-restauré  { background: rgba(107,125,79,.15); color: #556040; }
.badge-prepare,
.badge-préparé   { background: rgba(74,109,140,.15); color: #2d5070; }
.badge-vendu     { background: rgba(168,76,58,.12);  color: #7a3020; }
.badge-reserve,
.badge-réservé   { background: rgba(196,137,45,.15); color: #7a5010; }

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--c-charcoal);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/assets/backgrounds/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease-out;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26,26,24,.88) 0%,
        rgba(26,26,24,.65) 50%,
        rgba(26,26,24,.50) 100%
    );
}

/* Texture grain */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--sp-24) var(--sp-6) var(--sp-16);
    max-width: 900px;
    margin-inline: auto;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--c-orange);
    margin-bottom: var(--sp-6);
}

.hero-tag::before,
.hero-tag::after {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: var(--c-orange);
}

.hero-title {
    font-size: var(--fs-hero);
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--c-beige);
    letter-spacing: 0.04em;
    line-height: 1.08;
    margin-bottom: var(--sp-6);
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.hero-title em {
    font-style: normal;
    color: var(--c-orange);
}

.hero-sub {
    font-size: 1.15rem;
    color: rgba(242,237,228,.80);
    line-height: 1.7;
    margin-bottom: var(--sp-10);
    max-width: 600px;
    margin-inline: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--sp-4);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: var(--sp-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    z-index: 2;
    animation: heroScroll 2s ease-in-out infinite;
}

.hero-scroll span {
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(242,237,228,.5);
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--c-orange), transparent);
}

@keyframes heroScroll {
    0%, 100% { opacity: .5; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

/* ========== STATS BAR ========== */
.stats-bar {
    background: var(--c-charcoal-2);
    border-bottom: 1px solid rgba(196,98,45,.15);
    padding: var(--sp-6) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(196,98,45,.15);
}

.stat-item {
    background: var(--c-charcoal-2);
    padding: var(--sp-6);
    text-align: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--c-orange);
    letter-spacing: 0.02em;
    display: block;
}

.stat-label {
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-metal-light);
    margin-top: 2px;
}

/* ========== VEHICLE GRID ========== */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
}

@media (max-width: 1024px) {
    .vehicles-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ========== SERVICE CARDS ========== */
.service-card {
    background: var(--c-bg);
    border: 1px solid var(--c-beige-dark);
    border-radius: var(--r-md);
    padding: var(--sp-8);
    transition: all var(--dur-med) var(--ease-out);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--c-orange), var(--c-olive));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-med) var(--ease-out);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(196,98,45,.2);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(196,98,45,.10);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-5);
    transition: background var(--dur-med) var(--ease-out);
}

.service-card:hover .service-icon {
    background: var(--c-orange);
}

.service-icon svg {
    width: 26px;
    height: 26px;
    color: var(--c-orange);
    transition: color var(--dur-med) var(--ease-out);
}

.service-card:hover .service-icon svg {
    color: var(--c-beige);
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--c-text-dark);
    margin-bottom: var(--sp-3);
    letter-spacing: 0.02em;
}

.service-desc {
    color: var(--c-text-muted);
    font-size: var(--fs-sm);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ========== FEATURE / WHY US ========== */
.feature-item {
    display: flex;
    gap: var(--sp-5);
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(196,98,45,.1);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    color: var(--c-orange);
}

.feature-body h3 {
    font-size: 1.1rem;
    margin-bottom: var(--sp-2);
    color: var(--c-text-dark);
}

.feature-body p {
    color: var(--c-text-muted);
    font-size: var(--fs-sm);
    margin-bottom: 0;
    max-width: none;
}

/* ========== DIVIDER ORNEMENTS ========== */
.divider {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    margin-block: var(--sp-8);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--c-beige-dark);
}

.divider-icon {
    width: 32px;
    height: 32px;
    color: var(--c-orange);
    flex-shrink: 0;
}

/* ========== TESTIMONIALS ========== */
.testimonial-card {
    background: var(--c-bg);
    border: 1px solid var(--c-beige-dark);
    border-left: 4px solid var(--c-olive);
    border-radius: var(--r-md);
    padding: var(--sp-8);
}

.testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--c-text-body);
    line-height: 1.8;
    margin-bottom: var(--sp-5);
    max-width: none;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
}

.testimonial-initials {
    width: 42px;
    height: 42px;
    border-radius: var(--r-full);
    background: var(--c-olive);
    color: var(--c-beige);
    font-weight: 700;
    font-size: var(--fs-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 700;
    color: var(--c-text-dark);
    font-size: var(--fs-sm);
}

.testimonial-detail {
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: var(--c-charcoal);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(196,98,45,.15) 0%, transparent 70%);
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(107,125,79,.10) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* ========== FORMS ========== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    margin-bottom: var(--sp-5);
}

.form-label {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-text-body);
}

.form-label .required {
    color: var(--c-orange);
    margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--c-text-dark);
    background: var(--c-bg);
    border: 1.5px solid var(--c-sand);
    border-radius: var(--r-sm);
    padding: 13px 16px;
    width: 100%;
    transition: border-color var(--dur-fast) var(--ease-out),
                box-shadow var(--dur-fast) var(--ease-out);
    appearance: none;
    -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--c-orange);
    box-shadow: 0 0 0 3px rgba(196,98,45,.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--c-text-light);
}

.form-textarea {
    resize: vertical;
    min-height: 130px;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%23C4622D'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    cursor: pointer;
    margin-bottom: var(--sp-4);
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--c-sand);
    border-radius: var(--r-sm);
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--c-orange);
}

.form-check label {
    font-size: var(--fs-sm);
    color: var(--c-text-body);
    cursor: pointer;
}

.form-error {
    font-size: var(--fs-sm);
    color: var(--c-error);
    margin-top: var(--sp-1);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.form-success {
    background: rgba(90,125,82,.10);
    border: 1px solid rgba(90,125,82,.30);
    border-radius: var(--r-md);
    padding: var(--sp-5) var(--sp-6);
    color: #2e5e28;
    text-align: center;
    font-weight: 700;
}

/* ========== FILTERS ========== */
.filters-bar {
    background: var(--c-bg-alt);
    border: 1px solid var(--c-beige-dark);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    margin-bottom: var(--sp-8);
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-4);
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.filter-label {
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--c-text-muted);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--c-charcoal);
    border-top: 1px solid rgba(196,98,45,.15);
    color: rgba(242,237,228,.70);
}

.footer-main {
    padding: var(--sp-16) 0 var(--sp-12);
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: var(--sp-10);
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--c-beige);
    margin-bottom: var(--sp-4);
    letter-spacing: 0.04em;
}

.footer-brand p {
    color: rgba(242,237,228,.60);
    font-size: var(--fs-sm);
    line-height: 1.7;
    max-width: none;
    margin-bottom: var(--sp-5);
}

.footer-social {
    display: flex;
    gap: var(--sp-3);
}

.social-link {
    width: 38px;
    height: 38px;
    border: 1.5px solid rgba(196,98,45,.35);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(242,237,228,.60);
    transition: all var(--dur-fast) var(--ease-out);
    text-decoration: none;
}

.social-link:hover {
    background: var(--c-orange);
    border-color: var(--c-orange);
    color: var(--c-beige);
}

.social-link svg {
    width: 16px;
    height: 16px;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-beige);
    margin-bottom: var(--sp-5);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.footer-links a {
    font-size: var(--fs-sm);
    color: rgba(242,237,228,.60);
    transition: color var(--dur-fast) var(--ease-out);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

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

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    font-size: var(--fs-sm);
    color: rgba(242,237,228,.60);
    margin-bottom: var(--sp-3);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out);
}

.footer-contact-item:hover { color: var(--c-orange); }

.footer-contact-item svg {
    width: 16px;
    height: 16px;
    color: var(--c-orange);
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(196,98,45,.12);
    padding: var(--sp-5) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: var(--fs-xs);
    color: rgba(242,237,228,.40);
    margin: 0;
    max-width: none;
}

.footer-legal {
    display: flex;
    gap: var(--sp-5);
    flex-wrap: wrap;
}

.footer-legal a {
    font-size: var(--fs-xs);
    color: rgba(242,237,228,.40);
    transition: color var(--dur-fast) var(--ease-out);
}

.footer-legal a:hover { color: var(--c-orange); }

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    justify-content: center;
    margin-top: var(--sp-10);
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    font-size: var(--fs-sm);
    font-weight: 700;
    transition: all var(--dur-fast) var(--ease-out);
    border: 1.5px solid var(--c-beige-dark);
    color: var(--c-text-body);
    cursor: pointer;
    text-decoration: none;
}

.pagination a:hover { border-color: var(--c-orange); color: var(--c-orange); }
.pagination .active { background: var(--c-orange); border-color: var(--c-orange); color: #fff; }
.pagination .disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* ========== BREADCRUMB ========== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-4) 0;
    flex-wrap: wrap;
}

.breadcrumb a,
.breadcrumb span {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
}

.breadcrumb a:hover { color: var(--c-orange); }

.breadcrumb-sep {
    color: var(--c-metal-light);
    font-size: var(--fs-xs);
}

/* ========== IMAGE GALLERY ========== */
.gallery-main {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--r-md);
    cursor: zoom-in;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--sp-2);
    margin-top: var(--sp-3);
}

.gallery-thumb {
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--r-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
    opacity: .7;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--c-orange);
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26,26,24,.95);
    z-index: var(--z-modal);
    align-items: center;
    justify-content: center;
    padding: var(--sp-6);
}

.lightbox.open { display: flex; }

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--r-sm);
}

.lightbox-close {
    position: absolute;
    top: var(--sp-5);
    right: var(--sp-5);
    background: transparent;
    border: 1.5px solid rgba(242,237,228,.3);
    border-radius: var(--r-sm);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--c-beige);
    transition: all var(--dur-fast) var(--ease-out);
}

.lightbox-close:hover {
    background: var(--c-orange);
    border-color: var(--c-orange);
}

.lightbox-close svg { width: 20px; height: 20px; }

/* ========== VEHICLE DETAIL ========== */
.vehicle-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--sp-10);
    align-items: start;
}

.vehicle-detail-sidebar {
    position: sticky;
    top: 100px;
}

.vehicle-info-card {
    background: var(--c-bg);
    border: 1.5px solid var(--c-beige-dark);
    border-radius: var(--r-lg);
    padding: var(--sp-8);
    margin-bottom: var(--sp-5);
}

.vehicle-price-display {
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: var(--c-orange);
    letter-spacing: 0.02em;
    margin-bottom: var(--sp-3);
}

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

.specs-table tr {
    border-bottom: 1px solid var(--c-beige-dark);
}

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

.specs-table td {
    padding: var(--sp-3) var(--sp-2);
    font-size: var(--fs-sm);
}

.specs-table td:first-child {
    color: var(--c-text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: var(--fs-xs);
    width: 50%;
}

.specs-table td:last-child {
    color: var(--c-text-dark);
    font-weight: 600;
    text-align: right;
}

/* ========== ADMIN PANEL ========== */

/* Layout */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
    background: var(--c-bg-alt);
}

/* Sidebar */
.admin-sidebar {
    background: var(--c-charcoal);
    border-right: 1px solid rgba(242,237,228,.06);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: var(--sp-6) 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: 0 var(--sp-5) var(--sp-6);
    border-bottom: 1px solid rgba(242,237,228,.06);
    margin-bottom: var(--sp-4);
}

.sidebar-emblem {
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    background: rgba(196,98,45,.12);
    border: 1px solid rgba(196,98,45,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-brand-name {
    font-family: var(--font-display);
    font-size: .85rem;
    color: var(--c-beige);
    letter-spacing: .04em;
    line-height: 1.2;
}

.sidebar-brand-sub {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--c-orange);
    margin-top: 2px;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 var(--sp-3);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--r-sm);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: rgba(242,237,228,.50);
    text-decoration: none;
    transition: background var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out);
}

.sidebar-link:hover {
    background: rgba(242,237,228,.05);
    color: var(--c-beige);
}

.sidebar-link.active {
    background: rgba(196,98,45,.14);
    color: var(--c-beige);
    border: 1px solid rgba(196,98,45,.22);
}

.sidebar-link.active svg { color: var(--c-orange); }

.sidebar-link--muted { color: rgba(242,237,228,.30); }
.sidebar-link--muted:hover { color: rgba(242,237,228,.55); background: none; }

.sidebar-link--danger:hover {
    background: rgba(196,98,45,.10);
    color: #e07050;
}

.sidebar-footer {
    padding: var(--sp-4) var(--sp-3) 0;
    border-top: 1px solid rgba(242,237,228,.06);
    margin-top: var(--sp-4);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Main area */
.admin-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: var(--sp-6) var(--sp-8);
    overflow-y: auto;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--sp-7);
    gap: var(--sp-4);
    flex-wrap: wrap;
}

.admin-page-title {
    font-size: 1.5rem;
    color: var(--c-text-dark);
    margin-bottom: var(--sp-1);
}

.admin-page-sub {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    margin-bottom: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.admin-user-tag {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--c-text-muted);
    background: var(--c-beige-dark);
    padding: 5px 14px;
    border-radius: var(--r-sm);
}

/* KPI cards */
.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);
    margin-bottom: var(--sp-6);
}

.admin-kpi-card {
    background: #fff;
    border: 1px solid var(--c-beige-dark);
    border-radius: var(--r-md);
    padding: var(--sp-5);
    display: flex;
    gap: var(--sp-4);
    align-items: flex-start;
    transition: box-shadow var(--dur-fast) var(--ease-out),
                transform var(--dur-fast) var(--ease-out);
}

.admin-kpi-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r-sm);
    background: var(--c-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-body { flex: 1; min-width: 0; }

.kpi-label {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-text-muted);
    margin-bottom: var(--sp-1);
}

.kpi-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--c-text-dark);
    line-height: 1.1;
}

.kpi-change {
    font-size: var(--fs-xs);
    color: var(--c-olive);
    margin-top: var(--sp-1);
}

/* Content row */
.admin-content-row {
    display: flex;
    gap: var(--sp-5);
    align-items: flex-start;
}

/* Panels */
.admin-panel {
    background: #fff;
    border: 1px solid var(--c-beige-dark);
    border-radius: var(--r-md);
    overflow: hidden;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-5) var(--sp-5) 0;
    margin-bottom: var(--sp-4);
}

.panel-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-text-dark);
    margin-bottom: 0;
}

.panel-link {
    font-size: var(--fs-xs);
    color: var(--c-orange);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.panel-link:hover { text-decoration: underline; }

/* Admin table */
.admin-table-wrap { overflow-x: auto; }

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

.admin-table th {
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-text-muted);
    padding: var(--sp-3) var(--sp-4);
    border-bottom: 1.5px solid var(--c-beige-dark);
    text-align: left;
    white-space: nowrap;
    background: var(--c-bg-alt);
}

.admin-table td {
    padding: var(--sp-4);
    border-bottom: 1px solid var(--c-beige-dark);
    font-size: var(--fs-sm);
    color: var(--c-text-body);
    vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(242,237,228,.4); }

.admin-thumb {
    width: 52px;
    height: 38px;
    object-fit: cover;
    border-radius: var(--r-sm);
    border: 1px solid var(--c-beige-dark);
}

/* Table actions */
.table-actions {
    display: flex;
    gap: var(--sp-2);
}

.taction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--r-sm);
    text-decoration: none;
    transition: background var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out);
    color: var(--c-text-muted);
}

.taction:hover { background: var(--c-bg-alt); }

.taction--view:hover  { color: var(--c-olive); }
.taction--edit:hover  { color: var(--c-orange); }
.taction--delete:hover { color: #c0392b; }

.table-action {
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--c-orange);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.table-action:hover { text-decoration: underline; }

/* Admin badges */
.abadge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.abadge--unread,
.abadge--new    { background: rgba(196,98,45,.12); color: var(--c-orange); border: 1px solid rgba(196,98,45,.25); }
.abadge--pending { background: rgba(107,125,79,.10); color: var(--c-olive); border: 1px solid rgba(107,125,79,.25); }
.abadge--resolved,
.abadge--disponible { background: rgba(107,125,79,.10); color: var(--c-olive); border: 1px solid rgba(107,125,79,.25); }
.abadge--vendu  { background: rgba(90,90,90,.1); color: var(--c-text-muted); border: 1px solid rgba(90,90,90,.2); }
.abadge--reserve { background: rgba(196,98,45,.07); color: #c07040; border: 1px solid rgba(196,98,45,.2); }
.abadge--service { background: rgba(26,26,24,.06); color: var(--c-text-body); border: 1px solid var(--c-beige-dark); }

/* Admin filter row */
.admin-filter-row {
    display: flex;
    gap: var(--sp-4);
    align-items: flex-end;
    flex-wrap: wrap;
    padding: var(--sp-5);
}

.admin-filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    flex: 1;
    min-width: 160px;
}

/* Quick actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-5);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--c-text-body);
    text-decoration: none;
    border-bottom: 1px solid var(--c-beige-dark);
    transition: background var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out);
}

.quick-action:last-child { border-bottom: none; }

.quick-action:hover {
    background: var(--c-bg-alt);
    color: var(--c-text-dark);
}

.quick-action-icon { flex-shrink: 0; }

.quick-action-arrow {
    margin-left: auto;
    color: var(--c-text-muted);
    flex-shrink: 0;
}

/* Contact messages */
.contact-messages {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.message-card {
    background: #fff;
    border: 1px solid var(--c-beige-dark);
    border-radius: var(--r-md);
    display: flex;
    align-items: flex-start;
    gap: var(--sp-4);
    padding: var(--sp-5);
    transition: box-shadow var(--dur-fast) var(--ease-out);
}

.message-card:hover { box-shadow: var(--shadow-md); }

.message-card--unread {
    border-left: 3px solid var(--c-orange);
}

.message-card-body { flex: 1; min-width: 0; }

.message-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--sp-4);
    margin-bottom: var(--sp-3);
    flex-wrap: wrap;
}

.message-sender-info {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.message-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(196,98,45,.12);
    border: 1.5px solid rgba(196,98,45,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--c-orange);
    flex-shrink: 0;
}

.message-sender-name {
    font-size: var(--fs-sm);
    color: var(--c-text-dark);
    display: block;
}

.message-sender-email {
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    margin-top: 2px;
}

.message-meta-right {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-wrap: wrap;
}

.message-date {
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
}

.message-subject {
    font-weight: 700;
    color: var(--c-text-dark);
    font-size: var(--fs-sm);
    margin-bottom: var(--sp-2);
}

.message-preview {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

.message-card-actions {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    flex-shrink: 0;
}

/* Pagination admin */
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 var(--sp-3);
    border: 1px solid var(--c-beige-dark);
    border-radius: var(--r-sm);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--c-text-body);
    text-decoration: none;
    transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
    background: #fff;
}

.page-btn:hover:not(.page-btn--active):not(.page-btn--disabled) {
    border-color: var(--c-orange);
    color: var(--c-orange);
}

.page-btn--active {
    background: var(--c-orange);
    border-color: var(--c-orange);
    color: #fff;
}

.page-btn--disabled {
    opacity: .35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Legacy compat */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-text-muted);
    padding: var(--sp-3) var(--sp-4);
    border-bottom: 2px solid var(--c-beige-dark);
    text-align: left;
    white-space: nowrap;
}

.data-table td {
    padding: var(--sp-4);
    border-bottom: 1px solid var(--c-beige-dark);
    font-size: var(--fs-sm);
    color: var(--c-text-body);
    vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--c-bg); }

/* ========== MAIN CONTENT OFFSET ========== */
.main-content {
    padding-top: 72px;
}

/* ========== ANIMATIONS ========== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--dur-slow) var(--ease-out),
                transform var(--dur-slow) var(--ease-out);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 100ms; }
.fade-in-delay-2 { transition-delay: 200ms; }
.fade-in-delay-3 { transition-delay: 300ms; }
.fade-in-delay-4 { transition-delay: 400ms; }

/* ========== UTILITIES ========== */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-orange  { color: var(--c-orange); }
.text-olive   { color: var(--c-olive); }
.text-muted   { color: var(--c-text-muted); }
.text-white   { color: var(--c-beige); }

.mt-auto { margin-top: auto; }
.mb-0    { margin-bottom: 0 !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Texture overlay helper */
.texture-paper {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}

/* ========== EMPTY STATES ========== */
.empty-state {
    text-align: center;
    padding: var(--sp-20);
    color: var(--c-text-muted);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    color: var(--c-sand);
    margin: 0 auto var(--sp-5);
}

.empty-state h3 {
    font-size: 1.2rem;
    color: var(--c-text-body);
    margin-bottom: var(--sp-3);
}

/* ========== SKIP LINK ========== */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--sp-4);
    z-index: var(--z-toast);
    background: var(--c-orange);
    color: var(--c-beige);
    padding: var(--sp-3) var(--sp-5);
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: var(--fs-sm);
    text-decoration: none;
    transition: top var(--dur-fast);
}

.skip-link:focus { top: var(--sp-4); }

/* ========== VEHICLE DETAIL PAGE ========== */

/* Galerie */
.vehicle-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--sp-10);
    align-items: start;
}

@media (max-width: 1200px) {
    .vehicle-detail-grid { grid-template-columns: 1fr 360px; gap: var(--sp-8); }
}

@media (max-width: 900px) {
    .vehicle-detail-grid { grid-template-columns: 1fr; }
}

.vehicle-detail-sidebar {
    position: sticky;
    top: 100px;
}

@media (max-width: 900px) {
    .vehicle-detail-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-5);
    }
}

@media (max-width: 600px) {
    .vehicle-detail-sidebar { grid-template-columns: 1fr; }
}

/* Galerie images */
.vehicle-gallery-main {
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.vehicle-gallery-badge {
    pointer-events: none;
    z-index: 10;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--r-lg);
    display: block;
    transition: transform var(--dur-med) var(--ease-out);
}

.gallery-main:hover {
    transform: scale(1.02);
}

/* Miniatures */
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: var(--sp-3);
}

.gallery-thumb {
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--r-md);
    cursor: pointer;
    border: 2.5px solid transparent;
    transition: all var(--dur-fast) var(--ease-out);
    opacity: 0.65;
    display: block;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--c-orange);
    opacity: 1;
    transform: scale(1.02);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26,26,24,.98);
    z-index: var(--z-modal);
    align-items: center;
    justify-content: center;
    padding: var(--sp-6);
    backdrop-filter: blur(4px);
}

.lightbox.open {
    display: flex;
    animation: fadeIn 0.3s var(--ease-out);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--r-lg);
    animation: slideIn 0.3s var(--ease-out);
}

@keyframes slideIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: var(--sp-6);
    right: var(--sp-6);
    background: rgba(255,255,255,.1);
    border: 2px solid rgba(242,237,228,.3);
    border-radius: var(--r-md);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--c-beige);
    font-size: 28px;
    transition: all var(--dur-fast) var(--ease-out);
    padding: 0;
}

.lightbox-close:hover {
    background: var(--c-orange);
    border-color: var(--c-orange);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.1);
    border: 2px solid rgba(242,237,228,.3);
    border-radius: var(--r-md);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--c-beige);
    font-size: 24px;
    transition: all var(--dur-fast) var(--ease-out);
    padding: 0;
    font-weight: bold;
}

.lightbox-nav:hover {
    background: var(--c-orange);
    border-color: var(--c-orange);
}

.lightbox-prev {
    left: var(--sp-6);
}

.lightbox-next {
    right: var(--sp-6);
}

/* Specs grid */
.vehicle-specs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--sp-4);
    background: #fff;
    border: 1px solid var(--c-beige-dark);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
}

@media (max-width: 1400px) {
    .vehicle-specs-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
    .vehicle-specs-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .vehicle-specs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .vehicle-specs-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); padding: var(--sp-4); }
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    padding: var(--sp-4);
    background: var(--c-bg);
    border-radius: var(--r-md);
    border: 1.5px solid var(--c-beige-dark);
    transition: all var(--dur-fast) var(--ease-out);
    align-items: center;
    text-align: center;
}

.spec-item:hover {
    border-color: var(--c-orange);
    box-shadow: 0 4px 12px rgba(196,98,45,.12);
    transform: translateY(-3px);
}

.spec-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: var(--sp-1);
}

.spec-label {
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-text-muted);
    display: block;
}

.spec-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--c-text-dark);
    display: block;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

/* Équipements */
.equipments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--sp-4);
}

@media (max-width: 1024px) {
    .equipments-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--sp-3); }
}

@media (max-width: 768px) {
    .equipments-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

@media (max-width: 600px) {
    .equipments-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: var(--sp-2); }
}

.equipment-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
    padding: var(--sp-4);
    background: #fff;
    border: 2px solid var(--c-beige-dark);
    border-radius: var(--r-md);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--c-text-body);
    transition: all var(--dur-fast) var(--ease-out);
    text-align: center;
    flex-direction: column;
    min-height: 120px;
}

.equipment-badge:hover {
    border-color: var(--c-orange);
    background: rgba(196,98,45,.05);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(196,98,45,.15);
}

.equipment-badge span:first-child {
    font-size: 2rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: var(--sp-8);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--sp-8);
}

.timeline-item:last-child .timeline-line {
    display: none;
}

.timeline-marker {
    position: absolute;
    left: -var(--sp-10);
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--c-orange);
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px var(--c-orange);
}

.timeline-line {
    position: absolute;
    left: -var(--sp-6);
    top: 30px;
    width: 2px;
    height: calc(100% + var(--sp-6));
    background: var(--c-beige-dark);
}

.timeline-content {
    background: #fff;
    border: 1.5px solid var(--c-beige-dark);
    border-left: 4px solid var(--c-orange);
    padding: var(--sp-5);
    border-radius: var(--r-md);
    transition: all var(--dur-fast) var(--ease-out);
}

.timeline-content:hover {
    box-shadow: 0 6px 16px rgba(196,98,45,.15);
    border-color: rgba(196,98,45,.3);
}

/* Sidebar cards */
.vehicle-info-card {
    background: #fff;
    border: 1.5px solid var(--c-beige-dark);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    margin-bottom: var(--sp-5);
    transition: all var(--dur-fast) var(--ease-out);
}

.vehicle-info-card:hover {
    box-shadow: var(--shadow-md);
}

.vehicle-price-display {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--c-orange);
    letter-spacing: 0.02em;
    line-height: 1;
}

.vehicle-info-card .btn {
    width: 100%;
}

/* Info cards responsive */
@media (max-width: 900px) {
    .vehicle-info-card { margin-bottom: var(--sp-3); padding: var(--sp-5); }
    .vehicle-price-display { font-size: 1.8rem; }
}

/* Responsive détail */
@media (max-width: 600px) {
    .vehicle-specs-grid { gap: var(--sp-2); padding: var(--sp-3); }
    .spec-item { padding: var(--sp-3); }
    .spec-value { font-size: 1rem; }
    .lightbox-nav { width: 48px; height: 48px; font-size: 20px; }
}

