/* INJECTEUR MARKET - Styles globaux du thème (header, menu, etc.) */

:root {
  --alsace-black: #050505;
  --alsace-dark: #071012;
  --alsace-green: #35c935;
  --alsace-green-dark: #21b621;
  --alsace-white: #ffffff;
  --alsace-light: #f5f7f7;
  --alsace-text: #142a33;

  /* Typographie : Archivo pour les titres, Hanken Grotesk pour le corps */
  --at-font-display: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --at-font-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-body-font-family: var(--at-font-body);
}

/* Système de polices */

body,
#wrapper {
  font-family: var(--at-font-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--at-font-display);
}

input,
select,
textarea,
button {
  font-family: var(--at-font-body);
}

/* Fond général */

body,
#wrapper {
  background: var(--alsace-light);
}

/* ===================================================================
   HEADER - INJECTEUR MARKET (deux rangées)
   Rangée 1 : logo texte | grande recherche | actions (aide, compte, panier, langue/devise)
   Rangée 2 : menu principal
   =================================================================== */

#header {
  background: var(--alsace-black);
  color: var(--alsace-white);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

/* Header défilant sur TOUTES les pages : on annule le position:sticky du thème
   parent (déclaré dans son @layer ps-base). Cette règle n'étant pas dans un
   @layer, elle l'emporte sur la couche parente sans !important. Le header
   défile alors normalement avec la page, en même temps que la barre véhicule.
   Le thème parent posait un position:sticky en flux (il ne réserve aucun
   padding compensatoire), donc ce passage en static ne laisse aucun espace
   vide en haut de page. Le JS parent ne fait que lire la hauteur du header
   pour le scroll-padding des ancres : aucun saut visuel à neutraliser. */
#header,
.header,
.js-sticky-header {
  position: static;
}

#header a,
#header span,
#header .material-icons {
  color: var(--alsace-white);
}

#header a:hover {
  color: var(--alsace-green);
}

/* ---------- Bandeau promo du haut ---------- */

.at-topbar {
  background: var(--alsace-green);
  text-align: center;
  padding: 7px 16px;
}

.at-topbar__text {
  display: inline-block;
  color: var(--alsace-black);
  font-family: var(--at-font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Rangée 1 ---------- */

.at-header-main {
  background: var(--alsace-black);
}

.at-header-main__container {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 28px;
  /* Mêmes largeur max et marges latérales que le hero -> bords gauche/droite alignés */
  max-width: 1460px;
  margin: 0 auto;
  padding: 14px 28px;
}

/* ---------- Logo (texte) ---------- */

.at-header-logo {
  order: 1;
  flex: 0 0 auto;
}

.at-logo-h1 {
  margin: 0;
  line-height: 1;
}

.at-logo {
  display: flex;
  align-items: center;
  width: clamp(270px, calc(11.4vw + 158px), 330px);
  transition: none;
  text-decoration: none;
}
.at-logo__image { display:block; width:100%; height:auto; }
@media (min-width:768px) and (max-width:1023px) {
  .at-logo { width:clamp(205px, 22vw, 250px); }
}
@media (max-width:767px) {
  .at-logo { width:min(210px, calc(100vw - 154px)); }
}

/* ---------- Recherche (grande barre) ---------- */

.at-header-search {
  order: 2;
  flex: 1 1 auto;
  max-width: 850px;
  min-width: 0;
}

.at-header-search .at-search,
.at-header-search .search-widgets {
  width: 100%;
  margin: 0;
}

.at-search__form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 50px;
  padding-right: 6px;
  background: var(--alsace-white);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.at-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 0 18px;
  background: transparent;
  color: #111111;
  font-family: var(--at-font-body);
  font-size: 15px;
  font-weight: 500;
}

.at-search__input::placeholder {
  color: #586266;
  opacity: 1;
}

.at-search .clear {
  display: none;
  align-self: center;
  padding: 0 6px;
  color: #586266;
  cursor: pointer;
}

.at-search__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: var(--alsace-green);
  color: var(--alsace-black);
  cursor: pointer;
  transition: background 0.18s ease;
}

.at-search__btn .material-icons {
  color: var(--alsace-black);
  font-size: 26px;
}

