/*
 * Composants partagés des sites vitrines (spec 018) : base, en-tête, pied de
 * page, boutons, cartes, étapes, bascule de prix, FAQ.
 * Mobile d'abord; aucun défilement horizontal de 320 à 1920 px.
 * Aucune déclaration `style` en ligne n'est permise (CSP style-src 'self').
 */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

/* Tout MOUVEMENT vit dans ce bloc : rien ne bouge pour qui a demandé de réduire les animations
 * (prefers-reduced-motion: reduce) — le schéma du héros reste alors fixe, tel que dessiné. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Schéma du héros de kataxe.com en orbite (lot SITES-KX7, demande de l'associé du 2026-11-06) :
   * les rayons et les sept pastilles (.ill-orbite) tournent autour du centre du cercle (260, 190 du
   * viewBox), un tour en 90 s; chaque pastille (.ill-satellite) contre-tourne autour de SON centre
   * (fill-box = boîte du rect, le texte y étant contenu) au même rythme : son étiquette reste droite.
   * Transformations seulement : aucun décalage de mise en page. Les pastilles restent dans le viewBox
   * (rayon 140 + demi-largeur 62 + trait < 260; rayon 140 + demi-hauteur 20 < 190). */
  .ill-orbite {
    transform-box: view-box;
    transform-origin: 260px 190px;
    animation: ill-orbite 90s linear infinite;
  }
  .ill-satellite {
    transform-box: fill-box;
    transform-origin: center;
    animation: ill-orbite 90s linear infinite reverse;
  }
  /* « Souffle » très léger de la pastille active (module Capture). */
  .ill-noeud--actif {
    transform-box: fill-box;
    transform-origin: center;
    animation: ill-souffle 6s ease-in-out infinite alternate;
  }
}
@keyframes ill-orbite { to { transform: rotate(1turn); } }
@keyframes ill-souffle { from { transform: scale(1); } to { transform: scale(1.04); } }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: var(--taille-base);
  line-height: var(--interligne);
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--e-4);
  text-wrap: balance;
}
h1 { font-size: var(--taille-h1); font-weight: 800; }
h2 { font-size: var(--taille-h2); font-weight: 750; }
h3 { font-size: var(--taille-h3); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 var(--e-4); }
ul, ol { margin: 0 0 var(--e-4); padding-left: 1.25em; }

a { color: var(--accent-trait); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-fort); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.visuellement-masque {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.lien-evitement {
  position: absolute;
  left: var(--e-4);
  top: -10rem;
  z-index: 10;
  padding: var(--e-3) var(--e-4);
  background: var(--surface);
  color: var(--texte);
  border: 2px solid var(--focus);
  border-radius: var(--rayon-petit);
}
.lien-evitement:focus { top: var(--e-4); }

.conteneur {
  width: 100%;
  max-width: var(--largeur-max);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

/* ---------- En-tête ---------- */

.entete {
  border-bottom: 1px solid var(--bordure);
  background: var(--fond);
}
.entete__rangee {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-2) var(--e-5);
  padding-block: var(--e-3);
}
.marque {
  display: inline-flex;
  align-items: center;
  gap: var(--e-2);
  min-height: var(--cible-min);
  color: var(--texte);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}
.marque:hover { color: var(--texte); }
.marque svg { width: 2rem; height: 2rem; flex: none; }

.nav-principale { order: 3; width: 100%; }
.nav-principale ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--e-1);
  margin: 0 0 0 calc(-1 * var(--e-2));
  padding: 0;
  list-style: none;
}
.nav-principale a {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible-min);
  padding-inline: var(--e-2);
  color: var(--texte-doux);
  font-size: var(--taille-petite);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--rayon-petit);
}
.nav-principale a:hover { color: var(--texte); background: var(--fond-alt); }

@media (min-width: 56rem) {
  .entete { position: sticky; top: 0; z-index: 5; }
  html { scroll-padding-top: 8.5rem; } /* en-tête collant sur deux rangées */
}
@media (min-width: 75rem) {
  html { scroll-padding-top: 5rem; }
}
/* Navigation sur la même rangée que la marque et le sélecteur seulement quand
   les trois tiennent dans toutes les langues (libellés espagnols les plus longs). */
