/* SimuRapide — socle visuel 2026
   Chargée en dernier sur toutes les pages. Uniquement des ajouts :
   tokens, confort de lecture, accessibilité, transitions. Aucun
   changement de mise en page des calculateurs existants. */

/* Police de marque : Geist (SIL OFL), sous-ensemble latin, axe de graisse 400–650.
   Les graisses demandées au-delà (700, 800, 900) sont ramenées à 650 :
   les titres restent affirmés sans paraître massifs. */
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist/geist-latin.woff2") format("woff2");
  font-weight: 400 650;
  font-style: normal;
  font-display: swap;
}
/* Gabarit de repli aux mêmes proportions, pour éviter le saut de mise en page au chargement. */
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 101%;
  ascent-override: 91%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  --sr-font-sans: "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* Couleurs de marque */
  --sr-brand: #2563eb;
  --sr-brand-strong: #1d4ed8;
  --sr-brand-soft: #eff6ff;
  --sr-ink: #0f172a;
  --sr-ink-muted: #475569;
  --sr-surface: #ffffff;
  --sr-canvas: #f8fafc;
  --sr-border: #e2e8f0;
  --sr-success: #047857;
  --sr-warning: #b45309;
  --sr-danger: #b91c1c;

  /* Rayons, ombres, espacements */
  --sr-radius-sm: .5rem;
  --sr-radius-md: .875rem;
  --sr-radius-lg: 1.25rem;
  --sr-radius-xl: 1.75rem;
  --sr-radius-pill: 999px;
  --sr-shadow-1: 0 1px 2px rgb(15 23 42 / .06), 0 1px 3px rgb(15 23 42 / .08);
  --sr-shadow-2: 0 4px 12px -2px rgb(15 23 42 / .08), 0 2px 6px -2px rgb(15 23 42 / .06);
  --sr-shadow-3: 0 18px 40px -12px rgb(15 23 42 / .22);
  --sr-space-1: .25rem;
  --sr-space-2: .5rem;
  --sr-space-3: .75rem;
  --sr-space-4: 1rem;
  --sr-space-6: 1.5rem;
  --sr-space-8: 2rem;

  /* Typographie fluide */
  --sr-fs-xs: .75rem;
  --sr-fs-sm: .875rem;
  --sr-fs-base: 1rem;
  --sr-fs-lg: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  --sr-fs-xl: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --sr-fs-2xl: clamp(1.5rem, 1.25rem + 1.1vw, 2rem);
  --sr-fs-3xl: clamp(1.875rem, 1.4rem + 2vw, 3rem);

  /* Interactions */
  --sr-focus-ring: 0 0 0 3px rgb(37 99 235 / .35);
  --sr-ease: cubic-bezier(.2, .8, .2, 1);
  --sr-header-offset: 5rem;

  accent-color: var(--sr-brand);
}

/* Ancres : le titre visé n'est plus masqué par l'en-tête collant. */
html {
  scroll-padding-top: var(--sr-header-offset);
  -webkit-tap-highlight-color: rgb(37 99 235 / .12);
}

/* Confort de lecture : titres équilibrés sur plusieurs lignes. */
:where(h1, h2, h3) {
  text-wrap: balance;
}

::selection {
  background: rgb(37 99 235 / .18);
  color: inherit;
}

/* Chiffres alignés dans les résultats et les tableaux. */
:where([aria-live], output, table, [role="status"]) {
  font-variant-numeric: tabular-nums;
}

/* Sur-titre du H1 : porte le terme recherché sans alourdir l'accroche. */
.sr-h1-kicker {
  display: block;
  margin: 0 0 .5rem;
  font-size: clamp(.8125rem, .76rem + .25vw, .9375rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .01em;
  color: var(--sr-brand-strong);
  -webkit-text-fill-color: currentColor;
  background: none;
}

.sr-home-title .sr-h1-kicker {
  color: #93c5fd;
  margin-bottom: .75rem;
}

/* Focus clavier visible et homogène, sans gêner la souris. */
/* Les champs marqués outline-none ont leur propre indicateur (bordure du
   cadre parent via focus-within) : on ne leur ajoute pas un second contour,
   qui serait coupé par le cadre et laisserait une barre dans le champ. */
:where(a, button, input, select, textarea, summary, [tabindex]):where(:not(.outline-none)):focus-visible {
  outline: 2px solid var(--sr-brand);
  outline-offset: 2px;
}

/* Résultat périmé pendant une saisie invalide (posé par les scripts). */
[data-result-stale] {
  transition: opacity .2s var(--sr-ease);
}

/* Cibles tactiles : confort minimal sur écran tactile. */
@media (pointer: coarse) {
  :where(nav) :where(button, a[role="button"]) {
    min-height: 44px;
    min-width: 44px;
  }

  :where(summary) {
    min-height: 44px;
  }
}

/* Navigation entre pages : fondu natif (Chrome, Edge, Safari récents). */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: .18s;
  }
}

