:root {
    --primary-color: rgba(181, 24, 38, 1);
    --dark-bg: #1a1a1a;
}

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

/* Fond foncé sur la racine : sur iOS, la zone derrière la barre d'état
   (heure/WiFi/batterie) et le rebond de défilement reprennent le fond de
   <html>. Sans ça, cette zone apparaît en blanc derrière le header foncé. */
html {
    background-color: var(--dark-bg);
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f5f5f5;
}

header {
    background-color: var(--dark-bg);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 100;
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    flex: 1;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.phone-button a {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.phone-button img {
    height: 14px;
    width: auto;
}

footer {
    background-color: var(--dark-bg);
    color: #cfcbc6;
    margin-top: 4rem;
    border-top: 3px solid var(--primary-color);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 24px 2.5rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.4fr;
    gap: 2.5rem;
}

.footer-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.3rem;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #ffffff;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #b5b0aa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-section ul a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

/* Colonne marque + slogan + réseaux */
.footer-brand {
    height: 70px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 1.1rem;
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #9c968f;
    max-width: 290px;
    margin: 0 0 1.4rem;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    font-size: 15px;
    transition: background 0.25s ease, transform 0.2s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Colonne horaires */
.horaires-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.horaires-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    padding: 0 !important;
    border: none !important;
}

.horaires-list li span:first-child {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Colonne contact (icône + texte) */
.footer-contact a {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    line-height: 1.5;
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 3px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.footer-contact a:hover {
    padding-left: 0;
}

/* Barre du bas : copyright + liens légaux */
.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.3rem 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 0.83rem;
    color: #807a74;
    margin: 0;
}

.footer-legal {
    list-style: none;
    display: flex;
    gap: 1.4rem;
    margin: 0;
    padding: 0;
}

.footer-legal a {
    color: #807a74;
    font-size: 0.83rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Footer tablette : 2 colonnes (la colonne marque prend toute la largeur) */
@media (max-width: 980px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-about {
        grid-column: 1 / -1;
    }
}

/* ========================= home.php ========================= */



.container {
    max-width: 1400px;
    margin: 0 auto;
    padding:  20px;
}

.filter-section {
    position: relative;
    padding: 140px 0 260px 0;
    text-align: center;
    color: white;
    background-color: #111;
}

.filter-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../images/background/background-home.jpg');
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    z-index: 1;
    filter: brightness(0.60);
}

.filter-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 100%);
    z-index: 1.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1050px;
    margin: 0 auto;
}

.filter-section h2 {
    font-size: 46px;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 3px 15px rgba(0,0,0,0.7);
}

.filter-section .hero-subtitle {
    font-size: 21px;
    font-weight: 500;
    margin-bottom: 55px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
    color: #f1eeeb;
}

.filter-section .hero-subtitlee {
    font-size: 23px;
    font-weight: 500;
    margin-bottom: 55px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
    color: #f1eeeb;
}

.filter-form {
    background-color: #ffffff;
    padding: 8px 8px 8px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1;
    border-right: 1px solid #e1deda;
    padding-right: 10px;
}

.form-group:last-of-type {
    border-right: none;
}

.form-group select {
    width: 100%;
    padding: 12px 28px 12px 10px;
    border: none;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    background-color: transparent;
    outline: none;
    cursor: pointer;
    /* On supprime l'apparence native (flèche + retrait interne du texte qui
       diffèrent selon le navigateur, surtout iOS) et on ajoute une flèche CSS
       identique à celle des boutons Kilométrage/Prix, à la même position. */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6"><path d="M1 1l4 4 4-4" fill="none" stroke="%23999" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    text-indent: 0;
}

.form-group select:focus {
    outline: none;
}

.form-group select option {
    color: #333;
    background-color: white;
    padding: 10px;
}

.range-group {
    position: relative;
    flex: 1;
    border-right: 1px solid #e1deda;
    padding: 0;
}

.range-group:last-of-type {
    border-right: none;
}

.range-header {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px 10px;
    width: 100%;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-align: left;
    transition: color 0.2s;
    position: relative;
    display: flex;
    align-items: center;
}

.range-header::after {
    content: '';
    position: absolute;
    right: 10px;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid #999;
    border-bottom: 1.5px solid #999;
    transform: rotate(45deg);
    transition: transform 0.3s;
    margin-left: auto;
}

.range-group.active .range-header::after {
    transform: rotate(-135deg);
}

.range-display {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
}

.range-popup {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    width: 300px;
    box-sizing: border-box;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.range-popup.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.popup-content {
    padding: 20px;
}

.range-inputs {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 20px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 5px;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
}

.slider-track-fill {
    position: absolute;
    height: 100%;
    background: rgba(181, 24, 38, 1);
    border-radius: 5px;
    top: 0;
}

.range-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    background: none;
    pointer-events: none;
    z-index: 2;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    box-sizing: border-box;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: rgba(181, 24, 38, 1);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 3px solid white;
    margin-top: -9px;
}

.range-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: rgba(181, 24, 38, 1);
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.btn-search {
    background-color: rgba(181, 24, 38, 1);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
    white-space: nowrap;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(181, 24, 38, 0.2);
}

.btn-search:hover {
    background-color: rgba(160, 16, 48, 1);
    transform: scale(1.02);
}

.maps-contact-section {
    padding: 60px 20px;
}

.maps-contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.map-box {
    width: 100%;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-box iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.contact-box {
    background-color: var(--dark-bg);
    color: white;
    padding: 30px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-box h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 15px;
}

.contact-method {
    margin-bottom: 25px;
}

.contact-method p {
    font-size: 12px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.contact-method a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    display: block;
    transition: color 0.3s ease;
}

.contact-method a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ===== Services Section ===== */

.services-section {
    padding: 80px 0;
    background-color: #ffffff;
    text-align: center;
}

.services-section h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #333;
}

.services-section h2 span {
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.service-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #f5f5f5;
    border-radius: 50%;
    font-size: 32px;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.service-icon-container img {
    max-width: 40px;
    max-height: 40px;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.service-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    letter-spacing: -0.3px;
}

.service-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.btn-service-action {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-service-action:hover {
    background-color: #a81627;
    transform: scale(1.05);
}

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

    .services-section h2 {
        font-size: 32px;
        margin-bottom: 40px;
    }
}

/* ===== Vehicles Section ===== */

.vehicles-subtitle {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 45px;
    margin-top: 40px;
    padding-bottom: 15px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.vehicles-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.vehicles-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 80px;
    z-index: 1;
}

.vehicles-row .vehicle-card {
    width: 100%;
}

@media (max-width: 768px) {
    .vehicles-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 50px;
    }

    /* Centrer le dernier élément s'il est seul sur sa ligne */
    .vehicles-row > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: calc(50% - 6px);
        margin: 0 auto;
    }
}

.vehicle-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-top: 3px solid var(--primary-color);
}

.vehicle-card .card-icon {
    width: 100%;
    height: 150px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
    border-bottom: none;
    overflow: hidden;
}

