:root {
    --primary: #222222;
    --accent: #b2925e;
    --background: #f6f6f4;
    --white: #ffffff;
    --text: #262626;
    --muted: #737373;
    --border: #e5e5e5;
    --radius: 10px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* ==============================
   HEADER
   ============================== */

.header {
    height: 74px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: var(--white);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.logo i {
    color: var(--accent);
    margin-right: 8px;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 14px;
}

.navigation a {
    transition: color 0.2s ease;
}

.navigation a:hover {
    color: var(--accent);
}


/* ==============================
   HERO
   ============================== */

.hero {
    padding: 70px 0 75px;
    background: var(--background);
    text-align: center;
}

.hero h1 {
    margin: 0 0 15px;
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -1px;
    line-height: 1.15;
}

.hero-subtitle {
    margin: 0 0 38px;
    color: var(--muted);
    font-size: 18px;
}


/* ==============================
   RECHERCHE
   ============================== */

.search-box {
    max-width: 750px;
    margin: 0 auto;
    padding: 20px;

    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    gap: 12px;

    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.field {
    position: relative;
}

.field > i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 16px;

    transform: translateY(-50%);

    color: #999999;
    pointer-events: none;
}

.field input,
.field select {
    width: 100%;
    height: 52px;

    padding: 0 15px 0 43px;

    border: 1px solid var(--border);
    border-radius: 7px;
    outline: none;

    background: var(--white);
    color: var(--text);

    font-size: 14px;
}

.field input:focus,
.field select:focus {
    border-color: var(--accent);
}

.btn {
    height: 52px;
    padding: 0 25px;

    border: 0;
    border-radius: 7px;

    cursor: pointer;

    font-size: 14px;
    font-weight: 600;

    transition: background 0.2s ease;
}

.btn i {
    margin-right: 5px;
}

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

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


/* ==============================
   SECTIONS
   ============================== */

.section {
    padding: 70px 0;
}

.section-title {
    margin-bottom: 40px;
    text-align: center;
}

.section-title h2 {
    margin: 0 0 10px;
    font-size: 30px;
}

.section-title p {
    margin: 0;
    color: var(--muted);
}


/* ==============================
   VEHICULES
   ============================== */

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

.vehicle {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--white);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.vehicle:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.vehicle-photo {
    position: relative;

    height: 220px;
    overflow: hidden;

    background: #eeeeee;
}

.vehicle-photo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.vehicle-ref {
    position: absolute;
    top: 12px;
    right: 12px;

    padding: 6px 9px;

    border-radius: 5px;

    background: rgba(0, 0, 0, 0.72);
    color: var(--white);

    font-size: 11px;
}

.vehicle-content {
    padding: 20px;
}

.vehicle-content h3 {
    margin: 0 0 8px;
    font-size: 19px;
}

.location {
    margin-bottom: 18px;

    color: var(--muted);

    font-size: 14px;
}

.location i {
    width: 17px;
    color: var(--accent);
}

.vehicle-features {
    display: flex;
    gap: 15px;

    margin-bottom: 15px;
    padding: 15px 0;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    color: #666666;

    font-size: 13px;
}

.vehicle-features i {
    margin-right: 5px;
    color: var(--accent);
}

.vehicle-button {
    display: block;

    padding: 12px;

    border-radius: 6px;

    background: var(--primary);
    color: var(--white);

    text-align: center;
    font-size: 14px;
    font-weight: 600;

    transition: background 0.2s ease;
}

.vehicle-button:hover {
    background: var(--accent);
}


/* ==============================
   COMMENT ÇA MARCHE
   ============================== */

.how {
    background: var(--background);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;

    text-align: center;
}

.step-icon {
    width: 65px;
    height: 65px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--white);
    color: var(--accent);

    font-size: 23px;
}

.step h3 {
    margin: 0 0 10px;
}

.step p {
    margin: 0;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.6;
}


/* ==============================
   FOOTER
   ============================== */

.footer {
    padding: 35px 0;

    background: #202020;
    color: #aaaaaa;

    text-align: center;
    font-size: 13px;
}


/* ==============================
   TABLETTE
   ============================== */

@media (max-width: 850px) {

    .navigation {
        display: none;
    }

    .hero {
        padding: 45px 0;
    }

    .search-box {
        grid-template-columns: 1fr;
    }

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

    .steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}


/* ==============================
   MOBILE
   ============================== */

@media (max-width: 550px) {

    .container {
        width: min(100% - 24px, 1180px);
    }

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

    .hero-subtitle {
        font-size: 16px;
    }

    .section {
        padding: 50px 0;
    }
}


/* ==========================================================
   PAGE RESULTATS / DEPARTEMENT
   ========================================================== */


/* ==============================
   ENTETE RESULTATS
   ============================== */

.results-header {
    padding: 35px 0 40px;
    background: var(--background);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 28px;

    color: var(--muted);
    font-size: 13px;
}

.breadcrumb a {
    transition: color 0.2s ease;
}

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

.breadcrumb > i {
    font-size: 9px;
    color: #bbbbbb;
}

.results-header h1 {
    margin: 0 0 12px;

    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.8px;
}

.results-count {
    margin: 0;

    color: var(--muted);
    font-size: 16px;
}

.results-count strong {
    color: var(--text);
}


/* ==============================
   FILTRES
   ============================== */

.filters-section {
    position: relative;
    z-index: 5;

    background: var(--background);
    padding-bottom: 35px;
}

.filters {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 15px;

    padding: 20px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 12px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.filter-field label {
    display: block;

    margin-bottom: 8px;

    color: var(--muted);

    font-size: 12px;
    font-weight: 600;
}

.filter-field label i {
    width: 18px;
    color: var(--accent);
}

.filter-field input,
.filter-field select {
    width: 100%;
    height: 46px;

    padding: 0 13px;

    border: 1px solid var(--border);
    border-radius: 6px;

    background: var(--white);
    color: var(--text);

    outline: none;
}

.filter-field input:focus,
.filter-field select:focus {
    border-color: var(--accent);
}

.filter-button {
    align-self: end;

    height: 46px;

    padding: 0 25px;

    border: 0;
    border-radius: 6px;

    background: var(--primary);
    color: var(--white);

    cursor: pointer;

    font-weight: 600;

    transition: background 0.2s ease;
}

.filter-button i {
    margin-right: 6px;
}

.filter-button:hover {
    background: var(--accent);
}


/* ==============================
   BARRE RESULTATS
   ============================== */

.results-section {
    padding-top: 45px;
}

.results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 20px;
}

.sort-select {
    height: 40px;

    padding: 0 35px 0 12px;

    border: 1px solid var(--border);
    border-radius: 6px;

    background: var(--white);

    color: var(--text);
}


/* ==============================
   LISTE VEHICULES
   ============================== */

.results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-card {
    display: grid;
    grid-template-columns: 310px 1fr;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--white);

    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.result-card:hover {
    transform: translateY(-2px);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}


/* PHOTO */

.result-photo {
    position: relative;

    min-height: 225px;

    background: #eeeeee;
}

.result-photo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.result-photo .vehicle-ref {
    top: 14px;
    left: 14px;
    right: auto;
}


/* CONTENU */

.result-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 22px 25px;
}