/* Mouvements réduits : respecte la préférence système partout. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Impression : seul le contenu utile. */
@media print {
  .sr-h1-kicker {
    color: #000;
  }
}

/* Outils complémentaires (maillage interne) */
.sr-related-plus {
  max-width: 64rem;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
}

.sr-related-plus__title {
  margin: 0 0 .5rem;
  font-size: var(--sr-fs-sm);
  font-weight: 700;
  color: var(--sr-ink-muted);
}

.sr-related-plus ul {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-related-plus a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: .5rem .9rem;
  border: 1px solid var(--sr-border);
  border-radius: var(--sr-radius-pill);
  background: var(--sr-surface);
  color: var(--sr-brand-strong);
  font-size: var(--sr-fs-sm);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--sr-shadow-1);
  transition: border-color .15s var(--sr-ease), box-shadow .15s var(--sr-ease), transform .15s var(--sr-ease);
}

.sr-related-plus a::after {
  content: "→";
  margin-left: .4rem;
  opacity: .6;
}

.sr-related-plus a:hover {
  border-color: rgb(37 99 235 / .45);
  box-shadow: var(--sr-shadow-2);
  transform: translateY(-1px);
}

/* Titres de page sans style dédié (pages éditoriales : à propos, mentions…) :
   le H1 retrouve une taille supérieure aux H2. */
/* Limité aux pages éditoriales « prose » sans style de titre. */
main.prose > h1:where(:not([class])) {
  margin: 0 0 .5rem;
  font-size: var(--sr-fs-3xl);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--sr-ink);
}

/* Barre de résultat mobile (posée par js/modern-2026.js) : le chiffre
   principal reste sous le pouce pendant la saisie ; un appui mène au détail. */
.sr-result-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  min-height: 60px;
  margin: 0;
  padding: .55rem max(1rem, env(safe-area-inset-right, 0px)) calc(.55rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
  border: 0;
  border-top: 1px solid var(--sr-border);
  background: rgba(255, 255, 255, .97);
  color: var(--sr-ink);
  font: inherit;
  text-align: left;
  box-shadow: 0 -8px 24px -12px rgba(13, 23, 48, .28);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .sr-result-bar {
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
  }
}

.sr-result-bar[hidden] {
  display: none;
}

.sr-result-bar__text {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: .1rem;
}

