/* ── Mobile : remplace le carrousel 3D ─────────────────────── */
.mobile-veh-grid { display: none; }

@media (max-width: 767px) {
    .carousel-container { display: none !important; }
    .mobile-veh-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        padding: 0 14px 28px;
    }
    .mv-card {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 14px rgba(0,0,0,.10);
        overflow: hidden;
        text-decoration: none;
        color: inherit;
        display: flex;
        flex-direction: column;
        transition: transform .15s;
    }
    .mv-card:active { transform: scale(.97); }
    .mv-card-img {
        background: #1a1a2e;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        height: 110px;
        padding: 10px 10px 4px;
    }
    .mv-card-img img {
        max-height: 96px;
        max-width: 100%;
        object-fit: contain;
    }
    .mv-card-body {
        padding: 12px 13px 14px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    .mv-card-cat {
        font-size: .62rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: #c40018;
        margin-bottom: 3px;
    }
    .mv-card-name {
        font-size: .88rem;
        font-weight: 700;
        color: #111;
        line-height: 1.2;
        margin-bottom: 8px;
    }
    .mv-card-price {
        font-size: .75rem;
        color: #666;
        margin-top: auto;
        margin-bottom: 10px;
    }
    .mv-card-price strong {
        font-size: .95rem;
        color: #c40018;
        font-weight: 700;
    }
    .mv-card-cta {
        display: block;
        text-align: center;
        background: linear-gradient(to right, #111, #c40018);
        color: #fff !important;
        font-size: .75rem;
        font-weight: 600;
        padding: 8px;
        border-radius: 6px;
        text-decoration: none;
    }
    .mv-more-btn {
        display: block;
        text-align: center;
        margin: 0 14px 24px;
        padding: 13px;
        background: transparent;
        border: 2px solid #c40018;
        border-radius: 8px;
        color: #c40018;
        font-weight: 700;
        font-size: .88rem;
        text-decoration: none;
    }
}

#section-photos {
    background-image: linear-gradient(to right, #000 0, #92a4b7 100%);
    margin-top: 100px;
}
#filter {
    padding-top: 20px;
}
nav#filter a {
    padding: 10px!important;
    background-color: #000;
    color: #fff;
    line-height: 20px;
    text-decoration: none;
}
nav#filter a.current, nav#filter a:hover {
    background-color: #c40018;
    color: #fff;
}
.isotopeWrapper article {
    margin-bottom: 20px;
}
nav#filter {
    margin-bottom: -.5em;
}
nav#filter li {
    display: inline-block;
    margin: 0 0 10px 5px;
}
.portfolio-items article img {
    width: 100%;
    height: 280px;
}
.portfolio-item {
    display: block;
    position: relative;
    -webkit-transition: .2s ease-in-out;
    -moz-transition: .2s ease-in-out;
    -o-transition: .2s ease-in-out;
    transition: .2s ease-in-out;
}
.portfolio-item img {
    -webkit-transition: .3s linear;
    -moz-transition: .3s linear;
    -o-transition: .3s linear;
    -ms-transition: all .3s linear;
    transition: .3s linear;
}
.portfolio-item .portfolio-desc {
    display: block;
    opacity: 0;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    color: #bac6d3;
}
.portfolio-item:hover .portfolio-desc {
    padding-top: 20%;
    height: 100%;
    transition: .2s ease-in-out;
    opacity: .5;
}
.portfolio-item .portfolio-desc a {
    color: #fff;
}
.portfolio-item .portfolio-desc a:hover {
    text-decoration: none;
}
.portfolio-item .portfolio-desc .folio-info {
    top: -20px;
    padding: 30px;
    height: 0;
    opacity: 0;
    position: relative;
}
.portfolio-item:hover .folio-info {
    height: 100%;
    opacity: 1;
    transition: .5s ease-in-out;
    top: 5px;
}
.portfolio-item .portfolio-desc .folio-info h5 {
    text-transform: uppercase;
}
/* #section-tarifs : anciennement `position: relative; top: 100px;` qui créait
   une bande blanche de 100px au-dessus de la section. Retiré pour harmoniser
   avec les autres pages — le .page-hero gère déjà son padding propre. */
