/* Feuille commune des sites AMC Moto et DSF Moto — mobile d'abord.
   Les couleurs propres à chaque site viennent de /assets/site.css (variables --accent*). */

:root {
  --accent: #555;            /* couleur pure de la marque : aplats, filets, fonds sombres */
  --accent-texte: #333;      /* teinte foncée dérivée : texte et liens sur fond clair (AA) */
  --accent-bouton: #333;     /* fond des boutons, texte blanc (AA) */
  --accent-bouton-survol: #222;
  --accent-pale: #eee;       /* fond très clair teinté */
  --sombre: #151515;
  --sombre-2: #202020;
  --encre: #16181b;
  --encre-2: #4b5059;
  --fond: #ffffff;
  --fond-teinte: #f4f5f7;
  --bord: #dfe2e6;
  --succes: #1c6b2e;
  --erreur: #b3261e;
  --rayon: 12px;
  --ombre: 0 1px 2px rgb(0 0 0 / 6%), 0 4px 16px rgb(0 0 0 / 6%);
  --largeur: 1240px;
  color-scheme: light;
}

/* Couleurs de MARQUE des deux sites — source UNIQUE, ici, dans le fichier partagé par les deux
   sites. site.css (chaque site) s'y raccorde pour SA propre couleur (--accent…) ; la publicité
   de la concession voisine (P2, plus bas) s'y raccorde pour la couleur de l'AUTRE site. Sans
   cette unique source, la bannière voisine et le site.css du voisin auraient chacun leur copie
   des mêmes hex, et un changement de charte sur l'un finirait par ne plus correspondre à l'autre.
   Valeurs reprises telles quelles de sites/amc/public/assets/site.css et sites/dsf/…/site.css. */
:root {
  --marque-amc-accent: #007CFF;         /* couleur pure : aplats, filets, fond sombre */
  --marque-amc-texte: #005BBB;          /* texte/liens sur fond clair (AA) */
  --marque-amc-bouton: #005BBB;         /* fond de bouton, texte blanc (AA ≥ 4,5:1, ~6,9:1 mesuré) */
  --marque-amc-bouton-survol: #004A99;
  --marque-amc-pale: #E8F2FF;

  --marque-dsf-accent: #1DB000;
  --marque-dsf-texte: #117000;
  --marque-dsf-bouton: #117000;         /* AA ≥ 4,5:1, ~6,3:1 mesuré (texte blanc) */
  --marque-dsf-bouton-survol: #0B5500;
  --marque-dsf-pale: #E9F7E4;
}

*, *::before, *::after { box-sizing: border-box; }
/* Le doigt ne doit jamais faire glisser la page de côté : un élément qui dépasse (souvent un
   texte pour lecteurs d'écran, en « position: absolute », dont le bloc conteneur est en dehors
   du carrousel qui aurait dû le rogner) ouvrait une bande blanche à droite sur iPhone.
   « clip » et non « hidden » : « hidden » ferait de <html> un conteneur de défilement et
   casserait les éléments collants (position: sticky) des filtres et du plan du site. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--encre);
  background: var(--fond);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; outline: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent-texte); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-texte); outline-offset: 2px; border-radius: 4px; }
.entete :focus-visible, .bandeau-infos :focus-visible, .pied :focus-visible, .hero :focus-visible { outline-color: #fff; }
code { font-size: .9em; background: var(--fond-teinte); padding: .1em .35em; border-radius: 4px; }
del { color: var(--encre-2); font-weight: 400; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--bord); vertical-align: top; }
thead th { background: var(--fond-teinte); font-size: .9rem; }

.visuellement-cache, .pdm {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.conteneur { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 768px) { .conteneur { padding-inline: 1.5rem; } }

/* Lien d'évitement */
.evitement {
  position: absolute; left: .5rem; top: -4rem; z-index: 100;
  background: #fff; color: var(--encre); padding: .75rem 1rem; border-radius: 8px; font-weight: 700;
}
.evitement:focus { top: .5rem; }