@media (min-width: 75rem) {
  .nav-principale { order: 0; width: auto; margin-left: auto; }
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--e-2);
  min-height: var(--cible-min);
  padding: var(--e-2) var(--e-5);
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: var(--taille-petite);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn--primaire { background: var(--accent); color: var(--accent-texte); }
.btn--primaire:hover { background: var(--accent-fort); color: var(--accent-texte); }
.btn--secondaire {
  background: transparent;
  color: var(--texte);
  border-color: var(--bordure-forte);
}
.btn--secondaire:hover { color: var(--texte); border-color: var(--texte); }
/* État « Bientôt » : n'est PAS un contrôle (aucun lien), seulement un libellé. */
.btn--inactif {
  background: var(--fond-alt);
  color: var(--texte-doux);
  border: 2px dashed var(--bordure-forte);
  cursor: default;
}
.actions { display: flex; flex-wrap: wrap; gap: var(--e-3); }

/* ---------- Sections ---------- */

.section { padding-block: var(--e-8); }
.section--alt { background: var(--fond-alt); }
.section__entete { max-width: var(--largeur-texte); margin-bottom: var(--e-6); }
.surtitre {
  display: block;
  margin-bottom: var(--e-2);
  color: var(--accent-trait);
  font-size: var(--taille-petite);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.chapeau { color: var(--texte-doux); font-size: 1.125rem; }

/* ---------- Héros ---------- */

.heros { padding-block: var(--e-7) var(--e-8); }
.heros__grille { display: grid; gap: var(--e-7); align-items: center; }
.heros__texte { max-width: 40rem; }
.heros .chapeau { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); }
.heros__note { margin-top: var(--e-4); color: var(--texte-doux); font-size: var(--taille-petite); }
.illustration { width: 100%; max-width: 34rem; margin-inline: auto; }

@media (min-width: 60rem) {
  .heros__grille { grid-template-columns: 1.05fr 1fr; }
}

/* ---------- Grilles et cartes ---------- */

.grille { display: grid; gap: var(--e-5); }
@media (min-width: 40rem) { .grille--2, .grille--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 40rem) { .grille--4 { grid-template-columns: repeat(2, 1fr); } }
/* Carte seule (prix unique de KATAXE | Capture) : largeur de lecture, centrée. */
.grille--seule { max-width: 32rem; margin-inline: auto; }
@media (min-width: 64rem) {
  .grille--3 { grid-template-columns: repeat(3, 1fr); }
  .grille--4 { grid-template-columns: repeat(4, 1fr); }
}

.carte {
  display: flex;
  flex-direction: column;
  padding: var(--e-5);
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}
.carte > :last-child { margin-bottom: 0; }
.carte p { color: var(--texte-doux); }
.carte__icone {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: var(--e-4);
  border-radius: var(--rayon-petit);
  background: var(--accent-doux);
  color: var(--accent-trait);
}
.carte__icone svg { width: 1.5rem; height: 1.5rem; }
.carte__pied { margin-top: auto; padding-top: var(--e-3); }
.carte__titre { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-2) var(--e-3); }

.pastille {
  display: inline-block;
  padding: 0.15em 0.65em;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.5;
  background: var(--fond-alt);
  color: var(--texte-doux);
  border: 1px solid var(--bordure);
}
.pastille--accent { background: var(--accent-badge); color: var(--accent-badge-texte); border-color: transparent; }
.pastille--signal { background: var(--signal-doux); color: var(--signal); border-color: transparent; }

/* ---------- Étapes ---------- */

.etapes {
  display: grid;
  gap: var(--e-5);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}
@media (min-width: 40rem) { .etapes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .etapes { grid-template-columns: repeat(4, 1fr); } }
.etapes > li { counter-increment: etape; }
.etapes h3::before {
  content: counter(etape);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: var(--e-3);
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-texte);
  font-size: 1rem;
}
.etape--coeur { border: 2px solid var(--accent-trait); }

/* ---------- Listes à puces cochées ---------- */

.liste-cochee { list-style: none; padding: 0; }
.liste-cochee li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: var(--e-2);
}
.liste-cochee li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.45em;
  width: 0.9rem;
  height: 0.5rem;
  border-left: 3px solid var(--accent-trait);
  border-bottom: 3px solid var(--accent-trait);
  transform: rotate(-45deg);
}

/* ---------- Prix ---------- */

