/* =====================================================================
   Ecodesign 5.0 — Schémas (composants réutilisables)
   v2 — 12/10/2026 : refonte visuelle (icônes, rail des étapes, crash test
   sur fond nuit, zone de fragilité du radar, calendrier défilant…)
   Requiert : charte-graphique/tokens.css (chargé avant ce fichier).
   Les blocs HTML sont dans site/_src/blocs/schemas/ ; la même source
   alimente le site et la galerie schemas/schemas.html.
   ===================================================================== */

/* ---------- Utilitaires partagés ---------- */
.js-only { display: none !important; }
.js .js-only { display: revert !important; }
.js .no-js-only { display: none !important; }

.sch { margin: 0; }
.sch svg { display: block; width: 100%; height: auto; }
.sch figcaption { margin-top: 16px; font-size: var(--fs-petit); color: var(--color-text-muted); max-width: 80ch; }
.sch-frame { position: relative; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-xl, 28px); padding: clamp(14px, 3vw, 48px); }
.sch-frame.is-dark {
  border: 0; color: #fff; isolation: isolate; overflow: hidden;
  background: radial-gradient(110% 80% at 90% 0%, #21557B 0%, var(--ed-marine) 40%, var(--ed-nuit, #0D2233) 100%);
}

/* Numéro biseauté (repris du D et du 5 du logo) */
.sch-num {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--cn, var(--ed-marine)); color: #fff;
  font: 800 1.25rem/1 var(--font-titre);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}
/* Couleurs des trois briques : l'ordre du dégradé signature.
   --c : barres, filets, rails ; --cn : fond des numéros (chiffre blanc ≥ 5:1) ;
   --pale : fonds d'encadrés. */
