/* CREASTRONGS — Espace client
   Identité du site : encre profonde, papier, orange ; Montserrat light / bold italique ; angles droits ; triangles équilatéraux. */

:root {
  --ink: #0B0B0D;
  --ink2: #121215;
  --ink3: #19191D;
  --paper: #F3EEE6;
  --muted: rgba(243, 238, 230, .64);
  --dim: rgba(243, 238, 230, .42);
  --line: rgba(243, 238, 230, .10);
  --line2: rgba(243, 238, 230, .20);
  --orange: #EE7610;
  --orange2: #FFC573;
  --orange-soft: rgba(238, 118, 16, .12);
  --ok: #3DBE7A;
  --ok-soft: rgba(61, 190, 122, .10);
  --err: #FF6B5B;
  --err-soft: rgba(255, 107, 91, .10);
  --tri: polygon(50% 0, 100% 100%, 0 100%);
  --tri-right: polygon(0 0, 100% 50%, 0 100%);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  background: var(--ink); color: var(--paper);
  font: 300 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
strong, b { font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
[hidden] { display: none !important; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.csc-skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--orange); color: var(--ink); font-weight: 700;
}
.csc-skip:focus { top: 12px; }

/* ---------- Typographie ---------- */

.csc-eyebrow {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 0 0 14px; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--orange);
}
.csc-eyebrow::before {
  content: ''; width: 9px; height: 7.8px; background: currentColor; clip-path: var(--tri); flex: none;
}
.csc-eyebrow .csc-link { color: var(--muted); letter-spacing: .18em; }
.csc-eyebrow .csc-link:hover { color: var(--paper); }
.csc-h1 {
  margin: 0 0 12px; font-weight: 300; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -.02em;
}
.csc-h1 em, .csc-h2 em { font-style: italic; font-weight: 800; color: var(--orange); }
.csc-h1--md { font-size: clamp(26px, 3.4vw, 40px); }
.csc-h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.csc-h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; word-break: break-word; }
.csc-lead { margin: 0; max-width: 640px; color: var(--muted); font-size: 16px; }
.csc-muted { color: var(--muted); margin: 0 0 16px; }
.csc-hint { margin: 0; font-size: 12px; color: var(--dim); }
.csc-note { margin: 24px 0 0; font-size: 13px; color: var(--muted); }
.csc-link { color: var(--orange2); border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.csc-link:hover { border-color: currentColor; }
.csc-ref { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--dim); font-variant-numeric: tabular-nums; }
.csc-section-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 18px; }
.csc-section-title span, .csc-panel__title span {
  font-size: 12px; font-weight: 600; color: var(--orange); letter-spacing: .04em;
}
.csc-subtitle { margin: 18px 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.csc-subtitle:first-of-type { margin-top: 0; }

/* ---------- Logo ---------- */

.csc-logo { display: inline-flex; align-items: baseline; gap: 0; font-weight: 700; font-size: 19px; letter-spacing: .05em; line-height: 1; color: var(--paper); }
.csc-logo__a { width: 1em; height: .866em; margin: 0 .06em 0 .04em; transition: transform .7s var(--ease); }
.csc-logo:hover .csc-logo__a { transform: translateY(-3px); }
.csc-logo__tag {
  margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line2);
  font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--orange); align-self: center;
}
.csc-logo--lg { font-size: 26px; }

/* ---------- Boutons ---------- */

.csc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border: 1px solid transparent; cursor: pointer;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.csc-btn:active { transform: translateY(1px); }
.csc-btn--primary { background: var(--orange); color: var(--ink); }
.csc-btn--primary:hover { background: var(--paper); }
.csc-btn--ghost { background: transparent; color: var(--paper); border-color: var(--line2); }
.csc-btn--ghost:hover { border-color: var(--orange); color: var(--orange2); }
.csc-btn--text { background: none; color: var(--muted); padding: 0 8px; min-height: 36px; letter-spacing: .08em; }
.csc-btn--text:hover { color: var(--paper); }
.csc-btn--sm { min-height: 38px; padding: 0 16px; font-size: 11px; }
.csc-btn--block { width: 100%; }
.csc-btn.is-loading { opacity: .65; pointer-events: none; }
.csc-btn.is-loading::after {
  content: ''; width: 10px; height: 8.66px; background: currentColor; clip-path: var(--tri);
  animation: csc-spin .8s linear infinite;
}
.csc-count { padding: 1px 7px; background: var(--line); font-size: 11px; letter-spacing: 0; }
.csc-icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0;
  background: transparent; border: 1px solid var(--line); color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1;
  transition: border-color .2s, color .2s, background .2s;
}
.csc-icon-btn:hover { border-color: var(--orange); color: var(--orange2); }
.csc-icon-btn--danger:hover { border-color: var(--err); color: var(--err); background: var(--err-soft); }