.bascule {
  display: inline-flex;
  flex-wrap: wrap;
  margin: 0 0 var(--e-6);
  padding: var(--e-1);
  border: 1px solid var(--bordure-forte);
  border-radius: 999px;
  background: var(--surface);
}
.bascule[hidden] { display: none; }
.bascule label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--e-2);
  min-height: var(--cible-min);
  padding-inline: var(--e-5);
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--taille-petite);
  cursor: pointer;
}
.bascule input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.bascule label:has(input:checked) { background: var(--accent); color: var(--accent-texte); }
.bascule label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

.prix { margin-bottom: var(--e-3); }
.prix__montant {
  display: block;
  font-size: clamp(2.25rem, 1.9rem + 1.4vw, 2.875rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.prix__periode { color: var(--texte-doux); font-weight: 600; font-size: 1rem; letter-spacing: 0; }
.prix__equivalent { display: block; color: var(--texte-doux); font-size: var(--taille-petite); }
.prix__ou { display: block; margin-block: var(--e-2); color: var(--texte-doux); font-size: var(--taille-petite); }
/* Sans JavaScript, les deux périodes restent lisibles; avec, seule la choisie. */
.js .prix__ou { display: none; }
[data-periode][hidden] { display: none; }
.carte--vedette { border: 2px solid var(--accent-trait); }
.carte__entete-prix { display: flex; flex-wrap: wrap; gap: var(--e-2); align-items: center; justify-content: space-between; margin-bottom: var(--e-3); }
.carte__entete-prix h3 { margin: 0; }

.encadre {
  padding: var(--e-5);
  border-left: 4px solid var(--accent-trait);
  border-radius: var(--rayon-petit);
  background: var(--surface);
}
.encadre > :last-child { margin-bottom: 0; }
.notes-prix { margin-top: var(--e-6); color: var(--texte-doux); font-size: var(--taille-petite); }
.notes-prix ul { padding-left: 1.1em; }

/* Versions de la grille de prix (lot L3c, page /<marché>/<langue>/prix-versions/) : une fiche par version, lignes
 * « libellé — montant » qui passent à la ligne (aucun tableau : aucun défilement horizontal). */
.versions-prix { display: grid; gap: var(--e-5); max-width: 40rem; margin-inline: auto; }
.versions-prix__lignes { display: grid; margin: 0; }
.versions-prix__lignes > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--e-1) var(--e-4); padding-block: var(--e-2); border-top: 1px solid var(--bordure); }
.versions-prix__lignes dt { color: var(--texte-doux); }
.versions-prix__lignes dd { margin: 0; font-weight: 600; }
.versions-prix__notes { max-width: 40rem; margin-inline: auto; }

/* ---------- FAQ ---------- */

.faq { max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--bordure); }
.faq details:first-of-type { border-top: 1px solid var(--bordure); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-4);
  min-height: var(--cible-min);
  padding-block: var(--e-4);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--bordure-forte);
  border-radius: 50%;
  font-size: 1.125rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding-bottom: var(--e-4); color: var(--texte-doux); max-width: var(--largeur-texte); }

/* ---------- Pied de page ---------- */

.pied {
  padding-block: var(--e-7) var(--e-6);
  border-top: 1px solid var(--bordure);
  background: var(--fond-alt);
  color: var(--texte-doux);
  font-size: var(--taille-petite);
}
.pied__grille { display: grid; gap: var(--e-6); }
@media (min-width: 40rem) { .pied__grille { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .pied__grille { grid-template-columns: 1.6fr 1fr 1fr; } }
.pied h2 { font-size: 1rem; letter-spacing: 0; color: var(--texte); margin-bottom: var(--e-3); }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li > a, .pied li > span { display: inline-flex; align-items: center; min-height: var(--cible-min); }
.pied a { color: var(--texte-doux); }
.pied a:hover { color: var(--texte); }
.pied .marque { font-size: 1.125rem; }
.pied__bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--e-3);
  margin-top: var(--e-6);
  padding-top: var(--e-5);
  border-top: 1px solid var(--bordure);
}
.pied__bas p { margin: 0; }

/* ---------- Illustrations SVG en ligne (thème par jetons) ---------- */

