/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Thème enfant Astra pour AutoTed
Author: AutoTed
Template: astra
Version: 1.0.0
*/

:root {
    --ted-bg: #0c1230;
    --ted-bg-deep: #080d24;
    --ted-bg-soft: #121a3d;
    --ted-card: #151f47;
    --ted-border: #2b3767;
    --ted-orange: #ff6a00;
    --ted-orange-hover: #ff7a1a;
    --ted-white: #ffffff;
    --ted-text: #e8ecf5;
    --ted-muted: #aeb7cf;
    --ted-dark: var(--ted-white);
    --ted-line: var(--ted-border);
    --ted-surface: var(--ted-card);
    --ted-accent: var(--ted-orange);
    --ted-accent-dark: var(--ted-orange-hover);
    --ted-radius: 14px;
    --ted-shadow: 0 20px 55px rgba(2, 6, 23, .28);
}

.ted-auto-single-vehicule .site-content > .ast-container {
    display: block;
    max-width: none;
    padding: 0;
}

.ted-vehicle-page {
    width: 100%;
    background: #fff;
    color: var(--ted-dark);
}

.ted-vehicle__container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0 72px;
}

.ted-vehicle__back {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 28px;
    color: var(--ted-muted);
    font-weight: 600;
    text-decoration: none;
}

.ted-vehicle__back:hover { color: var(--ted-accent); }

.ted-vehicle__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .8fr);
    gap: clamp(36px, 6vw, 80px);
    align-items: center;
}

.ted-vehicle__main-image {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    background: var(--ted-surface);
}

.ted-vehicle__main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ted-vehicle__image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--ted-muted);
    font-weight: 600;
}

.ted-vehicle__status {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e9eef5;
    color: #344054;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
}