/* ---------- Formulaires ---------- */

.csc-form { display: grid; gap: 18px; }
.csc-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.csc-form__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.csc-field { display: grid; gap: 8px; margin: 0; }
.csc-field__label { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.csc-field__label small { font-size: 10px; letter-spacing: .08em; text-transform: none; color: var(--dim); font-weight: 400; }
.csc-field__hint { font-size: 12px; color: var(--dim); }
.csc input[type="text"], .csc input[type="email"], .csc input[type="password"], .csc input[type="tel"], .csc input[type="search"],
.csc select, .csc textarea {
  width: 100%; min-height: 50px; padding: 13px 16px;
  background: var(--ink); border: 1px solid var(--line2); color: var(--paper);
  font-weight: 400; font-size: 15px; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.csc textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.csc input::placeholder, .csc textarea::placeholder { color: var(--dim); }
.csc input:focus, .csc select:focus, .csc textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(238, 118, 16, .18); }
.csc input[readonly] { color: var(--muted); background: var(--ink2); }
.csc select {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 34.64'%3E%3Cpath d='M0 0h40L20 34.64z' fill='%23EE7610'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 10px 8.66px;
}
.csc select option { background: var(--ink2); color: var(--paper); }
.csc-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: var(--muted); }
.csc-check input {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin: 0; flex: none;
  border: 1px solid var(--line2); background: var(--ink); display: grid; place-items: center; cursor: pointer;
}
.csc-check input::after { content: ''; width: 9px; height: 7.8px; background: var(--ink); clip-path: var(--tri); transform: scale(0); transition: transform .2s var(--ease); }
.csc-check input:checked { background: var(--orange); border-color: var(--orange); }
.csc-check input:checked::after { transform: scale(1); }
.csc-pass { position: relative; display: block; }
.csc-pass input { padding-right: 70px; }
.csc-pass__toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  padding: 8px 10px; background: none; border: 0; cursor: pointer;
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}
.csc-pass__toggle:hover { color: var(--orange2); }

/* Dépôt de fichiers */
.csc-drop {
  position: relative; display: grid; justify-items: center; gap: 6px; padding: 28px 20px; text-align: center;
  border: 1px dashed var(--line2); background: rgba(243, 238, 230, .02); cursor: pointer;
  transition: border-color .25s, background .25s;
}
.csc-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.csc-drop:hover, .csc-drop.is-over, .csc-drop:focus-within { border-color: var(--orange); background: var(--orange-soft); }
.csc-drop__tri { width: 22px; height: 19px; color: var(--orange); transition: transform .5s var(--ease); }
.csc-drop:hover .csc-drop__tri, .csc-drop.is-over .csc-drop__tri { transform: translateY(-4px); }
.csc-drop__text { font-size: 14px; color: var(--muted); }
.csc-drop__text strong { display: block; color: var(--paper); font-weight: 600; }
.csc-drop__hint { font-size: 12px; color: var(--dim); }
.csc-drop--sm { padding: 20px 16px; }
.csc-drop__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.csc-drop__list:empty { display: none; }
.csc-drop__list li {
  display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px;
  background: var(--ink3); font-size: 13px; border-left: 2px solid var(--orange);
}
.csc-drop__list li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csc-drop__list li span:last-child { color: var(--dim); flex: none; }
.csc-drop__list li.is-error { border-color: var(--err); color: var(--err); }

/* ---------- Messages d’état ---------- */

.csc-flash {
  display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; padding: 14px 18px;
  border-left: 3px solid var(--ok); background: var(--ok-soft); font-size: 14px; font-weight: 400;
  animation: csc-in .5s var(--ease) both;
}
.csc-flash::before { content: '✓'; color: var(--ok); font-weight: 700; }
.csc-flash--error { border-color: var(--err); background: var(--err-soft); }
.csc-flash--error::before { content: '!'; color: var(--err); }
.csc-flashes:empty { display: none; }

/* ---------- Pages publiques (connexion…) ---------- */