.ill-fond { fill: var(--surface); stroke: var(--bordure); }
.ill-carte { fill: var(--fond); stroke: var(--bordure); }
.ill-trait { fill: var(--bordure); }
.ill-texte { fill: var(--texte-doux); }
.ill-titre { fill: var(--texte); }
.ill-accent { fill: var(--accent); }
.ill-accent-doux { fill: var(--accent-doux); }
.ill-lien { fill: none; stroke: var(--accent-trait); stroke-width: 2; stroke-dasharray: 4 4; }
.ill-coche { fill: none; stroke: var(--accent-texte); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ill-signal { fill: var(--signal-doux); }
.ill-signal-texte { fill: var(--signal); }
.ill-libelle { font-family: var(--police); font-size: 12px; font-weight: 700; }
.ill-petit { font-family: var(--police); font-size: 11px; font-weight: 600; }

/* ---------- Application mobile : aperçu SIMULÉ (kataxe.com, lot SITES-KX7) ----------
 * Téléphone dessiné en SVG en ligne (kataxe.html, section #mobile), légendé « aperçu simulé » :
 * jamais une capture d'écran. Sous 60rem : centré entre le chapeau et les cartes (≈ 14rem); au-delà :
 * à droite du chapeau et des cartes (≈ 17rem). width/height du SVG + aspect-ratio : aucun décalage
 * de mise en page. Aucune animation. */
.mobile__grille { display: grid; gap: var(--e-6); }
.mobile__entete { margin-bottom: 0; }
.mobile__apercu { margin: 0; justify-self: center; width: 14rem; }
.mobile__telephone { width: 100%; height: auto; aspect-ratio: 1 / 2; }
.mobile__legende { margin-top: var(--e-3); text-align: center; color: var(--texte-doux); font-size: var(--taille-petite); }
@media (min-width: 60rem) {
  .mobile__grille {
    grid-template-columns: minmax(0, 1fr) 17rem;
    grid-template-areas: "entete apercu" "cartes apercu";
    column-gap: var(--e-7);
    align-items: start;
  }
  .mobile__entete { grid-area: entete; }
  .mobile__cartes { grid-area: cartes; }
  .mobile__apercu { grid-area: apercu; width: 17rem; align-self: center; }
}
.mob-cadre { fill: var(--surface); stroke: var(--bordure-forte); stroke-width: 2; }
.mob-ecran { fill: var(--fond); stroke: var(--bordure); }
.mob-encoche, .mob-barre { fill: var(--bordure-forte); }
.mob-filet { fill: var(--bordure); }
.mob-marque { fill: var(--texte); font-family: var(--police); font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.mob-sous-titre { fill: var(--texte-doux); font-family: var(--police); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.mob-ligne { fill: var(--surface); stroke: var(--bordure); }
.mob-doc { fill: var(--accent-doux); stroke: var(--accent-trait); stroke-width: 1.5; }
.mob-doc-trait { fill: none; stroke: var(--accent-trait); stroke-width: 1.5; stroke-linecap: round; }
.mob-libelle { fill: var(--texte); font-family: var(--police); font-size: 11.5px; font-weight: 700; }
.mob-etat { fill: var(--accent-doux); }
.mob-etat--fait { fill: var(--accent-badge); }
.mob-etat-texte { font-family: var(--police); font-size: 9.5px; font-weight: 700; }
.mob-anneau { fill: none; stroke: var(--accent-trait); stroke-width: 2; }
.mob-appareil { fill: none; stroke: var(--accent-texte); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Page 404 ---------- */

.page-404 { min-height: 60vh; display: grid; align-content: center; padding-block: var(--e-8); }
/* Sans JavaScript, les sections des trois langues se suivent. */
.bloc-langue + .bloc-langue { margin-top: var(--e-7); padding-top: var(--e-7); border-top: 1px solid var(--bordure); }

/* ---------- Pays et langue (spec 018, sites trilingues par marché) ---------- */

/* Sélecteur de langue DISCRET (en-tête, à droite) : bouton compact au code de la
   langue courante; la cible tactile garde 44 px, la pastille visible est petite. */
.langue { position: relative; margin-left: auto; }
@media (min-width: 75rem) { .langue { margin-left: 0; } }
.langue__bouton {
  display: inline-grid;
  place-items: center;
  min-width: var(--cible-min);
  min-height: var(--cible-min);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--texte-doux);
  font: inherit;
  cursor: pointer;
}
.langue__code {
  padding: 0.1875rem 0.4375rem;
  border: 1px solid var(--bordure-forte);
  border-radius: var(--rayon-petit);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
}
.langue__bouton[hidden] { display: none; }
.langue__bouton:hover, .langue__bouton[aria-expanded="true"] { color: var(--texte); }
.langue__bouton:hover .langue__code, .langue__bouton[aria-expanded="true"] .langue__code { background: var(--fond-alt); }
/* Sans JavaScript : les autres langues sont de simples liens, en ligne. */
.langue__menu { display: flex; gap: 0 var(--e-2); margin: 0; padding: 0; list-style: none; }
.langue__menu a {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible-min);
  padding-inline: var(--e-2);
  color: var(--texte-doux);
  font-size: var(--taille-petite);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--rayon-petit);
}
.langue__menu a:hover { color: var(--texte); background: var(--fond-alt); }
/* Avec JavaScript : petite liste sous le bouton. Tant que la navigation occupe sa
   propre rangée (< 75rem), la liste s'ouvre DANS le flux (elle repousse la navigation
   au lieu de masquer ses liens); au-delà, elle se superpose au contenu. */
.langue--js { display: flex; flex-direction: column; align-items: flex-end; }
/* La marque reste en haut quand la liste ouverte allonge la rangée (< 75rem). */
.entete__rangee:has(.langue--js) { align-items: flex-start; }
.langue--js .langue__menu {
  display: block;
  min-width: 9rem;
  padding: var(--e-1);
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-petit);
  box-shadow: var(--ombre);
}
.langue--js .langue__menu[hidden] { display: none; }
@media (min-width: 75rem) {
  .langue--js .langue__menu { position: absolute; top: 100%; right: 0; z-index: 6; }
}
.langue--js .langue__menu a { display: flex; width: 100%; padding-inline: var(--e-3); color: var(--texte); }