#section-tarifs {
    width: 100%;
    display: block;
}
#section-tarifs a {
    color: rgba(255, 255, 255, .5);
}
#section-tarifs a:hover {
    color: rgba(255, 255, 255, .9);
}
.fd-rouge {
    background-image: linear-gradient(to right, #c40018 0, #000 100%);
}
.carousel-container {
    margin: 80px auto 0;          /* 80px top margin → on voit le haut des vignettes */
    width: 200px;
    height: 300px;
    position: relative;
    perspective: 1800px;
}
.carousel {
    height: 100%;
    width: 100%;
    position: absolute;
    transform-style: preserve-3d;
    /* pas de transition : animation pilotée par requestAnimationFrame */
}
.item {
    display: block;
    position: absolute;
    width: 200px;
    height: auto;
    font-size: 5em;
    text-align: center;
    color: #fff;
    border-radius: 10px;
}
/* Les transforms des items sont générés dynamiquement en PHP (inline style) */

.category {
    width: 100%;
    height: 30px;
    background: rgba(0, 0, 0, 0.10);
    margin-top: 0;
    position: relative;
    padding: 2px 2px 0;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
    border-radius: 10px 10px 0 0;
}
.desc-container {
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 2px 0 0;
    border-radius: 0 0 10px 10px;
    color: rgba(255, 255, 255, .95);
    text-align: center;
    font-size: 10px;
    background: rgba(0, 0, 0, 0.14);
}
.photo {
    width: 90%;
    height: 110px;
    background-color: #fff;
    margin: 8px auto;
    padding: 4px;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, .5);
    border-radius: 4px;
    overflow: hidden;
}
.photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.description {
    border-top: 1px solid rgba(255, 255, 255, .5);
    width: 90%;
    height: auto;
    margin: auto;
    padding: 2px 2px 0;
}
.tarif {
    border-top: 1px solid rgba(255, 255, 255, .5);
    width: 90%;
    height: 80px;
    margin: auto;
    padding: 2px 2px 0;
}
.tarif table {
    margin: auto;
}
.tarif td, .tarif th {
    width: 60px;
    text-align: center;
}
.tarif th {
    font-weight: 900;
}
.spec-liste {
    display: inline;
    padding: 0;
    font-size: 8px;
    height: 50px;
    font-weight: 300;
}
.spec-liste li {
    display: inline-block;
    margin-left: 2px;
    margin-top: 2px;
    width: 35%;
    white-space: nowrap;
}
.spec-liste img {
    display: inline;
    vertical-align: middle;
    width: 15px;
    height: 15px;
    opacity: .5;
}
.triangle-code {
    display: block;
    position: absolute;
    left: 0;
    height: 0;
    width: 0;
    color: #fff;
    border-radius: 10px 0 0;
    top: 40px;
    line-height: 10px;
    border-top: 100px solid red;
    border-right: 100px solid transparent;
}
.promotext {
    position: absolute;
    top: -80px;
    left: -20px;
    width: 100px;
    font-weight: 700;
    transform: rotate(-45deg);
}
.promodetail {
    text-align: center;
    font-weight: 700;
    color: #5f5f5f;
}
/* ── Contrôles du carrousel ── */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 120px;
    margin-bottom: 120px;
}

/* Boutons nav ← → : style ghost, s'allument au hover */
.carousel-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .45);
    background: transparent;
    color: rgba(255, 255, 255, .75);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, background .2s, color .2s, transform .15s;
}
.carousel-btn:hover {
    border-color: #c40018;
    background: #c40018;
    color: #fff;
    transform: scale(1.1);
}
.carousel-btn:active {
    transform: scale(.94);
}

/* Bouton "Rechercher" — flat + relief subtil, inspiré du modèle */
.go-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 28px;
    background: #c40018;
    color: #fff !important;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    border-radius: 8px;
    text-decoration: none !important;
    border: none;
    border-bottom: 4px solid rgba(0, 0, 0, .3);
    box-shadow: 0 4px 18px rgba(196, 0, 24, .38);
    transition: filter .15s, transform .1s ease, box-shadow .1s ease;
    cursor: pointer;
}
.go-button:hover {
    background: #8c000f;
    filter: brightness(.85);
    transform: translateY(4px);
    border-bottom-width: 1px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .3);
    color: #fff !important;
    text-decoration: none !important;
}
.go-button:active {
    background: #6a000b;
    filter: brightness(.72);
    transform: translateY(5px);
    border-bottom-width: 0;
    box-shadow: none;
}

@media (max-width: 767px) {
    .carousel-controls { margin-top: 30px; }
}

/* ── Vehicle detail link wrapper ── */
.item-link {
    display: block;
    position: absolute;
    inset: 0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    z-index: 10;
}
.item-link:hover .item {
    box-shadow: 0 0 0 3px rgba(255,255,255,.55), 0 8px 28px rgba(0,0,0,.3);
    transform-origin: center;
}
.item-link:hover {
    text-decoration: none;
    color: inherit;
}