.csc-bare {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  padding: 48px 16px;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(238, 118, 16, .16), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(255, 197, 115, .07), transparent 70%),
    var(--ink);
}
.csc-bare__deco { position: absolute; inset: 0; pointer-events: none; }
.csc-bare__tri { position: absolute; color: transparent; }
.csc-bare__tri path { fill: none; stroke: rgba(243, 238, 230, .1); stroke-width: 1; vector-effect: non-scaling-stroke; }
.csc-bare__tri--1 { width: 520px; height: 450px; right: -140px; top: -60px; animation: csc-float 18s ease-in-out infinite; }
.csc-bare__tri--2 { width: 300px; height: 260px; left: -90px; bottom: -40px; animation: csc-float 14s ease-in-out infinite reverse; }
.csc-bare__tri--3 { width: 70px; height: 61px; left: 16%; top: 18%; }
.csc-bare__tri--3 path { fill: var(--orange); stroke: none; opacity: .9; }
.csc-bare__tri--3 { animation: csc-float 9s ease-in-out infinite; }
.csc-bare .csc-logo { position: relative; z-index: 1; animation: csc-in .6s var(--ease) both; }
.csc-bare__card {
  position: relative; z-index: 1; width: 100%; max-width: 460px; padding: 44px 40px 40px;
  background: rgba(18, 18, 21, .86); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
  animation: csc-in .7s .08s var(--ease) both;
}
.csc-bare__card::before {
  content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange2));
}
.csc-bare__card .csc-h1 { font-size: clamp(30px, 6vw, 40px); }
.csc-bare__card .csc-lead { font-size: 15px; margin-bottom: 28px; }
.csc-bare__card .csc-flash { margin-bottom: 20px; }
.csc-bare__card .csc-form + .csc-note, .csc-bare__card .csc-btn + .csc-note { margin-top: 20px; }
.csc-bare__foot { position: relative; z-index: 1; margin: 0; font-size: 13px; color: var(--dim); }
.csc-bare__foot a:hover { color: var(--paper); }

/* ---------- Application : en-tête ---------- */