/* Sélecteur de PAYS DISCRET (pied de page, décision du 2026-11-04 — remplace la page de
   choix du pays) : même motif que le sélecteur de langue. Sans JavaScript : le pays courant
   en texte, puis les autres pays en simples liens. Avec JavaScript : un bouton au nom du pays
   courant; la liste s'ouvre DANS le flux, sous le bouton (jamais hors de l'écran). */
.pays { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--e-2); }
.pays__courant { display: inline-flex; align-items: center; min-height: var(--cible-min); color: var(--texte); }
.pays__menu { display: flex; flex-wrap: wrap; gap: 0 var(--e-2); margin: 0; padding: 0; list-style: none; }
.pays__menu a { padding-inline: var(--e-2); border-radius: var(--rayon-petit); }
.pays__bouton {
  display: inline-flex;
  align-items: center;
  gap: var(--e-2);
  min-height: var(--cible-min);
  padding: 0 var(--e-2);
  border: 0;
  border-radius: var(--rayon-petit);
  background: transparent;
  color: var(--texte-doux);
  font: inherit;
  cursor: pointer;
}
.pays__bouton[hidden] { display: none; }
.pays__bouton::after {
  content: "";
  width: 0.4em;
  height: 0.4em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.15em) rotate(45deg);
}
.pays__bouton[aria-expanded="true"]::after { transform: translateY(0.1em) rotate(-135deg); }
.pays__bouton:hover, .pays__bouton[aria-expanded="true"] { color: var(--texte); }
.pays--js { flex-direction: column; align-items: flex-start; }
@media (min-width: 40rem) { .pays--js { align-items: flex-end; } }
.pays--js .pays__courant { display: none; }
.pays--js .pays__menu {
  display: block;
  min-width: 10rem;
  padding: var(--e-1);
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-petit);
  box-shadow: var(--ombre);
}
.pays--js .pays__menu[hidden] { display: none; }
.pays--js .pays__menu a { display: flex; width: 100%; padding-inline: var(--e-3); color: var(--texte); }

/* Marché « bientôt » (marches.json : inscriptionOuverte = false; Mexique, décision du
   2026-11-04) : bandeau sobre en tête de page et mention à la place des boutons d'essai
   (simple libellé, aucun contrôle). --texte sur --signal-doux : contraste AA dans les deux thèmes. */
.bandeau-marche {
  padding-block: var(--e-3);
  border-bottom: 1px solid var(--bordure);
  background: var(--signal-doux);
  color: var(--texte);
  font-size: var(--taille-petite);
}
.bandeau-marche p { margin: 0; font-weight: 600; }
.mention-bientot {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible-min);
  padding: var(--e-2) var(--e-5);
  border-radius: 999px;
  background: var(--signal-doux);
  color: var(--texte);
  font-size: var(--taille-petite);
  font-weight: 700;
  line-height: 1.2;
}

