/* Produit par marque/outils/css.py à partir de la charte Ticous : ne pas modifier à la main. */
@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap; src: url("polices/Unbounded-600.ttf") format("truetype"); }
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap; src: url("polices/Unbounded-800.ttf") format("truetype"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-display: swap; src: url("polices/InstrumentSans-500.ttf") format("truetype"); }
@font-face { font-family: "Instrument Sans"; font-weight: 700; font-display: swap; src: url("polices/InstrumentSans-700.ttf") format("truetype"); }
@font-face { font-family: "Martian Mono"; font-weight: 500; font-display: swap; src: url("polices/MartianMono-500.ttf") format("truetype"); }
@font-face { font-family: "Martian Mono"; font-weight: 700; font-display: swap; src: url("polices/MartianMono-700.ttf") format("truetype"); }
:root { --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px; --radius-case: 6px; --radius-champ: 10px; --radius-tuile: 18px; --radius-panneau: 22px; --radius-pill: 999px; --trait-tuile: 2px; --trait-fin: 1px; --trait-focus: 2px; --dalle-largeur: 800px; --dalle-hauteur: 480px; --largeur-page: 1120px; --largeur-texte: 66ch; --font-chiffre: Unbounded, "Arial Black", "Segoe UI", sans-serif; --font-texte: "Instrument Sans", "Segoe UI", Arial, sans-serif; --font-mono: "Martian Mono", ui-monospace, Menlo, Consolas, monospace; --papier: #F4F4F1; --papier-relief: #FFFFFF; --papier-creux: #E9EAE5; --encre: #151515; --encre-douce: #5A5D5B; --sur-encre: #F4F4F1; --ligne: #7D817D; --ligne-douce: #D5D7D1; --jaune: #F2D34B; --sur-jaune: #151515; --jaune-texte: #7A6A12; --jaune-doux: #FBF1C4; --rouge: #E8656A; --sur-rouge: #151515; --rouge-texte: #9C484B; --rouge-doux: #F9E0DF; --bleu: #5F5A93; --sur-bleu: #FFFFFF; --bleu-texte: #3D3B5E; --bleu-doux: #E4E3EF; --vert: #5C8D6C; --sur-vert: #151515; --vert-texte: #3A5B46; --vert-doux: #DFEBE2; --lien: var(--bleu-texte); --focus: var(--bleu-texte); --marque-encre: #151515; --marque-papier: #F4F4F1; --marque-jaune: #F2D34B; --dalle-noir: #000000; --dalle-blanc: #FFFFFF; --dalle-jaune: #FFFF00; --dalle-rouge: #FF0000; --dalle-bleu: #0000FF; --dalle-vert: #00FF00; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root { --papier: #121313; --papier-relief: #1B1C1C; --papier-creux: #0C0D0D; --encre: #EDEDE9; --encre-douce: #A6A9A5; --sur-encre: #121313; --ligne: #6B6F6B; --ligne-douce: #2E302F; --jaune: #F2D34B; --sur-jaune: #151515; --jaune-texte: #F2D34B; --jaune-doux: #3A3416; --rouge: #E8656A; --sur-rouge: #151515; --rouge-texte: #F2898C; --rouge-doux: #3B2122; --bleu: #5F5A93; --sur-bleu: #FFFFFF; --bleu-texte: #ABA6E0; --bleu-doux: #24233A; --vert: #5C8D6C; --sur-vert: #151515; --vert-texte: #8CC29E; --vert-doux: #1C2B21; --lien: var(--bleu-texte); --focus: var(--bleu-texte); --marque-encre: #151515; --marque-papier: #F4F4F1; --marque-jaune: #F2D34B; --dalle-noir: #000000; --dalle-blanc: #FFFFFF; --dalle-jaune: #FFFF00; --dalle-rouge: #FF0000; --dalle-bleu: #0000FF; --dalle-vert: #00FF00; } }
/* Ticous : les classes des composants. Toutes les valeurs viennent des jetons (tokens.json).
   Portable tel quel dans cadre/web.css : aucune dépendance à React. */

.tc-racine, .tc-demo { font-family: var(--font-texte); color: var(--encre); background: var(--papier); }
.tc-demo { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); padding: var(--space-5); min-height: 100%; box-sizing: border-box; }
.tc-demo--colonne { flex-direction: column; align-items: stretch; }
.tc-demo--grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); align-items: start; }
html, body { margin: 0; background: var(--papier); }
* { box-sizing: border-box; }

/* ------------------------------------------------------------ Atomes */
.tc-logo { display: inline-block; line-height: 0; }
.tc-logo svg { display: block; height: 100%; width: auto; }