.csc-top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 13, .88); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.csc-top__inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px; min-height: 72px;
  display: flex; align-items: center; gap: 32px;
}
.csc-nav { display: flex; gap: 2px; margin-right: auto; }
.csc-nav__link {
  position: relative; flex: none; padding: 10px 14px; white-space: nowrap; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s;
}
.csc-nav__link::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.csc-nav__link:hover { color: var(--paper); }
.csc-nav__link.is-active { color: var(--paper); font-weight: 600; }
.csc-nav__link.is-active::after, .csc-nav__link:hover::after { transform: scaleX(1); }
.csc-me { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.csc-me__name { font-weight: 500; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csc-me__out { padding-left: 12px; border-left: 1px solid var(--line2); color: var(--dim); transition: color .2s; }
.csc-me__out:hover { color: var(--orange2); }
.csc-avatar {
  display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px;
  background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .04em;
}
.csc-avatar--studio { background: var(--orange); color: var(--ink); }

/* ---------- Application : contenu ---------- */

.csc-main { max-width: 1280px; margin: 0 auto; padding: 48px 24px 96px; min-height: calc(100vh - 150px); }
.csc-main > * { animation: csc-in .6s var(--ease) both; }
.csc-main > *:nth-child(2) { animation-delay: .05s; }
.csc-main > *:nth-child(3) { animation-delay: .1s; }
.csc-main > *:nth-child(4) { animation-delay: .15s; }
.csc-main > *:nth-child(n+5) { animation-delay: .2s; }
.csc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 40px; }
.csc-head__text { flex: 1 1 520px; min-width: 0; }
.csc-head__side { display: grid; justify-items: end; gap: 10px; }
.csc-head--request { align-items: flex-start; margin-bottom: 28px; }
.csc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.csc-meta li { padding: 5px 12px; border: 1px solid var(--line2); font-size: 12px; font-weight: 500; color: var(--muted); }
.csc-meta li.is-hot { border-color: var(--orange); color: var(--orange2); }
.csc-status { display: flex; gap: 8px; }
.csc-status select { min-height: 38px; padding-top: 6px; padding-bottom: 6px; font-size: 13px; width: auto; }

.csc-panel { background: var(--ink2); border: 1px solid var(--line); padding: 28px; }
.csc-panel__title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.csc-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.csc-split--clients { grid-template-columns: minmax(0, 1fr) 380px; }

/* Badges de statut */
.csc-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; white-space: nowrap;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line2); color: var(--paper);
}
.csc-badge::before { content: ''; width: 7px; height: 6px; background: currentColor; clip-path: var(--tri); }
.csc-badge--devis { color: var(--orange2); border-color: rgba(255, 197, 115, .4); }
.csc-badge--en_cours { color: var(--orange); border-color: rgba(238, 118, 16, .5); background: var(--orange-soft); }
.csc-badge--validation { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.csc-badge--livree { color: var(--ok); border-color: rgba(61, 190, 122, .45); background: var(--ok-soft); }
.csc-badge--annulee { color: var(--dim); text-decoration: line-through; }
.csc-tag {
  display: inline-block; margin-left: 6px; padding: 1px 7px; font-style: normal; font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; background: var(--orange-soft); color: var(--orange2);
}
.csc-tag:first-child { margin-left: 0; }
.csc-tag--hot { background: var(--orange); color: var(--ink); }

/* Frise d’avancement : triangles pointés vers la droite */
.csc-progress {
  display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 0 40px; padding: 0; list-style: none; counter-reset: step;
}
.csc-progress__step { position: relative; display: grid; gap: 12px; justify-items: start; padding-right: 12px; }
.csc-progress__step::before {
  content: ''; position: absolute; left: 22px; right: 0; top: 10px; height: 1px; background: var(--line2);
}
.csc-progress__step:last-child::before { display: none; }
.csc-progress__step.is-done::before { background: var(--orange); }
.csc-progress__mark {
  position: relative; z-index: 1; width: 18px; height: 20.8px; background: var(--line2); clip-path: var(--tri-right);
  transition: background .3s;
}
.csc-progress__step.is-done .csc-progress__mark { background: var(--orange); }
.csc-progress__step.is-current .csc-progress__mark { background: var(--orange); animation: csc-pulse 2s ease-in-out infinite; }
.csc-progress__label { font-size: 12px; font-weight: 500; color: var(--dim); letter-spacing: .02em; }
.csc-progress__step.is-done .csc-progress__label { color: var(--muted); }
.csc-progress__step.is-current .csc-progress__label { color: var(--paper); font-weight: 700; }
.csc-progress.is-cancelled { opacity: .45; }
.csc-progress--compact { margin: 18px 0 0; }
.csc-progress--compact .csc-progress__mark { width: 10px; height: 11.5px; }
.csc-progress--compact .csc-progress__step::before { top: 5.5px; left: 14px; }
.csc-progress--compact .csc-progress__label { display: none; }
.csc-progress--compact .csc-progress__step { padding-right: 6px; }

/* Statistiques */
.csc-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 32px; }
.csc-stat {
  position: relative; display: grid; gap: 4px; padding: 22px 24px; background: var(--ink2); overflow: hidden;
  transition: background .25s;
}
.csc-stat::after {
  content: ''; position: absolute; right: -14px; bottom: -16px; width: 64px; height: 55.4px;
  background: var(--line); clip-path: var(--tri); transition: background .3s, transform .5s var(--ease);
}
.csc-stat:hover { background: var(--ink3); }
.csc-stat:hover::after { transform: translateY(-6px); background: rgba(238, 118, 16, .18); }
.csc-stat.is-active { background: var(--ink3); box-shadow: inset 0 -2px 0 var(--orange); }
.csc-stat__num { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.csc-stat--validation .csc-stat__num { color: var(--orange); }
.csc-stat__label { font-size: 12px; font-weight: 500; color: var(--muted); }

/* Filtres */
.csc-filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.csc-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: -1px; }
.csc-tabs::-webkit-scrollbar { display: none; }
.csc-tabs__link {
  padding: 12px 14px; white-space: nowrap; font-size: 13px; font-weight: 500; color: var(--muted);
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.csc-tabs__link span { margin-left: 4px; font-size: 11px; color: var(--dim); }
.csc-tabs__link:hover { color: var(--paper); }
.csc-tabs__link.is-active { color: var(--paper); font-weight: 600; border-color: var(--orange); }
.csc-search { flex: 0 1 280px; padding-bottom: 8px; }
.csc .csc-search input { min-height: 40px; padding: 8px 14px; font-size: 14px; }

/* Liste des demandes (équipe) */
.csc-rows { list-style: none; margin: 0; padding: 0; }
.csc-rows__head, .csc-row {
  display: grid; grid-template-columns: 130px minmax(0, 2.2fr) minmax(0, 1.3fr) 150px 170px; gap: 20px; align-items: center;
}
.csc-rows__head {
  padding: 14px 20px; font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--dim);
}
.csc-row {
  position: relative; padding: 18px 20px; border-top: 1px solid var(--line); transition: background .2s;
}
.csc-row::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 8px; height: 9.2px; margin-top: -4.6px;
  background: var(--orange); clip-path: var(--tri-right); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .35s var(--ease);
}
.csc-row:hover { background: var(--ink2); }
.csc-row:hover::before { opacity: 1; transform: none; }
.csc-row__title strong { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csc-row__title small, .csc-row__client small { display: block; font-size: 12px; color: var(--dim); }
.csc-row__client { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csc-row__date { font-size: 12px; color: var(--muted); }

/* Cartes projets (client) */
.csc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.csc-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; overflow: hidden;
  background: var(--ink2); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease);
}
.csc-card::after {
  content: ''; position: absolute; right: -30px; top: -26px; width: 90px; height: 78px;
  background: var(--orange-soft); clip-path: var(--tri); transition: transform .6s var(--ease), background .3s;
}
.csc-card:hover { border-color: rgba(238, 118, 16, .6); transform: translateY(-3px); }
.csc-card:hover::after { transform: rotate(180deg) translateY(-6px); background: rgba(238, 118, 16, .22); }
.csc-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
.csc-card__title { font-size: 20px; font-weight: 700; line-height: 1.25; margin-top: 6px; }
.csc-card__meta { font-size: 13px; color: var(--muted); }
.csc-card__go { margin-top: auto; padding-top: 16px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.csc-card__go span { display: inline-block; transition: transform .3s var(--ease); }
.csc-card:hover .csc-card__go span { transform: translateX(5px); }

/* Alerte « à valider » */
.csc-alert { margin-bottom: 40px; padding: 26px 28px; background: linear-gradient(120deg, rgba(238, 118, 16, .16), rgba(238, 118, 16, .04)); border: 1px solid rgba(238, 118, 16, .45); }
.csc-alert__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.csc-alert__tri { width: 20px; height: 17.3px; color: var(--orange); animation: csc-pulse 2s ease-in-out infinite; }
.csc-alert__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.csc-alert__list a {
  display: grid; grid-template-columns: minmax(0, auto) 1fr auto; gap: 6px 18px; align-items: baseline;
  padding: 14px 18px; background: rgba(11, 11, 13, .55); transition: background .2s;
}
.csc-alert__list a:hover { background: var(--ink); }
.csc-alert__list strong { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csc-alert__list span { font-size: 13px; color: var(--muted); }
.csc-alert__go { color: var(--orange) !important; font-weight: 700; font-size: 11px !important; letter-spacing: .14em; text-transform: uppercase; }

/* États vides */
.csc-empty { display: grid; justify-items: center; gap: 14px; padding: 72px 24px; text-align: center; border: 1px dashed var(--line2); color: var(--muted); }
.csc-empty p { margin: 0; max-width: 460px; }
.csc-empty__tri { width: 46px; height: 40px; color: var(--orange); animation: csc-float 6s ease-in-out infinite; }
.csc-empty--welcome { padding: 88px 24px; background: radial-gradient(50% 60% at 50% 0%, rgba(238, 118, 16, .1), transparent 70%); }
.csc-empty--welcome .csc-h2 { font-size: 24px; color: var(--paper); }
.csc-empty .csc-btn { margin-top: 8px; }

/* ---------- Détail d’une demande ---------- */

.csc-request { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.csc-request__side { display: grid; gap: 28px; }

/* Validations */
.csc-validations { margin-bottom: 40px; }
.csc-validate {
  display: grid; grid-template-columns: 260px minmax(0, 1fr); margin-bottom: 16px;
  background: var(--ink2); border: 1px solid rgba(238, 118, 16, .5); box-shadow: inset 3px 0 0 var(--orange);
}
.csc-validate__preview {
  position: relative; display: grid; place-items: center; min-height: 220px; overflow: hidden;
  background: repeating-conic-gradient(var(--ink3) 0 25%, var(--ink) 0 50%) 0 0 / 20px 20px;
}
.csc-validate__preview img { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; padding: 12px; transition: transform .6s var(--ease); }
.csc-validate__preview:hover img { transform: scale(1.04); }
.csc-validate__zoom {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px; text-align: center;
  background: rgba(11, 11, 13, .82); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  transform: translateY(100%); transition: transform .3s var(--ease);
}
.csc-validate__preview:hover .csc-validate__zoom, .csc-validate__preview:focus-visible .csc-validate__zoom { transform: none; }
.csc-validate__body { padding: 26px 28px; }
.csc-validate__form { display: grid; gap: 14px; }
.csc-validate__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.csc-waiting { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; color: var(--muted); }
.csc-dot { width: 8px; height: 8px; background: var(--orange); animation: csc-pulse 1.6s ease-in-out infinite; }
.csc-history { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.csc-history__item { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 14px 18px; background: var(--ink2); border: 1px solid var(--line); font-size: 14px; }
.csc-history__item strong { display: block; word-break: break-word; }
.csc-history__item span { font-size: 12px; color: var(--muted); }
.csc-history__item p { margin: 8px 0 0; padding: 10px 14px; background: var(--ink); color: var(--muted); font-size: 13px; }
.csc-history__icon { display: grid; place-items: center; width: 32px; height: 32px; font-weight: 700; }
.csc-history__item.is-approved .csc-history__icon { background: var(--ok-soft); color: var(--ok); }
.csc-history__item.is-changes .csc-history__icon { background: var(--orange-soft); color: var(--orange); }

/* Fil des échanges */
.csc-thread { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 18px; }
.csc-msg { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
.csc-msg__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 6px; font-size: 13px; }
.csc-msg__head time { font-size: 11px; color: var(--dim); }
.csc-msg__role { padding: 1px 6px; background: var(--orange); color: var(--ink); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.csc-msg__text {
  padding: 14px 18px; background: var(--ink); border: 1px solid var(--line); font-weight: 400; font-size: 14px; line-height: 1.65;
  overflow-wrap: anywhere;
}
.csc-msg__text a { color: var(--orange2); text-decoration: underline; }
.csc-msg--studio .csc-msg__text { border-left: 2px solid var(--orange); }
.csc-msg.is-mine .csc-msg__text { background: var(--ink3); }
.csc-msg--validation .csc-msg__text { border-color: rgba(238, 118, 16, .5); background: var(--orange-soft); }
.csc-msg--system {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px; padding: 2px 0;
  font-size: 12px; color: var(--dim); text-align: center;
}
.csc-msg--system span { color: var(--muted); }
.csc-msg__tri { width: 8px; height: 7px; color: var(--orange); }
.csc-compose { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.csc-compose__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Brief et contact */
.csc-brief { font-weight: 400; font-size: 14px; line-height: 1.7; color: var(--paper); overflow-wrap: anywhere; }
.csc-brief a { color: var(--orange2); text-decoration: underline; }
.csc-contact { display: grid; grid-template-columns: 36px 1fr; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.csc-contact div { display: grid; gap: 3px; min-width: 0; }
.csc-contact div > * { overflow: hidden; text-overflow: ellipsis; }
.csc-contact div > span { color: var(--muted); }
.csc-contact .csc-link { justify-self: start; }

/* Fichiers */
.csc-files { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.csc-file { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; background: var(--ink); border: 1px solid var(--line); transition: border-color .2s; }
.csc-file:hover { border-color: var(--line2); }
.csc-file__thumb { display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; background: var(--ink3); }
.csc-file__thumb img { width: 100%; height: 100%; object-fit: cover; }
.csc-ext { font-size: 10px; font-weight: 800; letter-spacing: .06em; color: var(--orange); }
.csc-validate__preview .csc-ext { font-size: 28px; }
.csc-file__info { min-width: 0; display: grid; gap: 2px; }
.csc-file__name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csc-file__name:hover { color: var(--orange2); }
.csc-file__info small { font-size: 11px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csc-file__info .csc-tag { margin: 0 6px 0 0; }
.csc-file__actions { display: flex; gap: 6px; }
.csc-file__actions form { margin: 0; }
.csc-upload { display: grid; gap: 14px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Nouvelle demande ---------- */

.csc-steps-aside { position: sticky; top: 104px; padding: 8px 0 0; }
.csc-howto { list-style: none; margin: 0; padding: 0; counter-reset: how; display: grid; gap: 22px; }
.csc-howto li { position: relative; display: grid; gap: 2px; padding-left: 52px; counter-increment: how; }
.csc-howto li::before {
  content: counter(how, decimal-leading-zero); position: absolute; left: 0; top: -2px;
  font-size: 26px; font-weight: 800; font-style: italic; color: var(--orange); line-height: 1;
}
.csc-howto strong { font-size: 15px; }
.csc-howto span { font-size: 13px; color: var(--muted); }

/* ---------- Clients ---------- */

.csc-clients { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.csc-client { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; background: var(--ink2); }
.csc-client__info { display: grid; gap: 2px; min-width: 0; font-size: 13px; }
.csc-client__info strong { font-size: 15px; }
.csc-client__info > span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.csc-client__contact { white-space: nowrap; }
.csc-client__state { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--orange2) !important; }
.csc-client__state.is-on { color: var(--ok) !important; }
.csc-client__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.csc-client__actions form { margin: 0; }
.csc-invite { position: sticky; top: 104px; }

/* ---------- Pied de page ---------- */

.csc-foot { border-top: 1px solid var(--line); }
.csc-foot__inner {
  max-width: 1280px; margin: 0 auto; padding: 24px; display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap;
  font-size: 12px; color: var(--dim);
}
.csc-foot a:hover { color: var(--orange2); }

/* ---------- Animations ---------- */

@keyframes csc-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes csc-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(4deg); } }
@keyframes csc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes csc-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Adaptation aux écrans ---------- */

@media (max-width: 1100px) {
  .csc-request { grid-template-columns: 1fr; }
  .csc-request__side { grid-template-columns: 1fr 1fr; align-items: start; }
  .csc-rows__head, .csc-row { grid-template-columns: 120px minmax(0, 2fr) minmax(0, 1.2fr) 140px; }
  .csc-rows__head span:last-child, .csc-row__date { display: none; }
}

@media (max-width: 900px) {
  .csc-split, .csc-split--clients { grid-template-columns: 1fr; }
  .csc-steps-aside, .csc-invite { position: static; }
  .csc-steps-aside { order: -1; }
  .csc-howto { grid-template-columns: 1fr 1fr; }
  .csc-stats { grid-template-columns: repeat(3, 1fr); }
  .csc-stat:last-child { grid-column: span 2; }
  .csc-validate { grid-template-columns: 1fr; }
  .csc-validate__preview { min-height: 240px; }
  .csc-top__inner { flex-wrap: wrap; gap: 0 20px; padding-top: 12px; }
  .csc-nav { order: 3; width: 100%; margin: 4px -14px 0; overflow-x: auto; scrollbar-width: none; }
  .csc-me { margin-left: auto; }
}

@media (max-width: 700px) {
  body { font-size: 14px; }
  .csc-main { padding: 32px 16px 72px; }
  .csc-top__inner { padding-left: 16px; padding-right: 16px; }
  .csc-logo__tag, .csc-me__name { display: none; }
  .csc-head { margin-bottom: 28px; }
  .csc-head > .csc-btn { width: 100%; }
  .csc-head__side { justify-items: start; width: 100%; }
  .csc-status { width: 100%; }
  .csc-status select { flex: 1; }
  .csc-form__grid, .csc-howto, .csc-request__side { grid-template-columns: 1fr; }
  .csc-stats { grid-template-columns: repeat(2, 1fr); }
  .csc-stat { padding: 18px; }
  .csc-stat__num { font-size: 32px; }
  .csc-search { flex: 1 1 100%; padding-top: 8px; }
  .csc-panel { padding: 20px 16px; }
  .csc-bare__card { padding: 36px 22px 28px; }
  .csc-rows__head { display: none; }
  .csc-row { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 16px 12px; }
  .csc-row .csc-ref { grid-column: 1; }
  .csc-row > span:nth-child(4) { grid-column: 2; grid-row: 1; justify-self: end; }
  .csc-row__title, .csc-row__client { grid-column: 1 / -1; }
  .csc-progress__label { font-size: 10px; }
  .csc-progress__step { padding-right: 4px; }
  .csc-alert { padding: 20px 16px; }
  .csc-alert__list a { grid-template-columns: 1fr; }
  .csc-client { grid-template-columns: 36px minmax(0, 1fr); }
  .csc-client__actions { grid-column: 1 / -1; justify-content: flex-start; }
  .csc-validate__body { padding: 20px 16px; }
  .csc-validate__actions .csc-btn { flex: 1 1 100%; }
  .csc-foot__inner { padding: 20px 16px; }
}
