/* AND CONCEPT Studio — complète admin.css */

.studio .adm-side { background: #262626; }
.studio-side__hello { margin: 0 .6rem 1rem; padding: .9rem; border-radius: .8rem; background: #303030; color: #fff; font: 600 .95rem/1.4 "Sora", sans-serif; }
.studio-side__hello span { color: #cfcac4; font: 400 .8rem/1.4 "Inter", sans-serif; }
.studio--client .adm-side nav a { font-size: .95rem; }

.studio-bell { position: relative; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; color: var(--a); border: 1px solid var(--line); background: #fff; }
.studio-bell:hover { border-color: var(--a); }
.studio-bell span { position: absolute; top: -.25rem; right: -.35rem; min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem; border-radius: 999px; background: var(--c); color: #1b1b1b; font: 700 .7rem/1.25rem "Inter", sans-serif; text-align: center; }

/* Cartes d'accueil */
.welcome { position: relative; overflow: hidden; border-radius: 1.25rem; padding: 1.5rem 1.5rem 1.6rem; background: #343434; color: #f1efec; margin-bottom: 1.25rem; }
.welcome::after { content: ""; position: absolute; right: -6rem; top: -8rem; width: 22rem; height: 22rem; background: radial-gradient(closest-side, rgba(255, 90, 110, .4), transparent); }
.welcome h2 { color: #fff; font-size: 1.45rem; margin: 0 0 .35rem; position: relative; z-index: 1; }
.welcome p { margin: 0; color: #d6d1cb; position: relative; z-index: 1; max-width: 46rem; }
.welcome .adm-actions { margin-top: 1rem; position: relative; z-index: 1; }
.welcome .adm-btn { background: #fff; color: var(--a); }
.welcome .adm-btn--accent { background: linear-gradient(120deg, #FF8A00, #FF5A6E); color: #1b1b1b; }

.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.todo li a, .todo li > div { display: flex; gap: .85rem; align-items: center; padding: .8rem .95rem; border-radius: .8rem; background: #fff; border: 1px solid var(--line); color: var(--a); text-decoration: none; }
.todo li a:hover { border-color: var(--a); }
.todo .dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--g); flex: none; }
.todo strong { display: block; font: 600 .92rem "Sora", sans-serif; }
.todo small { color: var(--muted); }
.todo .grow { flex: 1; min-width: 0; }
.todo .amount { font: 700 .95rem "Sora", sans-serif; white-space: nowrap; }

.empty { padding: 1.25rem; border: 1.5px dashed var(--line); border-radius: .9rem; color: var(--muted); text-align: center; background: #fff; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 0 0 .75rem; }
.section-title h2 { margin: 0; }

/* Progression d'un projet */
.track { list-style: none; margin: 0; padding: 0 0 .25rem; display: flex; gap: .35rem; overflow-x: auto; }
.track li { flex: 1 1 0; min-width: 5.5rem; position: relative; padding-top: .9rem; font-size: .75rem; color: var(--muted); }
.track li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 5px; background: #ebe8e3; }
.track li.done::before { background: var(--a); }
.track li.current::before { background: var(--g); }
.track li.current { color: var(--a); font-weight: 700; }
.track li.validation::after { content: "✓ validation"; display: block; font-size: .65rem; color: var(--m); font-weight: 600; }

/* Badges génériques */
.b { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 600; white-space: nowrap; background: #f0eeec; color: #5c5c5c; }
.b--info { background: #e7f0ff; color: #1d4fa8; }
.b--warn { background: #fff1e0; color: #8a4500; }
.b--ok { background: #e3f5ea; color: #157a43; }
.b--danger { background: #fdeef1; color: #a4002c; }
.b--brand { background: #fde7f1; color: var(--m); }
.b--dark { background: var(--a); color: #fff; }

/* Kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: .9rem; overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x proximity; }
.kanban__col { background: #efece8; border-radius: 1rem; padding: .75rem; min-height: 60vh; scroll-snap-align: start; display: flex; flex-direction: column; gap: .6rem; }
.kanban__col.is-over { outline: 2px dashed var(--m); outline-offset: -4px; background: #fbf3f7; }
.kanban__head { display: flex; justify-content: space-between; align-items: center; font: 700 .82rem "Sora", sans-serif; text-transform: uppercase; letter-spacing: .06em; padding: .2rem .25rem .4rem; }
.kanban__head span { background: #fff; border-radius: 999px; padding: 0 .55rem; font-size: .75rem; }
.kcard { background: #fff; border-radius: .8rem; padding: .8rem; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.04); cursor: grab; display: grid; gap: .35rem; }
.kcard:active { cursor: grabbing; }
.kcard.is-dragging { opacity: .5; }
.kcard a { color: var(--a); text-decoration: none; font: 600 .9rem/1.3 "Sora", sans-serif; }
.kcard a:hover { text-decoration: underline; }
.kcard .meta { display: flex; flex-wrap: wrap; gap: .3rem; font-size: .75rem; color: var(--muted); }
.kcard--late { border-left: 4px solid var(--c); }
.kcard select { font-size: .75rem; padding: .2rem; border-radius: .4rem; border: 1px solid var(--line); background: #fbfaf8; width: 100%; }

/* Onglets de projet */
.tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; }
.tabs a { padding: .7rem 1rem; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.tabs a[aria-selected="true"] { color: var(--a); border-bottom-color: var(--m); }
.tabs a span { margin-left: .3rem; font-size: .72rem; background: #f0eeec; border-radius: 999px; padding: 0 .45rem; }
[data-tab-panel][hidden] { display: none !important; }

/* Messagerie */
.thread { display: grid; gap: .75rem; max-height: 60vh; overflow-y: auto; padding: .25rem; }
.msg { max-width: 78%; padding: .7rem .9rem; border-radius: 1rem; background: #fff; border: 1px solid var(--line); }
.msg--me { justify-self: end; background: #343434; color: #fff; border-color: #343434; }
.msg--internal { background: #fff6eb; border-color: #ffdcb0; color: #5a3000; }
.msg header { font-size: .72rem; opacity: .75; margin-bottom: .25rem; display: flex; gap: .5rem; justify-content: space-between; }
.msg p { margin: 0; white-space: pre-wrap; word-break: break-word; }

/* Validation créative */
.proof { display: grid; gap: 1.25rem; }
@media (min-width: 72em) { .proof { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
.viewer { background: #2b2b2b; border-radius: 1rem; padding: 1rem; display: grid; gap: .75rem; }
.viewer__stage { position: relative; display: grid; place-items: center; min-height: 320px; background: repeating-conic-gradient(#333 0% 25%, #2b2b2b 0% 50%) 50% / 24px 24px; border-radius: .6rem; overflow: hidden; }
.viewer__stage img { max-height: 75vh; width: auto; display: block; }
.viewer__stage iframe, .viewer__stage video { width: 100%; height: 75vh; border: 0; background: #fff; }
.viewer__pins { position: absolute; inset: 0; }
.pin { position: absolute; width: 1.6rem; height: 1.6rem; margin: -.8rem 0 0 -.8rem; border-radius: 50%; background: var(--c); color: #1b1b1b; display: grid; place-items: center; font: 700 .72rem "Inter", sans-serif; box-shadow: 0 0 0 3px #fff; }
.pin--new { background: var(--o); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { transform: scale(1.15); } }
.viewer__bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; color: #d6d1cb; font-size: .82rem; }
.viewer__bar a { color: #fff; }
.compare { display: grid; gap: .75rem; }
@media (min-width: 60em) { .compare { grid-template-columns: 1fr 1fr; } }
.compare figure { margin: 0; background: #2b2b2b; border-radius: .8rem; padding: .6rem; }
.compare figcaption { color: #fff; font-size: .8rem; margin-bottom: .4rem; }
.compare img { margin: auto; max-height: 60vh; width: auto; }
.versions { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.versions a { display: flex; justify-content: space-between; gap: .5rem; padding: .55rem .75rem; border-radius: .6rem; border: 1px solid var(--line); background: #fff; color: var(--a); text-decoration: none; font-size: .86rem; }
.versions a[aria-current="true"] { border-color: var(--a); box-shadow: inset 3px 0 0 var(--m); }
.comment { padding: .7rem .8rem; border-radius: .7rem; background: var(--p); font-size: .88rem; }
.comment--correction { background: #fff6eb; }
.comment--internal { background: #eef2f7; }
.comment--resolved { opacity: .55; }
.comment header { display: flex; justify-content: space-between; gap: .5rem; font-size: .72rem; color: var(--muted); margin-bottom: .25rem; }
.comment p { margin: 0; white-space: pre-wrap; }
.decision { border: 2px solid var(--a); border-radius: 1rem; padding: 1rem; background: #fff; display: grid; gap: .75rem; }
.decision h3 { margin: 0; }
.checksum { font-family: ui-monospace, Consolas, monospace; font-size: .72rem; word-break: break-all; color: var(--muted); }

/* Lignes de devis */
.lines { width: 100%; border-collapse: collapse; font-size: .88rem; }
.lines th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .5rem .4rem; border-bottom: 1px solid var(--line); }
.lines td { padding: .4rem; vertical-align: top; border-bottom: 1px solid var(--line); }
.lines input, .lines select, .lines textarea { width: 100%; padding: .45rem .5rem; border: 1.5px solid #d9d5cf; border-radius: .5rem; font: inherit; background: #fff; }
.lines textarea { min-height: 2.4rem; resize: vertical; }
.lines .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lines-wrap { overflow-x: auto; }
.lines-wrap .lines { min-width: 860px; }
.totals { margin-left: auto; max-width: 360px; display: grid; gap: .3rem; font-size: .92rem; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; }
.totals .grand { font: 700 1.15rem "Sora", sans-serif; border-top: 2px solid var(--a); padding-top: .5rem; margin-top: .3rem; }
.doc-head { display: grid; gap: 1rem; }
@media (min-width: 48em) { .doc-head { grid-template-columns: 1fr 1fr; } }
.amount-big { font: 700 1.8rem "Sora", sans-serif; letter-spacing: -.02em; }
.notice { padding: .85rem 1rem; border-radius: .8rem; background: #fff6eb; border: 1px solid #ffdcb0; color: #6b3900; font-size: .88rem; }
.notice--info { background: #eef4ff; border-color: #c9dbff; color: #1d3f80; }

/* Matrice des permissions */
.matrix th, .matrix td { text-align: center; font-size: .78rem; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.matrix .yes { color: var(--ok); font-weight: 700; }
.matrix .no { color: #c9c4be; }

/* Écrans invités (connexion, inscription) */
.studio-guest { min-height: 100vh; display: grid; background: var(--p); }
@media (min-width: 60em) { .studio-guest { grid-template-columns: 1fr 1fr; } }
.studio-guest__aside { display: none; position: relative; overflow: hidden; background: #262626; color: #fff; padding: 3rem; flex-direction: column; justify-content: space-between; }
@media (min-width: 60em) { .studio-guest__aside { display: flex; } }
.studio-guest__mono { position: absolute; right: -4rem; bottom: -3rem; width: 70%; opacity: .9; }
.studio-guest__claim { font: 700 clamp(2rem, 1rem + 2.6vw, 3.2rem)/1.05 "Sora", sans-serif; letter-spacing: -.03em; margin: auto 0 1rem; position: relative; z-index: 1; }
.studio-guest__claim span { color: transparent; background: var(--g); -webkit-background-clip: text; background-clip: text; }
.studio-guest__sub { color: #cfcac4; max-width: 26rem; position: relative; z-index: 1; margin: 0; }
.studio-guest__form { display: grid; place-content: center; gap: 1rem; padding: 2rem 1.25rem; }
.studio-guest__card { width: min(100%, 440px); background: #fff; border-radius: 1.25rem; padding: 2rem; border: 1px solid var(--line); box-shadow: 0 20px 50px -30px rgba(52, 52, 52, .4); }
.studio-guest__card h1 { font-size: 1.4rem; margin: 0 0 .35rem; }
.studio-guest__card .lead { color: var(--muted); margin: 0 0 1.25rem; font-size: .92rem; }
.studio-guest__card .adm-btn { justify-content: center; width: 100%; padding: .75rem; }
.studio-guest__links { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; font-size: .85rem; margin-top: 1rem; }

/* Champs de choix (demandes) */
.choices { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: flex; gap: .6rem; align-items: center; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: .8rem; background: #fff; font-weight: 600; font-size: .9rem; }
.choice input:checked + span { border-color: var(--a); box-shadow: inset 0 0 0 1px var(--a); }
.choice input:checked + span .icon { color: var(--m); }
.choice input:focus-visible + span { outline: 3px solid var(--o); outline-offset: 2px; }
.opts { display: flex; flex-wrap: wrap; gap: .4rem; }
.opts label { display: inline-flex; gap: .35rem; align-items: center; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .85rem; cursor: pointer; }
.opts input { accent-color: var(--m); }
.q-block[hidden] { display: none; }

@media print {
  .adm-side, .adm-top, .adm-actions, form { display: none !important; }
  .adm-wrap { margin: 0 !important; }
}