.b1 { --c: var(--ed-marine); --t: #fff; --cn: var(--ed-marine); --pale: var(--ed-marine-100); }
.b2 { --c: var(--ed-ciel); --t: var(--ed-marine); --cn: var(--ed-bleu); --pale: var(--ed-ciel-100); }
.b3 { --c: var(--ed-vert); --t: var(--ed-marine); --cn: var(--ed-vert-fonce); --pale: var(--ed-vert-100); }

/* Légende commune */
.sch-legend { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 20px 0 0; padding: 0; list-style: none; font-size: var(--fs-petit); color: var(--ed-encre); }
.sch-legend li { display: flex; align-items: center; gap: 10px; }
.is-dark .sch-legend { color: var(--ed-ciel-100); }
.sch-key { display: inline-block; flex: none; }
.sch-key.line { width: 28px; height: 0; border-top: 3px solid var(--k); border-radius: 2px; }
.sch-key.dash { width: 28px; height: 0; border-top: 2px dashed var(--k); }
.sch-key.sq { width: 16px; height: 16px; border-radius: 4px; background: var(--k); }
.sch-key.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--k); }
.sch-key.tri { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 13px solid #FDB022; }
.sch-key.zone { width: 18px; height: 16px; border-radius: 4px; background: #FEF3F2; border: 1.5px dashed #E8877C; }
.sch-key.arc { width: 22px; height: 12px; border-top: 4px solid var(--ed-marine); border-radius: 50% 50% 0 0; }
.sch-key.echelle { width: 22px; height: 16px; background: linear-gradient(var(--ed-gris) 0 0) 0 100% / 4px 6px no-repeat, linear-gradient(var(--ed-gris) 0 0) 9px 100% / 4px 11px no-repeat, linear-gradient(var(--ed-gris) 0 0) 18px 100% / 4px 16px no-repeat; }
.sch-key.recrut { width: 26px; height: 14px; border-radius: 4px; background: var(--ed-ciel-100); border: 1.5px solid var(--ed-bleu); }
.sch-key.recrut.next { background: repeating-linear-gradient(135deg, #fff 0 4px, var(--ed-ciel-100) 4px 8px); border-style: dashed; }

.sch-note { display: inline-block; margin-top: 14px; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--ed-surface); border: 1px solid var(--color-border); font: 600 0.75rem/1.5 var(--font-titre); color: var(--ed-gris); }
.sch-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
@media (max-width: 960px) { .sch-split { grid-template-columns: minmax(0, 1fr); } }
.sch-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; margin-top: 16px; }
.sch-table th, .sch-table td { padding: 9px 10px; border-bottom: 1px solid var(--color-border); text-align: left; }
.sch-table th { font: 700 0.8125rem/1.3 var(--font-titre); color: var(--ed-marine); }
.sch-table td.n { text-align: center; font-variant-numeric: tabular-nums; }
.sch-table tbody th { font: 400 0.9375rem/1.4 var(--font-texte); color: inherit; }
.sch-table tr.prio td, .sch-table tr.prio th { font-weight: 600; color: var(--ed-marine); background: var(--ed-marine-100); }
.sch-table caption { caption-side: top; text-align: left; font: 600 0.8125rem/1.4 var(--font-titre); color: var(--ed-gris); padding-bottom: 6px; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 18px; height: 18px; border-radius: 50%; background: var(--ed-vert-fonce) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* Mini-déroulé (version sans script du diagnostic) */
.sch-mini-flow { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.sch-mini-flow li { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.sch-mini-flow li + li::before { content: ""; position: absolute; left: 16px; top: -19px; width: 2px; height: 16px; background: var(--color-border); }
.sch-mini-flow .sch-num { width: 34px; height: 34px; font-size: 1rem; clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px); }
.sch-mini-flow li > div > b { display: block; font: 700 0.9375rem/1.35 var(--font-titre); color: var(--ed-marine); }
.sch-mini-flow li > div > span { font-size: 0.9375rem; color: var(--ed-encre); }

/* ============================================================ 1. Concept */
.sch-concept { container: concept / inline-size; }
.sch-concept .cc-svg { max-width: 640px; margin-inline: auto; }
.cc-fleche { display: none; }
/* Bloc large : la notion à gauche, ce qu'elle fait émerger à droite, pour voir tout le schéma d'un coup */
@container concept (min-width: 900px) {
  .sch-concept .sch-frame { display: grid; grid-template-columns: minmax(0, 1.15fr) 104px minmax(0, 0.85fr); align-items: center; }
  .sch-concept .cc-svg { width: 100%; max-width: 700px; margin: 0 0 -9% auto; }
  .sch-concept .cc-bottom { display: none; }
  .sch-concept .cc-fleche { display: flex; flex-direction: column; gap: 6px; padding: 0 10px 0 4px; text-align: center; font: 0.8125rem/1.2 'Source Sans 3', 'Segoe UI', sans-serif; color: #566574; }
  .cc-fleche i { position: relative; display: block; height: 2px; margin-right: 4px; background: var(--ed-marine); }
  .cc-fleche i::after { content: ""; position: absolute; right: -4px; top: 50%; width: 11px; height: 11px; background: var(--ed-marine); clip-path: polygon(0 0, 100% 50%, 0 100%); transform: translateY(-50%); }
  .sch-concept .cc-result { max-width: none; }
}
@media (max-width: 560px) {
  .sch-concept text[font-size="16"] { font-size: 18px; }
  .sch-concept .cc-top text[font-size="16"] { font-size: 17px; }
  .sch-concept g[font-size="15"] { font-size: 17.5px; }
  .sch-concept text[font-size="13.5"] { display: none; }
  .sch-concept .cc-top text[font-size="16"] { transform: translateY(9px); }
  .sch-concept text[font-size="13"] { font-size: 15.5px; }
  .sch-concept text[font-size="19"] { font-size: 21px; }
}
.cc-result { max-width: 560px; margin: 0 auto; border-radius: 20px; border: 1px solid var(--color-border); background: #fff; padding: 20px 22px 18px; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-m); }
.cc-result::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--ed-degrade); }
.cc-result-title { font: 700 1.0625rem/1.3 var(--font-titre); color: var(--ed-marine); }
.cc-result ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 12px 0 0; padding: 0; list-style: none; }
.cc-result li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; color: var(--ed-encre); }
.cc-result svg, .sch-chips svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--ed-vert-fonce); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sch-territoire { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--color-border); text-align: center; }
.sch-territoire p { font: 700 0.9375rem/1.4 var(--font-titre); color: var(--ed-marine); }
.sch-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.sch-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px 8px 11px; border-radius: var(--radius-pill); background: var(--ed-surface); border: 1px solid var(--color-border); font-size: var(--fs-petit); color: var(--ed-encre); }
.sch-chips svg { width: 18px; height: 18px; stroke: var(--ed-bleu); }
.sch-base { margin-top: 24px; border-radius: 18px; padding: 18px 24px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: center; text-align: center; color: #fff; background: linear-gradient(120deg, var(--ed-marine) 0%, var(--ed-nuit, #0D2233) 100%); position: relative; overflow: hidden; }
.sch-base::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--ed-degrade-sombre); }
.sch-base b { font: 700 1rem/1.3 var(--font-titre); }
.sch-base span { color: var(--ed-ciel-100); font-size: var(--fs-petit); }

/* ============================================================ 2. Méthode */
/* Cinq colonnes seulement si le schéma est assez large pour des cartes lisibles (≥ 1400 px) ;
   sinon, frise verticale (requêtes sur la largeur du schéma, pas de l'écran). */
