/* kalix.ch — feuille de style du site du système Kalix, statique.

   L’identité de l’ancien site (N1) : le logo, une pastille bleue (#5186aa) et son personnage blanc ; le bleu #004d82 pour
   les liens et les boutons ; l’anthracite (#282828) pour l’en-tête, le pied et le bandeau de l’accueil ; Open Sans, servie
   par le site. Un design fin (design 1, carnet/design-1-recu.md) : des filets d’un pixel, des boutons légers, un en-tête
   qui reste en haut de l’écran, une colonne de lecture pour les textes longs, des cartes pour les modèles. Deux thèmes :
   celui du système, ou celui que le visiteur choisit par le bouton de l’en-tête (le seul script du site,
   assets/theme.js). Aucune ressource tierce. Tout le reste est fait en CSS, et le site se lit aussi sans. */

/* --- Police (OFL 1.1, servie par le site, sous-ensemble latin, variable de 300 à 800) ------------------------------ */
@font-face {
  font-family: "Open Sans";
  src: url("polices/open-sans.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("polices/open-sans-italique.woff2") format("woff2");
  font-weight: 300 800; font-style: italic; font-display: swap;
}

/* --- Jetons : le thème clair complet, puis le sombre --------------------------------------------------------------- */
:root {
  --fond: #ffffff;
  --fond-2: #f4f6f8;          /* bandeaux, encadrés */
  --fond-3: #eaeef2;          /* survol */
  --encre: #1b1f23;           /* 16,6:1 sur blanc */
  --encre-2: #434a52;         /* 9:1 ; 8,3:1 sur --fond-2 */
  --encre-3: #59626b;         /* 6,2:1 ; 5,7:1 sur --fond-2 */
  --trait: #e3e8ed;           /* les filets, d’un pixel */
  --trait-fort: #c5cdd5;      /* le contour des boutons et des cartes au survol */
  --bleu: #004d82;            /* 8,8:1 sur blanc : liens, boutons, numéros */
  --bleu-survol: #003a63;
  --pastille: #5186aa;        /* le bleu du logo (3,9:1) : filets et repères, jamais du texte */
  --bleu-fond: #e9f1f7;       /* 7,7:1 sous --bleu */
  --bouton: #004d82;          /* blanc dessus : 8,8:1 */
  --bouton-survol: #003a63;
  --bouton-texte: #ffffff;
  --anthracite: #282828;      /* en-tête, pied, bandeau de l’accueil */
  --sur-anthracite: #f4f4f4;  /* 13,4:1 */
  --sur-anthracite-2: #c9c9c9;/* 8,9:1 */
  --bleu-clair: #9ccbee;      /* sur l’anthracite : 8,6:1 */
  --emplacement: #fff1c2;     /* les emplacements entre crochets du Code IDEA */
  --tuile: #ffffff;           /* le fond des pictogrammes, blanc dans les deux thèmes */
  --focus: #004d82;
  --ombre: 0 1px 2px rgb(16 24 40 / 0.05), 0 12px 32px -16px rgb(16 24 40 / 0.16);
  --ombre-forte: 0 2px 4px rgb(16 24 40 / 0.06), 0 22px 44px -18px rgb(16 24 40 / 0.26);

  --police: "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --t-une: clamp(2.5rem, 1.35rem + 4.4vw, 4.6rem);
  --t-1: clamp(2.1rem, 1.5rem + 2.3vw, 3.25rem);
  --t-2: clamp(1.55rem, 1.25rem + 1.1vw, 2.15rem);
  --t-3: 1.2rem;
  --t-texte: 1.0625rem;
  --t-petit: 0.9375rem;
  --t-etiquette: 0.75rem;

  --largeur: 74rem;
  --lecture: 44rem;
  --gouttiere: clamp(1rem, 4vw, 2.5rem);
  --tete-h: 4rem;             /* la hauteur de l’en-tête, qui reste en haut de l’écran */
  --rayon: 10px;
  --rayon-carte: 18px;
  --transition: 180ms cubic-bezier(0.2, 0.7, 0.3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]) {
    --fond: #111417; --fond-2: #181c20; --fond-3: #20252a; --encre: #e7eaed; --encre-2: #bcc4cc; --encre-3: #949ea8;
    --trait: #262c32; --trait-fort: #3b434b; --bleu: #8cc6f0; --bleu-survol: #b4dbf7; --pastille: #6b9fc4;
    --bleu-fond: #152430; --bouton: #8cc6f0; --bouton-survol: #b4dbf7; --bouton-texte: #0d1a24; --anthracite: #0c0e10;
    --emplacement: #4a3b0d; --focus: #8cc6f0;
    --ombre: 0 1px 2px rgb(0 0 0 / 0.3); --ombre-forte: 0 2px 4px rgb(0 0 0 / 0.3), 0 22px 44px -18px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="sombre"] {
  --fond: #111417; --fond-2: #181c20; --fond-3: #20252a; --encre: #e7eaed; --encre-2: #bcc4cc; --encre-3: #949ea8;
  --trait: #262c32; --trait-fort: #3b434b; --bleu: #8cc6f0; --bleu-survol: #b4dbf7; --pastille: #6b9fc4;
  --bleu-fond: #152430; --bouton: #8cc6f0; --bouton-survol: #b4dbf7; --bouton-texte: #0d1a24; --anthracite: #0c0e10;
  --emplacement: #4a3b0d; --focus: #8cc6f0;
  --ombre: 0 1px 2px rgb(0 0 0 / 0.3); --ombre-forte: 0 2px 4px rgb(0 0 0 / 0.3), 0 22px 44px -18px rgb(0 0 0 / 0.6);
  color-scheme: dark;
}

/* --- Base ------------------------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--tete-h) + 1.25rem); }
body {
  margin: 0; background: var(--fond); color: var(--encre);
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; /* le pied en bas, même d’une page courte */
  font-family: var(--police); font-size: var(--t-texte); line-height: 1.65;
  font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.18; font-weight: 700; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p, li { text-wrap: pretty; }
p, ul, ol, dl, blockquote { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--bleu); text-underline-offset: 0.2em; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: color var(--transition), text-decoration-color var(--transition); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--pastille) 30%, transparent); }
strong { font-weight: 700; }
sup { font-size: 0.65em; line-height: 0; vertical-align: 0.45em; }
.insecable { white-space: nowrap; }