.vehicle-card .card-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Macarons d'énergie (électrique, hybride, essence…) : taille fixe */
.vehicle-card .card-image-macaron {
    width: 140px;
    height: 140px;
}

.vehicle-card .card-text {
    padding: 20px 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.vehicle-card .arrow {
    color: var(--primary-color);
    font-weight: bold;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-top: 60px;
    margin-bottom: 60px;
    padding: 20px 0;
    color: #333;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.section-title span {
    color: var(--primary-color);
}

.center-action {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 60px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 40px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #a81627;
    transform: scale(1.05);
}




/* --- STYLES SECTION AVIS GOOGLE (CARROUSEL) --- */
.airbnb-reviews-section {
    background-color: #ffffff;
    padding: 40px 0 60px 0;
    border-bottom: 1px solid #e8e5e2;
}

.airbnb-slider-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 100px;
}

.airbnb-reviews-grid {
    display: flex;
    gap: 24px;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 10px 5px;
}

.airbnb-reviews-grid::-webkit-scrollbar {
    display: none;
}

.airbnb-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    flex: 0 0 calc(33.333% - 16px);
    min-width: 320px;
}

.airbnb-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    position: relative;
}

.airbnb-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.airbnb-user-info {
    display: flex;
    flex-direction: column;
    max-width: 180px;
    flex: 1;
}

.airbnb-name {
    font-size: 16px;
    font-weight: 600;
    color: #222222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.airbnb-google-logo {
    position: absolute;
    right: 0;
    top: 4px;
    z-index: 5;
    display: flex;
    align-items: center;
}

.airbnb-stars-row {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 8px;
}

.airbnb-star {
    color: #f59e0b;
    font-size: 14px;
}

.airbnb-text {
    font-size: 15px;
    color: #222222;
    line-height: 20px;
    font-weight: 400;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 80px;
}

.airbnb-read-more {
    font-size: 14px;
    color: #222222;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
    display: none;
    margin-top: auto;
}

.slider-arrow-btn {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e8e5e2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #1e1b19;
    z-index: 10;
    transition: transform 0.2s, background-color 0.2s;
    flex-shrink: 0;
}

.slider-arrow-btn:hover {
    transform: scale(1.05);
    background-color: #fcfbfa;
}

.arrow-prev {
    left: 0;
}

.arrow-next {
    right: 0;
}

/* ========================= vehicule.php ========================= */

.catalog-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
}

.sidebar-filters {
    width: 280px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e8e5e2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.filter-main-title {
    font-size: 18px;
    font-weight: 800;
    padding: 25px 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1e1b19;
    border-bottom: 1px solid #e8e5e2;
}

.filter-group {
    border-bottom: 1px solid #e8e5e2;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-weight: 700;
    font-size: 15px;
    color: #1e1b19;
    cursor: pointer;
    list-style: none;
}

.filter-group summary::-webkit-details-marker {
    display: none;
}

.filter-group summary::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #1e1b19;
    border-bottom: 2px solid #1e1b19;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-right: 5px;
}

.filter-group[open] summary::after {
    transform: rotate(-135deg);
}

.filter-content {
    padding: 0 20px 20px 20px;
}

/* Groupes de filtres à slider (kilométrage, prix) : padding adapté */
.filter-content-range {
    padding: 10px 5px 20px 5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    cursor: pointer;
    color: #1e1b19;
}

.checkbox-label:last-child {
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 1px solid #e8e5e2;
    border-radius: 4px;
    accent-color: var(--primary-color);
    cursor: pointer;
    flex-shrink: 0;
}

.count-span {
    color: #7a726e;
    font-weight: 500;
    font-size: 13px;
    margin-left: auto;
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 13px;
    color: #111;
}

.multi-range-slider {
    position: relative;
    width: 100%;
    height: 20px;
    display: flex;
    align-items: center;
}

.multi-range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    background: none;
    z-index: 2;
    height: 100%;
    margin: 0;
}

.multi-range-slider input[type="range"]::-webkit-slider-thumb {
    pointer-events: all;
    width: 22px;
    height: 22px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 3px solid white;
    margin-top: -9px;
}

.multi-range-slider input[type="range"]::-moz-range-thumb {
    pointer-events: all;
    width: 22px;
    height: 22px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 3px solid white;
}

.main-catalog {
    flex-grow: 1;
}

.breadcrumb {
    font-size: 13px;
    color: #7a726e;
    margin-bottom: 10px;
    padding: 20px 0;
    font-weight: 600;
}

.breadcrumb a {
    color: #7a726e;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.catalog-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
    flex-wrap: wrap;
}

.vehicle-count {
    font-size: 22px;
    font-weight: 800;
}

.sort-by select {
    padding: 10px 15px;
    border: 1px solid #e8e5e2;
    border-radius: 6px;
    background: #ffffff;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.vehicle-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.car-card {
    background: #ffffff;
    border: 1px solid #e8e5e2;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.car-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #f1eeeb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.photo-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.car-card--vendu {
    opacity: 0.7;
}

.car-card--vendu .car-image img {
    filter: grayscale(100%);
}

.vendu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.vendu-overlay span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-35deg);
    background: #ff0000;
    color: white;
    padding: 8px 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 4px;
    width: 150%;
    text-align: center;
}

.photo-placeholder {
    color: #b5b0aa;
    font-weight: 700;
    font-size: 14px;
}

.car-details {
    padding: 20px;
}

