/* =========================================================================
   INDEX.CSS
   1. Hero : bannières + recherche sur la même ligne
   2. Carrousel bannières
   3. Panneau de recherche (onglets plaque / carte grise / véhicule)
   4. Véhicule sélectionné
   4b. Top ventes (véhicule sélectionné)
   5. L'entreprise en bref
   6. Catalogue catégories
   7. Pop-up choix de version (plusieurs vtypes)
   8. Responsive
      8a. Tablette paysage  (<= 1100px)
      8b. Mobile & tablette (<= 900px)
      8c. Mobile            (<= 640px)
      8d. Petit mobile      (<= 480px)
   9. Thème clair
   ========================================================================= */


/* =========================================================================
   1. HERO
   Recherche à gauche, bannière à droite (max 900 px, sa largeur réelle),
   dans l'ordre du HTML. Sur mobile, la bannière remonte au-dessus.
   ========================================================================= */

.hero-wrap {
  padding: 28px 24px;
  background: #1a1a1a;
}

.hero {
  display: grid;
  grid-template-columns: 400px minmax(0, 900px);
  justify-content: center;
  align-items: center;
  gap: 28px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Pas de bannière : la recherche seule, centrée */
.hero--solo {
  grid-template-columns: minmax(0, 460px);
}


/* =========================================================================
   2. CARROUSEL BANNIÈRES
   Bannières au format 900 × 200 px (4,5:1).
   Si tu changes de format, modifie --banner-ratio.
   ========================================================================= */

.hero-carousel {
  --banner-ratio: 900 / 200;

  position: relative;
  min-width: 0;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.hero-carousel__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.hero-carousel__track {
  display: flex;
  transition: transform .5s ease;
  touch-action: pan-y;
}

/* Glissement en cours (index.js) : la bannière suit le pointeur, sans animation */
.hero-carousel__track.is-dragging {
  transition: none;
  cursor: grabbing;
  -webkit-user-select: none;
  user-select: none;
}

.hero-carousel__track.is-dragging a {
  cursor: grabbing;
}

.hero-carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.hero-carousel__slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--banner-ratio);
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/* --- Flèches --- */
.hero-carousel__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity .2s, background .2s;
}

.hero-carousel__btn--prev { left: 10px; }
.hero-carousel__btn--next { right: 10px; }

.hero-carousel:hover .hero-carousel__btn,
.hero-carousel__btn:focus-visible {
  opacity: 1;
}

.hero-carousel__btn:hover {
  background: rgba(0, 0, 0, .75);
}

/* --- Points --- */
.hero-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.hero-carousel__dot {
  position: relative;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: var(--border-light);
  cursor: pointer;
  transition: width .25s, background .25s;
}

.hero-carousel__dot::after {
  content: "";
  position: absolute;
  inset: -8px;
}

.hero-carousel__dot:hover {
  background: var(--text-muted);
}

.hero-carousel__dot[aria-current="true"] {
  width: 26px;
  background: var(--accent);
}

.hero-carousel.is-single .hero-carousel__btn,
.hero-carousel.is-single .hero-carousel__dots {
  display: none;
}

@media (hover: none) {
  .hero-carousel__btn {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel__track {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-card__img img { transition: none; }
  .top-card:hover .top-card__img img { transform: none; }
}


/* =========================================================================
   3. PANNEAU DE RECHERCHE
   ========================================================================= */

.search-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  min-width: 0;
  padding: 20px;
  background: #1e1e1e;
  border: 1.5px solid #2e2e2e;
  border-radius: 14px;
}

.search-panel__title {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  color: #f0f0f0;
}

.search-panel__hint {
  margin-top: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: #777;
}

.search-panel__hint a {
  color: #FED900;
}

/* Ancien véhicule (voiture_temp), sous la recherche :
   un peu plus lisible que les autres aides, le bouton ressemble à un lien */
.search-panel__ancien {
  font-size: 13px;
  line-height: 1.5;
  color: #999;
}

.search-panel__ancien-btn {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: #FED900;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.search-panel__ancien-btn:hover { color: #e6c400; }

/* Enregistrement en cours */
.search-panel__ancien-btn:disabled {
  opacity: .6;
  cursor: wait;
}

/* --- Onglets --- */
.search-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #151515;
  border-radius: 9px;
}

.search-tab {
  flex: 1;
  height: 34px;
  padding: 0 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #888;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.search-tab:hover {
  color: #ddd;
}

.search-tab[aria-selected="true"] {
  background: #2a2a2a;
  color: #f0f0f0;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.search-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* --- Contenu des onglets ---
   Les 3 volets sont empilés dans la même case de grille : le panneau
   garde la hauteur du plus grand, donc rien ne saute quand on change d'onglet. */
.search-panes {
  display: grid;
}

.search-pane {
  grid-area: 1 / 1;
  min-width: 0;
}

.search-pane[hidden] {
  display: block;
  visibility: hidden;
}

/* --- Champ plaque / carte grise --- */
.plate-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plate-input-wrapper,
.cg-input-wrapper {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 2px solid #444;
  border-radius: 8px;
  overflow: hidden;
  background: #1e1e1e;
  transition: border-color .2s;
}

.plate-input-wrapper:focus-within,
.cg-input-wrapper:focus-within {
  border-color: var(--accent);
}

.plate-flag {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 48px;
  flex-shrink: 0;
  background: #003189;
}

.plate-flag__eu {
  font-size: 14px;
  line-height: 1;
}

.plate-flag__code {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

.cg-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  background: #2a2a2a;
  color: #888;
}

/* min-width: 0 + width: 100% : sinon l'<input> garde une largeur
   "naturelle" d'environ 20 caractères et fait déborder la page. */
.plate-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 0 14px;
  border: none;
  outline: none;
  background: #1e1e1e;
  color: #f0f0f0;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.plate-input::placeholder {
  color: #555;
  letter-spacing: 0.08em;
}

.cg-input {
  letter-spacing: 0.06em;
}

.plate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #111;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.plate-btn:hover {
  background: #e6c400;
  transform: translateY(-1px);
}

