/* TASC CRM. Adaptation de Guarana.cloud v68, voir docs/CHARTE-GRAPHIQUE.md. */
@font-face {
  font-family: TascInstrument;
  src: url("fonts/instrument-sans-latin-wght-normal.fa41c43a3d8e.woff2") format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: TascBricolage;
  src: url("fonts/bricolage-grotesque-latin-wght-normal.ada540c0e24a.woff2") format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: TascArchivo;
  src: url("fonts/archivo-black-latin-400-normal.9be230eb35ea.woff2") format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --brand-paper: #fff;
  --brand-surface: #f4f4f4;
  --brand-ink: #0a0a0a;
  --brand-text: #1a1a1a;
  --brand-secondary: #525252;
  --brand-muted: #5c5c5c;
  --brand-line: #d4d4d4;
  --brand-create: #c8ff00;
  --brand-pink: #ffb8cb;
  --brand-blue: #dbeafe;
  --brand-green: #dcfce7;
  --brand-yellow: #fef3c7;
  --brand-gold: #f3c75f;
  --brand-gold-edge: #9c6418;
  --bg: var(--brand-paper);
  --surface: var(--brand-paper);
  --surface-2: var(--brand-surface);
  --ink: var(--brand-ink);
  --muted: var(--brand-secondary);
  --line: var(--brand-line);
  --accent: var(--brand-ink);
  --accent-soft: var(--brand-surface);
  --accent-line: var(--brand-ink);
  /* Alias des composants historiques, sans couleur claire pour les liens. */
  --fond: var(--bg);
  --surface-douce: var(--brand-surface);
  --texte: var(--brand-text);
  --texte-doux: var(--brand-secondary);
  --texte-leger: var(--brand-muted);
  --trait: var(--brand-line);
  --trait-fort: var(--brand-ink);
  --accent-fond: var(--brand-green);
  --soprano: var(--brand-ink);
  --soprano-fond: var(--brand-blue);
  --guarana: var(--brand-ink);
  --guarana-fond: var(--brand-create);
  --builders: var(--brand-ink);
  --builders-fond: var(--brand-pink);
  --succes: #166534;
  --succes-fond: var(--brand-green);
  --attention: #92400e;
  --attention-fond: var(--brand-yellow);
  --danger: #991b1b;
  --danger-fond: #fee2e2;
  --rayon: 6px;
  --rayon-carte: 6px;
}
body { font: 400 15px/1.5 TascInstrument, Arial, sans-serif; background: var(--bg); color: var(--ink); }
button, input, select, textarea { font: inherit; }
h1 { font: 400 32px/1.12 TascArchivo, Arial, sans-serif; font-synthesis: none; letter-spacing: -.035em; text-transform: uppercase; }
h2, h3 { font-family: TascBricolage, Arial, sans-serif; font-weight: 650; letter-spacing: -.03em; line-height: 1.2; }
h2 { font-size: 23px; }
h3 { font-size: 19px; }
h1, h2, h3, p, dd { overflow-wrap: anywhere; }
p { margin: 0 0 12px; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
.content p a:not(.bouton), .content dd a { text-decoration: underline; }
.petit { font-size: 12px; }
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px;
}
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 20; padding: 12px; background: var(--brand-create); border: 1px solid var(--ink); }
.skip-link:focus { top: 12px; }
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 26px 16px 18px; background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 32px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.mark { width: 40px; height: 40px; flex: 0 0 40px; display: block; padding: 5px; border: 1px solid var(--brand-gold-edge); border-radius: 6px; background: var(--brand-ink); object-fit: contain; }
.name { display: block; font: 400 21px/1.15 TascArchivo, Arial, sans-serif; letter-spacing: -.05em; white-space: nowrap; }
.brand small { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; }
.nav { display: flex; flex-direction: column; gap: 5px; }
.nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 11px 12px; border: 1px solid transparent; border-radius: 6px; color: var(--ink); font-size: 14px; font-weight: 500; }
.nav a:hover { border-color: var(--line); background: var(--surface-2); text-decoration: none; }
.nav a[aria-current='page'] { background: var(--ink); border-color: var(--ink); color: white; }
.nav a[aria-current='page'] .icone { color: var(--brand-create); }
.nav .projet-actif { border-color: var(--ink); }
.nav-label { display: flex; justify-content: space-between; padding: 26px 12px 8px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.project-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 2px; border: 1px solid var(--ink); background: var(--brand-create); }
.project-dot.hokkaido { background: var(--brand-blue); }
.project-dot.builders { background: var(--brand-pink); }
.foot { margin-top: auto; padding: 20px 8px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 7px; font-size: 12px; }
.foot strong { font-size: 14px; overflow-wrap: anywhere; }
.foot .lien { color: var(--muted); }
.main { min-width: 0; }
.top { display: flex; align-items: center; gap: 10px; min-height: 66px; padding: 16px 30px; border-bottom: 1px solid var(--line); font-size: 12px; }
.top-right { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.content { min-width: 0; padding: 28px 30px 48px; }
.content.etroite { max-width: 900px; margin: auto; }
.entete { margin-bottom: 24px; gap: 16px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin: 0 0 9px; color: var(--muted); }
.pipeline-heading { position: relative; min-height: 154px; padding: 28px 36px; background: var(--ink); color: var(--surface); border-radius: 6px; }
.pipeline-heading::before { content: ''; position: absolute; left: 0; top: 50%; width: 28px; height: 30.435px; transform: translateY(-50%); background: var(--bg); mask: url("card-wave.9d85e65bb4c9.svg") center/100% 100% no-repeat; pointer-events: none; }
.pipeline-heading h1 { font-size: clamp(28px, 2.6vw, 40px); text-transform: uppercase; }
.pipeline-heading .eyebrow { color: var(--brand-create); }
.pipeline-heading .heading-note { margin: 9px 0 0; color: var(--line); font-size: 14px; }
.pipeline-heading :focus-visible { outline-color: var(--brand-create); }
.bouton { justify-content: center; min-height: 40px; padding: 9px 17px; border-radius: 100px; border: 1px solid var(--ink); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 650; line-height: 1.3; }
.bouton:hover { background: var(--ink); color: var(--surface); text-decoration: none; }
.bouton.principal { background: var(--brand-create); color: var(--ink); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.bouton.principal:hover { background: var(--ink); color: var(--brand-create); }
.pipeline-heading .bouton.principal:hover { border-color: var(--brand-create); box-shadow: 2px 2px 0 var(--brand-create); }
.bouton.danger { color: var(--danger); border-color: var(--danger); }
.bouton.danger:hover { background: var(--danger); color: white; }
.bouton.petit { min-height: 34px; padding: 6px 12px; }
.bouton.large { min-height: 48px; }
.bouton:disabled { opacity: .55; cursor: not-allowed; }
.carte { padding: 22px; border-color: var(--line); border-radius: 6px; }
.carte h2 { margin-bottom: 16px; }
.stat-grid .carte + .carte, .detail-grid .carte + .carte, .formulaire .carte + .carte { margin-top: 0; }
.project-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.project-tabs > a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }
.project-tabs > a:hover { border-color: var(--ink); text-decoration: none; }
.project-tabs > a[aria-current] { border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--brand-create); }
.project-tabs .project-label { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.project-tabs strong { font-family: TascBricolage, Arial, sans-serif; font-size: 17px; font-weight: 700; }
.project-tabs small { font-size: 11px; color: var(--muted); }
.project-tabs .project-dot { width: 28px; height: 28px; flex-basis: 28px; border-radius: 6px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat-grid .carte { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; background: var(--surface-2); border: 0; border-radius: 0; }
.stat-grid .carte:nth-child(2) { background: var(--brand-green); }
.stat-grid .carte:nth-child(3) { background: var(--brand-pink); }
.stat-grid .carte:nth-child(4) { background: var(--brand-blue); }
.stat-grid span { color: var(--ink); font-size: 12px; }
.stat-grid strong { font: 650 30px/1.15 TascBricolage, Arial, sans-serif; letter-spacing: -.04em; overflow-wrap: anywhere; }
.filters { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 10px; }
.filters > input { max-width: 360px; }
.filters > select { max-width: 250px; }
.search-inline { display: flex; flex: 1; gap: 8px; max-width: 520px; }
.search-inline input { min-width: 0; flex: 1; }
.help-pipeline { margin: 0 0 20px; }
.kanban { display: flex; align-items: flex-start; gap: 14px; overflow-x: auto; min-height: 42vh; padding: 2px 2px 18px; scrollbar-color: var(--brand-line) var(--brand-surface); }
.col { flex: 0 0 260px; min-width: 0; padding: 0 10px 12px; background: var(--surface-2); border-radius: 6px; }
.col-h { position: relative; display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 14px 2px; }
.col-h h2 { flex: 1; margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.count { min-width: 24px; height: 24px; display: grid; place-items: center; background: white; border: 1px solid var(--line); border-radius: 50%; font-size: 11px; font-weight: 650; }
.col-signed { background: var(--brand-green); }
.col-signed .col-h::before { content: '✓'; font-size: 14px; }
.col-body { display: flex; flex-direction: column; gap: 12px; }
.kcard { display: flex; flex-direction: column; gap: 10px; padding: 16px 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; }
.kcard:hover, .kcard:focus-within { border-color: var(--ink); }
.kcard + .kcard { margin-top: 12px; }
.col-body .kcard + .kcard { margin-top: 0; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-name { font-family: TascBricolage, Arial, sans-serif; font-size: 18px; font-weight: 650; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.card-name:hover { text-decoration-color: var(--ink); background: linear-gradient(transparent 80%, var(--brand-create) 80%); }
.kcard p { margin: 0; }
.badge { padding: 3px 8px; border: 1px solid var(--line); border-radius: 100px; background: var(--brand-blue); color: var(--ink); font-size: 10px; font-weight: 600; }
.badge.neutral { background: var(--surface-2); }
.badge.success { background: var(--brand-green); border-color: #15803d; color: #166534; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; margin-top: 3px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.avatar { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; background: var(--ink); color: white; border-radius: 50%; font-size: 10px; }
.column-empty { padding: 26px 12px; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); font-size: 12px; text-align: center; }
.column-menu { position: relative; }
.column-menu summary { display: grid; place-items: center; width: 28px; height: 32px; border-radius: 6px; cursor: pointer; list-style: none; font-weight: 700; }
.column-menu summary::-webkit-details-marker { display: none; }
.column-menu summary:hover { background: var(--line); }
.column-menu[open] { position: absolute; z-index: 3; top: 9px; right: 0; width: 238px; padding: 9px; background: white; border: 1px solid var(--ink); border-radius: 6px; }
.column-menu[open] summary { margin-left: auto; }
.column-menu form { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.add-column { border: 1px dashed var(--ink); border-radius: 100px; color: var(--ink); font-size: 13px; font-weight: 600; }
summary { cursor: pointer; }
.top-add { position: relative; flex: none; margin-left: auto; padding: 10px 16px; }
.top-add[open] .formulaire { position: absolute; z-index: 4; right: 0; top: 38px; width: 260px; padding: 18px; background: white; border: 1px solid var(--ink); border-radius: 6px; font-weight: 400; }
.column-menu input, .add-column input { width: 100%; padding: 9px 10px; border: 1px solid var(--ink); border-radius: 6px; }
.formulaire { gap: 18px; }
.form-grid, .detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.detail-grid { margin-top: 20px; align-items: start; }
.detail-grid .carte { min-width: 0; }
.wide { grid-column: 1 / -1; }
.pied { flex-wrap: wrap; }
.champ { gap: 6px; min-width: 0; }
.champ > span, .champ > label, .champ > label[for] { color: var(--ink); font-size: 13px; font-weight: 600; }
.champ input, .champ select, .champ textarea, .filters input, .filters select { min-width: 0; border-color: var(--ink); padding: 10px 12px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.champ input[type='checkbox'] { accent-color: var(--ink); }
.enrichment { border-color: var(--ink); background: var(--brand-blue); }
.enrichment h2 { margin-bottom: 10px; }
.enrichment .bouton { margin-top: 12px; }
.signature { padding-top: 16px; margin-top: 20px; border-top: 1px solid var(--ink); }
.signature .champ { margin-top: 14px; }
.suggestion { padding: 14px; background: var(--brand-green); color: var(--ink); border-radius: 6px; font-size: 14px; }
.errorlist { color: var(--danger); }
.table-wrap { overflow-x: auto; }
.table th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table td { padding: 16px 12px; }
.table td a { font-weight: 600; }
.table td a:hover { text-decoration-thickness: 2px; }
.prochaine { background: var(--brand-green); color: var(--ink); }
.prochaine.en-retard { background: var(--danger-fond); color: var(--danger); }
.onglets { background: var(--brand-surface); }
.onglets a[aria-current='page'] { background: var(--ink); color: white; box-shadow: none; }
.content .d-colonne { background: var(--brand-surface); }
/* Connexion : même duo noir / blanc que les héros Guarana, adapté au formulaire. */
body.connexion { display: block; min-height: 100vh; padding: 24px; }
.connexion-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: calc(100vh - 48px); gap: 24px; }
.connexion-intro { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 42px; border-radius: 6px; background: var(--ink); color: white; }
.connexion-intro .brand { padding: 0; color: white; }
.connexion-intro .brand small { color: var(--line); }
.connexion-intro h2 { font: 400 clamp(34px, 4vw, 60px)/1.08 TascArchivo, Arial, sans-serif; font-synthesis: none; letter-spacing: -.04em; text-transform: uppercase; max-width: 600px; margin-bottom: 20px; }
/* Symbole décoratif en volume, partagé avec le logo, sans JavaScript. */
.connexion-money { min-width: 0; }
.money-stage { display: grid; place-items: center; width: 100%; height: clamp(220px, 35vh, 360px); margin-block: 8px 18px; perspective: 1000px; pointer-events: none; }
.money-spinner { position: relative; width: 68%; height: 100%; transform-style: preserve-3d; transform: rotateY(-14deg); animation: tasc-dollar-turn 6s linear infinite; }
.money-layer, .money-face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.money-layer { transform: translateZ(calc((var(--slice) - 4) * 2px)); filter: brightness(.62) saturate(1.15); }
.money-face { backface-visibility: hidden; }
.money-face-front { transform: translateZ(9px); }
/* Le revers d’un S est miroir : garder son contour aligné avec les tranches. */
.money-face-back { transform: rotateY(180deg) translateZ(9px) scaleX(-1); }
@keyframes tasc-dollar-turn { from { transform: rotateY(-14deg); } to { transform: rotateY(346deg); } }
.connexion-projets { display: flex; flex-wrap: wrap; gap: 8px; }
.connexion-projets span { padding: 7px 13px; border-radius: 100px; border: 1px solid var(--line); font-size: 13px; }
.connexion-projets span:first-child { color: var(--ink); background: var(--brand-create); border-color: var(--brand-create); }
.connexion-cadre { display: grid; place-items: center; padding: 32px; }
.connexion-carte { width: 100%; max-width: 410px; padding: 0; border: 0; }
.connexion-carte h1 { margin-bottom: 12px; }
.connexion-carte > p { margin-bottom: 28px; }
.connexion-carte .bouton { margin-top: 8px; }
@media (max-width: 1100px) {
  .app { grid-template-columns: 210px minmax(0, 1fr); }
  .side { padding-inline: 12px; }
  .brand { gap: 8px; padding-inline: 4px; }
  .name { font-size: 19px; }
  .nav a { padding-inline: 9px; font-size: 13px; }
  .content { padding-inline: 22px; }
  .project-tabs > a { padding: 12px; gap: 8px; }
  .project-tabs .project-dot { width: 18px; height: 18px; flex-basis: 18px; border-radius: 3px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid .carte { padding: 16px; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; padding: 16px; overflow: visible; gap: 12px; }
  .brand { padding-bottom: 6px; }
  .name { font-size: 21px; }
  .nav { flex-direction: row; flex-wrap: wrap; gap: 5px; }
  .nav a { min-height: 38px; padding: 8px 10px; font-size: 13px; }
  .nav-label, .nav a[href^='/pipeline/'], .foot > span, .foot > strong { display: none; }
  .foot { margin: 0; padding: 12px 0 0; flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
  .top { min-height: 48px; padding: 12px 20px; }
  .content { padding: 20px; }
  .pipeline-heading { min-height: 140px; padding: 24px 30px; }
  .pipeline-heading h1 { font-size: 30px; }
  .project-tabs > a { padding: 12px; }
  .project-tabs small { display: none; }
  .form-grid, .detail-grid { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .connexion-layout { grid-template-columns: minmax(0, 1fr); min-height: auto; gap: 16px; }
  .connexion-intro { padding: 30px; gap: 32px; }
  .connexion-intro h2 { font-size: 36px; margin-bottom: 12px; }
  .connexion-cadre { padding: 32px 20px; }
}
@media (max-width: 540px) {
  h1 { font-size: 27px; }
  h2 { font-size: 22px; }
  .side { padding: 14px; }
  .nav a { font-size: 12px; gap: 6px; }
  .nav .icone { width: 14px; height: 14px; }
  .top { padding-inline: 14px; }
  .top-right { display: none; }
  .content { padding: 16px 14px 32px; }
  .pipeline-heading { padding: 22px 26px; gap: 20px; }
  .pipeline-heading h1 { font-size: 28px; }
  .pipeline-heading::before { width: 20px; height: 21.739px; }
  .pipeline-heading .heading-note { font-size: 13px; }
  .entete .actions { margin-left: 0; }
  .project-tabs { gap: 6px; margin-bottom: 16px; }
  .project-tabs > a { flex-direction: column; gap: 7px; padding: 12px 4px; text-align: center; }
  .project-tabs strong { font-size: 14px; }
  .project-tabs .project-dot { width: 16px; height: 16px; flex-basis: 16px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
  .stat-grid .carte { padding: 16px; }
  .stat-grid strong { font-size: 27px; }
  .filters .search-inline { flex-basis: 100%; }
  .search-inline .bouton { padding-inline: 13px; }
  .top-add { margin-left: 0; }
  .top-add[open] .formulaire { left: 0; right: auto; }
  .help-pipeline { font-size: 11px; }
  .col { flex-basis: 258px; }
  .carte { padding: 18px; }
  .formulaire .bouton { white-space: normal; }
  .paires { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 12px; }
  .content .d-ligne-tete, .content .d-reponses { flex-wrap: wrap; }
  body.connexion { padding: 12px; }
  .connexion-intro { padding: 24px; gap: 28px; }
  .connexion-intro h2 { font-size: 30px; }
  .money-stage { height: 210px; margin-block: 6px 12px; }
  .money-spinner { width: 78%; }
  .connexion-cadre { padding: 20px 10px; }
  .connexion-carte { padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .money-spinner { animation: none; transform: rotateY(-14deg); }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