.car-brand-model {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.car-version {
    font-size: 13px;
    color: #7a726e;
    margin-bottom: 15px;
    display: block;
}

.car-price {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.car-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-top: 1px solid #e8e5e2;
    padding-top: 15px;
    font-size: 11px;
    font-weight: 600;
    color: #6e655f;
}

.no-result {
    padding: 40px 0;
    font-size: 16px;
    color: #7a726e;
}

/* --- Barre mobile Filtres / Trier par --- */
.mobile-action-bar {
    display: none;
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 800;
}

.mobile-overlay.active { display: block; }

.sidebar-mobile-header,
.sidebar-mobile-footer { display: none; }

.mobile-sort-drawer { display: none; }

@media (max-width: 992px) {

    /* Barre filtres/tri */
    .mobile-action-bar {
        display: flex;
        background: #f4f2f0;
        border-bottom: 1px solid #e8e5e2;
        position: sticky;
        top: 0;
        z-index: 200;
    }

    .mobile-action-btn {
        flex: 1;
        padding: 17px 14px;
        background: none;
        border: none;
        font-size: 16px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: #1e1b19;
        font-family: inherit;
        transition: background 0.15s;
    }

    .mobile-action-btn:hover { background: #ede9e6; }
    .mobile-action-btn:first-child { border-right: 1px solid #e8e5e2; }

    /* Sidebar → drawer latéral */
    .catalog-page { display: block; padding-top: 16px; padding-bottom: 24px; }
    .breadcrumb { padding-top: 0; padding-bottom: 8px; }

    .sidebar-filters {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 85% !important;
        max-width: 340px !important;
        height: 100vh !important;
        z-index: 900;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
        display: flex;
        flex-direction: column;
    }

    .sidebar-filters.drawer-open { transform: translateX(0); }

    /* En-tête et pied du drawer */
    .sidebar-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        border-bottom: 1px solid #e8e5e2;
        font-size: 16px;
        font-weight: 700;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 5;
        flex-shrink: 0;
    }

    .sidebar-close-btn {
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
        color: #7a726e;
        line-height: 1;
        padding: 2px 6px;
    }

    .filter-main-title { display: none; }

    .sidebar-filters .filter-group,
    .sidebar-filters .filter-content {
        flex-shrink: 0;
    }

    .sidebar-mobile-footer {
        display: block;
        padding: 16px 20px;
        border-top: 1px solid #e8e5e2;
        position: sticky;
        bottom: 0;
        background: #fff;
        flex-shrink: 0;
        margin-top: auto;
    }

    .sidebar-reset-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        background: #f4f2f0;
        color: #1e1b19;
        border: 1px solid #e8e5e2;
        padding: 14px;
        border-radius: 10px;
        font-weight: 700;
        font-size: 15px;
        cursor: pointer;
        font-family: inherit;
        text-decoration: none;
        transition: background 0.2s;
    }

    .sidebar-reset-btn:hover {
        background: #ede9e6;
    }

    .sidebar-reset-btn i {
        font-size: 14px;
        color: var(--primary-color);
    }

    /* Bottom sheet tri */
    .mobile-sort-drawer {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-radius: 20px 20px 0 0;
        z-index: 900;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
    }

    .mobile-sort-drawer.drawer-open { transform: translateY(0); }

    .mobile-sort-handle {
        width: 36px;
        height: 4px;
        background: #e8e5e2;
        border-radius: 2px;
        margin: 12px auto 0;
    }

    .mobile-sort-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 20px;
        border-bottom: 1px solid #f0eeec;
        font-size: 16px;
        font-weight: 700;
    }

    .sort-close-btn {
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
        color: #7a726e;
        line-height: 1;
        padding: 2px 6px;
    }

    .mobile-sort-options { padding: 8px 0 32px; }

    .sort-option-btn {
        display: block;
        width: 100%;
        padding: 15px 24px;
        text-align: left;
        background: none;
        border: none;
        font-size: 15px;
        cursor: pointer;
        font-family: inherit;
        color: #1e1b19;
        transition: background 0.15s;
        position: relative;
    }

    .sort-option-btn:hover { background: #f9f8f7; }

    .sort-option-btn.active {
        font-weight: 700;
        color: var(--primary-color);
    }

    .sort-option-btn.active::after {
        content: '✓';
        position: absolute;
        right: 24px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--primary-color);
        font-weight: 700;
    }

    /* Grille résultats */
    .vehicle-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Top bar : masquer le select tri (géré par le drawer) */
    .sort-by { display: none; }

    .catalog-top-bar { margin-bottom: 20px; }
}

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

/* ========================= vehicule-detail.php ========================= */

.vehicle-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 40px;
    margin-bottom: 40px;
}


.gallery-container {
    width: 100%;
}

.main-photo {
    width: 100%;
    background-color: #f1eeeb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid var(--border, #e8e5e2);
}

.main-photo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 520px;
    object-fit: initial;
    border-radius: 0;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    border: none;
    color: #1e1b19;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    font-size: 18px;
    z-index: 5;
    transition: background 0.2s, transform 0.2s;
}

.nav-arrow:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.nav-arrow-left {
    left: 15px;
}

.nav-arrow-right {
    right: 15px;
}

.photo-counter {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    z-index: 5;
}

.thumbnails-grid {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 5px;
}

.thumbnails-grid::-webkit-scrollbar {
    display: none;
}

.thumb {
    width: 80px;
    height: 55px;
    flex-shrink: 0;
    background: #f1eeeb;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    overflow: hidden;
}

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

.thumb.active {
    border: 2px solid var(--primary-color);
}

.thumb:hover {
    border-color: var(--primary-color);
}

/* Bloc infos à droite */
.sticky-info-card {
    background: #ffffff;
    border: 1px solid #e8e5e2;
    border-radius: 12px;
    padding: 30px;
    height: fit-content;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    position: sticky;
    top: 100px;
}

.vehicle-title {
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.vehicle-subtitle {
    font-size: 15px;
    color: #7a726e;
    margin-bottom: 20px;
    display: block;
    font-weight: 500;
}

.tag-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-bottom: 25px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tag-container::-webkit-scrollbar {
    display: none;
}

.badge {
    background: #f1eeeb;
    padding: 6px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: #7a726e;
    white-space: nowrap;
}

.main-price {
    font-size: 34px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.cta-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    margin-bottom: 12px;
    font-size: 14px;
    transition: background-color 0.2s, transform 0.2s;
}

.cta-phone {
    background: #1a1716;
    color: white;
}

.cta-message {
    background: var(--primary-color);
    color: white;
}

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

/* Caractéristiques techniques */
.specs-section {
    background: #ffffff;
    border: 1px solid #e8e5e2;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.specs-title {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
    letter-spacing: 0.5px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1px;
    background: #e8e5e2;
    border: 1px solid #e8e5e2;
    border-radius: 8px;
    overflow: hidden;
}

.specs-col {
    background: #ffffff;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 18px;
    border-bottom: 1px solid #f0eeec;
    font-size: 14.5px;
    transition: background 0.15s;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-item:nth-child(even) {
    background: #faf9f8;
}

.spec-item:hover {
    background: #f4f1ef;
}

.spec-label {
    font-weight: 500;
    color: #7a726e;
    flex-shrink: 0;
    margin-right: 12px;
}

.spec-value {
    font-weight: 700;
    color: #1e1b19;
    text-align: right;
}

/* Description */
.description-section {
    background: #ffffff;
    border: 1px solid #e8e5e2;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
}

.description-text {
    font-size: 15px;
    line-height: 1.8;
    color: #7a726e;
    white-space: pre-line;
}

/* =============================================
   PAGE CONNEXION
   ============================================= */
.login-page {
    background: #f4f1ef;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-header {
    background: #111111;
    padding: 15px 0;
}

.login-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-header-inner .logo img {
    height: 60px;
    width: auto;
}

.btn-retour-site {
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 50px;
    border: none;
    background: var(--primary-color);
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-retour-site:hover {
    background: #820c16;
    transform: translateY(-1px);
}

.login-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.login-card {
    background: #ffffff;
    border: 1px solid #e8e5e2;
    border-radius: 24px;
    padding: 48px 44px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.07);
}

.login-card h2 {
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 36px;
    letter-spacing: 0.5px;
    position: relative;
}

.login-card h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    margin: 10px auto 0;
}

.login-error {
    background: #fff0f1;
    border: 1px solid #f5c2c7;
    color: #842029;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-card .form-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    border-right: none;
    padding-right: 0;
    flex: unset;
    align-items: stretch;
}

.login-card .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1e1b19;
    margin-bottom: 8px;
    width: 100%;
}