.sch-methode { container: methode / inline-size; }
.mt-briques { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin-bottom: 22px; }
.mt-briques span { display: grid; gap: 2px; padding: 12px 16px; border-radius: 14px; background: var(--pale); font: 400 0.8125rem/1.3 var(--font-texte); color: var(--ed-gris); }
.mt-briques b { font: 700 0.875rem/1.3 var(--font-titre); color: var(--ed-marine); }
.mt-briques .b1 { grid-column: 1; }
.mt-briques .b2 { grid-column: 2 / span 2; }
.mt-briques .b3 { grid-column: 4 / span 2; }
.sch-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.sch-step { position: relative; display: grid; grid-template-rows: auto 1fr; justify-items: center; gap: 18px; }
.sch-step::before { content: ""; position: absolute; top: 18px; left: -12px; right: -12px; height: 6px; background: var(--c); border-radius: 3px; }
.sch-step:first-child::before { left: 50%; border-radius: 0 3px 3px 0; }
.sch-step:last-child::before { right: 50%; border-radius: 3px 0 0 3px; }
.sch-step > .sch-num { position: relative; z-index: 1; width: 42px; height: 42px; box-shadow: 0 0 0 5px #fff; }
.st-card { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--color-border); transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease); }
.sch-step:hover .st-card { transform: translateY(-4px); box-shadow: var(--shadow-l); border-color: var(--c); }
.st-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--pale); }
.st-ico svg { width: 28px; height: 28px; fill: none; stroke: var(--ed-marine); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.st-brique { display: none; font: 700 0.6875rem/1.3 var(--font-titre); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ed-gris); }
.sch-step h3 { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.22; }
.sch-step p { font-size: 0.9375rem; line-height: 1.5; color: var(--ed-encre); }
/* Lien vers l'outil qui sert à l'étape (auto-diagnostic, crash test, roue) : un vrai bouton,
   cadré de la couleur de la brique, flèche dans une pastille, posé juste au-dessus de « Ce qui en
   sort » (alignés d'une carte à l'autre) ; il se remplit au survol. Carte étroite : sans pictogramme. */