.tc-pastille { display: inline-block; flex: none; border-radius: var(--radius-pill); border: var(--trait-tuile) solid var(--encre); background: var(--jaune); width: 14px; height: 14px; }
.tc-pastille--s { width: 10px; height: 10px; }
.tc-pastille--l { width: 22px; height: 22px; border-width: 3px; }
.tc-pastille--jaune { background: var(--jaune); }
.tc-pastille--rouge { background: var(--rouge); }
.tc-pastille--bleu { background: var(--bleu); }
.tc-pastille--vert { background: var(--vert); }
.tc-pastille--encre { background: var(--encre); }
.tc-pastille--papier { background: var(--papier-relief); }

.tc-bouton { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); font-family: var(--font-texte); font-size: 16px; line-height: 1.2; font-weight: 700; padding: 11px 20px; min-height: 44px; border-radius: var(--radius-pill); border: var(--trait-tuile) solid var(--encre); cursor: pointer; text-decoration: none; }
.tc-bouton--primaire { background: var(--encre); color: var(--sur-encre); }
.tc-bouton--secondaire { background: var(--papier-relief); color: var(--encre); }
.tc-bouton--discret { background: transparent; color: var(--encre); border-color: transparent; text-decoration: underline; text-underline-offset: 3px; padding-inline: var(--space-2); }
.tc-bouton--grand { font-size: 20px; padding: 18px 28px; min-height: 60px; }
.tc-bouton--secondaire:hover { background: var(--papier-creux); }
.tc-bouton--primaire:hover { background: var(--encre-douce); border-color: var(--encre-douce); }
.tc-bouton:disabled, .tc-bouton[aria-disabled="true"] { background: var(--papier-creux); color: var(--encre-douce); border-color: var(--ligne); cursor: not-allowed; }

:where(.tc-bouton, .tc-lien, .tc-champ input, .tc-champ select, .tc-champ textarea, .tc-case input, .tc-charte input, .tc-carte, .tc-nav a):focus-visible { outline: var(--trait-focus) solid var(--focus); outline-offset: 2px; }

.tc-etiquette { font-family: var(--font-mono); font-size: 12px; line-height: 1.3; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--encre); }
.tc-etiquette--douce { color: var(--encre-douce); }

.tc-badge { display: inline-flex; align-items: center; gap: var(--space-1); font-family: var(--font-mono); font-size: 11px; line-height: 1.2; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-pill); border: var(--trait-fin) solid currentColor; white-space: nowrap; }
.tc-badge--gratuit { background: var(--vert-doux); color: var(--vert-texte); }
.tc-badge--atelier { background: var(--jaune-doux); color: var(--jaune-texte); }
.tc-badge--neutre { background: var(--papier-relief); color: var(--encre-douce); }

.tc-chiffre { font-family: var(--font-chiffre); font-weight: 800; letter-spacing: -0.01em; line-height: 1; font-variant-numeric: tabular-nums; }
.tc-chiffre--xl { font-size: 96px; line-height: 0.95; letter-spacing: -0.02em; }
.tc-chiffre--l { font-size: 48px; }
.tc-chiffre--m { font-size: 30px; }
.tc-chiffre__unite { font-family: var(--font-texte); font-weight: 700; font-size: 0.42em; letter-spacing: 0; margin-left: 0.25em; }

.tc-champ { display: grid; gap: var(--space-2); max-width: 420px; }
.tc-champ label { font-weight: 700; font-size: 16px; }
.tc-champ input, .tc-champ select, .tc-champ textarea { font: 500 17px/1.4 var(--font-texte); color: var(--encre); background: var(--papier-relief); border: var(--trait-fin) solid var(--ligne); border-radius: var(--radius-champ); padding: 10px 12px; min-height: 44px; width: 100%; }
.tc-champ input:hover, .tc-champ select:hover { border-color: var(--encre); }
.tc-champ__aide { font-size: 14px; line-height: 1.4; color: var(--encre-douce); }
.tc-champ--erreur input { border: var(--trait-tuile) solid var(--rouge-texte); }
.tc-champ__erreur { font-size: 14px; color: var(--rouge-texte); font-weight: 700; }

.tc-case { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 16px; cursor: pointer; min-height: 32px; }
.tc-case input { appearance: none; -webkit-appearance: none; margin: 0; width: 22px; height: 22px; border: var(--trait-tuile) solid var(--encre); border-radius: var(--radius-case); background: var(--papier-relief); display: grid; place-content: center; flex: none; }
.tc-case input:checked { background: var(--encre); }
.tc-case input:checked::after { content: ""; width: 10px; height: 10px; border-radius: 99px; background: var(--jaune); }