.plate-btn:disabled {
  opacity: .5;
  cursor: wait;
  transform: none;
}

/* --- Marque / modèle / type ---
   Marque | Modèle
   Type ........ [→] */
.vehicle-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vehicle-form__last {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}

.vehicle-select {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 32px 0 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #f0f0f0;
  background: #1e1e1e;
  border: 1.5px solid #3a3a3a;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.vehicle-select:focus {
  border-color: var(--accent);
}

.vehicle-select:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Liste déroulante : fond sombre (sinon blanc sous Windows) */
.vehicle-select option,
.vehicle-select optgroup {
  background: #1e1e1e;
  color: #f0f0f0;
}

/* Titres de groupe : "Marques les plus populaires" / "Toutes les marques" */
.vehicle-select optgroup {
  font-style: normal; /* Firefox les met en italique par défaut */
  font-weight: 700;
  color: #aaa;
}


/* =========================================================================
   4. VÉHICULE SÉLECTIONNÉ
   ========================================================================= */

.vehicle-banner__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #161616;
  border: 1.5px solid #2e2e2e;
  border-radius: 12px;
  transition: border-color 0.15s;
}

.vehicle-banner__inner:hover { border-color: #3a3a3a; }

.vehicle-banner__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  color: var(--accent);
}

/* Icône du véhicule selon sa classe (partial icone-vehicule) :
   les trois icônes sont dans le HTML, seule celle de la classe s'affiche
   (data-classe sur .vehicle-banner__icon). Voiture par défaut :
   classe "leger", ou absente pour un véhicule enregistré avant l'ajout. */
.icone-vehicule {
  display: none;
  width: 100%;
  height: auto;
}

.icone-vehicule--leger,
[data-classe="camion"] > .icone-vehicule--camion,
[data-classe="agricole"] > .icone-vehicule--agricole { display: block; }

[data-classe="camion"] > .icone-vehicule--leger,
[data-classe="agricole"] > .icone-vehicule--leger { display: none; }

.vehicle-banner__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vehicle-banner__name {
  font-family: 'Manrope', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  color: #f0f0f0;
}

.vehicle-banner__spec {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #888;
}

/* Code TECDOC (comptes internes) */
.vehicle-banner__tecdoc {
  color: greenyellow;
}

