/* Feuille du site (externe : la CSP interdit le style inline). */
  :root {
    --ink: #141414;
    --text: #3d3d3d;
    --muted: #6f6f6f;
    --line: #e7e7e5;
    --soft: #f6f6f4;
    --parallax-speed: -0.3;         /* vitesse de la photo du hero : négatif = effet deux fois plus fort (1.3 × le défilement) */
    --parallax-max: 160px;          /* décalage maximal de la photo (divisé par 2 sur mobile) */
    --hero-overlay-opacity: .45;    /* intensité du dégradé sombre en bas du hero */
    --hero-text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
    --radius: 5px; /* images, cartes, vidéo, boutons : 5 px */
    --wrap: 1120px;
    --gutter: var(--site-padding, 12px);
    /* largeur utile : marges latérales ÷ 2 par rapport à avant (avant : min(1120px, 100% − 2 × 24px)) */
    --content-w: min(calc((100% + var(--wrap)) / 2), 100% - 2 * var(--gutter));
    --header: 72px;
    --hero-w: clamp(300px, 46vw, 640px); /* le titre du hero et le paragraphe partagent la même largeur */
    --hero-bottom: clamp(48px, 7vh, 72px); /* espace sous les boutons du hero ; les points du diaporama sont centrés sur ces boutons */
    --section-top-mobile: 1.5; /* mobile : espace en haut des sections = valeur d'origine × ce facteur */
    --section-bottom-mobile: 1.5; /* mobile : espace en bas des sections = valeur d'origine × ce facteur */
    --nudge: 5px;
    --nudge-t: .22s cubic-bezier(.22, 1, .36, 1);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
  body {
    background: #fff; color: var(--text);
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; text-decoration: none; }
  img { display: block; max-width: 100%; }
  button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
  :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

  .wrap { width: var(--content-w); margin: 0 auto; }
  h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; color: var(--ink); line-height: 1.2; letter-spacing: -.01em; }
  .lead { margin-top: 14px; max-width: 56ch; }
  .section { padding: clamp(83px, 11.7vw, 146px) 0; border-top: 0; }
  .section-soft { background: var(--soft); } /* même gris que les cartes d'avis */
  .sub-title { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); font-weight: 700; color: var(--ink); line-height: 1.25; }
  .contact .sub-title { margin-top: 20px; }
  .points { list-style: none; margin-top: 12px; }
  .points li { position: relative; padding-left: 20px; margin-top: 6px; }
  .points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1.5px; background: var(--ink); }
  .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 26px; }
  .cta-row .btn, .cta-row .link-cta { margin-top: 0; }
  .cta-row .link-cta { font-size: 13px; font-weight: 400; } /* « Demander un essai » : plus discret (−2 px, deux graisses en moins) */
  .acc-title { font-size: inherit; font-weight: inherit; color: inherit; line-height: inherit; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
  .contact .split { column-gap: clamp(64px, 9vw, 136px); } /* ordinateur : plus d'écart entre le bloc Contact + Adresse et Horaires */
  .rounded { border-radius: var(--radius); overflow: hidden; }

  /* ── En-tête fixe ── */
  .header {
    position: sticky; top: 0; z-index: 20;
    margin-bottom: calc(-1 * var(--header) - 1px); /* superposé au hero : la photo passe sous l'en-tête flouté */
    /* en-tête sombre (inversé), fond légèrement flouté */
    background: rgba(14, 14, 14, .72); color: #fff;
    -webkit-backdrop-filter: saturate(1.3) blur(10px); backdrop-filter: saturate(1.3) blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .header :focus-visible { outline-color: #fff; }
  .header .wrap { height: var(--header); display: flex; align-items: center; gap: 32px; }
  /* logo recadré sur « WACAR » seul (sans « WAVRE »), ≈ 135 % de la taille visible d'avant */
  .logo img { height: 24.5px; width: auto; filter: brightness(0) invert(1); }
  .nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 500; color: #fff; }
  .nav a { position: relative; padding: 6px 0; }
  .nav-legal { display: none; }
  .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .2s; }
  .nav a:hover::after { transform: scaleX(1); }
  .call {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: var(--radius);
    background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap;
    transition: opacity .2s, transform var(--nudge-t);
  }
  .call:hover { opacity: .85; transform: translateX(var(--nudge)); }
  .call svg { width: 16px; height: 16px; }
  .header .call { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .55); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .header .call:hover { border-color: #fff; } /* même style que les flèches du hero */
  .menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 1.5px; background: #fff; position: relative; transition: transform .2s; }
  .menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
  .menu-btn span::before { top: -6px; }
  .menu-btn span::after { top: 6px; }

  /* ── Hero : diaporama plein écran (80 % de la hauteur), voile sombre, titre et boutons centrés ── */
  .hero { position: relative; height: 90vh; min-height: 560px; background: #1c1c1c; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
  .hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
  .hero > img.on { opacity: 1; }
  /* dégradé sombre en bas à gauche : garde le texte lisible sur n'importe quelle photo */
  .faq h2 { margin-bottom: 28px; }
  .faq details { border-top: 1px solid var(--line); padding: 18px 0; }
  .faq details:last-of-type { border-bottom: 1px solid var(--line); }
  .faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-weight: 600; font-size: 17px; line-height: 1.4; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; font-size: 22px; line-height: 1; flex-shrink: 0; }
  .faq details[open] summary::after { content: "−"; }
  .faq details p { margin-top: 12px; color: var(--text); line-height: 1.6; max-width: 70ch; }
  /* FAQ : bloc plus étroit, centré sur la page */
  .faq .wrap { width: min(var(--content-w), 760px); }
  .hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: opacity .8s;
    background: linear-gradient(to top, rgba(0, 0, 0, var(--hero-overlay-opacity)) 0%, rgba(0, 0, 0, 0) 55%); }
  .hero.off-first::before { opacity: 0; }
  .hero-content { position: relative; z-index: 2; width: var(--content-w); display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding-bottom: var(--hero-bottom); color: #fff; }
  .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .82); }
  .hero-content h1 { margin-top: 14px; max-width: min(100%, var(--hero-w)); font-size: clamp(24px, 3.64vw, 50px); font-weight: 700; line-height: 1.06; letter-spacing: -.02em; color: #fff; text-shadow: var(--hero-text-shadow); }
  .hero-content .eyebrow, .hero-text { text-shadow: var(--hero-text-shadow); }
  .hero-address { display: inline-flex; align-items: center; gap: 8px; }
  .hero-address svg { width: 15px; height: 15px; flex: none; }
  .hero-text { margin-top: 18px; max-width: min(100%, var(--hero-w)); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.55; color: rgba(255, 255, 255, .9); }
  .hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 20px; margin-top: 26px; }
  .hero .hero-contact { display: none; } /* ordinateur : pas de bouton, .link-cta l'afficherait sinon */
  .hero-arrows { position: absolute; z-index: 3; right: max(var(--gutter), calc((100% - var(--content-w)) / 2)); bottom: calc(var(--hero-bottom) - 2px); display: flex; gap: 10px; }
  .hero .slider-btn { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .hero .slider-btn:hover { border-color: #fff; }

  /* ── Boutons des marques (dans le hero) ── */
  /* ── Occasions + services ── */
  .title-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
  .autoscout { font-family: Arial, sans-serif; font-size: 16px; color: #333; white-space: nowrap; }
  .autoscout mark { background: #f5f200; color: #333; padding: 0 2px; }
  /* Boutons : UN composant pastille (.btn : marques, occasions) et UN lien-flèche (.link-cta : avis, contact).
     Même mouvement au survol partout (--nudge, --nudge-t), aussi sur le bouton du header. */
  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px 8px 10px; border: 1px solid rgba(20, 20, 20, .16); border-radius: var(--radius); background: rgba(255, 255, 255, .96);
    color: var(--ink); font-weight: 600; font-size: 13.5px; line-height: 1.3;
    transition: transform var(--nudge-t), box-shadow .25s, border-color .25s;
  }
  .btn img { width: auto; height: 22px; max-width: 30px; object-fit: contain; flex-shrink: 0; }
  /* sur la photo du hero : verre clair (light) avec flou d'arrière-plan */
  .hero .btn { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .hero .btn:hover { border-color: #fff; }
  .hero .btn img { filter: brightness(0) invert(1); } /* logos de marque en blanc, fond transparent */
  .btn:hover { transform: translateX(var(--nudge)); box-shadow: 0 8px 22px rgba(0, 0, 0, .16); }
  .link-cta {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
    color: var(--ink); font-weight: 600; font-size: 15px;
    transition: transform var(--nudge-t);
  }
  .link-cta:hover { transform: translateX(var(--nudge)); }
  /* bouton « occasions » : sous le paragraphe, espace maîtrisé (pas de ligne fantôme au-dessus) */
  .occasions-btn { display: flex; width: fit-content; margin-top: 18px; }
  .btn:focus-visible, .link-cta:focus-visible, .call:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
  .hero .btn:focus-visible { outline-color: #fff; }
  .accordion { margin-top: 18px; border-top: 1px solid var(--line); }
  .accordion details { border-bottom: 1px solid var(--line); }
  .accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; color: var(--ink); font-weight: 500; }
  .accordion summary::-webkit-details-marker { display: none; }
  .plus { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
  .plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 1.5px; margin-top: -.75px; background: var(--ink); transition: transform .25s; }
  .plus::after { transform: rotate(90deg); }
  .accordion details[open] .plus::after { transform: rotate(0); }
  .accordion details p { padding: 0 32px 20px 0; color: var(--muted); }

  /* ── Nouveautés ── */
  .arrow-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
  .arrow-link svg { transition: transform .2s; }
  .arrow-link:hover svg { transform: translateX(3px); }
  .video { position: relative; margin-top: 28px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
  .video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
  .video button { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
  .play { width: 76px; height: 52px; border-radius: var(--radius); background: rgba(20, 20, 20, .8); display: flex; align-items: center; justify-content: center; transition: background .2s; }
  .video button:hover .play { background: #ff0033; }

  /* ── Histoire ── */
  .story-img { aspect-ratio: 4 / 3; }
  .story-img img { width: 100%; height: 100%; object-fit: cover; }
  .story-text p { margin-top: 16px; }

  /* ── Avis ── */
  .reviews-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 32px; }
  .reviews-head .link-cta { margin-top: 0; }
  .slider { margin-top: 32px; }
  .reviews {
    display: flex; gap: 20px; overflow-x: auto; padding-bottom: 2px;
    scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    /* la première carte démarre sur les marges du site ; les cartes s'effacent doucement sur les côtés (le masque ne bloque aucun clic) */
    --fade: 96px; --edge: max(var(--gutter), calc((100% - var(--content-w)) / 2));
    padding-inline: var(--edge); scroll-padding-inline: var(--edge);
    /* test : masque retiré (il coûtait cher pendant le défilement) */
  }
  .reviews::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 min(440px, 86%); scroll-snap-align: start; background: var(--soft); border-radius: var(--radius); padding: 26px 28px; display: flex; flex-direction: column; }
  .slider-nav { display: flex; gap: 10px; margin-top: 20px; }
  .slider-btn { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--ink); transition: border-color .2s, opacity .2s; }
  .slider-btn:hover { border-color: var(--ink); }
  .slider-btn[disabled] { opacity: .35; cursor: default; border-color: var(--line); }
  .occasions, .services-cols, .split-center, .annonces { align-items: center; }
  #mazda-c1 .story-img { order: 2; } /* Forthing : texte à gauche, photo à droite */
  /* slider des annonces AutoScout24 : pleine largeur, première carte sur les marges du site, fondu sur les côtés (comme les avis) */
  .annonces-section { border-top: 0; padding-top: 0; }
  .cars-slider { margin-top: 0; min-width: 0; }
  .cars {
    display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    --fade: 96px; --edge: max(var(--gutter), calc((100% - var(--content-w)) / 2));
    padding-inline: var(--edge); scroll-padding-inline: var(--edge);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
  }
  .cars::-webkit-scrollbar { display: none; }
  .car { flex: 0 0 min(300px, 78%); scroll-snap-align: start; }

  /* ── Nouveautés : slider horizontal (vidéos à moitié taille, titre sous chaque vidéo) ── */
  .news-track {
    display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    --fade: 96px; --edge: max(var(--gutter), calc((100% - var(--content-w)) / 2));
    padding-inline: var(--edge); scroll-padding-inline: var(--edge);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
  }
  .news-track::-webkit-scrollbar { display: none; }
  .news-card { flex: 0 0 min(calc(var(--content-w) / 2 - 10px), 84%); scroll-snap-align: start; }
  /* mobile : une carte large à la fois, lisible (la moitié de la largeur serait trop petite) */
  @media (max-width: 640px) { .news-card { flex-basis: 82%; } }
  .news-card .video { margin-top: 0; }
  .news-card-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 14px; }
  .news-card-title { font-size: calc(1.05rem - 4px); line-height: 1.35; }
  .news-subtitle { margin-top: 12px; font-size: 1.1rem; line-height: 1.5; color: #444; max-width: 760px; }
  .news-slider { margin-top: 96px; } /* trois fois l'espace d'origine (32 px) entre le sous-titre et les vidéos */
  .news-yt { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--ink); white-space: nowrap; padding-top: 2px; }
  .news-yt:hover { text-decoration: underline; }
  /* même bord gauche que le titre « Nouveauté » et le slider, juste en dessous */
  .news-more { width: auto; margin: 40px 0 0 max(var(--gutter), calc((100% - var(--content-w)) / 2)); padding-inline: 0; max-width: 720px; }
  .news-more-title { font-size: 1.5rem; }
  .news-more-text { margin-top: 12px; }
  /* flèches alignées sur la marge du site (même bord gauche que le titre et les vidéos) */
  .news-slider .slider-nav { padding-inline: max(var(--gutter), calc((100% - var(--content-w)) / 2)); justify-content: flex-end; margin-top: 60px; } /* flèches à droite, marge au-dessus triplée (20 → 60 px) */
  #reviewsSlider .slider-nav { justify-content: flex-end; margin-top: 60px; } /* avis : mêmes règles que les nouveautés */
  .car-img { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
  .car-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
  .car-img:hover img { transform: scale(1.03); }
  .car-info { padding-top: 14px; }
  .car-name { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.25; }
  .car-meta { margin-top: 6px; font-size: 14px; color: var(--muted); }
  .car-price { margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4; }
  .car-info .btn { margin-top: 14px; }
  .occasions .occ-photo { order: 2; } /* ordinateur : photo à droite ; mobile : photo en haut (voir @media 960) */
  .occ-photo { aspect-ratio: 4 / 3; background: var(--soft); }
  .occ-photo img { width: 100%; height: 100%; object-fit: cover; }
  .review p { color: var(--text); font-size: 14px; } /* 2 px de moins que le texte courant (16 px) */
  .review footer { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 22px; }
  .avatar { overflow: hidden; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; flex-shrink: 0; }
  .avatar img { width: 100%; height: 100%; object-fit: cover; }
  .review strong { display: block; color: var(--ink); font-weight: 700; }
  .review small { font-size: 13px; color: var(--muted); }

  /* ── Contact + horaires ── */
  .contact-img { aspect-ratio: 21 / 9; margin-bottom: clamp(40px, 6vw, 72px); }
  .contact-img img { width: 100%; height: 100%; object-fit: cover; }
  .contact address { font-style: normal; margin-top: 20px; color: var(--ink); line-height: 1.8; }
  .contact address a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
  .contact address a:hover { text-decoration-color: currentColor; }
  .socials { display: flex; gap: 22px; margin-top: 28px; color: var(--ink); }
  .socials a { display: flex; transition: opacity .2s; }
  .socials a:hover { opacity: .55; }
  .socials svg { width: 22px; height: 22px; }
  .hours { margin-top: 18px; border-top: 1px solid var(--line); }
  .hours div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .hours dt { font-weight: 600; color: var(--ink); }
  .hours div.today { color: var(--ink); }
  .hours div.today dt::after { content: " · aujourd’hui"; font-weight: 500; color: var(--muted); }

  /* ── Pied de page : sombre, sobre, aéré ── */
  .footer { background: #0b0b0b; color: #cfcfcf; padding: clamp(56px, 8vw, 96px) 0 32px; margin-top: clamp(64px, 9vw, 112px); }
  .footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
  /* le logo prend exactement la largeur de la rangée d'icônes placée dessous */
  .foot-brand { display: grid; width: max-content; max-width: 100%; }
  .footer-logo { display: block; width: 0; min-width: 100%; }
  .footer-logo img { width: 100%; height: auto; filter: brightness(0) invert(1); }
  .foot-title { margin-bottom: 16px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #8d8d8d; }
  .foot-col p, .foot-col a { font-size: 15px; line-height: 1.8; color: #e6e6e6; }
  .foot-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
  .credit { color: #8d8d8d; transition: color .2s; }
  .credit:hover { color: #cfcfcf; }
  .credit:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
  .foot-list { list-style: none; }
  .foot-list li { font-size: 15px; line-height: 1.8; color: #e6e6e6; }
  .foot-col nav { display: flex; flex-direction: column; gap: 4px; }
  .footer .socials { margin: 24px 0 0; color: #fff; }
  .footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; margin-top: clamp(40px, 6vw, 72px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #8d8d8d; }

  /* ── Tablette ── */
  @media (max-width: 960px) {
    .nav, .header .call { display: none; }
    .menu-btn { display: inline-flex; }
    /* menu mobile : plein écran (toute la hauteur), liens centrés, sans filets */
    .header.open { -webkit-backdrop-filter: none; backdrop-filter: none; }   /* sinon « fixed » serait relatif à l'en-tête */
    .header.open .nav {
      display: flex; flex-direction: column; align-items: center; justify-content: center; justify-content: safe center; gap: 3px;
      position: fixed; top: 0; left: 0; right: 0; bottom: 0; height: 100vh; height: 100dvh; margin: 0; z-index: 1;
      background: rgba(14, 14, 14, .97);
      -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
      padding: calc(var(--header) + 8px) var(--gutter) 72px;
      overflow-y: auto; overscroll-behavior: contain;
      text-align: center;
    }
    .header.open .nav a { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; border: 0; }
    /* ligne légale en bas du menu : même style que le pied de page (13 px, gris #8d8d8d) */
    .header.open .nav .nav-legal { display: block; position: absolute; left: 0; right: 0; bottom: 20px; margin: 0; padding: 0 var(--gutter); text-align: center; font-size: 13px; line-height: 1.4; font-weight: 400; color: #8d8d8d; }
    .header.open .nav a::after { display: none; }
    .header .logo, .header .menu-btn { position: relative; z-index: 2; }
    html.menu-open { overflow: hidden; }
    /* retouches mobile : flèches masquées (le glissement au doigt et le défilement auto restent actifs), adresse du hero −2 px, espace bas des sections ×1,5 */
    .hero-arrows, .slider-nav { display: none; }
    .eyebrow { font-size: 10px; }
    .section { padding-top: calc(clamp(83px, 11.7vw, 146px) * var(--section-top-mobile)); padding-bottom: calc(clamp(83px, 11.7vw, 146px) * var(--section-bottom-mobile)); }
    .annonces-section { padding-top: 0; } /* le slider reste collé au bloc « Voitures d'occasion » */
    .header.open .menu-btn span { background: transparent; }
    .header.open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
    .header.open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
    .split { grid-template-columns: 1fr; }
    .contact .split { row-gap: 64px; } /* plus d'air entre le bloc Contact et « Horaires d'ouverture » (≈ 32 px avant) */
    .occasions .occ-photo { order: 0; }
    .story-img { order: -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 56px; } /* plus d'air entre le bloc logo + icônes, Contact et Services (≈ 32 px avant) */
    .foot-brand { grid-column: 1 / -1; }
  }
  /* ── Mobile ── */
  @media (max-width: 640px) {
    .hero { height: 70vh; min-height: 0; }
    .hero-actions { display: none; }
    .hero .hero-contact { display: inline-flex; color: #fff; }
    /* dégradé noir léger depuis le bas, pour la lisibilité du texte et des boutons sur mobile */
    .hero::before { background: linear-gradient(to top, rgba(0, 0, 0, .4) 0%, rgba(0, 0, 0, 0) 55%), linear-gradient(to top right, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .28) 45%, rgba(0, 0, 0, 0) 85%); }
    /* Mazda et KGM : « Demander un essai » au-dessus du bouton, espace doublé (14 + 14 px) */
    .cta-row { flex-direction: column; align-items: flex-start; }
    .cta-row .link-cta { order: -1; }
    .cta-row .btn { margin-top: 14px; }
    :root { --gutter: var(--site-padding, 18px); --header: 64px; }
    .logo img { height: 19.5px; }
    .review { flex-basis: 86%; }
    .reviews, .cars, .news-track { --fade: 18px; }
    .footer-grid { grid-template-columns: 1fr; }
    .contact-img { aspect-ratio: 4 / 3; }
    .contact .split { row-gap: 128px; }
    .contact .lead + .sub-title { margin-top: 48px; } /* mobile : plus d'espace entre le bloc Contact et « Adresse » */ /* mobile : espace ×2 entre le bloc Contact, « Adresse » et « Horaires d'ouverture » (64 px avant) */
    /* FAQ mobile : questions plus petites ; réponses comme les textes de l'accordéon « Services » (16 px, gris) */
    .faq summary { font-size: 15px; font-weight: 500; }
    .faq details p { font-size: 16px; color: var(--muted); }
  }
  /* Parallaxe du hero (mobile et ordinateur) : les photos dépassent le cadre de 15 % en haut et en bas, site.js les décale au défilement */
  @media (prefers-reduced-motion: no-preference) {
    .hero > img { top: -15%; height: 130%; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero img { transition: none; }
    .reviews, .cars, .news-track { scroll-behavior: auto; }
    .car-img img { transition: none; }
    .btn, .link-cta, .call { transition: none; }
    .btn:hover, .link-cta:hover, .call:hover { transform: none; }
  }
  /* bannière cookies : fine, en bas, fond flouté comme l'en-tête */
  .cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding: 10px var(--gutter); background: rgba(14, 14, 14, .72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #d6d6d6; font-size: 12.5px; line-height: 1.4; }
  .cookie-bar[hidden] { display: none; }
  .cookie-bar p { margin: 0; }
  .cookie-bar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
  .cookie-actions { display: flex; align-items: center; gap: 8px; }
  .cookie-btn { font: inherit; font-size: 12px; font-weight: 600; line-height: 1; padding: 7px 12px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: #fff; cursor: pointer; }
  .cookie-btn.primary { background: #fff; color: #141414; border-color: #fff; }
  @media (max-width: 640px) { .cookie-actions { width: 100%; } .cookie-btn { flex: 1; } }

/* Polices hébergées (Montserrat : SIL OFL) */
/* cyrillic-ext 400 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/montserrat-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic 400 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/montserrat-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* vietnamese 400 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/montserrat-400-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext 400 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/montserrat-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin 400 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/montserrat-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic-ext 500 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/montserrat-500-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic 500 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/montserrat-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* vietnamese 500 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/montserrat-500-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext 500 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/montserrat-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin 500 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/montserrat-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic-ext 600 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/montserrat-600-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic 600 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/montserrat-600-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* vietnamese 600 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/montserrat-600-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext 600 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/montserrat-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin 600 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/montserrat-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic-ext 700 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/montserrat-700-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic 700 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/montserrat-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* vietnamese 700 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/montserrat-700-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext 700 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/montserrat-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin 700 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/montserrat-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Apparition au défilement (classe .reveal) ── */
/* Actif seulement si JavaScript a ajouté la classe « js » sur <html> : sans JS, tout reste visible */
html.js .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s cubic-bezier(0.22, 1, 0.36, 1), transform .6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Ombre douce sur les images et cartes ── */
.video, .occ-photo, .car, .review { box-shadow: 0 5px 15px rgba(0, 0, 0, .06); }

/* Marge intérieure verticale des sliders : l'ombre des cartes n'est plus coupée (la mise en page ne bouge pas) */
.reviews, .cars, .news-track { padding-block: 32px; margin-block: -32px; }

/* Cartes d'occasion : coins arrondis comme les photos, marge interne pour le texte */
.car { border-radius: var(--radius); overflow: hidden; background: #fff; }
.car-img { border-radius: var(--radius); }
.car-info { padding: 18px 20px 22px; }
/* Services : section blanche ; panneau gris dans les marges de la page, photo sur toute la hauteur du panneau, sans angles */
#services { background: #fff; }
#services .services-cols { background: var(--soft); align-items: stretch; gap: 0; }
#services .occ-photo { aspect-ratio: auto; align-self: stretch; height: auto; min-height: 100%; border-radius: 0; box-shadow: none; position: relative; }
#services .occ-photo img { position: absolute; inset: 0; }
#services .svc-text { align-self: center; padding: clamp(40px, 5vw, 72px); }
@media (max-width: 960px) {
  #services .occ-photo { aspect-ratio: 4 / 3; min-height: 0; }
  #services .occ-photo img { position: static; }
  #services .svc-text { padding: 40px 24px 56px; }
}
/* Services : panneau plus haut, la photo occupe toute la hauteur de la section (ordinateur) */
#services .services-cols { min-height: clamp(420px, 56vw, 720px); }
@media (max-width: 960px) { #services .services-cols { min-height: 0; } }
/* Services : panneau à coins de 5 px (photo comprise) */
#services .services-cols { border-radius: var(--radius); overflow: hidden; }
/* KGM : même traitement que les Services — section blanche, panneau gris dans les marges de la page, photo pleine hauteur, coins de 5 px */
#kgm { background: #fff; }
#kgm .split { background: var(--soft); align-items: stretch; gap: 0; border-radius: var(--radius); overflow: hidden; min-height: clamp(460px, 48vw, 700px); }
#kgm .story-img { align-self: stretch; height: auto; min-height: 100%; border-radius: 0; position: relative; aspect-ratio: auto; }
#kgm .story-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#kgm .story-text { align-self: center; padding: clamp(40px, 5vw, 72px); }
@media (max-width: 960px) {
  #kgm .split { min-height: 0; }
  #kgm .story-img { min-height: 0; aspect-ratio: 4 / 3; }
  #kgm .story-img img { position: static; }
  #kgm .story-text { padding: 40px 24px 56px; }
}
/* Panneaux Services et KGM : ombre très légère */
#services .services-cols, #kgm .split { box-shadow: 0 4px 12px rgba(0, 0, 0, .05); }
/* Mazda et Forthing : même traitement que KGM (panneau gris dans les marges, photo pleine hauteur, coins de 5 px, ombre très légère) */
#mazda, #mazda-c1 { background: #fff; }
#mazda .split, #mazda-c1 .split { background: var(--soft); align-items: stretch; gap: 0; border-radius: var(--radius); overflow: hidden; min-height: clamp(460px, 48vw, 700px); box-shadow: 0 4px 12px rgba(0, 0, 0, .05); }
#mazda .story-img, #mazda-c1 .story-img { align-self: stretch; height: auto; min-height: 100%; border-radius: 0; position: relative; aspect-ratio: auto; }
#mazda .story-img img, #mazda-c1 .story-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#mazda .story-text, #mazda-c1 .story-text { align-self: center; padding: clamp(40px, 5vw, 72px); }
@media (max-width: 960px) {
  #mazda .split, #mazda-c1 .split { min-height: 0; }
  #mazda .story-img, #mazda-c1 .story-img { min-height: 0; aspect-ratio: 4 / 3; }
  #mazda .story-img img, #mazda-c1 .story-img img { position: static; }
  #mazda .story-text, #mazda-c1 .story-text { padding: 40px 24px 56px; }
}

/* ── Page KGM (/kgm/) : mise en page mobile d'abord, mêmes styles que le reste du site ── */
.kgm-hero .story-img img { width: 100%; height: auto; display: block; object-fit: cover; }
.kgm-figure { margin: 0; overflow: hidden; }
.kgm-figure img { width: 100%; height: auto; display: block; }
.check-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 24px; color: var(--text); }
.check-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.model-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
.model { background: #fff; border-radius: var(--radius); box-shadow: 0 5px 15px rgba(0, 0, 0, .06); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.model h3 { font-size: 20px; line-height: 1.25; color: var(--ink); }
.model-type { font-size: 14px; color: var(--muted); }
.model-type:empty { display: none; }
.model-pts { font-size: 15px; color: var(--text); line-height: 1.5; }
.model .link-cta { margin-top: auto; padding-top: 12px; }
@media (min-width: 720px) { .model-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .model-grid { grid-template-columns: repeat(3, 1fr); } }

/* Fil d'Ariane (page KGM) */
.breadcrumb { padding-top: 24px; font-size: 14px; color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: var(--muted); }
.breadcrumb a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ── Mobile (≤ 640 px) ── */
@media (max-width: 640px) {
  /* espacement entre sections : 30 % de moins que le réglage mobile précédent */
  .section { padding-top: calc(clamp(83px, 11.7vw, 146px) * var(--section-top-mobile) * .7); padding-bottom: calc(clamp(83px, 11.7vw, 146px) * var(--section-bottom-mobile) * .7); }
  /* flèches visibles sur les avis Google et les annonces */
  #reviewsSlider .slider-nav, #carsSlider .slider-nav { display: flex; }
}
/* Forthing : sur mobile, la photo est au-dessus du texte */
@media (max-width: 960px) { #mazda-c1 .story-img { order: 0; } }
/* Logo du pied de page : largeur explicite (sinon 0 px et invisible sur la page KGM comme sur l'accueil) */
.footer-logo { width: 240px; max-width: 100%; min-width: 0; }
/* Pourquoi Wacar : photo KGM en fond, voile sombre, texte blanc */
.kgm-why { position: relative; overflow: hidden; background: #141414; }
.kgm-why-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kgm-why::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.kgm-why-content { position: relative; z-index: 1; }
.kgm-why h2, .kgm-why .lead { color: #fff; }
.kgm-why .lead { text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
/* Page KGM : hero identique à l'accueil (image plein écran, texte blanc, boutons transparents), sans défilement */
.kgm-hero-page { min-height: 560px; }
.kgm-hero-page > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.kgm-hero-page .breadcrumb { color: rgba(255, 255, 255, .9); padding-top: 0; margin-bottom: 14px; }
.kgm-hero-page .breadcrumb a { color: #fff; }
.kgm-hero-page .hero-actions { display: flex; }
@media (max-width: 640px) { .kgm-hero-page .hero-actions { display: flex; } }
/* Liste « Pourquoi choisir Wacar » : pictogrammes en contour */
.check-list li { display: flex; align-items: center; gap: 12px; padding-left: 0; }
.check-list li::before { display: none; }
.check-list li svg { width: 22px; height: 22px; flex: none; color: var(--ink); }
/* Pourquoi Wacar : section 30 % plus haute */
.kgm-why { min-height: clamp(360px, 42.6vw, 614px); display: flex; align-items: center; }
/* Cartes de modèles : photo du véhicule (fond discret, image entière visible) */
.model-img { aspect-ratio: 16 / 9; background: var(--soft); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.model-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
/* Pourquoi Wacar : bloc de texte aligné en bas (marge du bas respectée), photo assombrie par un dégradé */
.kgm-why { align-items: flex-end; }
.kgm-why::before { background: linear-gradient(to top, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .5) 55%, rgba(0, 0, 0, .25) 100%); }
/* Galerie KGM (au-dessus des contacts) */
.gal-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
.gal-item { margin: 0; }
.gal-item img { width: 100%; height: auto; display: block; border-radius: var(--radius); background: var(--soft); }
.gal-item figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
@media (min-width: 720px) { .gal-grid { grid-template-columns: repeat(3, 1fr); align-items: start; } }
/* Gamme KGM : curseur horizontal sur mobile uniquement (ordinateur : grille inchangée) */
.kgm-slider { margin-top: 0; }
.kgm-nav { display: none; }
@media (max-width: 640px) {
  .model-grid { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-bottom: 2px; }
  .model-grid::-webkit-scrollbar { display: none; }
  .model { flex: 0 0 min(300px, 78%); scroll-snap-align: start; }
  .kgm-nav { display: flex; gap: 10px; margin-top: 20px; }
}
/* Concessionnaires (Mazda, Forthing, KGM) : photo en léger mouvement vertical au défilement (ordinateur uniquement) */
@media (min-width: 961px) {
  #mazda .story-img img, #mazda-c1 .story-img img, #kgm .story-img img { top: -10%; height: 120%; will-change: transform; }
}
/* Accueil, mobile : bouton « Nous contacter » du hero en style transparent (comme les boutons du hero sur ordinateur) */
@media (max-width: 640px) {
  .hero .hero-contact { width: max-content; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .55); border-radius: var(--radius); padding: 10px 16px; text-decoration: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .hero .hero-contact:hover { border-color: #fff; }
}
/* Accueil, Pourquoi choisir Wacar pour votre KGM : pictogrammes en contour, discrets */
.points li { display: flex; align-items: center; gap: 10px; }
.points .pt-icon { width: 18px; height: 18px; flex: none; display: inline-flex; color: var(--ink); }
.points .pt-icon svg { width: 100%; height: 100%; }
.points li { padding-left: 0; }
.points li::before { display: none; }
/* Voitures d'occasion (ordinateur) : logo AutoScout24 au-dessus du titre, titre pleine largeur, moins d'écart avec le slider */
@media (min-width: 961px) {
  #occasions .title-row { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 12px; }
  #occasions .title-row .autoscout { order: -1; }
  #occasions .title-row h2 { width: 100%; }
  #occasions { padding-bottom: clamp(24px, 3vw, 40px); }
}
/* Avis clients : photo, nom et étoiles au-dessus du texte (ordinateur et mobile) */
.review footer { order: -1; margin-top: 0; padding-top: 0; padding-bottom: 18px; }
.review p { order: 0; }
/* Page KGM : hero recentré sur le véhicule (ordinateur : à gauche, mobile : au centre du pick-up) */
.kgm-hero-page > img { object-position: 0% 50%; }
@media (max-width: 640px) { .kgm-hero-page > img { object-position: 47% 56%; } }
/* Pourquoi Wacar : voile un peu plus sombre pour la lisibilité */
.kgm-why::before { background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .62) 55%, rgba(0, 0, 0, .38) 100%); }
/* Accueil : blocs concessionnaires (Mazda, Forthing, KGM) moins hauts */
#mazda .split, #mazda-c1 .split, #kgm .split { min-height: clamp(300px, 30vw, 400px); }
/* Pourquoi Wacar : voile plus sombre, texte descendu (marge du bas réduite) */
.kgm-why::before { background: linear-gradient(to top, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .72) 55%, rgba(0, 0, 0, .45) 100%); }
.kgm-why-content { margin-bottom: -28px; }
/* Hero KGM (ordinateur) : photo agrandie depuis la gauche pour décaler le pick-up vers la droite */
.kgm-hero-page > img { object-position: 0% 50%; transform: scale(1.12); transform-origin: 0% 50%; }
@media (max-width: 640px) { .kgm-hero-page > img { transform: none; } }
/* Mobile : hero KGM centré sur la calandre et la plaque ; section Pourquoi plus haute, photo cadrée vers le bas */
@media (max-width: 640px) {
  .kgm-hero-page > img { object-position: 33% 50%; }
  .kgm-why { min-height: 600px; }
  .kgm-why-bg { object-position: 50% 100%; }
}
/* Accueil : moins d'espace entre le bloc Mazda et le bloc KGM (moitié de l'espacement habituel) */
#mazda { padding-bottom: calc(clamp(83px, 11.7vw, 146px) * .5); }
#kgm { padding-top: calc(clamp(83px, 11.7vw, 146px) * .5); }
/* Heros (accueil et KGM) sur mobile : hauteur 80 vh (au lieu de 70 vh) */
@media (max-width: 640px) { .hero { height: 80vh; } }
/* Page KGM : plus d'espace entre le titre « KGM : SUV et pick-up » et le paragraphe */
#kgm-presentation h2 { margin-bottom: 28px; }
#kgm-presentation h2 + p { margin-top: 0; }
/* Pourquoi Wacar : dégradé noir plus marqué pour faire ressortir le texte */
.kgm-why::before { background: linear-gradient(to top, rgba(0, 0, 0, .97) 0%, rgba(0, 0, 0, .8) 50%, rgba(0, 0, 0, .5) 100%); }

/* Parallaxe renforcée : photo du hero débordant davantage (ordinateur) ; pages : accueil et KGM */
@media (min-width: 961px) { .hero > img { top: -20%; height: 140%; } }
.kgm-hero-page > img { top: -20%; height: 140%; }
/* Voitures d'occasion (mobile) : logo AutoScout24 au-dessus du titre, titre pleine largeur */
#occasions .title-row { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 12px; }
#occasions .title-row .autoscout { order: -1; }
#occasions .title-row h2 { width: 100%; }
/* Mobile : lien YouTube réduit à la flèche ; espace réduit entre le bloc Voitures d'occasion et les annonces */
@media (max-width: 640px) {
  .news-yt .yt-label { display: none; }
  #occasions { padding-bottom: clamp(24px, 3vw, 40px); }
}
/* Pourquoi Wacar : dégradé qui part de la gauche (ordinateur et mobile), en plus du dégradé du bas */
.kgm-why::before { background: linear-gradient(to right, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .45) 55%, rgba(0, 0, 0, .15) 100%), linear-gradient(to top, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .72) 55%, rgba(0, 0, 0, .45) 100%); }
/* Pourquoi Wacar (ordinateur) : photo zoomée de 30 %, cadrage à gauche */
@media (min-width: 961px) {
  .kgm-why-bg { object-position: 0% 50%; transform: scale(1.3); transform-origin: 0% 50%; }
}
/* Pourquoi Wacar : dégradé gauche renforcé */
.kgm-why::before { background: linear-gradient(to right, rgba(0, 0, 0, .97) 0%, rgba(0, 0, 0, .85) 40%, rgba(0, 0, 0, .5) 75%, rgba(0, 0, 0, .2) 100%), linear-gradient(to top, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .72) 55%, rgba(0, 0, 0, .45) 100%); }
/* Pourquoi Wacar (mobile) : photo zoomée de 30 %, voiture au centre, cadrage vers le bas */
@media (max-width: 960px) {
  .kgm-why-bg { object-position: 57% 85%; transform: scale(1.3); transform-origin: 57% 85%; }
}
/* Pourquoi Wacar (mobile) : zoom centré exactement sur la voiture */
@media (max-width: 960px) {
  .kgm-why-bg { object-position: 56% 55%; transform: scale(1.3); transform-origin: 56% 55%; }
}
/* Pourquoi Wacar : voile sombre sur toute la photo (ordinateur et mobile), en plus des dégradés */
.kgm-why::before { background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)), linear-gradient(to right, rgba(0, 0, 0, .97) 0%, rgba(0, 0, 0, .85) 40%, rgba(0, 0, 0, .5) 75%, rgba(0, 0, 0, .2) 100%), linear-gradient(to top, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .72) 55%, rgba(0, 0, 0, .45) 100%); }
/* Heros (accueil et KGM) sur mobile : 90 vh */
@media (max-width: 640px) { .hero { height: 90vh; } }
/* Hero KGM (mobile) : point de focus sur la plaque du pick-up */
@media (max-width: 640px) { .kgm-hero-page > img { object-position: 36% 63%; } }
/* Hero KGM (mobile) : plaque du pick-up centrée horizontalement, placée vers le bas de l'écran */
@media (max-width: 640px) { .kgm-hero-page > img { top: -8%; height: 140%; object-position: 36% 63%; } }
/* Hero KGM (mobile) : pick-up remonté, plaque au tiers haut de l'écran, toujours centrée horizontalement */
@media (max-width: 640px) { .kgm-hero-page > img { top: -67%; height: 170%; object-position: 36% 63%; } }
/* Gamme KGM (ordinateur) : chaque carte grossit de 5 % au survol */
@media (min-width: 961px) {
  .model { transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease; }
  .model:hover { transform: scale(1.05); box-shadow: 0 12px 28px rgba(0, 0, 0, .12); }
}
/* Hero KGM (mobile) : pick-up redescendu, toit visible et un peu d'espace au-dessus, sous l'en-tête */
@media (max-width: 640px) { .kgm-hero-page > img { top: -55%; height: 170%; object-position: 36% 63%; } }
