/* Page Approche de la trame v2 (README §8.4). */

.grille-schema { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.poste-schema { display: flex; flex-direction: column; gap: 10px; min-height: 190px; padding: 26px; border-radius: var(--forme-l); }
.poste-schema-choisi { background: var(--lavis-ciel); }
.poste-schema-subi { background: var(--lavis-sauge); }
.poste-schema-type { font-size: 0.875rem; font-weight: 600; line-height: 1; color: var(--donnee); }
.poste-schema-subi .poste-schema-type { color: var(--lien); }
.poste-schema-nom { font-size: 1.5rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
.legende-schema { display: flex; justify-content: space-between; gap: 16px; padding: 6px 8px 0; font-size: 0.9375rem; font-weight: 500; line-height: 1.4; color: var(--texte-2); }

/* Quatre temps */
.grille-temps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.temps { display: flex; flex-direction: column; gap: 14px; padding: 28px 26px; background: var(--navy-2); border-radius: var(--forme-l); }
.temps-num { font-size: 2.25rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--accent-light); }
.temps-nom { font-size: 1.375rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.temps .courant { color: var(--muted); }
.jauge { margin-top: auto; height: 6px; border-radius: var(--forme-s); background: var(--rule); overflow: hidden; }
.jauge-remplie { display: block; height: 100%; background: var(--accent-light); border-radius: var(--forme-s); }
.jauge-100 { width: 100%; }
.jauge-70 { width: 70%; }
.jauge-38 { width: 38%; }
.jauge-4 { width: 4%; }
.legende-centre { align-self: center; text-align: center; font-size: 0.9375rem; line-height: 1.4; color: var(--muted); }

/* Quatre formats : onglets à gauche, panneau à droite. Sans script, les panneaux sont empilés. */
.onglets-zone { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.onglets { flex: 1 1 280px; display: flex; flex-direction: column; gap: 8px; }
.onglet { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; border: 0; border-radius: var(--forme-m); text-align: left; cursor: pointer; background: var(--fond-alt); color: var(--texte); transition: background-color 0.4s var(--ease), color 0.4s; }
.onglet[aria-selected="true"] { background: var(--navy); color: #fff; }
.onglet-nom { font-size: 1.3125rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.onglet-duree { font-size: 0.9375rem; line-height: 1.3; }
.panneaux { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.panneau-format { display: flex; flex-direction: column; gap: 22px; padding: clamp(28px, 4vw, 44px); background: var(--fond-alt); border-radius: var(--forme-l); }
.panneau-format-titre { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.04em; }
.panneau-format-duree { margin-top: -14px; font-size: 1rem; color: var(--texte-2); }
.js .panneau-format-duree { display: none; }
.livrables { display: flex; flex-direction: column; gap: 10px; }
.livrables ul { display: flex; flex-direction: column; gap: 10px; }
.livrables-titre { font-size: 0.9375rem; font-weight: 600; line-height: 1; color: var(--texte-2); }
.livrable { display: flex; gap: 12px; font-size: 1.0625rem; line-height: 1.5; }
.livrable::before { content: '\2713'; content: '\2713' / ''; color: var(--donnee); }
.quand { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.quand-oui, .quand-non { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--surface); border-radius: var(--forme-l); font-size: 1rem; line-height: 1.5; }
.quand-titre { font-size: 0.875rem; font-weight: 600; line-height: 1; color: var(--donnee); }
.quand-non { color: var(--texte-2); }
.quand-non .quand-titre { color: var(--texte-2); }

/* Choisir le bon format */
.liste-choix { display: flex; flex-direction: column; gap: 8px; }
.ligne-choix { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 28px; padding: 20px 26px; background: var(--surface); border-radius: var(--forme-m); }
.ligne-choix-situation { flex: 1 1 280px; font-size: 1.0625rem; line-height: 1.45; text-wrap: pretty; }
.ligne-choix-format { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; color: var(--lien); }
.chapeau-moyen { text-align: center; }

/* Conditions communes */
.grille-conditions { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.condition { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--fond-alt); border-radius: var(--forme-l); }
.condition-titre { font-size: 1.1875rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
.encadre-cout { display: flex; flex-wrap: wrap; gap: 20px 56px; align-items: center; padding: clamp(28px, 4vw, 44px); background: var(--lavis-ciel); border-radius: var(--forme-l); }
.encadre-cout-titre { flex: 1 1 260px; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; }
.encadre-cout p { flex: 2 1 360px; font-size: 1.0625rem; line-height: 1.55; color: var(--texte-2); text-wrap: pretty; }

/* Courbe du coût d'obtention de la qualité (déplacée de l'accueil) */
.schema { overflow: visible; }
.schema-repere { stroke: var(--filet); stroke-dasharray: 3 4; }
.schema-texte { font-size: 11px; fill: var(--texte-2); font-family: inherit; }
.schema-trace { fill: none; stroke: var(--donnee); stroke-width: 3; stroke-linecap: round; }
.schema-axe { stroke: var(--rule); stroke-width: 1; }
.schema-qualite .schema-axe { stroke: rgba(255, 255, 255, 0.3); }
.schema-defaillances { stroke: var(--accent-light); }
.schema-prevention { stroke: var(--bleu-clair); }
.schema-total { stroke: #fff; stroke-width: 3.5; }
.schema-point { transform-box: fill-box; transform-origin: center; }
.schema-point-total { fill: #fff; }
.courbe { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 640px; margin-inline: auto; }
.legende { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.8125rem; line-height: 1.3; color: var(--muted); }
.legende li { display: flex; align-items: center; gap: 6px; }
.legende-trait { width: 14px; height: 3px; border-radius: 2px; }
.legende-defaillances { background: var(--accent-light); }
.legende-prevention { background: var(--bleu-clair); }
.legende-total { background: #fff; }
.schema-qualite .schema-axe-texte { fill: var(--muted); font-size: 12px; }
