/* Analyse du magasin — page autonome, par-dessus la feuille de style du site (index.*.css).
   Blanc, noir et or, comme le reste du site. Sur la maquette et dans les chiffres, trois sens seulement :
   orangé = le temps passé (caméras), lumière blanche = les ventes ou les prêts (caisse), or = ce qu'il faut aller voir
   (le rayon à vérifier, la tablette signalée vide). */

.am {
  --am-encre: #0e0d0c;
  --am-gris: #5c5c5a;
  --am-gris-2: #858480;
  --am-filet: rgba(0, 0, 0, 0.1);
  --am-or: #e1a54b;
  --am-or-texte: #8c610c;
  --am-or-pale: #fbf3e3;
  --am-temps: #e0702a;
  --am-ventes: #8f877b;
  --am-piste: rgba(0, 0, 0, 0.07);
  color: var(--am-encre);
  overflow-x: clip;
}
/* la bande sombre de la démonstration */
.am-demo, .am-appel, .am-etape-visuel {
  --am-carte: #0f0e0d;
  --am-bord: rgba(255, 255, 255, 0.1);
  --am-bord-fort: rgba(255, 255, 255, 0.24);
  --am-texte: #f4f1ea;
  --am-doux: #bcb8b0;
  --am-sourd: #8e8a82;
  --am-ventes: #e6dfd1;
  --am-piste: rgba(255, 255, 255, 0.08);
}
:where(.am) button { font: inherit; color: inherit; cursor: pointer; }
.am :focus-visible { outline: 2px solid var(--am-or); outline-offset: 2px; border-radius: 6px; }
.am-sans-script { padding: 24px 0 0; color: var(--am-gris); }
.am [hidden] { display: none !important; }

/* puces de couleur (clé de lecture) */
.am-puce { width: 9px; height: 9px; border-radius: 3px; display: inline-block; flex: none; }
.am-puce-temps { background: var(--am-temps); }
.am-puce-ventes { background: var(--am-ventes); }
.am-puce-or { background: transparent; border: 2px solid var(--am-or); border-radius: 50%; width: 10px; height: 10px; }

/* --- en-tête de page ------------------------------------------------------------------------------- */
.am-hero { padding: 64px 0 28px; }
.am-hero .eyebrow { color: var(--am-or-texte); }
.am-hero-rangee { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 28px 64px; margin-top: 18px; }
.am-hero h1 { font-size: clamp(38px, 5vw, 66px); line-height: 1.03; text-wrap: balance; color: var(--am-encre); }
.am-hero-texte p { color: var(--am-gris); font-size: 17.5px; line-height: 1.62; max-width: 52ch; }
.am-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; margin-top: 24px; }
.am-lien-demo { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15.5px; color: var(--am-encre); text-decoration: none; border-bottom: 1.5px solid var(--am-or); padding-bottom: 2px; }
.am-lien-demo:hover { color: var(--am-or-texte); }

/* --- comment il sait qu'une tablette est vide --------------------------------------------------------- */
.am-tablette { padding: 28px 0 88px; scroll-margin-top: 90px; }
.am-tablette-rangee { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 40px 64px; align-items: center; }
.am-tablette-texte h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; color: var(--am-encre); }