.login-card .form-group input,
.login-card .input-password-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.login-card .form-group input {
    padding: 14px 18px;
    border: 1.5px solid #e8e5e2;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    background: #faf9f8;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    font-family: inherit;
    color: #1e1b19;
    box-sizing: border-box;
}

.login-card .form-group input:focus {
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(181,24,38,0.08);
}

.input-password-wrapper {
    position: relative;
}

.input-password-wrapper input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #b5b0aa;
    font-size: 15px;
    padding: 4px;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #820c16 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.3px;
    box-shadow: 0 5px 20px rgba(181,24,38,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: inherit;
    margin-top: 10px;
    box-sizing: border-box;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(181,24,38,0.35);
}

/* Responsive détail véhicule */
@media (max-width: 992px) {
    .vehicle-main-grid {
        grid-template-columns: 1fr;
    }
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .tag-container {
        flex-wrap: wrap;
        overflow-x: visible;
    }
    .main-photo img { max-height: 380px; }
}

@media (max-width: 768px) {
    /* Image : forcée à la largeur du conteneur, proportions conservées */
    .main-photo img {
        width: 100%;
        height: auto;
        max-height: 260px;
        object-fit: contain;
    }

    /* Grille détail véhicule */
    .vehicle-main-grid {
        gap: 16px;
        margin-bottom: 16px;
    }

    /* Empêche le conteneur galerie de forcer le grid à déborder */
    .gallery-container {
        min-width: 0;
    }

    /* Flèches cachées sur mobile : swipe tactile à la place */
    .nav-arrow {
        display: none;
    }

    /* Card info : plus sticky quand les colonnes s'empilent */
    .sticky-info-card {
        position: static;
        padding: 20px 16px;
        border-radius: 10px;
        box-shadow: none;
    }

    .vehicle-title { font-size: 22px; }
    .vehicle-subtitle { font-size: 14px; margin-bottom: 14px; }
    .main-price { font-size: 28px; margin-bottom: 20px; }
    .cta-button { padding: 13px; font-size: 14px; }

    /* Sections caractéristiques et description */
    .specs-section {
        padding: 20px 16px;
        margin-bottom: 20px;
    }

    .description-section {
        padding: 20px 16px;
        margin-bottom: 30px;
    }

    .spec-item {
        padding: 10px 14px;
        font-size: 13px;
    }

    .specs-title { font-size: 17px; margin-bottom: 18px; }
}

/* =============================================
   TABLEAU DE BORD
   ============================================= */
.dashboard-page {
    background: #f4f2f0;
    min-height: 100vh;
}

.dashboard-header {
    background: #111111;
    padding: 15px 0;
}

.dashboard-header .logo img {
    height: 60px;
    width: auto;
}

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

.btn-logout {
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid #444;
    background: transparent;
    transition: background 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.dashboard-container {
    max-width: 1500px;
    margin: 40px auto;
    padding: 0 20px;
}

.dashboard-main-title {
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

.dashboard-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.dashboard-search-box {
    position: relative;
    flex: 1;
    max-width: 480px;
}

.dashboard-search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #7a726e;
    font-size: 14px;
}

.dashboard-search-box input {
    width: 100%;
    padding: 12px 18px 12px 44px;
    border: 1px solid #e8e5e2;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dashboard-search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(181,24,38,0.08);
}

.dashboard-btn-add {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.dashboard-btn-add:hover {
    background: #820c16;
    transform: translateY(-1px);
}

.dashboard-table-wrapper {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e8e5e2;
    overflow-x: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 900px;
}

.dashboard-table thead {
    background: #faf9f8;
    border-bottom: 2px solid #e8e5e2;
}

.dashboard-table th {
    padding: 16px 18px;
    font-size: 12px;
    text-transform: uppercase;
    color: #7a726e;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.dashboard-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #f0eeec;
    font-size: 14px;
    font-weight: 500;
    vertical-align: middle;
    color: #1e1b19;
    white-space: nowrap;
}

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

.dashboard-table tbody tr:hover td {
    background: #faf9f8;
}

.dash-thumb {
    width: 70px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.dash-modele-mobile {
    display: none;
}

.dash-prix-mobile {
    display: none;
}

.dash-thumb-placeholder {
    width: 70px;
    height: 48px;
    background: #f0eeec;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: #b5b0aa;
    text-align: center;
    line-height: 1.3;
}

.dash-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    white-space: nowrap;
}

.badge-disponible {
    background: #dcfce7;
    color: #166534;
}

.badge-vendu {
    background: #fee2e2;
    color: #991b1b;
}

.badge-autre {
    background: #fef3c7;
    color: #92400e;
}

.dash-actions {
    display: flex;
    gap: 8px;
}

.dash-btn-action {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: transform 0.15s, opacity 0.15s;
    text-decoration: none;
}

.dash-btn-action:hover {
    transform: translateY(-1px);
    opacity: 0.85;
}

.dash-btn-view {
    background: #e0f2fe;
    color: #0369a1;
}

.dash-btn-edit {
    background: #f1eeeb;
    color: #7a726e;
}

.dash-btn-vendu {
    background: #dcfce7;
    color: #166534;
}

.dash-btn-disponible {
    background: #dcfce7;
    color: #166534;
}

.dash-btn-delete {
    background: #fee2e2;
    color: var(--primary-color);
}

/* Menu mobile ⋮ */
.dash-mobile-menu {
    display: none;
    position: relative;
}

.dash-menu-trigger {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    background: #f1eeeb;
    color: #7a726e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: background 0.15s;
}

.dash-menu-trigger:hover {
    background: #e8e4e0;
}

.dash-dropdown {
    display: none;
    position: fixed;
    background: #fff;
    border: 1px solid #e8e4e0;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13);
    min-width: 175px;
    z-index: 500;
    overflow: hidden;
}

.dash-dropdown.open {
    display: block;
}

.dash-dropdown > * {
    border-bottom: 1px solid #f0eeec;
}

.dash-dropdown > *:last-child {
    border-bottom: none;
}

.dash-dropdown form {
    margin: 0;
    border-bottom: 1px solid #f0eeec;
}

.dash-dropdown form:last-child {
    border-bottom: none;
}

.dash-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #1e1b19;
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    transition: background 0.12s;
    text-align: left;
    white-space: nowrap;
}

.dash-dropdown-item:hover {
    background: #f8f6f4;
}

.dash-dropdown-item i {
    width: 14px;
    text-align: center;
    font-size: 13px;
    flex-shrink: 0;
}

.dash-dropdown-item-vendu {
    color: #166534;
}

.dash-dropdown-item-delete {
    color: var(--primary-color);
}

.featured-oui {
    background: #fef3c7;
    color: #92400e;
}

.featured-non {
    background: #f1eeeb;
    color: #7a726e;
}

/* ===== MODAL AJOUTER UN VÉHICULE ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    overflow-y: auto;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 860px;
    margin: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.modal-header {
    background: var(--dark-bg);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: #ccc;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}

.modal-close:hover { color: #fff; }

.modal-content form {
    padding: 28px;
}

.modal-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 20px;
    margin-bottom: 16px;
}

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

.modal-full {
    grid-column: 1 / -1;
}

.modal-form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.modal-form-group input,
.modal-form-group select,
.modal-form-group textarea {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    font-family: inherit;
}

.modal-form-group input:focus,
.modal-form-group select:focus,
.modal-form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(181, 24, 38, 0.1);
    background: #fff;
}

.modal-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Zone upload photos */
.upload-zone {
    border: 2px dashed #d1c7c0;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: border-color 0.2s, background 0.2s;
    background: #fafafa;
}

.upload-zone:hover {
    border-color: var(--primary-color);
    background: #fff8f8;
}

.upload-zone i {
    font-size: 28px;
    color: #aaa;
}

.upload-zone span {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.upload-zone small {
    font-size: 12px;
    color: #999;
}

.upload-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

.photo-drag-hint {
    font-size: 12px;
    color: #8a7f7a;
    margin-top: 6px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.photo-preview-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    min-height: 70px;
    padding: 6px;
    border-radius: 8px;
    border: 1px dashed transparent;
    transition: border-color 0.2s;
}

.photo-preview-row:has(.photo-preview-item) {
    border-color: #e0d8d4;
    background: #faf9f8;
}

.photo-preview-item {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    cursor: grab;
    border-radius: 8px;
    border: 2px solid transparent;
    padding: 2px;
    transition: border-color 0.15s, opacity 0.15s, transform 0.15s;
    user-select: none;
}

.photo-preview-item:active { cursor: grabbing; }

.photo-preview-item.dragging {
    opacity: 0.35;
    border-color: var(--primary-color);
    border-style: dashed;
    transform: scale(0.97);
}

.photo-preview-item img {
    width: 90px;
    height: 68px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #e0d8d4;
    display: block;
    pointer-events: none;
}

/* Poignée de déplacement */
.drag-handle {
    font-size: 16px;
    color: #b0a8a4;
    line-height: 1;
    margin-bottom: 2px;
    display: block;
    text-align: center;
    pointer-events: none;
}

/* Badge "1ère photo" */
.photo-badge {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    white-space: nowrap;
    pointer-events: none;
}

.photo-remove-btn {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    transition: opacity 0.15s;
    z-index: 2;
}

.photo-remove-btn:hover { opacity: 0.8; }

/* Footer modal */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.modal-btn-cancel {
    background: #f1eeeb;
    color: #555;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-btn-cancel:hover { background: #e5e0db; }

.modal-btn-save {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-btn-save:hover { opacity: 0.88; }



/* ===== PAGE REPRISE ===== */
.reprise-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url('../images/background/reprise-hero.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.reprise-hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.reprise-hero h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.reprise-hero p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 32px;
    color: #e8e5e2;
}

.reprise-btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    padding: 14px 34px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.reprise-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(181,24,38,0.35);
}

.reprise-intro {
    text-align: center;
    max-width: 760px;
    margin: 52px auto 0;
    padding: 0 24px;
    font-size: 15px;
    color: #7a726e;
    line-height: 1.8;
}

/* Layout principal */
.reprise-main {
    padding: 48px 24px 80px;
    background: #f4f2f0;
}

.reprise-layout {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    max-width: 800px;
    gap: 32px;
    align-items: start;
}

/* Card formulaire */
.reprise-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.07);
}

.reprise-section-title {
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    color: #1e1b19;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0ede9;
}

/* Blocs de section dans le formulaire */
.reprise-bloc {
    margin-bottom: 32px;
}

.reprise-bloc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1e1b19;
}