.vehicle-banner__change {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 8px 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border: 1.5px solid #2e2e2e;
  background: #1e1e1e;
  border-radius: 7px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.vehicle-banner__change:hover {
  color: #f0f0f0;
  border-color: #444;
  background: #252525;
}

.vehicle-banner__delete {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid #3a1a1a;
  background: #2a1010;
  color: #e05555;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.vehicle-banner__delete:hover {
  background: #3d1515;
  border-color: #e05555;
  color: #ff6b6b;
}

/* Variante sidebar */
.sidebar__vehicle-banner {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #1e1e1e;
  border: 1.5px solid #2e2e2e;
  border-radius: 10px;
  cursor: default;
  transition: border-color 0.15s;
  margin-bottom: 8px;
}

.sidebar__vehicle-banner.is-visible { display: flex; }

.sidebar__vehicle-banner .vehicle-banner__icon {
  width: 36px;
  height: 36px;
  background: #252525;
  border: 1.5px solid #333;
  border-radius: 8px;
}

.sidebar__vehicle-banner .vehicle-banner__change {
  padding: 6px 10px;
  font-size: 11px;
}

.sidebar__vehicle-banner .vehicle-banner__name { font-size: 1.1rem; }
.sidebar__vehicle-banner .vehicle-banner__spec { font-size: 1.1rem; }


/* =========================================================================
   4b. TOP VENTES
   Seulement quand un véhicule est sélectionné. 20 articles sur deux lignes :
   les cartes se rangent colonne par colonne (grid-auto-flow: column)
   et la liste défile vers la droite (flèches gérées par index.js).
   ========================================================================= */

.top-ventes {
  padding: 28px 24px 12px;
  background: #1e1e1e;
}

.top-ventes__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.top-ventes__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.top-ventes__title {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

/* --- Flèches --- */
.top-ventes__nav {
  display: flex;
  gap: 8px;
}

.top-ventes__nav[hidden] { display: none; }

.top-ventes__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1.5px solid #3a3a3a;
  border-radius: 8px;
  background: #161616;
  color: #f0f0f0;
  cursor: pointer;
  transition: border-color .15s, color .15s, opacity .15s;
}

.top-ventes__btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.top-ventes__btn:disabled {
  opacity: .35;
  cursor: default;
}

.top-ventes__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* --- Liste : deux lignes, défilement horizontal --- */
.top-ventes__liste {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: 240px;
  gap: 12px;
  margin: 0;
  padding: 2px 2px 14px; /* place pour le contour de focus et la barre de défilement */
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px; /* même marge que padding : au départ, la liste ne bouge pas */
  scroll-behavior: smooth;
  overscroll-behavior-x: contain; /* la molette verticale continue de faire défiler la page */
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}

/* Pas assez d'articles pour deux lignes (moins de 6 par ligne, ou tous tiennent
   côte à côte) : une seule ligne. Classe posée par index.js */
.top-ventes__liste--une-ligne { grid-template-rows: auto; }

/* --- Carte article --- */
.top-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  scroll-snap-align: start;
  background: #161616;
  border: 1.5px solid #2e2e2e;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .15s;
}

.top-card:hover { border-color: #444; }

/* Photo, marque, référence, libellé, stock : la partie cliquable vers la page de l'article */
.top-card__lien {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

/* Photo en haut de la carte, bord à bord, au format des photos produit (3:2) */
.top-card__img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
}

.top-card__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent; /* texte alternatif invisible si la photo ne se charge pas */
  transition: transform .3s;
}

.top-card:hover .top-card__img img { transform: scale(1.04); }

/* Pas de photo : pictogramme */
.top-card__placeholder {
  width: 36%;
  height: auto;
  color: #555;
}

.top-card__texte {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
}

.top-card__lien:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.top-card__marque {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
}

.top-card__ref {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--accent);
  overflow-wrap: anywhere;
}