/* ---------- Bandeau d'infos + en-tête ---------- */
.bandeau-infos { background: #0b0b0b; color: #d6d8db; font-size: .85rem; }
.bandeau-infos__in { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; justify-content: space-between; padding-block: .4rem; }
.bandeau-infos a { color: #fff; text-decoration: none; white-space: nowrap; }
.bandeau-infos a:hover { text-decoration: underline; }
.bandeau-infos__tels { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.bandeau-infos__service { color: #b9bcc1; }
.bandeau-infos__adresse { display: none; }
@media (min-width: 640px) { .bandeau-infos__adresse { display: inline; } }

.entete { background: var(--sombre); color: #fff; border-bottom: 3px solid var(--accent); position: sticky; top: 0; z-index: 50; }
.entete__in { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; min-height: 64px; padding-block: .5rem; }
.entete__logo { display: flex; flex-direction: column; gap: .15rem; color: #fff; text-decoration: none; margin-right: auto; }
/* Logo SVG (02/10/2026) : calé sur la HAUTEUR pour que les deux sites jumeaux aient le même en-tête */
.entete__logo img { width: 190px; height: auto; max-width: 100%; align-self: flex-start; } /* logo officiel 211×39 : jamais déformé */
.entete__nom { font-size: 1.4rem; font-weight: 800; }
.entete__marque { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 700; }
.entete__menu {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem .9rem;
  background: transparent; color: #fff; border: 1px solid #4a4d52; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer;
}
.entete__burger, .entete__burger::before, .entete__burger::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; border-radius: 2px; }
.entete__burger::before, .entete__burger::after { content: ""; position: absolute; left: 0; }
.entete__burger::before { top: -6px; } .entete__burger::after { top: 6px; }
.entete__menu[aria-expanded="true"] .entete__burger { background: transparent; }
.entete__menu[aria-expanded="true"] .entete__burger::before { top: 0; transform: rotate(45deg); }
.entete__menu[aria-expanded="true"] .entete__burger::after { top: 0; transform: rotate(-45deg); }

.nav { width: 100%; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem .25rem; }
.nav a:not(.bouton) {
  display: block; color: #e9eaec; text-decoration: none; font-weight: 600; padding: .6rem .7rem; border-radius: 8px;
}
.nav a:not(.bouton):hover { background: var(--sombre-2); color: #fff; }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--accent); border-radius: 8px 8px 0 0; }
.nav__appel { display: none; }
/* Menu « Nos annonces » : <details> natif (cliquable sans JS) ; le JS ajoute survol, Échap, clic extérieur. */
.nav__groupe { position: relative; }
.nav__menu > summary {
  display: block; list-style: none; cursor: pointer; color: #e9eaec; font-weight: 600; padding: .6rem .7rem; border-radius: 8px;
}
.nav__menu > summary::-webkit-details-marker { display: none; }
.nav__menu > summary::after {
  content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .45em; vertical-align: .12em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s;
}
.nav__menu[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.nav__menu > summary:hover, .nav__menu[open] > summary { background: var(--sombre-2); color: #fff; }
.nav__menu > summary.est-courant { color: #fff; box-shadow: inset 0 -3px 0 var(--accent); border-radius: 8px 8px 0 0; }
.nav .nav__sous { display: block; }
.nav .nav__sous a:not(.bouton) { border-radius: 8px; white-space: nowrap; }
.nav__menu summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Avec JavaScript, sous 1100 px : menu repliable */
@media (max-width: 1099.98px) {
  .js .entete__menu[hidden] { display: inline-flex; }
  .js .nav { display: none; padding-bottom: .75rem; }
  .js .nav.nav--ouverte { display: block; }
  .js .nav ul { flex-direction: column; gap: 0; }
  .js .nav a:not(.bouton) { padding: .8rem .5rem; border-bottom: 1px solid #2a2c30; border-radius: 0; }
  .js .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--accent); padding-left: .9rem; }
  .js .nav__menu > summary { padding: .8rem .5rem; border-bottom: 1px solid #2a2c30; border-radius: 0; }
  .js .nav__menu > summary.est-courant { box-shadow: inset 4px 0 0 var(--accent); padding-left: .9rem; border-radius: 0; }
  .js .nav .nav__sous a:not(.bouton) { padding-left: 1.5rem; background: var(--sombre-2); }
  .js .nav__appel { display: flex; margin-top: .75rem; }
}
@media (min-width: 1100px) {
  .entete__menu { display: none !important; }
  .nav { width: auto; display: flex; align-items: center; gap: .5rem; }
  .nav ul { flex-wrap: nowrap; gap: 0; }
  .nav a:not(.bouton), .nav__menu > summary { padding: .55rem .55rem; font-size: .95rem; }
  .nav__menu > summary { padding: .55rem .55rem; }
  .nav__sous {
    position: absolute; top: 100%; left: 0; min-width: 11rem; padding: .35rem; z-index: 60;
    background: var(--sombre); border: 1px solid #2a2c30; border-top: 3px solid var(--accent); border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 24px rgb(0 0 0 / 35%);
  }
  .nav .nav__sous a:not(.bouton) { padding: .6rem .8rem; }
}
@media (min-width: 1280px) { .nav__appel { display: inline-flex; font-size: .9rem; white-space: nowrap; } }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; text-align: center;
  min-height: 44px; padding: .6rem 1.1rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.bouton--accent { background: var(--accent-bouton); color: #fff; }
.bouton--accent:hover { background: var(--accent-bouton-survol); color: #fff; }
.bouton--clair { background: #fff; color: var(--encre); }
.bouton--clair:hover { background: #e9ebee; color: var(--encre); }
.bouton--contour { background: transparent; color: var(--accent-texte); border-color: currentColor; }
.bouton--contour:hover { background: var(--accent-pale); }
.bouton--contour-clair { background: transparent; color: #fff; border-color: rgb(255 255 255 / 70%); }
.bouton--contour-clair:hover { background: rgb(255 255 255 / 12%); color: #fff; }
.bouton--lien { background: none; color: var(--accent-texte); text-decoration: underline; padding-inline: .5rem; }
.bouton--grand { min-height: 52px; padding: .8rem 1.4rem; font-size: 1.05rem; }
.bouton--bloc { display: flex; width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.lien-fleche { font-weight: 700; text-decoration: none; white-space: nowrap; }
.lien-fleche::after { content: " →"; }
.lien-fleche:hover { text-decoration: underline; }
.lien-tel { font-weight: 800; font-size: 1.2rem; text-decoration: none; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--sombre); color: #fff; overflow: hidden; isolation: isolate; }
.hero__fond { position: absolute; inset: 0; z-index: -1; }
.hero__fond img { width: 100%; height: 100%; object-fit: cover; }
.hero--image .hero__fond::after {
  content: ""; position: absolute; inset: 0;
  background: rgb(10 10 10 / 80%);
}
@media (min-width: 900px) { .hero--image .hero__fond::after { background: linear-gradient(90deg, rgb(10 10 10 / 90%) 0%, rgb(10 10 10 / 70%) 50%, rgb(10 10 10 / 20%) 100%); } }
.hero__in { padding-block: clamp(2.5rem, 8vw, 6rem); max-width: var(--largeur); }
.hero h1 { max-width: 20ch; color: #fff; }
.hero__texte { max-width: 55ch; font-size: 1.1rem; color: #e4e6e9; }
.hero .surtitre { color: var(--accent); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); }
/* Diaporama du bandeau (photos choisies dans l'espace, assets/diaporama-accueil.js). Sans JS : la première photo seule,
   dans le flux habituel. Avec JS, chaque photo devient une couche (même cadre, rien ne bouge en hauteur) ; la photo
   qui arrive est remise en fin de .hero__fond (au-dessus des autres, toujours sous le voile ::after) puis s'éclaircit. */
.hero__fond .hero__diapo { position: absolute; inset: 0; opacity: 0; }
.hero__fond .hero__diapo.est-visible { opacity: 1; }
.hero__fond .hero__diapo.est-entree { transition: opacity 1.4s ease-in-out; }
.hero__pause {
  position: absolute; right: max(.75rem, env(safe-area-inset-right)); bottom: calc(4px + .75rem); z-index: 1;
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid rgb(255 255 255 / 45%); border-radius: 50%; background: rgb(10 10 10 / 55%); color: #fff; cursor: pointer;
}
.hero__pause[hidden] { display: none; }
.hero__pause:hover { background: rgb(10 10 10 / 80%); border-color: #fff; }
.hero__pause-icone { width: 12px; height: 14px; border-inline: 4px solid currentColor; }
.hero__pause[aria-pressed="true"] .hero__pause-icone { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
.surtitre { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 800; color: var(--accent-texte); margin-bottom: .5rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--serree { padding-block: 1.5rem; }
.section--teinte { background: var(--fond-teinte); }
.section--services { padding-block: 0; margin-top: -1px; background: var(--fond-teinte); }
.section__tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-bottom: 1.25rem; }
.section__tete h2 { margin: 0; }
.section__surtitre { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 800; color: var(--accent-texte); margin: 0 0 .15rem; }
.page { padding-block: 1.5rem 3rem; }
.page--etroite { max-width: 860px; }
.page__tete { margin-bottom: 1.5rem; }
.page__intro { max-width: none; color: var(--encre-2); font-size: 1.05rem; }
.deux-colonnes { display: grid; gap: 2rem; }
@media (min-width: 900px) {
  .deux-colonnes { grid-template-columns: 1fr 1fr; align-items: center; }
  .deux-colonnes--haut { align-items: start; }
}
.grille-3 { display: grid; gap: 1rem; margin-block: 1.5rem; }
@media (min-width: 720px) { .grille-3 { grid-template-columns: repeat(3, 1fr); } }

/* Tuiles de services */
.tuiles { list-style: none; margin: 0; padding: 1.25rem 0; display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .tuiles { grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 2rem; } }
.tuile {
  display: flex; flex-direction: column; gap: .25rem; height: 100%; padding: 1rem; background: #fff;
  border-radius: var(--rayon); box-shadow: var(--ombre); text-decoration: none; color: var(--encre);
  border-top: 4px solid var(--accent);
}
.tuile:hover { transform: translateY(-2px); }
.tuile__titre { font-weight: 800; color: var(--accent-texte); }
.tuile__texte { font-size: .9rem; color: var(--encre-2); line-height: 1.4; }

/* ---------- Cartes motos ---------- */
.grille-motos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grille-motos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grille-motos { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.catalogue__resultats .grille-motos { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* Carrousel d'annonces : 3 annonces visibles à la fois sur écran large (2 sur tablette,
   1 sur téléphone), et une flèche de chaque côté des cartes qui avance d'UNE annonce.
   Aucune barre de défilement sous les cartes : elle est masquée, on avance aux flèches
   (ou au doigt). La flèche de gauche n'apparaît qu'après la première annonce, celle de
   droite disparaît sur la dernière — c'est le JavaScript qui pose l'attribut « hidden ». */
.carrousel { position: relative; --par-vue: 1; --ecart: 1rem; }
@media (min-width: 700px) { .carrousel { --par-vue: 2; } }
@media (min-width: 1000px) { .carrousel { --par-vue: 3; --ecart: 1.25rem; } }
.grille-motos--carrousel {
  display: flex; grid-template-columns: none; gap: var(--ecart);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; align-items: stretch;
  scrollbar-width: none; -ms-overflow-style: none;
  /* La piste rogne (overflow-x:auto => overflow-y aussi) : sans marge intérieure elle coupait le
     bas des cartes (bordure, coins arrondis, ombre, soulèvement au survol). On l'agrandit de
     part et d'autre et on compense par une marge négative pour ne rien déplacer. */
  padding-block: 8px 16px; margin-block: -8px -16px;
}
.grille-motos--carrousel::-webkit-scrollbar { display: none; }
.grille-motos--carrousel > li {
  flex: 0 0 calc((100% - (var(--par-vue) - 1) * var(--ecart)) / var(--par-vue));
  scroll-snap-align: start; display: flex;
  /* « position: relative » sur la diapositive, sinon tout enfant en position absolue (le
     « Ancien prix : » réservé aux lecteurs d'écran, par exemple) se rattache au .carrousel,
     échappe au rognage de la piste et élargit la PAGE de la largeur du carrousel entier. */
  position: relative;
}
.grille-motos--carrousel > li > * { width: 100%; }
.grille-motos--carrousel:focus-visible { outline-offset: 4px; }
.carrousel__fleche {
  position: absolute; top: calc(50% - 22px); z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.7rem; line-height: 1;
  background: #fff; color: var(--encre); border: 1px solid var(--bord); border-radius: 999px;
  box-shadow: var(--ombre); cursor: pointer;
}
/* « display: grid » l'emporterait sur le display:none que le navigateur pose pour [hidden] :
   sans cette ligne, une flèche masquée resterait affichée. */
.carrousel__fleche[hidden] { display: none; }
.carrousel__fleche:hover { border-color: var(--accent-texte); color: var(--accent-texte); }
.carrousel__fleche svg { width: 24px; height: 24px; fill: currentColor; pointer-events: none; }
.carrousel__fleche--prec { left: -6px; }
.carrousel__fleche--suiv { right: -6px; }
/* À partir de 1100 px, les flèches se rangent dans la marge, à côté des cartes et non dessus. */
@media (min-width: 1100px) {
  .carrousel { padding-inline: 56px; }
  .carrousel__fleche--prec { left: 0; }
  .carrousel__fleche--suiv { right: 0; }
}

.carte-moto { height: 100%; }
.carte-moto__lien {
  display: flex; flex-direction: column; height: 100%; background: #fff; color: var(--encre); text-decoration: none;
  border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; transition: box-shadow .15s, transform .15s;
}
.carte-moto__lien:hover { box-shadow: var(--ombre); transform: translateY(-2px); }
.carte-moto__lien:hover .carte-moto__titre { color: var(--accent-texte); }
.carte-moto__image { position: relative; aspect-ratio: 4 / 3; background: var(--fond-teinte); overflow: hidden; }
.carte-moto__image img { width: 100%; height: 100%; object-fit: cover; }
/* Défilement des photos d'une annonce : les vues sont superposées et se fondent l'une dans
   l'autre. Sans JavaScript, seule « is-active » — posée dans le HTML sur la première — est
   visible : la carte ne devient jamais vide, elle ne défile simplement pas. */
.diapo__vue { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.diapo__vue.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .diapo__vue { transition: none; } }
/* Repères de position, en bas du cadre : discrets, et posés par le script seulement. */
.diapo__points { position: absolute; left: 0; right: 0; bottom: .5rem; display: flex; justify-content: center; gap: .3rem; pointer-events: none; }
.diapo__point { width: 6px; height: 6px; border-radius: 50%; background: rgb(255 255 255 / 55%); box-shadow: 0 0 2px rgb(0 0 0 / 45%); transition: background-color .3s; }
.diapo__point.is-active { background: #fff; }
.carte-moto__sans-photo, .galerie__vide { display: grid; place-content: center; justify-items: center; gap: .5rem; height: 100%; min-height: 200px; color: var(--encre-2); font-weight: 600; }
.carte-moto__sans-photo { background: radial-gradient(circle at 50% 40%, #2a2c30, var(--sombre)); color: #c9ccd1; font-size: .85rem; }
.carte-moto__sans-photo img { width: 55%; max-width: 200px; height: auto; opacity: .9; }
.carte-moto__corps { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.carte-moto__titre { font-size: 1.1rem; margin-bottom: .25rem; }
.carte-moto__infos { color: var(--encre-2); font-size: .9rem; margin-bottom: .6rem; }
.carte-moto__prix { margin: auto 0 0; font-size: 1.3rem; }
.carte-moto__prix strong { font-weight: 800; }
.carte-moto__apartir { font-size: .8rem; color: var(--encre-2); font-weight: 600; }
.pastille {
  display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 800;
  background: var(--sombre); color: #fff;
}
.carte-moto__image .pastille { position: absolute; top: .6rem; left: .6rem; }
.carte-moto__image .pastille + .pastille { top: 2.3rem; }
.carte-moto__image .pastille + .pastille + .pastille { top: 4rem; }
.pastille--a2 { background: #fff; color: var(--encre); box-shadow: 0 0 0 1px var(--bord); }
.pastille--promo { background: var(--accent); color: var(--sombre); }
.pastille--reserve { background: #8a4b00; }
.pastille--vendu { background: #5b5f66; }
.pastille--statique { margin: 0; }
/* Disponibilité d'une moto neuve : texte + couleur (jamais la couleur seule). « Sur commande » = contour aux couleurs
   du site, distinct de « En stock » (vert plein) même sur DSF où l'accent est déjà vert. */
.pastille--stock { background: var(--succes); color: #fff; }
.pastille--commande { background: #fff; color: var(--accent-texte); box-shadow: 0 0 0 1.5px var(--accent-texte); }
.carte-moto__sans-photo--commande, .ligne-moto__sans-photo--commande { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 32%, #1b1d21), var(--sombre)); }
.galerie__vide--commande { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 32%, #1b1d21), var(--sombre)); color: #e4e6e9; border-radius: var(--rayon); min-height: 320px; }
.galerie__vide--commande img { width: 40%; max-width: 220px; height: auto; opacity: .92; }
.filtres__dispo { border: 0; margin: 0 0 .75rem; padding: 0; min-width: 0; }
.filtres__dispo legend { padding: 0; font-weight: 700; margin-bottom: .3rem; }

/* ---------- Catalogue et filtres ---------- */
.catalogue { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .catalogue { grid-template-columns: 260px 1fr; align-items: start; } }
.filtres { background: var(--fond-teinte); border-radius: var(--rayon); padding: 1rem; display: grid; gap: .25rem .75rem; grid-template-columns: 1fr 1fr; }
.filtres-bloc { background: var(--fond-teinte); border-radius: var(--rayon); }
.filtres-bloc__titre { font-size: 1rem; font-weight: 800; margin: 0; padding: .8rem 1rem 0; }
.filtres .case, .filtres__actions { grid-column: 1 / -1; }
@media (min-width: 960px) { .filtres { grid-template-columns: 1fr; } .filtres-bloc { position: sticky; top: 90px; } }
.filtres__actions { display: flex; gap: .5rem; align-items: center; margin-top: .5rem; }
.compteur { font-weight: 700; margin-bottom: 1rem; }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 1.5rem 0 0; }
.pagination a, .pagination span { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 .75rem; border-radius: 8px; border: 1px solid var(--bord); text-decoration: none; }
.pagination span[aria-current] { background: var(--accent-bouton); color: #fff; border-color: transparent; font-weight: 800; }

.vide { padding: 1.5rem; background: var(--fond-teinte); border-radius: var(--rayon); }
.vide p:last-child { margin-bottom: 0; }

/* ---------- Formulaires ---------- */
.champ { margin-bottom: .9rem; }
label { display: block; font-weight: 650; margin-bottom: .3rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 44px; padding: .55rem .75rem; font: inherit; color: var(--encre);
  background: #fff; border: 1px solid #8a9099; border-radius: 8px;
}
textarea { resize: vertical; min-height: 110px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent-texte); outline-offset: 1px; border-color: var(--accent-texte); }
.case { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; margin-bottom: .9rem; }
.case input { width: 20px; height: 20px; margin-top: .2rem; flex: none; accent-color: var(--accent-bouton); }
.requis { font-weight: 400; color: var(--encre-2); font-size: .85rem; }
.champ__aide { font-size: .85rem; color: var(--encre-2); margin: .3rem 0 0; }
.champs-paire { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .champs-paire { grid-template-columns: 1fr 1fr; } }
.contact__sujet { background: var(--fond-teinte); border-left: 4px solid var(--accent); border-radius: 8px; padding: .6rem .9rem; }
.champ--erreur input, .champ--erreur textarea, .champ--erreur select { border-color: var(--erreur); border-width: 2px; }
.champ__erreur { color: var(--erreur); font-weight: 600; font-size: .9rem; margin: .3rem 0 0; }
.alerte { border-radius: 10px; padding: .9rem 1rem; margin-bottom: 1.25rem; }
.alerte ul { margin: 0; padding-left: 1.2rem; }
.alerte--erreur { background: #fdecea; border-left: 4px solid var(--erreur); }
.alerte--erreur a { color: var(--erreur); }
.alerte--info { background: var(--accent-pale); border-left: 4px solid var(--accent); }
.panneau { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.25rem; box-shadow: var(--ombre); }
@media (min-width: 768px) { .panneau { padding: 1.75rem; } }
.encart { background: var(--fond-teinte); border-radius: var(--rayon); padding: 1.25rem; margin-block: 1.5rem; }
.grille-3 .encart { margin: 0; border-top: 4px solid var(--accent); }
.encart h2 { font-size: 1.15rem; }

/* ---------- Fiche ---------- */
.galerie__principale { position: relative; margin: 0; border-radius: var(--rayon); overflow: hidden; background: var(--fond-teinte); aspect-ratio: 4 / 3; }
.galerie__principale img { width: 100%; height: 100%; object-fit: contain; }
/* La grande photo de la fiche se fond aussi quand le défilement automatique la change. */
.galerie__principale img { transition: opacity .35s ease; }
.galerie__principale.est-en-transition img { opacity: 0; }
.galerie__vignettes { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; padding: 0; margin: .6rem 0 0; }
.galerie__vignettes a { display: block; border-radius: 8px; overflow: hidden; border: 2px solid transparent; aspect-ratio: 4 / 3; }
.galerie__vignettes a[aria-current="true"] { border-color: var(--accent); }
.galerie__vignettes img { width: 100%; height: 100%; object-fit: cover; }
/* ---------- Fiche moto : résumé + sections à onglets (sans JS : radios + :has()) ---------- */
/* Proposition 4 — onglets sans JS (radios + frères ~). Repli : sans @supports :has, tout s'affiche en une page. */
.fiche--onglets .fo-haut { display: grid; gap: 1.25rem; }
.fiche--onglets .fo-galerie, .fiche--onglets .fo-resume { min-width: 0; }
@media (min-width: 960px) {
  .fiche--onglets .fo-haut { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2rem; align-items: start; }
  .fiche--onglets .fo-resume { position: sticky; top: 90px; }
}
.fiche--onglets .fo-vide { min-height: 260px; background: var(--fond-teinte); border-radius: var(--rayon); text-align: center; padding: 1rem; }
.fiche--onglets .fo-vide img { width: 40%; max-width: 180px; height: auto; opacity: .8; }
/* Sur commande : fond sombre conservé (le texte et le logo clairs étaient illisibles sur le fond pâle ci-dessus). */
.fiche--onglets .fo-vide.galerie__vide--commande { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 32%, #1b1d21), var(--sombre)); }

/* Résumé */
.fiche--onglets .fo-surtitre { margin: 0 0 .25rem; }
.fiche--onglets .fo-titre { margin: 0 0 .6rem; overflow-wrap: anywhere; }
.fiche--onglets .fo-pastilles { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .8rem; }
.fiche--onglets .fo-prix { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; margin: 0 0 .8rem; }
.fiche--onglets .fo-apartir { flex-basis: 100%; font-size: .85rem; font-weight: 600; color: var(--encre-2); }
.fiche--onglets .fo-ancien { font-size: 1.1rem; color: var(--encre-2); }
.fiche--onglets .fo-montant { font-size: 2rem; line-height: 1.15; font-weight: 850; overflow-wrap: anywhere; }
.fiche--onglets .fo-ttc { font-size: .9rem; color: var(--encre-2); }
.fiche--onglets .fo-note { margin: 0 0 .9rem; padding: .6rem .8rem; background: var(--accent-pale); border-left: 4px solid var(--accent); border-radius: 8px; font-size: .92rem; }
.fiche--onglets .fo-cles { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 0 0 1.1rem; }
.fiche--onglets .fo-cles div { padding: .6rem .75rem; background: var(--fond-teinte); border-radius: 10px; min-width: 0; }
.fiche--onglets .fo-cles dt { font-size: .78rem; font-weight: 600; color: var(--encre-2); }
.fiche--onglets .fo-cles dd { margin: 0; font-weight: 750; overflow-wrap: anywhere; }
.fiche--onglets .fo-actions { display: grid; gap: .6rem; }
.fiche--onglets .fo-actions .bouton { min-height: 44px; overflow-wrap: anywhere; }

/* Sections : repli = tout visible, en colonne ; radios et barre masqués */
.fiche--onglets .fo-onglets { margin-top: 2rem; }
.fiche--onglets .fo-radio { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; pointer-events: none; }
.fiche--onglets .fo-barre { display: none; }
.fiche--onglets .fo-panneau { margin-bottom: 2rem; min-width: 0; }
.fiche--onglets .fo-points { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; }
.fiche--onglets .fo-points li { display: grid; padding: .7rem .9rem; border: 1px solid var(--bord); border-radius: 10px; min-width: 0; }
.fiche--onglets .fo-points__k { font-size: .8rem; font-weight: 600; color: var(--encre-2); }
.fiche--onglets .fo-points__v { font-weight: 750; overflow-wrap: anywhere; }
.fiche--onglets .fo-extrait { margin: 0 0 .5rem; max-width: 70ch; overflow-wrap: anywhere; }
.fiche--onglets .fo-suite { margin: 0; }
.fiche--onglets .fo-lien { display: none; }
.fiche--onglets .fo-caract { margin: 0; display: grid; grid-template-columns: 1fr; column-gap: 2.5rem; }
@media (min-width: 760px) { .fiche--onglets .fo-caract { grid-template-columns: 1fr 1fr; } }
.fiche--onglets .fo-caract div { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--bord); min-width: 0; }
.fiche--onglets .fo-caract dt { color: var(--encre-2); }
.fiche--onglets .fo-caract dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.fiche--onglets .fo-texte { max-width: 75ch; overflow-wrap: anywhere; }

/* Mode onglets (navigateurs sachant :has) */
@supports selector(:has(*)) {
  .fiche--onglets .fo-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .fiche--onglets .fo-barre { display: block; border-bottom: 2px solid var(--bord); margin: 0 -1rem; }
  .fiche--onglets .fo-barre__liste { display: flex; gap: .25rem; overflow-x: auto; padding: 0 1rem; scrollbar-width: none; scroll-snap-type: x proximity; }
  .fiche--onglets .fo-barre__liste::-webkit-scrollbar { display: none; }
  @media (min-width: 760px) { .fiche--onglets .fo-barre { margin: 0; } .fiche--onglets .fo-barre__liste { padding: 0; } }
  .fiche--onglets .fo-onglet { flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.1rem; font-weight: 750; color: var(--encre-2); cursor: pointer; border-bottom: 4px solid transparent; margin-bottom: -2px; white-space: nowrap; scroll-snap-align: start; border-radius: 8px 8px 0 0; }
  .fiche--onglets .fo-onglet:hover { background: var(--fond-teinte); color: var(--encre); }
  .fiche--onglets .fo-panneau { display: none; margin: 1.5rem 0 0; }
  .fiche--onglets #fo-o1:checked ~ .fo-barre .fo-onglet--1,
  .fiche--onglets #fo-o2:checked ~ .fo-barre .fo-onglet--2,
  .fiche--onglets #fo-o3:checked ~ .fo-barre .fo-onglet--3 { color: var(--accent-texte); border-bottom-color: var(--accent); background: var(--accent-pale); }
  .fiche--onglets #fo-o1:focus-visible ~ .fo-barre .fo-onglet--1,
  .fiche--onglets #fo-o2:focus-visible ~ .fo-barre .fo-onglet--2,
  .fiche--onglets #fo-o3:focus-visible ~ .fo-barre .fo-onglet--3 { outline: 3px solid var(--accent-texte); outline-offset: -3px; }
  .fiche--onglets #fo-o1:checked ~ .fo-panneaux .fo-panneau--1,
  .fiche--onglets #fo-o2:checked ~ .fo-panneaux .fo-panneau--2,
  .fiche--onglets #fo-o3:checked ~ .fo-panneaux .fo-panneau--3 { display: block; }
  .fiche--onglets .fo-lien { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-texte); font-weight: 750; text-decoration: underline; cursor: pointer; }
}
.caracteristiques { margin: 0 0 1rem; display: grid; }
.caracteristiques div { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--bord); }
.caracteristiques dt { color: var(--encre-2); }
.caracteristiques dd { margin: 0; font-weight: 650; }
.texte-libre { overflow-wrap: anywhere; }
/* Fiche article : le visuel tient dans un cadre au rapport fixe, comme sur une fiche moto.
   Sans ce cadre, une photo de produit en hauteur (un sac à dos, un blouson) s'affichait sur
   un millier de pixels et repoussait prix et disponibilité sous la ligne de flottaison.
   « contain » sur fond blanc : ce sont des produits détourés, les rogner les couperait. */
.galerie__principale--article { background: #fff; border: 1px solid var(--bord); margin-bottom: 1rem; }
.galerie__principale--article img { padding: 1rem; }
.etapes { padding-left: 1.3rem; }
.etapes li { margin-bottom: .4rem; }

/* ---------- Équipement ---------- */
.onglets { margin-bottom: 1.25rem; overflow-x: auto; }
.onglets ul { list-style: none; display: flex; gap: .5rem; padding: 0 0 .25rem; margin: 0; }
.onglets a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .4rem .9rem; white-space: nowrap; border-radius: 999px; border: 1px solid var(--bord); color: var(--encre); text-decoration: none; font-weight: 600; }
.onglets a:hover { border-color: var(--accent-texte); }
.onglets a[aria-current="page"] { background: var(--sombre); color: #fff; border-color: var(--sombre); }
.onglets__nb { font-size: .75rem; background: var(--fond-teinte); color: var(--encre); border-radius: 999px; padding: 0 .45rem; }
/* Tailles proposées d'un modèle sur la fiche équipement (11/10/2026 : plus de stock affiché) : « Tailles proposées :
   S · M · L », chaque taille mène à sa fiche, la taille de la page est marquée. Sans JS, lisible à 390 px. */

/* ---------- Catalogue d'équipement : puce de comptage, réutilisée par la page /equipement
   (rupture, arbre) et par la fiche article. Aucune couleur en dur : tout vient des variables
   de commun.css (--accent…, --bord, --rayon). */

.rayons__nb {
  font-size: .75rem; font-weight: 700; color: var(--encre);
  background: var(--fond-teinte); border-radius: 999px; padding: 0 .45rem;
}

/* ---------- Rayon vide : « Nous n'en avons plus pour le moment » ---------- */
.rupture {
  border: 1px solid var(--bord); border-top: 4px solid var(--accent);
  border-radius: var(--rayon); background: var(--fond-teinte);
  padding: 1.25rem; margin-bottom: 1.5rem;
}
.rupture h2 { margin-bottom: .4em; }
.rupture h3 { font-size: 1rem; margin: 1.25rem 0 .6rem; }
.rupture__liste { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; padding: 0; }
.rupture__liste .bouton { background: var(--fond); min-height: 44px; }
.rupture__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin: 0; }

/* ---------- Fiche article : rappel de rubrique sur trois niveaux ---------- */

@media (min-width: 768px) {
  .rupture { padding: 1.75rem; }
}

/* ============================================================
   Catalogue d'équipement (/equipement) — recherche + facettes + tri + liste/grille.
   Classes préfixées cat- (aucune collision avec le reste du site). Disposition : colonne de
   facettes collante à partir de 960px, panneau plein écran en dessous, grand champ de recherche
   en tête. Couleurs : uniquement les variables de commun.css, pour marcher en bleu (AMC) et
   vert (DSF). Le champ #cat-q n'est jamais concerné par les transitions du panneau : il vit
   toujours en dehors de la colonne de facettes.
   ============================================================ */

.cat-page .page__intro { max-width: none; }

/* ---------- Recherche : le grand champ, toujours visible, jamais remplacé par le JS ---------- */
.cat-recherche { margin-bottom: .75rem; }
.cat-recherche__label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.cat-recherche__champ {
  display: flex; gap: .6rem; align-items: stretch; background: var(--fond-teinte);
  border-radius: var(--rayon); padding: .9rem; margin-bottom: .6rem;
}
.cat-recherche__saisie {
  flex: 1 1 auto; min-width: 0; min-height: 52px; font-size: 1.05rem; padding: .6rem 1rem;
  border: 2px solid var(--bord); border-radius: 10px; background: #fff; color: var(--encre);
}
.cat-recherche__saisie::placeholder { color: var(--encre-2); opacity: .8; }
.cat-recherche__saisie:focus-visible { outline: 3px solid var(--accent-texte); outline-offset: 1px; border-color: var(--accent-texte); }
.cat-recherche__go { flex: none; min-height: 52px; }
@media (max-width: 479.98px) {
  .cat-recherche__champ { flex-wrap: wrap; }
  .cat-recherche__saisie { flex-basis: 100%; }
  .cat-recherche__go { flex: 1 1 auto; }
}

.cat-suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; margin: 0; font-size: .92rem; }
.cat-suggestions__t { color: var(--encre-2); font-weight: 650; }
.cat-suggestions__puce {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: .3rem .8rem;
  border-radius: 999px; border: 1px solid var(--bord); color: var(--encre); text-decoration: none; font-weight: 600;
}
.cat-suggestions__puce:hover { border-color: var(--accent-texte); background: var(--accent-pale); }

/* Compteur (aria-live), en dehors du fragment remplacé par le JS pour rester annoncé de façon fiable. */
.cat-compte { font-weight: 700; margin: 0 0 .75rem; min-height: 1.2em; }

.cat-page mark { background: var(--accent-pale); color: var(--encre); border-radius: 3px; padding: 0 .15em; }

/* ---------- Puces des filtres actifs (recherche + facettes) ---------- */
.cat-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: .9rem; }
.cat-chip {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 36px;
  padding: .3rem .5rem .3rem .8rem; border-radius: 999px; background: var(--accent-pale);
  color: var(--accent-texte); text-decoration: none; font-size: .85rem; font-weight: 700;
  border: 1px solid transparent;
}
.cat-chip span { font-size: .75rem; opacity: .75; }
.cat-chip:hover { border-color: currentColor; text-decoration: none; }
.cat-chips__tout {
  font-size: .85rem; font-weight: 700; color: var(--encre-2); text-decoration: underline;
  padding: .3rem .3rem; min-height: 36px; display: inline-flex; align-items: center;
}

/* ---------- Disposition générale : colonne de filtres + résultats ---------- */
.cat-layout { display: flex; flex-direction: column; gap: 1.25rem; }

.cat-facettes {
  border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--fond-teinte);
  padding: 1rem 1.1rem 1.2rem;
}
.cat-facettes__tete { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.cat-facettes__titre { margin: 0; font-size: 1.05rem; }
.cat-fermer {
  background: none; border: 1px solid var(--bord); border-radius: 999px; min-height: 44px; min-width: 44px;
  color: var(--encre); font-weight: 700; cursor: pointer;
}
.cat-fermer:hover { border-color: var(--accent-texte); color: var(--accent-texte); }

/* ---------- Arbre famille > catégorie > type ---------- */
.cat-arbre { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--bord); }
.cat-arbre__niveau { list-style: none; margin: 0; padding: 0; }
.cat-arbre__niveau--2 { padding-left: .9rem; margin-top: .3rem; }
.cat-arbre__niveau--3 { list-style: none; margin: .25rem 0 .5rem; padding-left: .9rem; border-left: 2px solid var(--bord); }
.cat-arbre__item { margin: .1rem 0; }
.cat-arbre__tout {
  display: flex; align-items: center; min-height: 40px; font-weight: 800;
  color: var(--encre); text-decoration: none; padding: .3rem 0; border-bottom: 1px solid var(--bord); margin-bottom: .4rem;
}
.cat-arbre__tout[aria-current] { color: var(--accent-texte); }
.cat-arbre__det > summary {
  cursor: pointer; list-style: none; min-height: 40px; display: flex; align-items: center; gap: .4rem;
  font-weight: 700; padding: .25rem 0; -webkit-tap-highlight-color: transparent;
}
.cat-arbre__det > summary::-webkit-details-marker { display: none; }
.cat-arbre__det > summary::before {
  content: ""; width: .55em; height: .55em; border-right: 2px solid var(--encre-2); border-bottom: 2px solid var(--encre-2);
  transform: rotate(-45deg); transition: transform .15s ease; flex: none;
}
.cat-arbre__det[open] > summary::before { transform: rotate(45deg); }
.cat-arbre__lien {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 38px;
  padding: .2rem .3rem .2rem .1rem; color: var(--encre); text-decoration: none; font-size: .93rem; border-radius: 6px;
}
.cat-arbre__lien:hover { background: rgb(0 0 0 / 4%); }
.cat-arbre__lien--voirtout { font-style: italic; color: var(--encre-2); }
.cat-arbre__lien[aria-current], .cat-arbre__lien--voirtout[aria-current] { color: var(--accent-texte); font-weight: 700; background: var(--accent-pale); }
.cat-arbre__n { font-size: .8rem; color: var(--encre-2); font-weight: 400; white-space: nowrap; }
.cat-arbre__lien[aria-current] .cat-arbre__n { color: inherit; }

/* ---------- Groupes de facettes ---------- */
.cat-groupe { margin-bottom: 1.1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--bord); }
.cat-groupe:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.cat-groupe__titre { margin: 0 0 .5rem; font-size: .95rem; }

.cat-cases { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.cat-cases--defile { max-height: 15rem; overflow-y: auto; overscroll-behavior: contain; }
.cat-cases--defile:focus-visible { outline: 3px solid var(--accent-texte); outline-offset: 2px; }
.cat-plus > summary { list-style: none; display: flex; align-items: center; }
.cat-plus > summary::-webkit-details-marker { display: none; }
.cat-plus .cat-plus__fermer, .cat-plus[open] .cat-plus__ouvrir { display: none; }
.cat-plus[open] .cat-plus__fermer { display: inline; }
@media (min-width: 960px) {
  .cat-facettes { padding: .8rem .9rem 1rem; }
  .cat-case { min-height: 28px; padding: 0 .3rem; font-size: .88rem; }
  .cat-arbre__det > summary { min-height: 30px; padding: .1rem 0; }
  .cat-arbre__lien { min-height: 28px; font-size: .88rem; }
  .cat-arbre__tout { min-height: 32px; margin-bottom: .2rem; }
  .cat-arbre { margin-bottom: .6rem; padding-bottom: .6rem; }
  .cat-groupe { margin-bottom: .55rem; padding-bottom: .55rem; }
  .cat-groupe__titre { margin-bottom: .25rem; font-size: .88rem; }
  .cat-cases--defile { max-height: 9rem; }
  .cat-facettes__titre { font-size: .98rem; }
  .cat-facettes__tete { margin-bottom: .25rem; }
}
.cat-case {
  display: flex; align-items: center; gap: .55rem; min-height: 44px; padding: .2rem .3rem;
  cursor: pointer; border-radius: 8px; font-size: .92rem;
}
.cat-case:hover { background: rgb(0 0 0 / 4%); }
.cat-case input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.cat-case__lib { flex: 1 1 auto; }
.cat-case__n { color: var(--encre-2); font-size: .8rem; white-space: nowrap; }

.cat-voirplus {
  background: none; border: 0; color: var(--accent-texte); font-weight: 700; font-size: .88rem;
  text-decoration: underline; cursor: pointer; min-height: 40px; padding: 0 .3rem;
}

.cat-prix-rappel { font-size: .82rem; color: var(--encre-2); margin: 0 0 .55rem; }
.cat-prix-rappel--sous { margin: .5rem 0 0; }

.cat-facettes__actions { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }
.cat-bouton-appliquer { width: 100%; min-height: 48px; }

/* ---------- Barre des résultats : tri + bascule Liste/Grille ---------- */
.cat-resultats__barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.cat-tri { display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 700; }
.cat-tri select {
  min-height: 44px; padding: .3rem 2rem .3rem .7rem; border: 1px solid var(--bord); border-radius: 8px;
  font-size: .95rem; font-family: inherit; color: var(--encre); background: #fff;
}
.cat-tri select:focus-visible { outline: 3px solid var(--accent-texte); outline-offset: 1px; }

.cat-ordre { display: inline-flex; margin: 0; padding: 0; min-width: 0; border: 1px solid var(--bord); border-radius: 999px; overflow: hidden; }
.cat-ordre[hidden] { display: none; }
.cat-ordre__btn { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.cat-ordre__btn + .cat-ordre__btn { border-left: 1px solid var(--bord); }
.cat-ordre__btn input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cat-ordre__btn > span { box-sizing: border-box; min-height: 44px; padding: .4rem .9rem; display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.cat-ordre__btn:hover { background: var(--accent-pale); }
.cat-ordre__btn:has(input:checked) { background: var(--sombre); color: #fff; }
.cat-ordre__btn:has(input:focus-visible) { outline: 3px solid var(--accent-texte); outline-offset: -3px; }
.cat-vue {
  display: inline-flex; margin-left: auto; border: 1px solid var(--bord); border-radius: 999px; overflow: hidden;
}
.cat-vue-btn {
  min-height: 44px; min-width: 44px; padding: .4rem 1rem; display: inline-flex; align-items: center;
  justify-content: center; color: var(--encre); text-decoration: none; font-weight: 700; font-size: .9rem;
}
.cat-vue-btn + .cat-vue-btn { border-left: 1px solid var(--bord); }
.cat-vue-btn:hover { background: var(--accent-pale); }
.cat-vue-btn.is-actif { background: var(--sombre); color: #fff; }
@media (max-width: 599.98px) {
  .cat-resultats__barre { flex-direction: column; align-items: stretch; }
  .cat-vue { margin-left: 0; width: 100%; }
  .cat-vue-btn { flex: 1 1 50%; }
}

/* ---------- Liste de résultats : une seule structure, deux habillages ---------- */
.cat-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }

.cat-entete {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .5rem .75rem; margin-top: .4rem; font-weight: 800; font-size: .95rem;
  color: var(--encre); background: var(--fond); border-bottom: 2px solid var(--bord);
}
.cat-liste:first-child .cat-entete:first-child { margin-top: 0; }

.cat-art {
  display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid var(--bord);
  border-radius: var(--rayon); padding: .6rem .8rem; position: relative;
}
.cat-art:hover { box-shadow: var(--ombre); }

.cat-art__vignette {
  position: relative; flex: none; width: 64px; height: 64px; border-radius: 8px; overflow: hidden;
  background: var(--fond-teinte); display: grid; place-items: center;
}
.cat-art__vignette > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: .3rem; background: #fff; }
.cat-art__pictogramme { font-size: 1.3rem; font-weight: 850; color: var(--accent-texte); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }

.cat-art__info { flex: 1 1 auto; min-width: 0; }
.cat-art__cat { font-size: .78rem; color: var(--encre-2); margin: 0 0 .1rem; }
.cat-art__titre { font-size: .98rem; margin: 0 0 .15rem; }
.cat-art__titre a { color: var(--encre); text-decoration: none; }
.cat-art__titre a::after { content: ""; position: absolute; inset: 0; }
.cat-art__titre a:hover { color: var(--accent-texte); text-decoration: underline; }
.cat-art__meta { font-size: .82rem; color: var(--encre-2); margin: 0; overflow-wrap: anywhere; }

.cat-art__droite {
  flex: none; display: flex; align-items: center; gap: .6rem; margin-left: auto; position: relative; z-index: 1;
}
.cat-art__prix { font-size: 1.02rem; white-space: nowrap; min-width: 6.5em; text-align: right; }

/* Vue Grille : mêmes cartes, réagencées ; pas de regroupement par catégorie. */
.cat-vue--grille { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.cat-vue--grille .cat-entete { display: none; }
.cat-vue--grille .cat-art { flex-direction: column; align-items: stretch; text-align: left; padding: 0; overflow: hidden; }
.cat-vue--grille .cat-art__vignette { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
.cat-vue--grille .cat-art__info { padding: .65rem .8rem 0; }
.cat-vue--grille .cat-art__droite { flex-direction: row; align-items: center; justify-content: space-between; margin: .5rem .8rem .8rem; }
.cat-vue--grille .cat-art__prix { text-align: left; }

/* Mobile, vue Liste : la ligne se réorganise en deux étages plutôt que de déborder
   (piège déjà rencontré : flex-shrink hérité de « flex: none » ferait déborder à droite). */
@media (max-width: 599.98px) {
  .cat-vue--liste .cat-art { flex-wrap: wrap; }
  .cat-vue--liste .cat-art__vignette { width: 52px; height: 52px; }
  .cat-vue--liste .cat-art__info { flex-basis: calc(100% - 52px - .9rem); min-width: 0; }
  .cat-vue--liste .cat-art__droite {
    flex: 1 1 100%; flex-wrap: wrap; row-gap: .4rem; margin-left: 0; justify-content: space-between;
    padding-top: .5rem; border-top: 1px solid var(--bord); margin-top: .5rem;
  }
}

/* ---------- États vides ---------- */
.cat-vide-facettes {
  border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--fond-teinte);
  padding: 1.5rem; text-align: left;
}
.cat-vide-facettes p:first-child { font-weight: 700; margin-bottom: .75rem; }
.cat-vide-facettes__actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin: 0; }

/* ============================================================
   Mode « panneau plein écran » sous 960px — posé UNIQUEMENT par le JavaScript
   (classe .cat-a-sheet sur <html>). Sans JS, la colonne .cat-facettes reste affichée
   normalement, en flux, au-dessus des résultats : le champ de recherche, lui, n'est
   JAMAIS concerné (il est en dehors de cette colonne).
   ============================================================ */
html.cat-a-sheet .cat-fermer { display: inline-flex !important; align-items: center; justify-content: center; }

@media (max-width: 959.98px) {
  html.cat-a-sheet .cat-facettes {
    position: fixed; inset: 0; z-index: 1000; max-height: none; margin: 0;
    border-radius: 0; overflow-y: auto; transform: translateY(100%);
    transition: transform .22s ease; padding: 1rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 24px rgb(0 0 0 / 20%);
  }
  html.cat-a-sheet .cat-facettes.cat-ouvert { transform: translateY(0); }
  html.cat-a-sheet .cat-facettes__tete { position: sticky; top: 0; background: var(--fond-teinte); padding-top: .2rem; margin: -.2rem -.1rem .5rem; z-index: 1; }
  html.cat-a-sheet .cat-facettes__actions {
    position: sticky; bottom: -1.2rem; background: var(--fond-teinte); padding: .75rem 0 1rem;
    margin: 1rem -1.1rem 0; padding-inline: 1.1rem; border-top: 1px solid var(--bord);
  }
  html.cat-a-sheet body.cat-verrou { overflow: hidden; }

  .cat-scrim {
    position: fixed; inset: 0; background: rgb(0 0 0 / 45%); z-index: 999;
    opacity: 0; pointer-events: none; transition: opacity .22s ease;
  }
  .cat-scrim.cat-ouvert { opacity: 1; pointer-events: auto; }

  /* Caché tant que le champ de recherche est visible à l'écran (IntersectionObserver dans
     catalogue.js) : au chargement, il ne doit pas se poser par-dessus le bouton « Rechercher ».
     La marge basse des résultats, elle, reste réservée en permanence — sans ça, le bouton qui
     apparaît en scrollant masquerait soudain les dernières cartes ou le pied de page. */
  .cat-declencheur {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 998;
    min-height: 52px; border-radius: 999px; border: 0; background: var(--accent-bouton); color: #fff;
    font-weight: 800; font-size: 1rem; box-shadow: var(--ombre); cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding-bottom: env(safe-area-inset-bottom);
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(.5rem);
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
  }
  .cat-declencheur.cat-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .cat-declencheur:hover { background: var(--accent-bouton-survol); }
  .cat-declencheur__n { background: rgb(255 255 255 / 25%); border-radius: 999px; padding: .05rem .55rem; font-size: .85rem; }
  html.cat-a-sheet .cat-resultats { padding-bottom: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html.cat-a-sheet .cat-facettes, .cat-scrim, .cat-declencheur { transition: none; }
}

/* ---------- Événements ---------- */
.groupe-mois { margin-bottom: 2rem; }
.groupe-mois:last-of-type { margin-bottom: 1.25rem; }
.groupe-mois__titre {
  font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800;
  color: var(--encre-2); margin: 0 0 .75rem; padding-bottom: .4rem; border-bottom: 2px solid var(--bord);
}

.liste-evenements { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.evenement {
  display: grid; grid-template-columns: 64px 1fr; gap: .85rem; padding: 1rem;
  border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--fond); align-items: start;
}
.evenement__date {
  margin: 0; background: var(--sombre); color: #fff; border-radius: 10px; text-align: center;
  padding: .5rem .2rem; font-weight: 700; text-transform: uppercase; font-size: .72rem; line-height: 1.1;
  border-bottom: 4px solid var(--accent);
}
.evenement__date span { display: block; font-size: 1.6rem; }
.evenement__corps { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.evenement__titre { font-size: 1.15rem; margin: 0; }
.evenement__quand { color: var(--encre-2); font-size: .92rem; margin: 0; }
.evenement__actions { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin-top: .35rem; }
.evenement__actions .bouton { min-height: 44px; }

/* État de l'événement : couleurs sémantiques, pas décoratives. */
.etat {
  display: inline-flex; align-self: start; margin: 0; font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; padding: .2rem .6rem; border-radius: 999px;
}
.etat--aujourdhui { background: var(--erreur); color: #fff; }
.etat--encours { background: var(--succes); color: #fff; }
.etat--avenir { background: var(--fond-teinte); color: var(--encre-2); }

/* Nouvelles de la concession (ex-rubrique Actualités, désormais sous /evenements). */
.actu { padding-block: .75rem; border-top: 1px solid var(--bord); }
.actu:first-of-type { border-top: none; }
.actu h3 { margin-bottom: .2rem; }

@media (min-width: 640px) {
  .evenement { grid-template-columns: 84px 1fr; padding: 1.25rem; gap: 1.1rem; }
  .evenement__date { padding: .65rem .25rem; }
  .evenement__date span { font-size: 1.9rem; }
  .evenement__titre { font-size: 1.25rem; }
}

.grille-actus { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.carte-actu { padding: 1.1rem; border: 1px solid var(--bord); border-radius: var(--rayon); border-left: 4px solid var(--accent); }
.carte-actu__date { font-size: .85rem; color: var(--encre-2); margin-bottom: .3rem; }
.carte-actu h3 a { color: var(--encre); }
.actu { padding-block: 1rem; border-bottom: 1px solid var(--bord); }

/* ---------- Concession ---------- */
.coord { display: grid; gap: 1rem; }
@media (min-width: 640px) { .coord { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.coord__bloc { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1rem 1.1rem; }
.coord__bloc h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--encre-2); }
.coord__tel { margin-bottom: .5rem; }
.horaires { margin: 0; font-size: .95rem; }
.horaires div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 .75rem; padding: .25rem 0; border-top: 1px solid var(--bord); }
.horaires dt { font-weight: 600; }
.horaires dd { margin: 0; }
.liste-coches { list-style: none; padding: 0; }
.liste-coches li { position: relative; padding-left: 1.6rem; margin-bottom: .45rem; }
.liste-coches li::before { content: ""; position: absolute; left: 0; top: .45em; width: .9rem; height: .5rem; border-left: 3px solid var(--accent-texte); border-bottom: 3px solid var(--accent-texte); transform: rotate(-45deg); }
.mosaique { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.mosaique img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }

.confirmation { text-align: center; padding-block: 2rem; }
/* ---------- Lettre d'information : après l'inscription, confirmée, échec d'envoi ---------- */
.lettre-etat { text-align: center; padding-block: 2rem 1rem; }
.lettre-etat__picto { width: 64px; height: 64px; fill: var(--accent-texte); stroke: none; margin-bottom: .5rem; }
.lettre-etat__picto--alerte { fill: var(--erreur); }
.lettre-etat__chapo { font-size: 1.1rem; }
.lettre-etat__chapo strong { overflow-wrap: anywhere; }
.lettre-etapes { list-style: none; padding: 0; margin: 1.5rem auto; max-width: 34rem; text-align: left; display: grid; gap: .75rem; }
.lettre-etapes li { display: flex; gap: .85rem; align-items: flex-start; background: var(--fond-teinte); border-radius: var(--rayon); padding: .85rem 1rem; }
.lettre-etapes__num { flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-bouton); color: #fff; font-weight: 700; display: grid; place-items: center; }
.lettre-etapes strong { overflow-wrap: anywhere; }
.lettre-etat__aide { max-width: 34rem; margin: 0 auto; border-top: 1px solid var(--bord); padding-top: 1.25rem; }
.lettre-etat__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1rem; }
.lettre-etat__actions form { margin: 0; }
.aide-champ { font-size: .9rem; color: var(--encre-2); margin: .35rem 0 0; }
.form-lettre__aide { font-size: .85rem; color: #cfd2d6; margin: -.25rem 0 .6rem; }
.confirmation .actions { justify-content: center; }
.texte-legal h2 { margin-top: 2rem; }
.tableau-defilant { overflow-x: auto; margin-bottom: 1rem; }
.tableau-defilant table { min-width: 620px; }
/* ---------- Plan du site ---------- */
/* Ajout à l'agenda : un seul bouton, le choix ne s'ouvre qu'ensuite (balise native <details>). */
.agenda { margin-top: .9rem; }
.agenda__bouton { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; list-style: none; }
.agenda__bouton::-webkit-details-marker { display: none; }
.agenda__bouton::after { content: "▾"; font-size: .85em; }
.agenda[open] .agenda__bouton::after { content: "▴"; }
.agenda__choix { margin-top: .6rem; border: 1px solid var(--bord); border-radius: var(--rayon); padding: .9rem 1rem; background: var(--fond-teinte); max-width: 420px; }
.agenda__question { font-weight: 700; margin: 0 0 .5rem; }
.agenda__choix ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.agenda__choix a { display: flex; flex-direction: column; gap: .1rem; min-height: 44px; justify-content: center; padding: .5rem .75rem; background: var(--fond); border: 1px solid var(--bord); border-radius: 8px; text-decoration: none; color: var(--encre); }
.agenda__choix a:hover { border-color: var(--accent); }
.agenda__choix a span { font-size: .85rem; color: var(--encre-2); }

.plan__sommaire { position: sticky; top: 68px; z-index: 5; background: var(--fond); padding-block: .5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--bord); overflow-x: auto; }
.plan__sommaire ul { list-style: none; display: flex; gap: .5rem; padding: 0 0 .25rem; margin: 0; }
.plan__sommaire a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .4rem .9rem; white-space: nowrap; border: 1px solid var(--bord); border-radius: 999px; text-decoration: none; color: var(--encre); font-weight: 600; }
.plan__sommaire a:hover { border-color: var(--accent-texte); color: var(--accent-texte); }
.plan__nb { font-size: .78rem; font-weight: 700; background: var(--fond-teinte); color: var(--encre-2); border-radius: 999px; padding: 0 .5rem; }
.plan__bloc { padding-top: 1.5rem; scroll-margin-top: 130px; outline: none; }
.plan__bloc h2 { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; border-bottom: 2px solid var(--accent); padding-bottom: .4rem; }
.plan__liste { list-style: none; padding: 0; margin: 0; columns: 1; }
@media (min-width: 640px) { .plan__liste { columns: 2; column-gap: 2rem; } }
@media (min-width: 1000px) { .plan__liste { columns: 3; } }
.plan__liste li { break-inside: avoid; margin-bottom: .45rem; }
.plan { padding-left: 1.2rem; }
.plan li { margin-bottom: .35rem; }

/* ---------- Pied de page ---------- */
.pied { background: var(--sombre); color: #cfd2d6; margin-top: auto; border-top: 4px solid var(--accent); font-size: .95rem; }
.pied a { color: #fff; }
/* Lettre d'information (bloc conservé tel quel) */
.pied__lettre { background: var(--sombre-2); border-bottom: 1px solid #2c2e32; }
.pied__lettre-in { display: grid; gap: 1rem 2.5rem; padding-block: 1.75rem; align-items: start; }
@media (min-width: 900px) { .pied__lettre-in { grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); align-items: center; } }
.pied__lettre-texte p { margin: 0; color: #b8bcc2; }
.pied__titre { font-size: 1.05rem; color: #fff; margin-bottom: .75rem; }
.pied__lettre .pied__titre { margin-bottom: .25rem; }
.form-lettre label { color: #fff; }
.form-lettre__ligne { display: flex; gap: .5rem; margin-bottom: .75rem; }
.form-lettre__ligne input { flex: 1; min-width: 0; border-color: #4a4d52; }
.form-lettre .case { font-size: .85rem; color: #cfd2d6; margin-bottom: 0; }
.form-lettre .case input { accent-color: var(--accent); }
.form-lettre__desinscription { margin: .75rem 0 0; font-size: .85rem; }
.form-lettre__desinscription a { color: #cfd2d6; text-decoration: underline; text-underline-offset: 2px; }
.form-lettre__desinscription a:hover, .form-lettre__desinscription a:focus-visible { color: #fff; }
@media (max-width: 699.98px) {
  .pied__lettre-in { padding-block: 1.25rem; }
  .pied__lettre-texte p { font-size: .9rem; }
}
.liste-simple { list-style: none; padding: 0; margin: 0 0 1rem; }
.liste-simple li { margin-bottom: .3rem; }

/* Tuiles d'action d'abord (proposition 2 retenue le 16/10/2026). Tout est dans .pied ; aucune colonne ni palier codé en dur :
   auto-fit / flex-wrap font apparaître ou disparaître les tuiles et les zones selon les données. */
.pied { font-size: .95rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied a, .pied p, .pied dd, .pied dt, .pied li { overflow-wrap: anywhere; }
.pied .conteneur { min-width: 0; }

/* ---- Rangée de tuiles ---- */
.pied-haut { background: var(--sombre-2); border-bottom: 1px solid #2c2e32; padding-block: 1.25rem; }
.pied-tuiles { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.pied-tuile { display: flex; align-items: center; gap: .9rem; min-height: 72px; height: 100%; padding: .75rem 1rem; background: var(--sombre);
  border: 1px solid #34373c; border-radius: 12px; text-decoration: none; color: #fff; transition: border-color .15s, background .15s; }
.pied-tuile:hover { border-color: var(--accent); background: #1b1c1f; }
.pied-pastille { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; }
.pied-tuile--mail .pied-pastille, .pied-tuile--form .pied-pastille { background: transparent; border: 2px solid var(--accent); }
.pied-texte { display: grid; gap: .1rem; min-width: 0; }
.pied-kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #b8bcc2; }
.pied-valeur { font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.pied-tuile--tel .pied-valeur { white-space: nowrap; }
.pied-tuile--mail .pied-valeur, .pied-tuile--form .pied-valeur { font-size: 1rem; }
/* Large écran : les horaires restent visibles même si le <details> a été refermé sous 700 px puis la fenêtre agrandie. */
@media (min-width: 700px) { .pied-service::details-content { content-visibility: visible; display: block; } }

/* ---- Bande : adresse + horaires | liens | réseaux ---- */
.pied-bande { padding-block: 2rem; }
.pied-zones { display: flex; flex-wrap: wrap; gap: 2rem 3rem; align-items: flex-start; }
.pied-zone--horaires { flex: 3 1 320px; min-width: 0; }
.pied-zone--reseaux { flex: 2 1 260px; min-width: 0; }
.pied-titre { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin: 0 0 .75rem; padding-bottom: .4rem; border-bottom: 2px solid var(--accent); display: inline-block; }
.pied-adresse { display: flex; gap: .5rem; align-items: flex-start; margin: 0 0 1rem; color: #e4e6e9; }
.pied-adresse svg { flex: none; margin-top: .15rem; color: var(--accent); }
.pied-services { display: grid; gap: 1rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.pied-service > summary { list-style: none; cursor: default; }
.pied-service > summary::-webkit-details-marker { display: none; }
.pied-service-titre { font-size: .95rem; color: #fff; margin: 0 0 .35rem; }
.pied-horaires { margin: 0; }
.pied-horaires div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem .75rem; padding: .25rem 0; border-bottom: 1px solid #2c2e32; font-size: .9rem; }
.pied-horaires dt { color: #b8bcc2; }
.pied-horaires dd { margin: 0; color: #fff; }

/* Autres e-mails (au-delà du premier, porté par la tuile). */
.pied-autres { margin: 0 0 1rem; color: #b8bcc2; }
.pied-autres a { display: inline-block; padding-block: .2rem; }

/* Réseaux : cartes en pastille (logo rond + nom visible à côté), nombre libre. */
.pied-reseaux { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.pied-reseaux a { display: flex; align-items: center; gap: .6rem; min-height: 56px; padding: .4rem .9rem .4rem .5rem; border: 1px solid #34373c; border-radius: 999px; text-decoration: none; transition: border-color .15s; }
.pied-reseaux a:hover { border-color: var(--accent); }
.pied-rond { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); font-weight: 700; font-size: 1.1rem; color: #fff; }
.pied-nom { color: #fff; min-width: 0; }

/* ---- Lettre (HTML conservé), liens à plat, légal, copyright, voisin ---- */
.pied .pied__lettre { border-top: 1px solid #2c2e32; }
/* Tous les groupes dans un même flux centré : nav et ul disparaissent de la mise en page (display: contents), les liens se répartissent seuls. */
.pied-plat { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 2rem; padding-top: 1.75rem; }
.pied-groupe, .pied-groupe ul { display: contents; }
.pied-plat a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: #fff; text-align: center; }
.pied-plat a:hover, .pied-legal a:hover { text-decoration: underline; }
.pied-legal ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.75rem; padding-bottom: 1rem; }
.pied-legal a { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; color: #a9adb3; text-decoration: none; }
.pied-copy { margin: 0; padding-block: 1rem; border-top: 1px solid #2c2e32; text-align: center; font-size: .82rem; color: #a9adb3; }
.pied-voisin { background: #0c0c0d; border-top: 1px solid #2c2e32; padding-block: .6rem; font-size: .88rem; text-align: center; color: #b8bcc2; }
.pied-voisin p { margin: 0 auto; }

/* ---- Téléphone : tuiles empilées ≥ 56 px, horaires repliables, liens ensuite ---- */
@media (max-width: 699.98px) {
  .pied-haut { padding-block: .9rem; }
  .pied-tuiles { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .pied-tuile { min-height: 64px; }
  .pied-bande { padding-block: 1.25rem; }
  .pied-zones { gap: 1.5rem; }
  .pied-zone { flex-basis: 100%; }
  .pied-services { gap: 0; grid-template-columns: minmax(0, 1fr); }
  .pied-service { border-top: 1px solid #2c2e32; }
  .pied-service:last-child { border-bottom: 1px solid #2c2e32; }
  .pied-service > summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 56px; }
  .pied-service > summary::after { content: "▾"; color: var(--accent); transition: transform .15s; }
  .pied-service[open] > summary::after { transform: rotate(180deg); }
  .pied-service-titre { margin: 0; }
  .pied-horaires { padding-bottom: .75rem; }
  .pied-plat { gap: 0 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { .pied * { transition: none !important; } }

/* Lien du voisin dans le bandeau : sa couleur pure (≥ 4,5:1 sur le fond sombre dans les deux cas). */
.pied-voisin a { font-weight: 600; }
.pied-voisin--amc a { color: var(--marque-amc-accent); }
.pied-voisin--dsf a { color: var(--marque-dsf-accent); }

/* ---------- « Tout modèle se commande neuf » (vues/_commande-neuf.php) ---------- */
.commande-neuf {
  display: grid; gap: 1rem; align-items: center;
  background: var(--accent-pale); border-left: 4px solid var(--accent);
  border-radius: var(--rayon); padding: 1.25rem; margin-block: 1.5rem;
}
.commande-neuf__titre { font-size: 1.15rem; margin: 0 0 .35rem; }
.commande-neuf p { margin: 0; }
.commande-neuf .bouton { justify-self: start; }
@media (min-width: 768px) {
  .commande-neuf { grid-template-columns: 1fr auto; gap: 1.5rem; padding: 1.25rem 1.5rem; }
  .commande-neuf .bouton { justify-self: end; white-space: nowrap; }
}

/* === Curseur à deux poignées (P3) === */
/* vues/_curseur.php + assets/curseur.js. Sans JS : seuls .cur-champs est visible (deux
   <input type=number>) — .cur-piste n'existe pas dans le HTML statique, curseur.js l'ajoute. */
.cur { display: flex; flex-direction: column; gap: .6rem; }
.cur-entete { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.cur-titre { font-weight: 700; font-size: .95rem; }
.cur-max { font-size: .85rem; color: var(--encre-2); white-space: nowrap; }

/* Piste : deux <input type=range> superposés dans le même rectangle. La plage colorée entre
   les poignées n'est jamais un style= dans le HTML : curseur.js pose --g-min/--g-max en CSSOM
   (el.style.setProperty), ce dégradé s'en sert. Le rectangle fait 44px de haut (zone tactile),
   la ligne visible de la piste est fine et centrée dedans. */
.cur-piste {
  position: relative; height: 44px;
  --g-min: 0%; --g-max: 100%;
}
.cur-range {
  -webkit-appearance: none; appearance: none;
  position: absolute; inset: 0; width: 100%; height: 44px; margin: 0;
  background: transparent; pointer-events: none; /* seule la poignée (::thumb) réagit au doigt */
  z-index: var(--z, 3);
}
.cur-range:focus-visible { outline: none; } /* le focus visible se pose sur la poignée elle-même */
/* Ligne de piste (Firefox : ::-moz-range-track ; Chrome/Safari : ::-webkit-slider-runnable-track).
   Un seul des deux curseurs superposés dessine réellement le dégradé (l'autre reste transparent),
   sinon les deux pistes se chevauchent et assombrissent la couleur. */
.cur-range::-webkit-slider-runnable-track { height: 4px; background: transparent; border-radius: 999px; }
.cur-range::-moz-range-track { height: 4px; background: transparent; border-radius: 999px; }
.cur-range--min::-webkit-slider-runnable-track {
  background: linear-gradient(to right,
    var(--bord) 0%, var(--bord) var(--g-min),
    var(--accent) var(--g-min), var(--accent) var(--g-max),
    var(--bord) var(--g-max), var(--bord) 100%);
}
.cur-range--min::-moz-range-track {
  background: linear-gradient(to right,
    var(--bord) 0%, var(--bord) var(--g-min),
    var(--accent) var(--g-min), var(--accent) var(--g-max),
    var(--bord) var(--g-max), var(--bord) 100%);
}
/* Poignée : 22px visibles, mais l'input qui la porte fait 44px de haut → la zone tactile
   verticale est déjà de 44px (le survol/tap n'importe où sur la hauteur du composant atteint
   la poignée). */
.cur-range::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--fond);
  box-shadow: 0 1px 3px rgb(0 0 0 / 25%);
  cursor: pointer;
  /* Chrome/Safari ne centrent PAS le thumb sur la piste : contrairement à Firefox
     (::-moz-range-thumb, centré automatiquement), il faut le remonter de
     (hauteur piste 4px − hauteur poignée 22px) / 2 = -9px, sinon la poignée déborde
     sous la piste. */
  margin-top: -9px;
}
.cur-range::-moz-range-thumb {
  pointer-events: auto;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--fond);
  box-shadow: 0 1px 3px rgb(0 0 0 / 25%);
  cursor: pointer;
}
.cur-range:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--accent); outline-offset: 2px; }
.cur-range:focus-visible::-moz-range-thumb { outline: 3px solid var(--accent); outline-offset: 2px; }

.cur-champs { display: flex; gap: .75rem; }
.cur-champ { flex: 1; display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 600; }
.cur-champ__lib { color: var(--encre-2); font-weight: 600; }
.cur-champ input[type=number] { width: 100%; min-height: 44px; }
/* Placeholder = « pas de filtre, voici la borne » : couleur atténuée mais volontairement fixée
   (les navigateurs appliquent des opacités de placeholder très variables, parfois illisibles) —
   #4b5059 (--encre-2) sur --fond blanc reste ≥ 4.5:1 (contraste mesuré ~8:1), tout en restant
   nettement plus clair que le texte d'une valeur saisie (--encre), donc distinguable au coup d'œil. */
.cur-champ input[type=number]::placeholder { color: var(--encre-2); opacity: 1; }

/* === Publicité de l'autre concession (P2) === */
/* Fidèle à la charte RÉELLE du voisin, pas une approximation : même fond sombre #151515 que
   SON en-tête (--sombre, commun aux deux sites), SON logo blanc posé à même le fond — sans
   plaque — comme dans .entete__logo, un filet + petits accents à SA couleur pure exacte
   (--marque-<cle>-accent) comme le border-bottom de .entete, et un bouton « Découvrir » aux
   couleurs de SES boutons (--marque-<cle>-bouton / -bouton-survol, texte blanc). Posé par les
   classes …--amc/--dsf (jamais un style="…"), qui ne font que RACCORDER ces trois familles de
   variables — --pv-accent/-bouton/-bouton-survol/-pale — à la source unique déclarée en tête de
   fichier : jamais de hex dupliqué ici. AMC montre DSF en vert Kawasaki, DSF montre AMC en bleu
   Suzuki. Contrastes mesurés (fond #151515, L≈0,00747) : texte blanc ≈ 18,3:1 (bien au-delà de
   l'AAA) ; bouton (texte blanc dessus) AMC ≈ 6,9:1, DSF ≈ 6,3:1 (AA, ≥ 4,5:1) ; filet/label en
   couleur pure sur ce fond : AMC ≈ 4,64:1, DSF ≈ 6,33:1 (AA, ≥ 4,5:1 — décoratif de toute façon,
   pas soumis à l'exigence de contraste de texte). */
.pub-voisin, .carte-voisin { background: var(--sombre); color: #fff; border-top: 4px solid var(--pv-accent); }
.pub-voisin--amc, .carte-voisin--amc {
  --pv-accent: var(--marque-amc-accent); --pv-bouton: var(--marque-amc-bouton);
  --pv-bouton-survol: var(--marque-amc-bouton-survol); --pv-pale: var(--marque-amc-pale);
}
.pub-voisin--dsf, .carte-voisin--dsf {
  --pv-accent: var(--marque-dsf-accent); --pv-bouton: var(--marque-dsf-bouton);
  --pv-bouton-survol: var(--marque-dsf-bouton-survol); --pv-pale: var(--marque-dsf-pale);
}

.pub-voisin__in { display: grid; gap: 1.75rem; padding-block: clamp(2rem, 5vw, 3rem); }
@media (min-width: 900px) { .pub-voisin__in { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 2.5rem; } }
.pub-voisin__logo { margin: 0 0 1rem; }
/* Logo posé directement sur le fond sombre, comme .entete__logo img sur le vrai site du voisin
   (ce sont d'ailleurs EXACTEMENT les mêmes fichiers PNG) : aucune plaque, aucun padding. */
.pub-voisin__logo-img, .carte-voisin__logo-img { display: block; height: 34px; width: auto; }
.pub-voisin__surtitre {
  text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 800;
  color: var(--pv-accent); margin: 0 0 .35rem;
}
.pub-voisin__titre { margin: 0 0 .5rem; color: #fff; }
.pub-voisin__accroche { margin: 0 0 1rem; font-size: 1.05rem; max-width: 46ch; color: #fff; }
.pub-voisin__atouts { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin: 0 0 1.25rem; padding: 0; }
.pub-voisin__atouts li {
  background: rgb(255 255 255 / 8%); border: 1px solid var(--pv-accent); border-radius: 999px;
  padding: .35rem .9rem; font-size: .88rem; font-weight: 700; color: #fff;
}
.pub-voisin__photo { border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.pub-voisin__photo-img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Bouton « Découvrir <voisin> » : couleurs de bouton du voisin (pas bouton--clair — le blanc
   uni ne dit rien de sa marque), même forme que .bouton (voir markup, classe .bouton conservée). */
.pub-voisin .pub-voisin__cta, .carte-voisin .carte-voisin__cta {
  background: var(--pv-bouton); color: #fff; border-color: transparent;
}
.pub-voisin .pub-voisin__cta:hover, .carte-voisin .carte-voisin__cta:hover { background: var(--pv-bouton-survol); color: #fff; }
/* Animation discrète à l'apparition, posée par voisin.js (IntersectionObserver). « .js » n'est
   ajouté sur <html> que si le script tourne : sans JavaScript le bloc reste visible tel quel.
   Le filet media query évite de dépendre du seul JS pour respecter « moins de mouvement ». */
.js .pub-voisin[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.js .pub-voisin[data-reveal].est-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .pub-voisin[data-reveal] { opacity: 1; transform: none; } }

/* Carte « voisin » en fin de grille (page Neuf) : format compact, même identité (fond sombre,
   filet à SA couleur, logo direct, bouton à SES couleurs). */
.carte-voisin { border-radius: var(--rayon); padding: 1.25rem 1.5rem; margin-block: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.carte-voisin__logo { margin: 0; flex-shrink: 0; }
.carte-voisin__texte { margin: 0; flex: 1 1 260px; font-weight: 600; color: #fff; }
.carte-voisin__cta { flex-shrink: 0; white-space: nowrap; }


/* === Événements & planning (P6) === */
/* Trois espaces de noms, sans collision avec l'existant : .evx-* (page et liste d'événements),
   .sem-* (planning hebdomadaire de l'établissement), .ajag-* (pop-up « Ajouter à mon agenda »).
   Seule la teinte d'accent change entre AMC et DSF (variables --accent* de site.css). */

.evx-ico { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; stroke: none; }

/* ---------- En-tête de page ---------- */
.evx-tete { display: grid; gap: .9rem 2rem; align-items: end; margin-bottom: 1.25rem; }
.evx-tete h1 { margin-bottom: .35rem; }
.evx-tete .page__intro { margin: 0; max-width: none; }
.evx-tete__outils { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
@media (min-width: 900px) {
  .evx-tete { grid-template-columns: minmax(0, 1fr) auto; }
  .evx-tete__outils { flex-direction: column; align-items: flex-end; }
}
.evx-bouton-planning { gap: .5rem; }
/* Sur le planning, l'en-tête n'offre plus le bouton (on y est) : le statut est repris dans le planning. */
.evx-page--planning .evx-tete__outils { display: none; }
.evx-bouton-planning .evx-ico { width: 1.25rem; height: 1.25rem; }

/* Statut d'ouverture (« Ouvert maintenant · ferme à 18h ») */
.evx-statut { display: inline-flex; align-items: center; gap: .5rem; margin: 0; font-size: .9rem; font-weight: 650; color: var(--encre-2); }
.evx-statut__point { width: .6rem; height: .6rem; border-radius: 50%; background: #8a8f98; flex: none; }
.evx-statut--ouvert { color: var(--succes); }
.evx-statut--ouvert .evx-statut__point { background: #1e9e3e; box-shadow: 0 0 0 3px rgb(30 158 62 / 20%); }
.evx-statut--ferme .evx-statut__point { background: var(--erreur); }

/* ---------- Badges communs ---------- */
.evx-surtitre { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .65rem; margin: 0; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.evx-surtitre__une { color: var(--accent-texte); }
.evx-type { color: var(--encre-2); }
.evx-etat {
  display: inline-flex; align-items: center; flex: none; padding: .12rem .55rem; border-radius: 999px;
  font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1.5;
  background: var(--fond-teinte); color: var(--encre-2); white-space: nowrap;
}
.evx-etat--aujourdhui { background: var(--erreur); color: #fff; }
.evx-etat--encours { background: var(--succes); color: #fff; }
.evx-etat--demain, .evx-etat--bientot { background: var(--accent-pale); color: var(--accent-texte); }

.evx-meta { display: flex; flex-wrap: wrap; gap: .15rem 1.1rem; margin: 0; color: var(--encre-2); font-size: .92rem; }
.evx-meta__item { display: inline-flex; align-items: flex-start; gap: .4rem; }
.evx-meta__item .evx-ico { margin-top: .2em; }
.evx-meta .evx-ico { color: var(--accent-texte); }
.evx-meta__type { font-weight: 700; color: var(--encre); }

/* ---------- Actions (agenda + planning) ---------- */
.evx-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; }
.evx-actions--une { grid-column: 1 / -1; }
.evx-actions .bouton { gap: .5rem; }
.evx-bouton-mini { min-height: 40px; padding: .4rem .85rem; font-size: .88rem; border-width: 1.5px; }
.evx-bouton-mini.bouton--lien { text-decoration: none; }
.evx-bouton-mini.bouton--lien:hover { text-decoration: underline; }
/* Repli sans JavaScript : <details> natif avec les quatre liens d'agenda. */
.evx-agenda > summary { list-style: none; }
.evx-agenda > summary::-webkit-details-marker { display: none; }
.evx-agenda__choix { margin-top: .5rem; padding: .85rem; border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--fond-teinte); max-width: 24rem; }
.evx-agenda__question { font-weight: 700; margin: 0 0 .5rem; }
.evx-agenda__choix ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.evx-agenda__choix a { display: flex; flex-direction: column; min-height: 44px; justify-content: center; padding: .45rem .75rem; background: var(--fond); border: 1px solid var(--bord); border-radius: 10px; text-decoration: none; color: var(--encre); line-height: 1.3; }
.evx-agenda__choix a:hover { border-color: var(--accent); }
.evx-agenda__choix a span { font-size: .84rem; color: var(--encre-2); }

/* ---------- Prochain événement, à la une ---------- */
.evx-une {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 1.25rem;
  padding: 1.1rem 1.1rem 1.1rem 1.35rem; border: 1px solid var(--bord); border-radius: 18px;
  background: linear-gradient(135deg, var(--accent-pale), var(--fond) 55%); box-shadow: var(--ombre);
  overflow: hidden; scroll-margin-top: 7rem; outline: none;
}
.evx-une::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--accent); }
.evx-une__date {
  margin: 0; align-self: start; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 4.5rem; padding: .6rem .25rem .65rem; border-radius: 14px; background: var(--accent-bouton); color: #fff;
  line-height: 1.05; text-align: center; box-shadow: 0 6px 16px rgb(0 0 0 / 14%);
}
.evx-une__jsem, .evx-une__mois { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.evx-une__num { font-size: 2.1rem; font-weight: 800; margin: .1rem 0; }
.evx-une__corps { min-width: 0; display: flex; flex-direction: column; gap: .45rem; }
.evx-une__titre { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.75rem); margin: 0; }
.evx-une__desc { margin: 0; color: var(--encre-2); max-width: 68ch; }
@media (min-width: 900px) {
  .evx-une { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 1.25rem 1.5rem 1.25rem 1.85rem; gap: 1rem 1.75rem; }
  .evx-actions--une { grid-column: auto; flex-direction: column; align-items: stretch; }
  .evx-une__date { width: 6rem; padding-block: .85rem; }
  .evx-une__num { font-size: 2.75rem; }
}
@media (max-width: 479.98px) {
  .evx-une { grid-template-columns: 1fr; }
  .evx-une__date { flex-direction: row; gap: .4rem; width: auto; justify-self: start; padding: .4rem .8rem; }
  .evx-une__num { font-size: 1.35rem; margin: 0; }
  .evx-actions--une > * { flex: 1 1 100%; }
  .evx-actions--une .bouton { width: 100%; }
}

/* ---------- Événements suivants : lignes compactes par mois ---------- */
.evx-suite { margin-top: 1.25rem; }
.evx-suite__titre { font-size: 1.1rem; margin: 0 0 .15rem; }
.evx-mois { margin-top: .6rem; }
.evx-mois__titre {
  display: flex; align-items: center; gap: .75rem; margin: 0 0 .4rem; font-size: .74rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; color: var(--encre-2);
}
.evx-mois__titre::after { content: ""; flex: 1; height: 1px; background: var(--bord); }
.evx-lignes { list-style: none; margin: 0; padding: 0; border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--fond); overflow: hidden; }
.evx-ligne {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .55rem .9rem; align-items: start;
  padding: .7rem .85rem; scroll-margin-top: 7rem; outline: none; transition: background-color .3s, box-shadow .3s;
}
.evx-ligne + .evx-ligne { border-top: 1px solid var(--bord); }
.evx-ligne:hover { background: var(--fond-teinte); }
.evx-ligne .evx-actions { grid-column: 1 / -1; }
.evx-pastille {
  margin: 0; width: 3.1rem; height: 3.1rem; border-radius: 12px; background: var(--accent-bouton); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
}
.evx-pastille__num { font-size: 1.25rem; font-weight: 800; }
.evx-pastille__mois { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-top: .15rem; }
/* Titre + état sur la 1re ligne ; quand, où et « Détails » sur la 2e (le détail ouvert passe dessous). */
.evx-ligne__corps { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .1rem 1.1rem; }
.evx-ligne__tete { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .6rem; }
.evx-details[open] { flex-basis: 100%; }
.evx-details > summary { display: inline-flex; align-items: center; gap: .25rem; list-style: none; }
.evx-details > summary::-webkit-details-marker { display: none; }
.evx-details > summary::after { content: ""; width: .4rem; height: .4rem; margin-top: -.2rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.evx-details[open] > summary::after { margin-top: .15rem; transform: rotate(-135deg); }
.evx-ligne__titre { font-size: 1.02rem; margin: 0; line-height: 1.3; }
.evx-ligne .evx-meta { font-size: .86rem; }
.evx-details > summary { cursor: pointer; width: fit-content; font-size: .84rem; font-weight: 650; color: var(--accent-texte); min-height: 24px; }
.evx-details p { margin: .25rem 0 .1rem; color: var(--encre-2); font-size: .92rem; max-width: 70ch; }
@media (min-width: 1000px) {
  .evx-ligne { grid-template-columns: auto minmax(0, 1fr) auto; padding: .6rem 1rem; align-items: center; }
  .evx-ligne .evx-actions { grid-column: auto; justify-content: flex-end; flex-wrap: nowrap; }
}
.evx-texte-court { display: none; }
@media (max-width: 767.98px) {
  .evx-ligne .evx-actions { flex-wrap: nowrap; }
  .evx-ligne .evx-actions > :first-child { flex: 1 1 auto; }
  .evx-ligne .evx-actions .bouton { min-height: 44px; }
  .evx-ligne .evx-agenda__bouton { width: 100%; }
  .evx-ligne .evx-lien-planning { flex: none; border: 1.5px solid currentColor; }
  .evx-ligne .evx-texte-large { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .evx-ligne .evx-texte-court { display: inline; }
}

/* Événement visé par #evenement-<id> (lien de l'accueil ou retour du planning). */
@keyframes evx-eclat { from { background-color: var(--accent-pale); box-shadow: inset 5px 0 0 var(--accent); } }
.evx-ligne:target, .evx-ligne.est-cible { background: var(--accent-pale); box-shadow: inset 5px 0 0 var(--accent); }
.evx-ligne.est-cible { animation: evx-eclat 1.6s ease-out; }
.evx-une:target, .evx-une.est-cible { box-shadow: 0 0 0 3px var(--accent), var(--ombre); }
.evx-ligne:focus-visible, .evx-une:focus-visible { box-shadow: inset 0 0 0 3px var(--accent-texte); }

/* ---------- Planning de l'établissement ---------- */
.sem { --sem-cran: 11px; --sem-tete: 3.6rem; --sem-rouge: #d93025; }
.sem-retour { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; font-weight: 700; text-decoration: none; }
.sem-retour:hover { text-decoration: underline; }
.sem-tete { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.25rem; margin-bottom: .7rem; }
.sem-titre { margin: 0 auto 0 0; font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); outline: none; }
.sem-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.sem-nav__fleche {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--bord); background: var(--fond); color: var(--encre);
}
.sem-nav__fleche:hover { background: var(--fond-teinte); }
.sem-nav__fleche .evx-ico { width: 1.3rem; height: 1.3rem; }
.sem-nav__fleche.est-inactif { opacity: .35; }
.sem-nav__auj {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border: 1px solid var(--bord);
  border-radius: 999px; font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--encre);
}
.sem-nav__auj:hover { background: var(--fond-teinte); }
.sem-nav__auj[aria-current] { border-color: var(--accent-texte); color: var(--accent-texte); }
.sem-nav__plage { margin: 0 0 0 .45rem; font-weight: 750; white-space: nowrap; }
@media (max-width: 479.98px) { .sem-nav__plage { flex-basis: 100%; margin: .15rem 0 0; font-size: 1.05rem; } }

.sem-legende { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: 0 0 .8rem; padding: 0; font-size: .82rem; color: var(--encre-2); }
.sem-legende li { display: inline-flex; align-items: center; gap: .45rem; }
.sem-puce { width: .9rem; height: .9rem; border-radius: 4px; flex: none; }
.sem-puce--vente { background: var(--accent-pale); box-shadow: inset 0 0 0 1px var(--accent); }
.sem-puce--atelier { background: #eceef1; box-shadow: inset 0 0 0 1px #b9bfc8; }
.sem-puce--evt { background: var(--accent-bouton); }
.sem-puce--ferme { background: repeating-linear-gradient(135deg, #cfd4da 0 1.5px, #fff 1.5px 4.5px); box-shadow: inset 0 0 0 1px var(--bord); }
.sem-puce--maint { height: 2px; width: 1.1rem; border-radius: 1px; background: var(--sem-rouge); }

/* Bandeau des jours (téléphone et tablette) */
.sem-choix { display: none; }
.sem-choix ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .2rem; }
.sem-choix__jour {
  display: flex; flex-direction: column; align-items: center; gap: .1rem; min-height: 44px; padding: .35rem 0 .3rem;
  border-radius: 14px; text-decoration: none; color: var(--encre);
}
.sem-choix__abbr { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--encre-2); }
.sem-choix__num { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; font-size: 1.02rem; font-weight: 750; }
.sem-choix__jour.est-auj .sem-choix__num { color: var(--accent-texte); box-shadow: inset 0 0 0 2px var(--accent); }
.sem-choix__jour[aria-current] { background: var(--fond-teinte); }
.sem-choix__jour[aria-current] .sem-choix__num { background: var(--accent-bouton); color: #fff; box-shadow: none; }
.sem-choix__jour.est-ferme .sem-choix__abbr, .sem-choix__jour.est-ferme .sem-choix__num { color: var(--encre-2); }
.sem-choix__point { width: 5px; height: 5px; border-radius: 50%; }
.sem-choix__point.a-evt { background: var(--accent-bouton); }

/* Vue agenda par jour (téléphone et tablette) */
.sem-regle, .sem-bande, .sem-ferme, .sem-maintenant { display: none; }
.sem-jours { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.sem-jour { border: 1px solid var(--bord); border-radius: var(--rayon); padding: .85rem 1rem; background: var(--fond); scroll-margin-top: 7rem; }
.sem-jour__tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem; margin: 0 0 .5rem; font-size: 1.08rem; }
.sem-jour__abbr { display: none; }
.sem-jour__auj {
  margin-left: auto; align-self: center; padding: .1rem .55rem; border-radius: 999px; background: var(--accent-bouton);
  color: #fff; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
}
.sem-jour__infos { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .65rem; }
.sem-info { padding: .2rem .65rem; border-radius: 999px; font-size: .82rem; background: #eceef1; color: var(--encre-2); }
.sem-info--vente { background: var(--accent-pale); color: var(--accent-texte); font-weight: 650; }
.sem-info--vente.est-ferme { background: repeating-linear-gradient(135deg, #e6e9ed 0 2px, #f7f8f9 2px 6px); color: var(--encre-2); }
.sem-evts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.sem-evt__lien {
  display: flex; flex-direction: column; padding: .55rem .8rem; border-radius: 10px; background: var(--accent-bouton);
  color: #fff; text-decoration: none; line-height: 1.3;
}
.sem-evt__lien:hover { background: var(--accent-bouton-survol); color: #fff; }
.sem-evt__lien:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; }
.sem-evt__heure { font-size: .8rem; font-weight: 600; color: rgb(255 255 255 / 90%); }
.sem-evt__titre { font-weight: 700; }
.sem-evt--cible .sem-evt__lien { box-shadow: 0 0 0 3px var(--fond), 0 0 0 5px var(--encre); }
.sem-jour__vide { margin: 0; font-size: .88rem; color: var(--encre-2); }
.sem-note { margin: .75rem 0 0; font-size: .82rem; color: var(--encre-2); }

@media (max-width: 999.98px) {
  .sem-choix { display: block; margin: 0 -.25rem .75rem; }
  .sem-legende { display: none; }
  .sem--js .sem-jour:not(.est-choisi) { display: none; }
  .sem--js .sem-jour.est-choisi { animation: ajag-fondu .2s ease-out; }
}

/* Grille horaire (grand écran ; en dessous, vue agenda par jour) */
@media (min-width: 1000px) {
  .sem-grille {
    display: grid; grid-template-columns: 3.1rem minmax(0, 1fr); border: 1px solid var(--bord);
    border-radius: var(--rayon); background: var(--fond); overflow: hidden; box-shadow: var(--ombre);
  }
  .sem-regle { display: grid; grid-template-rows: repeat(48, var(--sem-cran)); padding-top: var(--sem-tete); }
  .sem-regle__h {
    align-self: start; transform: translateY(-50%); padding-right: .45rem; text-align: right;
    font-size: .7rem; line-height: 1; color: var(--encre-2); font-variant-numeric: tabular-nums;
  }
  .sem-regle__h.sem-l-1 { transform: translateY(2px); }
  .sem-jours { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; }
  .sem-jour { display: flex; flex-direction: column; padding: 0; border: 0; border-left: 1px solid var(--bord); border-radius: 0; background: none; }
  .sem-jour__tete {
    height: var(--sem-tete); margin: 0; flex-direction: column; flex-wrap: nowrap; align-items: center; justify-content: center;
    gap: .1rem; border-bottom: 1px solid var(--bord); font-size: 1rem;
  }
  .sem-jour__abbr { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--encre-2); }
  .sem-jour__num { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; font-size: 1.15rem; font-weight: 750; line-height: 1; }
  .sem-jour--auj .sem-jour__abbr { color: var(--accent-texte); }
  .sem-jour--auj .sem-jour__num { background: var(--accent-bouton); color: #fff; }
  .sem-jour--passe .sem-jour__num { color: var(--encre-2); font-weight: 600; }
  .sem-jour__long, .sem-jour__mois, .sem-jour__auj, .sem-jour__infos, .sem-jour__vide {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .sem-jour__corps {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(48, var(--sem-cran));
    background-image: repeating-linear-gradient(to bottom, var(--bord) 0 1px, transparent 1px calc(var(--sem-cran) * 4));
  }
  .sem-jour--ferme .sem-jour__corps {
    background-image:
      repeating-linear-gradient(135deg, rgb(22 24 27 / 5%) 0 2px, transparent 2px 8px),
      repeating-linear-gradient(to bottom, var(--bord) 0 1px, transparent 1px calc(var(--sem-cran) * 4));
  }
  .sem-jour--passe .sem-jour__corps { background-color: rgb(22 24 27 / 2%); }
  .sem-bande { display: block; grid-column: 1; margin: 1px 3px 0; border-radius: 6px; background: var(--accent-pale); }
  .sem-bande--atelier { margin-left: 58%; background: #eceef1; }
  .sem-bande__lib {
    display: block; padding: .25rem .4rem 0; font-size: .64rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .06em; color: var(--accent-texte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .sem-bande--atelier .sem-bande__lib { color: var(--encre-2); }
  .sem-ferme {
    display: block; grid-column: 1; grid-row: 1 / 9; align-self: center; justify-self: center; padding: .2rem .55rem;
    border-radius: 999px; background: var(--fond); box-shadow: inset 0 0 0 1px var(--bord);
    font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--encre-2);
  }
  .sem-maintenant {
    display: block; grid-column: 1; align-self: start; position: relative; z-index: 3; height: 0;
    border-top: 2px solid var(--sem-rouge); margin-top: -1px; pointer-events: none;
    transform: translateY(calc(var(--sem-dec, 0) * var(--sem-cran)));
  }
  .sem-maintenant::before { content: ""; position: absolute; left: -1px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--sem-rouge); }
  .sem-evts { display: contents; }
  .sem-evt { grid-column: 1; z-index: 2; display: flex; min-height: 0; margin: 1px 4px 1px 4px; }
  /* Chevauchement : comme dans un agenda, le second bloc se pose en décalé par-dessus le premier,
     détouré d'un liseré de la couleur du fond (le haut du premier reste lisible en pleine largeur). */
  .sem-evt--partage.sem-evt--voie2 { margin-left: 40%; z-index: 3; }
  .sem-evt--voie2 .sem-evt__lien { box-shadow: 0 0 0 2px var(--fond), 0 2px 6px rgb(0 0 0 / 22%); }
  .sem-evt__lien {
    flex: 1; min-height: 0; overflow: hidden; gap: .05rem; padding: .3rem .45rem; border-radius: 7px;
    box-shadow: 0 1px 2px rgb(0 0 0 / 18%), inset 3px 0 0 rgb(255 255 255 / 35%);
  }
  .sem-evt__heure { font-size: .72rem; }
  .sem-evt__titre { font-size: .8rem; line-height: 1.25; overflow-wrap: break-word; }
  .sem-evt--court .sem-evt__lien { flex-direction: row; align-items: center; gap: .35rem; white-space: nowrap; padding-block: 0; }
  .sem-evt--court .sem-evt__titre { overflow: hidden; text-overflow: ellipsis; }
  .sem-evt--cible .sem-evt__lien { box-shadow: 0 0 0 3px var(--fond), 0 0 0 5px var(--encre); animation: sem-eclat 1.4s ease-out 2; }
  .sem-note { text-align: right; }
}
@media (min-width: 1100px) { .sem { --sem-cran: 12px; } .sem-evt__titre { font-size: .84rem; } }
@keyframes sem-eclat { 50% { box-shadow: 0 0 0 3px var(--fond), 0 0 0 7px var(--accent); } }

/* ---------- Pop-up guidée « Ajouter à mon agenda » ---------- */
html.ajag-ouvert { overflow: hidden; }
.ajag {
  border: none; padding: 0; margin: auto; width: min(31rem, calc(100vw - 2rem)); max-width: none;
  max-height: min(92vh, 48rem); border-radius: 22px; background: var(--fond); color: var(--encre);
  box-shadow: 0 24px 70px rgb(0 0 0 / 30%); overflow: auto; overscroll-behavior: contain;
}
.ajag::backdrop { background: rgb(12 14 18 / 58%); }
.ajag[open] { animation: ajag-apparait .22s ease-out; }
@keyframes ajag-apparait { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes ajag-fondu { from { opacity: 0; } }
.ajag__in { padding: 1.1rem 1.35rem 1.4rem; }
.ajag__poignee { display: none; }
.ajag__entete { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.ajag__etapes {
  flex: 1; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin: 0; padding: 0;
  font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--encre-2);
}
.ajag__etapes li { display: flex; flex-direction: column; gap: .35rem; }
.ajag__etapes li::before { content: ""; height: 4px; border-radius: 2px; background: var(--bord); transition: background-color .25s; }
.ajag__etapes li.est-fait::before, .ajag__etapes li.est-actif::before { background: var(--accent); }
.ajag__etapes li.est-actif { color: var(--accent-texte); }
.ajag__fermer {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: none; border-radius: 50%;
  background: var(--fond-teinte); color: var(--encre); cursor: pointer;
}
.ajag__fermer:hover { background: var(--bord); }
.ajag__fermer svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }

.ajag__recap { display: flex; align-items: center; gap: .9rem; padding: .8rem .9rem; margin-bottom: 1.2rem; border-radius: 16px; background: var(--fond-teinte); }
.ajag__pastille {
  flex: none; margin: 0; width: 3.4rem; height: 3.4rem; border-radius: 12px; background: var(--accent-bouton); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
}
.ajag__pastille span:first-child { font-size: 1.4rem; font-weight: 800; }
.ajag__pastille span:last-child { margin-top: .15rem; font-size: .66rem; font-weight: 700; text-transform: uppercase; }
.ajag__recap-texte { min-width: 0; }
.ajag__titre { margin: 0 0 .2rem; font-size: 1.05rem; font-weight: 750; line-height: 1.25; }
.ajag__ligne { display: flex; align-items: flex-start; gap: .4rem; margin: 0; font-size: .85rem; line-height: 1.4; color: var(--encre-2); }
.ajag__ligne .evx-ico { margin-top: .12em; color: var(--accent-texte); }

.ajag__question { margin: 0 0 .85rem; font-size: 1.15rem; outline: none; }
.ajag__tuiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.ajag__tuiles li.est-reco { grid-column: 1 / -1; }
.ajag__tuile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; width: 100%; height: 100%;
  padding: .9rem .4rem .8rem; border: 1.5px solid var(--bord); border-radius: 16px; background: var(--fond); color: var(--encre);
  font: inherit; text-align: center; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ajag__tuile:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgb(0 0 0 / 9%); transform: translateY(-1px); }
.ajag__tuile:focus-visible { outline: 3px solid var(--accent-texte); outline-offset: 2px; }
.ajag__tuile-ico { flex: none; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: var(--fond-teinte); color: var(--encre); }
.ajag__tuile-ico svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ajag__tuile-ico--plein svg { fill: currentColor; stroke: none; }
.ajag__tuile-ico--plein .ajag__trait { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.ajag__tuile-ico .ajag__oeil { fill: var(--fond-teinte); }
.ajag__tuile-nom { font-size: .92rem; font-weight: 700; line-height: 1.2; }
.ajag__tuile-sous { font-size: .78rem; color: var(--encre-2); }
.ajag__reco { display: none; }
.est-reco .ajag__tuile {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ico reco" "ico nom" "ico sous";
  justify-items: start; align-items: center; column-gap: 1rem; row-gap: .1rem; padding: 1rem 1.1rem; text-align: left;
  border-color: var(--accent); background: var(--accent-pale);
}
.est-reco .ajag__tuile-ico { grid-area: ico; width: 3.3rem; height: 3.3rem; background: var(--fond); }
.est-reco .ajag__tuile-ico .ajag__oeil { fill: var(--fond); }
.est-reco .ajag__reco { display: block; grid-area: reco; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-texte); }
.est-reco .ajag__tuile-nom { grid-area: nom; font-size: 1.08rem; }
.est-reco .ajag__tuile-sous { grid-area: sous; }

.ajag__choisi { display: flex; align-items: center; gap: .8rem; margin-bottom: .9rem; }
.ajag__choisi .ajag__question { margin: 0; }
.ajag__consignes { list-style: none; margin: 0 0 1.15rem; padding: 0; counter-reset: ajag; display: grid; gap: .6rem; }
.ajag__consignes li { counter-increment: ajag; display: flex; align-items: flex-start; gap: .7rem; line-height: 1.45; }
.ajag__consignes li::before {
  content: counter(ajag); flex: none; display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: 50%;
  background: var(--accent-pale); color: var(--accent-texte); font-size: .85rem; font-weight: 800;
}
.ajag__retour {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; margin-top: .5rem; padding: 0 .25rem;
  border: none; background: none; color: var(--accent-texte); font: inherit; font-weight: 650; cursor: pointer;
}
.ajag__retour:hover { text-decoration: underline; }
.ajag__etape--fin { text-align: center; }
.ajag__ok { display: inline-grid; place-items: center; width: 3.6rem; height: 3.6rem; margin-bottom: .6rem; border-radius: 50%; background: var(--accent-pale); color: var(--accent-texte); }
.ajag__ok svg { width: 1.9rem; height: 1.9rem; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; animation: ajag-coche .45s ease-out .1s both; }
@keyframes ajag-coche { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
.ajag__aide { color: var(--encre-2); font-size: .92rem; }
.ajag-entre { animation: ajag-glisse .22s ease-out; }
.ajag-entre--retour { animation: ajag-glisse-retour .22s ease-out; }
@keyframes ajag-glisse { from { opacity: 0; transform: translateX(18px); } }
@keyframes ajag-glisse-retour { from { opacity: 0; transform: translateX(-18px); } }

/* Téléphone : feuille qui monte du bas de l'écran */
@media (max-width: 639.98px) {
  .ajag { width: 100%; margin: auto 0 0; max-height: 94vh; border-radius: 22px 22px 0 0; }
  .ajag[open] { animation: ajag-monte .3s cubic-bezier(.2, .8, .2, 1); }
  .ajag__poignee { display: block; width: 2.6rem; height: 4px; margin: -.3rem auto .8rem; border-radius: 2px; background: var(--bord); }
  .ajag__in { padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom)); }
  .ajag__tuiles { gap: .5rem; }
  .ajag__tuile-nom { font-size: .86rem; }
}
@keyframes ajag-monte { from { transform: translateY(100%); } }

/* Crans de 15 min depuis 08:00 : rangée de départ (.sem-l-N) et hauteur (.sem-s-N) — générés. */
.sem-l-1 { grid-row-start: 1; } .sem-l-2 { grid-row-start: 2; } .sem-l-3 { grid-row-start: 3; } .sem-l-4 { grid-row-start: 4; } .sem-l-5 { grid-row-start: 5; } .sem-l-6 { grid-row-start: 6; } .sem-l-7 { grid-row-start: 7; } .sem-l-8 { grid-row-start: 8; }
.sem-l-9 { grid-row-start: 9; } .sem-l-10 { grid-row-start: 10; } .sem-l-11 { grid-row-start: 11; } .sem-l-12 { grid-row-start: 12; } .sem-l-13 { grid-row-start: 13; } .sem-l-14 { grid-row-start: 14; } .sem-l-15 { grid-row-start: 15; } .sem-l-16 { grid-row-start: 16; }
.sem-l-17 { grid-row-start: 17; } .sem-l-18 { grid-row-start: 18; } .sem-l-19 { grid-row-start: 19; } .sem-l-20 { grid-row-start: 20; } .sem-l-21 { grid-row-start: 21; } .sem-l-22 { grid-row-start: 22; } .sem-l-23 { grid-row-start: 23; } .sem-l-24 { grid-row-start: 24; }
.sem-l-25 { grid-row-start: 25; } .sem-l-26 { grid-row-start: 26; } .sem-l-27 { grid-row-start: 27; } .sem-l-28 { grid-row-start: 28; } .sem-l-29 { grid-row-start: 29; } .sem-l-30 { grid-row-start: 30; } .sem-l-31 { grid-row-start: 31; } .sem-l-32 { grid-row-start: 32; }
.sem-l-33 { grid-row-start: 33; } .sem-l-34 { grid-row-start: 34; } .sem-l-35 { grid-row-start: 35; } .sem-l-36 { grid-row-start: 36; } .sem-l-37 { grid-row-start: 37; } .sem-l-38 { grid-row-start: 38; } .sem-l-39 { grid-row-start: 39; } .sem-l-40 { grid-row-start: 40; }
.sem-l-41 { grid-row-start: 41; } .sem-l-42 { grid-row-start: 42; } .sem-l-43 { grid-row-start: 43; } .sem-l-44 { grid-row-start: 44; } .sem-l-45 { grid-row-start: 45; } .sem-l-46 { grid-row-start: 46; } .sem-l-47 { grid-row-start: 47; } .sem-l-48 { grid-row-start: 48; }
.sem-s-1 { grid-row-end: span 1; } .sem-s-2 { grid-row-end: span 2; } .sem-s-3 { grid-row-end: span 3; } .sem-s-4 { grid-row-end: span 4; } .sem-s-5 { grid-row-end: span 5; } .sem-s-6 { grid-row-end: span 6; } .sem-s-7 { grid-row-end: span 7; } .sem-s-8 { grid-row-end: span 8; }
.sem-s-9 { grid-row-end: span 9; } .sem-s-10 { grid-row-end: span 10; } .sem-s-11 { grid-row-end: span 11; } .sem-s-12 { grid-row-end: span 12; } .sem-s-13 { grid-row-end: span 13; } .sem-s-14 { grid-row-end: span 14; } .sem-s-15 { grid-row-end: span 15; } .sem-s-16 { grid-row-end: span 16; }
.sem-s-17 { grid-row-end: span 17; } .sem-s-18 { grid-row-end: span 18; } .sem-s-19 { grid-row-end: span 19; } .sem-s-20 { grid-row-end: span 20; } .sem-s-21 { grid-row-end: span 21; } .sem-s-22 { grid-row-end: span 22; } .sem-s-23 { grid-row-end: span 23; } .sem-s-24 { grid-row-end: span 24; }
.sem-s-25 { grid-row-end: span 25; } .sem-s-26 { grid-row-end: span 26; } .sem-s-27 { grid-row-end: span 27; } .sem-s-28 { grid-row-end: span 28; } .sem-s-29 { grid-row-end: span 29; } .sem-s-30 { grid-row-end: span 30; } .sem-s-31 { grid-row-end: span 31; } .sem-s-32 { grid-row-end: span 32; }
.sem-s-33 { grid-row-end: span 33; } .sem-s-34 { grid-row-end: span 34; } .sem-s-35 { grid-row-end: span 35; } .sem-s-36 { grid-row-end: span 36; } .sem-s-37 { grid-row-end: span 37; } .sem-s-38 { grid-row-end: span 38; } .sem-s-39 { grid-row-end: span 39; } .sem-s-40 { grid-row-end: span 40; }
.sem-s-41 { grid-row-end: span 41; } .sem-s-42 { grid-row-end: span 42; } .sem-s-43 { grid-row-end: span 43; } .sem-s-44 { grid-row-end: span 44; } .sem-s-45 { grid-row-end: span 45; } .sem-s-46 { grid-row-end: span 46; } .sem-s-47 { grid-row-end: span 47; } .sem-s-48 { grid-row-end: span 48; }

/* === Occasions & Neuf : filtres et vue liste (P4) === */
/* Le curseur (_curseur.php/curseur.js, préfixe .cur-) est posé DANS .filtres (grid 2 colonnes) :
   il doit occuper toute la largeur, comme .case et .filtres__actions déjà. */
.filtres .cur { grid-column: 1 / -1; }

/* Bascule Grille/Liste, calquée sur .cat-vue/.cat-vue-btn de l'équipement (equipement.php). */
.veh-vue { grid-column: 1 / -1; display: flex; width: fit-content; border: 1px solid var(--bord); border-radius: 999px; overflow: hidden; }
.veh-vue-btn { min-height: 44px; padding: .5rem 1.1rem; display: inline-flex; align-items: center; font-weight: 700; text-decoration: none; color: inherit; }
.veh-vue-btn + .veh-vue-btn { border-left: 1px solid var(--bord); }
.veh-vue-btn:hover { background: var(--accent-pale); }
.veh-vue-btn.is-actif { background: var(--sombre); color: #fff; }
/* Repli sans JS : le bouton « Afficher » (.bouton.bouton--accent, display:inline-flex) gagnerait
   contre un simple [hidden] à spécificité égale (0-2-0) posé après dans la cascade — vehicules.js
   le masque en JS (#veh-appliquer[hidden], id > classes, s'impose quel que soit l'ordre). */
#veh-appliquer[hidden] { display: none; }
@media (min-width: 960px) { .veh-vue { width: 100%; } .veh-vue-btn { flex: 1 1 50%; justify-content: center; } }

/* Vue Liste (_liste-vehicules.php + _ligne-vehicule.php) : une ligne par moto, vignette 160 px
   (96 px en téléphone), titre, année · km · cm³ · A2, prix à droite, bouton « Voir » visuel
   (toute la ligne est le seul lien cliquable, pas de bouton imbriqué). */
.liste-motos { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.ligne-moto__lien {
  display: flex; align-items: center; gap: 1rem; background: var(--fond-teinte);
  border-radius: var(--rayon); padding: .6rem; text-decoration: none; color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}
.ligne-moto__lien:hover { box-shadow: var(--ombre); transform: translateY(-1px); }
.ligne-moto__lien:hover .ligne-moto__titre { color: var(--accent-texte); }
.ligne-moto__image {
  flex: 0 0 160px; width: 160px; height: 120px; border-radius: calc(var(--rayon) - 4px);
  overflow: hidden; background: var(--fond-teinte);
}
.ligne-moto__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ligne-moto__sans-photo { display: grid; place-content: center; height: 100%; background: radial-gradient(circle at 50% 40%, #2a2c30, var(--sombre)); }
.ligne-moto__sans-photo img { width: 55%; max-width: 100px; height: auto; opacity: .9; }
.ligne-moto__corps { flex: 1 1 auto; min-width: 0; }
.ligne-moto__titre { margin: 0 0 .25rem; font-size: 1.05rem; }
.ligne-moto__infos { margin: 0; color: var(--encre-2); font-size: .88rem; }
.ligne-moto__droite { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; text-align: right; }
.ligne-moto__prix { font-size: 1.15rem; white-space: nowrap; }
.ligne-moto__apartir { display: block; font-size: .75rem; font-weight: 600; color: var(--encre-2); }
.ligne-moto__voir { padding: .3rem .9rem; font-size: .85rem; }
@media (max-width: 599.98px) {
  .ligne-moto__lien { gap: .75rem; padding: .5rem; }
  .ligne-moto__image { flex-basis: 96px; width: 96px; height: 72px; }
  .ligne-moto__voir { display: none; } /* la ligne compacte reste un lien plein ; seul le bouton visuel disparaît */
  .ligne-moto__titre { font-size: .95rem; }
  .ligne-moto__infos { font-size: .8rem; }
  .ligne-moto__prix { font-size: 1rem; }
  /* Le prix passe sous le titre : à droite, il écrasait la pastille « Sur commande » et « Prix : nous consulter »
     élargissait toute la liste au-delà de l'écran. */
  .ligne-moto__lien { flex-wrap: wrap; row-gap: .15rem; }
  .ligne-moto__corps { flex-basis: 0; }
  .ligne-moto__droite { flex-basis: 100%; align-items: flex-start; padding-left: calc(96px + .75rem); text-align: left; }
  .ligne-moto__apartir { display: inline; margin-right: .35rem; }
}

/* === Équipement : profil de tailles (P5) === */
/* vues/_profil-tailles.php + _pictos-equipement.php + assets/catalogue.js. Barre et panneau
   n'existent à l'écran que si le JS les active (attribut hidden retiré, <dialog> ouvert) : sans
   JavaScript, rien de tout ceci ne s'affiche. Animations coupées sous prefers-reduced-motion
   (en fin de section, en plus de la règle globale du haut de feuille). */

/* Curseur de prix dans la colonne des filtres : les champs gardent l'allure des autres champs. */
.cat-facettes .cur-champ input[type=number] {
  padding: .4rem .6rem; border: 1px solid var(--bord); border-radius: 8px;
  font-size: 1rem; font-family: inherit; color: var(--encre); background: #fff;
}
.cat-facettes .cur-champ input[type=number]:focus-visible { outline: 3px solid var(--accent-texte); outline-offset: 1px; }
.cat-groupe--prix .cur-titre { font-size: .85rem; color: var(--encre-2); font-weight: 600; }

/* Bouton « Fermer · N articles » du panneau mobile : un vrai bouton, pas une croix. */
.cat-fermer { padding: .35rem .95rem; white-space: nowrap; font-size: .9rem; }

/* Pictogrammes : silhouette (.pt-fond) vide, détails (.pt-trait) au trait. */
.pt { display: block; flex: none; overflow: visible; }
.pt .pt-fond { fill: transparent; transition: fill .3s ease, fill-opacity .3s ease; }
.pt .pt-visiere { fill: var(--fond); }

/* ---------- Barre « Mon profil de tailles » + résumé ---------- */
.cat-profil { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 0 0 1rem; }
.cat-profil[hidden] { display: none; }
.cat-profil__ouvrir {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .35rem 1rem .35rem .6rem;
  border: 2px solid var(--accent-texte); border-radius: 999px; background: var(--fond); color: var(--accent-texte);
  font: inherit; font-weight: 700; cursor: pointer;
}
.cat-profil__ouvrir:hover { background: var(--accent-pale); }
.cat-profil__ouvrir:focus-visible, .cat-profil__resume-btn:focus-visible, .cat-profil__reactiver:focus-visible {
  outline: 3px solid var(--accent-texte); outline-offset: 2px;
}
.cat-profil__ouvrir .pt { width: 28px; height: 28px; }
.cat-profil__resume { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.cat-profil__resume[hidden] { display: none; }
.cat-profil__resume-btn {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem .55rem; min-height: 44px;
  padding: .3rem .8rem .3rem .45rem; border: 1px solid var(--bord); border-radius: 999px;
  background: var(--accent-pale); color: var(--encre); font: inherit; font-size: .9rem; cursor: pointer;
}
.cat-profil__resume-btn:hover { border-color: var(--accent-texte); }
.cat-profil__item { display: inline-flex; align-items: center; gap: .2rem; font-weight: 750; }
.cat-profil__item .pt { width: 26px; height: 26px; color: var(--encre); }
.cat-profil__item .pt-fond { fill: var(--accent); fill-opacity: .85; }
.cat-profil__modifier { color: var(--accent-texte); text-decoration: underline; font-weight: 700; margin-left: .15rem; }
.cat-profil__resume.is-suspendu .cat-profil__resume-btn { background: var(--fond); opacity: .8; }
.cat-profil__reactiver {
  min-height: 44px; padding: .3rem .6rem; border: 0; background: none; color: var(--accent-texte);
  font: inherit; font-size: .88rem; font-weight: 700; text-decoration: underline; cursor: pointer;
}
.cat-chip--profil { background: var(--accent-bouton); color: #fff; }
.cat-chip--profil:hover { border-color: var(--accent-bouton-survol); background: var(--accent-bouton-survol); color: #fff; }

/* ---------- Panneau (<dialog> natif) ---------- */
.cat-profil-dlg {
  width: min(600px, calc(100% - 1.5rem)); max-height: min(92vh, 900px); margin: auto; padding: 0;
  border: 0; border-radius: var(--rayon); background: var(--fond); color: var(--encre);
  box-shadow: 0 12px 48px rgb(0 0 0 / 28%); overflow: hidden;
}
.cat-profil-dlg[open] { display: flex; flex-direction: column; animation: cat-profil-entree .22s ease-out; }
.cat-profil-dlg::backdrop { background: rgb(0 0 0 / 50%); }
.cat-profil-dlg__tete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem 0; }
.cat-profil-dlg__titre { margin: 0; font-size: 1.2rem; }
.cat-profil-dlg__x {
  flex: none; width: 44px; height: 44px; border: 1px solid var(--bord); border-radius: 50%;
  background: var(--fond); color: var(--encre); font: inherit; font-size: 1rem; cursor: pointer;
}
.cat-profil-dlg__x:hover { border-color: var(--accent-texte); color: var(--accent-texte); }
.cat-profil-dlg__x { display: grid; place-items: center; }
.cat-profil-dlg__x svg { width: 20px; height: 20px; fill: currentColor; pointer-events: none; }
.cat-profil-dlg__aide { margin: .4rem 1.25rem .75rem; font-size: .88rem; color: var(--encre-2); }
.cat-profil-dlg__progres { display: flex; align-items: center; gap: .75rem; margin: 0 1.25rem .75rem; }
.cat-profil-jauge { flex: 1 1 auto; height: 8px; border-radius: 999px; background: var(--fond-teinte); border: 1px solid var(--bord); overflow: hidden; }
.cat-profil-jauge__plein {
  display: block; height: 100%; background: var(--accent); border-radius: inherit;
  transform: scaleX(var(--p, 0)); transform-origin: left center; transition: transform .35s ease;
}
.cat-profil-dlg__compte { flex: none; font-size: .85rem; font-weight: 700; color: var(--encre-2); }
.cat-profil-dlg__rubriques { overflow-y: auto; padding: .25rem 1.25rem 1rem; display: flex; flex-direction: column; gap: .6rem; }

.cat-profil-rub { margin: 0; padding: .7rem .8rem .8rem; border: 1px solid var(--bord); border-radius: 10px; min-width: 0; }
.cat-profil-rub.is-rempli { border-color: var(--accent); background: var(--accent-pale); }
.cat-profil-rub__legende { display: flex; align-items: center; gap: .55rem; padding: 0 .3rem; font-weight: 750; }
.cat-profil-rub__picto { display: inline-flex; color: var(--encre); }
.cat-profil-rub__picto .pt { width: 34px; height: 34px; }
.cat-profil-rub.is-rempli .pt-fond { fill: var(--accent); fill-opacity: .9; }
.cat-profil-rub.is-anime .cat-profil-rub__picto { animation: cat-profil-rebond .45s ease; }
.cat-profil-rub__coche {
  width: 20px; height: 20px; padding: 2px; border-radius: 50%; background: var(--accent-bouton); color: #fff;
  transform: scale(0); opacity: 0; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), opacity .2s ease;
}
.cat-profil-rub.is-rempli .cat-profil-rub__coche { transform: scale(1); opacity: 1; }
.cat-profil-rub__puces { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.cat-profil-puce { position: relative; display: inline-flex; }
.cat-profil-puce input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cat-profil-puce span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  padding: .2rem .7rem; border: 1px solid var(--bord); border-radius: 999px; background: var(--fond);
  font-weight: 700; font-size: .92rem; transition: background-color .15s, border-color .15s, color .15s;
}
.cat-profil-puce--aucune span { font-weight: 600; color: var(--encre-2); }
.cat-profil-puce input:hover + span { border-color: var(--accent-texte); }
.cat-profil-puce input:checked + span { background: var(--accent-bouton); border-color: var(--accent-bouton); color: #fff; }
.cat-profil-puce--aucune input:checked + span { background: var(--fond-teinte); border-color: var(--encre-2); color: var(--encre); }
.cat-profil-puce input:focus-visible + span { outline: 3px solid var(--accent-texte); outline-offset: 2px; }
.cat-profil-rub__note { margin: .45rem 0 0; font-size: .8rem; color: var(--encre-2); }

.cat-profil-dlg__actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
  padding: .75rem 1.25rem calc(.9rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--bord); background: var(--fond-teinte);
}
.cat-profil-dlg__droite { display: flex; flex-wrap: wrap; gap: .5rem; }
.cat-profil-dlg__effacer {
  min-height: 44px; padding: 0 .3rem; border: 0; background: none; color: var(--erreur);
  font: inherit; font-size: .9rem; font-weight: 700; text-decoration: underline; cursor: pointer;
}
@media (max-width: 599.98px) {
  /* Téléphone : le panneau devient une feuille pleine largeur posée en bas de l'écran. */
  .cat-profil-dlg { width: 100%; max-width: none; max-height: 92vh; margin: auto 0 0; border-radius: var(--rayon) var(--rayon) 0 0; }
  .cat-profil-dlg[open] { animation-name: cat-profil-montee; }
  .cat-profil-dlg__actions { flex-direction: column-reverse; align-items: stretch; }
  .cat-profil-dlg__droite > .bouton { flex: 1 1 0; }
}

@keyframes cat-profil-entree { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes cat-profil-montee { from { transform: translateY(100%); } to { transform: none; } }
@keyframes cat-profil-rebond {
  0% { transform: scale(1); }
  35% { transform: translateY(-4px) scale(1.18); }
  65% { transform: scale(.94); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .cat-profil-dlg[open], .cat-profil-rub.is-anime .cat-profil-rub__picto { animation: none; }
  .pt .pt-fond, .cat-profil-jauge__plein, .cat-profil-rub__coche, .cat-profil-puce span { transition: none; }
}

/* ---------- Pop-up de l'inscription à la lettre (assets/lettre.js) ---------- */
.dialog-lettre { width: min(36rem, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem); padding: 0; border: 0; border-radius: var(--rayon); box-shadow: 0 20px 60px rgb(0 0 0 / 35%); color: var(--encre); background: var(--fond); overflow: auto; }
.dialog-lettre::backdrop { background: rgb(15 17 20 / 62%); }
.dialog-lettre__boite { position: relative; padding: 2.25rem 1.5rem 1.5rem; text-align: center; }
.dialog-lettre h2 { font-size: 1.5rem; margin: .25rem 0 .5rem; outline: none; }
.dialog-lettre__fermer { position: absolute; top: .5rem; right: .5rem; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--encre); cursor: pointer; }
.dialog-lettre__fermer:hover { background: var(--fond-teinte); }
.dialog-lettre__fermer:focus-visible { outline: 3px solid var(--accent-texte); outline-offset: 2px; }
.dialog-lettre__fermer svg { width: 22px; height: 22px; fill: currentColor; stroke: none; pointer-events: none; }
.dialog-lettre__statut { display: inline-flex; align-items: center; gap: .6rem; margin: .25rem 0 .5rem; padding: .45rem .9rem; border-radius: 999px; background: var(--accent-pale); color: var(--accent-texte); font-weight: 700; }
.dialog-lettre__statut--arret { border-radius: var(--rayon); font-weight: 600; }
.dialog-lettre__attente { display: inline-flex; gap: 4px; }
.dialog-lettre__attente i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: lettre-attente 1.2s ease-in-out infinite; }
.dialog-lettre__attente i:nth-child(2) { animation-delay: .2s; }
.dialog-lettre__attente i:nth-child(3) { animation-delay: .4s; }
.dialog-lettre__statut--arret .dialog-lettre__attente { display: none; }
@keyframes lettre-attente { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .dialog-lettre__attente i { animation: none; opacity: .7; } }
.dialog-lettre .lettre-etapes { margin: 1rem auto; }
.dialog-lettre .lettre-etapes li { padding: .65rem .85rem; }
.dialog-lettre__decompte { font-weight: 700; color: var(--accent-texte); }
.dialog-lettre__message { margin: .75rem 0 0; font-weight: 600; color: var(--succes); }
.lettre-etat__deja { font-size: .92rem; color: var(--encre-2); }
@media (max-width: 480px) { .dialog-lettre__boite { padding: 2.5rem 1rem 1.25rem; } .dialog-lettre h2 { font-size: 1.3rem; } }

/* ---------- Page sobre de confirmation (ouverte depuis l'e-mail) ---------- */
.page-sobre { min-height: 100dvh; display: flex; flex-direction: column; background: var(--fond-teinte); }
.sobre__entete { background: var(--sombre); border-bottom: 3px solid var(--accent); padding: 1rem; display: flex; justify-content: center; }
.sobre__entete img { width: 180px; height: auto; }
.sobre__corps { flex: none; width: min(30rem, calc(100% - 2rem)); margin: 2.5rem auto; padding: 2rem 1.5rem; text-align: center; background: var(--fond); border-radius: var(--rayon); box-shadow: var(--ombre); }
.sobre__corps h1 { font-size: 1.6rem; margin: .5rem 0; }
.sobre__discret { margin-top: 1.5rem; font-size: .9rem; }
.sobre__discret a { color: var(--encre-2); }

/* ---------- Alertes « Me prévenir » (fiches, pages de gestion) ---------- */
.alerte-bloc { margin-top: 1rem; border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--fond); }
.alerte-bloc [hidden] { display: none !important; }
.alerte-bloc__det > summary { display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: .6rem 1rem; cursor: pointer; font-weight: 650; color: var(--accent-texte); list-style: none; border-radius: var(--rayon); }
.alerte-bloc__det > summary::-webkit-details-marker { display: none; }
.alerte-bloc__det > summary::after { content: ""; margin-left: auto; width: .45rem; height: .45rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.alerte-bloc__det[open] > summary::after { transform: rotate(-135deg); }
.alerte-bloc__det > summary:focus-visible { outline: 3px solid var(--accent-texte); outline-offset: 2px; }
.alerte-bloc__picto { width: 22px; height: 22px; flex: none; fill: currentColor; stroke: none; }
.alerte-bloc__corps { padding: 0 1rem 1rem; }
.alerte-bloc__chapo { margin: 0 0 1rem; color: var(--encre-2); }
.alerte-bloc__succes { text-align: center; padding-top: .5rem; }
.alerte-bloc__succes h3 { margin: 0 0 .5rem; }
.alerte-bloc__succes:focus { outline: none; }
.alerte-bloc__succes strong { overflow-wrap: anywhere; }
.alertes-liste { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .75rem; }
.alertes-liste__ligne { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: .85rem 1rem; }
.alertes-liste__ligne form { margin: 0; }
.alertes-liste__texte { display: flex; flex-direction: column; gap: .15rem; min-width: 0; overflow-wrap: anywhere; }
.alertes-liste__etat { font-size: .9rem; color: var(--encre-2); }

/* ==========================================================================
   Animations (ressorts, inspirées de FeralUI)
   Réimplémentation maison, sans code repris. Les courbes « linear() » ci-dessous sont un ressort
   échantillonné (doux : ζ≈0,85 ; nerveux : ζ≈0,44) ; ressort.js pilote ce qui ne tient pas en
   CSS (inclinaison, lamelles, <details>, chiffres). html[data-ressort="nerveux"] change de
   réglage (banc d'essai). prefers-reduced-motion: reduce coupe tout (règle générale en tête de
   fichier + ressort.js qui pose l'état final sans animer).
   ========================================================================== */
:root {
  --r-doux: linear(0, 0.059, 0.169, 0.31, 0.442, 0.57, 0.681, 0.765, 0.837, 0.889, 0.929, 0.958, 0.977, 0.99, 0.998, 1.003, 1.005, 1.006, 1.006, 1.005, 1.005, 1.004, 1);
  --r-nerveux: linear(0, 0.109, 0.333, 0.595, 0.856, 1.042, 1.159, 1.21, 1.209, 1.173, 1.115, 1.059, 1.012, 0.978, 0.959, 0.954, 0.958, 0.968, 0.981, 0.992, 1.001, 1.007, 1.01, 1.01, 1.008, 1.006, 1);
  --r-ease: var(--r-doux);
  --r-duree: .55s;
}
html[data-ressort="nerveux"] { --r-ease: var(--r-nerveux); --r-duree: .6s; }

/* Boutons : petit rebond à l'appui (--ress-e posée par animations.js, `scale` indépendant de transform) */
.bouton, .carrousel__fleche { scale: var(--ress-e, 1); }

/* Cartes d'annonce : ressort à la remontée + inclinaison 3D vers la souris (sans reflet) */
.carte-moto__lien { transition: box-shadow .3s ease, transform var(--r-duree) var(--r-ease); }
.carte-moto.est-inclinee {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  will-change: transform; position: relative; z-index: 1;
}

/* Tuiles de services (Blinds) : montée à ressort ; la largeur est animée par animations.js */
.tuile { transition: transform var(--r-duree) var(--r-ease), box-shadow .3s ease; }
.tuile:hover, .tuile:focus-visible { box-shadow: var(--ombre); }
@media (min-width: 900px) { .tuiles { transition: none; } }

/* Flèches de repli : rotation à ressort */
.pied-service > summary::after { transition: transform var(--r-duree) var(--r-ease); }
.evx-details > summary::after, .alerte-bloc__det > summary::after { transition: transform var(--r-duree) var(--r-ease); }

/* Feuilles et fenêtres : arrivée à ressort doux (jamais de dépassement visible sur une feuille plein bord) */
@media (max-width: 959.98px) {
  html.cat-a-sheet .cat-facettes { transition: transform .5s var(--r-doux); }
}
.ajag[open], .cat-profil-dlg[open] { animation-duration: .5s; animation-timing-function: var(--r-doux); }
.ajag-entre, .ajag-entre--retour { animation-duration: .45s; animation-timing-function: var(--r-doux); }
.js .pub-voisin[data-reveal] { transition: opacity .4s ease, transform .7s var(--r-doux); }

/* <details> animé : la hauteur est pilotée par ressort.js */
.ress-details--anime { overflow: hidden; }

/* Stamp : utilisé par l'espace d'administration et le banc d'essai */
.ress-tampon {
  position: absolute; left: 50%; top: 50%; z-index: 5; pointer-events: none; opacity: 0;
  padding: .15em .6em; border: .2em solid currentColor; border-radius: .3em; background: rgb(255 255 255 / 75%);
  color: var(--ress-tampon, #17701b); font: 900 clamp(1.5rem, 5vw, 2.4rem)/1 system-ui, sans-serif;
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.ress-impact { scale: .985; transition: scale .12s ease-out; }

/* === Section « Venir à la concession » (accueil) : statut d'abord, tuiles tactiles, cartes d'horaires === */
.concession-grille { display: grid; gap: 1.75rem; align-items: start; }
.concession-grille > * { min-width: 0; }
.concession-tete h2 { overflow-wrap: anywhere; }
.concession-intro { color: var(--encre-2); overflow-wrap: anywhere; }

/* Statut : le plus grand élément du bloc */
.concession-statut {
  display: flex; align-items: center; gap: 1rem; margin: 0 0 1rem; padding: 1.1rem 1.25rem;
  border-radius: var(--rayon); border: 2px solid var(--bord); background: var(--fond); color: var(--encre);
}
.concession-statut__point { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #8a8f98; }
.concession-statut__texte { display: block; min-width: 0; overflow-wrap: anywhere; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.concession-statut__mot { display: block; font-size: clamp(1.45rem, 1.1rem + 1.6vw, 1.9rem); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.concession-statut--ouvert { background: #e8f5ec; border-color: #b5dcc0; color: #17572a; }
.concession-statut--ouvert .concession-statut__point { background: #1e9e3e; box-shadow: 0 0 0 5px rgb(30 158 62 / 25%); }
.concession-statut--ferme { background: #fbecea; border-color: #eec3bf; color: #9c1f18; }
.concession-statut--ferme .concession-statut__point { background: var(--erreur); box-shadow: 0 0 0 5px rgb(179 38 30 / 20%); }

/* Tuiles pleine largeur */
.concession-tuiles { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .6rem; }
.concession-tuile {
  display: flex; align-items: center; gap: 1rem; min-height: 4rem; padding: .8rem 1.1rem;
  border-radius: var(--rayon); border: 2px solid var(--accent-bouton); background: var(--fond); color: var(--accent-texte);
  text-decoration: none; transition: background-color .15s, color .15s;
}
.concession-tuile:hover { background: var(--accent-pale); }
.concession-tuile:focus-visible { outline: 3px solid var(--accent-texte); outline-offset: 3px; }
.concession-tuile--principale { background: var(--accent-bouton); color: #fff; }
.concession-tuile--principale:hover { background: var(--accent-bouton-survol); border-color: var(--accent-bouton-survol); }
.concession-tuile__icone { flex: none; width: 1.7rem; height: 1.7rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.concession-tuile__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.concession-tuile__titre { font-size: 1.15rem; font-weight: 750; }
.concession-tuile__aide { font-size: .88rem; font-weight: 500; opacity: .9; overflow-wrap: anywhere; }

.concession-adresse h3 { margin-bottom: .3em; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--encre-2); }
.concession-adresse p { margin-bottom: .8em; overflow-wrap: anywhere; }
.concession-lien { margin: 0; }

/* Cartes d'horaires */
.concession-horaires { display: grid; gap: .9rem; }
.concession-carte { background: var(--fond); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.1rem 1.15rem; box-shadow: var(--ombre); min-width: 0; }
.concession-carte h3 { margin-bottom: .2em; overflow-wrap: anywhere; }
.concession-carte__tel { margin: 0 0 .8rem; overflow-wrap: anywhere; }
.concession-carte__tel .lien-tel { display: inline-block; padding-block: .6rem; margin-block: -.6rem; font-weight: 700; }
.concession-vide { margin: 0; color: var(--encre-2); }
.concession-jours { margin: 0; }
.concession-jour { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; padding: .5rem .6rem; border-top: 1px solid var(--bord); }
.concession-jour:first-child { border-top: 0; }
.concession-jour dt { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.concession-jour dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; min-width: 0; }
.concession-jour.est-auj { background: var(--accent-pale); border-radius: 8px; border-top-color: transparent; box-shadow: inset 4px 0 0 var(--accent); font-weight: 700; }
.concession-jour.est-auj + .concession-jour { border-top-color: transparent; }
.concession-auj { color: var(--accent-texte); font-weight: 750; }

@media (min-width: 640px) and (max-width: 959px) {
  .concession-tuiles { grid-template-columns: repeat(3, 1fr); }
  .concession-tuile { flex-direction: column; align-items: flex-start; justify-content: center; gap: .4rem; }
  .concession-horaires { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (min-width: 960px) {
  .concession-grille { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3rem; }
  .concession-tete { position: sticky; top: 1.5rem; }
}
.concession-lien .lien-fleche { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* ---------- Profil de tailles dans la colonne de filtres (empilé : casque, blouson, pantalon, bottes, gants) ---------- */
.cat-facettes .cat-profil { flex-direction: column; align-items: stretch; gap: .5rem; margin: 0 0 .8rem; padding-bottom: .8rem; border-bottom: 1px solid var(--bord); }
.cat-facettes .cat-profil__ouvrir { justify-content: center; }
.cat-facettes .cat-profil__resume-btn { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: .15rem; width: 100%; border-radius: 12px; padding: .5rem .8rem; }
.cat-facettes .cat-profil__item { gap: .5rem; }
.cat-facettes .cat-profil__modifier { margin: .2rem 0 0; }

/* « Marque » : même repli que l'arbre des rayons */
.cat-groupe--det > summary { font-size: .95rem; }
.cat-groupe--det[open] > summary { margin-bottom: .2rem; }

.cat-pagination ul { justify-content: flex-end; margin-top: .8rem; }
.cat-pagination li > span:not([aria-current]) { border: 0; min-width: 0; padding: 0 .2rem; }
.cat-tri select { width: auto; flex: none; field-sizing: content; } /* repli Safari : catalogue.js ajuste la largeur */
.cat-resultats__barre > .cat-tri { flex: none; }

/* === Catalogues (Occasions, Neuf, Équipement) : une seule disposition, d'après la maquette ===
   Rangée de commandes (compteur | tri | Liste/Grille ; l'équipement ajoute le nombre par page), puis deux blocs de MÊME hauteur, fixée sur la
   hauteur de fenêtre : filtres à gauche, annonces à droite, chacun défile en interne (la page ne défile pas pour parcourir
   la liste). La pagination de l'équipement reste sous le bloc des articles, hors zone qui défile (Occasions et Neuf n'en ont
   pas : toutes les annonces sont dans le bloc). En dessous de 960 px : flux normal. */
.veh-compteur, .cat-compte { margin: 0; font-weight: 700; }
.veh-barre, .cat-resultats__barre {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .9rem;
}
.veh-barre__outils { display: contents; }
.veh-barre .cat-vue, .cat-resultats__barre .cat-vue { margin-left: 0; }
/* Occasions et Neuf : sans nombre par page, le sens du tri reste collé à son critère et Liste/Grille va à droite. */
@media (min-width: 600px) {
  .veh-barre { justify-content: flex-start; }
  .veh-barre .cat-vue { margin-left: auto; }
}
.cat-tri { white-space: nowrap; }
.cat-tri select { width: auto; flex: none; field-sizing: content; } /* repli Safari : catalogue.js ajuste la largeur */
.cat-resultats__barre > .cat-tri { flex: none; }
.veh-compteur { margin-bottom: .9rem; }
.cat-compte { margin-bottom: .9rem; }
.veh-bloc { padding: .9rem; border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--fond); }
.cat-pagination ul { justify-content: flex-end; margin-top: .8rem; }
.cat-pagination li > span:not([aria-current]) { border: 0; min-width: 0; padding: 0 .2rem; }
@media (max-width: 599.98px) {
  .veh-barre, .cat-resultats__barre { flex-direction: column; align-items: stretch; }
  .veh-barre__outils { display: flex; flex-direction: column; align-items: stretch; gap: .5rem; width: 100%; }
  .veh-barre .cat-tri { justify-content: space-between; }
  .veh-barre .cat-vue, .cat-resultats__barre .cat-vue, .veh-barre .cat-ordre, .cat-resultats__barre .cat-ordre { width: 100%; }
  .veh-barre .cat-ordre__btn, .cat-resultats__barre .cat-ordre__btn { flex: 1 1 50%; }
  .veh-barre .cat-ordre__btn > span, .cat-resultats__barre .cat-ordre__btn > span { flex: 1; justify-content: center; }
  .veh-barre .cat-vue-btn, .cat-resultats__barre .cat-vue-btn { flex: 1 1 50%; }
}
@media (min-width: 960px) {
  .catalogue, .cat-zone {
    --bloc-h: max(26rem, calc(100dvh - 14.5rem)); /* fenêtre − en-tête collant − rangée de commandes − pagination − marge */
    display: grid; grid-template-columns: 260px minmax(0, 1fr); grid-template-rows: auto auto auto auto; /* rangée 3 = hauteur du bloc de filtres, au plus --bloc-h */
    column-gap: 1.75rem; row-gap: 0; align-items: stretch;
  }
  .cat-cadre, .cat-layout, .cat-droite, .catalogue__resultats, #veh-cadre { display: contents; }
  .cat-chips { grid-column: 1 / -1; grid-row: 1; }
  .veh-compteur, .cat-compte { grid-column: 1; grid-row: 2; align-self: center; }
  .veh-barre, .cat-resultats__barre { grid-column: 2; grid-row: 2; flex-wrap: nowrap; }
  .catalogue .filtres-bloc, .cat-facettes {
    grid-column: 1; grid-row: 3; min-height: min(22rem, var(--bloc-h)); max-height: var(--bloc-h); overflow-y: auto; position: static; scrollbar-gutter: stable;
    border: 1px solid var(--bord);
  }
  .veh-bloc, .cat-resultats {
    grid-column: 2; grid-row: 3; min-height: 0; contain: size; /* hauteur imposée par le bloc de filtres */ overflow-y: auto; min-width: 0; scrollbar-gutter: stable;
    padding: .9rem; border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--fond);
  }
  .catalogue .filtres-bloc, .cat-facettes, .veh-bloc, .cat-resultats { scrollbar-width: thin; scrollbar-color: var(--bord) transparent; }
  .veh-bloc:focus-visible, .cat-resultats:focus-visible { outline: 3px solid var(--accent-texte); outline-offset: 2px; }
  .cat-pagination { grid-column: 2; grid-row: 4; }
}

/* Fiche d'un article d'équipement : bandeau immersif, photo à cheval, cartes, encart « Au magasin » (préfixe fa-). */
.fa { padding-top: 0; --fa-fond: color-mix(in srgb, var(--accent) 40%, var(--sombre)); --fa-chevauche: 3.5rem; }

/* Bandeau pleine largeur (sort du conteneur sans dépasser l'écran) */
.fa-bandeau {
  margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%);
  background:
    radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 55%),
    linear-gradient(135deg, var(--fa-fond), var(--sombre));
  color: #fff; border-bottom: 4px solid var(--accent);
}
.fa-bandeau__in { display: grid; gap: 1.25rem; padding-block: 1.25rem 2.25rem; max-width: var(--largeur); margin-inline: auto; }
.fa-bandeau__texte { min-width: 0; align-self: center; }
.fa--photo .fa-bandeau__in { padding-bottom: 0; }

.fa-fil ol { list-style: none; margin: 0 0 .75rem; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem .5rem; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.fa-fil li:not(:last-child)::after { content: "›"; margin-left: .5rem; opacity: .7; }
.fa-fil a { color: #fff; display: inline-flex; align-items: center; min-height: 44px; text-decoration-color: color-mix(in srgb, #fff 50%, transparent); }
.fa-bandeau :focus-visible { outline-color: #fff; }

.fa-titre { color: #fff; font-size: clamp(1.7rem, 1.1rem + 3vw, 3rem); font-weight: 800; margin: 0 0 1.1rem; overflow-wrap: anywhere; hyphens: auto; text-wrap: balance; }

.fa-pastilles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.fa-pastille { display: inline-flex; align-items: baseline; gap: .45rem; border-radius: 999px; padding: .45rem 1rem; font-weight: 700; line-height: 1.2; max-width: 100%; }
.fa-pastille--marque { border: 2px solid rgb(255 255 255 / 70%); color: #fff; }
.fa-pastille__etiq { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.fa-pastille--prix { background: #fff; color: var(--encre); font-size: 1.3rem; font-weight: 800; }
.fa-pastille__ttc { font-size: .75rem; font-weight: 800; color: var(--accent-texte); letter-spacing: .08em; }

/* Photo : carte blanche à cheval sur le bandeau et la zone de contenu */
.fa-photo { min-width: 0; margin-bottom: calc(-1 * var(--fa-chevauche)); position: relative; z-index: 2; }
.fa-galerie { background: #fff; border-radius: calc(var(--rayon) + 4px); padding: .6rem; box-shadow: 0 10px 40px rgb(0 0 0 / 28%); color: var(--encre); }
.fa-galerie .galerie__principale--article { margin-bottom: 0; border: 0; }
.fa-galerie .galerie__vignettes { margin-top: .5rem; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
.fa-galerie .galerie__vignettes a:focus-visible { outline-color: var(--accent-texte); }

/* Zone de contenu */
.fa-corps { display: grid; gap: 1.25rem; padding-top: 1.75rem; }
.fa--photo .fa-corps { padding-top: calc(var(--fa-chevauche) + 1.75rem); }

.fa-cartes { display: grid; gap: 1.25rem; align-items: start; }
.fa-carte { background: #fff; border: 1px solid var(--bord); border-top: 4px solid var(--accent); border-radius: var(--rayon); padding: 1.25rem; box-shadow: var(--ombre); min-width: 0; }
.fa-carte__titre { font-size: 1.15rem; margin: 0 0 .9rem; }

.fa-tailles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.fa-tailles li { display: flex; max-width: 100%; }
.fa-taille { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; min-width: 64px; padding: .3rem .9rem; border: 2px solid var(--bord); border-radius: 10px; font-weight: 700; text-decoration: none; color: var(--encre); overflow-wrap: break-word; }
.fa-taille:hover { border-color: var(--accent); background: var(--accent-pale); }
.fa-taille[aria-current] { background: var(--accent-bouton); border-color: var(--accent-bouton); color: #fff; }

.fa-infos { margin: 0; display: grid; }
.fa-infos div { display: grid; grid-template-columns: minmax(96px, 38%) 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--bord); }
.fa-infos div:first-child { padding-top: 0; }
.fa-infos div:last-child { border-bottom: 0; padding-bottom: 0; }
.fa-infos dt { color: var(--encre-2); }
.fa-infos dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

/* Grand encart « Au magasin » */
.fa-magasin { display: grid; gap: 1.25rem; padding: 1.5rem; border-radius: calc(var(--rayon) + 4px); color: #fff; background: linear-gradient(135deg, var(--fa-fond), var(--sombre)); border-bottom: 4px solid var(--accent); }
.fa-magasin h2 { color: #fff; margin-bottom: .5rem; }
.fa-magasin p { margin: 0 0 .75rem; color: #e9ecef; }
.fa-magasin .fa-magasin__note { font-size: .92rem; margin: 0; color: #fff; font-weight: 650; }
.fa-magasin__actions { display: grid; gap: .7rem; align-content: center; }
.fa-magasin :focus-visible { outline-color: #fff; }
.fa-retour { margin: .25rem 0 0; }
.fa-retour .lien-fleche { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 760px) {
  .fa { --fa-chevauche: 5rem; }
  .fa-bandeau__in { padding-block: 1.75rem 3rem; }
  .fa--photo .fa-bandeau__in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; padding-bottom: 0; align-items: stretch; }
  .fa--photo .fa-bandeau__texte { padding-bottom: calc(var(--fa-chevauche) + 1rem); align-self: center; }
  .fa--photo .fa-photo { margin-top: .25rem; }
  .fa-cartes:not(.fa-cartes--seule) { grid-template-columns: 1fr 1fr; }
  .fa-magasin { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 2rem 2.25rem; gap: 2.5rem; }
}
@media (min-width: 1100px) {
  .fa { --fa-chevauche: 6.5rem; }
}

/* Description de l'article (schéma v23) : texte brut rendu en paragraphes et listes (description_html()). Téléphone :
   Tailles, Description, Informations ; 760–959 px : Tailles | Informations puis Description ; ≥ 960 px : Description en
   colonne principale, cartes collantes sur le côté (une description longue ne laisse pas de colonne vide). */
.fa-haut { display: grid; gap: 1.25rem; align-items: start; }
.fa-desc__texte { font-size: 1.04rem; line-height: 1.7; color: var(--encre); max-width: 75ch; overflow-wrap: break-word; }
.fa-desc__texte > :last-child { margin-bottom: 0; }
.fa-desc__texte p { margin: 0 0 1em; }
.fa-desc__liste { margin: 0 0 1em; padding-left: 1.35rem; }
.fa-desc__liste li { margin: 0 0 .35em; padding-left: .3rem; }
.fa-desc__liste li::marker { color: var(--accent-texte); font-size: 1.15em; }
.fa-desc__texte p + .fa-desc__liste { margin-top: -.4em; }
@media (max-width: 759.98px) {
  .fa-cartes--cote { display: contents; }
  .fa-cartes--cote > .fa-carte:last-child { order: 2; }
  .fa-desc { order: 1; }
}
@media (min-width: 960px) {
  .fa-haut { grid-template-columns: minmax(0, 5fr) minmax(19rem, 3fr); gap: 1.5rem; }
  .fa-haut .fa-desc { grid-column: 1; grid-row: 1; padding: 1.5rem 1.75rem; }
  .fa-haut .fa-cartes--cote { grid-column: 2; grid-row: 1; grid-template-columns: 1fr; }
}
@media (min-width: 960px) and (min-height: 760px) {
  .fa-haut .fa-cartes--cote { position: sticky; top: 90px; }
}

/* ---------- Page « Nous joindre » (/appeler) : tuiles quand le magasin est fermé ---------- */
.appel__intro { color: #4a4d55; margin-bottom: 1.25rem; }
.appel-tuiles { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .appel-tuiles { grid-template-columns: 1fr 1fr; } }
.appel-tuile { display: flex; align-items: center; gap: 1rem; min-height: 96px; padding: 1.15rem 1.2rem; border-radius: 16px;
  background: #fff; border: 1px solid #dcdfe4; color: #1b1d21; text-decoration: none; box-shadow: 0 1px 4px rgb(0 0 0 / 8%); transition: transform .15s, box-shadow .15s; }
.appel-tuile:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgb(0 0 0 / 14%); }
.appel-tuile:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.appel-tuile__rond { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #eef2f7; color: #1b1d21; }
.appel-tuile__rond svg { width: 26px; height: 26px; fill: currentColor; }
.appel-tuile__titre { display: block; font-weight: 800; font-size: 1.1rem; }
.appel-tuile__sous { display: block; font-size: .92rem; line-height: 1.35; color: #4a4d55; }
.appel-tuile--phare { background: var(--accent-bouton); border-color: var(--accent-bouton); color: #fff; }
.appel-tuile--phare .appel-tuile__rond { background: #fff; color: #1b1d21; }
.appel-tuile--phare .appel-tuile__sous { color: #fff; }
.appel__horaires { margin-top: 1.5rem; padding: .9rem 1.1rem; border-radius: 12px; background: #fff; border: 1px solid #dcdfe4; font-size: .92rem; color: #4a4d55; }
.appel__horaires strong { color: #1b1d21; }

/* « Nous joindre » (/appeler) suit le thème de l'appareil : c'est la seule page publique qui a une version
   sombre (la page qu'on ouvre depuis le bouton « Appeler », souvent le soir, quand le magasin est fermé).
   Les variables sont redéfinies pour la page seule ; en-tête et pied de page, déjà sombres, gardent leurs couleurs. */
@media (prefers-color-scheme: dark) {
  body:has(.appel) { --fond: #0d1013; --fond-teinte: #161b20; --encre: #eef2f6; --encre-2: #aab4c0; --bord: #2c353f; color-scheme: dark; background: var(--fond); color: var(--encre); }
  body:has(.appel) .appel__intro, body:has(.appel) .appel-tuile__sous, body:has(.appel) .appel__horaires { color: #b8c2cd; }
  body:has(.appel) .appel-tuile { background: #161b20; border-color: #2c353f; color: #eef2f6; }
  body:has(.appel) .appel-tuile--phare { background: var(--accent-bouton); border-color: var(--accent-bouton); color: #fff; }
  body:has(.appel) .appel-tuile--phare .appel-tuile__sous { color: #fff; }
  body:has(.appel) .appel-tuile__rond { background: #232b33; color: #eef2f6; }
  body:has(.appel) .appel-tuile--phare .appel-tuile__rond { background: #fff; color: #1b1d21; }
  body:has(.appel) .appel__horaires { background: #161b20; border-color: #2c353f; }
  body:has(.appel) .appel__horaires strong { color: #eef2f6; }
}
.appel__statut { margin: -.5rem 0 1.25rem; }

/* Annonces motos de l'en-tête (« D'occasion » et « Neuves ») : toujours visibles, dans un cadre titré
   sur UNE ligne (plus de menu déroulant : aucun clic caché). */
.nav__annonces { display: block; }
.nav .nav__annonces-liens { display: flex; }
.nav__etiq { display: block; font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); line-height: 1.2; }
@media (max-width: 1099.98px) {
  .nav__etiq { padding: .6rem .5rem 0; font-size: .7rem; letter-spacing: .14em; }
}
@media (min-width: 1100px) {
  .nav__annonces { position: relative; border: 1.5px solid var(--accent); border-radius: 10px; margin-right: .45rem; padding: .05rem .1rem; flex: none; }
  .nav__etiq { position: absolute; top: -.58rem; left: .6rem; background: var(--sombre); padding: 0 .3rem; white-space: nowrap; }
  .nav .nav__annonces a:not(.bouton) { padding: .4rem .6rem; white-space: nowrap; }
  .nav { flex-wrap: nowrap; }
}
/* Écrans moyens : tout l'en-tête (logo, annonces, onglets) tient sur une seule ligne. */
@media (min-width: 1100px) {
  .entete__logo img { width: 150px; }
  .entete__in { flex-wrap: nowrap; gap: .5rem; }
  .nav a:not(.bouton) { padding: .5rem .4rem; font-size: .88rem; }
  .nav .nav__annonces a:not(.bouton) { padding: .4rem .45rem; }
  .nav__annonces { margin-right: .25rem; }
}
/* Le cadre est au moins aussi large que son titre (le titre ne dépasse jamais) ; les deux liens se partagent la largeur. */
@media (min-width: 1100px) {
  .nav__annonces { min-width: 13.4rem; }
  .nav .nav__annonces-liens a { flex: 1 1 0; text-align: center; }
}
@media (min-width: 1100px) {
  .nav__annonces { min-width: 12.6rem; }
  .nav__etiq { font-size: .58rem; letter-spacing: .1em; }
}
@media (min-width: 1100px) {
  .nav__annonces { min-width: 11.2rem; }
  .nav__etiq { font-size: .54rem; letter-spacing: .08em; }
  .nav a:not(.bouton), .nav .nav__annonces a:not(.bouton) { white-space: nowrap; }
  .nav .nav__annonces a:not(.bouton) { padding-inline: .3rem; }
  .nav__appel { white-space: nowrap; padding-inline: .8rem; font-size: .85rem; }
  .entete__logo { flex: none; }
  .entete__marque { white-space: nowrap; font-size: .66rem; letter-spacing: .08em; }
}

/* Équipement = vitrine : ce qui est affiché se COMMANDE, ce n'est pas forcément en rayon. */
.cat-vitrine { display: flex; gap: .8rem; align-items: flex-start; margin: 1rem 0 0; padding: .9rem 1.1rem; background: var(--accent-pale); border: 1px solid var(--accent); border-left-width: 5px; border-radius: var(--rayon); }
.cat-vitrine p { margin: 0; color: var(--encre); }
.cat-vitrine__ico { flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent-texte); color: #fff; font: 800 .95rem/1 Georgia, serif; font-style: italic; margin-top: .1rem; }
.cat-vitrine .lien-fleche { margin-left: .4rem; white-space: nowrap; }
.cat-art__commande { margin: .25rem 0 0; font-size: .72rem; white-space: nowrap; }
.cat-art__droite { align-items: flex-end; }
.cat-vue--grille .cat-art__droite { align-items: center; }
.fa-pastille--commande { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; font-size: 1rem; }
.fa-carte__note { margin: -.4rem 0 .9rem; font-size: .92rem; color: var(--encre-2); }
.fa-etapes { margin: 0 0 .9rem; padding-left: 1.3rem; color: #e9ecef; }
.fa-etapes li { margin: 0 0 .3rem; }
.fa-etapes strong { color: #fff; }

/* ---------- Pied de page — version mobile compacte (liens en 2 colonnes, lettre d'information resserrée) ---------- */
@media (max-width: 639.98px) {
  .pied-haut { padding-block: .7rem; }
  .pied-tuile { min-height: 58px; padding: .5rem .85rem; gap: .75rem; }
  .pied-pastille { width: 38px; height: 38px; }
  .pied-valeur { font-size: 1.2rem; }
  .pied-bande { padding-block: 1rem; }
  .pied-zones { gap: 1.1rem; }
  .pied-titre { margin-bottom: .5rem; }
  .pied-adresse { margin-bottom: .6rem; font-size: .92rem; }
  .pied-service > summary { min-height: 46px; }
  .pied-reseaux { gap: .5rem; }
  .pied-reseaux a { min-height: 46px; }
  .pied-rond { width: 34px; height: 34px; }
  .pied__lettre-in { padding-block: 1rem; gap: .7rem; }
  .pied__lettre .pied__titre { font-size: 1rem; }
  .pied__lettre-texte p { font-size: .86rem; line-height: 1.4; }
  .form-lettre label:not(.case) { font-size: .9rem; margin-bottom: .2rem; }
  .form-lettre__ligne { margin-bottom: .45rem; } .form-lettre__ligne input, .form-lettre__ligne .bouton { min-height: 44px; }
  .form-lettre__aide { font-size: .78rem; margin: 0 0 .5rem; }
  .form-lettre .case { font-size: .8rem; line-height: 1.35; }
  .form-lettre__desinscription { margin-top: .5rem; font-size: .8rem; }
  .pied-plat { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; padding-top: .9rem; padding-bottom: .4rem; }
  .pied-groupe, .pied-groupe ul { display: contents; }
  .pied-plat a { min-height: 40px; justify-content: flex-start; text-align: left; font-size: .92rem; }
  .pied-legal ul { gap: 0 1.1rem; padding-bottom: .5rem; } .pied-legal a { min-height: 38px; font-size: .8rem; }
  .pied-copy { padding-block: .7rem; font-size: .78rem; }
  .pied-voisin { padding-block: .45rem; font-size: .82rem; }
}

/* Pop-up « version de pré-production » (clic sur un bouton Appeler) */
.dialog-preprod { width: min(26rem, calc(100% - 1.5rem)); }
.dialog-preprod h2 { margin: 0 0 .75rem; font-size: 1.25rem; }
.dialog-preprod p { margin: 0 0 1rem; }
.dialog-preprod p:last-child { margin-bottom: 0; }

/* Boutons « Appeler » purement visuels : sans lien tel:, le clic compte et ouvre le pop-up de test. */
a[data-appel] { cursor: pointer; }

/* Vidéo de la fiche (maquette) */
.fo-video { margin-top: 1.5rem; }
.fo-video__titre { margin: 0 0 .6rem; font-size: 1.15rem; }
.fo-video__lecteur { border-radius: var(--rayon); overflow: hidden; background: #000; }
/* Proportion réelle de la vidéo (attributs width / height) ; une vidéo en portrait est bornée en hauteur et centrée
   sur fond noir au lieu d'occuper tout l'écran du téléphone. */
.fo-video__lecteur video { display: block; width: 100%; height: auto; }
.fo-video__lecteur--portrait { background: transparent; }
.fo-video__lecteur--portrait video { border-radius: var(--rayon); background: #000; width: auto; max-width: 100%; height: min(70vh, 600px); aspect-ratio: 9 / 16; margin: 0 auto; object-fit: contain; }