.st-card { container-type: inline-size; }
.st-lien {
  display: flex; align-items: center; gap: 10px; margin-top: auto; min-height: 46px; padding: 8px 8px 8px 12px; border-radius: 12px;
  border: 2px solid var(--cn); background: #fff; color: var(--ed-marine); font: 700 0.8125rem/1.25 var(--font-titre); text-decoration: none;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.st-lien svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--cn); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke 200ms var(--ease); }
.st-lien::after { content: "→"; content: "→" / ""; flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-left: auto; border-radius: 50%; background: var(--cn); color: #fff; font: 700 0.875rem/1 var(--font-texte); transition: transform 200ms var(--ease), background-color 200ms var(--ease), color 200ms var(--ease); }
.st-lien:hover, .st-lien:focus-visible { background: var(--cn); color: #fff; }
.st-lien:hover svg, .st-lien:focus-visible svg { stroke: #fff; }
.st-lien:hover::after, .st-lien:focus-visible::after { background: #fff; color: var(--cn); transform: translateX(2px); }
.st-lien + .sch-out { margin-top: 0; }
@container (max-width: 239px) { .st-lien svg { display: none; } }
@container (min-width: 255px) { .st-lien { font-size: 0.875rem; } }
.sch-out { margin-top: auto; padding: 12px 14px; border-radius: 12px; background: var(--pale); font-size: 0.8125rem; color: var(--ed-gris); }
.sch-out span { display: block; }
.sch-out b { display: block; margin-top: 2px; font: 700 0.9375rem/1.3 var(--font-titre); color: var(--ed-marine); }
@container methode (max-width: 1399px) {
  .mt-briques { display: none; }
  .sch-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sch-step { grid-template-columns: 48px 1fr; grid-template-rows: auto; justify-items: stretch; gap: 0 18px; padding-bottom: 18px; }
  .sch-step::before { top: 0; bottom: 0; left: 21px; right: auto; width: 6px; height: auto; border-radius: 0; }
  .sch-step:first-child::before { left: 21px; top: 20px; border-radius: 3px 3px 0 0; }
  .sch-step:last-child::before { right: auto; bottom: auto; height: 22px; border-radius: 0 0 3px 3px; }
  .sch-step:last-child { padding-bottom: 0; }
  .sch-step > .sch-num { margin-top: 2px; }
  .st-brique { display: block; }
  .st-card { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; row-gap: 8px; }
  .st-card > :not(.st-ico) { grid-column: 2; }
  .st-ico { grid-row: 1 / span 2; }
  .st-lien { justify-self: start; }
}
@container methode (min-width: 760px) and (max-width: 1399px) {
  .st-card { grid-template-columns: 52px minmax(0, 1fr) minmax(220px, 0.42fr); column-gap: clamp(16px, 2vw, 28px); }
  .st-ico { grid-row: 1 / span 4; }
  .st-card > .sch-out { grid-column: 3; grid-row: 1 / span 4; align-self: center; margin: 0; }
}
@media (max-width: 480px) { .st-card { grid-template-columns: minmax(0, 1fr); } .st-card > :not(.st-ico) { grid-column: 1; } .st-ico { grid-row: auto; width: 44px; height: 44px; } }

/* ============================================================ 3. Parcours */
.brique-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.js .brique-tabs { display: grid !important; }
.brique-tab {
  position: relative; display: flex; gap: 14px; align-items: center; text-align: left; cursor: pointer;
  background: #fff; border: 1.5px solid var(--color-border); border-radius: 18px; padding: 14px 16px;
  transition: border-color 250ms var(--ease), box-shadow 250ms var(--ease), background-color 250ms var(--ease);
}
.brique-tab:hover { border-color: var(--c); }
.brique-tab b { display: block; font: 700 1.0625rem/1.25 var(--font-titre); color: var(--ed-marine); }
.brique-tab small { display: block; font: 400 0.875rem/1.3 var(--font-texte); color: var(--ed-gris); }
.brique-tab[aria-selected="true"] { border-color: var(--c); background: var(--pale); box-shadow: inset 0 -4px 0 var(--c); }
@media (max-width: 700px) {
  .brique-tabs { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .brique-tab { padding: 10px 14px; }
  .brique-tab .sch-num { width: 34px; height: 34px; font-size: 1.0625rem; }
}
.sch-ruler { position: relative; display: grid; grid-template-columns: 160px repeat(12, minmax(0, 1fr)); grid-template-rows: auto repeat(3, 30px); row-gap: 8px; align-items: center; }
.sch-ruler .ru-head { font: 700 0.6875rem/1 var(--font-titre); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ed-gris); }
.sch-ruler .m { text-align: center; font: 700 0.8125rem/1 var(--font-titre); color: var(--ed-gris); }
/* Fin de l'échelle : « 12 mois », pour lire d'un coup d'œil la durée du parcours */
.sch-ruler .m-fin { position: relative; color: var(--ed-marine); }
.sch-ruler .m-unite { position: absolute; padding-left: 0.3em; white-space: nowrap; }
.sch-ruler .ru-grid { grid-row: 2 / 5; grid-column: 2 / -1; align-self: stretch; border-radius: 8px; background-image: linear-gradient(to right, var(--color-border) 1px, transparent 1px); background-size: calc(100% / 12) 100%; background-color: var(--ed-surface); }
.sch-ruler .lbl { grid-column: 1; display: flex; align-items: center; gap: 10px; font: 700 0.875rem/1.25 var(--font-titre); color: var(--ed-marine); padding-right: 12px; }
.sch-ruler .lbl-n { display: grid; place-items: center; width: 24px; height: 24px; flex: none; background: var(--cn); color: #fff; font: 800 0.8125rem/1 var(--font-titre); clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 6px); }
.sch-bar { height: 18px; border-radius: 9px; background: var(--c); }
.sch-ruler .sch-bar { position: relative; z-index: 1; margin-inline: 3px; height: 20px; border-radius: 10px; }
@media (max-width: 700px) {
  .sch-ruler { grid-template-columns: 34px repeat(12, minmax(0, 1fr)); }
  .sch-ruler .lbl { padding-right: 6px; }
  .sch-ruler .lbl-t { display: none; }
  .sch-ruler .m { font-size: 0.6875rem; }
  .sch-ruler .ru-head { font-size: 0.625rem; }
  .sch-ruler .m-unite { display: none; }
}
.sch-bricks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.sch-brick { border-radius: 22px; border: 1px solid var(--color-border); border-top: 6px solid var(--c); background: #fff; padding: clamp(18px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 18px; }
.sch-brick > .sch-brick-tete { display: flex; gap: 16px; align-items: center; }
.sch-brick h3 { font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.5rem); line-height: 1.2; }
.sch-brick .when { margin-top: 4px; font-size: 0.9375rem; color: var(--ed-gris); }
.sch-brick .lanes { display: grid; gap: 14px; }
.sch-lane { border-radius: 16px; padding: 16px 18px; }
.sch-lane h4 { margin: 0 0 10px; display: flex; align-items: center; gap: 10px; font: 700 0.75rem/1.3 var(--font-titre); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ed-bleu); }
.sch-lane h4 svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: #fff; flex: none; fill: none; stroke: var(--ed-marine); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sch-lane ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; font-size: 0.9375rem; line-height: 1.5; }
.sch-lane ul.ticks { padding-left: 0; }
.sch-lane.indiv { background: var(--ed-surface); }
.sch-lane.collectif { background: var(--ed-ciel-50); }
.sch-lane.livrables { background: var(--ed-vert-50); }
.who { display: inline-block; margin: 2px 2px 0 0; padding: 1px 9px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--ed-marine-200); font: 600 0.75rem/1.6 var(--font-titre); color: var(--ed-marine); white-space: nowrap; vertical-align: 1px; }
@media (max-width: 1024px) { .sch-bricks { grid-template-columns: minmax(0, 1fr); } }
/* Mode onglets (avec script) */
.sch-parcours.is-tabbed .sch-ruler .sch-bar { opacity: 0.25; transition: opacity 250ms var(--ease); cursor: pointer; }
.sch-parcours.is-tabbed[data-active="1"] .sch-ruler .sch-bar.b1,
.sch-parcours.is-tabbed[data-active="2"] .sch-ruler .sch-bar.b2,
.sch-parcours.is-tabbed[data-active="3"] .sch-ruler .sch-bar.b3 { opacity: 1; }
.sch-parcours.is-tabbed .sch-bricks { grid-template-columns: minmax(0, 1fr); }
.sch-parcours.is-tabbed .sch-brick[hidden] { display: none; }
.sch-parcours.is-tabbed .sch-brick .lanes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .sch-parcours.is-tabbed .sch-brick .lanes { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================ 5. Diagnostic de résilience */
.sch-diag .rd-disc { fill: var(--ed-marine-100); transition: fill 300ms var(--ease); }
.sch-diag .rd-ico { fill: none; stroke: var(--ed-marine); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke 300ms var(--ease); }
.sch-diag .rd-ax.is-hot .rd-disc { fill: #FEE4E2; }
.sch-diag .rd-ax.is-hot .rd-ico { stroke: var(--ed-erreur); }
.sch-diag .rl-main { font-size: 15px; font-weight: 700; fill: var(--ed-marine); }
.sch-diag .hot-tag { font-size: 12.5px; font-weight: 800; fill: var(--ed-erreur); transition: opacity 250ms var(--ease); }
.sch-diag .radar-shape { transition: all 350ms var(--ease); }
.sch-diag .radar-dot { transition: all 350ms var(--ease); }
.diag-chart { position: sticky; top: calc(var(--header-h, 76px) + 80px); }
@media (max-width: 960px) { .diag-chart { position: static; } }
/* Sur téléphone, les noms deviendraient illisibles : on garde les pastilles
   (agrandies), reprises avec leur nom dans les curseurs juste en dessous. */
@media (max-width: 560px) {
  .sch-diag .rl-main, .sch-diag .hot-tag { display: none; }
  .sch-diag .rd-ax { transform-box: fill-box; transform-origin: center; transform: scale(1.8); }
}
.radar-panel h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); }
.radar-panel > p { margin-top: 8px; font-size: var(--fs-petit); color: var(--ed-encre); }
.sliders { display: grid; gap: 22px; margin-top: 26px; }
.slider label { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; }
.sl-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ed-marine-100); transition: background-color 300ms var(--ease); }
.sl-ico svg { width: 18px; height: 18px; fill: none; stroke: var(--ed-marine); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke 300ms var(--ease); }
.slider.is-hot .sl-ico { background: #FEE4E2; }
.slider.is-hot .sl-ico svg { stroke: var(--ed-erreur); }
.sl-name { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; align-items: baseline; font: 700 0.9375rem/1.3 var(--font-titre); color: var(--ed-marine); }
.sl-name small { font: 400 0.8125rem/1.3 var(--font-texte); color: var(--color-text-muted); }
.slider input[type="range"] { width: calc(100% - 46px); margin: 10px 0 0 46px; accent-color: var(--ed-bleu); height: 28px; cursor: pointer; }
.slider output { display: block; margin-left: 46px; font: 700 0.8125rem/1.3 var(--font-titre); color: var(--ed-bleu); }
.slider output.is-hot { color: var(--ed-erreur); }
.radar-result { margin-top: 24px; }
.radar-actions { margin-top: 12px; }

/* ============================================================ 7. Calendrier */
.sch-cal-scroll { overflow-x: auto; scrollbar-width: thin; }
.sch-cal { position: relative; display: grid; grid-template-columns: 150px minmax(0, 2fr) repeat(24, minmax(0, 1fr)) minmax(0, 2.4fr); gap: 8px 0; align-items: center; min-width: 820px; }
.sch-cal .yr-band { align-self: stretch; border-radius: 12px; z-index: 0; }
.sch-cal .yr-band.y1 { background: var(--ed-surface); }
.sch-cal .yr-band.y2 { background: var(--ed-ciel-50); }
/* « Et après » : la suite de l'accompagnement, au-delà des 12 mois de parcours */
.sch-cal .yr-band.ya { margin-left: 6px; background: var(--ed-vert-50); border: 1.5px dashed var(--ed-vert-100); }
.sch-cal .yr.ya { margin-left: 6px; color: var(--ed-vert-fonce); }
.sch-suite { position: relative; display: flex; align-items: center; height: 22px; margin-inline: 2px; }
.sch-suite::before { content: ""; position: absolute; left: 0; right: 9px; top: 50%; border-top: 3px dashed var(--ed-vert); transform: translateY(-50%); }
.sch-suite::after { content: ""; position: absolute; right: 0; top: 50%; border-left: 11px solid var(--ed-vert); border-block: 7px solid transparent; transform: translateY(-50%); }
.sch-suite span { position: relative; z-index: 1; margin-left: 8px; padding: 0 8px; border-radius: 6px; background: var(--ed-ciel-50); font: 700 0.6875rem/22px var(--font-titre); color: var(--ed-vert-fonce); white-space: nowrap; }
.sch-key.suite { position: relative; width: 28px; height: 14px; }
.sch-key.suite::before { content: ""; position: absolute; left: 0; right: 7px; top: 50%; border-top: 3px dashed var(--ed-vert); transform: translateY(-50%); }
.sch-key.suite::after { content: ""; position: absolute; right: 0; top: 50%; border-left: 8px solid var(--ed-vert); border-block: 5px solid transparent; transform: translateY(-50%); }
.sch-cal > :not(.yr-band) { position: relative; z-index: 1; }
.sch-cal .m { text-align: center; font: 700 0.75rem/1 var(--font-titre); color: var(--ed-gris); padding-bottom: 4px; }
.sch-cal .yr { text-align: center; font: 800 0.8125rem/1 var(--font-titre); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ed-marine); padding: 12px 0 6px; }
.sch-cal .pre { text-align: center; font: 700 0.6875rem/1.2 var(--font-titre); color: var(--ed-gris); }
.sch-cal .lbl { font: 700 0.875rem/1.25 var(--font-titre); color: var(--ed-marine); padding-right: 10px; }
.sch-cal .lbl span { display: block; font: 400 0.8125rem/1.3 var(--font-texte); color: var(--ed-gris); }
.sch-cal .sep { grid-column: 1 / -1; height: 1px; background: var(--color-border); margin: 4px 0; }
.sch-cal .sch-bar { height: 20px; border-radius: 10px; margin-inline: 2px; transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.sch-cal .sch-bar:hover { transform: scaleY(1.3); box-shadow: var(--shadow-s); }
/* Barres « brique 2 » : contour bleu moyen, le bleu clair seul n'atteint pas 3:1 sur blanc (RGAA 3.3) */
.sch-bar.b2 { box-shadow: inset 0 0 0 1.5px var(--ed-bleu); }
.sch-cal .sch-bar.b2:hover { box-shadow: inset 0 0 0 1.5px var(--ed-bleu), var(--shadow-s); }
.sch-recrut { height: 22px; margin-inline: 2px; border-radius: 11px; background: var(--ed-ciel-100); border: 1.5px solid var(--ed-bleu); }
.sch-recrut.next { display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, #fff 0 5px, var(--ed-ciel-100) 5px 10px); border-style: dashed; }
.sch-recrut.next span { font: 700 0.6875rem/1 var(--font-titre); color: var(--ed-bleu); background: #fff; padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
/* Indication « faites défiler » sous un schéma trop large : calendrier (et crash test, voir outils.css) */
.crash-hint { display: none; margin: 8px 0 0; font-size: 0.8125rem; color: var(--color-text-muted); }
.is-dark .crash-hint { color: var(--ed-ciel-100); }
.cal-hint { display: none; }
@media (max-width: 860px) { .cal-hint { display: block; } }
@media (max-width: 700px) {
  .sch-cal { grid-template-columns: 96px minmax(0, 1.6fr) repeat(24, minmax(0, 1fr)) minmax(0, 2fr); min-width: 720px; }
  .sch-cal .lbl { font-size: 0.8125rem; }
  .sch-cal .lbl span { display: none; }
}

/* ============================================================ 8. Sélection */
.sel-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.sel-step { display: flex; flex-direction: column; gap: 14px; }
.sel-date {
  display: flex; align-items: center; min-height: 56px; padding: 10px 32px 10px 22px;
  font: 800 0.8125rem/1.25 var(--font-titre); letter-spacing: 0.06em; text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%);
}
.sel-step:first-child .sel-date { clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%); border-radius: 14px 0 0 14px; }
.sel-step:not(:first-child) .sel-date { padding-left: 34px; }
.sel-step.s1 .sel-date { background: var(--ed-marine-200); color: var(--ed-marine); }
.sel-step.s2 .sel-date { background: var(--ed-ciel-100); color: var(--ed-marine); }
.sel-step.s3 .sel-date { background: var(--ed-bleu); color: #fff; }
.sel-step.s4 .sel-date { background: var(--ed-marine); color: #fff; }
.sel-step .nw { white-space: nowrap; }
.sel-card { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--color-border); }
.sel-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ed-surface); }
.sel-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--ed-marine); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sel-card h3 { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); }
.sel-card p { font-size: 0.9375rem; line-height: 1.5; color: var(--ed-encre); }
.sel-step.s4 .sel-card { background: linear-gradient(150deg, var(--ed-marine) 0%, var(--ed-nuit, #0D2233) 100%); border-color: transparent; }
.sel-step.s4 .sel-card h3 { color: #fff; }
.sel-step.s4 .sel-card p { color: var(--ed-ciel-100); }
.sel-step.s4 .sel-ico { background: rgb(255 255 255 / 0.1); }
.sel-step.s4 .sel-ico svg { stroke: var(--ed-vert); }
.sch-factories { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 6px; }
.sch-factories svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1024px) { .sel-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 8px; } .sel-step .sel-date { clip-path: none; border-radius: 14px; padding: 10px 18px; } }
@media (max-width: 600px) { .sel-steps { grid-template-columns: minmax(0, 1fr); } }

.sch-gates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; }
.sch-gate { border-radius: 22px; padding: clamp(20px, 2.4vw, 34px); }
.sch-gate.entree { background: var(--ed-vert-50); }
.sch-gate.comite { background: var(--ed-ciel-50); }
.sch-gate h3 { margin: 0 0 16px; display: flex; align-items: center; gap: 12px; font: 700 0.8125rem/1.3 var(--font-titre); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ed-marine); }
.sch-gate h3 svg { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: #fff; flex: none; fill: none; stroke: var(--ed-marine); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sch-gate .ticks { gap: 12px; font-size: 1rem; }
/* Secteurs, en exemples sous « PME ou ETI manufacturière » */
.crit-secteurs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.ticks .crit-secteurs li { padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--color-border); font: 600 0.8125rem/1.2 var(--font-titre); color: var(--ed-marine); }
.ticks .crit-secteurs li::before { content: none; }
.crit { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; counter-reset: crit; }
.crit li { display: flex; gap: 12px; align-items: center; counter-increment: crit; font-size: 1rem; }
/* Le logo ED5.0, en petit, dans le texte du critère 4 */
.crit-logo { display: inline-block; width: auto; height: 1.15em; margin-left: 2px; vertical-align: -0.2em; }
.crit li::before { content: counter(crit); content: counter(crit) / ""; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--ed-marine); color: #fff; font: 800 0.875rem/1 var(--font-titre); }
/* Une promotion type : 4 petites entreprises, 2 PME, 1 ETI (points de taille croissante, décoratifs : l'information est dans le texte) */
.crit-promo { margin-top: 22px; padding: 18px 20px; border-radius: 16px; background: #fff; }
.crit-promo h4 { margin: 0 0 14px; font: 700 0.8125rem/1.3 var(--font-titre); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ed-marine); }
.crit-promo ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 20px; }
.crit-promo li { display: grid; align-content: start; gap: 6px; }
/* Sous-grille : quand un intitulé passe sur 2 lignes (« 4 petites entreprises »), les fourchettes restent alignées d'une colonne à l'autre */
@supports (grid-template-rows: subgrid) { .crit-promo li { grid-row: span 3; grid-template-rows: subgrid; } }
.crit-promo .pts { display: flex; align-items: flex-end; gap: 5px; height: 26px; }
.crit-promo .pts i { display: block; border-radius: 50%; }
.crit-promo .tpe i { width: 12px; height: 12px; background: var(--ed-vert); }
.crit-promo .pme i { width: 18px; height: 18px; background: var(--ed-bleu); }
.crit-promo .eti i { width: 26px; height: 26px; background: var(--ed-marine); }
.crit-promo b { font: 800 1.25rem/1.1 var(--font-titre); color: var(--ed-marine); }
.crit-promo small { font-size: 0.9375rem; line-height: 1.35; color: var(--ed-gris); }
@media (max-width: 860px) { .sch-gates { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .crit { grid-template-columns: minmax(0, 1fr); } .crit-promo ul { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================ 9. Vos 20 jours */
.sch-days-row + .sch-days-row { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--color-border); }
.sch-days-title { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 700 0.75rem/1.3 var(--font-titre); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ed-bleu); }
.sch-days { display: flex; flex-wrap: wrap; gap: 26px 32px; align-items: flex-start; margin: 0; padding: 0; list-style: none; }
.sch-dgroup { display: flex; flex-direction: column; gap: 12px; max-width: 210px; border-radius: 14px; padding: 10px; margin: -10px; transition: opacity 250ms var(--ease), background-color 250ms var(--ease); cursor: default; }
.sch-units { display: flex; flex-wrap: wrap; gap: 6px; }
.sch-unit { width: 32px; height: 32px; border-radius: 8px; background: var(--ed-marine); box-shadow: inset 0 6px 0 rgb(255 255 255 / 0.16); }
.sch-unit.coll { border-radius: 50%; background: var(--ed-vert-fonce); box-shadow: none; }
.dg-txt b { display: block; font: 700 1rem/1.3 var(--font-titre); color: var(--ed-marine); }
.dg-txt span { display: block; margin-top: 2px; font-size: 0.875rem; line-height: 1.4; color: var(--ed-encre); }
.sch-days:hover .sch-dgroup, .sch-days:focus-within .sch-dgroup { opacity: 0.38; }
.sch-days .sch-dgroup:hover, .sch-days .sch-dgroup:focus { opacity: 1; background: var(--ed-surface); outline: none; }
.sch-days .sch-dgroup:focus-visible { box-shadow: 0 0 0 3px var(--color-focus); }
.sch-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--color-border); }
.sch-total .tot { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.sch-total .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tot-n { font: 800 clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem)/1 var(--font-titre); letter-spacing: -0.03em; color: var(--ed-marine); }
.tot-n.big { color: var(--ed-vert-fonce); font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem); }
.tot-l { font: 600 0.9375rem/1.3 var(--font-titre); color: var(--ed-gris); margin-right: 6px; }
.tot-op { font: 300 1.75rem/1 var(--font-titre); color: var(--ed-gris-champ); margin-right: 6px; }