.top-card__lien:hover .top-card__ref {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Libellé sur 2 lignes max (texte complet au survol) ;
   min-height : toutes les cartes gardent la même hauteur */
.top-card__lib {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: calc(2 * 1.4em);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: #aaa;
}

.top-card__stock {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.top-card__stock--ok    { color: #3ecf6e; }
.top-card__stock--autre { color: #f0a020; }
.top-card__stock--non   { color: #e05555; }

.top-card__point {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* Prix à gauche, "Ajouter" à droite */
.top-card__pied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px 12px;
  border-top: 1px solid #2a2a2a;
}

.top-card__prix {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #f0f0f0;
  white-space: nowrap;
}

.top-card__ajout {
  margin-left: auto;
  padding: 7px 14px;
  border: none;
  border-radius: 7px;
  background: var(--accent);
  color: #111;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}

.top-card__ajout:hover:not(:disabled) { background: #e6c400; }

.top-card__ajout:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.top-card__ajout:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


/* =========================================================================
   5. L'ENTREPRISE EN BREF
   Cartes à icônes à gauche, photo de l'atelier à droite qui se fond
   dans le fond sombre.
   ========================================================================= */

.about {
  padding: 40px 24px;
  background: #1e1e1e;
}

.about__inner {
  position: relative;
  max-width: 1400px;
  min-height: 400px;
  margin: 0 auto;
  overflow: hidden;
  background: #171717;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
}

.about__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 62%;
  padding: 36px 40px;
}

.about__eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.about__title {
  font-family: 'Manrope', sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  color: #f0f0f0;
}

.about__text {
  max-width: 560px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #aaa;
}

.about__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 6px;
  padding: 0;
  list-style: none;
}

.about-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 10px 18px 10px 10px;
  background: #242424;
  border: 1px solid #333;
  border-radius: 40px;
}

.about-pill__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
}

.about-pill__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.about-pill__text strong {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #f0f0f0;
}

.about-pill__text span {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.35;
  color: #999;
}

.about__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.about__link svg {
  transition: transform .2s;
}

.about__link:hover svg {
  transform: translateX(3px);
}

/* --- Photo --- */
.about__photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48%;
  margin: 0;
}

.about__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fondu de la photo vers le fond, côté texte */
.about__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #171717 0%, rgba(23, 23, 23, .55) 30%, rgba(23, 23, 23, 0) 70%);
}

.about__badge {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  background: rgba(17, 17, 17, .85);
  border: 1px solid #333;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.about__badge strong {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}

.about__badge span {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #bbb;
}


/* =========================================================================
   6. CATALOGUE CATÉGORIES
   Cartes compactes, même famille que .top-card : icône + nom en tête,
   3 sous-catégories visibles, "Tout voir (N)" déplie la carte (main.js
   crée les cartes et pose .cat-card--ouverte au clic). Largeur alignée sur les autres sections (1400px).
   Pour afficher 4 sous-catégories au lieu de 3 : remplacer n+4 par n+5,
   nth-child(4) par nth-child(5) et le 3 de min-height par 4.
   ========================================================================= */

.catalog {
  padding: 28px 24px 48px;
  background: #1e1e1e;
  color: #efefef;
}

.catalog__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.catalog__header {
  margin-bottom: 14px;
}

/* Même style que .top-ventes__title */
.catalog__title {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

/* Autant de colonnes de 280px min. que la largeur permet :
   4 sur grand écran, 1 sur mobile, sans media query.
   align-items: start : une carte dépliée ne grandit pas ses voisines. */
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  align-items: start;
  gap: 12px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 16px 18px 14px;
  background: #161616;
  border: 1.5px solid #2e2e2e;
  border-radius: 12px;
  transition: border-color .15s;
}

.cat-card:hover { border-color: #444; }

/* --- Tête : icône + nom --- */
.cat-card__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cat-card__img {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #242424;
  border: 1px solid #333;
  color: var(--accent);
  transition: background .15s, border-color .15s, color .15s;
}

.cat-card__img svg {
  display: block;
  width: 56%;
  height: 56%;
}

/* Survol du nom ou de l'icône : l'icône passe en jaune.
   :has(a) : seulement si le nom est un lien (aujourd'hui c'est un <h3>, créé par main.js) */
.cat-card__head:has(a):hover .cat-card__img {
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
}

.cat-card__name {
  min-width: 0;
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  color: #f0f0f0;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .15s;
}

/* Le lien couvre toute la tête : un clic sur l'icône ouvre aussi la catégorie */
.cat-card__name::after {
  content: "";
  position: absolute;
  inset: 0;
}

.cat-card__head:has(a):hover .cat-card__name { color: var(--accent); }

.cat-card__name:focus-visible {
  outline: none;
}

.cat-card__name:focus-visible::after {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 10px;
}

/* --- Sous-catégories ---
   min-height : 3 lignes, pour que les cartes d'une même rangée
   gardent la même hauteur même avec 1 ou 2 sous-catégories. */
.cat-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: calc(3 * 1.4em + 2 * 8px);
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

/* Repliée : seulement les 3 premières.
   :has(.cat-card__more) : sans bouton pour déplier, on n'en masque aucune */
.cat-card:has(.cat-card__more):not(.cat-card--ouverte) .cat-card__list li:nth-child(n+4) {
  display: none;
}

.cat-card__list li a {
  color: #efefef;
  text-decoration: none;
  transition: color .15s;
  font-size: 15px;
}

.cat-card__list li a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cat-card__list li a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --- "Tout voir (N)" / "Réduire" --- */
.cat-card__more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 5px;
  padding: 4px 0;
  border: 0;
  background: none;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
}

.cat-card__more:hover .cat-card__more-texte {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cat-card__more:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.cat-card__more-nb {
  font-weight: 600;
  color: inherit; /* même jaune que "Tout voir" */
}

.cat-card__more svg {
  transition: transform .2s;
}

/* Dépliée : le nombre disparaît, la flèche se retourne */
.cat-card--ouverte .cat-card__more-nb { display: none; }
.cat-card--ouverte .cat-card__more svg { transform: rotate(180deg); }

/* 3 sous-catégories ou moins : rien à déplier.
   visibility (et non display) : le bouton garde sa place,
   les cartes de la rangée restent alignées. */
.cat-card__list:not(:has(li:nth-child(4))) + .cat-card__more {
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .cat-card__more svg { transition: none; }
}


/* =========================================================================
   7. POP-UP CHOIX DE VERSION
   Ouvert par choisirVtype() quand une marque / modèle / type correspond
   à plusieurs vtypes. <dialog> natif : Échap, focus et fond sombre gérés
   par le navigateur. Chaque version est un bouton dont la valeur est son vtype.
   ========================================================================= */

/* margin: auto centre le pop-up à l'écran. C'est la valeur par défaut
   du navigateur, mais un reset du type * { margin: 0 } l'annule. */
.vtype-dialog {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  border: 1.5px solid #2e2e2e;
  border-radius: 14px;
  background: #1e1e1e;
  color: #f0f0f0;
}

.vtype-dialog::backdrop {
  background: rgba(0, 0, 0, .6);
}

/* Le formulaire remplit tout le pop-up : un clic sur le fond sombre
   a donc le <dialog> pour cible, ce qui sert à le fermer en JS. */
.vtype-dialog__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.vtype-dialog__title {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  color: #f0f0f0;
}

.vtype-dialog__text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #aaa;
}

.vtype-dialog__text strong {
  color: #f0f0f0;
}

/* Liste des versions : défile si elles sont nombreuses */
.vtype-dialog__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 50vh;
  overflow-y: auto;
}

/* Une version = tableau à deux colonnes : titre | valeur.
   Les lignes sont en display: contents : leurs deux cellules
   se placent directement dans la grille du bouton, alignées
   d'une ligne à l'autre. */
.vtype-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 5px 16px;
  flex-shrink: 0;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #3a3a3a;
  border-radius: 8px;
  background: #161616;
  color: #f0f0f0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.vtype-option:hover,
.vtype-option:focus-visible {
  border-color: var(--accent);
  background: #252525;
  outline: none;
}

.vtype-option__row {
  display: contents;
}

/* Titre du champ : Puissance, Période, Cylindrée… */
.vtype-option__key {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #888;
}

.vtype-option__val {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  color: #f0f0f0;
}

/* Puissance mise en avant : c'est souvent elle qui distingue deux versions */
.vtype-option__row[data-champ="puissance"] .vtype-option__val {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
}

/* Code TECDOC (comptes internes), comme .vehicle-banner__tecdoc */
.vtype-option__tecdoc .vtype-option__key,
.vtype-option__tecdoc .vtype-option__val {
  color: greenyellow;
}

/* Même style que .vehicle-banner__change */
.vtype-dialog__cancel {
  align-self: flex-end;
  padding: 8px 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #888;
  border: 1.5px solid #2e2e2e;
  border-radius: 7px;
  background: #1e1e1e;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}

.vtype-dialog__cancel:hover {
  color: #f0f0f0;
  border-color: #444;
  background: #252525;
}

.vtype-dialog__cancel:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}


/* =========================================================================
   8a. TABLETTE PAYSAGE (<= 1100px)
   ========================================================================= */

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 20px;
  }

  .hero--solo {
    grid-template-columns: minmax(0, 460px);
  }

  .about__content {
    width: 72%;
    padding: 32px;
  }

  .about__photo {
    width: 42%;
  }
}


