/* ==========================================================================
   Arobase Solutions — feuille de style
   Direction « éditorial ambre » : noir doux, blanc, gris papier, ambre d'Arobase
   Créations en repère. Fond blanc par défaut, thème sombre selon le système.
   ========================================================================== */

/* Polices auto-hébergées (OFL), sous-ensemble latin, fichiers variables */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans-italic.woff2") format("woff2");
}

:root {
  /* Couleurs de marque (fixes, communes aux deux thèmes) */
  --ink:       #16181D;   /* noir doux */
  --paper:     #F4F3F0;   /* gris papier */
  --amber:     #F5A524;

  /* Couleurs d'interface, thème clair */
  --bg:        #FFFFFF;
  --bg-alt:    #F4F3F0;
  --surface:   #FFFFFF;
  --line:      rgba(22, 24, 29, .12);
  --line-2:    rgba(22, 24, 29, .24);
  --text:      #16181D;
  --text-2:    #3B3E46;
  --muted:     #62656E;
  --mark:      #F5A524;   /* curseur, repères, filets, barres : jamais en texte sur blanc (2:1) */
  --accent:    #16181D;   /* liens : noirs, soulignés ambre */
  --link-line: #F5A524;
  --strong:    #8A5A00;   /* ambre foncé : chiffres clés, étiquettes (AA sur blanc) */
  --tint:      #F4F3F0;   /* fond des étiquettes, encadrés, bandeaux */
  --btn:       #16181D;
  --btn-text:  #FFFFFF;
  --btn-mark:  #F5A524;
  --note:      #8A5A00;
  --note-soft: rgba(245, 165, 36, .12);
  --glow:      rgba(245, 165, 36, .28);   /* halo de focus des champs */
  --halo:      rgba(245, 165, 36, .17);   /* lumière diffuse derrière l'aperçu de l'accueil */
  --eyelet-shadow: rgba(22, 24, 29, .13);  /* ombre intérieure des œillets de la fiche outil */
  --bad:       #B3192F;
  --bad-bg:    #FDE4E8;
  /* Feux du Squad Health Check (l'orange est l'ambre de la marque) */
  --feu-vert:  #2F8F5B;
  --feu-orange: #F5A524;
  --feu-rouge: #D2453F;
  /* Zones des graphiques, de la plus probable à la traîne */
  --z1:        #F5A524;
  --z2:        #F9C978;
  --z3:        #FCE6BF;
  --z4:        #E8E6E1;

  /* Typographie */
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Mise en page */
  --container: 1120px;
  --measure: 68ch;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #121317;
    --bg-alt:    #1A1C21;
    --surface:   #1E2026;
    --line:      rgba(237, 234, 227, .1);
    --line-2:    rgba(237, 234, 227, .2);
    --text:      #EDEAE3;
    --text-2:    #C9CBD0;
    --muted:     #9A9DA6;
    --accent:    #EDEAE3;
    --strong:    #FFC266;
    --tint:      #272930;   /* distinct de --surface pour les étiquettes posées sur une carte */
    --btn:       #EDEAE3;
    --btn-text:  #16181D;
    --btn-mark:  #D88A00;
    --note:      #FFC266;
    --note-soft: rgba(245, 165, 36, .1);
    --halo:      rgba(245, 165, 36, .09);
    --eyelet-shadow: rgba(0, 0, 0, .35);
    --bad:       #FF8DA0;
    --bad-bg:    #3B1620;
    --feu-vert:  #4DB47E;
    --feu-rouge: #E8645D;
    --z2:        #A8721A;
    --z3:        #5A4320;
    --z4:        #2E3036;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(16px, .6vw + 13px, 18px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }   /* même sur les éléments en grille ou en flex */
img { height: auto; }

a { color: var(--accent); text-decoration-color: var(--link-line); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--mark);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--amber); color: var(--ink); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -.01em; }

p { margin: 0 0 1.1em; }
strong { font-weight: 650; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--btn); color: var(--btn-text);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 72px;
}
.logo { display: inline-flex; text-decoration: none; }
.logo img { height: 40px; width: auto; }

.nav { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 99px;
  color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .95rem;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--bg-alt); color: var(--text); }
.nav a[aria-current="page"], .nav a.is-active { color: var(--text); background: var(--bg-alt); }
/* Section Contact affichée : le surlignage passe de la page à « Contact » */
.nav.nav-contact a[aria-current="page"]:not(:hover) { color: var(--text-2); background: none; }

@media (max-width: 560px) {
  .site-header .container { min-height: 60px; gap: 12px; }
  .logo img { height: 32px; }
  .nav a { padding: 6px 10px; font-size: .9rem; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 99px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .98rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), background .15s, border-color .15s;
}
.btn-primary { background: var(--btn); color: var(--btn-text); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary .btn-mark { width: 8px; height: 16px; border-radius: 2px; background: var(--btn-mark); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--text); }

/* ---------- Étiquettes ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 6px; height: 14px; border-radius: 2px; background: var(--mark);
}
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 99px;
  font-size: .8rem; font-weight: 600; color: var(--strong);
  background: var(--tint);
}

/* ---------- En-têtes de page (accueil, articles, parcours…) : même respiration partout ---------- */
:root {
  --hero-pad-top: clamp(28px, 4vw, 48px);
  --hero-pad-bottom: clamp(32px, 5vw, 56px);
}

/* ---------- Article : en-tête ---------- */
.article-hero {
  background: var(--bg-alt);
  padding-block: var(--hero-pad-top) var(--hero-pad-bottom);
  border-bottom: 1px solid var(--line);
}
.article-hero h1 { max-width: 20ch; }

/* Fil d'ariane (articles outils) : discret, au-dessus de l'étiquette */
.breadcrumb { margin: 0 0 22px; font-size: .875rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.breadcrumb li { display: inline-flex; align-items: center; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-inline: 10px; color: var(--line-2); }
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--link-line); }
.breadcrumb [aria-current="page"] { color: var(--text-2); font-weight: 500; pointer-events: none; }

/* Apparition progressive des en-têtes au chargement (articles, Parcours ; l'accueil a sa propre cadence) */
.article-hero .container > :not(.section-picto) { animation: apparait .7s var(--ease) both; }
.article-hero .container > :nth-child(1) { animation-delay: .05s; }
.article-hero .container > :nth-child(2) { animation-delay: .15s; }
.article-hero .container > :nth-child(3) { animation-delay: .3s; }
.article-hero .container > :nth-child(4) { animation-delay: .42s; }
.article-hero .container > :nth-child(5) { animation-delay: .54s; }
.article-hero .container > :nth-child(n+6) { animation-delay: .66s; }
@keyframes apparait { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .article-hero .container > * { animation: none; } }
.chapo {
  max-width: 58ch; margin: 0 0 28px;
  font-size: clamp(1.1rem, .8vw + .9rem, 1.3rem); line-height: 1.6; color: var(--text-2);
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0 0 32px; padding: 0; list-style: none;
  font-size: .9rem; color: var(--muted);
}
.article-hero .chapo:last-child { margin-bottom: 0; }

/* Aperçu de l'outil dans l'en-tête (grands écrans) : la capture entière, à droite du texte */
.hero-apercu { display: none; }
@media (min-width: 1000px) {
  .article-hero:has(.hero-apercu) .container {
    display: grid; grid-template-columns: minmax(0, 1fr) 440px; column-gap: 64px;
  }
  .article-hero:has(.hero-apercu) .container > * { grid-column: 1; }
  .hero-apercu {
    display: block; grid-column: 2 !important; grid-row: 1 / span 6; align-self: center;
    overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 18px 50px -24px rgb(0 0 0 / .22);
  }
  .hero-apercu img { display: block; width: 100%; height: auto; }
}
/* Variante dessinée, pour une méthode sans outil (eXtreme Quotation) : même carte, traits des pictos */
.hero-schema { background: var(--bg); }   /* le fond des captures, en clair comme en sombre */
.hero-schema svg { display: block; width: 100%; height: auto; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.xq-ruban { stroke: var(--line-2); stroke-width: 1; }
.xq-entete rect { stroke: var(--muted); stroke-width: 1; fill: var(--surface); }
.xq-entete text { fill: var(--text-2); stroke: none; font-family: var(--font-display); font-size: 15px; font-weight: 600; text-anchor: middle; }
.xq-cartes rect { fill: var(--tint); stroke: var(--line-2); stroke-width: 1; }
.xq-cartes path { stroke: var(--line-2); stroke-width: 1.4; }
.xq-etalon rect { fill: var(--note-soft); stroke: var(--mark); stroke-width: 1.4; }
.xq-etalon path { stroke: var(--mark); stroke-width: 1.4; }
.xq-hesite rect { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.xq-hesite path { stroke: var(--muted); stroke-width: 1; }
/* La carte hésite une fois, vers le 8 puis vers le 13, après l'apparition de l'en-tête (comme les pictos) */
.xq-hesite rect { animation: hesite 3.6s ease-in-out 1.4s both; }
/* elle se pose un instant dans chaque colonne, comme une carte qu'on y laisse avant de la reprendre */
@keyframes hesite {
  0%, 100% { transform: translateX(0); }
  15%, 30% { transform: translateX(-28px); }   /* dans la colonne 8 */
  50%, 63% { transform: translateX(26px); }    /* presque dans le 13 */
  82% { transform: translateX(-9px); }
}
@media (prefers-reduced-motion: reduce) { .xq-hesite rect { animation: none; } }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Article : corps ---------- */
.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 80px);
  padding-block: clamp(40px, 6vw, 72px);
}
.prose { max-width: var(--measure); }
.prose > section + section { margin-top: clamp(48px, 6vw, 72px); }
.prose h2 { padding-top: 4px; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--muted); }
/* Rubrique au-dessus d'un intertitre : même dessin que le surtitre */
.section-label {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
  font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.section-label::before {
  content: ""; flex: none; width: 6px; height: 14px; border-radius: 2px; background: var(--mark);
}

.aside { position: relative; }
.aside-card {
  position: sticky; top: 100px;
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--tint);
}
.aside-card h2 { font-size: 1.15rem; margin-bottom: 14px; }
.aside-card dl { margin: 0 0 20px; font-size: .92rem; }
.aside-card dt { color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.aside-card dd { margin: 2px 0 14px; color: var(--text-2); line-height: 1.5; }
.aside-card .btn { width: 100%; justify-content: center; }
.aside-card .toc { margin-top: 24px; padding: 16px 18px; border-radius: calc(var(--radius) - 4px); background: var(--surface); font-size: .9rem; }
.toc p { margin-bottom: 8px; color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 4px 0 4px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-2); text-decoration: none; transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--text); border-left-color: var(--mark); }
.toc a[aria-current] { color: var(--text); font-weight: 600; border-left-color: var(--mark); }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .aside { display: none; } /* le chapeau et le bandeau final portent déjà l'appel à l'outil */
}