.tc-tuile { display: block; background: var(--papier-relief); color: var(--encre); border: var(--trait-tuile) solid var(--encre); border-radius: var(--radius-tuile); padding: var(--space-4) var(--space-4); }
.tc-tuile--jaune { background: var(--jaune); color: var(--sur-jaune); }
.tc-tuile--rouge { background: var(--rouge); color: var(--sur-rouge); }
.tc-tuile--bleu { background: var(--bleu); color: var(--sur-bleu); }
.tc-tuile--vert { background: var(--vert); color: var(--sur-vert); }
.tc-tuile--encre { background: var(--encre); color: var(--sur-encre); }
.tc-tuile--creux { background: var(--papier-creux); border-color: transparent; }
.tc-tuile--selectionnee { box-shadow: 0 0 0 2px var(--papier), 0 0 0 5px var(--encre); }

.tc-lien { color: var(--lien); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; font-weight: 700; }
.tc-lien:hover { text-decoration-thickness: 3px; }

/* ------------------------------------------------------------ Molécules */
.tc-pilule { display: inline-flex; align-items: center; gap: var(--space-2); padding: 5px 12px 5px 7px; border: var(--trait-tuile) solid var(--encre); border-radius: var(--radius-pill); background: var(--papier-relief); }

.tc-tuile-chiffre { display: grid; gap: var(--space-2); align-content: start; min-width: 0; }
.tc-tuile-chiffre__valeur { font-size: 20px; line-height: 1.25; font-weight: 700; font-variant-numeric: tabular-nums; }

.tc-vedette { display: grid; gap: var(--space-2); padding: var(--space-5); border-radius: var(--radius-panneau); }
.tc-vedette__legende { font-size: 16px; line-height: 1.4; font-weight: 500; }

.tc-etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.tc-etape { display: flex; align-items: center; gap: var(--space-3); font-size: 17px; line-height: 1.4; }
.tc-etape__numero { flex: none; width: 28px; height: 28px; border-radius: var(--radius-pill); background: var(--encre); color: var(--sur-encre); font: 700 14px/28px var(--font-mono); text-align: center; }
.tc-etape--faite .tc-etape__numero { background: var(--vert); color: var(--sur-vert); }
.tc-etape--faite { color: var(--encre-douce); }

.tc-etat { display: flex; align-items: baseline; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: var(--trait-fin) solid var(--ligne-douce); font-size: 16px; }
.tc-etat .tc-pastille { transform: translateY(1px); }
.tc-etat__libelle { font-weight: 700; min-width: 8em; }
.tc-etat__detail { color: var(--encre-douce); }
.tc-etat--alerte .tc-etat__libelle, .tc-etat--alerte .tc-etat__detail { color: var(--rouge-texte); }

.tc-charte { display: grid; gap: var(--space-2); padding: var(--space-2); border: var(--trait-tuile) solid var(--ligne-douce); border-radius: var(--radius-tuile); background: var(--papier-relief); cursor: pointer; font-weight: 700; font-size: 15px; }
.tc-charte img { width: 100%; aspect-ratio: 5 / 3; display: block; border-radius: var(--radius-champ); }
.tc-charte span { display: flex; align-items: center; gap: var(--space-2); padding: 0 var(--space-1) var(--space-1); }
.tc-charte input { appearance: none; -webkit-appearance: none; margin: 0; width: 18px; height: 18px; border: var(--trait-tuile) solid var(--encre); border-radius: var(--radius-pill); background: var(--papier-relief); }
.tc-charte input:checked { background: var(--jaune); box-shadow: inset 0 0 0 2px var(--papier-relief); }
.tc-charte:has(input:checked) { border-color: var(--encre); }

.tc-message { padding: var(--space-4) var(--space-5); border-radius: var(--radius-champ); border: var(--trait-fin) solid currentColor; display: grid; gap: var(--space-1); font-size: 16px; line-height: 1.5; max-width: 66ch; }
.tc-message__titre { font-weight: 700; }
.tc-message--info { background: var(--bleu-doux); color: var(--bleu-texte); }
.tc-message--bon { background: var(--vert-doux); color: var(--vert-texte); }
.tc-message--alerte { background: var(--rouge-doux); color: var(--rouge-texte); }
.tc-message--retenir { background: var(--jaune-doux); color: var(--encre); border-color: var(--jaune-texte); }
.tc-message p { margin: 0; color: var(--encre); }

.tc-apercu { margin: 0; display: grid; gap: var(--space-2); min-width: 0; }
.tc-apercu__cadre { background: var(--marque-encre); padding: 3.2%; border-radius: var(--radius-champ); }
.tc-apercu__cadre img { display: block; width: 100%; aspect-ratio: 5 / 3; object-fit: cover; border-radius: 3px; background: var(--marque-papier); }
.tc-apercu--nu .tc-apercu__cadre { background: transparent; padding: 0; }
.tc-apercu--nu .tc-apercu__cadre img { border-radius: var(--radius-champ); }
.tc-apercu figcaption { font-family: var(--font-mono); font-size: 12px; line-height: 1.4; color: var(--encre-douce); }