/* Modules VOILÉS de kataxe.com (décision du 2026-11-04) : un grand « ? », sans nom ni lien. */
.carte--voilee {
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
  border: 1px dashed var(--bordure-forte);
  box-shadow: none;
}
.carte--voilee__signe { font-size: 3rem; font-weight: 700; line-height: 1; color: var(--texte-doux); }
/* Lot SITES-KX2 : le texte des modules voilés, UNE fois, sous la rangée. */
.modules__suite { max-width: var(--largeur-texte); margin: var(--e-5) auto 0; text-align: center; color: var(--texte-doux); font-size: var(--taille-petite); }

/* ---------- Photos (kataxe.com, lot SITES-KX2) ----------
 * <picture> AVIF puis WebP (800 et 1200 px, 4:3), <img> avec width/height (aucun décalage de mise
 * en page), loading="lazy". Fond neutre pendant le chargement; aucune image d'un autre hôte (CSP). */
.photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--fond-alt); }
.grille--photos { display: grid; gap: var(--e-5); }
@media (min-width: 48rem) { .grille--photos { grid-template-columns: repeat(2, 1fr); } }
/* Carte à photo : l'image occupe le haut de la carte, bord à bord, sous les coins arrondis. */
.carte--photo { overflow: hidden; padding-top: 0; }
.carte--photo picture { display: block; margin: 0 calc(-1 * var(--e-5)) var(--e-5); border-bottom: 1px solid var(--bordure); }
.carte--photo h3 { margin-bottom: var(--e-2); }
.qui__grille { display: grid; gap: var(--e-6); align-items: center; }
@media (min-width: 60rem) { .qui__grille { grid-template-columns: 1fr 1fr; } }
.qui__photo .photo { border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: var(--ombre); }

/* Identité légale de l'exploitante (lot SITE-APPLE, kataxe.com) : fiche « libellé, puis valeur » dans l'encadré de
 * « Qui sommes-nous » (empilée à toutes les largeurs : aucun tableau, aucun défilement horizontal). */
.entreprise { margin-top: var(--e-5); padding-top: var(--e-5); border-top: 1px solid var(--bordure); }
.entreprise h3 { margin-bottom: var(--e-3); }
.entreprise__fiche { display: grid; margin: 0; }
.entreprise__fiche > div { display: grid; gap: var(--e-1); padding-block: var(--e-2); border-top: 1px solid var(--bordure); }
.entreprise__fiche dt { color: var(--texte-doux); font-size: var(--taille-petite); }
.entreprise__fiche dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.entreprise__fiche address { font-style: normal; }
.entreprise__fiche a { display: inline-flex; align-items: center; min-height: var(--cible-min); }
.pied__adresse { font-style: normal; margin-bottom: var(--e-3); }
.pied__adresse strong { color: var(--texte); }
.pied__bas a { display: inline-flex; align-items: center; min-height: var(--cible-min); }

/* Devise affichée explicitement à côté du montant (clientèle internationale). */
.prix__devise { margin-inline-start: 0.15em; font-size: 1rem; font-weight: 700; letter-spacing: 0.02em; color: var(--texte-doux); }