/* Encadrés */
.callout {
  margin: 1.6em 0; padding: 18px 22px;
  border-left: 3px solid var(--text); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--tint);
}
.callout p:last-child { margin-bottom: 0; }
.callout-title { display: block; margin-bottom: 4px; font-weight: 650; }

/* Deux colonnes « oui / non » */
.fit {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.4em 0;
}
.fit > div { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.fit > div { position: relative; }
.fit h3 { margin: 0 0 10px; padding-right: 44px; font-size: 1rem; }
.fit ul { margin: 0; padding-left: 1.1em; font-size: .95rem; }
/* Pouce levé ou baissé, en haut à droite : même dessin que les pictos de tuile ; manchette ambre du seul côté « oui » */
.fit-picto {
  position: absolute; top: 14px; right: 16px; width: 36px; height: 36px;
  fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
@media (max-width: 640px) { .fit { grid-template-columns: 1fr; } }

/* Tableaux */
.table-wrap { margin: 1.4em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
caption { padding: 14px 18px 0; text-align: left; font-size: .85rem; color: var(--muted); }
th, td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
tr.is-highlight td { background: var(--tint); font-weight: 600; }

/* Capture d'écran d'un outil (générée par captures/generer.sh, une version par thème) */
.capture { margin: 1.6em 0; }
.capture a { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s var(--ease); }
.capture a:hover { border-color: var(--line-2); }
.capture img { display: block; width: 100%; height: auto; }
.capture figcaption { margin-top: 10px; font-size: .85rem; color: var(--muted); }
/* Écran de téléphone : étroit, il flotte à droite et le texte l'habille. Placé avant le paragraphe qu'il accompagne.
   Les blocs à fond ou à bordure passent dessous, plutôt que de glisser derrière lui. */
.capture.is-telephone { max-width: 260px; }
.capture.is-telephone a { border-radius: 24px; }
@media (min-width: 640px) {
  .capture.is-telephone { float: right; width: 220px; margin: .3em 0 1.2em 28px; }
  .prose .callout, .prose .table-wrap, .prose .fit, .prose .capture:not(.is-telephone) { clear: both; }
}

/* Étapes numérotées */
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li {
  counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 1em;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 2px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .85rem; font-weight: 700; color: var(--ink);
  background: var(--amber);
}

/* Bloc à rédiger (brouillon, à retirer avant publication) */
.a-rediger {
  margin: 1.4em 0; padding: 18px 22px;
  border: 1.5px dashed color-mix(in srgb, var(--note) 55%, transparent);
  border-radius: var(--radius-sm); background: var(--note-soft);
  color: var(--text-2); font-size: .95rem;
}
.a-rediger::before {
  content: "À rédiger"; display: block; margin-bottom: 6px;
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--note);
}
.a-rediger p:last-child, .a-rediger ul:last-child { margin-bottom: 0; }

/* Citation de terrain */
.quote {
  margin: 1.6em 0; padding: 0 0 0 22px; border-left: 3px solid var(--line-2);
  font-size: 1.1rem; color: var(--text-2);
}

/* Bandeau d'appel à l'outil */
.cta-band {
  margin-top: clamp(48px, 6vw, 72px); padding: clamp(28px, 4vw, 40px);
  border-top: 3px solid var(--mark); border-radius: 0 0 var(--radius) var(--radius);
  background: var(--tint); color: var(--text);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
}
.cta-band h2 { margin: 0 0 6px; font-size: 1.5rem; }
.cta-band p { margin: 0; color: var(--muted); max-width: 46ch; }

/* Auteur */
.author {
  display: flex; gap: 18px; align-items: flex-start;
  margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line);
  font-size: .95rem; color: var(--text-2);
}
.author img { width: 48px; height: 48px; flex: none; border-radius: 12px; }
.author p { margin: 0 0 4px; }
.author strong { color: var(--text); }

/* ---------- Pied de page ---------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 80px); padding-block: 40px;
  border-top: 1px solid var(--line); background: var(--bg-alt);
  font-size: .9rem; color: var(--muted);
}
/* Page terminée par une section à fond plein : le footer s'y colle, le filet suffit */
main:has(> .page-section:last-child) + .site-footer { margin-top: 0; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; }
.site-footer img { height: 32px; width: auto; }
.site-footer .footer-tagline { margin: 8px 0 0; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .footer-credits { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 22px; margin: 0; font-size: .85rem; }

/* ---------- Logo selon le thème ----------
   <picture> + <source media="(prefers-color-scheme: dark)"> : le navigateur ne télécharge que la version du thème actif */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ==========================================================================
   Page Parcours
   ========================================================================== */
.page-hero h1 { max-width: 22ch; }

/* Chiffres clés */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin: 40px 0 0; padding: 0; list-style: none;
  border-top: 1px solid var(--line);
}
.facts li { padding: 22px 24px 0 0; }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.facts strong {
  display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--text);
}
.facts strong .compteur { font-variant-numeric: tabular-nums; color: var(--strong); }
.facts li > span { display: block; margin-top: 6px; font-size: .9rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(odd) { padding-left: 0; border-left: 0; }
}