.reprise-bloc-icon {
    width: 34px;
    height: 34px;
    background: rgba(181,24,38,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 14px;
    flex-shrink: 0;
}

/* Grille du formulaire */
.reprise-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

.reprise-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.reprise-full {
    grid-column: span 2;
}

.reprise-field label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9e9590;
}

.reprise-field input,
.reprise-field select,
.reprise-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e8e5e2;
    border-radius: 10px;
    font-size: 14px;
    background: #faf9f7;
    font-family: inherit;
    color: #1e1b19;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.reprise-field input:focus,
.reprise-field select:focus,
.reprise-field textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(181,24,38,0.08);
    background: #fff;
}

.reprise-field textarea {
    resize: vertical;
    min-height: 90px;
}

/* Alertes */
.reprise-alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reprise-alert-success { background: #dcfce7; color: #166534; }
.reprise-alert-error   { background: #fee2e2; color: #b91c1c; }

/* Bouton soumettre */
.reprise-btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    transition: opacity 0.2s, transform 0.15s;
    margin-top: 8px;
}

.reprise-btn-submit:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}



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

@media (max-width: 580px) {
    .reprise-form-grid { grid-template-columns: 1fr; }
    .reprise-full { grid-column: span 1; }
    .reprise-card { padding: 24px 16px; }
}