@media print {
  .entete, .bascule, .lien-evitement { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Symbole de marque en ligne (suit le thème) ---------- */

.m-fond { fill: var(--accent); }
.m-plein { fill: var(--accent-texte); }
.m-trait-plein { fill: none; stroke: var(--accent-texte); }
.m-trait-accent { fill: none; stroke: var(--accent); }
/* Logo « lys trident » de KATAXE™ (symbole-kataxe.html) : arrêts des dégradés par CLASSE
   (la CSP interdit l'attribut style en ligne), couleurs par les jetons --marque-* (clair/sombre). */
.kx-arret-1 { stop-color: var(--marque-1); }
.kx-arret-2 { stop-color: var(--marque-2); }
.kx-arret-3 { stop-color: var(--marque-3); }
.kx-arret-4 { stop-color: var(--marque-4); }
.kx-arret-5 { stop-color: var(--marque-5); }
.kx-arret-6 { stop-color: var(--marque-6); }
.ill-sur-accent { fill: var(--accent-texte); }
.ill-sur-badge { fill: var(--accent-badge-texte); }
.ill-noeud { fill: var(--surface); stroke: var(--bordure-forte); stroke-dasharray: 5 4; }
.ill-noeud--actif { fill: var(--accent-badge); stroke: var(--accent-trait); stroke-dasharray: none; stroke-width: 2; }
.ill-rayon { stroke: var(--bordure-forte); stroke-width: 1.5; }
.ill-rayon--actif { stroke: var(--accent-trait); stroke-width: 2.5; }
.ill-noeud--voile { fill: var(--fond-alt); }
.ill-rayon--voile { stroke-dasharray: 3 5; }
.ill-voile { font-size: 16px; }

/* ---------- Pied de page à quatre colonnes (section Capture : colonne « Ressources ») ---------- */

@media (min-width: 64rem) { .pied__grille--4 { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ---------- Documentation développeurs (page « Developers », spec 021 API-6) ---------- */

/* Code en ligne et blocs d'exemples : police à chasse fixe du système, couleurs des jetons
   (contrastes AA de --texte sur --surface/--fond-alt, dans les deux thèmes). */
code { font-family: var(--police-mono); font-size: 0.9em; overflow-wrap: anywhere; }
:not(pre) > code { padding: 0.05em 0.3em; border-radius: 0.25rem; background: var(--fond-alt); color: var(--texte); }
.section--alt :not(pre) > code, .carte :not(pre) > code { background: var(--fond); }

/* Bloc d'exemple : le DÉFILEMENT horizontal reste DANS son cadre (jamais celui de la page),
   cadre focalisable au clavier (role="region" nommé par sa légende — WCAG 2.1.1). */
.exemple { margin: 0 0 var(--e-4); min-width: 0; }
.exemple figcaption { margin-bottom: var(--e-1); color: var(--texte-doux); font-size: var(--taille-petite); font-weight: 700; }
.exemple pre {
  margin: 0;
  padding: var(--e-4);
  overflow-x: auto;
  background: var(--surface);
  color: var(--texte);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-petit);
  font-size: 0.875rem;
  line-height: 1.55;
  tab-size: 2;
}
.exemple pre code { font-size: inherit; overflow-wrap: normal; white-space: pre; }

/* Tableaux de référence : même règle de défilement dans un cadre focalisable. */
.cadre-defilant { max-width: 100%; overflow-x: auto; margin-bottom: var(--e-4); border: 1px solid var(--bordure); border-radius: var(--rayon-petit); background: var(--surface); }
.tableau { width: 100%; border-collapse: collapse; font-size: var(--taille-petite); }
.tableau caption { padding: var(--e-3) var(--e-4) 0; text-align: left; color: var(--texte-doux); font-weight: 700; }
.tableau th, .tableau td { padding: var(--e-2) var(--e-4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--bordure); }
.tableau thead th { color: var(--texte); font-weight: 700; }
.tableau tbody tr:last-child > * { border-bottom: 0; }
.tableau code { overflow-wrap: normal; white-space: nowrap; }

/* Guide de démarrage : étapes numérotées en colonne (chaque étape porte ses exemples). */
.guide { margin: 0; padding: 0; list-style: none; counter-reset: guide; display: grid; gap: var(--e-6); max-width: 52rem; }
.guide > li { counter-increment: guide; min-width: 0; }
.guide h3 { display: flex; align-items: center; gap: var(--e-3); }
.guide h3::before {
  content: counter(guide);
  flex: none;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-texte);
  font-size: 1rem;
}
.doc-texte > * { max-width: 52rem; }
.doc-texte > :last-child { margin-bottom: 0; }
.doc-texte h3 { margin-top: var(--e-6); }

/* ===================== Pages juridiques (lot JURIDIQUE-V1) =====================
 * /conditions/, /terms/, /confidentialite/, /privacy/ et leurs /versions/ (gabarit juridique.html,
 * contenu rendu par _outils/juridique.mjs). Colonne de lecture unique; aucun défilement horizontal :
 * sous 48rem, chaque tableau devient une liste de fiches (une par ligne), l'en-tête de colonne étant
 * répété devant chaque cellule (attribut data-etiquette). Mots longs (adresses, courriels) coupés.
 */
.juridique { padding-block: var(--e-7) var(--e-8); max-width: 52rem; }
.juridique p, .juridique li, .juridique address, .juridique td, .juridique th { overflow-wrap: break-word; }
.juridique [id] { scroll-margin-top: var(--e-4); }
.juridique h1 { font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.375rem); margin-bottom: var(--e-3); }
.juridique h2 { margin-top: var(--e-7); font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem); }
.juridique h3 { margin-top: var(--e-5); font-size: 1.0625rem; }
.juridique__entete { margin-bottom: var(--e-6); }
.juridique__version { color: var(--texte-doux); font-size: var(--taille-petite); }
.juridique__version a { display: inline-flex; align-items: center; min-height: var(--cible-min); }
.juridique__langue { display: inline-flex; align-items: center; min-height: var(--cible-min); margin-left: auto; font-weight: 600; }
.juridique__essentiel { margin-block: var(--e-5) var(--e-6); background: var(--fond-alt); }
.juridique__essentiel h2 { margin-top: 0; }
.juridique__essentiel ul { padding-left: 1.1em; }
.juridique__essentiel li { margin-bottom: var(--e-2); }
.juridique__avertissement { color: var(--texte-doux); font-style: italic; }
.juridique__annexe { padding-top: var(--e-5); border-top: 1px solid var(--bordure); }
.juridique__coordonnees { font-style: normal; }
.juridique__haut a { display: inline-flex; align-items: center; min-height: var(--cible-min); }
/* Avis d'une page d'ARCHIVE (version antérieure, lot TEXTES-1.2) : hors du texte publié, avant lui. */
.juridique__archive { margin-bottom: var(--e-6); background: var(--fond-alt); }
.juridique__archive a { display: inline-flex; align-items: center; min-height: var(--cible-min); }
/* TEXTE COMPARÉ (lot TEXTES-1.2) : retrait barré, ajout souligné — lisibles sans la couleur (trait), libellé masqué
 * pour les lecteurs d'écran (juridique.mjs). Passages inchangés repliés dans <details> (aucun script). */