/* ------------------------------------------------------------ Organismes */
.tc-entete { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); padding-block: var(--space-4); padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); border-bottom: var(--trait-tuile) solid var(--encre); background: var(--papier); }
.tc-entete__marque { display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; color: var(--encre); margin-right: auto; }
.tc-entete__cadre { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--encre-douce); }
.tc-nav { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tc-nav a { white-space: nowrap; text-decoration: none; color: var(--encre); font-weight: 700; font-size: 15px; padding: 7px 14px; border-radius: var(--radius-pill); border: var(--trait-tuile) solid transparent; }
.tc-nav a:hover { border-color: var(--encre); }
.tc-nav a[aria-current="page"] { background: var(--encre); color: var(--sur-encre); }

.tc-carte { display: grid; grid-template-rows: auto 1fr; background: var(--papier-relief); color: var(--encre); border: var(--trait-tuile) solid var(--encre); border-radius: var(--radius-tuile); overflow: hidden; text-decoration: none; min-width: 0; }
.tc-carte__image { background: var(--papier-creux); padding: var(--space-3); border-bottom: var(--trait-tuile) solid var(--encre); }
.tc-carte__image img { display: block; width: 100%; aspect-ratio: 5 / 3; border-radius: 8px; }
.tc-carte__corps { display: grid; gap: var(--space-2); padding: var(--space-4); align-content: start; }
.tc-carte__tete { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); }
.tc-carte__titre { font-size: 18px; line-height: 1.25; font-weight: 700; margin: 0; }
.tc-carte__resume { font-size: 15px; line-height: 1.45; color: var(--encre-douce); margin: 0; }
.tc-carte__pied { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-mono); font-size: 12px; color: var(--encre-douce); }
.tc-carte--choisie { box-shadow: 0 0 0 2px var(--papier), 0 0 0 5px var(--jaune); }
.tc-carte:hover .tc-carte__titre { text-decoration: underline; text-underline-offset: 3px; }

.tc-panneau { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; background: var(--papier-relief); border: var(--trait-tuile) solid var(--encre); border-radius: var(--radius-panneau); padding: var(--space-5); }
.tc-panneau__infos { display: grid; gap: var(--space-3); min-width: 0; }
.tc-panneau__titre { font-size: 26px; line-height: 1.2; font-weight: 700; margin: 0; }
.tc-panneau__boutons { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
@media (max-width: 720px) { .tc-panneau { grid-template-columns: 1fr; gap: var(--space-4); padding: var(--space-4); } }

.tc-pied { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); align-items: center; padding-block: var(--space-6); padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); background: var(--papier-creux); border-top: var(--trait-tuile) solid var(--encre); font-size: 14px; color: var(--encre-douce); }
.tc-pied__texte { margin-right: auto; display: grid; gap: var(--space-1); }
.tc-pied nav { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.tc-pied a { color: var(--encre); }

/* ------------------------------------------------------------ Gabarits */
.tc-page { background: var(--papier); color: var(--encre); font-family: var(--font-texte); }
.tc-page__contenu { max-width: var(--largeur-page); margin: 0 auto; padding-block: var(--space-7); padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); display: grid; gap: var(--space-7); }
.tc-vitrine { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-7); align-items: center; }
.tc-vitrine h1 { font-family: var(--font-chiffre); font-weight: 600; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 var(--space-4); text-wrap: balance; }
.tc-vitrine p { font-size: 20px; line-height: 1.5; margin: 0 0 var(--space-5); max-width: 34ch; }
.tc-vitrine__boutons { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (max-width: 760px) { .tc-vitrine { grid-template-columns: 1fr; gap: var(--space-5); } }
.tc-rangee { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-3); }
.tc-grille-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-4); }
.tc-section { display: grid; gap: var(--space-4); }
.tc-section > h2 { font-size: 26px; line-height: 1.2; font-weight: 700; margin: 0; }
.tc-sommaire { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tc-sommaire a { text-decoration: none; color: var(--encre); font-size: 15px; font-weight: 700; padding: 6px 12px; border: var(--trait-fin) solid var(--ligne); border-radius: var(--radius-pill); background: var(--papier-relief); }
.tc-sommaire a span { font-family: var(--font-mono); font-weight: 500; font-size: 12px; color: var(--encre-douce); margin-left: 4px; }

.tc-dalle { width: 800px; height: 480px; max-width: 100%; aspect-ratio: 5 / 3; display: block; image-rendering: pixelated; background: var(--dalle-blanc); }
.tc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