.tv { margin: 0; }
.tv-cadre { position: relative; }
.tv-ecran { position: relative; aspect-ratio: 560 / 400; border-radius: 18px; overflow: hidden; background: #0c0b0a; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.06); }
.tv-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tv-camera { position: absolute; left: 48px; top: 22px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.82); font-size: 12.5px; font-weight: 500; letter-spacing: 0.02em; }
.tv-camera::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f4f1ea; opacity: 0.85; }
.tv-etat { position: absolute; right: 54px; top: 16px; z-index: 2; padding: 6px 11px; border-radius: 999px; background: rgba(12, 11, 10, 0.78); border: 1px solid rgba(255, 255, 255, 0.18); color: #f4f1ea; font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; transition: border-color 0.3s, color 0.3s; }
.tv-etat[data-temps="2"], .tv-etat[data-temps="3"] { border-color: var(--am-or); color: #ffe4b5; }
.tv-texto { position: absolute; right: 16px; bottom: 16px; z-index: 3; width: min(272px, calc(100% - 32px)); display: grid; gap: 3px; padding: 12px 14px 13px; border-radius: 14px; background: #fff; color: var(--am-encre); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45); border-left: 4px solid var(--am-or); font-size: 13.5px; line-height: 1.4; opacity: 0; transform: translateY(14px); transition: opacity 0.45s, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); pointer-events: none; }
.tv-texto.tv-visible { opacity: 1; transform: none; }
.tv-texto-tete { display: flex; justify-content: space-between; color: var(--am-gris); font-size: 12px; }
.tv-texto-tete b { color: var(--am-encre); font-weight: 700; }
.tv-texto strong { font-size: 15px; font-weight: 700; margin-top: 2px; }
.tv figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.tv .am-illustration { position: static; }
.tv-rejouer { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--am-filet); background: #fff; font-size: 13.5px; font-weight: 500; color: var(--am-encre); }
.tv-rejouer:hover { border-color: var(--am-or); color: var(--am-or-texte); }

/* éléments de la scène (SVG) */
.tv-personne { transform: translateX(-140px); opacity: 0; }
.tv-personne.tv-entre { transform: translateX(300px); opacity: 1; transition: transform 1.1s cubic-bezier(0.3, 0.6, 0.3, 1), opacity 0.4s; }
.tv-personne.tv-sort { transform: translateX(720px); opacity: 1; transition: transform 1.1s cubic-bezier(0.5, 0, 0.7, 0.4); }
.tv-personne.tv-present { transform: translateX(300px); opacity: 1; }
.tv-scene [data-niveau] { transition: opacity 0.35s, transform 0.35s; }
.tv-scene .tv-parti { opacity: 0; transform: translateY(-10px); }
.tv-grille { opacity: 0; transition: opacity 0.4s; }
.tv-grille.tv-visible { opacity: 1; }
.tv-cellule { fill: rgba(255, 255, 255, 0.04); stroke: rgba(255, 255, 255, 0.5); stroke-width: 1.2; stroke-dasharray: 4 3; transition: fill 0.35s, stroke 0.35s; }
.tv-cellule.tv-vide { fill: rgba(225, 165, 75, 0.38); stroke: #e1a54b; stroke-width: 2.2; stroke-dasharray: none; }
.tv-vignette { opacity: 0; transition: opacity 0.4s; }
.tv-avec-vignette .tv-vignette { opacity: 1; }
.tv-eclair { opacity: 0; pointer-events: none; }
.tv-eclair.tv-flash { animation: tv-flash 0.7s ease-out; }
@keyframes tv-flash { 0% { opacity: 0; } 12% { opacity: 0.8; } 100% { opacity: 0; } }

.tv-etapes { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 4px; }
.tv-etapes button { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 14px; width: 100%; text-align: left; padding: 11px 12px; border: 0; border-radius: 12px; background: none; color: var(--am-gris); font-size: 15.5px; line-height: 1.5; transition: background 0.2s, color 0.2s; }
.tv-etapes button:hover { background: #f6f4ef; }
.tv-etapes button b { color: var(--am-encre); font-weight: 600; }
.tv-num { grid-row: 1 / span 2; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(0, 0, 0, 0.18); color: var(--am-encre); font-weight: 600; font-size: 14px; transition: background 0.25s, border-color 0.25s, color 0.25s; }
.tv-etapes button[aria-current="step"] { background: var(--am-or-pale); color: var(--am-encre); }
.tv-etapes button[aria-current="step"] .tv-num { background: var(--am-or); border-color: var(--am-or); color: #000; }
.tv-etapes button.tv-fait .tv-num { border-color: var(--am-or); color: var(--am-or-texte); }
.am-limites { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--am-filet); color: var(--am-gris); font-size: 14.5px; line-height: 1.6; }

/* --- la démonstration (bande noire) ------------------------------------------------------------------ */
.am-demo { background: #000; color: var(--am-texte); padding: 84px 0 64px; scroll-margin-top: 70px; }
.am-demo > .container { width: min(1480px, 100% - 64px); max-width: none; }
.am-demo-tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 56px; align-items: end; }
.am-demo-tete h2 { color: #fff; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.034em; text-wrap: balance; }
.am-demo-tete p { color: var(--am-doux); font-size: 17px; line-height: 1.6; max-width: 52ch; }
.am-commerces { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 18px; }
.am-commerces button { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 9px 18px 9px 14px; border-radius: 999px; border: 1px solid var(--am-bord-fort); background: none; color: var(--am-texte); font-size: 15.5px; font-weight: 500; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.am-commerces button svg { color: var(--am-or); flex: none; }
.am-commerces button:hover { border-color: rgba(255, 255, 255, 0.5); }
.am-commerces button[aria-selected="true"] { background: var(--am-or); border-color: var(--am-or); color: #000; font-weight: 600; }
.am-commerces button[aria-selected="true"] svg { color: #000; }

.am-carte {
  border: 1px solid var(--am-bord);
  border-radius: 20px;
  background: radial-gradient(120% 90% at 38% 0%, #1b1a18 0%, #0f0e0d 50%, #0a0a09 100%);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
  /* « clip » plutôt que « hidden » : la carte ne devient pas un cadre qui défile; « hidden » reste pour les anciens navigateurs */
  overflow: hidden;
  overflow: clip;
}
.am-carte-tete { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 18px 24px; border-bottom: 1px solid var(--am-bord); }
.am-commerce { display: flex; align-items: center; gap: 12px; }
.am-commerce h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.am-demo .demo-badge { color: #e9e8e4; background: #ffffff14; border: 1px solid #ffffff33; }

.am-jours { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding: 2px; }
.am-jours::-webkit-scrollbar { display: none; }
.am-jours button { flex: none; min-height: 36px; padding: 6px 12px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--am-doux); font-size: 14px; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.am-jours button:hover { color: var(--am-texte); background: rgba(255, 255, 255, 0.06); }
.am-jours button[aria-pressed="true"] { color: #fff; border-color: var(--am-bord-fort); background: rgba(255, 255, 255, 0.08); }
.am-jours .am-jour-semaine { margin-left: 8px; }

/* agencement d'essai affiché : toujours dit, avec le moyen d'en sortir */
.am-essai { display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin: 0; padding: 10px 24px; border-bottom: 1px solid var(--am-bord); background: rgba(225, 165, 75, 0.1); color: var(--am-texte); font-size: 14px; }
.am-essai button { min-height: 34px; padding: 5px 12px; border-radius: 8px; border: 1px solid var(--am-or); background: none; color: var(--am-or); font-size: 13.5px; }

/* les quatre réponses */
.am-reponses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--am-bord); }
.am-reponse { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 20px 22px 22px; background: none; border: 0; border-left: 1px solid var(--am-bord); min-width: 0; transition: background 0.2s; }
.am-reponse:first-child { border-left: 0; }
.am-reponse:hover:not(:disabled) { background: rgba(255, 255, 255, 0.035); }
.am-reponse:disabled { cursor: default; }
.am-reponse[aria-pressed="true"] { background: rgba(255, 255, 255, 0.06); }
.am-reponse-question { display: inline-flex; align-items: center; gap: 9px; color: var(--am-doux); font-size: 14px; }
.am-reponse-question svg { color: var(--am-or); }
.am-reponse-nom { font-size: clamp(19px, 1.75vw, 26px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; overflow-wrap: anywhere; color: #fff; }
.am-reponse-fait { color: var(--am-doux); font-size: 14px; line-height: 1.45; }
.am-reponse-or:not(:disabled) .am-reponse-nom { color: var(--am-or); }

.am-corps { display: grid; grid-template-columns: minmax(0, 1fr) 348px; }
.am-plateau { min-width: 0; display: flex; flex-direction: column; position: relative; }
/* les commandes flottent au-dessus de la maquette : toute la place est pour elle */
.am-outils { position: absolute; left: 0; right: 0; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px 0; pointer-events: none; }
.am-outils > * { pointer-events: auto; }

.am-segments { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--am-bord); border-radius: 10px; background: rgba(10, 10, 9, 0.7); }
.am-segments button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 13px; border: 0; border-radius: 7px; background: none; color: var(--am-doux); font-size: 14px; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.am-segments button:hover { color: var(--am-texte); }
.am-segments button[aria-pressed="true"] { background: #f4f1ea; color: #000; font-weight: 600; }
.am-segments button[aria-pressed="true"] .am-puce { box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.3); }
.am-court { display: none; }
.am-large { display: inline; }
.am-segments-petit button { min-height: 32px; padding: 5px 11px; font-size: 13px; }

/* la maquette */
.am-toile { position: relative; aspect-ratio: 16 / 10.6; min-height: 320px; max-height: max(380px, calc(100vh - 150px)); max-height: max(380px, calc(100svh - 150px)); }
.am-plateau, .am-toile { scroll-margin-top: 100px; }
.am-toile canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.am-toile canvas.en-rotation { cursor: grabbing; }
.am-etiquettes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.am-etiquette {
  position: absolute; left: 0; top: 0; pointer-events: auto; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px; min-height: 22px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 9, 0.84); color: #e3dfd7; font-size: 11.5px; line-height: 1.2; touch-action: pan-y;
  transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.3s;
}
.am-etiquette:hover { border-color: var(--am-bord-fort); color: #fff; }
.am-etiquette[aria-pressed="true"] { background: #f4f1ea; border-color: #f4f1ea; color: #000; font-weight: 600; font-size: 12.5px; padding: 4px 10px; z-index: 3; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); }
.am-etiquette.am-a-verifier:not([aria-pressed="true"]) { border-color: var(--am-or); color: var(--am-or); }
.am-etiquette-valeur { font-weight: 400; opacity: 0.85; font-variant-numeric: tabular-nums; }
.am-etiquette-valeur:empty, .am-etiquette-vide:empty { display: none; }
.am-etiquette-vide { padding: 1px 7px; margin-right: -4px; border-radius: 999px; background: var(--am-or); color: #000; font-weight: 600; font-size: 11px; font-variant-numeric: tabular-nums; }
.am-etiquette.am-signale:not([aria-pressed="true"]) { border-color: var(--am-or); }
.am-etiquette-repere { color: #9b978f; border-color: transparent; background: none; pointer-events: none; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.am-toile.am-en-construction .am-etiquette { opacity: 0; }

.am-geste { position: absolute; right: 18px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px; color: var(--am-sourd); font-size: 12.5px; pointer-events: none; transition: opacity 0.4s; }
.am-geste.am-vu { opacity: 0; }

.am-sous-toile { display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; padding: 12px 24px 18px; border-top: 1px solid var(--am-bord); }
.am-legende { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--am-doux); font-size: 13.5px; list-style: none; margin: 0; padding: 0; }
.am-legende li { display: inline-flex; align-items: center; gap: 9px; transition: opacity 0.2s; }
.am-legende li.am-eteint { opacity: 0.35; }
.am-echelle { width: 44px; height: 8px; border-radius: 4px; }
.am-echelle-temps { background: linear-gradient(90deg, #5a1f08, #de5816 45%, #ffbe76); }
.am-echelle-ventes { background: linear-gradient(90deg, #403c36, #8f877b 50%, #fcf6ea); }
.am-pion { width: 6px; height: 14px; border-radius: 3px; background: #fff6e2; box-shadow: 0 0 6px rgba(255, 244, 214, 0.7); }
.am-anneau { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--am-or); box-shadow: 0 0 0 3px rgba(225, 165, 75, 0.2); }

.am-lecture { display: flex; align-items: center; gap: 12px; flex: 1 1 320px; min-width: 260px; max-width: 520px; }
.am-lecture-bouton { width: 38px; height: 38px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--am-bord-fort); background: rgba(255, 255, 255, 0.06); color: #fff; transition: background 0.15s; }
.am-lecture-bouton:hover { background: rgba(255, 255, 255, 0.14); }
.am-lecture-bouton span { display: inline-flex; }
.am-lecture-bouton[data-etat="pause"] .am-ic-pause, .am-lecture-bouton[data-etat="lecture"] .am-ic-lecture { display: none; }
.am-lecture-bouton:disabled { opacity: 0.4; cursor: default; }
.am-lecture-piste { flex: 1; display: flex; }
.am-lecture input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; margin: 0; }
.am-lecture input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--am-or) var(--am-progres, 100%), var(--am-piste) var(--am-progres, 100%)); }
.am-lecture input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--am-piste); }
.am-lecture input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--am-or); }
.am-lecture input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: #fff; border: 2px solid var(--am-or); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.am-lecture input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--am-or); }
.am-lecture input[type="range"]:disabled { opacity: 0.4; cursor: default; }
.am-lecture-heure { color: var(--am-doux); font-size: 13.5px; white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 104px; text-align: right; }

/* la fiche du rayon choisi */
.am-fiche { border-left: 1px solid var(--am-bord); padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; background: rgba(0, 0, 0, 0.35); color: var(--am-texte); }
.am-fiche-tete h4 { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; margin-top: 10px; color: #fff; }
.am-fiche-periode { color: var(--am-sourd); font-size: 13px; margin-top: 4px; }
.am-verdict { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--am-bord-fort); color: var(--am-doux); white-space: nowrap; }
.am-verdict::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.am-verdict[data-verdict="verifier"] { background: var(--am-or); border-color: var(--am-or); color: #000; }
.am-verdict[data-verdict="vend"] { border-color: rgba(244, 241, 234, 0.6); color: #f4f1ea; }
.am-verdict[data-verdict="attente"] { border-style: dashed; }
.am-fiche-lecture { color: #dcd8d0; font-size: 15px; line-height: 1.55; }
.am-fiche-vides h5, .am-produits h5 { color: var(--am-doux); font-size: 12.5px; font-weight: 400; }
.am-fiche-vides ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.am-fiche-vides li { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: #dcd8d0; padding: 7px 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.04); }
.am-fiche-vides li b { font-weight: 500; color: var(--am-sourd); text-align: right; }
.am-fiche-vides li.am-vide-oui { background: rgba(225, 165, 75, 0.12); box-shadow: inset 0 0 0 1px rgba(225, 165, 75, 0.45); }
.am-fiche-vides li.am-vide-oui b { color: var(--am-or); font-weight: 600; }
.am-fiche-note { color: var(--am-sourd); font-size: 13px; }

.am-parts { display: grid; gap: 9px; }
.am-part { display: grid; grid-template-columns: 112px minmax(0, 1fr) 44px; align-items: center; gap: 10px; font-size: 13px; color: var(--am-doux); }
.am-part b { color: var(--am-texte); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.am-barre { display: block; height: 10px; border-radius: 0 4px 4px 0; background: var(--am-piste); position: relative; overflow: hidden; }
.am-barre i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; transition: width 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.am-barre-temps i { background: var(--am-temps); }
.am-barre-ventes i { background: var(--am-ventes); }

.am-chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--am-bord); }
.am-chiffres div { min-width: 0; }
.am-chiffres dt { color: var(--am-sourd); font-size: 12.5px; }
.am-chiffres dd { margin: 3px 0 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }

.am-heures { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--am-bord); }
.am-heures-titre { display: flex; justify-content: space-between; align-items: baseline; color: var(--am-doux); font-size: 12.5px; }
.am-heures-titre span:last-child { color: var(--am-sourd); font-variant-numeric: tabular-nums; }
.am-colonnes { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); align-items: end; gap: 2px; height: 44px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.am-colonnes span { height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.am-colonnes i { display: block; width: 100%; max-width: 14px; min-height: 0; border-radius: 3px 3px 0 0; transition: height 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.am-colonnes-temps i { background: var(--am-temps); }
.am-colonnes-ventes i { background: var(--am-ventes); }
.am-colonnes span:hover i { filter: brightness(1.25); }
.am-colonnes i.am-negatif { background: #8e7f99; }
.am-heures-axe { display: flex; justify-content: space-between; color: var(--am-sourd); font-size: 11.5px; margin-top: -6px; }

.am-produits { padding-top: 16px; border-top: 1px solid var(--am-bord); }
.am-produits ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; }
.am-produits li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: #dcd8d0; }
.am-produits li b { font-weight: 600; color: var(--am-texte); font-variant-numeric: tabular-nums; white-space: nowrap; }
.am-produits p { color: var(--am-sourd); font-size: 13.5px; margin-top: 8px; }

.am-carte-pied { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding: 14px 24px 16px; border-top: 1px solid var(--am-bord); font-size: 13.5px; color: var(--am-doux); }
.am-mesures { flex: 1 1 420px; min-width: 0; }
.am-mesures summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; padding: 6px 0; }
.am-mesures summary::-webkit-details-marker { display: none; }
.am-mesures summary:hover { color: var(--am-texte); }
.am-mesures p { max-width: 74ch; margin-top: 8px; line-height: 1.55; }
.am-exports { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.am-exports button, .am-exports a { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 0; border: 0; background: none; color: var(--am-doux); font-size: 13.5px; text-decoration: none; }
.am-exports button:hover, .am-exports a:hover { color: var(--am-texte); }
.am-avis { color: var(--am-sourd); font-size: 13px; line-height: 1.5; margin-top: 16px; max-width: 110ch; }

.am-bulle { position: fixed; z-index: 60; pointer-events: none; padding: 8px 11px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(12, 11, 10, 0.96); color: #e3dfd7; font-size: 13px; line-height: 1.45; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5); max-width: 280px; }
.am-bulle b { color: #fff; font-weight: 600; display: block; }
.am-bulle span { display: flex; align-items: center; gap: 7px; }
.am-bulle .am-bulle-or { color: #ffd99a; }

/* --- sections (sur blanc) ----------------------------------------------------------------------------- */
.am-section { padding-block: 88px; }
.am-section + .am-section { border-top: 1px solid var(--am-filet); }
.am-section-tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 56px; align-items: end; margin-bottom: 40px; }
.am-section-tete h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; text-wrap: balance; color: var(--am-encre); }
.am-section-tete p { color: var(--am-gris); font-size: 16.5px; line-height: 1.6; max-width: 54ch; }

/* tous les rayons */
.am-tableau-cadre { border: 1px solid var(--am-filet); border-radius: 16px; overflow: hidden; background: #fff; }
.am-tableau { width: 100%; border-collapse: collapse; font-size: 15px; }
.am-tableau th { text-align: left; font-weight: 500; color: var(--am-gris); font-size: 13px; padding: 14px 18px; border-bottom: 1px solid var(--am-filet); white-space: nowrap; background: #faf9f6; }
.am-tableau th .am-cle { display: inline-flex; align-items: center; gap: 7px; margin-right: 16px; }
.am-tableau td { padding: 13px 18px; border-bottom: 1px solid rgba(0, 0, 0, 0.06); vertical-align: middle; }
.am-tableau tbody tr:last-child td { border-bottom: 0; }
.am-tableau tbody tr { cursor: pointer; transition: background 0.15s; }
.am-tableau tbody tr:hover { background: #faf9f6; }
.am-tableau tbody tr[aria-selected="true"] { background: var(--am-or-pale); }
.am-tableau .am-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.am-tableau td.am-num { color: #33322f; }
.am-tableau td.am-signale { color: var(--am-or-texte); font-weight: 700; }
.am-tableau-nom button { border: 0; background: none; padding: 0; text-align: left; font-weight: 600; font-size: 15.5px; color: var(--am-encre); }
.am-tableau-barres { width: 34%; min-width: 180px; }
.am-tableau-barres > div { display: grid; grid-template-columns: minmax(0, 1fr) 38px; align-items: center; gap: 10px; }
.am-tableau-barres > div + div { margin-top: 3px; }
.am-tableau-barres .am-barre { height: 7px; }
.am-tableau-barres b { font-weight: 500; font-size: 12.5px; color: var(--am-gris); text-align: right; font-variant-numeric: tabular-nums; line-height: 1; }
.am-tableau .am-verdict { color: var(--am-gris); border-color: rgba(0, 0, 0, 0.16); }
.am-tableau .am-verdict[data-verdict="verifier"] { background: var(--am-or); border-color: var(--am-or); color: #000; }
.am-tableau .am-verdict[data-verdict="vend"] { border-color: var(--am-encre); color: var(--am-encre); }

/* chez vous, en trois temps */
.am-etapes-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.am-etape { display: flex; flex-direction: column; min-width: 0; }
.am-etape-visuel { position: relative; aspect-ratio: 4 / 3.45; border-radius: 16px; overflow: hidden; background: radial-gradient(120% 100% at 50% 0%, #1d1c1a 0%, #0b0b0a 70%); color: var(--am-texte); }
.am-etape-visuel canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.am-etape-maquette .am-segments { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); max-width: calc(100% - 20px); }
.am-etape-texte { padding: 22px 4px 0; }
.am-etape-numero { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--am-or); color: var(--am-or-texte); font-size: 14px; font-weight: 700; }
.am-etape h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; margin-top: 14px; text-wrap: balance; color: var(--am-encre); }
.am-etape p { color: var(--am-gris); font-size: 15.5px; line-height: 1.6; margin-top: 10px; }
.am-etape .am-etape-note { color: var(--am-gris-2); font-size: 13.5px; }

.am-camera-rec, .am-camera-zone, .am-illustration { position: absolute; font-size: 11.5px; line-height: 1.35; }
.am-camera-rec { left: 12px; top: 12px; letter-spacing: 0.08em; color: #ece8e0; display: inline-flex; align-items: center; gap: 7px; }
.am-camera-rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f4f1ea; opacity: 0.85; }
.am-camera-zone { left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--am-bord-fort); background: rgba(12, 11, 10, 0.92); color: var(--am-doux); text-align: center; }
.am-camera-zone b { display: block; color: var(--am-texte); font-weight: 600; font-size: 12.5px; }
.am-illustration { right: 10px; top: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #e3dfd7; background: rgba(12, 11, 10, 0.72); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 5px; padding: 3px 7px; font-size: 10.5px; font-weight: 600; }
.tv .am-illustration { color: var(--am-gris); background: #f4f2ed; border-color: transparent; }

.am-etape-resume { display: flex; align-items: center; justify-content: center; padding: 16px; }
.am-telephone { width: min(100%, 330px); border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.16); background: #000; padding: 13px 14px 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.am-telephone-tete { display: flex; justify-content: space-between; color: var(--am-sourd); font-size: 11.5px; }
.am-telephone .am-telephone-titre { font-size: 14.5px; font-weight: 600; margin-top: 6px; letter-spacing: -0.01em; color: #fff; }
.am-telephone-liste { list-style: none; margin: 9px 0 0; padding: 0; display: grid; gap: 6px; }
.am-telephone-liste li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 1px 9px; align-items: baseline; font-size: 12px; line-height: 1.32; color: var(--am-doux); padding: 6px 9px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); }
.am-telephone-liste li i { align-self: center; }
.am-telephone-liste li b { display: block; color: #fff; font-weight: 600; font-size: 13px; }
.am-telephone-liste li span { grid-column: 2; }

/* ce qu'elle dit, ce qu'elle ne dit pas */
.am-franchise-colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--am-filet); border-radius: 16px; overflow: hidden; background: #fff; }
.am-franchise-colonnes > div { padding: 28px 30px 30px; }
.am-franchise-colonnes > div + div { border-left: 1px solid var(--am-filet); background: #faf9f6; }
.am-franchise h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: var(--am-encre); }
.am-franchise h3 svg { color: var(--am-or-texte); flex: none; }
.am-franchise-colonnes > div + div h3 svg { color: var(--am-gris-2); }
.am-franchise ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.am-franchise li { color: #33322f; font-size: 16px; line-height: 1.5; padding-left: 28px; position: relative; }
.am-franchise li::before { content: ""; position: absolute; left: 6px; top: 0.72em; width: 8px; height: 1.5px; background: var(--am-gris-2); }

/* appel (bande noire) */
.am-appel { background: #000; color: var(--am-texte); padding: 84px 0 96px; }
.am-appel-rangee { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.am-appel h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; color: #fff; }
.am-appel h2 em { background-image: var(--feuille); }
.am-appel p { color: var(--am-doux); font-size: 17px; margin-top: 12px; max-width: 56ch; }
.am-appel .btn { flex: none; }

/* --- écrans moyens et petits ---------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .am-corps { grid-template-columns: minmax(0, 1fr); }
  .am-fiche { border-left: 0; border-top: 1px solid var(--am-bord); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
  .am-fiche-tete, .am-fiche-lecture, .am-fiche-vides { grid-column: 1; }
  .am-fiche-lecture { margin-top: -6px; }
  .am-parts { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .am-chiffres, .am-heures, .am-produits { border-top: 0; padding-top: 0; }
  .am-reponses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .am-reponse:nth-child(3) { border-left: 0; }
  .am-reponse:nth-child(n + 3) { border-top: 1px solid var(--am-bord); }
  .am-etapes-liste { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .am-etape { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 28px; align-items: center; }
  .am-etape-texte { padding-top: 0; }
  .am-etape-resume { aspect-ratio: auto; padding: 22px 16px; }
  .am-tablette-rangee { grid-template-columns: minmax(0, 1fr); }
  .am-tablette-texte { max-width: 760px; }
}
@media (max-width: 860px) {
  .am-hero { padding: 40px 0 18px; }
  .am-hero-rangee { grid-template-columns: minmax(0, 1fr); }
  .am-hero-texte p { font-size: 16.5px; }
  .am-tablette { padding-bottom: 64px; }
  .am-section-tete, .am-demo-tete { grid-template-columns: minmax(0, 1fr); margin-bottom: 28px; }
  .am-section { padding-block: 56px; }
  .am-demo { padding: 56px 0 44px; }
  .am-franchise-colonnes { grid-template-columns: minmax(0, 1fr); }
  .am-franchise-colonnes > div + div { border-left: 0; border-top: 1px solid var(--am-filet); }
  .am-appel { padding: 56px 0 72px; }
  .am-appel-rangee { display: block; }
  .am-appel .btn { margin-top: 24px; }
}
@media (max-width: 720px) {
  .am-demo > .container { width: calc(100% - 24px); }
  .am-commerces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 22px 0 14px; }
  .am-commerces button { justify-content: center; padding: 9px 12px; font-size: 15px; }
  .am-carte { border-radius: 16px; }
  .am-carte-tete { padding: 14px 16px; }
  .am-reponse { padding: 14px 14px 15px; gap: 3px; }
  .am-reponse-nom { font-size: 18px; }
  .am-reponse-fait { font-size: 13px; }
  .am-reponse-question { font-size: 13px; }
  .am-outils { position: static; padding: 12px 12px 0; pointer-events: auto; flex-wrap: wrap; row-gap: 8px; }
  .am-segments-vue { margin-left: auto; }
  .am-essai { padding: 10px 16px; }
  .am-plateau, .am-toile { scroll-margin-top: 84px; }
  .am-toile { max-height: none; }
  .am-segments button { padding: 6px 10px; font-size: 13.5px; min-height: 42px; }
  .am-segments-petit button { min-height: 40px; }
  .am-jours button { min-height: 42px; }
  .am-lecture-bouton { width: 44px; height: 44px; }
  .am-long { display: none; }
  .am-court { display: inline; }
  .am-toile { aspect-ratio: 1 / 1.05; min-height: 0; }
  .am-sous-toile { padding: 12px 16px 16px; }
  .am-lecture { flex-basis: 100%; max-width: none; min-width: 0; }
  .am-geste { right: 12px; bottom: 10px; }
  .am-fiche { grid-template-columns: minmax(0, 1fr); padding: 18px 16px 20px; gap: 16px; }
  .am-parts { grid-column: 1; grid-row: auto; }
  .am-chiffres, .am-heures, .am-produits { border-top: 1px solid var(--am-bord); padding-top: 16px; }
  .am-carte-pied { padding: 12px 16px 14px; }
  .am-etape { display: flex; align-items: stretch; }
  .am-etape-resume { aspect-ratio: auto; padding: 18px 14px; }
  .am-etape-texte { padding-top: 20px; }
  .am-franchise-colonnes > div { padding: 22px 20px 24px; }
  .tv-ecran { border-radius: 14px; }
  .tv-camera { left: 30px; top: 14px; font-size: 11px; }
  .tv-etat { right: 36px; top: 10px; font-size: 11px; padding: 3px 8px; }
  /* au téléphone, le texto s'affiche sous l'écran (sa place est gardée : rien ne saute) : la tablette reste visible */
  .tv-texto { position: relative; right: auto; bottom: auto; width: auto; margin: -16px 12px 0; padding: 9px 12px 10px; font-size: 12.5px; transform: translateY(-8px); }
  .tv-texto strong { font-size: 14px; }
  .tv-etapes button { padding: 10px 6px; font-size: 15px; }
  /* le tableau devient une liste de cartes */
  .am-tableau thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .am-tableau, .am-tableau tbody, .am-tableau tr, .am-tableau td { display: block; }
  .am-tableau tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; padding: 14px 16px; border-bottom: 1px solid rgba(0, 0, 0, 0.07); }
  .am-tableau tbody tr:last-child { border-bottom: 0; }
  .am-tableau td { padding: 0; border: 0; }
  .am-tableau td.am-tableau-nom { grid-column: 1; }
  .am-tableau td.am-tableau-lecture { grid-column: 2; grid-row: 1; justify-self: end; }
  .am-tableau td.am-num { text-align: left; color: var(--am-gris); font-size: 14px; }
  .am-tableau td.am-num::before { content: attr(data-libelle) " "; color: var(--am-gris-2); }
  .am-tableau td.am-tableau-barres { grid-column: 1 / -1; width: auto; min-width: 0; }
}
@media (max-width: 420px) {
  .am-reponses { grid-template-columns: minmax(0, 1fr); }
  .am-reponse { border-left: 0 !important; border-top: 1px solid var(--am-bord); }
  .am-reponse:first-child { border-top: 0; }
}
@media (max-width: 480px) {
  .am-large { display: none; }
  .am-segments button { padding: 6px 9px; }
  .am-segments-petit button { font-size: 12.5px; padding: 5px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .am *, .am *::before, .am *::after { transition: none !important; animation: none !important; }
}
/* Impression de la page (le « Rapport imprimable » reste la version faite pour le papier) */
@media print {
  .site-header, .site-footer, .skip-link, .am-geste, .am-hero-actions, .am-exports, .am-appel .btn, .am-outils, .am-lecture, .am-essai button, .am-etiquettes, .am-bulle, .am-commerces, .tv-rejouer { display: none !important; }
  .am-demo, .am-appel { background: #fff !important; --am-texte: #0e0d0c; --am-doux: #33322f; --am-sourd: #5c5c5a; --am-bord: #d6d3cc; --am-bord-fort: #b5b1a8; --am-ventes: #8f877b; color: #0e0d0c; }
  .am-demo h2, .am-appel h2, .am-commerce h3, .am-fiche-tete h4, .am-reponse-nom, .am-chiffres dd { color: #0e0d0c !important; }
  .am-carte, .am-fiche, .am-telephone, .am-telephone-liste li { background: #fff !important; box-shadow: none !important; }
  .am-barre, .am-barre i, .am-colonnes i, .am-puce, .am-echelle, .am-verdict { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .am-section { padding-block: 28px; }
  .am-tableau tr, .am-etape, .am-carte-pied { break-inside: avoid; }
}