.result-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
}

.vehicle-year {
    display: block;

    margin-bottom: 3px;

    color: var(--accent);

    font-size: 12px;
    font-weight: 700;
}

.result-title h2 {
    margin: 0;

    font-size: 22px;
}

.result-price {
    flex-shrink: 0;

    text-align: right;
}

.result-price span {
    display: block;

    margin-bottom: 2px;

    color: var(--muted);

    font-size: 11px;
}

.result-price strong {
    font-size: 23px;
}

.result-location {
    margin-top: 9px;

    color: var(--muted);

    font-size: 13px;
}

.result-location i {
    margin-right: 5px;
    color: var(--accent);
}


/* CARACTERISTIQUES */

.result-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 15px;

    margin-top: 22px;
    padding-top: 18px;

    border-top: 1px solid var(--border);
}

.result-specs > div {
    display: flex;
    align-items: center;
    gap: 9px;

    font-size: 13px;
}

.result-specs i {
    width: 20px;

    color: var(--accent);

    text-align: center;
    font-size: 17px;
}

.result-specs span {
    display: flex;
    flex-direction: column;
}

.result-specs small {
    margin-bottom: 2px;

    color: var(--muted);

    font-size: 10px;
}


/* BOUTON */

.result-actions {
    display: flex;
    justify-content: flex-end;

    margin-top: 18px;
}

.result-actions .vehicle-button {
    display: inline-block;

    min-width: 170px;

    padding-left: 20px;
    padding-right: 20px;
}

.result-actions .vehicle-button i {
    margin-left: 7px;
}


/* ==============================
   PAGINATION
   ============================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    margin-top: 45px;
}

.page {
    width: 39px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 6px;

    background: var(--white);

    font-size: 13px;

    transition: 0.2s ease;
}

.page:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.page.active {
    border-color: var(--primary);

    background: var(--primary);
    color: var(--white);
}

.page.disabled {
    opacity: 0.35;
    pointer-events: none;
}

.pagination-dots {
    padding: 0 5px;
    color: var(--muted);
}


/* ==============================
   TEXTE DEPARTEMENT
   ============================== */

.department-info {
    padding: 45px 0;

    background: var(--background);
}

.department-info-content {
    display: flex;
    gap: 25px;

    max-width: 900px;
}

.department-icon {
    padding-top: 3px;

    color: var(--accent);

    font-size: 30px;
}

.department-info h2 {
    margin: 0 0 12px;

    font-size: 23px;
}

.department-info p {
    margin: 0 0 8px;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.7;
}

.department-info .cities {
    font-size: 13px;
}


/* ==============================
   RESPONSIVE RESULTATS
   ============================== */

@media (max-width: 900px) {

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

    .filter-button {
        width: 100%;
    }

    .result-card {
        grid-template-columns: 250px 1fr;
    }

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


@media (max-width: 650px) {

    .results-header {
        padding-top: 25px;
    }

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

    .results-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .sort-select {
        width: 100%;
    }

    .result-card {
        display: block;
    }

    .result-photo {
        height: 230px;
    }

    .result-content {
        padding: 20px;
    }

    .result-title {
        gap: 10px;
    }

    .result-title h2 {
        font-size: 19px;
    }

    .result-price strong {
        font-size: 19px;
    }

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

    .result-actions .vehicle-button {
        width: 100%;
    }

    .pagination .page:nth-of-type(5),
    .pagination .page:nth-of-type(6) {
        display: none;
    }

    .department-info-content {
        gap: 15px;
    }

}