.evitement { position: absolute; left: -999px; top: 0; background: var(--bouton); color: var(--bouton-texte); padding: 0.6rem 1rem; border-radius: var(--rayon); z-index: 100; }
.evitement:focus { left: 0.75rem; top: 0.75rem; }
.evitement:focus-visible { outline-color: var(--bleu-clair); }

/* --- En-tête : il reste en haut de l’écran ------------------------------------------------------------------------ */
.tete {
  position: sticky; top: 0; z-index: 50;
  background: var(--anthracite); color: var(--sur-anthracite);
  border-bottom: 1px solid rgb(255 255 255 / 0.07);
}
.tete-dedans {
  max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); min-height: var(--tete-h);
  display: flex; align-items: center; gap: 0.5rem 2rem;
}
.marque { display: inline-flex; align-items: center; gap: 0.7rem; color: inherit; text-decoration: none; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.005em; white-space: nowrap; }
.marque img { width: 34px; height: 34px; display: block; }
.tete nav { flex: 1 1 auto; min-width: 0; }
.tete nav ul { list-style: none; padding: 0; display: flex; gap: 0.15rem; }
.tete nav a {
  position: relative; display: block; padding: 0.45rem 0.75rem; border-radius: 8px;
  color: rgb(255 255 255 / 0.74); text-decoration: none; font-size: var(--t-petit); font-weight: 600; white-space: nowrap;
  transition: color var(--transition), background-color var(--transition);
}
.tete nav a:hover { color: #ffffff; background: rgb(255 255 255 / 0.06); }
.tete nav a[aria-current] { color: #ffffff; }
.tete nav a[aria-current]::after {
  content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.2rem; height: 1px; background: var(--bleu-clair);
}
.tete-actions { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.tete .contact {
  color: var(--sur-anthracite); text-decoration: none; font-size: 0.875rem; font-weight: 600; white-space: nowrap;
  padding: 0.4rem 0.95rem; border: 1px solid rgb(255 255 255 / 0.24); border-radius: 8px;
  transition: border-color var(--transition), background-color var(--transition);
}
.tete .contact:hover { border-color: rgb(255 255 255 / 0.5); background: rgb(255 255 255 / 0.06); }
.theme {
  background: none; border: 1px solid transparent; color: var(--sur-anthracite); width: 2.25rem; height: 2.25rem; padding: 0;
  cursor: pointer; border-radius: 8px; display: inline-grid; place-items: center; transition: background-color var(--transition);
}
.theme[hidden] { display: none; }
.theme svg { width: 1.15rem; height: 1.15rem; }
.theme:hover { background: rgb(255 255 255 / 0.08); }
.tete :focus-visible { outline-color: var(--bleu-clair); }
/* Le choix de la langue (N37) : les codes, discrets ; la langue de la page, soulignée comme l’entrée du menu. */
.langues { display: flex; gap: 0.1rem; list-style: none; margin: 0; padding: 0; }
.langues a {
  display: block; color: rgb(255 255 255 / 0.74); text-decoration: none; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.05em; padding: 0.4rem 0.4rem; border-radius: 6px; position: relative;
  transition: color var(--transition), background-color var(--transition);
}
.langues a:hover { color: #ffffff; background: rgb(255 255 255 / 0.06); }
.langues a[aria-current] { color: #ffffff; }
.langues a[aria-current]::after {
  content: ""; position: absolute; left: 0.4rem; right: 0.4rem; bottom: 0.2rem; height: 1px; background: var(--bleu-clair);
}

/* Une ombre douce sous l’en-tête dès qu’on a défilé, et, dans les textes du système, la lecture qui avance : un filet
   au bas de l’en-tête. En CSS seul (défilement lié) ; un navigateur qui ne le connaît pas s’en passe. */
@supports (animation-timeline: scroll()) {
  .tete { animation: tete-ombre linear both; animation-timeline: scroll(root); animation-range: 0 8rem; }
  .page-declaration .tete::after, .page-code-idea .tete::after, .page-article .tete::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--bleu-clair);
    transform-origin: 0 50%; transform: scaleX(0);
    animation: lecture linear both; animation-timeline: scroll(root);
  }
}
@keyframes tete-ombre { to { box-shadow: 0 12px 32px -16px rgb(0 0 0 / 0.5); } }
@keyframes lecture { to { transform: scaleX(1); } }

/* --- Les boutons : une liste dont chaque élément n’est qu’un lien ------------------------------------------------- */
/* Légers : un contour d’un pixel, le texte bleu et une flèche ; pleins pour l’action principale d’un endroit. */
.boutons { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.boutons li + li { margin-top: 0; }
.boutons a {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; padding: 0.5rem 1.05rem 0.5rem 1.2rem;
  border: 1px solid var(--trait-fort); border-radius: var(--rayon); background: var(--fond); color: var(--bleu);
  font-size: var(--t-petit); font-weight: 600; line-height: 1.25; letter-spacing: 0.003em; text-decoration: none;
  box-shadow: 0 1px 2px rgb(16 24 40 / 0.05);
  transition: color var(--transition), background-color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.boutons a::after {
  content: ""; flex: none; width: 1.05rem; height: 1.05rem; background: currentColor;
  -webkit-mask: url("icones/fleche.svg") center / contain no-repeat; mask: url("icones/fleche.svg") center / contain no-repeat;
  transition: transform var(--transition);
}
.boutons a[href^="http"]::after { -webkit-mask-image: url("icones/sortie.svg"); mask-image: url("icones/sortie.svg"); }
.boutons a:hover { border-color: var(--pastille); box-shadow: var(--ombre); }
.boutons a:hover::after { transform: translateX(3px); }
.boutons a[href^="http"]:hover::after { transform: translate(2px, -2px); }
.boutons a:active { transform: translateY(1px); }
/* Le bouton principal : plein. */
.modele-pied .boutons a[href^="/"], .appel .boutons a, .page-introuvable .boutons a {
  background: var(--bouton); border-color: var(--bouton); color: var(--bouton-texte);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.14), inset 0 1px 0 rgb(255 255 255 / 0.12);
}
.modele-pied .boutons a[href^="/"]:hover, .appel .boutons a:hover, .page-introuvable .boutons a:hover {
  background: var(--bouton-survol); border-color: var(--bouton-survol); color: var(--bouton-texte);
}

/* --- Les pictogrammes de l’ancien site, tels quels : sur une tuile blanche ------------------------------------------ */
.picto { display: block; flex: none; background: var(--tuile); border-radius: 14px; padding: 5px; border: 1px solid var(--trait); }

/* --- Le bandeau des titres de page ----------------------------------------------------------------------------- */
.bandeau { position: relative; overflow: hidden; background: var(--fond-2); border-bottom: 1px solid var(--trait); }
/* Une trame fine, à droite, qui s’efface vers le texte. */
.bandeau::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--trait) 1px, transparent 1px), linear-gradient(90deg, var(--trait) 1px, transparent 1px);
  background-size: 2.5rem 2.5rem; background-position: right -1px top -1px;
  -webkit-mask-image: radial-gradient(ellipse 55% 120% at 100% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 55% 120% at 100% 0%, #000 0%, transparent 70%);
  opacity: 0.9;
}
.bandeau-dedans { position: relative; max-width: var(--largeur); margin: 0 auto; padding: clamp(2.75rem, 6vw, 4.75rem) var(--gouttiere) clamp(2.25rem, 4.5vw, 3.5rem); }
.bandeau h1 { font-size: var(--t-1); letter-spacing: -0.025em; max-width: 24ch; }
.mise-a-jour { margin-top: 0.9rem; color: var(--encre-3); font-size: var(--t-petit); display: flex; align-items: center; gap: 0.55rem; }
.mise-a-jour::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pastille); flex: none; }
.sous-titre { margin-top: 0.9rem; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--encre-2); max-width: 46rem; }