.at-search__btn:hover {
  background: var(--alsace-green-dark);
}

/* ---------- Groupe d'actions ---------- */

.at-header-actions {
  order: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: 0 0 auto;
  gap: 8px;
  white-space: nowrap;
}

.at-actions-top {
  align-items: center;
  gap: 22px;
}

/* Aide / téléphone */

.at-help {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  white-space: nowrap;
}

.at-help__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(53, 201, 53, 0.14);
  border: 1px solid rgba(53, 201, 53, 0.40);
}

.at-help__icon .material-icons {
  color: var(--alsace-green);
  font-size: 22px;
}

.at-help__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.at-help__label {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--at-font-body);
  font-size: 12px;
  font-weight: 600;
}

.at-help__phone {
  color: var(--alsace-white);
  font-family: var(--at-font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.at-help:hover .at-help__phone {
  color: var(--alsace-green);
}

/* Compte / panier / langue-devise */

.at-header-account,
.at-header-cart,
.at-header-locale {
  display: flex;
  align-items: center;
  gap: 14px;
}

.at-header-actions .user-info a,
.at-header-actions .user-info span,
.at-header-actions .blockcart a,
.at-header-actions .blockcart span {
  color: var(--alsace-white);
}

.at-header-actions .blockcart {
  background: transparent;
}

.at-header-actions .user-info:hover a,
.at-header-actions .blockcart:hover a {
  color: var(--alsace-green);
}

.at-header-locale {
  gap: 6px;
  font-family: var(--at-font-body);
  font-size: 14px;
}

/* Liens compte + panier (icône + libellé) */

.at-header-account .login,
.at-header-account .account,
.at-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-family: var(--at-font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--alsace-white);
}

.at-header-account .login::before,
.at-header-account .account::before {
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  content: "\e853";
  font-size: 22px;
  line-height: 1;
}

.at-cart-icon {
  font-size: 22px;
}

/* Pastille panier : ronde, verte, nombre en blanc. Affichée seulement si compteur > 0. */

.at-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--alsace-green);
  color: var(--alsace-white);
  font-family: var(--at-font-body);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

/* Bouton téléphone (icône), mobile uniquement */

.at-help-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--alsace-green);
}

.at-help-mobile .material-icons {
  color: var(--alsace-green);
  font-size: 24px;
}

/* ---------- Rangée 2 : menu principal ---------- */

.at-header-nav {
  background: var(--alsace-black);
}

.at-header-nav__container {
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 28px;
}

#header .top-menu a {
  color: var(--alsace-white);
  font-family: var(--at-font-body);
  font-weight: 700;
  transition: 0.2s ease;
}

#header .top-menu a[data-depth="0"] {
  text-transform: none;
  letter-spacing: 0.01em;
}

#header .top-menu a[data-depth="0"]:hover,
#header .top-menu .current a,
#header .top-menu a.active {
  color: var(--alsace-green);
}

/* Menus déroulants */

#header .top-menu .sub-menu {
  background: var(--alsace-white);
  border: 1px solid #e5e8e8;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

#header .top-menu .sub-menu a {
  color: #111111;
}

#header .top-menu .sub-menu a:hover {
  color: var(--alsace-green);
}

/* ---------- Menu mobile (off-canvas #mobileMenu) ---------- */
/* L'off-canvas ps_mainmenu est rendu DANS #header : sans fond dédié il hérite
   du fond blanc par défaut de Bootstrap (--bs-offcanvas-bg) et ses liens,
   blancs à cause de "#header a", devenaient invisibles (blanc sur blanc =
   page « toute blanche »). On lui donne le fond noir de la marque pour garder
   les liens blancs lisibles, cohérent avec le header (noir + vert). */

#mobileMenu {
  background: var(--alsace-black);
  color: var(--alsace-white);
}

/* Liens du menu : blancs lisibles, accent vert au survol / actif */
#header #mobileMenu a,
#header #mobileMenu .menu__link,
#header #mobileMenu span,
#header #mobileMenu .material-icons {
  color: var(--alsace-white);
}

#header #mobileMenu a:hover,
#header #mobileMenu .menu__link:hover,
#header #mobileMenu .current > .menu__link,
#header #mobileMenu li.current > a {
  color: var(--alsace-green);
}