/* Sections pleine largeur */
.page-section { --section-bg: var(--bg); padding-block: clamp(48px, 7vw, 88px); background: var(--section-bg); }
/* Fonds alternés : le hero (1er enfant de <main>) est sur --bg-alt, puis une section sur deux */
.page-section:nth-child(odd) { --section-bg: var(--bg-alt); }
.page-section + .page-section { border-top: 1px solid var(--line); }
.page-section:nth-child(odd) .contact { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--mark); }
.section-head { max-width: var(--measure); margin-bottom: 32px; }
/* Pictogramme de section, en haut à droite : trait fin, un seul détail en ambre (fermoir, aiguille, pince) */
.has-picto { position: relative; }
.section-picto {
  position: absolute; top: -12px; right: var(--gutter); width: 128px; height: 128px;
  fill: none; stroke: var(--muted); stroke-width: .8; stroke-linecap: round; stroke-linejoin: round;
  pointer-events: none;
}
.has-picto > :not(.section-picto) { position: relative; }   /* le contenu passe devant le picto s'ils se croisent */
.section-picto-mark { fill: var(--mark); stroke: none; }
@media (max-width: 600px) { .section-picto { top: -8px; width: 64px; height: 64px; } }
/* Pictos animés une fois à l'apparition (pictos.js ajoute .is-animated) */
/* Badge suspendu par sa pince, droit au repos : une oscillation amortie */
.section-picto--pendule { transform-origin: 50% 17%; }
.section-picto--pendule.is-animated { animation: pendule 2.6s ease-in-out both; }
.article-hero .section-picto--pendule.is-animated { animation-delay: .6s; }   /* après l'apparition du hero */
@keyframes pendule {
  0%   { transform: rotate(0deg); }
  16%  { transform: rotate(16deg); }
  34%  { transform: rotate(-12deg); }
  52%  { transform: rotate(8deg); }
  68%  { transform: rotate(-5deg); }
  84%  { transform: rotate(2deg); }
  100% { transform: rotate(0deg); }
}
/* Mallette : le fermoir s'ouvre, se referme d'un coup sec et la mallette sursaute */
.section-picto--mallette.is-animated { animation: mallette .8s ease-out both; }
.section-picto--mallette.is-animated .fermoir { animation: fermoir .8s both; }
.article-hero .section-picto--mallette.is-animated, .article-hero .section-picto--mallette.is-animated .fermoir { animation-delay: .6s; }   /* après l'apparition du hero */
@keyframes fermoir {
  0%   { transform: translateY(0); animation-timing-function: ease-in-out; }
  40%  { transform: translateY(3px); animation-timing-function: cubic-bezier(.6, 0, 1, 1); }
  52%  { transform: translateY(0); }
  100% { transform: translateY(0); }
}
@keyframes mallette {
  0%, 52% { transform: translateY(0); }
  62%  { transform: translateY(3px); }
  76%  { transform: translateY(-1px); }
  90%, 100% { transform: translateY(0); }
}
/* Boussole : l'aiguille fait un tour, dépasse son cap puis s'y stabilise */
.section-picto--boussole .aiguille { transform-box: view-box; transform-origin: 24px 25px; }
.section-picto--boussole.is-animated .aiguille { animation: boussole 2.8s ease-in-out both; }
@keyframes boussole {
  0%   { transform: rotate(0deg); }
  34%  { transform: rotate(385deg); }
  52%  { transform: rotate(344deg); }
  67%  { transform: rotate(369deg); }
  81%  { transform: rotate(355deg); }
  92%  { transform: rotate(362deg); }
  100% { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .section-picto--pendule.is-animated, .section-picto--boussole.is-animated .aiguille,
  .section-picto--mallette.is-animated, .section-picto--mallette.is-animated .fermoir { animation: none; }
}
.section-head p { color: var(--text-2); }

/* Cartes d'apport */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
/* Picto de tuile, en haut à droite : même dessin que les pictos de section, sans animation */
.card--picto { position: relative; }
.card--picto .section-label, .cards .card--picto h3 { padding-right: 48px; }
.card-picto {
  position: absolute; top: 20px; right: 20px; width: 40px; height: 40px;
  fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.cards .card h3 { margin: 0 0 8px; }
.cards .card p { margin: 0; font-size: .95rem; color: var(--text-2); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* Frise chronologique */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.timeline > li {
  position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px;
  padding-bottom: 36px;
}
.timeline > li::before {
  content: ""; position: absolute; left: 172px; top: 10px; bottom: -10px; width: 1px; background: var(--line-2);
}
.timeline > li:last-child::before { display: none; }
.timeline > li::after {
  content: ""; position: absolute; left: 168px; top: 8px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--section-bg, var(--bg)); border: 2px solid var(--muted);
}
.timeline > li.is-current::after { background: var(--mark); border-color: var(--mark); }
.timeline-when { padding-top: 2px; text-align: right; font-size: .9rem; font-weight: 600; color: var(--muted); }
.timeline-body { padding-left: 24px; }
.timeline-body h3 { margin: 0 0 2px; }
.timeline-org { margin: 0 0 10px; font-size: .92rem; color: var(--muted); }
.timeline-body > p { color: var(--text-2); }
.timeline-body .a-rediger { margin: .6em 0 0; }
@media (max-width: 640px) {
  .timeline > li { grid-template-columns: 1fr; gap: 4px; padding-left: 24px; }
  .timeline > li::before { left: 4px; }
  .timeline > li::after { left: 0; }
  .timeline-when { text-align: left; }
  .timeline-body { padding-left: 0; }
}

/* Certification et diplôme */
.credentials {
  list-style: none; margin: 8px 0 0; padding: 0; max-width: 820px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.credential {
  position: relative; padding: 22px 24px;
  border: 1px solid var(--line); border-left: 3px solid var(--mark); border-radius: var(--radius);
  background: var(--surface);
}
.credential h3 { margin: 12px 0 2px; padding-right: 64px; }
.credential-org { margin: 0; font-size: .92rem; color: var(--muted); }
.credential-year {
  position: absolute; top: 20px; right: 24px;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--strong);
}
@media (max-width: 640px) { .credentials { grid-template-columns: 1fr; } }

/* Contact */
.contact {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 56px; align-items: start;
  padding: clamp(28px, 5vw, 56px);
  border-top: 3px solid var(--mark); border-radius: 0 0 var(--radius) var(--radius);
  background: var(--tint); color: var(--text);
}
.contact p { color: var(--text-2); }
.contact > .actions { align-self: center; justify-self: end; }
@media (max-width: 760px) { .contact > .actions { justify-self: start; } }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { padding-top: 0; }
.contact-list span:first-child, .contact-label {
  display: block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.contact-list a { font-weight: 600; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

/* Bandeau de logos : monochromes, en couleur au survol ; deux pistes identiques pour une boucle sans saut */
.logo-band { padding-block: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.logo-band .eyebrow { margin-bottom: 20px; }
.logo-band-viewport {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-band-track {
  display: flex; flex: none; align-items: center; margin: 0; padding: 0; list-style: none;
  animation: defile 45s linear infinite;
}
.logo-band-viewport:hover .logo-band-track { animation-play-state: paused; }
.logo-band-track li {
  flex: none; display: flex; align-items: center; justify-content: center;
  height: 88px; padding: 0 clamp(24px, 3.5vw, 44px); border-radius: var(--radius-sm);
  transition: background .25s;
}
.logo-band-track img {
  height: var(--h, 40px); width: auto; max-width: none;
  filter: grayscale(1); opacity: .65;
  transition: filter .25s, opacity .25s;
}
.logo-band-track li:hover img { filter: none; opacity: 1; }
@keyframes defile { to { transform: translateX(-100%); } }
@media (prefers-color-scheme: dark) {
  .logo-band-track img { filter: grayscale(1) invert(1); opacity: .6; }
  /* au survol, une plaque claire garde lisibles les logos sombres (Galeries Lafayette, DARVA…) */
  .logo-band-track li:hover { background: var(--paper); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-band-viewport { overflow-x: auto; }
  .logo-band-track { animation: none; }
  .logo-band-track[aria-hidden="true"] { display: none; }
}

/* ==========================================================================
   Page d'accueil
   ========================================================================== */
.home-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--bg-alt);
  padding-block: var(--hero-pad-top) var(--hero-pad-bottom);
  border-bottom: 1px solid var(--line);
}
/* Lumière ambre fixe derrière l'aperçu : elle apparaît avec lui, puis ne bouge plus */
.home-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 46% 62% at 76% 52%, var(--halo), transparent 70%);
  animation: allume 1.2s var(--ease) .5s both;
}
@media (max-width: 900px) {
  .home-hero::before { background: radial-gradient(ellipse 90% 40% at 50% 78%, var(--halo), transparent 70%); }
}
@keyframes allume { from { opacity: 0; } }
.home-hero .container {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px 64px; align-items: start;
}
.home-hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); max-width: 16ch; }
.home-hero h1 span { color: var(--muted); }
@media (max-width: 900px) { .home-hero .container { grid-template-columns: 1fr; } }

/* Aperçu d'un résultat d'outil */
.preview {
  container-type: inline-size;
  margin: 0;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  overflow: hidden;
}
/* Sur deux colonnes, l'aperçu descend un peu pour s'aligner sur le titre plutôt que sur l'étiquette */
@media (min-width: 901px) { .home-hero .preview { margin-top: 48px; } }
.preview-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  font-size: .82rem; color: var(--muted);
}
.preview-head strong { color: var(--text); font-weight: 600; }
.preview-head > * { white-space: nowrap; }
/* Aperçu trop étroit pour le titre et le détail sur une ligne : seul le titre reste */
@container (max-width: 400px) { .preview-head > span { display: none; } }
.preview-body { padding: 22px 20px 20px; }
.preview-label { margin: 0 0 4px; font-size: .88rem; color: var(--muted); }
.preview-date {
  margin: 0 0 20px; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--strong);
}
.preview-rows { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.preview-rows li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 8px 0; border-top: 1px solid var(--line);
}
.preview-rows .bar { height: 6px; border-radius: 3px; background: var(--bg-alt); overflow: hidden; }
.preview-rows .bar i { display: block; height: 100%; border-radius: 3px; background: var(--line-2); }
.preview-rows li.is-highlight .bar i { background: var(--mark); }
.preview-rows li.is-highlight { font-weight: 600; }
.preview-rows span:last-child { color: var(--text-2); }
.preview-rows [data-fin] { display: inline-block; font-variant-numeric: tabular-nums; }

/* Histogramme : une colonne par semaine de fin possible, ambre jusqu'au seuil de 85 % */
.preview-histo {
  display: flex; align-items: flex-end; gap: 4px; height: 72px; margin: 0 0 16px;
  border-bottom: 1px solid var(--line-2);
}
.preview-histo i {
  flex: 1; height: 0; border-radius: 3px 3px 0 0; background: var(--line-2);
}
.preview-histo i.is-in { background: var(--mark); }
[data-compteur] { font-variant-numeric: tabular-nums; }

/* Apparition progressive de l'accroche au chargement */
.home-hero .container > div:first-child > * { animation: apparait .7s var(--ease) both; }
.home-hero .container > div:first-child > .eyebrow { animation-delay: .05s; }
.home-hero .container > div:first-child > h1 { animation-delay: .15s; }
.home-hero .container > div:first-child > .chapo { animation-delay: .3s; }
.home-hero .container > div:first-child > .actions { animation-delay: .42s; }
.home-hero .preview { animation: apparait .8s var(--ease) .5s both; }

/* Curseur de terminal après l'accroche, écho au logotype */
.home-hero h1 .caret {
  display: inline-block; width: .32em; height: .78em; margin-left: .12em; vertical-align: -.04em;
  border-radius: 2px; background: var(--mark);
  animation: clignote 1.1s steps(1) 4;   /* quelques clignotements puis le curseur reste allumé (moins de 5 s, WCAG 2.2.2) */
}
@keyframes clignote { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .home-hero h1 .caret,
  .home-hero .container > div:first-child > *,
  .home-hero .preview,
  .home-hero::before { animation: none; }
}

/* Outil mis en avant */
.tool-feature {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden;
}
/* Marge perforée : la carte outil se lit comme une fiche de classeur (accueil et page Outils) */
.tool-feature, .tool-card {
  --eyelet-margin: 36px;
  position: relative; padding-left: var(--eyelet-margin);
}
.tool-feature::before, .tool-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--eyelet-margin);
  border-right: 1px dashed var(--line);
  /* Œillet : anneau gris, puis trou au fond de la section creusé par une ombre intérieure
     (le fond, décalé vers le bas, laisse l'ombre apparaître sur le bord haut du trou) */
  background-image:
    radial-gradient(circle at 50% 50%, transparent 0 5.5px, var(--line-2) 6px 8px, transparent 8.5px),
    radial-gradient(circle at 50% calc(50% + 2px), var(--section-bg, var(--bg)) 0 3px, transparent 5.5px),
    radial-gradient(circle at 50% 50%, var(--eyelet-shadow) 0 6px, transparent 6px),
    radial-gradient(circle at 50% 50%, var(--section-bg, var(--bg)) 0 6px, transparent 6px);
  background-position: center;
  background-size: 100% 104px;
  background-repeat: no-repeat space;
}
.tool-feature-main { padding: clamp(24px, 4vw, 40px); }
.tool-feature-main h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 12px 0 10px; }
.tool-feature-main > p { color: var(--text-2); max-width: 52ch; }
.tool-feature-side {
  padding: clamp(24px, 4vw, 40px); border-left: 1px solid var(--line); background: var(--bg-alt);
  font-size: .95rem;
}
.tool-feature-side h4 {
  margin: 0 0 12px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.tool-feature-side ol { margin: 0; padding-left: 1.2em; color: var(--text-2); }
.tool-feature-side li { margin-bottom: .5em; }
.tool-feature-side li::marker { color: var(--muted); font-weight: 600; }
@media (max-width: 860px) {
  .tool-feature { grid-template-columns: 1fr; }
  .tool-feature-side { border-left: 0; border-top: 1px solid var(--line); }
}

/* Page Boîte à outils : une rubrique par besoin, fiches sur deux colonnes */
.toolbox-index { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.toolbox-index a {
  padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--text-2); font-size: .92rem; font-weight: 600; text-decoration: none;
  transition: border-color .15s, color .15s;
}
.toolbox-index a:hover { border-color: var(--text); color: var(--text); }
.tool-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tool-card {
  display: flex; flex-direction: column;
  padding: 24px 24px 24px calc(var(--eyelet-margin) + 24px);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.tool-card .tag { align-self: flex-start; }
.tool-card h3 { margin: 12px 0 8px; }
.tool-card p { font-size: .95rem; color: var(--text-2); }
.tool-card .tool-card-question { color: var(--text); font-weight: 600; }
.tool-card-facts {
  display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 20px; padding: 0; list-style: none;
  font-size: .85rem; color: var(--muted);
}
.tool-card-facts li::before { content: "·"; margin-right: 8px; color: var(--muted); }
.tool-card-facts li:first-child::before { content: none; }
.tool-card .actions { margin-top: auto; gap: 8px; }
.tool-card .btn { padding-inline: 16px; }
/* Rubriques : picto de section statique ; sur téléphone, l'intitulé ne passe pas dessous */
/* Sections de page (accueil, rubriques) : picto réduit (≈ −40 %), trait un peu plus épais pour garder le même poids */
.page-section > .has-picto > .section-picto { top: -4px; width: 80px; height: 80px; stroke-width: 1.1; }
@media (max-width: 600px) {
  .page-section > .has-picto > .section-picto { top: -4px; width: 44px; height: 44px; }
  .has-picto:has(.tool-cards) .section-head h2 { padding-right: 56px; }
}
@media (max-width: 760px) {
  .tool-cards { grid-template-columns: 1fr; }
}

/* Accueil et Parcours : les trois rubriques de la page Boîte à outils (tuiles .card de Parcours) */
.toolbox-rubriques { margin: 16px 0 0; padding: 0; list-style: none; }
.section-head + .toolbox-rubriques { margin-top: 0; }
.toolbox-rubriques .card { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; transition: border-color .15s; }
.toolbox-rubriques .card:hover { border-color: var(--line-2); }
.toolbox-rubriques h3::after { content: " →"; color: var(--accent); }
.toolbox-rubriques .toolbox-rubriques-outils { margin-top: auto; padding-top: 14px; font-size: .85rem; color: var(--muted); }

/* Principes */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.principles li { padding: 4px 32px 0 0; }
.principles li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.principles h3 { margin: 0 0 8px; }
.principles p { margin: 0; color: var(--text-2); font-size: .97rem; }
@media (max-width: 860px) {
  .principles { grid-template-columns: 1fr; gap: 28px; }
  .principles li, .principles li + li { padding: 0; border-left: 0; }
}

/* Bloc Parcours */
.about-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px;
}
.about-strip > div { max-width: 60ch; }
.about-strip p { color: var(--text-2); margin: 0; }

/* ==========================================================================
   Outils : composants réutilisables
   Utilisés par les outils (site/monte-carlo/…), disponibles pour toutes les pages :
   en-tête avec langue, page à deux colonnes, formulaires, choix, résultats, accordéons.
   ========================================================================== */

/* En-tête : navigation + sélecteur de langue */
.site-header-end { display: flex; align-items: center; gap: 12px; }
@media (max-width: 720px) { .site-header-end .nav li:not(:first-child) { display: none; } }
.lang { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
.lang button {
  padding: 5px 12px; border: 0; border-radius: 99px; background: none;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer;
  transition: background .15s, color .15s;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--btn); color: var(--btn-text); }

.nowrap { white-space: nowrap; }
code { padding: 1px 6px; border-radius: 5px; font-family: var(--font-mono); font-size: .88em; background: var(--tint); }

/* Page d'outil : saisie à gauche, résultats à droite (collants sur grand écran) */
.tool-main { padding-block: clamp(28px, 4vw, 44px) 40px; font-size: 1rem; line-height: 1.55; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 22px; align-items: start; }
.tool-col { display: grid; gap: 16px; }
/* Colonne collante sous l'en-tête (72px + 16px d'air, comme scroll-padding-top) tant que la colonne
   voisine défile ; arrivée au bout de celle-ci, elle repart avec la page et dévoile sa fin. */
@media (min-width: 881px) { .tool-col.is-sticky { position: sticky; top: 88px; } }
@media (max-width: 880px) { .tool-layout { grid-template-columns: minmax(0, 1fr); } }
.card h2 { margin: 0 0 16px; font-size: 21px; letter-spacing: -.015em; }

/* Petit titre en capitales (au-dessus d'un graphique, d'un tableau…) */
.overline {
  margin: 26px 0 8px;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}

/* Formulaires */
label { display: block; margin: 18px 0 6px; font-size: 14px; font-weight: 600; }
textarea, select, input:where(:not([type="checkbox"], [type="radio"])) {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font: inherit; color: var(--text); background: color-mix(in srgb, var(--bg) 55%, var(--surface));
  transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea:hover, input:hover, select:hover { border-color: color-mix(in srgb, var(--text) 50%, var(--line)); }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--text); background: var(--surface); box-shadow: 0 0 0 4px var(--glow); }