/* --- Contenu commun : la colonne de lecture -------------------------------------------------------------------- */
main { display: block; flex: 1 0 auto; }
.page-dedans, .texte-dedans { max-width: var(--largeur); margin: 0 auto; padding: clamp(2.5rem, 5vw, 3.75rem) var(--gouttiere) clamp(4rem, 8vw, 6rem); }

.corps { max-width: var(--lecture); }
.corps > * + * { margin-top: 1.1rem; }
.corps > :first-child, .corps > hr:first-child + h2 { margin-top: 0; }
/* Les intertitres : un filet d’un pixel, et un court repère du bleu du logo. */
.corps h2 { position: relative; font-size: var(--t-2); margin-top: 3.25rem; padding-top: 1.35rem; border-top: 1px solid var(--trait); }
.corps h2::before { content: ""; position: absolute; left: 0; top: -1px; width: 2.5rem; height: 2px; background: var(--pastille); border-radius: 0 0 2px 2px; }
.corps > h2:first-child { border-top: 0; padding-top: 0; }
.corps > h2:first-child::before { display: none; }
.corps h3 { font-size: var(--t-3); margin-top: 2rem; }
.corps ul, .corps ol { padding-left: 1.4rem; }
.corps li + li { margin-top: 0.5rem; }
.corps li::marker { color: var(--pastille); }
.corps ol > li::marker { color: var(--bleu); font-weight: 600; font-variant-numeric: tabular-nums; }
.corps blockquote { padding: 1rem 1.25rem; background: var(--fond-2); border-left: 2px solid var(--pastille); border-radius: 0 var(--rayon) var(--rayon) 0; color: var(--encre-2); }
.corps blockquote > * + * { margin-top: 0.6rem; }
.corps hr { border: 0; border-top: 1px solid var(--trait); margin: 2.4rem 0 1rem; }
.corps hr:has(+ h2) { display: none; }
.corps .tableau { overflow-x: auto; border: 1px solid var(--trait); border-radius: var(--rayon); }
.corps table { border-collapse: collapse; width: 100%; font-size: var(--t-petit); }
.corps th, .corps td { text-align: left; vertical-align: top; padding: 0.65rem 1rem; border-bottom: 1px solid var(--trait); }
.corps tr:last-child td { border-bottom: 0; }
.corps th { font-size: var(--t-etiquette); letter-spacing: 0.08em; text-transform: uppercase; color: var(--encre-3); font-weight: 600; background: var(--fond-2); }
.corps th:empty { padding: 0; }
.corps li:target, .corps h3:target { background: var(--bleu-fond); border-radius: 6px; box-shadow: 0 0 0 0.4rem var(--bleu-fond); }