/* Titre de sous-niveau atténué */
#mobileMenu .menu__title {
  color: rgba(255, 255, 255, 0.6);
}

/* Bouton de fermeture (×) et flèche « retour » forcés en blanc :
   sans ça l'icône SVG sombre de Bootstrap disparaît sur le fond noir. */
#mobileMenu .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.85;
}

#mobileMenu .btn-close:hover {
  opacity: 1;
}

/* ---------- Responsive ---------- */

@media (max-width: 767px) {
  .at-header-main__container {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;          /* sur mobile, mêmes marges latérales que le hero (16px) */
  }

  .at-header-nav__container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Logo + actions sur la 1re ligne, recherche pleine largeur en dessous */
  .at-header-search {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
  }

  .at-header-actions {
    flex-direction: row;
    align-items: center;
    order: 2;
    gap: 14px;
    margin-left: auto;
  }

  /* Sur petit écran, on réduit le bloc d'aide à sa seule icône */
  .at-help__text {
    display: none;
  }

  .at-search__form {
    height: 48px;
  }

  .at-search__btn {
    width: 52px;
  }

  .at-topbar {
    padding: 6px 12px;
  }

  .at-topbar__text {
    font-size: 10px;
    letter-spacing: 0.06em;
  }
}

/* ===================================================================
   BOUTONS & ICÔNES - Charte INJECTEUR MARKET
   Le bleu Bootstrap/Hummingbird devient vert (#35c935).
   - Principaux : fond vert + texte noir
   - Secondaires (outline) : fond blanc + bordure verte + texte vert
   - Hover / focus : variante vert foncé (#21b621)
   - Les boutons noirs (hero) et rouges (danger) ne sont pas ciblés.
   =================================================================== */

/* Bascule du jeton "primary" Bootstrap : tout ce qui dérive du bleu
   (.text-primary, .bg-primary, .border-primary, icônes) passe au vert. */
#wrapper {
  --bs-primary: #35c935;
  --bs-primary-rgb: 53, 201, 53;

  /* Jeton "lien" de Bootstrap : alimente les boutons de type lien
     (.btn-basic, .btn-link), les onglets et la pagination, qui héritaient
     tous du bleu #0b69f6. NB : les liens ordinaires <a> utilisent, eux,
     --bs-link-color-rgb et sont traités plus bas dans la section
     « LIENS DE CONTENU ». */
  --bs-link-color: #1f2a37;
  --bs-link-hover-color: #21b621;

}

/* Accordéons ouverts : le libellé héritait du jeton "primary" (devenu vert)
   et passait en vert sur blanc — échec de contraste, sur la fiche produit
   comme dans le récapitulatif du tunnel. La variable --bs-accordion-active-color
   est redéfinie par le thème parent sur .accordion lui-même (plus spécifique
   que #wrapper) : on cible donc directement le bouton. */
#wrapper .accordion-button:not(.collapsed) {
  color: #111111;
}

/* ---------- Boutons principaux : fond vert, texte noir ---------- */
#wrapper .btn-primary {
  --bs-btn-color: #050505;
  --bs-btn-bg: #35c935;
  --bs-btn-border-color: #35c935;
  --bs-btn-hover-color: #050505;
  --bs-btn-hover-bg: #21b621;
  --bs-btn-hover-border-color: #21b621;
  --bs-btn-active-color: #050505;
  --bs-btn-active-bg: #21b621;
  --bs-btn-active-border-color: #21b621;
  --bs-btn-disabled-color: #050505;
  --bs-btn-disabled-bg: #35c935;
  --bs-btn-disabled-border-color: #35c935;
  --bs-btn-focus-shadow-rgb: 53, 201, 53;
  background-color: #35c935;
  border-color: #35c935;
  color: #050505;
}
#wrapper .btn-primary:hover,
#wrapper .btn-primary:focus,
#wrapper .btn-primary:focus-visible,
#wrapper .btn-primary:active,
#wrapper .btn-primary.active,
#wrapper .btn-primary.show,
#wrapper .btn-primary:first-child:active {
  background-color: #21b621;
  border-color: #21b621;
  color: #050505;
}
#wrapper .btn-primary:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(53, 201, 53, 0.4);
}