.reprise-mailto-info {
    background: #fef9e7;
    border: 1px solid #f5c518;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 13px;
    color: #7a6500;
    line-height: 1.6;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.reprise-mailto-info i {
    margin-top: 2px;
    flex-shrink: 0;
    color: #c49a00;
}

.reprise-rgpd {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    cursor: pointer;
}

.reprise-rgpd input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.reprise-rgpd span {
    font-size: 13px;
    color: #7a726e;
    line-height: 1.6;
}

.reprise-rgpd-link {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ===== PAGES LÉGALES ===== */
.legal-hero {
    background: var(--dark-bg);
    padding: 60px 24px;
    text-align: center;
    border-bottom: 4px solid var(--primary-color);
}

.legal-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.legal-hero h1 {
    color: #fff;
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.legal-hero p {
    color: #9e9590;
    font-size: 15px;
}

.legal-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 24px 72px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.legal-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.legal-card h2 {
    font-size: 17px;
    font-weight: 800;
    color: #1e1b19;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-card h2 i {
    color: var(--primary-color);
    font-size: 16px;
}

.legal-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

.legal-card ul {
    padding-left: 20px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legal-card ul li {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.legal-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-date {
    font-size: 12px;
    color: #aaa;
    text-align: center;
    margin-top: 8px;
}

/* Cookies */
.legal-cookie-type {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0ede9;
}

.legal-cookie-type:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.legal-cookie-type h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1e1b19;
    margin-bottom: 6px;
}

.legal-cookie-type p {
    margin-bottom: 4px;
}

.legal-cookie-badge {
    flex-shrink: 0;
    height: fit-content;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

.badge-obligatoire {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-optionnel {
    background: #dcfce7;
    color: #166534;
}

/* ===================== RACHAT ===================== */

.rachat-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url('../images/background/rachat-hero.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.rachat-hero h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.rachat-hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.rachat-intro {
    text-align: center;
    max-width: 800px;
    margin: 60px auto 40px;
    padding: 0 20px;
    font-size: 16px;
    color: #7a726e;
    line-height: 1.8;
}

/* 4 étapes */
.rachat-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.rachat-step-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #e8e5e2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
}

.rachat-step-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.rachat-step-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: #1e1b19;
    margin-bottom: 10px;
}

.rachat-step-card p {
    font-size: 14px;
    color: #7a726e;
    line-height: 1.6;
}

/* Formulaire estimation */
.rachat-estimation {
    max-width: 800px;
    margin: 0 auto 80px;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #e8e5e2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.rachat-section-title {
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-align: center;
    color: #1e1b19;
}

.rachat-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rachat-form-group {
    display: flex;
    flex-direction: column;
}

.rachat-form-group.full-width {
    grid-column: span 2;
}

.rachat-form-group label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #7a726e;
}

.rachat-form-group input,
.rachat-form-group select,
.rachat-form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e8e5e2;
    border-radius: 10px;
    font-size: 14px;
    background: #f4f2f0;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

.rachat-form-group input:focus,
.rachat-form-group select:focus,
.rachat-form-group textarea:focus {
    border-color: var(--primary-color);
}

.rachat-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.rachat-submit-container {
    text-align: center;
    margin-top: 30px;
}

.rachat-btn-submit {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    font-family: inherit;
}

.rachat-btn-submit:hover {
    background-color: #92131e;
    transform: translateY(-2px);
}

.rachat-mailto-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fef9e7;
    border: 1px solid #f5c518;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 13px;
    color: #7a6500;
    margin-bottom: 24px;
    line-height: 1.5;
}

.rachat-mailto-info i {
    margin-top: 2px;
    flex-shrink: 0;
    color: #c49a00;
}

.rachat-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.rachat-alert-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.rachat-alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.rachat-rgpd {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    font-size: 13px;
    color: #7a726e;
    line-height: 1.6;
    cursor: pointer;
}

.rachat-rgpd input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
}

.rachat-rgpd-link {
    color: var(--primary-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .rachat-steps { grid-template-columns: 1fr 1fr; }
    .rachat-form-grid { grid-template-columns: 1fr; }
    .rachat-form-group.full-width { grid-column: span 1; }
    .rachat-estimation { padding: 24px 16px; }
}

@media (max-width: 480px) {
    .rachat-steps { grid-template-columns: 1fr; }
}

/* =========================================================================
   Classes utilitaires (remplacent les anciens style="..." inline des vues)
   Placées en fin de fichier pour primer sur l'état d'affichage par défaut.
   ========================================================================= */

/* Masquage initial ; le JS réaffiche en forçant display (inline) ou en
   retirant cette classe. */
.is-hidden { display: none; }

/* Mise en forme ponctuelle de texte / liens */
.u-uppercase  { text-transform: uppercase; }
.u-plain-link { text-decoration: none; color: inherit; }

/* Espacements ponctuels */
.u-mt-8  { margin-top: 8px; }
.u-mt-12 { margin-top: 12px; }
.u-mt-24 { margin-top: 24px; }
.u-mb-0  { margin-bottom: 0; }

/* Formulaires d'action en ligne du tableau de bord (vendu / dispo / suppr.) */
.dash-action-form { display: inline; }

/* Libellé "PHOTO À VENIR" sur la fiche véhicule */
.photo-a-venir { color: #b5b0aa; font-weight: 700; font-size: 14px; }

/* Page "changer le mot de passe" */
.login-card--narrow   { max-width: 500px; }
.login-error--success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.form-actions         { display: flex; gap: 12px; margin-top: 10px; }
.btn-submit--cancel   { background: #f1eeeb; color: #1e1b19; box-shadow: none; text-decoration: none; }

/* =====================================================
   RESPONSIVE MOBILE — GLOBAL
   ===================================================== */

/* --- Burger button (masqué sur desktop) --- */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    z-index: 1100;
    position: relative;
}

.burger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.2s ease;
    transform-origin: center;
}

.burger-btn.nav-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger-btn.nav-open span:nth-child(2) { opacity: 0; }
.burger-btn.nav-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Menu overlay plein écran (masqué sur desktop) */
.nav-links { list-style: none; }
.nav-phone-mobile { display: none !important; }
/* Icônes et ligne contact : uniquement dans le menu burger (mobile/tablette) */
.nav-links .nav-icon { display: none; }
.nav-meta { display: none !important; }

/* ============ TABLETTE ≤ 992px ============ */
@media (max-width: 992px) {
    /* Hero home */
    .filter-section {
        padding: 80px 20px 220px;
    }
    .filter-section h2 { font-size: 36px; }
    .hero-subtitle, .hero-subtitlee { font-size: 18px; margin-bottom: 40px; }

    /* Map + contact */
    .maps-contact-grid {
        grid-template-columns: 1fr;
    }
    .map-box { min-height: 300px; }
    .contact-box h3 { font-size: 22px; }

    /* Avis Google : padding flèches */
    .airbnb-slider-wrapper { padding: 0 50px; }
}

/* ============ NAV BURGER ≤ 1030px ============ */
@media (max-width: 1030px) {

    /* --- Navigation --- */
    .burger-btn { display: flex; }
    .phone-button { display: none; }

    /* Header fixed sous la barre de statut iOS, padding égal pour centrer le logo */
    header {
        position: fixed;
        top: constant(safe-area-inset-top, 0px);
        top: env(safe-area-inset-top, 0px);
        left: 0;
        right: 0;
        z-index: 300;
        padding: 10px 0;
    }

    /* Compenser header fixe : logo 44px + 2×10px padding */
    body {
        padding-top: calc(64px + constant(safe-area-inset-top, 0px));
        padding-top: calc(64px + env(safe-area-inset-top, 0px));
    }

    /* Barre filtres/tri : colle sous le header (44px logo + 2×10px padding) */
    .mobile-action-bar {
        top: calc(64px + constant(safe-area-inset-top, 0px));
        top: calc(64px + env(safe-area-inset-top, 0px));
        z-index: 250;
    }


    .logo img { height: 44px; }

    /* Panneau plein écran qui glisse depuis le header (72 + 8×2 = 88px) */
    .nav-links {
        position: fixed;
        top: calc(64px + constant(safe-area-inset-top, 0px));
        top: calc(64px + env(safe-area-inset-top, 0px));
        left: 0;
        right: 0;
        height: calc(100vh - 64px - env(safe-area-inset-top, 0px));
        height: calc(100dvh - 64px - env(safe-area-inset-top, 0px));
        background: #111111;
        border-top: 2px solid var(--primary-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        padding: 14px 0 28px;
        overflow-y: auto;
        z-index: 260;            /* au-dessus de la barre filtres, sous le header */
        transform: translateY(-110%);   /* caché au-dessus de l'écran */
        transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.nav-open {
        transform: translateY(0);
    }

    /* Entrées : apparition en cascade à l'ouverture */
    .nav-links li {
        width: 100%;
        text-align: left;
        opacity: 0;
        transform: translateX(-16px);
        transition: opacity 0.35s ease, transform 0.35s ease;
    }
    .nav-links.nav-open li { opacity: 1; transform: translateX(0); }
    .nav-links.nav-open li:nth-child(1) { transition-delay: 0.10s; }
    .nav-links.nav-open li:nth-child(2) { transition-delay: 0.16s; }
    .nav-links.nav-open li:nth-child(3) { transition-delay: 0.22s; }
    .nav-links.nav-open li:nth-child(4) { transition-delay: 0.28s; }
    .nav-links.nav-open li:nth-child(5) { transition-delay: 0.36s; }
    .nav-links.nav-open li:nth-child(6) { transition-delay: 0.42s; }

    /* Lignes de menu (icône + libellé + chevron) */
    .nav-links .nav-item {
        display: flex;
        align-items: center;
        gap: 18px;
        padding: 19px 26px;
        font-size: 17px;
        font-weight: 600;
        letter-spacing: 0.4px;
        text-transform: uppercase;
        color: #f2f0ee;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
    }
    .nav-links li:first-child .nav-item { border-top: 1px solid rgba(255, 255, 255, 0.07); }

    .nav-links .nav-item .nav-icon {
        display: inline-flex;
        justify-content: center;
        width: 24px;
        font-size: 17px;
        color: var(--primary-color);
        flex-shrink: 0;
    }

    .nav-links .nav-item::after {
        content: '\f054';                 /* chevron-right */
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        margin-left: auto;
        font-size: 12px;
        color: rgba(255, 255, 255, 0.22);
    }

    .nav-links .nav-item:hover,
    .nav-links .nav-item:active { background: rgba(255, 255, 255, 0.06); text-decoration: none; }

    /* Page active : fond léger + barre rouge à gauche */
    .nav-links .nav-item.active {
        color: #ffffff;
        background: rgba(181, 24, 38, 0.16);
        box-shadow: inset 4px 0 0 var(--primary-color);
    }
    .nav-links .nav-item.active::after { color: var(--primary-color); }

    /* Bloc bas : bouton téléphone + adresse, poussés en bas du panneau */
    .nav-phone-mobile {
        display: block !important;
        margin-top: auto;
        width: 100%;
        padding: 24px 26px 0;
    }
    .nav-phone-mobile a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: var(--primary-color) !important;
        color: #fff !important;
        font-size: 16px !important;
        font-weight: 800 !important;
        padding: 15px 24px !important;
        border-radius: 50px !important;
        letter-spacing: 0.3px !important;
        text-transform: none !important;
        box-shadow: 0 8px 20px rgba(181, 24, 38, 0.35);
    }

    /* Adresse discrète sous le bouton */
    .nav-meta {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px 26px 0;
        color: #8b8680;
        font-size: 12.5px;
        text-align: center;
    }
    .nav-meta i { color: var(--primary-color); font-size: 13px; }
}

/* ============ MOBILE ≤ 768px ============ */
@media (max-width: 768px) {

    /* --- Hero home --- */
    .filter-section {
        padding: 60px 16px 180px;
    }
    .filter-section h2 { font-size: 26px; letter-spacing: -0.3px; }
    .hero-subtitle, .hero-subtitlee { font-size: 15px; margin-bottom: 30px; }

    /* Formulaire de filtre : pile verticale */
    .filter-form {
        flex-direction: column;
        border-radius: 16px;
        padding: 12px 16px 16px;
        gap: 0;
        align-items: stretch;
    }

    .form-group {
        border-right: none;
        border-bottom: 1px solid #e8e5e2;
        padding-right: 0;
        flex: unset;
    }

    .form-group:last-of-type { border-bottom: none; }

    /* display:block pour empiler header puis popup (sinon le flex en ligne
       hérité de .form-group les met côte à côte). */
    .range-group { display: block; padding: 0; }
    /* padding-left 10px = même retrait que le texte des <select>, pour aligner
       les libellés (Marques/Modèle/Énergie vs Kilométrage/Prix). */
    .range-header { padding: 12px 10px; }

    /* Sur mobile, le popup s'affiche en accordéon : il s'insère dans le flux
       et pousse le contenu vers le bas au lieu de le recouvrir (position
       absolue du desktop). Masqué quand fermé, affiché quand .active.
       On cible aussi .active pour neutraliser le transform de la règle de base
       (spécificité plus forte) qui décalerait le popup hors de l'écran. */
    .range-popup,
    .range-popup.active {
        position: static;
        left: auto;
        transform: none;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
    }
    .range-popup { display: none; }
    .range-popup.active { display: block; }
    .range-popup .popup-content { padding: 8px 4px 16px; }

    .btn-search {
        width: 100%;
        margin-top: 12px;
        padding: 14px;
    }

    /* Map + contact : 1 colonne */
    .maps-contact-section { padding: 30px 16px; }
    .maps-contact-grid { grid-template-columns: 1fr; gap: 18px; }
    .map-box { min-height: 220px; }

    /* Bloc contact plus compact sur mobile */
    .contact-box { padding: 22px 20px; }
    .contact-box h3 { font-size: 19px; margin-bottom: 18px; padding-bottom: 12px; }
    .contact-method { margin-bottom: 16px; }
    .contact-method p { margin-bottom: 4px; }
    .contact-method a { font-size: 15px; }

    /* Section services */
    .services-section { padding: 50px 20px; }
    .services-section h2 { font-size: 26px; margin-bottom: 30px; }

    /* Section titre véhicules */
    .section-title { font-size: 24px !important; }

    /* Avis Google : un seul avis à la fois, présenté comme une vraie carte
       (fond, bordure, ombre, arrondi), centré entre les deux flèches. */
    .airbnb-slider-wrapper { padding: 0 40px; }
    .airbnb-card {
        flex: 0 0 100%;
        min-width: 0;
        background: #ffffff;
        border: 1px solid #e8e5e2;
        border-radius: 16px;
        padding: 22px 20px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
    }
    /* Flèches écartées vers les bords de l'écran (décalage négatif qui compense
       le padding 20px du .container). */
    .arrow-prev { left: -16px; }
    .arrow-next { right: -16px; }
    /* min-width:0 sur l'info : sans ça, le flex refuse de rétrécir sous la
       largeur du nom et l'ellipsis ne s'active pas (le nom passe sous le logo). */
    .airbnb-card-header { padding-right: 22px; }
    .airbnb-name { font-size: 14px; }
    .airbnb-user-info { min-width: 0; max-width: none; }

    /* Reprise / Rachat hero */
    .reprise-hero, .rachat-hero {
        padding: 60px 20px;
    }
    .reprise-hero h1, .rachat-hero h1 { font-size: 26px; }
    .reprise-hero p, .rachat-hero p { font-size: 15px; }

    /* Reprise intro */
    .reprise-intro, .rachat-intro { margin: 30px auto 20px; font-size: 15px; }

    /* Footer : une seule colonne, centré */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.2rem;
        text-align: center;
        padding: 2.5rem 20px 2rem;
    }
    .footer-section h3::after { left: 50%; transform: translateX(-50%); }
    .footer-about { display: flex; flex-direction: column; align-items: center; }
    .footer-brand { height: 60px; margin: 0 auto 1rem; }
    .footer-tagline { max-width: 340px; }
    .footer-social { justify-content: center; }
    .footer-section ul a:hover { padding-left: 0; }
    .footer-contact a { justify-content: center; }
    .footer-contact span { text-align: left; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 0.8rem; }

    /* Pages légales */
    .legal-hero { padding: 40px 20px; }
    .legal-container { padding: 0 16px; }
    .legal-card { padding: 20px; }

    /* Détail véhicule */
    .specs-section, .description-section { padding: 24px 16px; }

    /* Page véhicules : supprimer le padding haut excessif */
    .catalog-page { padding-top: 12px; padding-bottom: 20px; padding-left: 12px; padding-right: 12px; }
    .breadcrumb { padding-top: 0; padding-bottom: 6px; }
}

/* ============ MOBILE ≤ 480px ============ */
@media (max-width: 480px) {
    .filter-section h2 { font-size: 22px; }

    /* Cartes véhicules : 2 colonnes compactes sur téléphone */
    .vehicle-card .card-icon { height: 110px; }
    .vehicle-card .card-image-macaron { width: 90px; height: 90px; }
    .vehicle-card .card-text { padding: 14px 8px; }
    .vehicle-card h3 { font-size: 13px; }

    /* Rachat étapes : 1 colonne */
    .rachat-steps { grid-template-columns: 1fr; }

    /* Formulaire rachat */
    .rachat-form-grid { grid-template-columns: 1fr; }
    .rachat-form-group.full-width { grid-column: span 1; }
    .rachat-estimation { padding: 20px 14px; }

    /* Reprise form */
    .reprise-form-grid { grid-template-columns: 1fr; }
    .reprise-full { grid-column: span 1; }
    .reprise-card { padding: 20px 14px; }

    /* Vehicle detail info card */
    .sticky-info-card { padding: 20px 16px; }
    .vehicle-title { font-size: 20px; }
    .main-price { font-size: 26px; }

    /* Footer */
    .footer-section ul { text-align: center; }
}

/* =====================================================
   RESPONSIVE — PAGE CONNEXION
   ===================================================== */
@media (max-width: 768px) {
    .login-header-inner {
        padding: 0 16px;
    }

    .login-header-inner .logo img {
        height: 40px;
    }

    .btn-retour-site {
        font-size: 12px;
        padding: 8px 12px;
        gap: 5px;
    }

    .btn-retour-site span { display: none; }

    .login-wrapper {
        padding: 30px 16px;
        align-items: flex-start;
    }

    .login-card {
        padding: 32px 20px;
        border-radius: 16px;
    }

    .login-card h2 {
        font-size: 20px;
        margin-bottom: 24px;
    }
}

/* =====================================================
   RESPONSIVE — TABLEAU DE BORD
   ===================================================== */
@media (max-width: 768px) {

    /* Header dashboard */
    .login-header-inner {
        padding: 0 16px;
        gap: 10px;
    }

    .dashboard-header-right {
        gap: 8px;
    }

    .btn-logout {
        font-size: 12px;
        padding: 8px 12px;
    }

    /* Container */
    .dashboard-container {
        margin: 20px auto;
        padding: 0 12px;
    }

    .dashboard-main-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    /* Barre recherche + bouton ajouter */
    .dashboard-action-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 16px;
    }

    .dashboard-search-box {
        max-width: 100%;
    }

    .dashboard-btn-add {
        justify-content: center;
        width: 100%;
    }

    /* Tableau : arrondi réduit */
    .dashboard-table-wrapper {
        border-radius: 10px;
    }

    /* Modals : padding réduit, grille 1 colonne */
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .modal-content {
        border-radius: 16px 16px 0 0;
        max-height: 92vh;
        overflow-y: auto;
        margin: 0;
    }

    .modal-header {
        padding: 16px 20px;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .modal-title { font-size: 15px; }

    .modal-content form {
        padding: 16px;
    }

    .modal-form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px 14px;
    }

    .modal-full {
        grid-column: 1 / -1;
    }

    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }

    .modal-footer button,
    .modal-footer a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 1450px) {
    /* "À ne pas rater" masquée en premier pour gagner de la place */
    .dash-col-medium {
        display: none;
    }
}