/* ============================================================ Apparitions (avec script) */
.sch-concept svg g { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .anim .sch-concept .cc-left, .anim .sch-concept .cc-right { transition: transform 1100ms var(--ease), opacity 800ms var(--ease); }
  .anim .sch-concept .cc-lens { transition: opacity 600ms var(--ease) 700ms, transform 600ms var(--ease) 700ms; }
  .anim .sch-concept .cc-top, .anim .sch-concept .cc-bottom { transition: opacity 600ms var(--ease) 1000ms, transform 600ms var(--ease) 1000ms; }
  .anim .sch-concept .cc-result, .anim .sch-concept .sch-territoire, .anim .sch-concept .sch-base { transition: opacity 700ms var(--ease) 1200ms, transform 700ms var(--ease) 1200ms; }
  .anim .sch-concept:not(.is-visible) .cc-left { transform: translateX(-52px); opacity: 0.25; }
  .anim .sch-concept:not(.is-visible) .cc-right { transform: translateX(52px); opacity: 0.25; }
  .anim .sch-concept:not(.is-visible) .cc-lens { opacity: 0; transform: scale(0.6); }
  .anim .sch-concept:not(.is-visible) .cc-top { opacity: 0; transform: translateY(-12px); }
  .anim .sch-concept:not(.is-visible) .cc-bottom { opacity: 0; transform: translateY(12px); }
  .anim .sch-concept:not(.is-visible) .cc-result, .anim .sch-concept:not(.is-visible) .sch-territoire, .anim .sch-concept:not(.is-visible) .sch-base { opacity: 0; transform: translateY(16px); }

  .anim .sch-methode .sch-step { transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
  .anim .sch-methode .sch-step:nth-child(2) { transition-delay: 100ms; }
  .anim .sch-methode .sch-step:nth-child(3) { transition-delay: 200ms; }
  .anim .sch-methode .sch-step:nth-child(4) { transition-delay: 300ms; }
  .anim .sch-methode .sch-step:nth-child(5) { transition-delay: 400ms; }
  .anim .sch-methode:not(.is-visible) .sch-step { opacity: 0; transform: translateY(20px); }

  .anim .sch-jours .sch-unit { transition: transform 450ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 300ms var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
  .anim .sch-jours:not(.is-visible) .sch-unit { transform: scale(0.3); opacity: 0; }

  .anim .sch-selection .sel-step { transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
  .anim .sch-selection .sel-step:nth-child(2) { transition-delay: 120ms; }
  .anim .sch-selection .sel-step:nth-child(3) { transition-delay: 240ms; }
  .anim .sch-selection .sel-step:nth-child(4) { transition-delay: 360ms; }
  .anim .sch-selection:not(.is-visible) .sel-step { opacity: 0; transform: translateX(-16px); }
}
@media print {
  .anim .sch-concept g, .anim .sch-concept .cc-result, .anim .sch-concept .sch-territoire, .anim .sch-concept .sch-base,
  .anim .sch-methode .sch-step, .anim .sch-jours .sch-unit, .anim .sch-selection .sel-step { opacity: 1 !important; transform: none !important; }
  .sch-frame.is-dark { background: #fff !important; color: #000 !important; }
}