textarea { resize: vertical; font-variant-numeric: tabular-nums; }
select {
  appearance: none; padding-right: 40px; cursor: pointer; font-weight: 500;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2362656E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
@media (prefers-color-scheme: dark) {
  select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239A9DA6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); }
}
/* Listes déroulantes personnalisables (Chrome, Edge) : menu aux couleurs de la charte ; les autres navigateurs gardent le menu natif */
@supports (appearance: base-select) {
  select, ::picker(select) { appearance: base-select; }
  select { display: flex; align-items: center; gap: 10px; padding-right: 13px; background-image: none; }
  select::picker-icon {
    content: ""; width: 12px; height: 8px; margin-left: auto; background: var(--muted);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: rotate .2s var(--ease), background .15s;
  }
  select:open { border-color: var(--text); background: var(--surface); box-shadow: 0 0 0 4px var(--glow); }
  select:open::picker-icon { rotate: 180deg; background: var(--text); }
  ::picker(select) {
    margin-top: 6px; padding: 5px; min-width: anchor-size(width);
    border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--text);
    box-shadow: 0 12px 32px -8px rgb(22 24 29 / .22), 0 2px 6px rgb(22 24 29 / .06);
    opacity: 0; translate: 0 -4px;
    transition: opacity .16s var(--ease), translate .16s var(--ease), overlay .16s allow-discrete, display .16s allow-discrete;
  }
  select:open::picker(select) { opacity: 1; translate: 0 0; }
  @starting-style { select:open::picker(select) { opacity: 0; translate: 0 -4px; } }
  option { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .12s; }
  option::checkmark { content: ""; order: 1; margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--mark); }
  option:not(:checked)::checkmark { visibility: hidden; }
  option:hover, option:focus-visible { background: var(--bg-alt); outline: none; }
  option:checked { font-weight: 700; }
  option:disabled { color: var(--muted); font-weight: 500; cursor: default; background: none; }
  option:disabled::checkmark { display: none; }
}
/* Safari n'affiche pas d'icône calendrier dans les champs date : on la dessine (Chrome et Firefox gardent la leur) */
@supports (font: -apple-system-body) and (-webkit-appearance: none) {
  input[type="date"] {
    padding-right: 40px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2362656E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='12' height='11' rx='2'/%3E%3Cpath d='M2 6.5h12M5.5 1.5v3M10.5 1.5v3'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 13px center;
  }
}
/* Champs côte à côte ; libellés sur une ou deux lignes : les champs restent alignés */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 14px; margin-bottom: 18px; }
.form-grid > div { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; }
.form-grid label { align-self: end; }
/* Libellé et petite liste déroulante sur une ligne */
.inline-select { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; font-size: 13px; color: var(--muted); }
.inline-select label { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.inline-select select { width: auto; padding: 6px 36px 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; background-position: right 12px center; }
@supports (appearance: base-select) { .inline-select select { padding-right: 12px; } }
.hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
/* Réglage optionnel replié sous un formulaire */
.disclosure { margin: -4px 0 18px; }
.disclosure summary { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; list-style: none; cursor: pointer; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::before {
  content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 99px;
  font-size: 16px; line-height: 1; color: var(--text); background: var(--tint);
}
.disclosure[open] summary::before { content: "–"; }
.disclosure-body { max-width: 420px; margin-top: 12px; }
/* Barre de plage à deux curseurs (--lo et --hi : positions en %) */
.range-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.range-value { color: var(--strong); font-weight: 700; font-variant-numeric: tabular-nums; }
.range-slider { --thumb: 22px; position: relative; height: var(--thumb); }
.range-slider::before {
  content: ""; position: absolute; top: 50%; left: calc(var(--thumb) / 2); right: calc(var(--thumb) / 2);
  height: 6px; margin-top: -3px; border-radius: 99px;
  background: linear-gradient(to right, var(--tint) var(--lo), var(--mark) var(--lo), var(--mark) var(--hi), var(--tint) var(--hi));
}
.range-slider input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: var(--thumb); margin: 0; padding: 0;
  border: 0; background: none; box-shadow: none; appearance: none; -webkit-appearance: none; pointer-events: none;
}
.range-slider input[type="range"]:focus { outline: none; box-shadow: none; }
.range-slider input[type="range"]::-webkit-slider-runnable-track { height: var(--thumb); background: none; }
.range-slider input[type="range"]::-moz-range-track { background: none; }
.range-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: var(--thumb); height: var(--thumb); border: 2px solid var(--text); border-radius: 50%;
  background: var(--surface); cursor: grab; pointer-events: auto; transition: box-shadow .15s;
}
.range-slider input[type="range"]::-moz-range-thumb {
  box-sizing: border-box; width: var(--thumb); height: var(--thumb); border: 2px solid var(--text); border-radius: 50%;
  background: var(--surface); cursor: grab; pointer-events: auto; transition: box-shadow .15s;
}
.range-slider input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--glow); }
.range-slider input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--glow); }
.range-scale { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Messages : remarque, avertissement, erreur */
.notice {
  margin: 10px 0 0; padding: 9px 14px;
  border-left: 3px solid var(--text); border-radius: 0 8px 8px 0; background: var(--tint);
  font-size: 13px; color: var(--text-2);
}
.notice b { color: var(--text); font-weight: 650; }
.notice.is-warning { border-left-color: var(--mark); background: var(--note-soft); }
.notice.is-warning b { color: var(--strong); }
.callout.is-compact { margin: 0 0 18px; padding: 14px 18px; font-size: 14px; color: var(--text-2); }
.callout.is-compact p { margin: 0; }
.callout.is-compact .callout-title { margin-bottom: 2px; color: var(--text); }
.error { margin: 0; padding: 14px 18px; border-radius: var(--radius); background: var(--bad-bg); color: var(--bad); font-weight: 600; }

/* Puces de choix et contrôle segmenté (choix exclusifs) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.chips-label { margin-right: 4px; font-weight: 600; }
.chip {
  padding: 5px 13px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface);
  font: inherit; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, transform .15s;
}
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: var(--btn-text); transform: none; }
.segmented { display: inline-flex; gap: 0; padding: 3px; border: 1px solid var(--line); border-radius: 99px; background: var(--bg-alt); }
.segmented .chip { padding: 7px 16px; border: 0; background: none; color: var(--muted); font-size: 14px; }
.segmented .chip:hover { color: var(--text); transform: none; }
.segmented .chip[aria-pressed="true"] { background: var(--btn); color: var(--btn-text); }
.field-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.field-row + .field-row { margin-top: 16px; }
/* après un champ, même respiration qu'avant un libellé */
input + .field-row { margin-top: 18px; }

/* Résultat principal : une date ou un chiffre mis en avant */
.headline { margin: 22px 0 4px; padding: 20px 22px; border-top: 3px solid var(--mark); border-radius: 0 0 var(--radius) var(--radius); background: var(--tint); }
.headline p { margin: 0; }
.headline-pre { color: var(--text-2); font-size: 15px; }
.headline-date {
  margin: 4px 0 8px !important;
  font-family: var(--font-display); font-size: clamp(26px, 4vw, 36px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15;
  color: var(--strong);
}
.headline-date::first-letter { text-transform: uppercase; }
.headline-sub { font-size: 14px; color: var(--muted); }

/* Graphique et légende (couleurs : --z1 à --z4) */
.chart { height: 280px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 11px; height: 11px; margin-right: 6px; border-radius: 4px; vertical-align: -1px; }

/* Tableau de résultats, sans cadre (posé dans une carte) */
.data-table { font-size: inherit; }
.data-table th, .data-table td { padding: 11px 12px; font-weight: 400; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table thead th { font-size: 12px; }
.data-table tbody th { font-weight: 700; }
.data-table tr.is-highlight > * { background: var(--tint); color: var(--text); font-weight: 650; }
.data-table tr.is-highlight > :first-child { box-shadow: inset 3px 0 0 var(--mark); }
@media (min-width: 521px) { .data-table th, .data-table td:not(:last-child) { white-space: nowrap; } }
@media (max-width: 520px) { .data-table th, .data-table td { padding: 10px 8px; } .data-table thead th { letter-spacing: .03em; } }

/* Accordéons (« Comment ça marche », lexique, limites) */
.accordion { display: grid; gap: 12px; }
.accordion .card { padding: 0; }
.accordion summary {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 22px;
  border-radius: var(--radius); font-weight: 700; list-style: none; cursor: pointer; transition: background .15s;
}
.accordion summary:hover { background: var(--bg-alt); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 99px;
  font-size: 18px; line-height: 1; color: var(--text); background: var(--tint);
}
.accordion details[open] summary::after { content: "–"; }
.accordion details > :not(summary) { margin-left: 22px; margin-right: 22px; }
.accordion details > :last-child { margin-bottom: 20px; }
.accordion .steps { display: grid; gap: 14px; margin-top: 0; }
.accordion .steps li { display: grid; gap: 2px; margin: 0; }
.accordion .steps li::before { top: 0; font-size: 13.5px; }
.accordion .steps span { font-size: 14px; color: var(--text-2); }
.accordion dl { display: grid; gap: 12px; margin: 0; }
.accordion dt { font-weight: 700; }
.accordion dd { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.limits { display: grid; gap: 8px; margin-top: 0; padding-left: 18px; font-size: 14px; color: var(--muted); }

/* Questions fréquentes sous un outil (bande grise en fin de page). Visibles à l'accueil de l'outil,
   sans JS et pendant le chargement ; masquées dès qu'une autre vue (participant, animateur…) s'affiche. */
.tool-faq .accordion { max-width: var(--measure); }
.tool-faq details p { font-size: 15px; color: var(--text-2); }
.tool-faq-article { max-width: var(--measure); margin: 24px 0 0; color: var(--text-2); }
main:has([data-vue]:not([data-vue="accueil"]):not([hidden])) > .tool-faq { display: none; }

@media (max-width: 520px) { .card { padding: 18px; } .segmented .chip { padding: 7px 12px; } }

/* ==========================================================================
   ROTI et météo d'équipe (site/roti/)
   ========================================================================== */
.roti-intro { color: var(--text-2); font-size: 15px; }
.roti-actions { margin-top: 20px; }
.roti-retour { grid-column: 1 / -1; margin: 0; font-size: 14px; }
.roti-code-input { font-family: var(--font-mono); font-size: 22px; letter-spacing: .25em; text-transform: uppercase; }
.roti-facultatif { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }
.roti-vide { margin: 0; color: var(--muted); font-size: 15px; }
.roti-overline { margin-top: 0; }
.roti-lien-bouton {
  padding: 0; border: 0; background: none; font: inherit; color: var(--accent); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--link-line); text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.roti-lien-bouton:hover { text-decoration-thickness: 2px; }

/* Barre de l'animateur : équipe et lien d'animation */
.roti-barre { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.roti-barre .inline-select { margin-top: 0; }
.roti-copie { display: flex; gap: 8px; margin-top: 12px; }
.roti-copie input { font-family: var(--font-mono); font-size: 13px; }
.roti-danger { margin-top: 12px !important; font-size: 13px; color: var(--muted); }
.roti-danger .roti-lien-bouton { font-size: 13px; color: var(--text-2); }

/* Vote du participant : une carte étroite, de grandes cibles au doigt */
.roti-vote { max-width: 560px; margin-inline: auto; }
.roti-question { font-size: 17px; color: var(--text-2); }
.roti-echelle { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.roti-choix {
  position: relative; display: flex; align-items: center; gap: 14px; margin: 0; padding: 12px 16px;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.roti-choix:hover { border-color: var(--text); }
.roti-choix input { position: absolute; opacity: 0; pointer-events: none; }
.roti-choix:has(input:checked) { border-color: var(--text); background: var(--tint); box-shadow: inset 4px 0 0 var(--mark); }
.roti-choix:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--glow); }
.roti-choix-tete { display: grid; place-items: center; flex: none; width: 44px; height: 44px; }
.roti-choix-tete b {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  font-family: var(--font-display); font-size: 22px; font-weight: 700; background: var(--bg-alt);
}
.roti-choix:has(input:checked) .roti-choix-tete b { background: var(--btn); color: var(--btn-text); }
.roti-choix-texte { display: grid; font-size: 15px; line-height: 1.35; }
.roti-choix-texte span { font-size: 13.5px; color: var(--muted); }
.roti-autre { text-align: center; margin-top: 16px; }

/* Pictos météo : trait fin, détail ambre */
.roti-picto { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.roti-picto-mark { fill: var(--mark); stroke: none; }
.roti-picto-fond { fill: var(--surface); }
.roti-etoiles { display: block; width: 84px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 4.2; stroke-linejoin: round; }
.roti-etoiles .roti-picto-mark { stroke: var(--mark); }
.roti-choix-tete:has(.roti-etoiles) { width: auto; }
.roti-choix:has(input:checked) .roti-picto-fond { fill: var(--tint); }

/* Accès à la séance : QR code, adresse et code, projetables */
.roti-acces { display: grid; grid-template-columns: minmax(0, 200px) 1fr; gap: 22px; align-items: center; margin: 4px 0 0; }
.roti-qr { width: 100%; height: auto; border-radius: 10px; }
.roti-acces-libelle { margin: 0; font-size: 13px; color: var(--muted); }
.roti-acces-url { margin: 0 0 10px; font-weight: 650; word-break: break-all; }
.roti-code {
  margin: 0; font-family: var(--font-mono); font-size: clamp(30px, 4vw, 40px); font-weight: 700; letter-spacing: .14em; line-height: 1.2;
}
.roti-compteur { margin: 12px 0 0; display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.roti-compteur::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mark); animation: roti-pulse 2s ease-in-out infinite; }
@keyframes roti-pulse { 50% { opacity: .35; } }
.roti-projection-fermer, .roti-projection-commandes, .roti-projection-titre { display: none; }
@media (max-width: 520px) { .roti-acces { grid-template-columns: 1fr; } .roti-qr { max-width: 220px; } }

/* Projection : l'accès en plein écran, lisible du fond de la salle */
body.roti-en-projection { overflow: hidden; }
body.roti-en-projection .roti-acces {
  position: fixed; inset: 0; z-index: 100; margin: 0; padding: 5vmin;
  grid-template-columns: minmax(0, 46vmin) auto; justify-content: center; align-content: center; gap: 4vmin 6vmin;
  background: var(--bg);
}
/* titre de la séance sur toute la largeur, au-dessus du QR code, comme dans la carte */
body.roti-en-projection .roti-projection-titre { display: block; grid-column: 1 / -1; }
body.roti-en-projection .roti-projection-titre .overline { margin: 0 0 1.4vmin; font-size: 1.8vmin; }
body.roti-en-projection .roti-projection-intitule { margin: 0; font-family: var(--font-display); font-size: 4.4vmin; font-weight: 700; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
body.roti-en-projection .roti-acces-libelle { font-size: 2.6vmin; }
body.roti-en-projection .roti-acces-url { font-size: 3.6vmin; margin-bottom: 3vmin; }
body.roti-en-projection .roti-code { font-size: 11vmin; }
body.roti-en-projection .roti-compteur { font-size: 3vmin; margin-top: 3vmin; }
body.roti-en-projection .roti-projection-commandes { display: flex; flex-wrap: wrap; gap: 1.6vmin; margin-top: 5vmin; }
body.roti-en-projection .roti-projection-commandes .btn { font-size: 2.2vmin; }
/* Séance close pendant la projection : les résultats prennent l'écran */
body.roti-en-projection .tool-col.is-sticky { position: static; }
body.roti-en-projection [data-a-seance].is-close {
  position: fixed; inset: 0; z-index: 100; overflow: auto; margin: 0; padding: 5vmin max(6vmin, calc((100vw - 130vmin) / 2));
  border: 0; border-radius: 0; background: var(--bg);
}
body.roti-en-projection .is-close .roti-overline, body.roti-en-projection .is-close .overline { font-size: 1.8vmin; }
body.roti-en-projection .is-close h2 { font-size: 4.4vmin; }
body.roti-en-projection .is-close .headline { margin-top: 2.4vmin; padding: 2.6vmin 3vmin; }
body.roti-en-projection .is-close .headline-pre, body.roti-en-projection .is-close .headline-sub { font-size: 2.4vmin; }
body.roti-en-projection .is-close .headline-date { font-size: 9vmin; }
body.roti-en-projection .is-close .roti-barres { font-size: 2.4vmin; }
body.roti-en-projection .is-close .roti-barres li { grid-template-columns: minmax(0, 36%) 1fr 5vmin; gap: 2vmin; padding: .8vmin 0; }
body.roti-en-projection .is-close .roti-barres .bar { height: 1.4vmin; border-radius: .7vmin; }
body.roti-en-projection .is-close .roti-barres .roti-picto, body.roti-en-projection .is-close .roti-barres-libelle b { width: 3.2vmin; height: 3.2vmin; }
body.roti-en-projection .is-close .roti-barres .roti-etoiles { width: 12vmin; height: 2.4vmin; }
body.roti-en-projection .is-close .roti-commentaires li { font-size: 2.2vmin; padding: 1.4vmin 2vmin; }
body.roti-en-projection .is-close .roti-pastille { width: 3vmin; height: 3vmin; font-size: 1.6vmin; }
body.roti-en-projection .is-close [data-action="rouvrir"] { font-size: 2.2vmin; }
body.roti-en-projection .is-close .roti-projection-fermer { display: flex; font-size: 2.2vmin; }

/* Résultats */
.roti-headline { margin-top: 18px; }
.roti-sur { font-size: .5em; color: var(--muted); letter-spacing: 0; }
.roti-verdict { margin: 12px 0 18px; font-size: 14px; }
body.roti-en-projection .is-close .roti-verdict { font-size: 2.2vmin; padding: 1.4vmin 2vmin; margin-bottom: 2.4vmin; }
.roti-barres { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.roti-barres li { display: grid; grid-template-columns: minmax(130px, 40%) 1fr 32px; gap: 12px; align-items: center; padding: 5px 0; }
.roti-barres-libelle { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.roti-barres-libelle b { display: inline-grid; place-items: center; width: 22px; font-weight: 700; color: var(--text); }
.roti-barres .roti-picto { width: 22px; height: 22px; stroke-width: 2.4; }
.roti-barres .roti-etoiles { flex: none; width: 60px; height: 12px; }
.roti-barres li:has(.roti-etoiles) { grid-template-columns: minmax(170px, 40%) 1fr 32px; }   /* rangée d'étoiles + libellé sur une ligne */
.roti-barres-libelle:has(.roti-etoiles) { white-space: nowrap; }
.roti-barres .bar { height: 10px; border-radius: 5px; background: var(--bg-alt); overflow: hidden; }
.roti-barres .bar i { display: block; height: 100%; border-radius: 5px; background: var(--line-2); }
.roti-barres li.is-max .bar i { background: var(--mark); }
.roti-barres-n { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.roti-commentaires { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.roti-commentaires li { display: flex; gap: 10px; align-items: baseline; padding: 10px 14px; border-radius: 10px; background: var(--tint); font-size: 15px; color: var(--text-2); }
.roti-pastille { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--surface); font-size: 12px; font-weight: 700; color: var(--text); }

/* Autres séances ouvertes */
.roti-liste { list-style: none; margin: 0; padding: 0; }
.roti-liste li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.roti-liste li:first-child { border-top: 0; padding-top: 0; }
.roti-liste li.is-highlight { margin: 0 -12px; padding: 10px 12px; border-radius: 0 8px 8px 0; background: var(--tint); box-shadow: inset 3px 0 0 var(--mark); }
.roti-liste li.is-highlight + li { border-top-color: transparent; }
.roti-liste-etat { flex: none; font-size: 13px; font-weight: 650; color: var(--muted); }

/* Historique */
.roti-historique { margin-top: 22px; }
.roti-historique-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.roti-historique-tete h2 { margin: 0; }
.roti-faits { grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
.roti-faits strong { color: var(--strong); }
.facts.roti-faits li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.roti-tendance { font-size: clamp(1.2rem, 2.2vw, 1.5rem) !important; }
.roti-courbe { width: 100%; height: auto; overflow: visible; }
.roti-courbe-grille { stroke: var(--line); stroke-width: 1; }
.roti-courbe-axe { fill: var(--muted); font-size: 12px; font-family: var(--font-body); }
.roti-courbe-ligne { fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linejoin: round; }
.roti-courbe-point { fill: var(--mark); stroke: var(--surface); stroke-width: 2; }
.roti-table { margin-bottom: 0; }
.roti-table-actions { text-align: right; white-space: nowrap; }
.roti-table-actions .roti-lien-bouton { font-size: 13px; }
.roti-table-actions .roti-lien-bouton + .roti-lien-bouton { margin-left: 14px; color: var(--muted); }
@media (max-width: 640px) { .roti-faits { grid-template-columns: 1fr; } .facts.roti-faits li + li { padding-left: 0; border-left: 0; } }
.roti-choix:has(input:checked:focus-visible) { box-shadow: inset 4px 0 0 var(--mark), 0 0 0 4px var(--glow); }

/* ==========================================================================
   Ice-breakers et animations (site/ice-breakers/)
   ========================================================================== */
.ib-criteres { margin-top: 4px; }
.ib-nom { margin: 12px 0 8px !important; font-size: clamp(24px, 3vw, 30px) !important; }
.ib-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); }
.ib-meta li + li::before { content: "·"; margin-right: 14px; }
.ib-but { font-size: 17px; color: var(--text-2); }
.ib-steps { margin: 0 0 18px; font-size: 15px; }
.ib-ceremonies { margin: 16px 0 18px; font-size: 13.5px; color: var(--muted); }
.ib-catalogue-aide { margin: -8px 0 0; }
.ib-catalogue { margin: 0; padding: 0; list-style: none; }
.ib-catalogue button {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; padding: 9px 12px; margin: 0 -12px; box-sizing: content-box;
  border: 0; border-radius: 8px; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--text); text-align: left; cursor: pointer;
  transition: background .12s;
}
.ib-catalogue button:hover { background: var(--bg-alt); }
.ib-catalogue button[aria-current="true"] { background: var(--tint); box-shadow: inset 3px 0 0 var(--mark); }
.ib-catalogue-meta { flex: none; font-size: 13px; font-weight: 400; color: var(--muted); }

/* Séance composée : une frise verticale, heure à gauche */
.ib-plan { margin: 0 0 18px; padding: 0; list-style: none; }
.ib-bloc { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding-bottom: 18px; }
.ib-bloc::before { content: ""; position: absolute; left: 66px; top: 8px; bottom: -8px; width: 1px; background: var(--line-2); }
.ib-bloc::after { content: ""; position: absolute; left: 62px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); }
.ib-bloc:not(.is-fin):not(.is-coeur)::after { background: var(--mark); border-color: var(--mark); }
.ib-bloc.is-fin { padding-bottom: 0; }
.ib-bloc.is-fin::before { display: none; }
.ib-bloc > div { padding-left: 14px; }
.ib-heure { padding-top: 0; text-align: right; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.2; }
.ib-bloc-moment { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); line-height: 1.2; }
.ib-bloc h3 { margin: 4px 0 4px; }
.ib-bloc-but { margin: 0 0 6px; font-size: 14.5px; color: var(--text-2); }
.ib-bloc.is-coeur h3 { color: var(--text-2); }
.ib-details { margin: 6px 0 0; }
.ib-details .disclosure-body { max-width: none; }
.ib-details .ib-steps { font-size: 14px; }
.ib-changer { margin-top: 4px; font-size: 13px; color: var(--text-2); }

/* ==========================================================================
   Gardien du temps (site/timer/)
   ========================================================================== */
.tm-presets { margin-top: 18px; }
.tm-melange { margin-top: 14px; }
@media (max-width: 520px) { .tm-modes { display: flex; } .tm-modes .chip { flex: auto; padding: 7px 8px; font-size: 13px; white-space: nowrap; } }
.tm-grille { margin-top: 0; margin-bottom: 4px; }
.tm-options { margin-top: 22px; }
.tm-essai { font-size: 13px; color: var(--text-2); }
.tm-raccourcis { display: grid; gap: 8px; margin: 0; font-size: 14px; }
.tm-raccourcis div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; }
.tm-raccourcis dd { margin: 0; color: var(--text-2); }
kbd {
  display: inline-block; min-width: 26px; padding: 2px 8px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600; text-align: center; background: var(--bg-alt);
}

/* Écran du timer : un anneau qui se vide, le temps au centre */
.tm-ecran { text-align: center; }
.tm-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 26px; text-align: left; }
.tm-total { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tm-libelle { min-height: 1.3em; margin: 18px 0 0; font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: -.015em; line-height: 1.25; overflow-wrap: anywhere; }
.tm-cadran { position: relative; width: min(100%, 320px); margin: 14px auto 0; aspect-ratio: 1; }
.tm-anneau { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.tm-anneau circle { fill: none; stroke-width: 7; }
.tm-anneau-fond { stroke: var(--tint); }
.tm-anneau-reste {
  stroke: var(--mark); stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 0;
  transition: stroke-dashoffset .25s linear, stroke .2s;
}
.tm-temps { position: absolute; inset: 0; display: grid; place-content: center; gap: 2px; }
.tm-chiffres {
  margin: 0; font-family: var(--font-display); font-size: clamp(54px, 7vw, 76px); font-weight: 700; letter-spacing: -.03em; line-height: 1;
  font-variant-numeric: tabular-nums; transition: color .2s;
}
.tm-etat { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--muted); }
.tm-suite { min-height: 1.5em; margin: 16px 0 0; font-size: 15px; color: var(--text-2); }
.tm-suite b { color: var(--text); font-weight: 650; }
.tm-actions { justify-content: center; margin-top: 18px; }
.tm-actions .btn-primary { min-width: 150px; justify-content: center; }
.tm-rond { width: 46px; padding: 0; justify-content: center; font-size: 18px; }
.btn:disabled { opacity: .4; cursor: default; transform: none; }
.btn-secondary:disabled:hover { border-color: var(--line-2); }
.tm-liens { display: flex; justify-content: center; gap: 22px; margin-top: 14px; font-size: 14px; }
.tm-liens .roti-lien-bouton { color: var(--text-2); }

/* Dernière minute : chiffres en ambre foncé ; dépassement : en rouge, anneau plein */
.tm-ecran.is-proche .tm-chiffres { color: var(--strong); }
.tm-ecran.is-depasse .tm-chiffres, .tm-ecran.is-depasse .tm-etat { color: var(--bad); }
.tm-ecran.is-depasse .tm-anneau-reste { stroke: var(--bad); }
.tm-ecran.is-fini .tm-chiffres, .tm-ecran.is-vide .tm-chiffres { color: var(--muted); }

/* Suite des blocs : passés grisés, bloc en cours marqué */
.tm-blocs { margin: 22px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); list-style: none; text-align: left; counter-reset: bloc; }
.tm-blocs:empty { display: none; }
.tm-blocs button {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; padding: 7px 12px; margin: 0 -12px; box-sizing: content-box;
  border: 0; border-radius: 8px; background: none; font: inherit; font-size: 14.5px; color: var(--text); text-align: left; cursor: pointer;
  transition: background .12s;
}
.tm-blocs button:hover { background: var(--bg-alt); }
.tm-blocs .is-passe button { color: var(--muted); }
.tm-blocs .is-passe span:first-child { text-decoration: line-through; text-decoration-color: var(--line-2); }
.tm-blocs .is-courant button { background: var(--tint); box-shadow: inset 3px 0 0 var(--mark); font-weight: 650; }
.tm-blocs-duree { flex: none; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Projection : seul le timer reste, à la taille de l'écran */
body.tm-en-projection { overflow: hidden; }
/* la colonne collante crée un contexte d'empilement : sans ce retour à static, l'en-tête du site passerait devant */
body.tm-en-projection .tool-col.is-sticky { position: static; }
body.tm-en-projection .tm-ecran {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; justify-content: center;
  padding: 4vmin 6vmin; border: 0; border-radius: 0; background: var(--bg);
}
body.tm-en-projection .tm-tete { font-size: 2.2vmin; }
body.tm-en-projection .tm-total { font-size: 2.4vmin; }
body.tm-en-projection .tm-libelle { margin-top: 2vmin; font-size: 5vmin; }
body.tm-en-projection .tm-cadran { width: 58vmin; margin-top: 2vmin; }
body.tm-en-projection .tm-chiffres { font-size: 15vmin; }
body.tm-en-projection .tm-etat { font-size: 2.6vmin; }
body.tm-en-projection .tm-suite { margin-top: 2.4vmin; font-size: 2.8vmin; }
body.tm-en-projection .tm-blocs { display: none; }
@media (prefers-reduced-motion: reduce) { .tm-anneau-reste { transition: none; } }

/* ==========================================================================
   Planning Poker (site/planning-poker/)
   ========================================================================== */
.pp-titre { margin: 0; font-size: clamp(20px, 2.4vw, 26px); }
.pp-mes-tables { margin-top: 26px; }
.pp-sujet-libelle { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pp-sujet { margin: 4px 0 0; font-size: clamp(20px, 2.4vw, 26px); overflow-wrap: anywhere; }
.pp-sujet.is-vide { color: var(--muted); font-weight: 600; }
.pp-etat { margin: 10px 0 0; font-size: 15px; color: var(--text-2); }

/* Une carte : format de carte à jouer, valeur au centre */
.pp-carte, .pp-carte-choix {
  display: grid; place-items: center; aspect-ratio: 5 / 7; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--surface); font-family: var(--font-display); font-weight: 700; color: var(--text); line-height: 1;
}
.pp-tasse { width: 60%; height: auto; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pp-tasse-mark { stroke: var(--mark); }

/* Main du participant : de grandes cibles au doigt */
.pp-joueur { max-width: 620px; margin-inline: auto; }

/* Participant au téléphone : l'outil seul, sans menu, bandeau ni pied de page */
body.outil-participant .site-header, body.outil-participant .site-footer, body.outil-participant [data-hero] { display: none; }
body.outil-participant .tool-main { padding-block: 20px 28px; }
@media (max-width: 600px) {
  body.outil-participant .roti-vote > .card, body.outil-participant .pp-joueur > .card { padding: 0; border: 0; background: none; }
}
.pp-main { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; margin: 20px 0 0; }
.pp-carte-choix {
  width: 100%; padding: 0; font-size: clamp(22px, 6vw, 28px); cursor: pointer; touch-action: manipulation;
  transition: border-color .15s, background .15s, transform .15s var(--ease), box-shadow .15s;
}
.pp-carte-choix:hover { border-color: var(--text); }
.pp-carte-choix:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--glow); }
.pp-carte-choix[aria-pressed="true"] { border-color: var(--text); background: var(--tint); box-shadow: inset 0 -5px 0 var(--mark); transform: translateY(-6px); }
.pp-carte-choix[aria-pressed="true"]:focus-visible { box-shadow: inset 0 -5px 0 var(--mark), 0 0 0 4px var(--glow); }
/* Vote validé : la carte prend la couleur du dos, filet ambre compris */
.pp-carte-choix.is-valide { border-color: var(--btn); background: var(--btn); color: var(--btn-text); }

/* Places autour de la table */
.pp-joueurs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 16px 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.pp-joueurs.is-compact { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 12px 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.pp-personne { grid-column: 1 / -1; color: var(--muted); font-size: 15px; }
.pp-place { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; }
.pp-place .pp-carte { width: 100%; max-width: 64px; font-size: 24px; }
.pp-joueurs.is-compact .pp-carte { max-width: 46px; font-size: 18px; border-radius: 8px; }
.pp-carte.is-vide { border-style: dashed; background: none; }
/* Dos de carte : noir doux et filet ambre, comme le curseur du logo */
.pp-carte.is-dos { border-color: var(--btn); background: var(--btn); box-shadow: inset 0 0 0 4px var(--btn), inset 0 0 0 5px var(--mark); }
.pp-carte.is-face { animation: pp-retourner .35s var(--ease); }
@keyframes pp-retourner { from { transform: rotateY(90deg); } }
.pp-place.is-extreme .pp-carte { border-color: var(--text); box-shadow: inset 0 -5px 0 var(--mark); }
.pp-place.is-absent { opacity: .45; }
.pp-nom { max-width: 100%; font-size: 13.5px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.pp-place.is-moi .pp-nom { color: var(--strong); }
.pp-vous { font-weight: 400; color: var(--muted); }
.pp-retirer {
  position: absolute; top: -8px; right: calc(50% - 40px); width: 22px; height: 22px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%;
  background: var(--surface); font: inherit; font-size: 14px; line-height: 1; color: var(--muted); cursor: pointer; opacity: 0; transition: opacity .15s;
}
.pp-place:hover .pp-retirer, .pp-retirer:focus-visible { opacity: 1; }
@media (hover: none) { .pp-retirer { opacity: .7; } }
.pp-retirer:hover { color: var(--bad); border-color: var(--bad); }

/* Tapis de l'animateur : accès, sujet, places, commandes, résultat */
.pp-acces { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.pp-acces .roti-code { font-size: clamp(24px, 3vw, 32px); }
.pp-acces-url { margin: 0 0 4px; font-size: 14px; font-weight: 650; }
@media (max-width: 880px) { .pp-layout .tool-col.is-sticky { order: -1; } }
.pp-acces-qr .roti-qr { display: block; border-radius: 6px; }
.pp-projection-fermer { display: none; }
@media (max-width: 520px) { .pp-acces { grid-template-columns: 72px 1fr; } .pp-projeter { grid-column: 1 / -1; justify-self: start; } }
.pp-commandes { margin-top: 22px; }
.pp-valeur { display: flex; align-items: center; gap: .3em; }
.pp-valeur .pp-tasse { width: 1em; }
.pp-fleche { font-size: .6em; color: var(--muted); }
.pp-barres { margin-top: 14px; }
.pp-barres li { grid-template-columns: 48px 1fr 32px; }
.pp-mini { display: inline-grid; place-items: center; min-width: 28px; height: 34px; padding: 0 4px; border: 1px solid var(--line-2); border-radius: 6px; font-family: var(--font-display); font-weight: 700; color: var(--text); }
.pp-mini .pp-tasse { width: 20px; }
.pp-notes { margin-top: 10px; }
.pp-derniere { margin-top: 16px; }
.pp-derniere .pp-tasse { width: 18px; vertical-align: -4px; }
.pp-retenir { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.pp-retenir .btn { margin-top: 14px; }
.pp-retenir-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pp-retenir-ligne label { margin: 0; }
.pp-retenir-ligne select { width: auto; min-width: 110px; }

/* Estimations retenues */
.pp-estimations td { vertical-align: middle; }
.pp-corriger { width: auto; padding: 4px 30px 4px 10px; border-radius: 8px; font-size: 14px; font-weight: 650; background-position: right 8px center; }
.pp-total { margin: 12px 0 0; font-size: 14px; color: var(--text-2); }
.pp-total b { color: var(--strong); }

/* Projection : le tapis seul, lisible du fond de la salle */
body.pp-en-projection { overflow: hidden; }
body.pp-en-projection .tool-col.is-sticky { position: static; }
body.pp-en-projection .pp-tapis {
  position: fixed; inset: 0; z-index: 100; overflow: auto; padding: 4vmin max(6vmin, calc((100vw - 170vmin) / 2)); border: 0; border-radius: 0; background: var(--bg);
}
body.pp-en-projection .pp-acces { grid-template-columns: 16vmin 1fr auto; gap: 3vmin; }
body.pp-en-projection .pp-acces .roti-acces-libelle { font-size: 2.2vmin; }
body.pp-en-projection .pp-acces-url { font-size: 2.8vmin; }
body.pp-en-projection .pp-acces .roti-code { font-size: 6vmin; }
body.pp-en-projection .pp-projeter { display: none; }
body.pp-en-projection .pp-projection-fermer { display: flex; }
body.pp-en-projection .pp-sujet-libelle { font-size: 1.8vmin; }
body.pp-en-projection .pp-sujet { font-size: 5vmin; }
body.pp-en-projection .pp-etat { font-size: 2.6vmin; }
body.pp-en-projection .pp-joueurs { grid-template-columns: repeat(auto-fill, minmax(14vmin, 1fr)); gap: 3vmin 2vmin; margin-top: 4vmin; }
body.pp-en-projection .pp-place .pp-carte { max-width: 12vmin; font-size: 5vmin; border-radius: 1.4vmin; }
body.pp-en-projection .pp-nom { font-size: 2.2vmin; }
body.pp-en-projection .pp-retirer { display: none; }
body.pp-en-projection .pp-retenir { margin-top: 3vmin; padding-top: 3vmin; }
body.pp-en-projection .pp-retenir label, body.pp-en-projection .pp-retenir select, body.pp-en-projection .pp-retenir .btn { font-size: 2.2vmin; }
body.pp-en-projection .pp-retenir .hint { font-size: 1.8vmin; }
body.pp-en-projection .pp-commandes .btn { font-size: 2vmin; }
body.pp-en-projection .headline { margin-top: 3vmin; padding: 2.6vmin 3vmin; }
body.pp-en-projection .headline-pre, body.pp-en-projection .headline-sub, body.pp-en-projection .pp-notes { font-size: 2.4vmin; }
body.pp-en-projection .headline-date { font-size: 7vmin; }
body.pp-en-projection .pp-barres { display: none; }
@media (prefers-reduced-motion: reduce) { .pp-carte.is-face { animation: none; } .pp-carte-choix { transition: none; } }

/* Minuteur du Planning Poker : réglage des trois phases, décompte sur le tapis et les téléphones */
.pp-minuteur { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pp-minuteur label { margin-top: 4px; }
.pp-chrono { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 4px 12px; margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--tint); }
.pp-chrono-phase { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pp-chrono-temps { justify-self: end; font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.pp-chrono-barre { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.pp-chrono-barre i { display: block; height: 100%; background: var(--mark); transition: width .25s linear; }
.pp-chrono.is-proche .pp-chrono-temps { color: var(--strong); }
.pp-chrono.is-depasse .pp-chrono-temps, .pp-chrono.is-depasse .pp-chrono-phase { color: var(--bad); }
.pp-chrono-actions { display: flex; gap: 6px; align-self: center; }
.pp-chrono-bouton {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%;
  background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .15s, background .15s;
}
.pp-chrono-bouton:hover { border-color: var(--text); }
.pp-chrono-bouton:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--glow); }
.pp-chrono-bouton svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pp-chrono-bouton svg .is-plein { fill: currentColor; stroke-width: 1.6; }
.pp-chrono.is-pause .pp-chrono-temps { color: var(--muted); }
.pp-chrono.is-pause .pp-chrono-barre i { background: var(--muted); }
.pp-carte-choix:disabled { cursor: default; opacity: .4; }
.pp-carte-choix:disabled:hover { border-color: var(--line-2); }
body.pp-en-projection .pp-chrono { margin-top: 2.4vmin; padding: 2vmin 3vmin; border-radius: 1.6vmin; }
body.pp-en-projection .pp-chrono-phase { font-size: 2vmin; }
body.pp-en-projection .pp-chrono-temps { font-size: 7vmin; }
body.pp-en-projection .pp-chrono-bouton { width: 5vmin; height: 5vmin; }
body.pp-en-projection .pp-chrono-bouton svg { width: 2.4vmin; height: 2.4vmin; }
body.pp-en-projection .pp-chrono-barre { height: .8vmin; }
@media (prefers-reduced-motion: reduce) { .pp-chrono-barre i { transition: none; } }
/* Carte choisie mais pas encore validée : dos estompé */
.pp-carte.is-dos.is-provisoire { opacity: .4; }
.pp-prochain { width: 100%; }
.pp-prochain label { margin-top: 0; }
body.pp-en-projection .pp-prochain label, body.pp-en-projection .pp-prochain input, body.pp-en-projection .pp-prochain .btn { font-size: 2.2vmin; }
.pp-prochain .roti-actions { margin-top: 14px; }

/* ==========================================================================
   Squad Health Check (site/health-check/) : reprend les composants du ROTI
   ========================================================================== */
.hc-pastille { display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--line); vertical-align: -2px; }
.hc-pastille.is-vert { background: var(--feu-vert); }
.hc-pastille.is-orange { background: var(--feu-orange); }
.hc-pastille.is-rouge { background: var(--feu-rouge); }
.hc-pastille.is-vide { background: none; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.hc-fleche { display: inline-block; flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; }

/* Vote du participant : une fiche par carte */
.hc-cartes { display: grid; gap: 12px; }
.hc-carte { margin: 0; padding: 14px 16px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); }
.hc-carte:has(input[name^="c-"]:checked) { border-color: var(--text); }
.hc-carte legend { float: left; width: 100%; display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; padding: 0; font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.hc-carte-n { font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.hc-exemples { clear: both; display: grid; gap: 4px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.4; color: var(--text-2); }
.hc-exemples li { display: flex; gap: 8px; align-items: baseline; }
.hc-exemples li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-1px); }
.hc-exemples .is-vert::before { background: var(--feu-vert); }
.hc-exemples .is-rouge::before { background: var(--feu-rouge); }
.hc-couleurs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hc-couleur {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 10px 6px;
  border: 1px solid var(--line-2); border-radius: 10px; font-size: 14px; font-weight: 650; cursor: pointer; touch-action: manipulation;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.hc-couleur:hover { border-color: var(--text); }
.hc-couleur input { position: absolute; opacity: 0; pointer-events: none; }
.hc-couleur:has(input:checked) { border-color: var(--text); background: var(--tint); box-shadow: inset 0 -3px 0 var(--c); }
.hc-couleur.is-vert { --c: var(--feu-vert); }
.hc-couleur.is-orange { --c: var(--feu-orange); }
.hc-couleur.is-rouge { --c: var(--feu-rouge); }
.hc-couleur:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--glow); }
.hc-avancement { align-self: center; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Animateur : choix des cartes de la séance */
.hc-selection-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 18px 0 8px; font-size: 13px; color: var(--muted); }
.hc-selection-tete .chips-label { color: var(--text); font-size: 14px; }
.hc-selection-nb { font-variant-numeric: tabular-nums; }
.hc-selection-tete .chips { margin-left: auto; gap: 14px; }
.hc-selection-tete .roti-lien-bouton { font-size: 13px; color: var(--text-2); }
.hc-selection { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 16px; margin: 0; padding: 0; list-style: none; }
.hc-selection li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.hc-selection-carte { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; margin: 0; font-weight: 500; cursor: pointer; }
.hc-selection-carte input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--text); }
.hc-selection-carte span { overflow-wrap: anywhere; line-height: 1.3; }
.hc-selection li:has(.hc-perso) { grid-column: 1 / -1; }   /* carte personnalisée : son titre, l'étiquette et le bouton sur une ligne */
.hc-perso { flex: none; padding: 1px 7px; border-radius: 99px; background: var(--tint); font-size: 11px; font-weight: 700; color: var(--strong); }
.hc-selection .roti-lien-bouton { flex: none; font-size: 12px; color: var(--muted); }
.hc-ajout { margin: 20px 0 0; }

/* Groupe inter-équipes, côté équipe : invitation à rejoindre, mention du partage */
.hc-invitation { margin: 0 0 22px; font-size: 15px; }
.hc-invitation .roti-copie { max-width: 560px; }
.hc-invitation select { flex: 1; min-width: 0; margin: 0; }
.hc-invitation .btn { flex: none; }
.hc-groupe { margin: -6px 0 18px; font-size: 14px; color: var(--text-2); }
.hc-groupe .roti-lien-bouton { margin-left: 4px; font-size: 13px; color: var(--muted); }
@media (max-width: 520px) { .hc-invitation .roti-copie { flex-wrap: wrap; } }
.hc-seance-cartes { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }

/* Résultats d'une séance : couleur de l'équipe et répartition des votes, carte par carte */
.hc-bilan { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: clamp(22px, 3vw, 28px) !important; color: var(--text) !important; }
.hc-bilan > span { display: inline-flex; align-items: center; gap: 10px; }
.hc-bilan .hc-pastille { width: .62em; height: .62em; }
.hc-resultats { list-style: none; margin: 18px 0 0; padding: 0; font-size: 14px; }
.hc-resultats li { display: grid; grid-template-columns: 14px minmax(0, 1fr) minmax(120px, 42%); gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.hc-resultats li:first-child { border-top: 0; }
.hc-resultats-titre { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.hc-tendance { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.hc-repartition { display: flex; gap: 2px; height: 20px; border-radius: 5px; overflow: hidden; }
.hc-repartition i { display: grid; place-items: center; min-width: 18px; font-style: normal; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; }
.hc-repartition .is-vert { background: var(--feu-vert); }
.hc-repartition .is-orange { background: var(--feu-orange); color: var(--ink); }
.hc-repartition .is-rouge { background: var(--feu-rouge); }
@media (prefers-color-scheme: dark) { .hc-repartition .is-vert, .hc-repartition .is-rouge { color: var(--ink); } }
body.roti-en-projection .is-close .hc-bilan { font-size: 5vmin !important; }
body.roti-en-projection .is-close .hc-resultats { font-size: 2.2vmin; }
body.roti-en-projection .is-close .hc-resultats li { grid-template-columns: 2.2vmin minmax(0, 1fr) 42%; gap: 2vmin; padding: .9vmin 0; }
body.roti-en-projection .is-close .hc-resultats .hc-pastille { width: 2.2vmin; height: 2.2vmin; }
body.roti-en-projection .is-close .hc-tendance { font-size: 1.8vmin; }
body.roti-en-projection .is-close .hc-fleche { width: 2vmin; height: 2vmin; }
body.roti-en-projection .is-close .hc-repartition { height: 3vmin; }
body.roti-en-projection .is-close .hc-repartition i { font-size: 1.6vmin; }

/* Historique : matrice cartes × séances, tendance de chaque carte */
.hc-matrice .data-table th[scope="row"] { font-weight: 600; white-space: normal; min-width: 130px; }
.hc-matrice .hc-col { text-align: center; padding-inline: 6px; }
.hc-matrice thead .hc-col { font-variant-numeric: tabular-nums; }
.hc-col .hc-pastille { width: 16px; height: 16px; }
.hc-absente { color: var(--line-2); }
.hc-retiree th, .hc-retiree td { opacity: .55; }
.hc-evolution, .hc-bilan-carte { white-space: nowrap; }
.hc-bilan-carte > span { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-2); }
.hc-courbe { display: inline-block; width: 64px; height: 20px; vertical-align: middle; overflow: visible; }
.hc-courbe polyline { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.hc-courbe circle { fill: var(--mark); }
.hc-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.hc-legende-item { display: inline-flex; align-items: center; gap: 6px; }
.hc-legende .hc-pastille { width: 10px; height: 10px; }
.hc-legende-texte { flex-basis: 100%; }
@media (max-width: 520px) { .hc-resultats li { grid-template-columns: 14px minmax(0, 1fr); } .hc-repartition { grid-column: 2; } }

/* ==========================================================================
   Squad Health Check inter-équipes (site/health-check/inter-equipes/) : reprend l'historique du Health Check
   ========================================================================== */
.hci-etapes { margin: 0 0 1em; padding-left: 1.3em; font-size: 15px; color: var(--text-2); }
.hci-etapes li + li { margin-top: 8px; }
.hci-etapes strong { color: var(--text); }
.hci-matrice thead .hci-equipe { min-width: 60px; max-width: 110px; white-space: normal; font-size: 12.5px; font-weight: 650; line-height: 1.25; letter-spacing: 0; text-transform: none; color: var(--text); }
.hci-cellule { display: inline-flex; align-items: center; gap: 3px; }
.hci-cellule .hc-fleche { width: 12px; height: 12px; color: var(--muted); }
.hci-matrice .hc-col { padding-inline: 4px; }
.hci-bilan { min-width: 104px; }
.hci-lecture { font-size: 13px; white-space: nowrap; color: var(--text-2); }
.hci-lecture strong { color: var(--strong); }
.hc-matrice tfoot tr:first-child > * { border-top: 1px solid var(--line-2); }
.hc-matrice tfoot tr:last-child > * { border-bottom: 0; }
.hc-matrice tfoot th, .hc-matrice tfoot td { padding-block: 8px; font-size: 12.5px; color: var(--muted); }
.hc-matrice tfoot th[scope="row"] { font-weight: 600; }
.hci-ancien { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 99px; background: var(--note-soft); font-size: 11px; font-weight: 700; line-height: 1.6; color: var(--strong); }
.hci-date .hci-ancien { display: block; width: fit-content; margin: 3px auto 0; }
.hci-attente { color: var(--muted); }
.hci-perso + .hci-perso { margin-top: 22px; }
.hci-perso h3 { margin: 0 0 4px; }
.hci-perso-date { font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