/* Le résumé du Code IDEA : les pictogrammes du Code ideavox, dessinés au trait, de la couleur du texte ; leur
   description, cachée à la vue, reste lue par les lecteurs d’écran. Une forme qui en recouvre une autre (le cœur de
   « Respect ») prend la couleur du fond. */
.corps td.picto-cellule { width: 4.5rem; padding-right: 0.5rem; }
.picto-resume { display: block; width: 2.6rem; height: 2.6rem; color: var(--encre); }
.picto-resume .fond, .picto-resume .halo { fill: var(--fond); }
.picto-resume .halo { stroke: var(--fond); }
.picto-nom, .visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Les emplacements à remplir du Code IDEA. */
.emplacement { background: var(--emplacement); border-radius: 3px; padding: 0 0.2em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Les formats d’un texte : de petites pastilles de téléchargement. */
.formats { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.875rem; }
.formats li + li { margin-top: 0; }
.formats li {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.75rem 0.4rem 0.6rem;
  border: 1px solid var(--trait); border-radius: 8px; background: var(--fond);
  transition: border-color var(--transition), background-color var(--transition);
}
.formats li::before {
  content: ""; width: 1rem; height: 1rem; flex: none; background: var(--bleu);
  -webkit-mask: url("icones/telecharger.svg") center / contain no-repeat; mask: url("icones/telecharger.svg") center / contain no-repeat;
}
.formats a { color: var(--encre); font-weight: 600; text-decoration: none; }
.formats a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.formats li:hover { border-color: var(--pastille); background: var(--bleu-fond); }
.taille { color: var(--encre-3); font-size: var(--t-etiquette); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }

/* Les étapes : une frise numérotée. */
.pas { list-style: none; padding: 0 !important; counter-reset: pas; }
.pas > li { counter-increment: pas; position: relative; padding: 0.3rem 0 0 3.6rem; min-height: 2.5rem; }
.pas > li + li { margin-top: 1.75rem; }
.pas > li::before {
  content: counter(pas); position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 1px solid var(--pastille); background: var(--fond); color: var(--bleu); font-weight: 600; font-size: 0.95rem;
  display: grid; place-items: center; font-variant-numeric: tabular-nums;
}
.pas > li:not(:last-child)::after {
  content: ""; position: absolute; left: calc(1.2rem - 0.5px); top: 2.9rem; bottom: -1.3rem; width: 1px; background: var(--trait-fort);
}
.pas strong { color: var(--encre); }

/* Les arguments : une liste dont chaque élément s’ouvre sur du gras. */
.arguments { list-style: none; padding: 0 !important; display: grid; gap: 1rem; }
.arguments > li + li { margin-top: 0; }
.arguments > li { padding: 1.2rem 1.35rem; background: var(--fond-2); border: 1px solid var(--trait); border-radius: var(--rayon-carte); }

/* Les cartes et les fichiers entiers cliquables : le contour du focus entoure la carte, pas le seul lien. Réservé aux
   navigateurs qui connaissent :has() ; les autres gardent le contour du lien. */
@supports selector(:has(*)) {
  .formats li:has(a:focus-visible), .telechargements li:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
  .bloc-le-noyau .arguments > li:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
  .formats a:focus-visible, .telechargements a:focus-visible, .bloc-le-noyau .arguments a:focus-visible { outline: 0; }
}

/* --- Accueil ------------------------------------------------------------------------------------------------------ */
.une {
  position: relative; overflow: hidden; color: var(--sur-anthracite);
  background:
    radial-gradient(48rem 34rem at 82% 46%, rgb(81 134 170 / 0.26), transparent 62%),
    radial-gradient(40rem 30rem at 0% 100%, rgb(0 77 130 / 0.28), transparent 70%),
    linear-gradient(160deg, var(--anthracite) 0%, #1f2429 55%, #14222e 100%);
}
/* Une trame fine qui s’efface : le réseau, sans image. */
.une::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / 0.055) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.055) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem; background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 75% 45%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 90% at 75% 45%, #000 0%, transparent 75%);
}
.une-dedans {
  position: relative; max-width: var(--largeur); margin: 0 auto; padding: clamp(3.5rem, 9vw, 7.5rem) var(--gouttiere) clamp(3.75rem, 9vw, 7.75rem);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 6vw, 6rem); align-items: center;
}
.une-logo { width: clamp(150px, 19vw, 248px); height: auto; display: block; }
.surtitre { display: flex; align-items: center; gap: 0.75rem; text-transform: uppercase; letter-spacing: 0.16em; font-size: var(--t-etiquette); font-weight: 700; color: var(--bleu-clair); }
.surtitre::before { content: ""; width: 1.75rem; height: 1px; background: currentColor; }
.une h1 { font-size: var(--t-une); line-height: 1.04; letter-spacing: -0.032em; margin-top: 1.1rem; max-width: 17ch; }
.une p:not(.surtitre) { margin-top: 1.5rem; font-size: clamp(1.075rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; max-width: 40rem; color: rgb(244 244 244 / 0.8); }
.une .boutons { margin-top: 2.25rem; }
.une .boutons a { background: transparent; border-color: rgb(255 255 255 / 0.28); color: #ffffff; box-shadow: none; }
.une .boutons a:hover { border-color: rgb(255 255 255 / 0.6); background: rgb(255 255 255 / 0.06); }
.une .boutons li:first-child a { background: #ffffff; border-color: #ffffff; color: #1b1f23; box-shadow: 0 8px 24px -10px rgb(0 0 0 / 0.5); }
.une .boutons li:first-child a:hover { background: #e6edf3; border-color: #e6edf3; }
.une :focus-visible { outline-color: var(--bleu-clair); }

.accueil {
  max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere) clamp(3.5rem, 8vw, 6rem);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 6vw, 5rem);
}
.bloc { grid-column: 1 / -1; padding: clamp(3.25rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--trait); }
.bloc:first-child { border-top: 0; }
.bloc > * + * { margin-top: 1.1rem; }
.bloc h2 { font-size: var(--t-2); letter-spacing: -0.02em; }
.bloc h2::before { content: ""; display: block; width: 2.5rem; height: 2px; border-radius: 2px; background: var(--pastille); margin-bottom: 1.1rem; }
.bloc > p { max-width: var(--lecture); color: var(--encre-2); }
.bloc > .boutons { margin-top: 1.75rem; }

/* Un bloc à arguments : l’intertitre et son texte à gauche, la liste à droite. */
@media (min-width: 60rem) {
  .bloc-colonnes { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto auto 1fr; column-gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
  .bloc-colonnes > * { grid-column: 1; }
  .bloc-colonnes > h2 { grid-row: 1; }
  .bloc-colonnes > p { grid-row: 2; }
  .bloc-colonnes > .boutons { grid-row: 3; }
  .bloc-colonnes > .arguments { grid-column: 2; grid-row: 1 / -1; margin-top: 0; }
}

/* Le concept : trois mots, numérotés, entre de fins filets. Le numéro est posé à part : le texte, avec ses espaces
   insécables, coule librement. */
.bloc-une-convention-nomologique-distribuee .arguments { counter-reset: argument; gap: 0; }
.bloc-une-convention-nomologique-distribuee .arguments > li {
  counter-increment: argument; position: relative; padding: 1.6rem 0 1.6rem 3.75rem;
  background: none; border: 0; border-top: 1px solid var(--trait); border-radius: 0; color: var(--encre-2);
}
.bloc-une-convention-nomologique-distribuee .arguments > li:last-child { border-bottom: 1px solid var(--trait); }
.bloc-une-convention-nomologique-distribuee .arguments > li::before {
  content: counter(argument, decimal-leading-zero); position: absolute; left: 0; top: 1.85rem;
  color: var(--bleu); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; font-variant-numeric: tabular-nums;
}
.bloc-une-convention-nomologique-distribuee .arguments strong { display: block; color: var(--encre); font-size: 1.2rem; letter-spacing: -0.01em; margin-bottom: 0.3rem; }

/* Le noyau : sur un bandeau clair, deux cartes, entières cliquables. */
.bloc-le-noyau { background: var(--fond-2); box-shadow: 0 0 0 100vmax var(--fond-2); clip-path: inset(0 -100vmax); border-top-color: transparent; }
.bloc-le-noyau + .bloc { border-top-color: transparent; }
.bloc-le-noyau .arguments > li {
  position: relative; min-height: calc(76px + 3.2rem); padding: 1.6rem 3.5rem 1.6rem calc(1.6rem + 76px + 1.35rem);
  background: var(--fond); color: var(--encre-2); box-shadow: var(--ombre);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.bloc-le-noyau .arguments .picto { position: absolute; left: 1.6rem; top: 1.6rem; width: 76px; height: 76px; }
.bloc-le-noyau .arguments strong { display: block; font-size: 1.125rem; line-height: 1.35; margin-bottom: 0.35rem; }
.bloc-le-noyau .arguments strong a { color: var(--encre); text-decoration: none; }
.bloc-le-noyau .arguments strong a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.bloc-le-noyau .arguments > li::after {
  content: ""; position: absolute; top: 1.7rem; right: 1.5rem; width: 1.15rem; height: 1.15rem; background: var(--bleu);
  -webkit-mask: url("icones/fleche.svg") center / contain no-repeat; mask: url("icones/fleche.svg") center / contain no-repeat;
  transition: transform var(--transition);
}
.bloc-le-noyau .arguments > li:hover { border-color: var(--pastille); box-shadow: var(--ombre-forte); transform: translateY(-2px); }
.bloc-le-noyau .arguments > li:hover::after { transform: translateX(3px); }
.bloc-le-noyau .arguments > li:hover strong a { color: var(--bleu); }

/* Les distributions : un encadré, le pictogramme à gauche. */
.bloc-les-distributions {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
  margin-block: clamp(3.25rem, 7vw, 5.5rem); padding: clamp(1.75rem, 4.5vw, 3.25rem);
  border: 1px solid var(--trait); border-radius: 24px;
  background: linear-gradient(135deg, var(--bleu-fond) 0%, var(--fond) 65%);
}
.bloc-les-distributions > * { grid-column: 2; }
.bloc-les-distributions > .picto { grid-column: 1; grid-row: 1 / span 3; width: 96px; height: 96px; margin-top: 0; }
/* L’origine et l’Open Business Foundation, côte à côte, sous l’encadré. */
.bloc-l-origine, .bloc-porte-par-l-open-business-foundation { grid-column: auto; border-top-color: transparent; padding-top: 0; }

/* --- Modèles ------------------------------------------------------------------------------------------------------ */
.chapeau { margin-top: 1.75rem; max-width: 48rem; }
.chapeau > p:first-child { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem); line-height: 1.6; color: var(--encre-2); }
.chapeau > p + p {
  position: relative; margin-top: 1.25rem; padding: 0.85rem 1.1rem 0.85rem 2.9rem; font-size: var(--t-petit); color: var(--encre-2);
  background: var(--fond); border: 1px solid var(--trait); border-radius: var(--rayon);
}
.chapeau > p + p::before {
  content: ""; position: absolute; left: 1rem; top: 1rem; width: 1.15rem; height: 1.15rem; background: var(--bleu);
  -webkit-mask: url("icones/info.svg") center / contain no-repeat; mask: url("icones/info.svg") center / contain no-repeat;
}
.page-large .page-dedans { padding-top: 0; }
.rubrique { padding: clamp(3rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--trait); }
.rubrique:first-child { border-top: 0; }
.rubrique h2 { font-size: var(--t-2); letter-spacing: -0.02em; }
.rubrique h2::before { content: ""; display: block; width: 2.5rem; height: 2px; border-radius: 2px; background: var(--pastille); margin-bottom: 1.1rem; }
.modeles-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 27rem), 1fr)); gap: 1.5rem; margin-top: 2rem; }
.modele {
  display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.25rem); color: var(--encre-2);
  background: var(--fond); border: 1px solid var(--trait); border-radius: var(--rayon-carte); box-shadow: var(--ombre);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.modele:hover { border-color: var(--trait-fort); box-shadow: var(--ombre-forte); }