.ted-vehicle__status--disponible { background: #dcfce7; color: #166534; }
.ted-vehicle__status--reserve { background: #fef3c7; color: #92400e; }
.ted-vehicle__status--preparation { background: #dbeafe; color: #1e40af; }
.ted-vehicle__status--vendu { background: #e5e7eb; color: #374151; }

.ted-vehicle__title {
    margin: 0;
    color: var(--ted-dark);
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -.035em;
    line-height: 1.05;
}

.ted-vehicle__identity {
    margin: 12px 0 0;
    color: var(--ted-muted);
    font-size: 1.05rem;
}

.ted-vehicle__price {
    margin: 28px 0;
    color: var(--ted-accent);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1;
}

.ted-vehicle__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin: 0 0 30px;
    padding: 1px;
    border-radius: 12px;
    background: var(--ted-line);
    list-style: none;
}

.ted-vehicle__facts li {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 16px;
    background: #fff;
}

.ted-vehicle__facts span { color: var(--ted-muted); font-size: .78rem; }
.ted-vehicle__facts strong { color: var(--ted-dark); font-size: .98rem; }

.ted-vehicle__cta {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    background: var(--ted-accent);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
}

.ted-vehicle__cta:hover {
    background: var(--ted-accent-dark);
    color: #fff;
    transform: translateY(-1px);
}

.ted-vehicle__section {
    margin-top: 72px;
    padding-top: 52px;
    border-top: 1px solid var(--ted-line);
}

.ted-vehicle__section h2,
.ted-vehicle__footer-cta h2 {
    margin: 0 0 30px;
    color: var(--ted-dark);
    font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.ted-vehicle__characteristics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 60px;
    margin: 0;
}

.ted-vehicle__characteristics > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--ted-line);
}

.ted-vehicle__characteristics dt { color: var(--ted-muted); }
.ted-vehicle__characteristics dd { margin: 0; color: var(--ted-dark); font-weight: 700; text-align: right; }

.ted-vehicle__equipment {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ted-vehicle__equipment li {
    position: relative;
    padding: 12px 14px 12px 38px;
    border-radius: 8px;
    background: var(--ted-surface);
}

.ted-vehicle__equipment li::before {
    position: absolute;
    top: 12px;
    left: 14px;
    color: var(--ted-accent);
    content: "✓";
    font-weight: 900;
}

.ted-vehicle__description { font-size: 1.05rem; line-height: 1.75; }
.ted-vehicle__description > :last-child { margin-bottom: 0; }

.ted-vehicle__gallery .agrfuxd-gallery-item,
.ted-vehicle__gallery .agrfuxd-figure { border-radius: 12px; }

.ted-vehicle__gallery .agrfuxd-image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.ted-vehicle__footer-cta {
    margin-top: 72px;
    padding: clamp(32px, 6vw, 60px);
    border-radius: 18px;
    background: var(--ted-dark);
    color: #fff;
    text-align: center;
}

.ted-vehicle__footer-cta h2 { margin-bottom: 10px; color: #fff; }
.ted-vehicle__footer-cta p { margin: 0 auto 25px; color: #d0d5dd; }

@media (max-width: 900px) {
    .ted-vehicle__hero { grid-template-columns: 1fr; }
    .ted-vehicle__summary { max-width: 650px; }
    .ted-vehicle__equipment { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .ted-vehicle__container { width: min(100% - 28px, 1180px); padding-top: 26px; }
    .ted-vehicle__hero { gap: 28px; }
    .ted-vehicle__main-image { border-radius: 12px; }
    .ted-vehicle__facts,
    .ted-vehicle__characteristics,
    .ted-vehicle__equipment { grid-template-columns: 1fr; }
    .ted-vehicle__section { margin-top: 52px; padding-top: 38px; }
    .ted-vehicle__characteristics > div { gap: 12px; }
    .ted-vehicle__cta { width: 100%; }
}

/* --------------------------------------------------------------------------
   Structure globale AutoTed
   -------------------------------------------------------------------------- */

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--ted-bg);
    color: var(--ted-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Le menu mobile affiche tous ses liens sans zone de defilement interne. */

.ted-site,
.ted-site-content {
    min-height: 100%;
    background: var(--ted-bg);
}

.ted-site-content,
main.ted-home {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.ted-shell {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.ted-svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.ted-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    border-bottom: 1px solid rgba(43, 55, 103, .62);
    background: rgba(8, 13, 36, .94);
    box-shadow: 0 8px 25px rgba(2, 6, 23, .14);
    backdrop-filter: blur(14px);
}

.admin-bar .ted-header { top: 32px; }

.ted-header__inner {
    display: grid;
    grid-template-columns: 158px minmax(0, 1fr) auto;
    gap: clamp(24px, 4vw, 56px);
    min-height: 78px;
    align-items: center;
}

.ted-brand {
    display: block;
    width: 150px;
    height: 66px;
    overflow: hidden;
}

.ted-brand img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ted-nav { justify-self: end; }

.ted-nav__list {
    display: flex;
    gap: clamp(18px, 2.6vw, 36px);
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ted-nav__list a {
    position: relative;
    display: block;
    padding: 28px 0 25px;
    color: var(--ted-text);
    font-size: .92rem;
    font-weight: 650;
    text-decoration: none;
}

.ted-nav__list a::after {
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    height: 2px;
    background: var(--ted-orange);
    content: "";
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}

.ted-nav__list a:hover,
.ted-nav__list .current-menu-item > a { color: var(--ted-orange); }
.ted-nav__list a:hover::after,
.ted-nav__list .current-menu-item > a::after { transform: scaleX(1); }

.ted-header__phone {
    display: inline-flex;
    gap: 9px;
    min-height: 42px;
    align-items: center;
    padding: 8px 15px;
    border: 1px solid var(--ted-orange);
    border-radius: 7px;
    color: var(--ted-white);
    font-size: .88rem;
    font-weight: 750;
    text-decoration: none;
}

.ted-header__phone:hover { background: var(--ted-orange); color: var(--ted-white); }
.ted-header__phone svg { width: 17px; fill: currentColor; }

.ted-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid var(--ted-border);
    border-radius: 8px;
    background: var(--ted-card);
}

.ted-menu-toggle > span:not(.screen-reader-text) {
    display: block;
    width: 21px;
    height: 2px;
    margin: 4px auto;
    background: var(--ted-white);
    transition: transform .2s ease, opacity .2s ease;
}

.ted-menu-toggle[aria-expanded="true"] > span:nth-of-type(1) { transform: translateY(6px) rotate(45deg); }
.ted-menu-toggle[aria-expanded="true"] > span:nth-of-type(2) { opacity: 0; }
.ted-menu-toggle[aria-expanded="true"] > span:nth-of-type(3) { transform: translateY(-6px) rotate(-45deg); }

.ted-button {
    display: inline-flex;
    gap: 10px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 11px 23px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: .015em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.ted-button:hover { transform: translateY(-2px); }
.ted-button--primary { background: var(--ted-orange); color: var(--ted-white); box-shadow: 0 10px 28px rgba(255, 106, 0, .18); }
.ted-button--primary:hover { background: var(--ted-orange-hover); color: var(--ted-white); }
.ted-button--secondary { border-color: var(--ted-border); background: rgba(18, 26, 61, .66); color: var(--ted-white); }
.ted-button--secondary:hover { border-color: #52618f; background: var(--ted-card); color: var(--ted-white); }
.ted-button--small { min-height: 40px; padding: 9px 18px; background: var(--ted-card); color: var(--ted-white); font-size: .78rem; }

/* Accueil : hero */

.ted-home { overflow: hidden; background: var(--ted-bg); }

.ted-hero {
    position: relative;
    isolation: isolate;
    min-height: 625px;
    overflow: hidden;
    border-bottom: 1px solid rgba(43, 55, 103, .65);
    background: var(--ted-bg-deep);
}

.ted-hero::before {
    position: absolute;
    z-index: -2;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(8, 13, 36, .99) 0%, rgba(8, 13, 36, .94) 40%, rgba(8, 13, 36, .52) 72%, rgba(8, 13, 36, .72) 100%),
        linear-gradient(0deg, var(--ted-bg-deep) 0%, transparent 42%),
        var(--ted-hero-image);
    background-position: center, center, 62% 30%;
    background-size: cover, cover, cover;
    content: "";
    filter: saturate(.8) contrast(1.02);
}

.ted-hero--no-image::before {
    background-image: radial-gradient(circle at 72% 30%, rgba(43, 55, 103, .8), transparent 38%), linear-gradient(135deg, var(--ted-bg-deep), var(--ted-bg));
}

.ted-hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 54px 54px;
    content: "";
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 85%);
}

.ted-hero__glow {
    position: absolute;
    z-index: -1;
    top: 15%;
    left: -180px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(31, 48, 116, .3);
    filter: blur(80px);
}

.ted-hero__inner {
    display: flex;
    min-height: 625px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 82px;
}

.ted-hero__content { width: min(650px, 60%); }

.ted-hero__logo {
    display: block;
    width: clamp(285px, 35vw, 455px);
    height: auto;
    margin: 0 0 3px -14px;
    object-fit: contain;
}

.ted-hero__tagline {
    max-width: 620px;
    margin: 0 0 24px;
    color: var(--ted-white);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 750;
    letter-spacing: -.025em;
    line-height: 1.2;
}

.ted-hero__lead {
    max-width: 560px;
    margin: 0 0 30px;
    color: var(--ted-muted);
    font-size: clamp(1.02rem, 1.6vw, 1.2rem);
    line-height: 1.65;
}

.ted-hero__lead strong { color: var(--ted-orange); }
.ted-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Accueil : avantages */

.ted-benefits { position: relative; z-index: 3; margin-top: -56px; }

.ted-benefits__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--ted-border);
    border-radius: var(--ted-radius);
    background: rgba(21, 31, 71, .96);
    box-shadow: var(--ted-shadow);
}

.ted-benefit {
    display: flex;
    gap: 16px;
    min-width: 0;
    padding: 28px 24px;
}

.ted-benefit + .ted-benefit { border-left: 1px solid var(--ted-border); }
.ted-benefit svg { flex: 0 0 36px; width: 36px; height: 36px; fill: none; stroke: var(--ted-orange); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.ted-benefit h2 { margin: 0 0 8px; color: var(--ted-white); font-size: .88rem; font-weight: 800; text-transform: uppercase; }
.ted-benefit p { margin: 0; color: var(--ted-muted); font-size: .83rem; line-height: 1.5; }

/* Accueil : sections et véhicules */

.ted-section { padding: 105px 0; }
.ted-vehicles-section { background: radial-gradient(circle at 90% 40%, rgba(31, 50, 112, .25), transparent 36%), var(--ted-bg); }
.ted-section-heading { margin-bottom: 38px; }
.ted-section-heading--split { display: flex; gap: 30px; align-items: end; justify-content: space-between; }
.ted-section-heading--center { max-width: 650px; margin-right: auto; margin-left: auto; text-align: center; }
.ted-eyebrow { margin: 0 0 10px !important; color: var(--ted-orange) !important; font-size: .78rem !important; font-weight: 850 !important; letter-spacing: .13em; text-transform: uppercase; }
.ted-section-heading h2,
.ted-about h2 { margin: 0 0 10px; color: var(--ted-white); font-size: clamp(2rem, 3.5vw, 3rem); letter-spacing: -.035em; }
.ted-section-heading p { margin: 0; color: var(--ted-muted); }

.ted-vehicle-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }

.ted-card {
    position: relative;
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--ted-border);
    border-radius: 11px;
    background: var(--ted-card);
    box-shadow: 0 13px 35px rgba(2, 6, 23, .15);
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.ted-card:hover { border-color: #465687; box-shadow: 0 20px 42px rgba(2, 6, 23, .3); transform: translateY(-5px); }
.ted-card__image { position: relative; display: grid; overflow: hidden; aspect-ratio: 4 / 3; place-items: center; background: var(--ted-bg-soft); color: var(--ted-muted); text-decoration: none; }
.ted-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.ted-card:hover .ted-card__image img { transform: scale(1.035); }

.ted-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 8px;
    border-radius: 4px;
    background: #364163;
    color: #fff;
    font-size: .64rem;
    font-weight: 850;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
}

.ted-card__badge--disponible { background: #15803d; }
.ted-card__badge--reserve { background: var(--ted-orange); }
.ted-card__badge--preparation { background: #2563eb; }
.ted-card__badge--vendu { background: #6b7280; }

.ted-card__body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.ted-card h3 { min-height: 2.4em; margin: 0 0 17px; font-size: 1.07rem; line-height: 1.2; text-transform: uppercase; }
.ted-card h3 a { color: var(--ted-white); text-decoration: none; }
.ted-card__details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 8px; margin: 0 0 20px; padding: 0; color: var(--ted-muted); font-size: .74rem; list-style: none; }
.ted-card__details li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 6px; min-width: 0; align-items: start; white-space: normal; line-height: 1.5; }
.ted-card__details li span { min-width: 0; overflow-wrap: anywhere; }
.ted-card__details li svg { margin-top: 2px; }
.ted-card__details svg { flex: 0 0 14px; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.ted-card__price { margin: auto 0 18px; color: var(--ted-orange); font-size: 1.38rem; font-weight: 850; }
.ted-button--card { width: 100%; min-height: 42px; padding: 9px 14px; border-color: var(--ted-border); background: #202b58; color: var(--ted-white); font-size: .76rem; }
.ted-button--card:hover { border-color: var(--ted-orange); background: var(--ted-orange); color: var(--ted-white); }
.ted-empty-state { padding: 60px 30px; border: 1px dashed var(--ted-border); border-radius: var(--ted-radius); background: var(--ted-bg-soft); text-align: center; }
.ted-empty-state h3 { margin: 0 0 8px; color: var(--ted-white); }
.ted-empty-state p { margin: 0; color: var(--ted-muted); }

/* Accueil : processus et à propos */

.ted-process { border-block: 1px solid rgba(43, 55, 103, .65); background: linear-gradient(135deg, #10183a, #0a102b); }
.ted-process__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; margin-top: 55px; }
.ted-step { position: relative; display: grid; grid-template-columns: 86px 1fr; gap: 24px; align-items: start; }
.ted-step__icon { display: grid; width: 86px; height: 86px; border: 1px solid #53618f; border-radius: 18px; place-items: center; background: linear-gradient(145deg, rgba(43,55,103,.5), rgba(12,18,48,.8)); }
.ted-step__icon svg { width: 42px; height: 42px; fill: none; stroke: var(--ted-white); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.4; }
.ted-step span { color: var(--ted-orange); font-size: 1.8rem; font-weight: 900; line-height: 1; }
.ted-step h3 { margin: 7px 0 7px; color: var(--ted-white); font-size: 1rem; text-transform: uppercase; }
.ted-step p { margin: 0; color: var(--ted-muted); font-size: .88rem; line-height: 1.58; }
.ted-step > b { position: absolute; top: 32px; right: -33px; color: var(--ted-orange); font-size: 1.7rem; font-weight: 400; }

.ted-about { background: #0a1029; }
.ted-about__grid { display: grid; grid-template-columns: .85fr 1.15fr; min-height: 500px; }
.ted-about__content { display: flex; align-items: flex-start; justify-content: center; flex-direction: column; padding: clamp(55px, 8vw, 105px) clamp(30px, 6vw, 75px) clamp(55px, 8vw, 105px) 0; }
.ted-about__content > p:not(.ted-eyebrow) { max-width: 560px; margin: 0 0 15px; color: var(--ted-muted); line-height: 1.7; }
.ted-about__content .ted-button { margin-top: 18px; }
.ted-about__visual { position: relative; isolation: isolate; min-height: 440px; overflow: hidden; background: linear-gradient(90deg, #0a1029 0%, transparent 35%), var(--ted-about-image), linear-gradient(135deg, var(--ted-card), var(--ted-bg)); background-position: center, center, center; background-size: cover; }
.ted-about__visual::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, rgba(8,13,36,.72), transparent 55%); content: ""; }
.ted-about__mark { position: absolute; right: 32px; bottom: 30px; display: flex; align-items: flex-end; flex-direction: column; padding: 16px 20px; border-right: 3px solid var(--ted-orange); background: rgba(8,13,36,.78); backdrop-filter: blur(8px); }
.ted-about__mark strong { color: var(--ted-white); font-size: 1.5rem; font-weight: 900; text-transform: uppercase; }
.ted-about__mark strong span { color: var(--ted-orange); }
.ted-about__mark small { color: var(--ted-muted); }

/* Footer */

.ted-footer { border-top: 1px solid var(--ted-border); background: var(--ted-bg-deep); color: var(--ted-muted); }
.ted-footer__grid { display: grid; grid-template-columns: 1.35fr .85fr 1fr 1.15fr; gap: clamp(35px, 6vw, 80px); padding-top: 68px; padding-bottom: 62px; }
.ted-brand--footer { width: 155px; height: 80px; margin-bottom: 10px; }
.ted-footer__brand p { max-width: 265px; margin: 0; font-size: .9rem; line-height: 1.65; }
.ted-footer h2 { margin: 10px 0 19px; color: var(--ted-white); font-size: .86rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.ted-footer ul { margin: 0; padding: 0; list-style: none; }
.ted-footer li { margin-bottom: 9px; font-size: .87rem; }
.ted-footer a { color: var(--ted-muted); text-decoration: none; }
.ted-footer a:hover { color: var(--ted-orange); }
.ted-footer__contact { display: flex; align-items: flex-start; flex-direction: column; }
.ted-footer__contact > a:not(.ted-button),
.ted-footer address { margin-bottom: 10px; color: var(--ted-muted); font-size: .87rem; font-style: normal; line-height: 1.45; }
.ted-footer__contact .ted-button { margin-top: 9px; color: var(--ted-white); }
.ted-footer__bottom { border-top: 1px solid rgba(43,55,103,.65); background: rgba(18,26,61,.35); }
.ted-footer__bottom .ted-shell { display: flex; gap: 30px; align-items: center; justify-content: space-between; min-height: 68px; }
.ted-footer__bottom p { margin: 0; font-size: .78rem; }
.ted-footer__bottom nav { display: flex; gap: 28px; font-size: .78rem; }

/* Harmonisation de la fiche véhicule */

.ted-vehicle-page { background: var(--ted-bg); color: var(--ted-text); }
.ted-vehicle__back,
.ted-vehicle__identity,
.ted-vehicle__facts span,
.ted-vehicle__characteristics dt { color: var(--ted-muted); }
.ted-vehicle__main-image { background: var(--ted-bg-soft); box-shadow: var(--ted-shadow); }
.ted-vehicle__facts { background: var(--ted-border); }
.ted-vehicle__facts li { background: var(--ted-card); }
.ted-vehicle__facts strong,
.ted-vehicle__title,
.ted-vehicle__characteristics dd,
.ted-vehicle__section h2 { color: var(--ted-white); }
.ted-vehicle__section { border-color: var(--ted-border); }
.ted-vehicle__characteristics > div { border-color: var(--ted-border); }
.ted-vehicle__equipment li { background: var(--ted-card); }
.ted-vehicle__footer-cta { border: 1px solid var(--ted-border); background: var(--ted-bg-soft); }
.ted-vehicle__cta { background: var(--ted-orange); }
.ted-vehicle__cta:hover { background: var(--ted-orange-hover); }
.ted-vehicle__contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ted-vehicle__contact-actions .ted-vehicle__cta { flex: 1 1 180px; text-align: center; }
.ted-vehicle__cta.ted-vehicle__cta--whatsapp { background: #12843b; color: #fff; }
.ted-vehicle__cta.ted-vehicle__cta--whatsapp:hover { background: #0e6a2f; }
.ted-vehicle__status--reserve { background: rgba(255,106,0,.18); color: #ff9d57; }

@media (max-width: 1100px) {
    .ted-header__inner { grid-template-columns: 145px minmax(0, 1fr) auto; gap: 22px; }
    .ted-nav__list { gap: 20px; }
    .ted-header__phone span { display: none; }
    .ted-header__phone { width: 43px; padding: 8px; justify-content: center; }
    .ted-benefits__grid { grid-template-columns: repeat(2, 1fr); }
    .ted-benefit:nth-child(n+3) { border-top: 1px solid var(--ted-border); }
    .ted-benefit:nth-child(odd) { border-left: 0; }
    .ted-benefit:last-child { grid-column: 1 / -1; }
    .ted-vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .admin-bar .ted-header { top: 46px; }
    .ted-header__inner { grid-template-columns: 1fr auto auto; }
    .ted-menu-toggle { display: block; grid-column: 3; }
    .ted-header__phone { grid-column: 2; grid-row: 1; }
    .ted-nav { position: absolute; top: 100%; right: 0; bottom: auto; left: 0; display: none; width: 100%; height: auto; max-height: none; overflow: visible; padding: 16px 24px; background: rgba(8,13,36,.985); }

    .ted-nav.is-open { display: block; }
    .ted-nav__list { align-items: stretch; flex-direction: column; gap: 0; }
    .ted-nav__list li { border-bottom: 1px solid var(--ted-border); }
    .ted-nav__list a { padding: 18px 4px; font-size: 1.05rem; }
    .ted-nav__list a::after { display: none; }
    .ted-hero { min-height: 590px; }
    .ted-hero::before { background-image: linear-gradient(90deg, rgba(8,13,36,.98), rgba(8,13,36,.78)), linear-gradient(0deg, var(--ted-bg-deep), transparent), var(--ted-hero-image); background-position: center, center, 55% 30%; }
    .ted-hero__inner { min-height: 590px; }
    .ted-hero__content { width: min(680px, 86%); }
    .ted-process__grid { grid-template-columns: 1fr; max-width: 620px; margin-right: auto; margin-left: auto; }
    .ted-step > b { top: auto; right: auto; bottom: -38px; left: 36px; transform: rotate(90deg); }
    .ted-about__grid { grid-template-columns: 1fr; }
    .ted-about__content { padding-right: 0; }
    .ted-about__visual { min-height: 390px; }
    .ted-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .ted-shell { width: min(100% - 30px, 1180px); }
    .ted-header__inner { min-height: 70px; }
    .ted-brand { width: 120px; height: 58px; }
    .ted-header__phone { display: none; }
    .ted-menu-toggle { grid-column: 3; }


    .ted-hero,
    .ted-hero__inner { min-height: 570px; }
    .ted-hero__inner { align-items: center; padding-top: 55px; padding-bottom: 88px; }
    .ted-hero__content { width: 100%; }
    .ted-hero__logo { width: min(285px, 85vw); margin-left: -10px; }
    .ted-hero__tagline { font-size: clamp(1.45rem, 7vw, 1.85rem); }
    .ted-actions { align-items: stretch; flex-direction: column; }
    .ted-actions .ted-button { width: 100%; }
    .ted-benefits { margin-top: -44px; }
    .ted-benefits__grid { grid-template-columns: 1fr; }
    .ted-benefit + .ted-benefit { border-top: 1px solid var(--ted-border); border-left: 0; }
    .ted-section { padding: 78px 0; }
    .ted-section-heading--split { align-items: flex-start; flex-direction: column; }
    .ted-section-heading--split .ted-button { width: 100%; }
    .ted-vehicle-grid { grid-template-columns: 1fr; }
    .ted-step { grid-template-columns: 72px 1fr; gap: 18px; }
    .ted-step__icon { width: 72px; height: 72px; border-radius: 15px; }
    .ted-step__icon svg { width: 35px; height: 35px; }
    .ted-step > b { left: 28px; }
    .ted-about__visual { min-height: 320px; }
    .ted-about__mark { right: 15px; bottom: 15px; }
    .ted-footer__grid { grid-template-columns: 1fr; padding-top: 50px; padding-bottom: 45px; }
    .ted-footer__bottom .ted-shell { align-items: flex-start; flex-direction: column; justify-content: center; padding-top: 18px; padding-bottom: 18px; }
    .ted-footer__bottom nav { gap: 12px; align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Pages internes */

.ted-listing-page,
.ted-content-page { width: 100%; margin: 0 !important; padding: 0 !important; background: var(--ted-bg); }
.ted-page-hero { padding: 92px 0 70px; border-bottom: 1px solid var(--ted-border); background: radial-gradient(circle at 80% 20%, rgba(43,55,103,.52), transparent 32%), linear-gradient(135deg, var(--ted-bg-deep), var(--ted-bg-soft)); }
.ted-page-hero h1 { margin: 0 0 12px; color: var(--ted-white); font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -.045em; line-height: 1.05; }
.ted-page-hero p:not(.ted-eyebrow) { max-width: 650px; margin: 0; color: var(--ted-muted); font-size: 1.05rem; }
.ted-listing,
.ted-content-section { padding: 82px 0 105px; }
.ted-vehicle-filters {
    margin-bottom: 34px;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid var(--ted-border);
    border-radius: var(--ted-radius);
    background: linear-gradient(145deg, rgba(25, 35, 79, .96), rgba(12, 18, 48, .98));
    box-shadow: 0 22px 55px rgba(2, 5, 18, .28);
}
.ted-vehicle-filters__heading { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.ted-vehicle-filters__heading .ted-eyebrow { margin-bottom: 6px; }
.ted-vehicle-filters__heading h2 { margin: 0; color: var(--ted-white); font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
.ted-vehicle-filters__heading > a { flex: 0 0 auto; color: var(--ted-orange); font-size: .82rem; font-weight: 750; text-underline-offset: 4px; }
.ted-vehicle-filters__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 17px 14px; align-items: end; }
.ted-vehicle-filters label { display: grid; min-width: 0; gap: 7px; margin: 0; }
.ted-vehicle-filters label > span { color: var(--ted-text); font-size: .76rem; font-weight: 750; letter-spacing: .025em; }
.ted-vehicle-filters input,
.ted-vehicle-filters select {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 13px;
    border: 1px solid var(--ted-border);
    border-radius: 7px;
    outline: 0;
    background-color: rgba(8, 13, 36, .86);
    color: var(--ted-white);
    font-size: .86rem;
    line-height: 1;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.ted-vehicle-filters input::placeholder { color: #8791ad; opacity: 1; }
.ted-vehicle-filters select option { background: var(--ted-bg-deep); color: var(--ted-white); }
.ted-vehicle-filters input:focus,
.ted-vehicle-filters select:focus { border-color: var(--ted-orange); box-shadow: 0 0 0 3px rgba(255, 106, 0, .14); }
.ted-vehicle-filters__submit { width: 100%; height: 48px; margin: 0; }
.ted-listing__summary { margin: 0 0 24px; color: var(--ted-muted); font-size: .9rem; }
.ted-listing__summary strong { margin-right: 4px; color: var(--ted-white); font-size: 1.15rem; }
.ted-pagination { margin-top: 50px; }
.ted-pagination .page-numbers { display: flex; gap: 8px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.ted-pagination a,
.ted-pagination span { display: grid; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--ted-border); border-radius: 6px; place-items: center; color: var(--ted-text); text-decoration: none; }
.ted-pagination .current,
.ted-pagination a:hover { border-color: var(--ted-orange); background: var(--ted-orange); color: var(--ted-white); }
.ted-prose { max-width: 940px; }
.ted-prose > h2 { margin: 0 0 22px; color: var(--ted-white); font-size: clamp(1.8rem, 4vw, 2.7rem); }
.ted-prose > p { max-width: 760px; color: var(--ted-muted); font-size: 1.05rem; line-height: 1.75; }
.ted-content-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 45px 0; }
.ted-content-features > div,
.ted-contact-card,
.ted-contact-context { padding: 28px; border: 1px solid var(--ted-border); border-radius: var(--ted-radius); background: var(--ted-card); }
.ted-content-features strong { color: var(--ted-white); }
.ted-content-features p { margin: 10px 0 0; color: var(--ted-muted); font-size: .9rem; line-height: 1.6; }
.ted-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ted-contact-card { display: flex; align-items: flex-start; flex-direction: column; }
.ted-contact-card > span,
.ted-contact-context span { margin-bottom: 10px; color: var(--ted-orange); font-size: .75rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.ted-contact-card a,
.ted-contact-card strong,
.ted-contact-context strong { color: var(--ted-white); font-size: 1.15rem; font-weight: 750; text-decoration: none; }
.ted-contact-card p { margin: 12px 0 0; color: var(--ted-muted); font-size: .88rem; }
.ted-contact-context { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; }
.ted-contact-context span { margin: 0; }

@media (max-width: 1100px) {
    .ted-vehicle-filters__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
    .ted-content-features,
    .ted-contact-grid { grid-template-columns: 1fr; }
    .ted-contact-context { grid-column: auto; align-items: flex-start; flex-direction: column; }
	.ted-vehicle-filters__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .ted-page-hero { padding: 65px 0 52px; }
    .ted-listing,
    .ted-content-section { padding: 60px 0 78px; }
	.ted-vehicle-filters__heading { align-items: flex-start; flex-direction: column; }
	.ted-vehicle-filters__grid { grid-template-columns: 1fr; }
}

/* Astra utilise des sélecteurs avec ID sur les articles séparés. Ces règles
   garantissent que la fiche véhicule reste dans la charte sombre. */
.ted-auto-single-vehicule,
.ted-auto-single-vehicule #page,
.ted-auto-single-vehicule #content,
.ted-auto-single-vehicule #primary,
.ted-auto-single-vehicule .ted-site-content,
.ted-auto-single-vehicule .ted-vehicle-page,
.ted-auto-single-vehicule .ted-vehicle {
    background-color: var(--ted-bg) !important;
}

.ted-auto-single-vehicule #primary {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ted-auto-single-vehicule .ted-vehicle__container {
    color: var(--ted-text);
}

/* Galerie défilante de la fiche véhicule */
.ted-vehicle__media { min-width: 0; }

.ted-vehicle__main-image {
    position: relative;
    cursor: zoom-in;
    touch-action: pan-y;
}

.ted-vehicle__main-image:focus-visible {
    outline: 3px solid var(--ted-orange);
    outline-offset: 3px;
}

.ted-vehicle__slide {
    width: 100%;
    height: 100%;
    margin: 0;
}

.ted-vehicle__slide[hidden] { display: none; }

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

.ted-gallery-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    width: 46px;
    height: 46px;
    min-width: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    place-items: center;
    background: rgba(8, 13, 36, .78);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    color: var(--ted-white);
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-50%);
    transition: background-color .2s ease, border-color .2s ease;
}

.ted-gallery-arrow:hover {
    border-color: rgba(255, 255, 255, .55);
    background: rgba(8, 13, 36, .92);
    color: var(--ted-white);
}

.ted-gallery-arrow:active,
.ted-gallery-arrow:focus-visible {
    border-color: var(--ted-orange);
    background: var(--ted-orange);
    color: var(--ted-white);
}

.ted-gallery-arrow--previous { left: 16px; }
.ted-gallery-arrow--next { right: 16px; }

.ted-gallery-counter {
    position: absolute;
    z-index: 3;
    right: 14px;
    bottom: 14px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    background: rgba(8, 13, 36, .78);
    color: var(--ted-white);
    font-size: .78rem;
    line-height: 1;
    backdrop-filter: blur(8px);
}

/* Sur ordinateur, les commandes apparaissent uniquement au survol de l'image.
   Elles restent visibles au clavier et sur les appareils tactiles. */
@media (hover: hover) and (pointer: fine) {
    .ted-gallery-arrow,
    .ted-gallery-counter {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease, visibility .2s ease,
                    background-color .2s ease, border-color .2s ease;
    }

    .ted-vehicle__main-image:hover .ted-gallery-arrow,
    .ted-vehicle__main-image:hover .ted-gallery-counter,
    .ted-vehicle__main-image:focus-within .ted-gallery-arrow,
    .ted-vehicle__main-image:focus-within .ted-gallery-counter {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }
}

.ted-gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-top: 12px;
    padding: 2px 2px 7px;
    scrollbar-color: var(--ted-border) transparent;
    scrollbar-width: thin;
}

.ted-gallery-thumbnails button {
    flex: 0 0 88px;
    width: 88px;
    min-width: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: var(--ted-bg-soft);
    opacity: .65;
    transition: border-color .2s ease, opacity .2s ease, transform .2s ease;
}

.ted-gallery-thumbnails button:hover,
.ted-gallery-thumbnails button.is-active {
    border-color: var(--ted-orange);
    opacity: 1;
    transform: translateY(-1px);
}

.ted-gallery-thumbnails img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.ted-lightbox-open { overflow: hidden; }

.ted-gallery-lightbox {
    position: fixed;
    z-index: 100000;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: clamp(20px, 4vw, 55px);
    border: 0;
    background: rgba(3, 6, 18, .96);
    color: var(--ted-white);
    cursor: zoom-out;
}

.ted-gallery-lightbox[open] {
    display: grid;
    place-items: center;
}

.ted-gallery-lightbox:focus { outline: none; }

.ted-gallery-lightbox::backdrop { background: rgba(3, 6, 18, .96); }

.ted-gallery-lightbox figure {
    display: grid;
    width: 100%;
    height: 100%;
    margin: 0;
    place-items: center;
    pointer-events: none;
}

.ted-gallery-lightbox figure img {
    display: block;
    width: auto;
    max-width: min(92vw, 1600px);
    height: auto;
    max-height: 88dvh;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
    object-fit: contain;
    pointer-events: auto;
    cursor: zoom-out;
}

.ted-lightbox-arrow {
    position: fixed;
    z-index: 2;
    display: grid;
    min-width: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    place-items: center;
    background: rgba(12, 18, 48, .86);
    color: var(--ted-white);
    line-height: 1;
    cursor: pointer;
}

.ted-lightbox-arrow:hover {
    border-color: rgba(255, 255, 255, .55);
    background: rgba(12, 18, 48, .96);
    color: var(--ted-white);
}

.ted-lightbox-arrow:active,
.ted-lightbox-arrow:focus-visible {
    border-color: var(--ted-orange);
    background: var(--ted-orange);
    color: var(--ted-white);
}

.ted-lightbox-arrow {
    top: 50%;
    width: 52px;
    height: 52px;
    font-size: 2.2rem;
    transform: translateY(-50%);
}

.ted-lightbox-arrow--previous { left: 24px; }
.ted-lightbox-arrow--next { right: 24px; }

.ted-lightbox-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    background: rgba(12, 18, 48, .86);
    color: var(--ted-white);
    font-size: .82rem;
    transform: translateX(-50%);
}

@media (max-width: 600px) {
    .ted-gallery-arrow { width: 40px; height: 40px; font-size: 1.7rem; }
    .ted-gallery-arrow--previous { left: 10px; }
    .ted-gallery-arrow--next { right: 10px; }
    .ted-gallery-thumbnails button { flex-basis: 72px; width: 72px; }
    .ted-gallery-lightbox { padding: 62px 12px 70px; }
    .ted-gallery-lightbox figure img { max-width: calc(100vw - 24px); max-height: 76dvh; }
    .ted-lightbox-arrow { top: auto; bottom: 14px; width: 44px; height: 44px; transform: none; }
    .ted-lightbox-arrow--previous { left: 14px; }
    .ted-lightbox-arrow--next { right: 14px; }
    .ted-lightbox-counter { bottom: 26px; }
}