/* =========================================================================
   8b. MOBILE & TABLETTE (<= 900px)
   Bannière au-dessus, recherche en dessous.
   ========================================================================= */

@media (max-width: 900px) {
  .hero,
  .hero--solo {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .search-panel {
    max-width: 560px;
    margin: 0 auto;
  }

  /* Mobile : bannière au-dessus, recherche en dessous */
  .hero > .hero-carousel {
    order: -1;
  }

  /* < 16px : iOS zoome automatiquement sur le champ au focus */
  .vehicle-select {
    font-size: 16px;
  }

  /* Entreprise : photo en haut, texte en dessous */
  .about__inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .about__photo {
    position: relative;
    order: -1; /* photo au-dessus du texte */
    width: 100%;
    height: 220px;
  }

  .about__photo::before {
    background: linear-gradient(0deg, #171717 0%, rgba(23, 23, 23, 0) 60%);
  }

  .about__badge {
    top: 16px;
    right: 16px;
    bottom: auto;
  }

  .about__content {
    width: 100%;
    margin-top: -40px;
    padding: 0 24px 28px;
  }
}


/* =========================================================================
   8c. MOBILE (<= 640px)
   ========================================================================= */

@media (max-width: 640px) {
  /* --- Hero : bannière bord à bord --- */
  .hero-wrap {
    padding: 0 0 24px;
  }

  .hero-carousel__viewport {
    border-radius: 0;
  }

  .hero-carousel__dots {
    gap: 8px;
    margin-top: 10px;
  }

  .hero-carousel__dot {
    width: 8px;
    height: 8px;
  }

  .hero-carousel__dot[aria-current="true"] {
    width: 20px;
  }

  .search-panel {
    width: auto;
    margin: 0 16px;
    padding: 16px;
  }

  .hero--solo .search-panel {
    margin-top: 24px;
  }

  /* --- Top ventes : cartes un peu plus étroites --- */
  .top-ventes {
    padding: 24px 16px 8px;
  }

  .top-ventes__title {
    font-size: 19px;
  }

  .top-ventes__liste {
    grid-auto-columns: 200px;
    gap: 10px;
  }

  /* --- Entreprise --- */
  .about {
    padding: 24px 16px 0;
  }

  .about__photo {
    height: 180px;
  }

  .about__content {
    padding: 0 18px 24px;
  }

  .about__title {
    font-size: 22px;
  }

  .about__text {
    font-size: 14px;
  }

  .about__list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* --- Catalogue : une colonne (auto-fill), marges comme Top ventes --- */
  .catalog {
    padding: 24px 16px 32px;
  }

  .catalog__title {
    font-size: 19px;
  }

  .catalog__grid {
    gap: 10px;
  }

  /* Une seule colonne : plus de rangée à aligner, les cartes
     courtes n'ont pas besoin de garder 3 lignes ni la place du bouton */
  .cat-card__list {
    min-height: 0;
  }

  .cat-card__list:not(:has(li:nth-child(4))) + .cat-card__more {
    display: none;
  }

  /* --- Pop-up choix de version --- */
  .vtype-dialog__inner {
    padding: 16px;
  }
}


/* =========================================================================
   8d. PETIT MOBILE (<= 480px)
   ========================================================================= */

@media (max-width: 480px) {
  .search-panel__title {
    font-size: 17px;
  }

  /* Libellés longs (« Fahrzeugschein ») : césure sur deux lignes
     au lieu de pousser le dernier onglet hors de l'écran */
  .search-tab {
    height: auto;
    min-height: 34px;
    padding: 6px 4px;
    font-size: 11px;
    letter-spacing: 0.03em;
    line-height: 1.2;
    -webkit-hyphens: auto;   /* Safari iOS */
    hyphens: auto;
    overflow-wrap: anywhere;
  }

  .plate-flag,
  .cg-icon {
    width: 42px;
  }

  .plate-input {
    padding: 0 10px;
    letter-spacing: 0.06em;
  }

  .vehicle-banner__name {
    font-size: 1.05rem;
  }

  .vehicle-banner__spec {
    font-size: 0.85rem;
  }

  .about-pill__icon {
    width: 40px;
    height: 40px;
  }

  .cat-card {
    padding: 14px 16px 12px;
  }

  .cat-card__img {
    width: 44px;
    height: 44px;
  }

  .cat-card__name {
    font-size: 16px;
  }

  .vtype-dialog__title {
    font-size: 17px;
  }

  /* Bouton Annuler sur toute la largeur : plus facile à toucher */
  .vtype-dialog__cancel {
    align-self: stretch;
    padding: 10px 14px;
  }
}


/* =========================================================================
   9. THÈME CLAIR
   Actif quand <html data-theme="light"> (bouton de l'en-tête ou page « Mon compte »).
   Tokens et principe : voir la section THÈME CLAIR de layout.css.
   :where() garde la spécificité de la règle sombre d'origine : ces règles
   passent devant parce qu'elles sont en fin de fichier.
   ========================================================================= */

:where(:root[data-theme="light"]) .hero-wrap { background-color: #ececec; }
:where(:root[data-theme="light"]) .hero-carousel__btn { background-color: rgba(0, 0, 0, .5); }
:where(:root[data-theme="light"]) .hero-carousel__btn:hover { background-color: rgba(0, 0, 0, .75); }
:where(:root[data-theme="light"]) .hero-carousel__dot { background-color: var(--border-light); }
:where(:root[data-theme="light"]) .hero-carousel__dot:hover { background-color: var(--text-muted); }
:where(:root[data-theme="light"]) .hero-carousel__dot[aria-current="true"] { background-color: var(--accent); }
:where(:root[data-theme="light"]) .search-panel {
  background-color: #ffffff;
  border-color: #c4c4c4;
}
:where(:root[data-theme="light"]) .search-panel__title { color: #1e1e1e; }
:where(:root[data-theme="light"]) .search-panel__hint { color: #575757; }
:where(:root[data-theme="light"]) .search-panel__hint a { color: var(--accent-text); }
:where(:root[data-theme="light"]) .search-panel__ancien { color: #4a4a4a; }
:where(:root[data-theme="light"]) .search-panel__ancien-btn,
:where(:root[data-theme="light"]) .search-panel__ancien-btn:hover { color: var(--accent-text); }
:where(:root[data-theme="light"]) .search-tabs { background-color: #ececec; }
:where(:root[data-theme="light"]) .search-tab {
  background-color: transparent;
  color: #4a4a4a;
}
:where(:root[data-theme="light"]) .search-tab:hover { color: #262626; }
:where(:root[data-theme="light"]) .search-tab[aria-selected="true"] {
  background-color: #e0e0e0;
  color: #1e1e1e;
}
:where(:root[data-theme="light"]) .search-tab:focus-visible { outline-color: var(--accent-line); }
:where(:root[data-theme="light"]) .plate-input-wrapper,
:where(:root[data-theme="light"]) .cg-input-wrapper {
  border-color: #adadad;
  background-color: #ffffff;
}
:where(:root[data-theme="light"]) .plate-input-wrapper:focus-within,
:where(:root[data-theme="light"]) .cg-input-wrapper:focus-within { border-color: var(--accent-line); }
:where(:root[data-theme="light"]) .cg-icon {
  background-color: #ececec;
  color: #4a4a4a;
}
:where(:root[data-theme="light"]) .plate-input {
  background-color: #ffffff;
  color: #1e1e1e;
}
:where(:root[data-theme="light"]) .plate-input::placeholder { color: #6b6b6b; }
:where(:root[data-theme="light"]) .plate-btn {
  background-color: var(--accent);
  color: #111;
}
:where(:root[data-theme="light"]) .plate-btn:hover { background-color: #e6c400; }
:where(:root[data-theme="light"]) .vehicle-select {
  color: #1e1e1e;
  background-color: #ffffff;
  border-color: #bdbdbd;
}
:where(:root[data-theme="light"]) .vehicle-select:focus { border-color: var(--accent-line); }
:where(:root[data-theme="light"]) .vehicle-select option,
:where(:root[data-theme="light"]) .vehicle-select optgroup {
  background-color: #ffffff;
  color: #1e1e1e;
}
:where(:root[data-theme="light"]) .vehicle-select optgroup { color: #404040; }
:where(:root[data-theme="light"]) .vehicle-banner__inner {
  background-color: #ececec;
  border-color: #c4c4c4;
}
:where(:root[data-theme="light"]) .vehicle-banner__inner:hover { border-color: #bdbdbd; }
:where(:root[data-theme="light"]) .vehicle-banner__icon { color: var(--accent-text); }
:where(:root[data-theme="light"]) .vehicle-banner__name { color: #1e1e1e; }
:where(:root[data-theme="light"]) .vehicle-banner__spec { color: #4a4a4a; }
:where(:root[data-theme="light"]) .vehicle-banner__tecdoc { color: #336600; }
:where(:root[data-theme="light"]) .vehicle-banner__change {
  color: #575757;
  border-color: #c4c4c4;
  background-color: #ffffff;
}
:where(:root[data-theme="light"]) .vehicle-banner__change:hover {
  color: #1e1e1e;
  border-color: #adadad;
  background-color: #e9e9e9;
}
:where(:root[data-theme="light"]) .sidebar__vehicle-banner {
  background-color: #ffffff;
  border-color: #c4c4c4;
}
:where(:root[data-theme="light"]) .sidebar__vehicle-banner .vehicle-banner__icon {
  background-color: #ffffff;
  border-color: #bdbdbd;
}
:where(:root[data-theme="light"]) .about { background-color: #ffffff; }
:where(:root[data-theme="light"]) .about__inner {
  background-color: #ececec;
  border-color: #c4c4c4;
}
:where(:root[data-theme="light"]) .about__eyebrow { color: var(--accent-text); }
:where(:root[data-theme="light"]) .about__title { color: #1e1e1e; }
:where(:root[data-theme="light"]) .about__text { color: #404040; }
:where(:root[data-theme="light"]) .about-pill {
  background-color: #ffffff;
  border-color: #bdbdbd;
}
:where(:root[data-theme="light"]) .about-pill__icon {
  background-color: var(--accent);
  color: #111;
}
:where(:root[data-theme="light"]) .about-pill__text strong { color: #1e1e1e; }
:where(:root[data-theme="light"]) .about-pill__text span { color: #4a4a4a; }
:where(:root[data-theme="light"]) .about__link { color: var(--accent-text); }
:where(:root[data-theme="light"]) .catalog {
  background-color: #ffffff;
  color: #1e1e1e;
}
:where(:root[data-theme="light"]) .catalog__title { color: #111111; }
:where(:root[data-theme="light"]) .cat-card {
  background-color: #ececec;
  border-color: #c4c4c4;
}
:where(:root[data-theme="light"]) .cat-card:hover { border-color: #adadad; }
:where(:root[data-theme="light"]) .cat-card__img {
  background-color: #ffffff;
  border-color: #c4c4c4;
  color: var(--accent-text);
}
:where(:root[data-theme="light"]) .cat-card__head:has(a):hover .cat-card__img {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #111;
}
:where(:root[data-theme="light"]) .cat-card__name { color: #111111; }
:where(:root[data-theme="light"]) .cat-card__head:has(a):hover .cat-card__name { color: var(--accent-text); }
:where(:root[data-theme="light"]) .cat-card__list li a { color: #404040; }
:where(:root[data-theme="light"]) .cat-card__list li a:hover { color: #111111; }
:where(:root[data-theme="light"]) .cat-card__more { color: var(--accent-text); }
:where(:root[data-theme="light"]) .cat-card__name:focus-visible::after,
:where(:root[data-theme="light"]) .cat-card__list li a:focus-visible,
:where(:root[data-theme="light"]) .cat-card__more:focus-visible { outline-color: var(--accent-line); }

:where(:root[data-theme="light"]) .vehicle-banner__delete {
  border-color: #f1c4c4;
  background-color: #fdecec;
  color: #b71c1c;
}
:where(:root[data-theme="light"]) .vehicle-banner__delete:hover {
  border-color: #c62828;
  background-color: #fbdada;
  color: #9c1515;
}

/* Top ventes */
:where(:root[data-theme="light"]) .top-ventes { background-color: #ffffff; }
:where(:root[data-theme="light"]) .top-ventes__title { color: #111111; }
:where(:root[data-theme="light"]) .top-ventes__btn {
  border-color: #bdbdbd;
  background-color: #ffffff;
  color: #1e1e1e;
}
:where(:root[data-theme="light"]) .top-ventes__btn:hover:not(:disabled) {
  border-color: var(--accent-line);
  color: var(--accent-text);
}
:where(:root[data-theme="light"]) .top-ventes__btn:focus-visible,
:where(:root[data-theme="light"]) .top-card__lien:focus-visible,
:where(:root[data-theme="light"]) .top-card__ajout:focus-visible { outline-color: var(--accent-line); }
:where(:root[data-theme="light"]) .top-ventes__liste { scrollbar-color: #cfcfcf transparent; }
:where(:root[data-theme="light"]) .top-card {
  background-color: #ececec;
  border-color: #c4c4c4;
}
:where(:root[data-theme="light"]) .top-card:hover { border-color: #adadad; }
:where(:root[data-theme="light"]) .top-card__img {
  background-color: #dfdfdf;
  border-bottom-color: #c4c4c4;
}
:where(:root[data-theme="light"]) .top-card__placeholder { color: #b5b5b5; }
:where(:root[data-theme="light"]) .top-card__marque { color: #575757; }
:where(:root[data-theme="light"]) .top-card__ref { color: var(--accent-text); }
:where(:root[data-theme="light"]) .top-card__lib { color: #404040; }
:where(:root[data-theme="light"]) .top-card__stock--ok { color: #17692b; }
:where(:root[data-theme="light"]) .top-card__stock--autre { color: #9a4507; }
:where(:root[data-theme="light"]) .top-card__stock--non { color: #b71c1c; }
:where(:root[data-theme="light"]) .top-card__pied { border-top-color: #c4c4c4; }
:where(:root[data-theme="light"]) .top-card__prix { color: #1e1e1e; }
:where(:root[data-theme="light"]) .top-card__ajout {
  background-color: var(--accent);
  color: #111;
}
:where(:root[data-theme="light"]) .top-card__ajout:hover:not(:disabled) { background-color: #e6c400; }

/* Pop-up choix de version */
:where(:root[data-theme="light"]) .vtype-dialog {
  background-color: #ffffff;
  border-color: #c4c4c4;
  color: #1e1e1e;
}
:where(:root[data-theme="light"]) .vtype-dialog::backdrop { background-color: rgba(0, 0, 0, .4); }
:where(:root[data-theme="light"]) .vtype-dialog__title { color: #1e1e1e; }
:where(:root[data-theme="light"]) .vtype-dialog__text { color: #404040; }
:where(:root[data-theme="light"]) .vtype-dialog__text strong { color: #1e1e1e; }
:where(:root[data-theme="light"]) .vtype-option {
  background-color: #ececec;
  border-color: #bdbdbd;
  color: #1e1e1e;
}
:where(:root[data-theme="light"]) .vtype-option:hover,
:where(:root[data-theme="light"]) .vtype-option:focus-visible {
  background-color: #e0e0e0;
  border-color: var(--accent-line);
}
:where(:root[data-theme="light"]) .vtype-option__key { color: #575757; }
:where(:root[data-theme="light"]) .vtype-option__val { color: #1e1e1e; }
:where(:root[data-theme="light"]) .vtype-option__tecdoc .vtype-option__key,
:where(:root[data-theme="light"]) .vtype-option__tecdoc .vtype-option__val { color: #336600; }
:where(:root[data-theme="light"]) .vtype-dialog__cancel {
  color: #575757;
  border-color: #c4c4c4;
  background-color: #ffffff;
}
:where(:root[data-theme="light"]) .vtype-dialog__cancel:hover {
  color: #1e1e1e;
  border-color: #adadad;
  background-color: #e9e9e9;
}
:where(:root[data-theme="light"]) .vtype-dialog__cancel:focus-visible { outline-color: var(--accent-line); }

/* Dégradé qui fond la photo dans le bloc (même teinte que .about__inner) */
:where(:root[data-theme="light"]) .about__photo::before {
  background: linear-gradient(90deg, #ececec 0%, rgba(236, 236, 236, .55) 30%, rgba(236, 236, 236, 0) 70%);
}

@media (max-width: 900px) {
  :where(:root[data-theme="light"]) .about__photo::before {
    background: linear-gradient(0deg, #ececec 0%, rgba(236, 236, 236, 0) 60%);
  }
}