.sr-result-bar__label {
  overflow: hidden;
  color: var(--sr-ink-muted);
  font-size: var(--sr-fs-xs);
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sr-result-bar__value {
  overflow: hidden;
  font-size: 1.375rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sr-result-bar--plain .sr-result-bar__value {
  font-size: var(--sr-fs-base);
}

.sr-result-bar__action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .3rem;
  min-height: 40px;
  padding: 0 .9rem;
  border-radius: var(--sr-radius-pill);
  background: var(--sr-brand);
  color: #fff;
  font-size: var(--sr-fs-sm);
  font-weight: 650;
}

.sr-result-bar:focus-visible {
  outline: 3px solid var(--sr-brand);
  outline-offset: -3px;
}

body.sr-has-result-bar {
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
}

@media (prefers-reduced-motion: no-preference) {
  .sr-result-bar:not([hidden]) {
    animation: sr-result-bar-in .2s var(--sr-ease);
  }
}

@keyframes sr-result-bar-in {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 1024px) {
  .sr-result-bar { display: none !important; }
  body.sr-has-result-bar { padding-bottom: 0; }
}

@media print {
  .sr-result-bar { display: none !important; }
  body.sr-has-result-bar { padding-bottom: 0; }
}

/* Ouverture compacte des outils sur téléphone (scripts/tool-template-normalize.js) :
   lien retour vers la rubrique, puis le titre ; le formulaire arrive dans le
   premier écran. Le texte d'introduction reste dans la page sur grand écran. */
@media (max-width: 639px) {
  .simurapide-breadcrumb {
    margin-bottom: .5rem;
  }

  /* Fil d'Ariane : rubrique en entier puis page courante (l'accueil est
     déjà dans l'en-tête) ; seule la page courante peut être tronquée. */
  .simurapide-breadcrumb ol {
    width: 100%;
  }

  .simurapide-breadcrumb ol > li:not(:nth-last-child(-n+3)) {
    display: none;
  }

  .simurapide-breadcrumb ol > li:nth-last-child(3):not(.simurapide-breadcrumb__home) {
    flex: 0 0 auto;
  }

  .simurapide-breadcrumb ol > li:nth-last-child(3):not(.simurapide-breadcrumb__home) > a {
    max-width: 58vw;
    margin-left: -.625rem;
  }

  .simurapide-breadcrumb ol > li:last-child {
    flex: 1 1 0;
    min-width: 3rem;
  }

  .simurapide-breadcrumb ol > li:last-child [aria-current='page'] {
    max-width: 100%;
  }

  main .sr-tool-hero {
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    text-align: left;
  }

  /* Ouvertures sombres (solde de tout compte) : le fond est retiré sur
     téléphone, le titre clair doit donc repasser en couleurs de lecture. */
  main .sr-stc-hero.sr-tool-hero {
    color: var(--sr-ink);
  }

  main .sr-stc-hero.sr-tool-hero .sr-stc-title em {
    color: var(--sr-brand);
  }

  main .sr-tool-hero::before,
  main .sr-tool-hero::after {
    display: none;
  }

  /* Masqué sur téléphone : surtitre, chapeau, pastilles. Restent visibles le
     titre, les commandes, les avertissements et les messages d'état. */
  main .sr-tool-hero > :not(h1, details, [role="alert"], [role="status"], [role="note"], [aria-live], [id*="status" i], [class*="amber"], [class*="warn"], [class*="alert"], [class*="notice"], [class*="note"]):not(:has(h1, button, input, select, textarea, details, [role="alert"], [role="status"], [role="note"], [aria-live], [id*="status" i], [class*="amber"], [class*="warn"], [class*="alert"], [class*="notice"], [class*="note"])),
  main .sr-tool-hero > :has(> h1) > :not(h1, details, [role="alert"], [role="status"], [role="note"], [aria-live], [id*="status" i], [class*="amber"], [class*="warn"], [class*="alert"], [class*="notice"], [class*="note"]):not(:has(h1, button, input, select, textarea, details, [role="alert"], [role="status"], [role="note"], [aria-live], [id*="status" i], [class*="amber"], [class*="warn"], [class*="alert"], [class*="notice"], [class*="note"])) {
    display: none;
  }

  main .sr-tool-hero > :not(h1) {
    margin-top: .75rem;
  }

  main .sr-tool-hero > :has(> h1) {
    margin: 0;
    padding: 0;
  }

  main .sr-tool-hero h1 {
    margin: 0;
    font-size: 1.625rem;
    line-height: 1.15;
    text-align: left;
    text-wrap: balance;
  }

  /* Liens d'ancre vers les explications : déjà accessibles en faisant défiler. */
  main .sr-tool-hero nav {
    display: none;
  }

  main .sr-tool-hero .salary-hero__footer {
    margin-top: .25rem;
    padding-top: 0;
    border-top: 0;
  }

  main .sr-tool-hero h1 > span:not(.sr-h1-kicker),
  main .sr-tool-hero h1 > em {
    display: inline;
  }
}

/* Exemples chiffrés (pages argent) */
.sr-examples {
  max-width: 64rem;
  margin: 2rem auto;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border: 1px solid var(--sr-border);
  border-radius: var(--sr-radius-xl);
  background: var(--sr-surface);
  box-shadow: var(--sr-shadow-1);
  color: var(--sr-ink-muted);
  font-size: var(--sr-fs-base);
  line-height: 1.65;
}

.sr-examples__eyebrow {
  margin: 0 0 .35rem;
  color: var(--sr-brand-strong);
  font-size: var(--sr-fs-xs);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sr-examples h2 {
  margin: 0 0 .75rem;
  color: var(--sr-ink);
  font-size: var(--sr-fs-2xl);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.sr-examples p {
  margin: 0 0 1rem;
}

.sr-examples__table {
  margin: 0 0 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--sr-border);
  border-radius: var(--sr-radius-md);
  -webkit-overflow-scrolling: touch;
}

.sr-examples table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: var(--sr-fs-sm);
  font-variant-numeric: tabular-nums;
}

.sr-examples caption {
  padding: .75rem 1rem;
  background: var(--sr-canvas);
  color: var(--sr-ink);
  font-weight: 700;
  text-align: left;
}

.sr-examples th,
.sr-examples td {
  padding: .65rem 1rem;
  border-top: 1px solid var(--sr-border);
  text-align: left;
  vertical-align: top;
}

.sr-examples thead th {
  background: var(--sr-canvas);
  color: var(--sr-ink-muted);
  font-size: var(--sr-fs-xs);
  font-weight: 700;
  letter-spacing: .02em;
}

.sr-examples tbody th {
  color: var(--sr-ink);
  font-weight: 700;
}

.sr-examples td:last-child {
  color: var(--sr-ink);
  font-weight: 700;
}

.sr-examples__note {
  padding: .75rem 1rem;
  border-left: 3px solid var(--sr-brand);
  border-radius: 0 var(--sr-radius-sm) var(--sr-radius-sm) 0;
  background: var(--sr-brand-soft);
  color: var(--sr-ink);
  font-size: var(--sr-fs-sm);
}

.sr-examples > :last-child {
  margin-bottom: 0;
}

/* Tableaux d'exemples : lignes empilées en cartes sur mobile. */
@media (max-width: 640px) {
  .sr-examples__table {
    overflow: visible;
    border: 0;
  }

  .sr-examples table,
  .sr-examples tbody,
  .sr-examples tr,
  .sr-examples th,
  .sr-examples td,
  .sr-examples caption {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .sr-examples thead {
    display: none;
  }

  .sr-examples caption {
    padding: 0 0 .5rem;
    background: none;
  }

  .sr-examples tbody tr {
    margin-bottom: .75rem;
    border: 1px solid var(--sr-border);
    border-radius: var(--sr-radius-md);
    overflow: hidden;
  }

  .sr-examples tbody th {
    border-top: 0;
    background: var(--sr-canvas);
  }

  .sr-examples td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    text-align: right;
  }

  .sr-examples td::before {
    content: attr(data-label);
    color: var(--sr-ink-muted);
    font-weight: 600;
    text-align: left;
  }
}

/* Rendu de texte net sur macOS / iOS (sans effet ailleurs). */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

/* ------------------------------------------------------------------
   En-tête et pied de page uniques (scripts/site-chrome-normalize.js)
   ------------------------------------------------------------------ */
body > nav.sr-site-nav {
  background: rgb(255 255 255 / .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--sr-border);
  box-shadow: none;
}
body > nav.sr-site-nav > .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  height: 4rem;
  padding-inline: 1rem;
}
.sr-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .55rem;
  color: var(--sr-ink);
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -.015em;
  text-decoration: none;
}
.sr-brand__mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: .6rem;
  background: var(--sr-brand);
  color: #fff;
  font-size: .95rem;
  font-weight: 650;
}
.sr-brand__name > span { color: var(--sr-brand); }
.sr-site-nav__links { display: none; align-items: center; gap: .125rem; }
.sr-site-nav__links a {
  border-radius: .55rem;
  padding: .45rem .7rem;
  color: var(--sr-ink-muted);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.sr-site-nav__links a:hover { background: #f1f5f9; color: var(--sr-ink); }
.sr-site-nav__links a[aria-current="page"] { background: var(--sr-brand-soft); color: var(--sr-brand-strong); }
.sr-site-nav .simurapide-all-tools-link { margin-left: auto; flex-shrink: 0; }
.sr-site-nav .sr-nav-search + .simurapide-all-tools-link { margin-left: 0; }
@media (min-width: 1024px) {
  .sr-site-nav__links { display: flex; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .sr-site-nav__links a { padding-inline: .5rem; }
  .sr-site-nav .sr-nav-search__shortcut { display: none; }
}

.sr-site-footer {
  border-top: 1px solid var(--sr-border);
  background: var(--sr-surface);
  color: var(--sr-ink-muted);
  font-size: .875rem;
}
.sr-site-footer > .container { display: grid; gap: 2rem; padding: 2.5rem 1rem 1.5rem; }
.sr-site-footer__grid { display: grid; gap: 1.75rem 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sr-site-footer__brand { grid-column: 1 / -1; }
@media (min-width: 1024px) { .sr-site-footer__brand { grid-column: auto; } }
@media (min-width: 1024px) { .sr-site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.sr-site-footer__brand { display: grid; align-content: start; gap: .75rem; }
.sr-site-footer__brand p { max-width: 32ch; line-height: 1.6; }
.sr-site-footer__title {
  margin: 0 0 .75rem;
  color: var(--sr-ink);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sr-site-footer ul { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.sr-site-footer a { color: var(--sr-ink-muted); text-decoration: none; }
.sr-site-footer a:hover { color: var(--sr-brand-strong); text-decoration: underline; text-underline-offset: 3px; }
.sr-site-footer a[aria-current="page"] { color: var(--sr-ink); font-weight: 500; }
.sr-site-footer .sr-brand { color: var(--sr-ink); }
.sr-site-footer .sr-brand:hover { text-decoration: none; }
.sr-site-footer__related-wrap { padding-bottom: 1.5rem; border-bottom: 1px solid var(--sr-border); }
.sr-site-footer ul.sr-site-footer__related { display: flex; flex-wrap: wrap; gap: .5rem; }
.sr-site-footer__related a {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  border: 1px solid var(--sr-border);
  border-radius: 999px;
  padding: .3rem .85rem;
  color: var(--sr-ink);
}
.sr-site-footer__related a:hover { border-color: #bfdbfe; background: var(--sr-brand-soft); text-decoration: none; }
.sr-site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  border-top: 1px solid var(--sr-border);
  padding-top: 1.25rem;
  color: #64748b;
  font-size: .8rem;
}
@media (max-width: 639px) {
  .sr-site-footer ul { gap: 0; }
  .sr-site-footer ul:not(.sr-site-footer__related) a { display: inline-flex; min-height: 2.5rem; align-items: center; }
  .sr-site-footer ul.sr-site-footer__related { gap: .5rem; }
}
@media print { .sr-site-nav, .sr-site-footer { display: none !important; } }
/* Pages dont le body est déjà rembourré (mentions légales) : barre pleine largeur. */
body.p-4 > nav.sr-site-nav { margin: -1rem -1rem 0; }

/* ==========================================================================
   Étape 5 — cartes neutres (accueil, rubriques, catalogue)
   Fond blanc, filet fin, icône monochrome bleue, une seule couleur de lien.
   L'ombre est réservée au survol ; plus de coins décoratifs ni d'aplats pastel.
   ========================================================================== */

/* Parcours thématiques : même teinte pour tous les thèmes. */
.sr-path-theme[data-path-theme] {
  --path-accent: var(--sr-brand);
  --path-tint: #fff;
  --path-border: var(--sr-border);
  --path-icon: var(--sr-brand-soft);
}

.sr-topic-path.sr-path-theme {
  border-top: 1px solid var(--sr-border);
  background: #fff;
}

.sr-topic-path.sr-path-theme:hover {
  border-color: var(--sr-brand);
}

/* Accueil : cartes « outils les plus demandés » et « autres tâches ». */
body[data-visual-content="index"] main a.group {
  border: 1px solid var(--sr-border);
  background: #fff;
  box-shadow: none;
  transform: none;
}

body[data-visual-content="index"] main a.group:hover {
  border-color: var(--sr-brand);
  box-shadow: var(--sr-shadow-1);
  transform: none;
}

body[data-visual-content="index"] #featuredTools > a > .absolute {
  display: none;
}

body[data-visual-content="index"] main a.group > [class*="w-12"],
body[data-visual-content="index"] main a.group > [class*="w-10"] {
  background: var(--sr-brand-soft);
  color: var(--sr-brand);
}

body[data-visual-content="index"] main a.group:hover > [class*="w-12"] {
  background: var(--sr-brand);
  color: #fff;
}

body[data-visual-content="index"] main a.group > :last-child {
  color: var(--sr-brand);
}

/* Accueil : sections sans cadre autour des grilles. */
body[data-visual-content="index"] #topicHubs > div,
body[data-visual-content="index"] main section:has(> #pourquoi-simurapide-title),
body[data-visual-content="index"] #homeComparisons {
  border: 0;
  background: none;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

body[data-visual-content="index"] main section:has(> #pourquoi-simurapide-title) > .grid > * {
  border: 1px solid var(--sr-border);
  background: #fff;
  box-shadow: none;
}

body[data-visual-content="index"] main section:has(> #pourquoi-simurapide-title) > .grid > * > span:first-child {
  background: var(--sr-brand-soft);
  color: var(--sr-brand);
}

.vc-comparison-grid > .vc-comparison-group,
.vc-comparison-grid > .vc-comparison-group:nth-child(n) {
  border-color: var(--sr-border);
  background: #fff;
}

.vc-comparison-group li + li {
  border-top-color: var(--sr-border);
}

/* Portes d'entrée des rubriques : carte blanche au lieu de l'aplat bleu. */
main a.rounded-2xl.bg-blue-50\/70 {
  border-color: var(--sr-border);
  background: #fff;
}

main a.rounded-2xl.bg-blue-50\/70:hover {
  border-color: var(--sr-brand);
}

/* Téléphone : les cartes deviennent des lignes (icône, titre, une ligne). */
@media (max-width: 639px) {
  body[data-visual-content="index"] #featuredTools > a,
  main a.group:has(> span[class*="w-10"]:first-child),
  main a.sr-topic-path {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    column-gap: .875rem;
    row-gap: .125rem;
    align-items: center;
    min-height: 0;
    padding: .75rem .875rem;
    border-radius: var(--sr-radius-lg);
  }

  body[data-visual-content="index"] #featuredTools > a > [class*="w-12"],
  main a.group:has(> span[class*="w-10"]:first-child) > span:first-child,
  main a.sr-topic-path > .sr-topic-path__icon {
    grid-row: span 2;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
    font-size: 1rem;
  }

  body[data-visual-content="index"] #featuredTools > a > h3,
  main a.group:has(> span[class*="w-10"]:first-child) > :nth-child(2),
  main a.sr-topic-path > strong {
    margin: 0;
    font-size: .95rem;
    line-height: 1.3;
  }

  body[data-visual-content="index"] #featuredTools > a > p,
  main a.group:has(> span[class*="w-10"]:first-child) > :nth-child(3),
  main a.sr-topic-path > .sr-topic-path__copy {
    margin: 0;
    font-size: .8rem;
    line-height: 1.35;
  }

  body[data-visual-content="index"] #featuredTools > a > :last-child:not(p),
  main a.group:has(> span[class*="w-10"]:first-child) > :nth-child(n+4),
  main a.sr-topic-path > .sr-topic-path__action {
    display: none;
  }

  body[data-visual-content="index"] #featuredTools,
  body[data-visual-content="index"] #topicHubs .grid,
  main .grid:has(> a.group > span[class*="w-10"]:first-child) {
    gap: .5rem;
  }

  #homeComparisons .vc-comparison-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
  }

  #homeComparisons .vc-comparison-group {
    padding: .75rem;
  }

  #homeComparisons .vc-comparison-group h3 {
    font-size: .875rem;
  }

  #homeComparisons .vc-comparison-group a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0;
    font-size: .8125rem;
    line-height: 1.25;
  }

  body[data-visual-content="index"] main section:has(> #pourquoi-simurapide-title) {
    padding-top: 0;
    padding-bottom: 0;
  }

  body[data-visual-content="index"] main section:has(> #pourquoi-simurapide-title) > .grid {
    gap: .5rem;
  }

  body[data-visual-content="index"] main section:has(> #pourquoi-simurapide-title) > .grid > * {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    column-gap: .875rem;
    padding: .875rem;
  }

  body[data-visual-content="index"] main section:has(> #pourquoi-simurapide-title) > .grid > * > span:first-child {
    grid-row: span 2;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
  }

  body[data-visual-content="index"] main section:has(> #pourquoi-simurapide-title) > .grid > * > h4 {
    margin-bottom: .25rem;
  }

  body[data-visual-content="index"] main section:has(> #pourquoi-simurapide-title) > .grid > * > p {
    font-size: .8125rem;
    line-height: 1.5;
  }

  /* Questions fréquentes : sans cadre autour de la liste. */
  body[data-visual-content="index"] main section.rounded-3xl:has(details) {
    padding-left: 0;
    padding-right: 0;
    border: 0;
    background: none;
  }
}

/* Outils fichiers (PDF, images, audio) : une seule couleur d'action, le bleu. */
body[data-tool-tone] {
  --fu-accent: var(--sr-brand);
  --fu-accent-dark: var(--sr-brand-strong);
  --fu-soft: var(--sr-brand-soft);
  --fu-border: #bfdbfe;
}
