/* =========================================================
   CAMITEC — Espace client & admin : formulaires, tableaux, panneaux
   (s'appuie sur les variables de style.css)
   ========================================================= */
.btn--block { width: 100%; }
.btn--outline { border-color: var(--alu); color: var(--noir); background: var(--blanc); }
.btn--outline:hover { border-color: var(--noir); }
.btn-link { background: none; border: 0; padding: 0; font: 600 var(--t-sm)/1.3 var(--f-body); color: var(--bleu); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.btn-link--danger { color: var(--feu); }
.link-back { font-size: var(--t-sm); color: var(--anthracite); }
.muted { color: #6B7785; font-size: var(--t-sm); }
.ta-r { text-align: right; }
.opt { font-weight: 400; color: #6B7785; font-size: .85em; }

/* Alertes */
.alert { padding: .85rem 1rem; font-size: var(--t-sm); border-left: 4px solid; background: var(--atelier); }
.alert--error   { border-color: var(--feu); background: #FCEDEE; color: #7A1219; }
.alert--success { border-color: #1F8A4C; background: #E9F6EE; color: #114D2A; }
.alert--info    { border-color: var(--bleu); background: #E8F2FA; color: var(--bleu-nuit); }

/* Champs */
.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label, .form__group legend { font-weight: 600; font-size: var(--t-sm); }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.field__link { font-size: var(--t-xs); }
.field__help { font-size: var(--t-xs); color: #6B7785; }
.field__error { font-size: var(--t-xs); color: var(--feu); font-weight: 600; }
.field input, .field select {
  width: 100%; font: 400 var(--t-md)/1.3 var(--f-body); color: var(--noir);
  padding: .8rem .9rem; background: var(--blanc);
  border: 1px solid var(--alu); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.field input:hover, .field select:hover { border-color: #9AA4AE; }
.field input:focus, .field select:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(0,114,188,.18); }
.field input[readonly] { background: var(--atelier); color: var(--anthracite); }
.field input[aria-invalid="true"] { border-color: var(--feu); }
.form__group { border: 0; margin: 0; padding: 0; display: grid; gap: 1rem; }
.form__group legend { padding: 0; margin-bottom: .25rem; text-transform: uppercase; letter-spacing: .1em; font-size: var(--t-xs); color: var(--bleu); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }

.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.choice { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid var(--alu); cursor: pointer; font-size: var(--t-sm); }
.choice:has(input:checked) { border-color: var(--bleu); background: #F0F7FC; }
.choice input { margin-top: .2rem; accent-color: var(--bleu); }
.choice strong { display: block; }
.choice span { color: var(--anthracite); }
@media (max-width: 600px) { .choices { grid-template-columns: 1fr; } }

/* Pages d'accès : connexion, mot de passe oublié, activation (cadre : includes/acces-shell.php) */
.page-acces { background: var(--atelier); }
.acces { display: grid; grid-template-columns: minmax(380px, 5fr) 7fr; grid-template-rows: auto 1fr; grid-template-areas: "top main" "cote main"; min-height: 100vh; min-height: 100dvh; position: relative; }
/* panneau bleu nuit d'un seul tenant derrière l'en-tête et le texte */
.acces::before {
  content: ""; grid-column: 1; grid-row: 1 / -1;
  background:
    linear-gradient(rgba(90,155,208,.07) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(90,155,208,.07) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bleu-nuit);
}
.acces__top, .acces__cote { z-index: 1; padding-inline: clamp(1.5rem, 3.5vw, 3.25rem); color: #C8D6E5; }
.acces__top { grid-area: top; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.75rem; }
.acces__logo { width: 132px; height: auto; display: block; }
.acces__retour { color: #C8D6E5; text-decoration: none; font-size: var(--t-sm); }
.acces__retour:hover { color: var(--blanc); text-decoration: underline; }
.acces__cote { grid-area: cote; display: flex; flex-direction: column; gap: 2rem; padding-block: 1rem 2.25rem; }
.acces__plan { overflow: visible; width: min(100%, 400px); height: auto; margin-block: auto; color: #C8D6E5; }
.acces__plan-accent { stroke: var(--bleu-ciel); }
.acces__plan-cote { stroke: #6F8CAB; }
.acces__plan text { font: 500 10px var(--f-mono); fill: #8FA9C4; }
.acces__titre { font: 800 var(--t-xl)/1.1 var(--f-display); font-stretch: 112%; color: var(--blanc); margin-bottom: 1rem; }
.acces__liste { display: grid; gap: .6rem; }
.acces__liste li { position: relative; padding-left: 1.6rem; font-size: var(--t-sm); }
.acces__liste li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border: 2px solid var(--bleu-ciel); }
.acces__contact { display: grid; gap: .75rem; padding-top: 1.25rem; border-top: 1px solid rgba(200,214,229,.18); font-size: var(--t-sm); }
.acces__contact strong { color: var(--blanc); }
.acces__liens { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.acces__liens a { color: var(--blanc); text-decoration: none; }
.acces__liens a:hover { text-decoration: underline; }
.acces__top a:focus-visible, .acces__cote a:focus-visible { outline: 2px solid var(--bleu-ciel); outline-offset: 3px; }

.acces__main {
  grid-area: main; display: grid; place-items: center; padding: clamp(1.5rem, 4vw, 4rem) 20px; min-width: 0;
  background:
    linear-gradient(rgba(0,114,188,.035) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(0,114,188,.035) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--atelier);
}
.acces__card { --bc: var(--bleu); background-color: var(--blanc); width: min(100%, 460px); padding: clamp(1.75rem, 4vw, 2.75rem); display: grid; gap: 1.25rem; }
.acces__title { font-size: var(--t-xl); font-weight: 800; font-stretch: 112%; }
.acces__lead { color: var(--anthracite); margin-top: -.6rem; }
.acces__card .btn:not(.btn--block) { justify-self: start; }
@media (max-width: 900px) {
  .acces { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; grid-template-areas: "top" "main" "cote"; background: var(--bleu-nuit); }
  .acces::before { display: none; }
  .acces__top { padding-block: 1rem; }
  .acces__logo { width: 104px; }
  .acces__cote { padding-block: 2rem; }
  .acces__plan { display: none; }
  .acces__titre { font-size: var(--t-lg); }
}

/* Aperçu de l'espace d'un client par un admin (lecture seule) */
.apercu-bar { background: #FFF4C2; color: var(--noir); border-bottom: 1px solid #E8D27A; font-size: var(--t-sm); }
.apercu-bar__inner { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; flex-wrap: wrap; padding-block: .6rem; }
.apercu-bar a { color: var(--bleu-nuit); font-weight: 600; white-space: nowrap; }

/* Contenu de l’espace */
.app { padding-block: clamp(2rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5rem); background: var(--atelier); min-height: 55vh; }
.app__title { font-size: var(--t-xl); font-weight: 800; font-stretch: 112%; }
.app__lead { color: var(--anthracite); margin-top: .35rem; }

.panel { background: var(--blanc); padding: clamp(1.25rem, 3vw, 1.75rem); display: grid; gap: 1rem; align-content: start; border: 1px solid var(--alu-clair); }
.panel__head h2, .panel__title { font-size: var(--t-lg); font-weight: 700; font-stretch: 112%; }
.kv { margin: 0; display: grid; gap: .75rem; }
.kv dt { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; color: #6B7785; }
.kv dd { margin: .1rem 0 0; word-break: break-word; }

.empty { text-align: center; justify-items: center; display: grid; gap: .6rem; padding: 2rem 1rem; }
.empty h3 { font: 700 var(--t-lg)/1.2 var(--f-display); font-stretch: 112%; }
.empty p { color: var(--anthracite); max-width: 46ch; font-size: var(--t-sm); }
.empty__drawing { width: 120px; height: auto; color: var(--bleu-nuit); margin-bottom: .5rem; }
.empty__drawing .ln { fill: none; stroke: currentColor; stroke-width: 2; }
.empty__drawing .thin { stroke-width: 1.25; opacity: .6; }
.empty__drawing .accent { stroke: var(--bleu); }

/* Filtres + tableau admin */
.filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1.25rem; }
.field--inline { min-width: min(280px, 100%); }
.table-wrap { overflow-x: auto; background: var(--blanc); border: 1px solid var(--alu-clair); }
.table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); min-width: 760px; }
.table th { text-align: left; font: 600 var(--t-xs)/1 var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: #6B7785; padding: 1rem 1.1rem; border-bottom: 2px solid var(--noir); }
.table td { padding: 1rem 1.1rem; border-bottom: 1px solid var(--alu-clair); vertical-align: top; }
.table tbody tr:hover { background: #FAFBFC; }
.row-actions { display: inline-flex; flex-direction: column; align-items: flex-end; gap: .45rem; }
.chip { display: inline-block; font: 600 .6875rem/1 var(--f-body); text-transform: uppercase; letter-spacing: .08em; padding: .35rem .5rem; white-space: nowrap; }
.chip--active   { background: #E9F6EE; color: #114D2A; }
.chip--invited  { background: #FFF4DB; color: #7A5200; }
.chip--disabled { background: var(--alu-clair); color: var(--anthracite); }
.chip--admin    { background: var(--bleu-nuit); color: var(--blanc); margin-left: .4rem; vertical-align: middle; }

.invite-done .copy { display: flex; gap: .5rem; }
.invite-done .copy input { flex: 1; min-width: 0; font: 400 var(--t-sm)/1.3 var(--f-mono); padding: .7rem .8rem; border: 1px solid var(--alu); background: var(--atelier); }

/* =========================================================
   DOCUMENTS & AFFAIRES
   ========================================================= */
.btn--sm { padding: .55rem .85rem; font-size: var(--t-xs); }
.table__link { font-weight: 700; color: var(--noir); text-decoration: none; border-bottom: 2px solid var(--bleu); }
.table__link:hover { color: var(--bleu); }
.chip--new { background: var(--bleu); color: var(--blanc); margin-left: .35rem; }
.panel__head--row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }

/* Documents */
.docs { display: grid; border-top: 1px solid var(--alu-clair); }
.doc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: start; padding: 1rem .25rem; border-bottom: 1px solid var(--alu-clair); }
.doc--new { background: linear-gradient(90deg, rgba(0,114,188,.06), transparent 60%); }
.doc--tosign { background: linear-gradient(90deg, rgba(255,184,0,.12), transparent 60%); }
.doc__main { min-width: 0; display: grid; gap: .25rem; }
.doc__name { font-weight: 600; color: var(--noir); text-decoration: none; word-break: break-word; }
.doc__name:hover { color: var(--bleu); text-decoration: underline; }
.doc__meta { font-size: var(--t-xs); color: #6B7785; }
.doc__cat { color: var(--anthracite); font-weight: 600; }
.doc__seen { color: #1F8A4C; }
.doc__note { font-size: var(--t-sm); color: var(--anthracite); border-left: 2px solid var(--alu); padding-left: .6rem; }
.doc__signed { font-size: var(--t-xs); font-weight: 600; color: #1F8A4C; }
.doc__signed::before { content: "✓ "; }
.doc__actions { display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; }
.doc__actions .chip--new { margin-left: 0; }
.docs-empty { color: #6B7785; font-size: var(--t-sm); padding: .5rem 0; }
@media (max-width: 640px) {
  .doc { grid-template-columns: auto minmax(0, 1fr); }
  .doc__actions { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; }
}

.filetype {
  display: grid; place-items: center; width: 42px; height: 50px; position: relative;
  font: 700 .625rem/1 var(--f-mono); color: var(--blanc); background: var(--anthracite);
  clip-path: polygon(0 0, 72% 0, 100% 20%, 100% 100%, 0 100%);
}
.filetype--pdf { background: var(--feu); }
.filetype--img { background: #1F8A4C; }
.filetype--cad { background: var(--bleu-nuit); }
.filetype--doc { background: var(--bleu); }

/* Envoi de fichiers */
.upload { display: grid; gap: 1rem; }
.dropzone {
  position: relative; display: grid; justify-items: center; gap: .35rem; text-align: center;
  padding: 1.5rem 1rem; border: 2px dashed var(--alu); background: var(--atelier); cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--bleu); background: #F0F7FC; }
.dropzone svg { width: 34px; height: 34px; color: var(--bleu); }
.dropzone__title { font-weight: 700; }
.dropzone__hint { font-size: var(--t-xs); color: #6B7785; }
.dropzone__files { font-size: var(--t-xs); font-weight: 600; color: var(--bleu-nuit); word-break: break-word; }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone:focus-within { outline: 3px solid var(--bleu-ciel); outline-offset: 2px; }
.upload__fields { display: grid; gap: 1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--t-sm); cursor: pointer; }
.check input { margin-top: .2rem; accent-color: var(--bleu); width: 16px; height: 16px; flex: none; }
.check--block { padding: 1rem; border: 1px solid var(--alu); background: var(--atelier); }

/* Formulaires repliables */
.inline-form summary { cursor: pointer; font-weight: 600; color: var(--bleu); font-size: var(--t-sm); list-style: none; display: inline-flex; gap: .4rem; align-items: center; }
.inline-form summary::-webkit-details-marker { display: none; }
.inline-form summary::before { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border: 1.5px solid currentColor; font-weight: 700; line-height: 1; }
.inline-form[open] summary::before { content: "−"; }
.inline-form[open] > form { margin-top: 1rem; }
.form--inline { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 1rem; align-items: end; }
@media (max-width: 760px) { .form--inline { grid-template-columns: 1fr; } }

/* Signature */
.sign { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.sign__preview { width: 100%; height: min(75vh, 900px); border: 1px solid var(--alu-clair); background: var(--atelier); }
.sign__form { position: sticky; top: 100px; }
@media (max-width: 900px) {
  .sign { grid-template-columns: 1fr; }
  .sign__preview { height: 60vh; }
  .sign__form { position: static; }
}

/* =========================================================
   Admin — Galerie
   ========================================================= */
.field textarea { width: 100%; font: 400 var(--t-md)/1.45 var(--f-body); color: var(--noir); padding: .8rem .9rem; background: var(--blanc); border: 1px solid var(--alu); border-radius: var(--radius); resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(0,114,188,.18); }
.gal-new { grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 1rem; margin-bottom: 1.5rem; }
.gal-new__icon { width: 52px; height: 52px; display: grid; place-items: center; background: var(--atelier); color: var(--bleu); align-self: end; }
.gal-hint { margin-bottom: 1rem; }

.gal-albums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.gal-album { display: grid; grid-template-rows: auto 1fr auto; background: var(--blanc); border: 1px solid var(--alu-clair); transition: border-color .2s, box-shadow .2s, opacity .2s; }
.gal-album:hover { border-color: var(--alu); box-shadow: 0 16px 34px -28px rgba(11,42,74,.5); }
.gal-album.is-dragging, .gal-photo.is-dragging { opacity: .4; }
.gal-album__cover { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--atelier); }
.gal-album__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-album__empty { position: absolute; inset: 0; display: grid; place-items: center; color: #6B7785; font-size: var(--t-sm); border: 2px dashed var(--alu); margin: .75rem; }
.gal-album__status { position: absolute; left: .6rem; top: .6rem; }
.gal-album__body { display: grid; gap: .2rem; padding: .9rem 1rem .4rem; align-content: start; }
.gal-album__title { font-weight: 700; color: var(--bleu-nuit); text-decoration: none; font-size: var(--t-md); }
.gal-album__title:hover { text-decoration: underline; }
.gal-album__actions { display: flex; align-items: center; gap: .6rem; padding: .6rem 1rem 1rem; flex-wrap: wrap; }
.gal-album__actions .btn { margin-left: auto; }
.gal-handle { cursor: grab; color: #9AA4AE; letter-spacing: -.2em; font-weight: 700; user-select: none; }
.gal-icon-btn { width: 30px; height: 30px; border: 1px solid var(--alu); background: var(--blanc); cursor: pointer; font-size: var(--t-sm); color: var(--bleu-nuit); }
.gal-icon-btn:disabled { opacity: .35; cursor: default; }
[data-sortable].is-saving { opacity: .7; pointer-events: none; }

.gal-head-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.app__title .chip { margin-left: .6rem; vertical-align: middle; font-stretch: 100%; }
.gal-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; margin: 1.25rem 0 2rem; }
.gal-drop { position: relative; border: 2px dashed var(--alu); background: var(--atelier); transition: border-color .2s, background .2s; }
.gal-drop.is-over { border-color: var(--bleu); background: #E8F2FA; }
.gal-drop__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.gal-drop__label { display: grid; justify-items: center; gap: .35rem; padding: 2rem 1rem; text-align: center; color: var(--anthracite); font-size: var(--t-sm); pointer-events: none; }
.gal-drop__label svg { color: var(--bleu); }
.gal-drop__label strong { color: var(--bleu-nuit); font-size: var(--t-md); }
.gal-drop:focus-within { outline: 2px solid var(--bleu); outline-offset: 2px; }
.gal-queue { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.gal-queue:empty { display: none; }
.gal-queue li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .75rem; font-size: var(--t-xs); }
.gal-queue__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal-queue__state { color: #6B7785; }
.gal-queue__bar { grid-column: 1 / -1; height: 4px; background: var(--alu-clair); }
.gal-queue__bar i { display: block; height: 100%; width: 0; background: var(--bleu); transition: width .2s; }
.gal-queue li.is-ok .gal-queue__state { color: #1F8A4C; font-weight: 600; }
.gal-queue li.is-ok .gal-queue__bar i { background: #1F8A4C; }
.gal-queue li.is-error .gal-queue__state { color: var(--feu); font-weight: 600; white-space: normal; grid-column: 1 / -1; }
.gal-queue li.is-error .gal-queue__bar { display: none; }
.gal-queue__done { font-weight: 600; color: var(--bleu-nuit); }

.gal-photos-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.gal-bulk { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: .75rem 1rem; background: var(--blanc); border: 1px solid var(--alu-clair); margin-bottom: 1rem; }
.gal-bulk__all { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--t-sm); font-weight: 600; cursor: pointer; }
.gal-bulk__actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-left: auto; }
.gal-bulk__move { display: inline-flex; gap: .35rem; }
.gal-bulk select { font: 400 var(--t-xs)/1.2 var(--f-body); padding: .5rem; border: 1px solid var(--alu); max-width: 200px; }
.gal-bulk button:disabled { opacity: .4; cursor: default; }
.gal-btn-danger { color: var(--feu); border-color: #E9B4B7; }
.gal-btn-danger:hover:not(:disabled) { border-color: var(--feu); }

.gal-grid { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.gal-photo { display: grid; background: var(--blanc); border: 1px solid var(--alu-clair); cursor: grab; transition: border-color .2s, box-shadow .2s, opacity .2s; }
.gal-photo:hover { border-color: var(--alu); }
.gal-photo.is-selected { border-color: var(--bleu); box-shadow: 0 0 0 2px var(--bleu); }
.gal-photo.is-hidden .gal-photo__img img { opacity: .4; filter: grayscale(1); }
.gal-photo__img { position: relative; aspect-ratio: 1; background: var(--atelier); overflow: hidden; }
.gal-photo__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-photo__check { position: absolute; top: .5rem; left: .5rem; width: 28px; height: 28px; display: grid; place-items: center; background: rgba(255,255,255,.92); cursor: pointer; }
.gal-photo__check input { width: 17px; height: 17px; accent-color: var(--bleu); cursor: pointer; }
.gal-photo__badges { position: absolute; right: .5rem; top: .5rem; display: grid; gap: .3rem; justify-items: end; }
.gal-photo__badges .chip { margin: 0; }
.gal-caption { position: relative; padding: .5rem .5rem 0; }
.gal-caption input { width: 100%; font: 400 var(--t-xs)/1.3 var(--f-body); padding: .5rem 1.6rem .5rem .55rem; border: 1px solid transparent; background: var(--atelier); color: var(--noir); }
.gal-caption input:hover { border-color: var(--alu); }
.gal-caption input:focus { outline: none; border-color: var(--bleu); background: var(--blanc); }
.gal-caption__state { position: absolute; right: 1rem; top: 50%; translate: 0 -25%; font-size: var(--t-xs); color: #1F8A4C; font-weight: 700; }
.gal-photo__actions { display: flex; flex-wrap: wrap; gap: .3rem .9rem; padding: .55rem .6rem .7rem; font-size: var(--t-xs); }
.gal-photo__actions .btn-link { font-size: var(--t-xs); }

.gal-danger { grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-color: #F0D2D4; }
@media (max-width: 900px) { .gal-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .gal-new { grid-template-columns: minmax(0, 1fr); }
  .gal-new__icon { display: none; }
  .gal-danger { grid-template-columns: minmax(0, 1fr); }
  .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .gal-bulk__actions { margin-left: 0; }
}

/* =========================================================
   ADMIN ET ESPACE CLIENT — cadre « planche d'atelier »
   Barre latérale bleu nuit (trame du plan technique), cartouche
   de titre comme sur un plan, équerres réservées à « À traiter » / « À faire ».
   L'admin est en body.admin, l'espace client en body.admin.espace (ses ajouts : fin du fichier).
   ========================================================= */
body.admin { background: var(--atelier); }
.admin-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }

/* Barre latérale */
.admin-side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2rem; padding: 1.5rem 1rem 1.25rem;
  color: #C8D6E5;
  background:
    linear-gradient(rgba(90,155,208,.07) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(90,155,208,.07) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bleu-nuit);
}
.admin-side__brand { display: grid; gap: .6rem; padding: 0 .5rem; text-decoration: none; }
.admin-side__logo { width: 124px; height: auto; display: block; }
.admin-side__role { font: 500 var(--t-xs)/1 var(--f-mono); color: #8FA9C4; letter-spacing: .02em; }

.admin-nav { display: grid; gap: .25rem; }
.admin-nav__link {
  display: flex; align-items: center; gap: .75rem; padding: .7rem .75rem;
  color: #C8D6E5; text-decoration: none; font-weight: 500; font-size: var(--t-sm);
  border-left: 3px solid transparent; transition: background-color .15s, color .15s;
}
.admin-nav__link svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.admin-nav__link:hover { color: var(--blanc); background: rgba(255,255,255,.05); }
.admin-nav__link[aria-current="page"] { color: var(--blanc); background: rgba(90,155,208,.16); border-left-color: var(--bleu-ciel); }
.admin-side a:focus-visible, .admin-side button:focus-visible { outline: 2px solid var(--bleu-ciel); outline-offset: 2px; }

.admin-side__foot { margin-top: auto; display: grid; gap: .9rem; padding: 1rem .5rem 0; border-top: 1px solid rgba(200,214,229,.18); font-size: var(--t-sm); }
.admin-side__site { color: #C8D6E5; text-decoration: none; }
.admin-side__site:hover { color: var(--blanc); text-decoration: underline; }
.admin-side__user { display: flex; align-items: center; gap: .65rem; color: var(--blanc); font-weight: 600; min-width: 0; }
.admin-side__avatar { width: 30px; height: 30px; flex: none; display: grid; place-items: center; background: var(--bleu); color: var(--blanc); font: 700 var(--t-sm)/1 var(--f-display); }
.admin-side__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-side__logout { justify-self: start; background: none; border: 1px solid rgba(255,255,255,.3); color: var(--blanc); font: 500 var(--t-xs)/1 var(--f-body); padding: .5rem .75rem; cursor: pointer; }
.admin-side__logout:hover { border-color: var(--blanc); }

/* Zone de travail : papier millimétré très discret, contenu aligné à gauche */
.admin-main {
  min-width: 0;
  background:
    linear-gradient(rgba(0,114,188,.035) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(0,114,188,.035) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--atelier);
}
.admin .app { background: none; min-height: 100vh; padding-block: clamp(1.75rem, 3.5vw, 3rem) 4rem; }
.admin .wrap { max-width: 1240px; margin-inline: 0; padding-inline: clamp(20px, 3.5vw, 52px); }
.admin .link-back { display: inline-block; margin-bottom: 1rem; text-decoration: none; }
.admin .link-back:hover { color: var(--bleu); text-decoration: underline; }
/* Étiquettes en casse normale dans l'admin (pas de capitales espacées) */
.admin .chip, .admin .kv dt, .admin .form__group legend {
  text-transform: none; letter-spacing: 0; font-size: .75rem;
}
.admin .chip { font-weight: 600; padding: .3rem .5rem; }

/* Cartouche de titre (comme sur un plan) */
.cartouche {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  background: var(--blanc); border: 2px solid var(--bleu-nuit); margin-bottom: 1.75rem;
}
.cartouche__title { padding: 1.25rem 1.5rem; display: grid; align-content: center; gap: .3rem; }
.cartouche__title .app__lead { margin: 0; }
.cartouche__grid { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(7.5rem, auto)); border-left: 2px solid var(--bleu-nuit); }
.cartouche__grid > div { padding: .8rem 1rem; display: grid; align-content: space-between; gap: .5rem; border-left: 1px solid var(--alu); }
.cartouche__grid > div:first-child { border-left: 0; }
.cartouche__grid dt { font-size: .75rem; line-height: 1.25; color: var(--anthracite); }
.cartouche__grid dd { margin: 0; font: 500 1.625rem/1 var(--f-mono); color: var(--bleu-nuit); letter-spacing: -.02em; }
.cartouche__grid dd.cartouche__small { font-size: var(--t-md); }
@media (max-width: 1000px) {
  .cartouche { grid-template-columns: 1fr; }
  .cartouche__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 0; border-top: 2px solid var(--bleu-nuit); }
  .cartouche__grid > div:nth-child(odd) { border-left: 0; }
  .cartouche__grid > div:nth-child(n+3) { border-top: 1px solid var(--alu); }
}

/* À traiter : seul bloc à équerres */
.todo-board { --bc: var(--bleu); background-color: var(--blanc); padding: 1.4rem 1.5rem 1rem; margin-bottom: 2.25rem; }
.todo-board__title { font: 700 var(--t-lg)/1.2 var(--f-display); font-stretch: 112%; margin-bottom: .5rem; }
.todo-board__list { list-style: none; margin: 0; padding: 0; }
.todo-board__item {
  display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; align-items: center; gap: .5rem 1rem;
  padding: .8rem 0; border-top: 1px solid var(--alu-clair); font-size: var(--t-sm);
}
.todo-board__item::before { content: ""; width: 10px; height: 10px; border: 2px solid; }
.todo-board__item--recu::before   { border-color: var(--bleu); background: var(--bleu); }
.todo-board__item--signe::before  { border-color: #E0A100; background: #E0A100; }
.todo-board__item--invite::before { border-color: #9AA4AE; }
.todo-board__what strong { font-weight: 700; }
.todo-board__when { font: 400 var(--t-xs)/1 var(--f-mono); color: #6B7785; white-space: nowrap; }
.todo-board__item form { margin: 0; }
.todo-board__go {
  background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap;
  font: 600 var(--t-sm)/1.3 var(--f-body); color: var(--bleu); text-decoration: underline; text-underline-offset: .2em;
}
.todo-board__go:hover { color: var(--bleu-nuit); }
@media (max-width: 700px) {
  .todo-board__item { grid-template-columns: 12px minmax(0, 1fr); }
  .todo-board__when, .todo-board__item > a, .todo-board__item > form { grid-column: 2; }
}

/* Liste des clients */
.clients__head { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin-bottom: 1rem; }
.clients__title { font: 700 var(--t-lg)/1.2 var(--f-display); font-stretch: 112%; }
.clients__head .filters { margin: 0; flex: 1 1 520px; }
.clients__new { margin-left: auto; }
.admin .field--inline { min-width: 0; flex: 1 1 240px; }
.admin .field--select { flex: 0 1 200px; }
.admin .field--inline input, .admin .field--inline select { padding: .65rem .8rem; font-size: var(--t-sm); }

.admin .table-wrap { border-color: var(--alu); }
.admin .table th {
  font: 600 .75rem/1.2 var(--f-body); text-transform: none; letter-spacing: 0; color: var(--anthracite);
  background: var(--atelier); border-bottom: 1.5px solid var(--bleu-nuit); padding: .75rem 1.1rem;
}
.admin .table td { vertical-align: middle; }
.admin .table tbody tr { box-shadow: inset 3px 0 0 transparent; transition: box-shadow .15s, background-color .15s; }
.admin .table tbody tr:hover { background: #F7FAFD; box-shadow: inset 3px 0 0 var(--bleu); }
.table__sub { display: block; margin-top: .2rem; font-size: var(--t-xs); color: #6B7785; }
.table__sub.mono { letter-spacing: .02em; }
.table__num { font-size: var(--t-md); color: var(--bleu-nuit); }
.table__date { font-size: var(--t-xs); color: var(--anthracite); white-space: nowrap; }
.btn-link--quiet { color: #6B7785; text-decoration: none; font-weight: 500; }
.btn-link--quiet:hover { color: var(--feu); text-decoration: underline; }

/* Statut : petit carré (motif du site) + texte, sans pastille */
.state { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--t-sm); font-weight: 500; white-space: nowrap; }
.state::before { content: ""; width: 9px; height: 9px; flex: none; border: 2px solid; }
.state--active::before   { border-color: #1F8A4C; background: #1F8A4C; }
.state--invited::before  { border-color: #E0A100; }
.state--invite::before    { border-color: var(--bleu); }
.state--a_inviter::before { border-color: #9AA4AE; }
.state--expiree::before   { border-color: #E0A100; background: #E0A100; }
.envoi { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: .75rem; }
.envoi__aide { font-size: var(--t-xs); color: #6B7785; }
.row-actions .btn-link { white-space: nowrap; text-align: right; }
.table__coche { width: 1%; padding-right: 0 !important; }
.table__coche input { width: 17px; height: 17px; accent-color: var(--bleu); display: block; }
html:not(.js) .cocher-tout { display: none; }

.state--disabled         { color: #6B7785; }
.state--disabled::before { border-color: var(--alu); background: var(--alu); }

/* ---------- Fiche client ---------- */
.cartouche--fiche .cartouche__title { gap: .5rem; }
.fiche__contact { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: var(--t-sm); color: var(--anthracite); }
.fiche__contact a { color: var(--anthracite); text-decoration: none; border-bottom: 1px solid var(--alu); }
.fiche__contact a:hover { color: var(--bleu); border-bottom-color: var(--bleu); }
.fiche__actions { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .35rem; }
.fiche__lien { font-size: var(--t-xs); color: #6B7785; }
.cartouche__small { font-size: var(--t-md) !important; }
.cartouche__state .state { font: 600 var(--t-md)/1 var(--f-body); color: var(--noir); }

.fiche { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 1.5rem; align-items: start; }
.fiche__main { display: grid; gap: 1.5rem; min-width: 0; }
.fiche__aside { position: sticky; top: 1.5rem; display: grid; gap: 1.25rem; }
@media (max-width: 1000px) { .fiche { grid-template-columns: 1fr; } .fiche__aside { position: static; order: -1; } }

/* Feuille : bloc blanc à filet bleu nuit en tête (comme une planche) */
.planche { background: var(--blanc); border: 1px solid var(--alu); border-top: 2px solid var(--bleu-nuit); padding: 1.25rem 1.5rem 1.4rem; display: grid; gap: 1rem; }
.planche__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem 1rem; }
.planche__title { font: 700 var(--t-lg)/1.2 var(--f-display); font-stretch: 112%; }
.planche__count { font-size: var(--t-xs); color: #6B7785; }
.planche__intro { font-size: var(--t-sm); color: var(--anthracite); max-width: 70ch; margin-top: -.4rem; }

/* Affaires */
.jobs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--alu-clair); }
.job {
  display: grid; grid-template-columns: 6.75rem minmax(0, 1fr) auto 12px; align-items: center; gap: .5rem 1.25rem;
  padding: .95rem .6rem; border-bottom: 1px solid var(--alu-clair); color: var(--noir); text-decoration: none;
  box-shadow: inset 3px 0 0 transparent; transition: box-shadow .15s, background-color .15s;
}
.job:hover { background: #F7FAFD; box-shadow: inset 3px 0 0 var(--bleu); }
.job .job__ref { justify-self: start; }
.job__ref { white-space: nowrap; font-size: var(--t-xs); color: var(--bleu); border: 1px solid #BBD7EE; padding: .25rem .45rem; }
.job__title { font-weight: 600; min-width: 0; }
.job__main { display: grid; gap: .15rem; min-width: 0; }
.job__infos { font-size: var(--t-xs); color: #6B7785; }
.job__go { width: 12px; height: 12px; fill: none; stroke: #9AA4AE; stroke-width: 1.8; transition: transform .15s; }
.job:hover .job__go { stroke: var(--bleu); transform: translateX(2px); }
.job__etat { font-size: var(--t-xs); }
.jobs-fin > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .55rem; padding: .25rem 0; font-size: var(--t-sm); font-weight: 600; color: var(--anthracite); }
.jobs-fin > summary::-webkit-details-marker { display: none; }
.jobs-fin > summary::before { content: ""; border-left: 5px solid currentColor; border-block: 4px solid transparent; transition: transform .15s; }
.jobs-fin[open] > summary::before { transform: rotate(90deg); }
.jobs-fin > summary:hover { color: var(--bleu); }
.jobs-fin > .jobs { margin-top: .6rem; }
.jobs-fin .job__title { color: var(--anthracite); }
@media (max-width: 700px) {
  .job { grid-template-columns: minmax(0, 1fr) auto; }
  .job__main { grid-column: 1 / -1; grid-row: 2; }
  .job__go { display: none; }
}

/* Documents dans l'admin : repère à gauche plutôt qu'un dégradé */
.admin .doc { padding: .9rem .5rem; }
.admin .doc--new { background: none; box-shadow: inset 3px 0 0 var(--bleu); }
.admin .doc--tosign { background: none; box-shadow: inset 3px 0 0 #E0A100; }
.doc__signed--papier { color: var(--bleu-nuit); }
.doc__by { font-weight: 400; color: #6B7785; }

/* « Modifier » : type du document + signature papier */
.doc__manage { grid-column: 2 / -1; }
.doc__manage summary { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; list-style: none; font-size: var(--t-xs); font-weight: 600; color: var(--anthracite); }
.doc__manage summary::-webkit-details-marker { display: none; }
.doc__manage summary::before { content: ""; width: 0; height: 0; border-left: 5px solid currentColor; border-block: 4px solid transparent; transition: transform .15s; }
.doc__manage[open] summary::before { transform: rotate(90deg); }
.doc__manage summary:hover { color: var(--bleu); }
.doc__manage-body { display: grid; gap: 1rem; margin-top: .75rem; padding: 1rem; background: var(--atelier); border-left: 2px solid var(--alu); }
.doc__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; }
.doc__form .field { flex: 1 1 220px; }
.doc__form .field input, .doc__form .field select { padding: .55rem .7rem; font-size: var(--t-sm); }
.doc__form--papier { display: grid; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--alu); }
.doc__form--papier .btn { justify-self: start; }
.doc__form-title { font-weight: 700; font-size: var(--t-sm); }
.doc__form-row { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: .75rem; }
.doc__form input[type="file"] { padding: .45rem; background: var(--blanc); }
@media (max-width: 640px) { .doc__manage { grid-column: 1 / -1; } .doc__form-row { grid-template-columns: 1fr; } }

/* Pièces à fournir (seul bloc à équerres de la fiche quand il manque quelque chose) */
.pieces { --bc: #E0A100; background-color: var(--blanc); border: 1px solid var(--alu); padding: 1.25rem 1.25rem 1.1rem; display: grid; gap: .75rem; }
.pieces.brackets { border-color: transparent; }
.pieces__title { font: 700 var(--t-lg)/1.2 var(--f-display); font-stretch: 112%; }
.pieces__lead { font-size: var(--t-sm); color: var(--anthracite); margin-top: -.4rem; }
.pieces__list { list-style: none; margin: 0; padding: 0; }
.pieces__list li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--alu-clair); }
.pieces__val { font-size: var(--t-xs); font-weight: 600; color: #7A5200; }
.pieces__list li.is-ok .pieces__val { color: #1F8A4C; }
.pieces__help { font-size: var(--t-xs); color: #6B7785; }

/* ---------- Affaire ---------- */
.cartouche__ref { justify-self: start; margin-bottom: .15rem; }
.admin .app .alert { margin-bottom: 1rem; }
/* ---------- Nouveau client ---------- */
.new-client { gap: 1.75rem; }
.admin .field { align-content: start; }   /* un champ voisin plus haut (aide, erreur) n'étire pas celui-ci */
.new-client__group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 1rem; }
.new-client__group + .new-client__group { padding-top: 1.5rem; border-top: 1px solid var(--alu-clair); }
.new-client__group legend { padding: 0; margin-bottom: .75rem; float: left; width: 100%; }
.new-client__group legend + * { clear: both; }
.new-client__actions { padding-top: 1.25rem; border-top: 1px solid var(--alu-clair); }
.mono-input { font-family: var(--f-mono) !important; letter-spacing: .04em; }

/* Étapes « Ce qui se passe ensuite » : vraie séquence, d'où la numérotation */
.flow { list-style: none; margin: 0; padding: 0; counter-reset: flow; display: grid; }
.flow li { counter-increment: flow; position: relative; padding: .7rem 0 .7rem 2.6rem; font-size: var(--t-sm); color: var(--anthracite); border-top: 1px solid var(--alu-clair); }
.flow li::before {
  content: counter(flow); position: absolute; left: 0; top: .7rem; width: 1.75rem; height: 1.75rem;
  display: grid; place-items: center; font: 600 var(--t-xs)/1 var(--f-mono); color: var(--bleu); border: 1.5px solid var(--bleu);
}
.flow strong { color: var(--noir); }

.test-mode { font-size: var(--t-xs); color: #5C4300; background: #FFF4C2; border-left: 3px solid #E0A100; padding: .75rem .9rem; }

/* ---------- Galerie ---------- */
.cartouche__grid--3 { grid-template-columns: repeat(3, minmax(7.5rem, auto)); }
@media (max-width: 1000px) {
  .cartouche__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cartouche__grid--3 > div:nth-child(n) { border-top: 0; border-left: 1px solid var(--alu); }
  .cartouche__grid--3 > div:first-child { border-left: 0; }
}
.admin .gal-new { display: flex; align-items: flex-end; gap: 1rem; margin-bottom: 2rem; padding-block: 1rem 1.1rem; }
.admin .gal-new .field { flex: 1 1 auto; }
.admin .gal-new .field input { padding: .65rem .8rem; font-size: var(--t-sm); }
.admin .gal-hint { margin: 0; font-size: var(--t-xs); color: #6B7785; flex: 1 1 360px; }
.admin .planche.empty { text-align: center; justify-items: center; padding-block: 2.5rem; }

/* Albums : chaque couverture est montée comme un tirage (passe-partout blanc, filet bleu nuit) */
.admin .gal-albums { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.admin .gal-album { border: 1px solid var(--alu); background: var(--blanc); }
.admin .gal-album:hover { border-color: var(--bleu); box-shadow: none; }
.admin .gal-album__cover { margin: 10px 10px 0; outline: 1px solid var(--bleu-nuit); outline-offset: -1px; }
.admin .gal-album__empty { margin: .5rem; border-color: var(--alu); }
.admin .gal-album__body { gap: .35rem; padding: .9rem 1rem .5rem; }
.admin .gal-album__title { font: 700 var(--t-md)/1.25 var(--f-display); font-stretch: 108%; color: var(--noir); }
.admin .gal-album__title:hover { color: var(--bleu); text-decoration: none; }
.gal-album__meta { font-size: var(--t-xs); color: #6B7785; }
.admin .gal-album .state { font-size: var(--t-xs); }
.admin .gal-album__actions { border-top: 1px solid var(--alu-clair); padding: .6rem 1rem .75rem; margin-top: .4rem; }
.admin .gal-icon-btn { border-color: var(--alu); }
.admin .gal-icon-btn:hover:not(:disabled) { border-color: var(--bleu); color: var(--bleu); }

/* Album : envoi + photos */
.admin .gal-drop { border-color: var(--alu); background: var(--atelier); }
.admin .gal-drop.is-over { border-color: var(--bleu); background: #E8F2FA; }
.admin .gal-drop__label { padding-block: 2.5rem; }
.admin .gal-photos { margin-top: 1.5rem; }
.admin .gal-bulk { border-color: var(--alu); background: var(--atelier); margin-bottom: 0; }
.admin .gal-grid { margin: 0; gap: 1.1rem; }
.admin .gal-photo { border-color: var(--alu); }
.admin .gal-photo__img { margin: 8px 8px 0; }
.admin .gal-danger { margin-top: 2.5rem; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-top-color: #B3261E; }
.admin .gal-danger .planche__intro { margin-top: .25rem; }
@media (max-width: 600px) {
  .admin .gal-new { flex-direction: column; align-items: stretch; }
  .admin .gal-danger { grid-template-columns: 1fr; }
}

/* ---------- Médias (vidéos, podcasts) ---------- */
.media-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--alu-clair); }
.media-row { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; gap: 1rem 1.25rem; align-items: center; padding: .9rem .25rem; border-bottom: 1px solid var(--alu-clair); }
.media-row.is-hidden .media-row__thumb { opacity: .45; filter: grayscale(1); }
.media-row__thumb { display: block; aspect-ratio: 16 / 9; background: var(--bleu-nuit); overflow: hidden; outline: 1px solid var(--bleu-nuit); outline-offset: -1px; }
.media-row__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-row__ph { display: grid; place-items: center; width: 100%; height: 100%; color: #C8D6E5; }
.media-row__main { display: grid; gap: .25rem; min-width: 0; }
.media-row__title { font-weight: 700; color: var(--noir); text-decoration: none; }
.media-row__title:hover { color: var(--bleu); text-decoration: underline; }
.media-row__meta { font-size: var(--t-xs); color: #6B7785; }
.media-row .state { font-size: var(--t-xs); }
.media-row__tip { font-size: var(--t-xs); color: #7A5200; }
.media-row__actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; justify-content: flex-end; }
.media-row__actions form { margin: 0; }
@media (max-width: 760px) {
  .media-row { grid-template-columns: 96px minmax(0, 1fr); }
  .media-row__actions { grid-column: 1 / -1; justify-content: flex-start; }
}

.media-form { gap: 1.1rem; }
.media-form__kind { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.media-form__kind legend { font-weight: 600; font-size: var(--t-sm); margin-bottom: .4rem; padding: 0; }
.media-form__embed summary { cursor: pointer; font-weight: 600; font-size: var(--t-sm); color: var(--bleu); }
.media-form__embed[open] summary { margin-bottom: .75rem; }
.media-form .field input[type="file"] { padding: .5rem; font-size: var(--t-sm); }
.fiche__aside .media-form .form__row { grid-template-columns: 1fr; }
.media-preview { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; outline: 1px solid var(--bleu-nuit); outline-offset: -1px; }
.media-preview--ph { display: grid; place-items: center; background: var(--bleu-nuit); color: #C8D6E5; }
.media-slug { word-break: break-all; font-size: var(--t-xs) !important; }
.admin .media-danger { grid-template-columns: 1fr; margin-top: 0; }
/* Boutons « Ajouter » (colonne de droite) */
.media-add-btns { display: grid; gap: .75rem; }
.media-add-btn {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: .9rem;
  padding: .85rem; border: 1px solid var(--alu); background: var(--blanc); color: var(--noir); text-decoration: none;
  box-shadow: inset 3px 0 0 transparent; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.media-add-btn:hover { border-color: var(--bleu); background: #F7FAFD; box-shadow: inset 3px 0 0 var(--bleu); }
.media-add-btn:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }
.media-add-btn__icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--bleu); color: var(--blanc); }
.media-add-btn__icon--video::before { content: ""; border-left: 14px solid currentColor; border-block: 9px solid transparent; margin-left: 4px; }
.media-add-btn__icon--podcast { background: var(--bleu-nuit); }
.media-add-btn__icon--podcast svg { width: 34px; height: auto; fill: none; stroke: currentColor; stroke-width: 3; }
.media-add-btn__icon--podcast .dash { display: none; }
.media-add-btn__text { display: grid; gap: .15rem; }
.media-add-btn__text strong { font-size: var(--t-sm); }
.media-add-btn__text span { font-size: var(--t-xs); color: #6B7785; }

.media-add-btn__icon--nuit { background: var(--bleu-nuit); }
.media-add-btn__icon:not(.media-add-btn__icon--podcast) svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Fenêtre d'ajout */
.media-dialog {
  width: min(760px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0;
  border: 0; border-top: 3px solid var(--bleu); background: var(--blanc); color: var(--noir);
  box-shadow: 0 30px 80px -20px rgba(11,42,74,.55);
}
.media-dialog::backdrop { background: rgba(11,42,74,.6); }
.media-dialog__head {
  position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.5rem; background: var(--blanc); border-bottom: 1px solid var(--alu-clair);
}
.media-dialog__close { width: 36px; height: 36px; display: grid; place-items: center; color: var(--anthracite); text-decoration: none; border: 1px solid var(--alu); font-size: 1rem; }
.media-dialog__close:hover { border-color: var(--noir); color: var(--noir); }
.media-dialog__body { padding: 1.25rem 1.5rem 1.5rem; }
.media-dialog--simple { width: min(560px, calc(100vw - 2rem)); }
.media-dialog__intro { margin-bottom: 1rem; font-size: var(--t-sm); color: var(--anthracite); }
.media-dialog .media-form .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .media-dialog .media-form .form__row { grid-template-columns: 1fr; } }

.media-lists { display: grid; gap: 1.5rem; }

/* Petits écrans : la barre latérale devient une barre en haut */
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; padding: .9rem 1rem; }
  .admin-side__role { display: none; }
  .admin-side__logo { width: 104px; }
  .admin-nav { grid-auto-flow: column; gap: 0; overflow-x: auto; }
  .admin-nav__link { white-space: nowrap; padding: .55rem .7rem; border-left: 0; border-bottom: 3px solid transparent; }
  .admin-nav__link[aria-current="page"] { border-bottom-color: var(--bleu-ciel); }
  .admin-nav__link svg { display: none; }
  .admin-side__foot { margin: 0 0 0 auto; padding: 0; border: 0; display: flex; align-items: center; gap: .75rem; }
  .admin-side__site, .admin-side__name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .admin-nav__link, .admin .table tbody tr { transition: none; }
}

/* =========================================================
   ESPACE CLIENT — ajouts au cadre commun
   ========================================================= */
/* Barre latérale : compteurs, contact, société */
.admin-nav__nb { margin-left: auto; min-width: 22px; padding: .25rem .35rem; text-align: center; background: #E0A100; color: var(--noir); font: 600 .75rem/1 var(--f-mono); }
.espace .admin-side__foot { padding-top: 0; border-top: 0; }
.espace-contact { display: grid; gap: .35rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(200,214,229,.18); }
.espace-contact__title { font-weight: 600; color: var(--blanc); }
.espace-contact a { color: #C8D6E5; text-decoration: none; font-size: var(--t-xs); overflow-wrap: anywhere; }
.espace-contact a.mono { color: var(--blanc); font-size: var(--t-md); }
.espace-contact a:hover { color: var(--blanc); text-decoration: underline; }
.espace-contact__court { display: none; }
.espace .admin-side__name { line-height: 1.3; }
.espace .admin-side__name small { display: block; font-weight: 400; font-size: var(--t-xs); color: #8FA9C4; overflow: hidden; text-overflow: ellipsis; }
a.admin-side__logout { text-decoration: none; }

/* À faire : la date cède la place avant le texte, l'action reste un vrai bouton */
.todo-board__sub { display: block; margin-top: .1rem; font-size: var(--t-xs); color: #6B7785; }
.todo-board__item--piece::before { border-color: #E0A100; }
.todo-board--client .todo-board__what { overflow-wrap: anywhere; }
.todo-board--client .todo-board__item > :last-child { grid-column: 4; justify-self: stretch; min-width: 8.5rem; text-align: center; }

/* Affaires */
.fiche--espace { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
.fiche--espace:not(:has(> .fiche__aside)) { grid-template-columns: 1fr; }   /* aperçu : pas de colonne d'envoi */
.espace .docs > .doc:last-child { border-bottom: 0; }
.affaire-envoyer { display: none; justify-self: start; margin-top: .35rem; }
.espace #envoyer { scroll-margin-top: 1rem; }
.chantiers { border-top: 1px solid var(--alu-clair); }
.chantier {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .75rem 1.5rem;
  padding: 1.1rem .75rem; border-bottom: 1px solid var(--alu-clair); color: var(--noir); text-decoration: none;
  box-shadow: inset 3px 0 0 transparent; transition: box-shadow .15s, background-color .15s;
}
.chantiers > li:last-child .chantier { border-bottom: 0; }
.chantier:hover { background: #F7FAFD; box-shadow: inset 3px 0 0 var(--bleu); }
.chantier__main { display: grid; gap: .2rem; min-width: 0; }
.chantier__title { font-weight: 600; }
.chantier__sub { font-size: var(--t-xs); color: #6B7785; }
.chantier__chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.chantier__chips .chip--new { margin-left: 0; }
.chantier__go { color: var(--bleu); font-weight: 600; }

.chantiers-finis summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .5rem; font-size: var(--t-sm); font-weight: 600; color: var(--anthracite); }
.chantiers-finis summary::-webkit-details-marker { display: none; }
.chantiers-finis summary::before { content: ""; border-left: 5px solid currentColor; border-block: 4px solid transparent; transition: transform .15s; }
.chantiers-finis[open] summary::before { transform: rotate(90deg); }
.chantiers-finis summary:hover { color: var(--bleu); }
.chantiers-finis .chantiers { margin-top: .75rem; }

/* Derniers documents */
.recents { border-top: 1px solid var(--alu-clair); }
.recents__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: .75rem .5rem; border-bottom: 1px solid var(--alu-clair); }
.recents__item:last-child { border-bottom: 0; }
.recents__item--remplace :is(.doc__name, .filetype) { opacity: .6; }
.recents__item--remplace .doc__name { text-decoration: line-through; }
.planche__tout { font-size: var(--t-sm); font-weight: 600; color: var(--bleu); }
.recents__main { display: grid; gap: .15rem; min-width: 0; }
.recents .filetype { width: 34px; height: 40px; font-size: .5625rem; }

.espace .pieces__list li { font-size: var(--t-sm); }
.espace .pieces__val { white-space: nowrap; }
/* Dossier, signature, mot de passe */
.pieces__list a.pieces__val { color: var(--bleu); }
.cartouche__grid dd.cartouche__texte { font: 600 var(--t-sm)/1.25 var(--f-body); letter-spacing: 0; }
.signer__nom { overflow-wrap: anywhere; }
.espace .sign__form { --bc: var(--bleu); background-color: var(--blanc); padding: 1.4rem 1.5rem; top: 1.5rem; }
.compte { max-width: 620px; }
.compte .cartouche { grid-template-columns: 1fr; }
.compte__id { color: var(--noir); font-weight: 600; overflow-wrap: anywhere; }
.compte__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.espace .apercu-bar .wrap { max-width: none; }

@media (max-width: 1000px) { .affaire-envoyer { display: inline-flex; } .fiche--espace { grid-template-columns: 1fr; } .fiche--espace .fiche__aside { order: 0; } }
@media (max-width: 900px) {
  .espace .admin-side { padding-bottom: 0; }
  .espace .admin-nav { order: 3; flex: 1 0 100%; grid-auto-columns: 1fr; border-top: 1px solid rgba(200,214,229,.18); }
  .espace .admin-nav__link { justify-content: center; gap: .4rem; white-space: nowrap; padding-inline: .25rem; }
  .admin-nav__nb { margin-left: 0; }
  .espace-contact { padding: 0; border: 0; }
  .espace-contact__title, .espace-contact a:not(.mono) { display: none; }
  .espace-contact a.mono { font: 500 var(--t-xs)/1 var(--f-body); padding: .5rem .75rem; border: 1px solid rgba(255,255,255,.3); }
  .espace-contact__court { display: inline; }
  .espace-contact__num { display: none; }
  .espace .admin-side__user { display: none; }
}
@media (max-width: 700px) {
  .chantier { grid-template-columns: minmax(0, 1fr) auto; padding-inline: .25rem; }
  .todo-board--client .todo-board__item > :last-child { grid-column: 2; justify-self: start; }
  .recents__item { grid-template-columns: auto minmax(0, 1fr); }
  .recents__item > :last-child:not(.recents__main) { grid-column: 2; justify-self: start; margin-left: 0; }
}
@media (max-width: 420px) {
  .espace .admin-nav { grid-auto-columns: auto; justify-content: space-between; }
  .espace .admin-nav__link { font-size: var(--t-xs); padding-inline: .15rem; gap: .3rem; }
}
@media (prefers-reduced-motion: reduce) { .chantier, .chantiers-finis summary::before { transition: none; } }

/* Application installable (includes/pwa.php) */
.pwa[hidden], .pwa [hidden] { display: none; }
.pwa__bouton, .pwa__ios summary {
  display: inline-flex; align-items: center; gap: .55rem; padding: .6rem .8rem; cursor: pointer; list-style: none;
  font: 600 var(--t-sm)/1.2 var(--f-body); color: var(--blanc); background: rgba(90,155,208,.16); border: 1px solid rgba(90,155,208,.55); border-radius: var(--radius);
}
.pwa__bouton:hover, .pwa__ios summary:hover { background: rgba(90,155,208,.3); }
.pwa__bouton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pwa__ios summary::-webkit-details-marker { display: none; }
.pwa__ios p { margin-top: .5rem; font-size: var(--t-sm); color: #C8D6E5; }
.pwa__ios strong { color: var(--blanc); }
.acces__texte .pwa { margin-top: 1.25rem; }
/* application ouverte : « Retour au site » et « Voir le site » n'y ont pas leur place */
@media (display-mode: standalone) {
  .acces__retour, .admin-side__site { display: none; }
  .admin-side { padding-top: max(1rem, env(safe-area-inset-top, 0px)); }
}
.admin-side .pwa__bouton { white-space: nowrap; font-size: var(--t-xs); }
/* téléphone : proposée en bas de page plutôt que dans l'en-tête */
.pwa-bas { display: none; }
@media (max-width: 900px) {
  .admin-side .pwa { display: none; }
  .pwa-bas { display: block; padding: 0 clamp(20px, 3.5vw, 52px) 2.5rem; }
  .pwa-bas .pwa__bouton, .pwa-bas .pwa__ios summary { color: var(--bleu-nuit); background: var(--blanc); border-color: var(--alu); }
  .pwa-bas .pwa__ios p, .pwa-bas .pwa__ios strong { color: var(--anthracite); }
  .admin .app:has(+ .pwa-bas) { min-height: 0; padding-bottom: 2rem; }
}

/* Admin : classer une affaire */
.classer { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--alu-clair); display: grid; gap: .4rem; justify-items: start; }
.inline-form[open] > form.classer { margin-top: 1.25rem; }

/* Prix et reconnaissance */
.prix-apercu { width: 100%; height: auto; display: block; outline: 1px solid var(--bleu-nuit); outline-offset: -1px; }

/* Vues 3D d'un devis (QR codes) */
.doc__3d { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem 1rem; margin-top: .35rem; }
.doc__3d .btn { gap: .45rem; }
.doc__3d .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.doc__3d summary { cursor: pointer; padding: .5rem 0; font-size: var(--t-xs); font-weight: 600; color: var(--bleu); }
.doc__3d ol { display: grid; gap: .3rem; padding: .25rem 0 .4rem; font-size: var(--t-sm); }

/* Devis PDF -> affaire, puis e-mail d'envoi */
.depot { border: 1px solid var(--alu); background: var(--blanc); scroll-margin-top: 1.5rem; }
.depot .depot__zone {
  grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; justify-items: start; gap: .5rem 1.25rem; text-align: left;
  margin: -1px; padding: 1.25rem 1.4rem; border: 1.5px dashed #9DB9D1; background: #F3F8FC;
}
.depot .depot__zone:hover, .depot .depot__zone.is-over { border-color: var(--bleu); background: #E8F2FA; }
.depot .depot__icone { width: 46px; height: 46px; fill: var(--blanc); stroke: var(--bleu); stroke-width: 2; }
.depot__fleche, .depot__coche { fill: none; stroke-width: 2.5; }
.depot__coche { display: none; }
.depot__texte { display: grid; gap: .2rem; min-width: 0; }
.depot .dropzone__title { font: 700 var(--t-md)/1.25 var(--f-display); font-stretch: 112%; }
.depot .dropzone__hint { color: var(--anthracite); max-width: 58ch; line-height: 1.45; }
.depot .dropzone__files { font: 400 var(--t-xs)/1.4 var(--f-mono); color: var(--anthracite); overflow-wrap: anywhere; }
.depot__lu { font-size: var(--t-sm); color: var(--bleu-nuit); }
.depot__lu:empty, .depot .dropzone__files:empty { display: none; }
.depot__choisir { pointer-events: none; }
.depot__suite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding: 1.1rem 1.4rem; }
.depot .check small { display: block; font-size: var(--t-xs); color: #6B7785; }
.js .depot:not(.a-fichier) .depot__suite { display: none; }
.depot.a-fichier .depot__zone { border-style: solid; border-color: var(--bleu); background: var(--blanc); }
.depot.a-fichier .depot__fleche, .depot.a-fichier .dropzone__hint, .depot.a-erreur .dropzone__files { display: none; }
.depot.a-fichier .depot__coche { display: block; }
.depot.a-fichier .depot__choisir { background: none; border-color: var(--alu); color: var(--noir); }
.depot.a-erreur .dropzone__title { color: #7A1219; }
@media (max-width: 700px) {
  .depot .depot__zone { grid-template-columns: auto minmax(0, 1fr); padding: 1.1rem; }
  .depot__choisir { grid-column: 1 / -1; justify-self: stretch; }
  .depot__suite .btn { width: 100%; }
}
.devis-attente { display: grid; gap: .7rem; padding: 1.25rem 1.4rem; background: #FFF8E8; border: 1px solid #F0DCA8; border-left: 4px solid #E0A100; scroll-margin-top: 1.5rem; }
.devis-attente h3 { font: 700 var(--t-lg)/1.2 var(--f-display); font-stretch: 112%; }
.devis-attente__fichier { font: 400 var(--t-xs)/1.4 var(--f-mono); color: var(--anthracite); overflow-wrap: anywhere; }

/* Affaire : un devis, son avancement, son e-mail */
.dv { position: relative; display: grid; gap: 1.1rem; padding: 1.25rem 0; border-top: 1px solid var(--alu-clair); scroll-margin-top: 1.5rem; }
.planche__head + .dv { border-top: 0; padding-top: .25rem; }
.dv__tete { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center; }
.dv__nom { min-width: 0; }
.dv__numero { font: 700 var(--t-lg)/1.25 var(--f-display); font-stretch: 112%; }
.dv__fichier { font-size: var(--t-sm); color: var(--anthracite); overflow-wrap: anywhere; }
.dv__fichier:hover { color: var(--bleu); }
.dv__taille { margin-left: .4rem; font-size: var(--t-xs); color: #6B7785; white-space: nowrap; }
.etapes { list-style: none; margin: 0; padding: 0; display: flex; }
.etape { position: relative; flex: 1 1 0; display: grid; align-content: start; gap: .1rem; padding: 1.35rem .75rem 0 0; font-size: var(--t-xs); color: #6B7785; }
.etape::before { content: ""; position: absolute; left: 0; top: 0; width: 12px; height: 12px; background: var(--blanc); border: 2px solid #9AA4AE; z-index: 1; }
.etape::after { content: ""; position: absolute; left: 12px; right: 0; top: 5px; height: 2px; background: var(--alu-clair); }
.etape:last-child::after { display: none; }
.etape.is-fait::before { background: var(--bleu); border-color: var(--bleu); }
.etape.is-fait:has(+ .is-fait)::after { background: var(--bleu); }
.etape__nom { font-weight: 600; }
.etape.is-fait .etape__nom { color: var(--noir); }
.etape:not(.is-fait):nth-child(2) .etape__nom { color: #7A5200; }
.etape:not(.is-fait):nth-child(2)::before { border-color: #E0A100; }
.dv__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .6rem; }
.dv__envoi > summary { list-style: none; cursor: pointer; }
.dv__envoi > summary::-webkit-details-marker { display: none; }
.dv__envoi[open] { flex: 1 0 100%; }
.dv__envoi[open] > summary { background: none; border-color: var(--alu); color: var(--noir); }
.dv__mail { margin: .9rem 0 .5rem; padding: 1.25rem; background: #F3F8FC; border: 1px solid #C7DCEE; border-top: 2px solid var(--bleu); }
.dv__a { font-size: var(--t-sm); color: var(--anthracite); }
.joint { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: .6rem 1rem; padding: .75rem .9rem; background: var(--blanc); border: 1px solid var(--alu); }
.joint .filetype { width: 32px; height: 38px; font-size: .5625rem; }
.joint__nom { display: grid; font-size: var(--t-sm); overflow-wrap: anywhere; }
.joint__nom a { font-weight: 600; color: var(--noir); }
.joint__nom span { font-size: var(--t-xs); color: #6B7785; }
.joint .check { align-items: center; }
.joint .check input { margin-top: 0; }
.dv > .doc__manage { grid-column: auto; margin-top: -1.1rem; }
:is(.dv, .doc) > .doc__manage > summary { position: absolute; top: 1.25rem; right: 0; width: 34px; height: 34px; justify-content: center; font-size: 1.25rem; line-height: 1; }
:is(.dv, .doc) > .doc__manage > summary::before { display: none; }
:is(.dv, .doc) > .doc__manage > summary:hover, :is(.dv, .doc) > .doc__manage[open] > summary { background: var(--atelier); }
.planche__head + .dv > .doc__manage > summary { top: .25rem; }
.admin:not(.espace) .doc { position: relative; padding-right: 2.9rem; }
.doc > .doc__manage:not([open]) { margin-top: -1rem; }
.doc > .doc__manage[open] { margin-right: -2.4rem; }
.doc > .doc__manage > summary { top: .75rem; }

/* Documents séparés : envoyés par le client / par CAMITEC */
.docs-groupe { display: grid; gap: .6rem; }
.docs-groupe + .docs-groupe { margin-top: .75rem; }
.docs-groupe__titre { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .55rem .7rem; font: 600 var(--t-sm)/1.3 var(--f-body); }
.docs-groupe__icone { display: grid; place-items: center; width: 28px; height: 28px; color: var(--blanc); }
.docs-groupe__icone svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.docs-groupe__nb { font-size: var(--t-xs); font-weight: 400; color: var(--anthracite); }
.docs-groupe--client .docs-groupe__titre { background: #E8F2FA; }
.docs-groupe--client .docs-groupe__icone { background: var(--bleu); }
.docs-groupe--camitec .docs-groupe__titre { background: var(--atelier); }
.docs-groupe--camitec .docs-groupe__icone { background: var(--bleu-nuit); }
.docs-groupe .docs { border-top: 0; }
.docs-groupe .doc:last-child { border-bottom: 0; }
.docs-groupe .docs-empty { padding: .25rem .7rem .5rem; }
.dv__tete { padding-right: 2.5rem; }
.dv__actions:not(:has(*)) { display: none; }
.doc__envoi { font-size: var(--t-xs); color: #7A5200; }
.doc__envoi.is-envoye { color: #1F8A4C; }
@media (max-width: 700px) {
  .etapes { display: grid; gap: .9rem; }
  .etape { padding: 0 0 0 1.5rem; }
  .etape::before { top: .2rem; }
  .etape::after { left: 5px; right: auto; top: 1rem; width: 2px; height: calc(100% + .1rem); }
  .joint { grid-template-columns: auto minmax(0, 1fr); }
  .joint .check, .joint > .btn, .joint > .field__help { grid-column: 1 / -1; }
  .dv__mail { padding: 1rem; }
}
/* Version remplacée d'un devis */
.doc--remplace :is(.doc__name, .doc__meta, .doc__3d), .doc--remplace .filetype { opacity: .6; }
.doc--remplace .doc__name { text-decoration: line-through; }

/* Réglages : onglets et variables */
.onglets { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin-top: .6rem; }
.onglets a { padding: .4rem 0; font-size: var(--t-sm); font-weight: 600; color: var(--anthracite); text-decoration: none; border-bottom: 3px solid transparent; }
.onglets a:hover { color: var(--bleu); }
.onglets a[aria-current="page"] { color: var(--bleu-nuit); border-bottom-color: var(--bleu); }
.variables { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.variables li { display: grid; justify-items: start; gap: .2rem; font-size: var(--t-xs); color: #6B7785; }
.variable { padding: .3rem .5rem; font-size: var(--t-xs); color: var(--bleu); background: #F3F8FC; border: 1px solid #BBD7EE; cursor: pointer; }
.variable:hover { border-color: var(--bleu); background: #E8F2FA; }
.admin .field textarea[aria-invalid="true"] { border-color: var(--feu); }
@media (max-width: 1000px) { .js-modele .fiche__aside { order: 0; } }