.modele > * + * { margin-top: 1rem; }
.modele-tete { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.25rem; align-items: center; margin-bottom: 0.4rem; }
.modele-tete .picto { grid-row: 1 / span 2; width: 68px; height: 68px; }
.modele-tete h3 { font-size: 1.3rem; color: var(--encre); letter-spacing: -0.015em; align-self: end; }
.modele-tete h3:last-child { grid-row: 1 / span 2; align-self: center; }
.version {
  justify-self: start; align-self: start; margin-top: 0.5rem; padding: 0.15rem 0.65rem; border-radius: 999px; white-space: nowrap;
  background: var(--bleu-fond); color: var(--bleu); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.01em;
}
.modele > p { font-size: 1rem; }
.modele-pied { margin-top: auto; padding-top: 1.5rem; display: grid; gap: 1rem; }
.modele-pied .formats { padding-top: 1rem !important; border-top: 1px solid var(--trait); }
.rubrique-les-distributions .modele { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.rubrique-les-distributions .modele > p { flex: 1 1 26rem; margin-top: 0; }
.rubrique-les-distributions .modele-tete { flex: 0 0 auto; margin-bottom: 0; }
.rubrique-les-distributions .modele-pied { flex: 0 0 auto; margin-top: 0; padding-top: 0; }

@media (min-width: 60rem) {
  .rubrique-faire-une-distribution, .rubrique-avec-un-agent-ia { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
  .rubrique-tete { position: sticky; top: calc(var(--tete-h) + 2rem); }
}
.rubrique-tete > p { margin-top: 1.1rem; color: var(--encre-2); }
.rubrique-corps { margin-top: 2rem; }
@media (min-width: 60rem) { .rubrique-corps { margin-top: 0.4rem; } }
.rubrique-corps > * + * { margin-top: 1.5rem; }
.rubrique-corps > .pas + p { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--trait); color: var(--encre-2); font-size: var(--t-petit); }
.appel {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  padding: 1.5rem 1.75rem; background: var(--fond-2); border: 1px solid var(--trait); border-radius: var(--rayon-carte);
}
.appel > p { flex: 1 1 18rem; color: var(--encre); font-weight: 600; }
.appel > .boutons { margin-top: 0; }
/* La carte du skill Kalix (N32) : la version en pastille, puis le texte et les boutons. */
.modele-skill .version { align-self: flex-start; margin-top: 0; }
.modele-skill .boutons { margin-top: 1.5rem; }

/* --- Textes du système : le bandeau, puis le sommaire à gauche sur grand écran ----------------------------------- */
.champs { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: 2rem; padding-top: 1.35rem; border-top: 1px solid var(--trait-fort); max-width: 52rem; }
.champs div { display: grid; gap: 0.15rem; }
.champs dt { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--encre-3); font-weight: 600; }
.champs dd { margin: 0; font-weight: 600; font-size: var(--t-petit); }