@media (max-width: 1150px) {
    /* Palier intermédiaire : Modèle, Année, Énergie, Km masqués — Prix et État restent */
    .dashboard-table {
        min-width: unset;
    }

    .dash-col-desktop {
        display: none;
    }

    .dash-modele-mobile {
        display: block;
        font-size: 12px;
        color: #7a726e;
        font-weight: 400;
        margin-top: 2px;
    }
}

@media (max-width: 690px) {
    /* Vue mobile : Prix et État masqués, 4 boutons → menu ⋮ */
    .dash-col-tablet {
        display: none;
    }

    .dash-actions {
        display: flex;
        gap: 4px;
        justify-content: flex-end;
    }

    .dash-actions .dash-btn-action {
        width: 30px;
        height: 30px;
        font-size: 11px;
        border-radius: 6px;
    }

    .dash-mobile-menu {
        display: none;
    }

    /* Prix affiché inline dans la cellule Véhicule */
    .dash-prix-mobile {
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: #1e1b19;
        margin-top: 3px;
    }

    /* Photo et Actions : réduites au contenu ; Véhicule prend tout l'espace */
    .dashboard-table th:nth-child(1),
    .dashboard-table td:nth-child(1) {
        width: 1%;
        padding: 10px 6px 10px 10px;
    }

    .dashboard-table th:last-child,
    .dashboard-table td:last-child {
        width: 1%;
        padding: 10px 10px 10px 6px;
    }

    .dashboard-table td {
        padding: 10px 6px;
    }

    /* Vignette photo : plus grande et carrée */
    .dash-thumb {
        width: 60px;
        height: 60px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    /* Modal : 1 colonne sur très petit écran */
    .modal-form-grid {
        grid-template-columns: 1fr;
    }

    /* Header dashboard : cacher le texte des boutons */
    .btn-logout .btn-text,
    .btn-retour-site .btn-text { display: none; }
}

/* ===== PAGE 404 ===== */
.not-found-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: #f9f7f4;
}

.not-found-container {
    text-align: center;
    max-width: 500px;
}

.not-found-code {
    font-size: 120px;
    font-weight: 900;
    color: #1F3864;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -4px;
}

.not-found-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e1b19;
    margin-bottom: 12px;
}

.not-found-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 32px;
}

.not-found-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1F3864;
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.not-found-btn:hover {
    background: #162a4f;
}

.footer-credit {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 6px;
    text-align: center;
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
}

.footer-credit a:hover {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
}

.dashboard-btn-backup {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #2d2d2d;
    color: #ccc;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.dashboard-btn-backup:hover {
    background: #444;
    color: #fff;
}
