/* IMPCT — base styles. Layout lives in the inline styles carried over from the
   Claude Design source; this file holds what inline styles cannot express. */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

a { color: #D63A0A; text-decoration: none; }
a:hover { color: #0B0B0B; }

img { max-width: 100%; }

::selection { background: #FF4A17; color: #FFFFFF; }

:focus-visible { outline: 2px solid #FF4A17; outline-offset: 2px; }

@keyframes impct-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sticky header is 52–56px tall; keep anchored sections clear of it. */
section[id], div[id] { scroll-margin-top: 64px; }

.skip {
  position: absolute;
  left: -9999px;
  z-index: 100;
  background: #0B0B0B;
  color: #FFFFFF;
  padding: 12px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.skip:focus { left: 8px; top: 8px; color: #FFFFFF; }

/* ---- Mobile navigation ------------------------------------------------- */
/* The mockup's nav is a single non-wrapping row of seven items. Below 1040px
   it is collapsed behind a Menu button. */

header > div { position: relative; }

@media (max-width: 1040px) {
  #burger { display: flex !important; }

  #nav {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #FFFFFF;
    border-bottom: 1px solid #161614;
    box-shadow: 0 12px 24px rgba(11, 11, 11, 0.08);
  }
  #nav.open { display: flex !important; }

  #nav a {
    border-left: none !important;
    border-top: 1px solid #D9D7CF !important;
    padding: 16px clamp(16px, 3vw, 32px) !important;
  }
}

/* ---- Hover states ------------------------------------------------------ */
/* Generated from the design's style-hover attributes by build.py. */

/* ---- Hero -------------------------------------------------------------- */
/* Le portrait occupe un tiers de la section, le texte les deux autres. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 0;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Sélecteur « Ciseaux ou tronçonneuse ? » ---------------------------- */
/* Composant de l'article sur la transcription des appels. Les styles vivent
   ici et non en inline : médias, états de focus, transitions et la bascule
   avec-JS / sans-JS que les attributs de style ne peuvent pas porter. */

.sel {
  border: 2px solid #161614;
  background: #F3F1EA;
  padding: clamp(20px, 3vw, 30px);
  margin: 0 0 36px;
  scroll-margin-top: 72px;
}

.sel-annonce {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  margin: 0;
}

.sel-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #D63A0A;
  margin-bottom: 10px;
}

.sel h2.sel-titre {
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  scroll-margin-top: 96px;
}

.sel-intro { font-size: 17px; line-height: 1.6; margin: 0 0 20px; color: #1E1E1B; }

/* Hauteur réservée : le bouton remplace le texte sans-JS sans décaler la page. */
.sel-pied { min-height: 50px; display: flex; align-items: center; }
.sel-nojs { font-size: 15px; line-height: 1.5; color: #5C5C56; margin: 0; }
.sel-go { display: none; }
.sel-js .sel-nojs { display: none; }
.sel-js .sel-go { display: inline-flex; }
/* `display` explicite l'emporterait sur l'attribut `hidden` du navigateur :
   on le rétablit pour tout ce que le composant masque en JavaScript. */
.sel [hidden] { display: none !important; }

/* Boutons. Le texte sur l'orange est noir : le blanc ne passe pas en AA. */
.sel-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid #161614;
  background: #FFFFFF;
  color: #0B0B0B;
  padding: 0 18px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
}
.sel-btn:hover { background: #0B0B0B; color: #FFFFFF; }
.sel-btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.sel-btn[aria-disabled="true"]:hover { background: #FFFFFF; color: #0B0B0B; }
.sel-btn--plein { background: #FF4A17; color: #0B0B0B; font-weight: 700; }
.sel-btn--plein:hover { background: #0B0B0B; color: #FFFFFF; }
.sel-btn--nu {
  border: none;
  background: none;
  text-decoration: underline;
  padding: 0 6px;
  color: #5C5C56;
}
.sel-btn--nu:hover { background: none; color: #0B0B0B; }

/* ---- Écran de question ---- */

.sel-barre { height: 6px; background: #FFFFFF; border: 2px solid #161614; margin: 0 0 10px; }
.sel-barre > span { display: block; height: 100%; background: #FF4A17; transition: width 180ms ease; }

.sel-compte {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #5C5C56;
  margin: 0 0 18px;
}

.sel-fs { border: none; margin: 0; padding: 0; min-width: 0; }
.sel-q {
  font-weight: 800;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  padding: 0;
  margin: 0 0 8px;
}
.sel-aide { font-size: 15px; line-height: 1.5; color: #5C5C56; margin: 0 0 16px; }
.sel-opts { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 0; }

.sel-opt {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 2px solid #161614;
  background: #FFFFFF;
  padding: 13px 14px;
  min-height: 44px;
  font-size: 16.5px;
  line-height: 1.4;
  cursor: pointer;
}
.sel-opt:hover { background: #FFF4EF; }
.sel-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.sel-coche {
  width: 18px;
  height: 18px;
  border: 2px solid #161614;
  background: #FFFFFF;
  flex: 0 0 auto;
  margin-top: 3px;
}
.sel-opt input:checked ~ .sel-coche { background: #FF4A17; }
.sel-opt input:focus-visible ~ .sel-coche { outline: 2px solid #FF4A17; outline-offset: 3px; }
.sel-opt:has(input:checked) { background: #FFF4EF; box-shadow: inset 0 0 0 2px #FF4A17; }

.sel-nombre { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; }
.sel-nombre input {
  width: 92px;
  min-height: 48px;
  border: 2px solid #161614;
  background: #FFFFFF;
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  color: #0B0B0B;
  -moz-appearance: textfield;
}
.sel-nombre input::-webkit-outer-spin-button,
.sel-nombre input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sel-pas { width: 48px; min-height: 48px; padding: 0; font-size: 20px; letter-spacing: 0; }
.sel-tranche { font-size: 15px; color: #5C5C56; margin: 10px 0 0; }

.sel-nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 24px 0 0; }
.sel-nav .sel-next { margin-left: auto; }

.sel-ecran { animation: sel-entre 170ms ease-out; }
@keyframes sel-entre { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- Écran de résultat ---- */

.sel-carte {
  border: 2px solid #161614;
  background: #FFFFFF;
  padding: clamp(20px, 3vw, 28px);
}
.sel-carte-haut { display: flex; align-items: flex-start; gap: 16px; }
.sel-picto { flex: 0 0 auto; width: 64px; height: 64px; }
.sel-verdict {
  font-weight: 800;
  font-size: clamp(23px, 3vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
}
.sel-verdict-texte { font-size: 16.5px; line-height: 1.55; color: #1E1E1B; margin: 12px 0 0; }

.sel-reco { border-top: 2px solid #161614; margin: 20px 0 0; padding: 18px 0 0; }
.sel-reco-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5C5C56;
  margin: 0 0 6px;
}
.sel-outil { font-weight: 800; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.02em; margin: 0; }
.sel-outil em { font-style: normal; background: #FF4A17; padding: 0 6px; }
.sel-cout { font-size: 17px; line-height: 1.5; margin: 8px 0 0; }
.sel-cout strong { font-weight: 700; }
.sel-mensuel, .sel-note { font-size: 14.5px; line-height: 1.5; color: #5C5C56; margin: 6px 0 0; }
.sel-vendu {
  font-size: 14.5px;
  line-height: 1.5;
  color: #5C5C56;
  border-top: 1px solid #D9D7CF;
  margin: 16px 0 0;
  padding: 12px 0 0;
}
.sel-signature {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #A5A39B;
  margin: 14px 0 0;
}

.sel-bloc { margin: 28px 0 0; }
.sel-bloc-titre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5C5C56;
  margin: 0 0 10px;
}
.sel-raisons { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sel-raisons li { display: flex; gap: 12px; font-size: 16.5px; line-height: 1.45; }
.sel-raisons li::before { content: ""; width: 8px; height: 8px; background: #FF4A17; flex: 0 0 auto; margin-top: 10px; }

.sel-alerte {
  border-left: 4px solid #FF4A17;
  background: #FFF4EF;
  padding: 12px 14px;
  font-size: 15.5px;
  line-height: 1.5;
  margin: 0 0 8px;
}

.sel-planb, .sel-stop { border: 2px solid #161614; background: #FFFFFF; padding: 16px; }
.sel-stop { background: #F3F1EA; }
.sel-stop + .sel-stop { margin-top: 10px; }
.sel-planb-nom, .sel-stop-nom { font-weight: 800; font-size: 19px; letter-spacing: -0.01em; margin: 0 0 6px; }
.sel-planb p, .sel-stop p { font-size: 15.5px; line-height: 1.5; margin: 6px 0 0; }
.sel-stop-nom { text-decoration: line-through; text-decoration-thickness: 2px; }

.sel-liens { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 24px 0 0; font-size: 15.5px; }
.sel-cta { display: block; margin: 24px 0 0; padding: 16px 20px; font-size: 16px; line-height: 1.4; text-transform: none; letter-spacing: 0; font-family: inherit; }
.sel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.sel-actions .sel-btn { flex: 1 1 auto; }

.sel-infobulle {
  border: 2px solid #161614;
  background: #FFFFFF;
  width: 26px;
  min-height: 26px;
  padding: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex: 0 0 auto;
}
.sel-familles { margin: 12px 0 0; padding: 14px; border: 2px solid #161614; background: #FFFFFF; font-size: 15px; line-height: 1.5; }
.sel-familles dt { font-weight: 700; margin-top: 10px; }
.sel-familles dt:first-child { margin-top: 0; }
.sel-familles dd { margin: 2px 0 0; color: #3E3E3A; }

@media (max-width: 560px) {
  .sel-carte-haut { flex-direction: column; gap: 12px; }
  .sel-nav .sel-next { margin-left: 0; width: 100%; order: -1; }
  .sel-actions .sel-btn { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .sel-ecran { animation: none; }
  .sel-barre > span { transition: none; }
}

/* ---- Calculateur HubSpot (sièges + crédits) ---------------------------- */
/* Composant de l'article sur le nouveau pricing HubSpot. Même registre que
   le sélecteur : filet d'encre, fond sable, étiquettes en chasse fixe. */

.calc {
  border: 2px solid #161614;
  background: #F3F1EA;
  padding: clamp(20px, 3vw, 30px);
  margin: 36px 0;
  scroll-margin-top: 72px;
}
.calc-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #D63A0A;
  margin-bottom: 10px;
}
.calc h2.calc-titre {
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  scroll-margin-top: 96px;
}
.calc-intro { font-size: 17px; line-height: 1.6; margin: 0 0 20px; color: #1E1E1B; }
.calc-nojs { font-size: 15px; line-height: 1.5; color: #5C5C56; margin: 0; }
.calc-js .calc-nojs { display: none; }
/* Hauteur réservée le temps que le script arrive : le formulaire remplace
   un espace vide, pas le texte qui suit. */
.calc-js .calc-panneau { min-height: 420px; }
.calc-pret .calc-panneau { min-height: 0; }
.calc [hidden] { display: none !important; }
.calc-sr, .calc-annonce {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  margin: 0;
}

.calc-bloc-titre, .calc-reco-label, .calc-legende {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5C5C56;
  margin: 0 0 10px;
}
.calc-legende { padding: 0; margin-bottom: 14px; color: #0B0B0B; }

/* Cas de l'article, en pastilles. */
.calc-exemples { margin: 0 0 22px; }
.calc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-chip {
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.3;
  border: 2px solid #161614;
  background: #FFFFFF;
  color: #0B0B0B;
  padding: 7px 12px;
  cursor: pointer;
  text-align: left;
}
.calc-chip:hover { background: #FFF4EF; }

/* Formulaire : deux colonnes, l'équipe et l'usage. */
.calc-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.calc-fs { border: 2px solid #161614; background: #FFFFFF; margin: 0; padding: 16px; min-width: 0; }
.calc-editions { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.calc-ed, .calc-case {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 2px solid #161614;
  background: #FFFFFF;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.4;
}
.calc-ed:hover, .calc-case:hover { background: #FFF4EF; }
.calc-ed input, .calc-case input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.calc-coche {
  width: 16px;
  height: 16px;
  border: 2px solid #161614;
  background: #FFFFFF;
  flex: 0 0 auto;
  margin-top: 3px;
}
.calc-ed input:checked ~ .calc-coche, .calc-case input:checked ~ .calc-coche { background: #FF4A17; }
.calc-ed input:focus-visible ~ .calc-coche, .calc-case input:focus-visible ~ .calc-coche {
  outline: 2px solid #FF4A17; outline-offset: 3px;
}
.calc-ed:has(input:checked) { background: #FFF4EF; box-shadow: inset 0 0 0 2px #FF4A17; }
.calc-ed-corps { display: flex; flex-direction: column; gap: 2px; }
.calc-ed-nom { font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.calc-ed-prix { font-size: 13.5px; color: #5C5C56; }
.calc-case { margin: 12px 0 0; }

.calc-champ { margin: 0 0 14px; }
.calc-champ:last-child { margin-bottom: 0; }
.calc-champ[data-inactif] { opacity: 0.45; }
.calc-label { display: block; font-weight: 700; font-size: 15px; line-height: 1.35; margin: 0 0 6px; }
.calc-unite {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #D63A0A;
  white-space: nowrap;
}
.calc-aide { font-size: 13.5px; line-height: 1.45; color: #5C5C56; margin: 5px 0 0; }
.calc-repere { font-size: 13.5px; line-height: 1.45; color: #1E1E1B; margin: 6px 0 0; padding: 6px 10px; background: #F3F1EA; border-left: 3px solid #FF4A17; }
.calc-saisie, .calc-nombre input {
  width: 100%;
  max-width: 180px;
  min-height: 44px;
  border: 2px solid #161614;
  background: #FFFFFF;
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  padding: 0 10px;
  color: #0B0B0B;
  -moz-appearance: textfield;
}
.calc-saisie:focus-visible, .calc-nombre input:focus-visible { outline: 2px solid #FF4A17; outline-offset: 2px; }
.calc-saisie::-webkit-outer-spin-button, .calc-saisie::-webkit-inner-spin-button,
.calc-nombre input::-webkit-outer-spin-button, .calc-nombre input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.calc-nombre { display: flex; align-items: center; gap: 8px; }
.calc-nombre input { width: 84px; text-align: center; padding: 0; }

.calc-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid #161614;
  background: #FFFFFF;
  color: #0B0B0B;
  padding: 0 18px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.calc-btn:hover { background: #0B0B0B; color: #FFFFFF; }
.calc-btn--plein { background: #FF4A17; color: #0B0B0B; font-weight: 700; }
.calc-btn--plein:hover { background: #0B0B0B; color: #FFFFFF; }
.calc-pas { width: 44px; padding: 0; font-size: 20px; letter-spacing: 0; }

/* Résultat. */
.calc-resultat { margin: 24px 0 0; }
.calc-carte { border: 2px solid #161614; background: #FFFFFF; padding: clamp(18px, 3vw, 26px); }
.calc-total { margin: 0; line-height: 1; }
.calc-total em {
  font-style: normal;
  font-weight: 800;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.04em;
  background: #FF4A17;
  padding: 0 8px;
}
.calc-total span { font-size: 17px; color: #5C5C56; margin-left: 6px; }
.calc-annuel { font-size: 15.5px; color: #5C5C56; margin: 12px 0 0; }

.calc-detail { width: 100%; border-collapse: collapse; margin: 18px 0 0; font-size: 15.5px; line-height: 1.4; }
.calc-detail th, .calc-detail td { padding: 9px 0; border-top: 1px solid #D9D7CF; text-align: left; vertical-align: top; }
.calc-detail th { font-weight: 700; width: 36%; padding-right: 10px; }
.calc-detail td:nth-child(2) { color: #5C5C56; padding-right: 10px; }
.calc-detail td:last-child { text-align: right; white-space: nowrap; font-family: 'JetBrains Mono', monospace; font-size: 15px; }
.calc-ligne-total th, .calc-ligne-total td { border-top: 2px solid #161614; }
.calc-ligne-total td:last-child { font-size: 17px; }

.calc-alt, .calc-conso { font-size: 14.5px; line-height: 1.5; color: #5C5C56; margin: 10px 0 0; }
.calc-alertes, .calc-notes { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.calc-alerte {
  border-left: 4px solid #FF4A17;
  background: #FFF4EF;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.5;
}
.calc-notes li { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; }
.calc-notes li::before { content: ""; width: 8px; height: 8px; background: #FF4A17; flex: 0 0 auto; margin-top: 8px; }

.calc-compare { margin: 20px 0 0; }
.calc-compare-tuiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.calc-compare-tuile {
  font-family: inherit;
  border: 2px solid #161614;
  background: #FFFFFF;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 44px;
}
.calc-compare-tuile:hover { background: #FFF4EF; }
.calc-compare-tuile.est-courant { background: #FFF4EF; box-shadow: inset 0 0 0 2px #FF4A17; }
.calc-compare-nom {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5C5C56;
}
.calc-compare-valeur { font-size: 15px; color: #5C5C56; }
.calc-compare-valeur strong { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: #0B0B0B; }
.calc-compare-ko { font-size: 13.5px; }

.calc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.calc-actions .calc-btn { flex: 1 1 auto; }
.calc-signature {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #A5A39B;
  margin: 14px 0 0;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .calc-grille { grid-template-columns: 1fr; gap: 14px; }
  .calc-compare-tuiles { grid-template-columns: 1fr; }
  .calc-actions .calc-btn { flex-basis: 100%; }
  .calc-detail th { width: 42%; }
  .calc-detail td:nth-child(2) { display: block; padding: 0 0 6px; border: none; }
  .calc-detail tr { display: grid; grid-template-columns: 1fr auto; }
  .calc-detail th { grid-row: 1; }
  .calc-detail td:last-child { grid-row: 1; }
  .calc-detail td:nth-child(2) { grid-column: 1 / -1; }
}

/* ---- Les baromètres de visibilité --------------------------------------- */
/* Pages /etude/barometre-*. Le balisage vient du render.js de chaque édition,
   qui porte tout en style inline comme les maquettes. Ne restent ici que les
   survols et ce qu'un attribut de style ne peut pas exprimer — et les classes
   .baro-* sont communes aux trois éditions. */

/* Le corps de texte de la maquette du baromètre : 16 px, interligne 1.5.
   L'en-tête et le pied du site gardent les leurs. */
.baro { font-size: 16px; line-height: 1.5; }

.baro input::placeholder { color: #7A7A75; }
.baro table a:hover { text-decoration: underline; }

.baro-nav:hover { background: #FF4A17 !important; color: #121212 !important; }
.baro-hit:hover { background: #FFD2C2; }
.baro-row:hover, .baro-row:focus-visible { background: #FFF1EB; }
.baro-card:hover, .baro-card:focus-visible { border-color: #121212; }
.baro-mini:hover { color: #D63A0A !important; }
.baro-lead:hover { background: #2A2A28 !important; }
.baro-btn:hover { background: #FFD2C2; }
.baro-cta:hover { background: #FF6A3D !important; }

/* Le bloc carte d'une commune, les tuiles de rang d'une fiche, les requêtes
   où l'entité n'est pas classée, et les deux portes de l'appel de fin. */
.baro-pack:hover, .baro-pack:focus-visible { background: #FFD2C2 !important; }
.baro-tuile:hover, .baro-tuile:focus-visible { background: #FF6A3D !important; }
.baro-muet:hover { color: #121212 !important; }
.baro-diag:hover, .baro-diag:focus-visible { background: #FFD2C2 !important; }
.baro-porte:hover { background: #F0F0ED; }

/* L'identité réglementaire d'un courtier, en bulle à côté de son nom. Le
   contenu reste dans le document — un robot qui n'exécute pas de JavaScript
   doit lire le numéro ORIAS comme n'importe qui. La bulle s'ouvre au survol
   et à la mise au point clavier : pas de JavaScript, et joignable au doigt
   comme à la tabulation. */
.baro-ident { position: relative; display: inline-block; }

.baro-ident-cle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid #D9D3CB;
  border-radius: 999px;
  background: #FFFFFF;
  color: #3A3732;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: help;
}

.baro-ident-cle:hover,
.baro-ident-cle:focus-visible { border-color: #0B0B0B; color: #0B0B0B; }

.baro-ident-bulle {
  display: none;
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  left: 0;
  width: min(360px, calc(100vw - 48px));
  padding: 16px 18px;
  border: 1px solid #0B0B0B;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 5px 5px 0 rgba(11, 11, 11, .07);
  text-align: left;
  white-space: normal;
  /* Une enseigne à rallonge ne doit pas pousser la bulle hors de l'écran. */
  max-height: min(60vh, 460px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.baro-ident:hover > .baro-ident-bulle,
.baro-ident:focus-within > .baro-ident-bulle { display: block; }


/* La mention de bas de page du baromètre, au-dessus du pied de page du site. */
.baro-note {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid #E6E2DC;
  font-size: 13px;
  line-height: 1.6;
  color: #6B6762;
}

/* Réservé aux lecteurs d'écran : les annonces de changement de vue et les
   légendes de tableau. */
.baro-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  margin: 0;
}

/* CTA agenda collé à droite des articles : trop étroite, la colonne le masque. */
@container cta (max-width: 239px) {
  .cta-card { display: none !important; }
}

[data-h="1"]:hover, [data-h="1"]:focus-visible { color:#0B0B0B !important; background:#F3F1EA !important; }
[data-h="2"]:hover, [data-h="2"]:focus-visible { background:#0B0B0B !important; color:#FFFFFF !important; }
[data-h="3"]:hover, [data-h="3"]:focus-visible { background:#F3F1EA !important; }
[data-h="4"]:hover, [data-h="4"]:focus-visible { background:#FFFFFF !important; color:#0B0B0B !important; }
[data-h="5"]:hover, [data-h="5"]:focus-visible { color:#0B0B0B !important; }
[data-h="6"]:hover, [data-h="6"]:focus-visible { color:#D63A0A !important; }
[data-h="7"]:hover, [data-h="7"]:focus-visible { background:#FFFFFF !important; border-color:#D63A0A !important; }