.sommaire { font-size: 0.9rem; margin-bottom: 2.5rem; padding: 1.1rem 1.25rem; border: 1px solid var(--trait); border-radius: var(--rayon); }
.sommaire h2 { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--encre-3); font-weight: 700; }
.sommaire ol { list-style: none; padding: 0; margin-top: 0.75rem; border-left: 1px solid var(--trait); }
.sommaire li a {
  display: block; margin-left: -1px; padding: 0.3rem 0 0.3rem 0.95rem; border-left: 1px solid transparent;
  text-decoration: none; color: var(--encre-2); line-height: 1.45; transition: color var(--transition), border-color var(--transition);
}
.sommaire li a:hover { color: var(--bleu); border-left-color: var(--pastille); }

@media (min-width: 64rem) {
  .avec-sommaire .bandeau-dedans, .avec-sommaire > .texte-dedans { display: grid; grid-template-columns: 15rem minmax(0, 1fr); column-gap: 4rem; }
  .avec-sommaire .bandeau-dedans > * { grid-column: 2; }
  .avec-sommaire > .texte-dedans > * { grid-column: 2; }
  .avec-sommaire > .texte-dedans > .sommaire {
    grid-column: 1; grid-row: 1 / span 3; position: sticky; top: calc(var(--tete-h) + 2rem); align-self: start;
    max-height: calc(100vh - var(--tete-h) - 4rem); overflow: auto; margin-bottom: 0; padding: 0; border: 0; border-radius: 0;
  }
}