.juridique del { text-decoration: line-through; text-decoration-thickness: 2px; background: var(--fond-alt); }
.juridique ins { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; font-weight: 600; background: var(--accent-doux); }
.juridique del + ins { margin-left: 0.3em; }
.comparaison__inchanges { margin-block: var(--e-4); padding: var(--e-2) var(--e-4); border: 1px solid var(--bordure); border-radius: var(--rayon-petit); background: var(--surface); }
.comparaison__inchanges summary { display: flex; align-items: center; min-height: var(--cible-min); cursor: pointer; color: var(--texte-doux); }
.comparaison__passage { margin-block: var(--e-5); padding-top: var(--e-3); border-top: 1px solid var(--bordure); }
.comparaison__passage h2 { margin-top: 0; font-size: 1.0625rem; }
.comparaison__ref { font-weight: 700; margin-right: 0.25em; }
.juridique__version a { overflow-wrap: anywhere; }
@media (min-width: 48rem) { .tableau-jur--registre td:nth-child(5) { width: 40%; } }
.clause__num { font-weight: 700; margin-right: 0.25em; }
.alinea { padding-left: var(--e-5); }
.enum { list-style: none; padding-left: var(--e-5); }
.enum li { margin-bottom: var(--e-2); }
.enum__l { font-weight: 600; }
.sommaire {
  margin-block: var(--e-6);
  padding: var(--e-5);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-petit);
  background: var(--surface);
}
.sommaire h2 { margin-top: 0; }
.sommaire ol { list-style: none; padding: 0; margin: 0; }
.sommaire a { display: inline-flex; align-items: center; min-height: var(--cible-min); }
.tableau-jur { margin-block: var(--e-4) var(--e-5); }
.tableau-jur table { width: 100%; border-collapse: collapse; font-size: var(--taille-petite); }
.tableau-jur th, .tableau-jur td { padding: var(--e-2) var(--e-3); border: 1px solid var(--bordure); text-align: left; vertical-align: top; }
.tableau-jur thead th { background: var(--fond-alt); }
.tableau-jur tbody th { font-weight: 600; }
@media (max-width: 47.99rem) {
  .tableau-jur table, .tableau-jur tbody, .tableau-jur tr, .tableau-jur th, .tableau-jur td { display: block; }
  .tableau-jur thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tableau-jur tr { margin-bottom: var(--e-4); padding: var(--e-3) var(--e-4); border: 1px solid var(--bordure); border-radius: var(--rayon-petit); background: var(--surface); }
  .tableau-jur th, .tableau-jur td { padding: var(--e-1) 0; border: 0; }
  .tableau-jur [data-etiquette]::before { content: attr(data-etiquette); display: block; color: var(--texte-doux); font-size: 0.8125rem; font-weight: 600; }
}
@media print {
  .entete, .pied, .sommaire, .lien-evitement, .juridique__haut { display: none; }
  .juridique { max-width: none; padding: 0; }
}