/* ---------- Boutons secondaires : fond blanc, bordure verte, TEXTE ENCRE ----------
   Le libellé était en vert #35c935 sur blanc (~1,9:1) : échec WCAG AA et
   violation de « The Signal Rule » de DESIGN.md (le vert est la couleur
   d'action, jamais une encre). On garde la bordure verte comme signal
   d'interactivité, mais le texte passe en Ink #111111.
   Survol / actif inchangés : fond vert + texte noir. */
#wrapper .btn-secondary,
#wrapper .btn-outline-primary {
  --bs-btn-color: #111111;
  --bs-btn-bg: #ffffff;
  --bs-btn-border-color: #35c935;
  --bs-btn-hover-color: #050505;
  --bs-btn-hover-bg: #35c935;
  --bs-btn-hover-border-color: #35c935;
  --bs-btn-active-color: #050505;
  --bs-btn-active-bg: #21b621;
  --bs-btn-active-border-color: #21b621;
  --bs-btn-disabled-color: #586266;
  --bs-btn-disabled-bg: #ffffff;
  --bs-btn-disabled-border-color: #e6e9ee;
  --bs-btn-focus-shadow-rgb: 53, 201, 53;
  background-color: #ffffff;
  border-color: #35c935;
  color: #111111;
}
#wrapper .btn-secondary:hover,
#wrapper .btn-secondary:focus-visible,
#wrapper .btn-secondary:active,
#wrapper .btn-outline-primary:hover,
#wrapper .btn-outline-primary:focus-visible,
#wrapper .btn-outline-primary:active {
  background-color: #21b621;
  border-color: #21b621;
  color: #050505;
}
#wrapper .btn-secondary:focus-visible,
#wrapper .btn-outline-primary:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(53, 201, 53, 0.4);
}

/* ---------- Icônes ---------- */
/* Icône à l'intérieur d'un bouton vert (principal) -> noire */
#wrapper .btn-primary .material-icons,
#wrapper .btn-primary i {
  color: #050505;
}
/* Icônes bleues seules ou en contour -> vert */
#wrapper .text-primary,
#wrapper .text-primary .material-icons,
#wrapper a.text-primary .material-icons,
#wrapper .btn-outline-primary .material-icons,
#wrapper .btn-secondary .material-icons,
#wrapper .btn-link .material-icons {
  color: #35c935;
}
/* Bouton secondaire au survol (fond vert) -> icône noire */
#wrapper .btn-secondary:hover .material-icons,
#wrapper .btn-outline-primary:hover .material-icons {
  color: #050505;
}

/* ===================================================================
   FIL D'ARIANE - Charte INJECTEUR MARKET
   Liens Ink Slate ; hover/focus vert ; page courante noire ; séparateurs gris.
   (Auparavant un vert-canard absent de DESIGN.md -> dérive de palette.)
   =================================================================== */
.breadcrumb {
  --bs-breadcrumb-divider-color: #8A8A8A;
}
.breadcrumb .breadcrumb-link,
.breadcrumb .breadcrumb-link span {
  color: #1f2a37;
}
.breadcrumb .breadcrumb-link:hover,
.breadcrumb .breadcrumb-link:hover span,
.breadcrumb .breadcrumb-link:focus,
.breadcrumb .breadcrumb-link:focus span {
  color: #35c935;
}
.breadcrumb .breadcrumb-item > span {
  color: #050505;
}

/* ===================================================================
   ICÔNES DE RÉASSURANCE (blockreassurance : panier, produit, pied de page)
   Paiement sécurisé / Livraison rapide / Retour et garantie.
   Le module inline ses SVG et applique une couleur (PSR_ICON_COLOR, bleue)
   en JS sur le fill des <path>. On force les tokens DESIGN.md : trait en
   Ink Slate sur pastille Signal Green Tint (auparavant un vert-canard
   absent de la charte). !important pour battre le style inline posé par le
   JS. N'affecte pas la consigne (hors .blockreassurance).
   =================================================================== */