.telechargements, .versions { max-width: var(--lecture); margin-top: 4rem; padding: 1.5rem 1.6rem 1.6rem; background: var(--fond-2); border: 1px solid var(--trait); border-radius: var(--rayon-carte); }
.telechargements h2, .versions h2 { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--encre-3); font-weight: 700; }
.telechargements ul { list-style: none; padding: 0; margin-top: 1rem; display: grid; gap: 0.5rem; }
.telechargements li {
  position: relative; display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem;
  background: var(--fond); border: 1px solid var(--trait); border-radius: var(--rayon);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.telechargements li::before {
  content: ""; width: 1.1rem; height: 1.1rem; flex: none; background: var(--bleu);
  -webkit-mask: url("icones/telecharger.svg") center / contain no-repeat; mask: url("icones/telecharger.svg") center / contain no-repeat;
}
.telechargements a { color: var(--encre); font-weight: 600; text-decoration: none; }
.telechargements a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.telechargements .taille { margin-left: auto; }
.telechargements li:hover { border-color: var(--pastille); box-shadow: var(--ombre); }
.versions { margin-top: 1rem; }
.versions ul { list-style: none; padding: 0; margin-top: 0.75rem; font-size: var(--t-petit); color: var(--encre-3); }
.versions li { padding: 0.5rem 0; border-top: 1px solid var(--trait); font-variant-numeric: tabular-nums; }
.versions li:first-child { border-top: 0; }
.versions a { font-weight: 600; }
.versions a[aria-current] { color: var(--encre); text-decoration: none; }

/* --- Pied --------------------------------------------------------------------------------------------------------- */
.pied { background: var(--anthracite); color: var(--sur-anthracite-2); font-size: var(--t-petit); }
.pied-dedans {
  max-width: var(--largeur); margin: 0 auto; padding: clamp(2.75rem, 6vw, 4rem) var(--gouttiere) 2.25rem;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "marque liens" "porte liens" "licence licence"; gap: 0.5rem 2rem;
}
.pied-marque { grid-area: marque; display: flex; align-items: center; gap: 0.7rem; color: var(--sur-anthracite); font-weight: 700; font-size: 1.0625rem; }
.pied-marque img { width: 30px; height: 30px; display: block; }
.pied-porte { grid-area: porte; }
.pied-liens { grid-area: liens; align-self: center; list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.pied a { color: var(--sur-anthracite); text-decoration-color: rgb(255 255 255 / 0.3); }
.pied a:hover { color: #ffffff; text-decoration-color: currentColor; }
.pied-liens a { text-decoration: none; }
.pied-liens a:hover { text-decoration: underline; }
.pied a[aria-current] { color: var(--bleu-clair); }
.pied-licence { grid-area: licence; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.1); font-size: var(--t-etiquette); letter-spacing: 0.02em; }
.pied :focus-visible { outline-color: var(--bleu-clair); }

/* --- Écrans moyens et petits ----------------------------------------------------------------------------------- */
@media (max-width: 56rem) {
  :root { --tete-h: 5.75rem; }
  .tete-dedans { flex-wrap: wrap; min-height: 0; padding-top: 0.45rem; column-gap: 1rem; }
  .marque { min-height: 2.5rem; }
  /* Le menu sur sa propre ligne. S’il ne tient pas, il défile de côté, et son bord droit s’estompe pour le dire ; une
     marge à droite garde le dernier lien hors du fondu, une fois au bout. */
  .tete nav { order: 3; flex-basis: 100%; margin: 0 calc(-1 * var(--gouttiere)); }
  .tete nav ul {
    overflow-x: auto; scrollbar-width: none; padding: 0.1rem 2.25rem 0.4rem calc(var(--gouttiere) - 0.55rem);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.25rem), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 2.25rem), transparent);
  }
  .tete nav ul::-webkit-scrollbar { display: none; }
  .tete nav a { padding: 0.4rem 0.55rem; font-size: 0.875rem; line-height: 1.4; }
  .tete nav a[aria-current]::after { left: 0.55rem; right: 0.55rem; bottom: 0.15rem; }
  /* Avec le choix de la langue (N37) : sur la première ligne, la marque, Contact et le thème ; sur la seconde, le menu,
     qui défile, et les langues, fixes à sa droite. */
  .tete-dedans:has(.langues) .tete-actions { display: contents; }
  .tete-dedans:has(.langues) .contact { margin-left: auto; }
  .tete-dedans:has(.langues) nav { flex: 1 0 calc(100% - 7.5rem); margin-right: 0; }
  .tete-dedans:has(.langues) nav ul { padding-right: 1.25rem; }
  .tete-dedans:has(.langues) .langues { order: 4; padding-bottom: 0.3rem; }
}
@media (max-width: 52rem) {
  .une-dedans { grid-template-columns: 1fr; }
  .une-logo { order: -1; width: 76px; }
  .accueil { grid-template-columns: 1fr; }
  .bloc-l-origine, .bloc-porte-par-l-open-business-foundation { grid-column: 1 / -1; }
  .bloc-l-origine { padding-bottom: clamp(2.5rem, 6vw, 3.5rem); }
  .bloc-porte-par-l-open-business-foundation { border-top-color: var(--trait); padding-top: clamp(2.5rem, 6vw, 3.5rem); }
}
@media (max-width: 40rem) {
  /* Avec le choix de la langue, l’en-tête reste sur deux lignes : la marque et les actions, puis le menu. */
  .tete-actions { gap: 0.3rem; }
  .tete .contact { padding: 0.35rem 0.7rem; }
  .theme { width: 2rem; height: 2rem; }
  .langues a { padding: 0.35rem 0.28rem; }
  .langues a[aria-current]::after { left: 0.28rem; right: 0.28rem; }
  .bloc-les-distributions { grid-template-columns: 1fr; }
  .bloc-les-distributions > * { grid-column: 1; }
  .bloc-les-distributions > .picto { grid-row: auto; width: 72px; height: 72px; margin-bottom: 0.4rem; }
  .bloc-le-noyau .arguments > li { padding: calc(1.4rem + 64px + 0.9rem) 1.4rem 1.4rem; min-height: 0; }
  .bloc-le-noyau .arguments .picto { left: 1.4rem; top: 1.4rem; width: 64px; height: 64px; }
  .bloc-le-noyau .arguments > li::after { top: 1.6rem; right: 1.4rem; }
  .bloc-une-convention-nomologique-distribuee .arguments > li { padding-left: 2.75rem; }
  /* Le résumé du Code IDEA : la ligne d’intitulés, cachée à la vue mais gardée pour les lecteurs d’écran, laisse la
     colonne des pictogrammes à leur largeur. */
  .tableau:has(.picto-cellule) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .corps td.picto-cellule { width: 3.6rem; padding-right: 0.25rem; }
  .modele-tete .picto { grid-row: 1; width: 56px; height: 56px; }
  .modele-tete h3, .modele-tete h3:last-child { grid-row: 1; align-self: center; font-size: 1.2rem; }
  .version { grid-column: 1 / -1; margin-top: 0.9rem; }
  .pied-dedans { grid-template-columns: 1fr; grid-template-areas: "marque" "porte" "liens" "licence"; }
  .pied-liens { margin-top: 1rem; }
  .appel { padding: 1.25rem; }
}

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .bloc-le-noyau .arguments > li:hover { transform: none; }
}
@media print {
  .tete, .pied, .theme, .langues, .sommaire, .evitement { display: none; }
  .bandeau { background: none; border: 0; }
  .bandeau::before, .une::before { display: none; }
  .corps { max-width: none; }
}