.blockreassurance svg path,
.blockreassurance svg circle,
.blockreassurance svg ellipse,
.blockreassurance svg rect,
.blockreassurance svg polygon {
  fill: #1f2a37 !important;
}
.blockreassurance svg [stroke]:not([stroke="none"]),
.blockreassurance svg line,
.blockreassurance svg polyline {
  stroke: #1f2a37 !important;
}

/* Pastille verte claire derrière l'icône (token Signal Green Tint + filet vert),
   alignée sur le traitement des blocs de confiance de la fiche produit. */
.blockreassurance .reassurance__image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eef7ee;
  border: 1px solid rgba(53, 201, 53, 0.22);
}
.blockreassurance .reassurance__image img,
.blockreassurance .reassurance__image svg {
  width: 26px;
  height: 26px;
}

/* ===================================================================
   LIENS DE CONTENU - Charte INJECTEUR MARKET
   Fin du bleu Bootstrap (#0b69f6) dans le contenu : « Retirer » du panier,
   « Mot de passe oublié ? », coordonnées de la page contact, « support
   client », liens des cartes produit non stylées, etc.

   PORTÉE : #wrapper uniquement. Le header (#header), la barre véhicule
   (.at-searchbar) et le pied de page (#footer) sont HORS de #wrapper dans
   ce thème : ils gardent donc leurs styles propres, intacts.
   Le hero (.at-hero) est, lui, DANS #wrapper : il est explicitement exclu,
   ainsi que tout ce qui est déjà stylé (boutons, menu, fil d'Ariane,
   cartes produit, onglets, pagination...).
   =================================================================== */
/* Composants dont les liens sont DÉJÀ stylés par le CSS de leur module ou du
   thème enfant : la règle globale ne doit jamais les repeindre.

   Cette liste est le point unique de maintenance. Sans elle, la règle
   « #wrapper li a » (spécificité 1,0,2) l'emporte sur un « .at-products-title a »
   (0,1,1) et casse le composant — c'est ce qui a rendu les pilules
   « Voir tous les injecteurs / turbos / pompes » sombres et soulignées, et
   ce qui soulignait les liens du fil d'Ariane sur toutes les pages.
   Toute nouvelle brique alsace* qui style ses propres liens doit y être ajoutée. */
#wrapper :is(
  a:not([class]),
  p a,
  li a,
  td a,
  .rich-text a,
  .cms-content a
):not(:is(
  .at-hero,
  .at-hero-overlay,
  .at-searchbar,
  .breadcrumb,
  .pagination,
  .nav-tabs,
  .account-menu,
  .ps-sharebuttons,
  .at-products-title,
  .at-product-card,
  .at-category-card,
  .at-category-grid,
  .im-howto,
  .im-args,
  .im-steps,
  .im-seo-long,
  .at-brandstrip,
  .acf-category-finder,
  .acf-seo,
  .at-mini,
  .at-trust
) *) {
  color: #1f2a37;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#wrapper :is(
  a:not([class]),
  p a,
  li a,
  td a,
  .rich-text a,
  .cms-content a
):not(:is(
  .at-hero,
  .at-hero-overlay,
  .at-searchbar,
  .breadcrumb,
  .pagination,
  .nav-tabs,
  .account-menu,
  .ps-sharebuttons,
  .at-products-title,
  .at-product-card,
  .at-category-card,
  .at-category-grid,
  .im-howto,
  .im-args,
  .im-steps,
  .im-seo-long,
  .at-brandstrip,
  .acf-category-finder,
  .acf-seo,
  .at-mini,
  .at-trust
) *):hover {
  color: #21b621;
}

/* Filet de sécurité : aucun soulignement sur les liens qui font office de
   bouton ou d'élément de navigation, quelle que soit leur position. */
#wrapper :is(.btn, .at-mini__title, .breadcrumb a, .page-link, .nav-link, .dropdown-item),
#wrapper :is(.btn, .at-mini__title, .breadcrumb a, .page-link, .nav-link, .dropdown-item):hover {
  text-decoration: none;
}

/* -------------------------------------------------------------------
   CONTRÔLES DE FORMULAIRE : cases et boutons radio en vert de marque
   (ils étaient au bleu natif du navigateur, y compris la case CGV et le
   choix du moyen de paiement — les deux contrôles qui déclenchent l'achat).
   ------------------------------------------------------------------- */
#wrapper input[type="checkbox"],
#wrapper input[type="radio"] {
  accent-color: #35c935;
}

/* ===================================================================
   FOCUS CLAVIER + CHAMPS DE FORMULAIRE - Charte INJECTEUR MARKET
   Anneau de focus canonique de DESIGN.md (§5 « Inputs / Fields ») :
   bordure verte + halo rgba(53,201,53,.15). Le thème parent ne posait
   aucun anneau visible (box-shadow: none) : navigation clavier illisible.
   Exclusions : hero et barre véhicule (traités hors de ce lot), et le
   champ de recherche du header qui vit hors de #wrapper.
   =================================================================== */
/* Le hero et la barre véhicule sont exclus par :not(.at-hero *) : ils ont
   déjà leur propre traitement (champ plaque, sélecteurs de véhicule) et ne
   font pas partie de ce lot. On les écarte de la règle plutôt que de tenter
   de la « rétablir » ensuite : le mot-clé revert retomberait sur le style du
   navigateur, pas sur le style d'origine du composant. */
#wrapper :is(
  .form-control,
  .form-select,
  select,
  textarea,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="search"],
  input[type="number"]
):not(.at-hero *):not(.at-hero-overlay *):not(.at-vehicle-form *):not(.at-plate-field *):not(.at-searchbar *) {
  border-radius: 12px;
}

#wrapper :is(
  .form-control,
  .form-select,
  select,
  textarea,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="search"],
  input[type="number"]
):not(.at-hero *):not(.at-hero-overlay *):not(.at-vehicle-form *):not(.at-plate-field *):not(.at-searchbar *):focus {
  border-color: #35c935;
  box-shadow: 0 0 0 3px rgba(53, 201, 53, 0.15);
  outline: none;
}

/* Anneau visible au clavier sur tout élément actionnable du contenu. */
#wrapper :is(a, button, .btn, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid #35c935;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(53, 201, 53, 0.15);
}

/* ===================================================================
   ENCARTS D'ALERTE - Charte INJECTEUR MARKET
   Bootstrap servait un bleu ciel (alert-info : « Vous n'avez pas encore
   passé de commande ») et un vert pâle générique (alert-success : bandeau
   « Votre commande est confirmée »), tous deux hors palette.
   On rejoue les variables Bootstrap plutôt que les couleurs en dur :
   les liens internes de l'encart restent gérés par le composant.
   =================================================================== */
#wrapper .alert-info {
  --bs-alert-color: #1f2a37;
  --bs-alert-bg: #f8fafa;
  --bs-alert-border-color: #e6e9ee;
  --bs-alert-link-color: #1f2a37;
}
#wrapper .alert-success {
  --bs-alert-color: #111111;
  --bs-alert-bg: #eef7ee;
  --bs-alert-border-color: rgba(53, 201, 53, 0.35);
  --bs-alert-link-color: #111111;
}

/* ===================================================================
   « DÉCONNEXION » - Charte INJECTEUR MARKET
   Le lien était en rouge (.text-danger-on-dark, #ff4657) dans le menu du
   compte et dans le pied de page. Or DESIGN.md réserve le rouge (#a12626)
   aux erreurs et états invalides : « jamais décoratif ». On repasse en
   encre atténuée, avec l'accent vert au survol comme les autres liens.
   Le header n'est pas concerné : « #header a » l'emporte et le garde blanc.
   =================================================================== */
#wrapper a.logout,
#wrapper a.logout span,
#wrapper .account-menu__link--signout,
#wrapper .account-menu__link--signout span {
  color: #586266;
}
#wrapper a.logout:hover,
#wrapper a.logout:hover span,
#wrapper .account-menu__link--signout:hover,
#wrapper .account-menu__link--signout:hover span {
  color: #21b621;
}

/* Carte « Ajouter une nouvelle adresse » : libellé en encre, pas en bleu. */
#wrapper .address-card--add-address {
  color: #1f2a37;
}
#wrapper .address-card--add-address:hover {
  color: #21b621;
}
#footer a.logout,
#footer a.logout span {
  color: rgba(255, 255, 255, 0.72);
}
#footer a.logout:hover,
#footer a.logout:hover span {
  color: #35c935;
}


