/* L'Espace projets de Filmea, repris de la maquette validée par Axel le 25/11/2026. Même famille que le site Filmea
   (bleu nuit, turquoise, verre), avec des surfaces plus opaques : c'est un outil de travail, il doit rester lisible. */
:root {
  --texte: #f1f4fb; --doux: #bdc5d8; --tres-doux: #8e98b0;
  --accent: #34d3bd; --accent-fort: #6ae6d4; --accent-rgb: 52, 211, 189; --sur-accent: #052a24;
  --surface: linear-gradient(160deg, #232c4ff5 0%, #1a2140f5 100%);
  --surface-2: #ffffff0b; --surface-3: #ffffff14;
  --ligne: #ffffff1c; --ligne-forte: #ffffff36; --champ: #0c1226b3;
  --ombre: inset 0 1px 0 #ffffff17, 0 20px 50px -26px #000000e6;
  --flou: blur(22px) saturate(1.25);
  --rayon: 20px; --rayon-moyen: 14px; --rayon-petit: 10px;
  --police: -apple-system, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --courbe: cubic-bezier(.165, .84, .44, 1);
  /* les statuts : ambre = c'est à vous, bleu = chez l'autre, vert = fait, corail = retouche à faire */
  --ambre: #ffc061; --ambre-rgb: 255, 192, 97;
  --bleu: #93b6ff; --bleu-rgb: 147, 182, 255;
  --vert: #5be09a; --vert-rgb: 91, 224, 154;
  --corail: #ff9580; --corail-rgb: 255, 149, 128;
  /* les étapes */
  --e-brief: #a5b0cc; --e-planche: #c0a8ff; --e-video: #86b4ff; --e-hd: #5fd8e6; --e-prete: #5be09a;
  --barre-h: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: #121630; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; color: var(--texte); font-family: var(--police); -webkit-font-smoothing: antialiased; }
body { font-size: 15px; line-height: 1.5; background: transparent; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, video { display: block; max-width: 100%; }
svg { display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }

/* Le fond : le ciel de nuit de Filmea, fixe et calme (pas d'animation dans l'outil) */
.fond { position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(90% 70% at 88% 105%, #6a3f78 0%, #34305f 32%, transparent 70%),
              radial-gradient(70% 60% at 5% -10%, #24396e 0%, transparent 60%), #121630; }
.fond::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0e122899 0%, #0e122840 50%, #0e122899 100%); }

.surface { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); box-shadow: var(--ombre); -webkit-backdrop-filter: var(--flou); backdrop-filter: var(--flou); }

/* Boutons, repris de Filmea */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ligne-forte);
  background: #ffffff12; font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: transform 160ms var(--courbe), filter 160ms, background 160ms; }
.bouton:hover { background: #ffffff1f; }
.bouton:active { transform: scale(.98); }
.bouton svg { width: 18px; height: 18px; flex: none; }
.bouton.principal { background: linear-gradient(180deg, #5fe3cf, var(--accent)); color: var(--sur-accent); border-color: transparent; box-shadow: inset 0 1px 0 #ffffff66, 0 12px 26px -12px rgba(var(--accent-rgb), .8); }
.bouton.principal:hover { filter: brightness(1.06); }
.bouton.discret { background: transparent; border-color: transparent; color: var(--doux); }
.bouton.discret:hover { color: var(--texte); background: #ffffff0f; }
.bouton.petit { height: 34px; padding: 0 13px; font-size: 13.5px; gap: 6px; }
.bouton.petit svg { width: 16px; height: 16px; }
.bouton.icone { width: 42px; padding: 0; }
.bouton.petit.icone { width: 34px; }

/* Pastilles de statut */
.statut { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 650; white-space: nowrap; line-height: 1.5; }
.statut::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.statut.ambre { color: var(--ambre); background: rgba(var(--ambre-rgb), .14); }
.statut.bleu { color: var(--bleu); background: rgba(var(--bleu-rgb), .13); }
.statut.vert { color: var(--vert); background: rgba(var(--vert-rgb), .13); }
.statut.corail { color: var(--corail); background: rgba(var(--corail-rgb), .14); }
.statut.gris { color: var(--doux); background: #ffffff10; }
.puce { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; background: #ffffff10; color: var(--doux); white-space: nowrap; }
.puce b { font-weight: 750; }
.puce.ambre { color: var(--ambre); background: rgba(var(--ambre-rgb), .13); }
.puce.bleu { color: var(--bleu); background: rgba(var(--bleu-rgb), .12); }
.puce.vert { color: var(--vert); background: rgba(var(--vert-rgb), .12); }
.puce.corail { color: var(--corail); background: rgba(var(--corail-rgb), .13); }
.type { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; color: var(--doux); padding: 2px 8px 2px 6px; border-radius: 7px; background: #ffffff10; white-space: nowrap; }
.type svg { width: 14px; height: 14px; color: var(--accent); }

/* La barre du haut */
.barre { position: sticky; top: 0; z-index: 30; height: var(--barre-h); display: flex; align-items: center; gap: 18px; padding: 0 max(20px, calc((100vw - 1376px) / 2));
  background: #11152cdd; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid var(--ligne); }
.marque { display: flex; align-items: center; gap: 12px; }
.marque .logo { height: 38px; width: auto; margin: 0 -6px 0 -8px; }
.marque .symbole { display: none; height: 38px; width: 38px; margin: 0 -6px; }
.marque-nom { padding-left: 12px; border-left: 1px solid var(--ligne-forte); color: var(--doux); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: 10px; }
.nav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; color: var(--doux); font-weight: 600; font-size: 14.5px; }
.nav a svg { width: 17px; height: 17px; }
.nav a:hover { color: var(--texte); background: #ffffff0d; }
.nav a.actif { color: var(--texte); background: #ffffff14; }
.barre-droite { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.bascule-role { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: #0b1024; border: 1px solid var(--ligne-forte); }
.bascule-role .etiquette { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px 0 9px; color: var(--tres-doux); font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.bascule-role .etiquette svg { width: 15px; height: 15px; }
.bascule-role button { height: 32px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--doux); font-weight: 650; font-size: 13.5px; white-space: nowrap; }
.bascule-role button.actif { background: var(--accent); color: var(--sur-accent); }
.bascule-role .court { display: none; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 750; background: #ffffff1a; border: 1px solid var(--ligne-forte); flex: none; color: var(--texte); }
.avatar.filmea { background: rgba(var(--accent-rgb), .18); color: var(--accent-fort); border-color: rgba(var(--accent-rgb), .4); }
.avatar.mini { width: 24px; height: 24px; font-size: 10px; }
.nav-tel { display: none; }

/* Pages */
.page { width: min(1376px, 100% - 40px); margin: 0 auto; padding: 28px 0 80px; }
.page.etroite { width: min(1180px, 100% - 40px); }
.tete-page { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.surtitre { color: var(--tres-doux); font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.tete-page h1 { font-size: 32px; line-height: 1.1; font-weight: 750; letter-spacing: -0.025em; }
.tete-page .sous { color: var(--doux); margin-top: 6px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.retour-lien { display: inline-flex; align-items: center; gap: 4px; color: var(--doux); font-weight: 600; font-size: 14px; margin: 0 0 14px -4px; }
.retour-lien svg { width: 18px; height: 18px; }
.retour-lien:hover { color: var(--texte); }

/* Les chiffres de l'accueil admin */
.resume { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.tuile { padding: 16px 18px; display: flex; gap: 14px; align-items: center; }
.tuile .rond { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.tuile .rond svg { width: 21px; height: 21px; }
.tuile b { display: block; font-size: 26px; line-height: 1.1; font-weight: 750; letter-spacing: -0.02em; }
.tuile span { color: var(--doux); font-size: 13.5px; }
.tuile.ambre .rond { background: rgba(var(--ambre-rgb), .15); color: var(--ambre); }
.tuile.bleu .rond { background: rgba(var(--bleu-rgb), .14); color: var(--bleu); }
.tuile.vert .rond { background: rgba(var(--vert-rgb), .14); color: var(--vert); }
.tuile.corail .rond { background: rgba(var(--corail-rgb), .15); color: var(--corail); }

.filtres { display: flex; gap: 6px; flex-wrap: wrap; }
.filtre { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--ligne); background: #ffffff08; color: var(--doux); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.filtre .n { font-size: 12px; padding: 0 6px; border-radius: 999px; background: #ffffff14; color: var(--texte); }
.filtre.actif { background: #ffffff1c; color: var(--texte); border-color: var(--ligne-forte); }
.filtre .pt { width: 7px; height: 7px; border-radius: 50%; }

/* Les cards de projets */
.grille-projets { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 16px; margin-top: 16px; }
.carte-projet { padding: 20px; display: flex; flex-direction: column; gap: 14px; transition: border-color 160ms, transform 160ms var(--courbe); }
.carte-projet:hover { border-color: var(--ligne-forte); transform: translateY(-2px); }
.cp-tete { display: flex; align-items: center; gap: 12px; }
.logo-client { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 17px; color: #fff; background: var(--c, #445); flex: none; box-shadow: inset 0 1px 0 #ffffff40; }
.logo-client.grand { width: 54px; height: 54px; border-radius: 15px; font-size: 22px; }
.cp-tete b { display: block; font-size: 15px; }
.cp-tete small { color: var(--tres-doux); font-size: 13px; }
.cp-montant { margin-left: auto; color: var(--doux); font-size: 13px; font-weight: 600; white-space: nowrap; }
.carte-projet h2 { font-size: 20px; line-height: 1.2; font-weight: 720; }
.cp-sous { color: var(--doux); font-size: 13.5px; margin-top: 3px; }
.cp-vignettes { display: flex; gap: 6px; }
.cp-vignettes .vi { width: 46px; aspect-ratio: 9 / 14; border-radius: 8px; overflow: hidden; background: #0b1024; border: 1px solid var(--ligne); flex: none; }
.cp-vignettes .vi img { width: 100%; height: 100%; object-fit: cover; }
.cp-vignettes .plus { display: grid; place-items: center; color: var(--doux); font-size: 13px; font-weight: 700; }
.barre-etapes { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: #ffffff10; gap: 2px; }
.barre-etapes span { display: block; height: 100%; }
.cp-legende { display: flex; justify-content: space-between; color: var(--doux); font-size: 13px; margin-top: 7px; gap: 10px; flex-wrap: wrap; }
.cp-legende .etapes-leg { display: flex; gap: 10px; flex-wrap: wrap; }
.cp-legende .etapes-leg span { display: inline-flex; align-items: center; gap: 5px; color: var(--tres-doux); font-size: 12px; }
.cp-legende .etapes-leg i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.cp-attentes { display: flex; gap: 8px; flex-wrap: wrap; }
.cp-pied { margin-top: auto; display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--ligne); color: var(--tres-doux); font-size: 13px; min-width: 0; }
.cp-pied svg { width: 15px; height: 15px; flex: none; }
.cp-pied span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carte-ajout { display: grid; place-items: center; text-align: center; gap: 10px; padding: 28px; border: 1.5px dashed var(--ligne-forte); border-radius: var(--rayon); color: var(--doux); background: #ffffff05; min-height: 200px; }
.carte-ajout svg { width: 26px; height: 26px; color: var(--accent); margin: 0 auto 4px; }
.carte-ajout b { color: var(--texte); display: block; }

.titre-section { font-size: 19px; font-weight: 720; margin: 30px 0 12px; }
.grille-attente { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }

/* La liste des clients */
.table-clients { width: 100%; border-collapse: collapse; }
.table-clients th { text-align: left; font-size: 12.5px; color: var(--tres-doux); font-weight: 650; padding: 14px 18px; border-bottom: 1px solid var(--ligne); text-transform: uppercase; letter-spacing: .04em; }
.table-clients td { padding: 14px 18px; border-bottom: 1px solid var(--ligne); vertical-align: middle; }
.table-clients tr:last-child td { border-bottom: 0; }
.table-clients tbody tr:hover { background: #ffffff06; }
.qui { display: flex; align-items: center; gap: 12px; min-width: 0; }
.qui b { display: block; }
.qui small { color: var(--tres-doux); font-size: 13px; }
.lien-projet { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: #ffffff0f; font-size: 13px; font-weight: 600; margin: 2px 4px 2px 0; }
.lien-projet:hover { background: #ffffff1c; }
.td-actions { text-align: right; white-space: nowrap; }
.cartes-clients { display: none; }

/* Le projet */
.tete-projet { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.tp-gauche { display: flex; gap: 16px; align-items: center; min-width: 0; }
.tp-gauche h1 { font-size: 30px; line-height: 1.1; font-weight: 750; letter-spacing: -0.025em; }
.tp-gauche .sous { color: var(--doux); margin-top: 5px; font-size: 14px; }
.membres { display: flex; align-items: center; gap: 0; }
.membres .avatar { margin-left: -8px; border: 2px solid #1a2140; }
.membres .avatar:first-child { margin-left: 0; }
.barre-outils { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.bascule-vue { display: flex; padding: 3px; border-radius: 12px; background: #0b1024; border: 1px solid var(--ligne); }
.bascule-vue a { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 9px; color: var(--doux); font-weight: 600; font-size: 13.5px; }
.bascule-vue a svg { width: 16px; height: 16px; }
.bascule-vue a.actif { background: #ffffff1c; color: var(--texte); }

/* Le tableau en colonnes */
.colonnes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: start; }
.colonne { background: #0d122ab3; border: 1px solid var(--ligne); border-radius: 18px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.colonne > header { display: flex; align-items: center; gap: 8px; padding: 6px 6px 4px; }
.colonne > header h2 { font-size: 14px; font-weight: 700; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.colonne > header .n { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--doux); background: #ffffff12; border-radius: 999px; padding: 1px 8px; }
.pt-etape { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--e); box-shadow: 0 0 0 3px color-mix(in srgb, var(--e) 22%, transparent); }
.colonne .vide { color: var(--tres-doux); font-size: 13px; text-align: center; padding: 18px 8px; border: 1px dashed var(--ligne); border-radius: 12px; }
.ajout-carte { display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border-radius: 12px; border: 1px dashed var(--ligne-forte); background: transparent; color: var(--doux); font-weight: 600; font-size: 13.5px; }
.ajout-carte svg { width: 16px; height: 16px; }
.ajout-carte:hover { color: var(--texte); background: #ffffff08; }
.fantome { color: var(--tres-doux); font-size: 13px; text-align: center; padding: 10px; border-radius: 12px; background: #ffffff06; }

.carte-v { display: flex; gap: 11px; padding: 9px; border-radius: 14px; background: var(--surface); border: 1px solid var(--ligne); box-shadow: 0 10px 24px -18px #000; position: relative; transition: border-color 160ms, transform 160ms var(--courbe); min-width: 0; }
.carte-v:hover { border-color: var(--ligne-forte); transform: translateY(-1px); }
.carte-v.a-vous { border-color: rgba(var(--ambre-rgb), .45); box-shadow: inset 3px 0 0 var(--ambre), 0 10px 24px -18px #000; }
.cv-vignette { width: 58px; aspect-ratio: 9 / 15; border-radius: 9px; overflow: hidden; flex: none; background: #0b1024; border: 1px solid var(--ligne); position: relative; align-self: flex-start; }
.cv-vignette img { width: 100%; height: 100%; object-fit: cover; }
.vignette-vide { width: 100%; height: 100%; display: grid; place-items: center; color: var(--tres-doux); background: linear-gradient(160deg, #2a3358, #151b33); }
.vignette-vide svg { width: 22px; height: 22px; }
.cv-corps { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.cv-haut { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.cv-format { font-size: 11.5px; color: var(--tres-doux); font-weight: 600; }
.cv-titre { font-size: 14px; font-weight: 680; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cv-corps .statut { align-self: flex-start; font-size: 12px; }
.cv-pied { display: flex; align-items: center; gap: 8px; color: var(--tres-doux); font-size: 12px; margin-top: auto; }
.cv-pied .cv-ret { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.cv-pied .cv-ret svg { width: 13px; height: 13px; }
.cv-pied .cv-ret.a-faire { color: var(--corail); font-weight: 650; }
.cv-pied .date { margin-left: auto; white-space: nowrap; }

/* La liste */
.liste-videos { overflow: hidden; }
.ligne-v { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, .9fr) 24px; gap: 16px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--ligne); }
.ligne-v:last-child { border-bottom: 0; }
a.ligne-v:hover { background: #ffffff07; }
.ligne-v.entete { color: var(--tres-doux); font-size: 12.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; padding-top: 14px; padding-bottom: 12px; }
.ligne-v .lv-titre { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ligne-v .lv-titre img, .ligne-v .lv-titre .mini-vide { width: 34px; aspect-ratio: 9 / 14; border-radius: 6px; object-fit: cover; flex: none; border: 1px solid var(--ligne); }
.ligne-v .mini-vide { background: linear-gradient(160deg, #2a3358, #151b33); }
.ligne-v .lv-titre b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ligne-v .lv-titre small { display: flex; gap: 6px; align-items: center; margin-top: 3px; }
.points { display: flex; gap: 4px; align-items: center; }
.points i { width: 18px; height: 5px; border-radius: 3px; background: #ffffff1a; display: block; }
.points i.fait { background: var(--vert); }
.points i.cours { background: var(--accent); }
.lv-etape { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--doux); }
.lv-ret { font-size: 13px; color: var(--doux); }
.lv-ret.a-faire { color: var(--corail); font-weight: 650; }
.lv-date { font-size: 13px; color: var(--tres-doux); }
.ligne-v .chevron { color: var(--tres-doux); }
.ligne-v .chevron svg { width: 18px; height: 18px; }

/* Le détail d'une vidéo */
.tete-video { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.tete-video h1 { font-size: 28px; line-height: 1.15; font-weight: 750; letter-spacing: -0.025em; }
.tete-video .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 9px; color: var(--tres-doux); font-size: 13px; }
.note-vue { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(var(--accent-rgb), .08); border: 1px solid rgba(var(--accent-rgb), .25); color: var(--doux); font-size: 13.5px; margin-bottom: 16px; }
.note-vue svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.note-vue b { color: var(--texte); }

.fil-etapes { list-style: none; margin: 0 0 18px; padding: 16px 18px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.fil-etapes li { position: relative; min-width: 0; }
.fil-etapes li:not(:last-child)::after { content: ""; position: absolute; top: 17px; left: calc(36px + 8px); right: 8px; height: 2px; border-radius: 2px; background: #ffffff1a; }
.fil-etapes li.faite:not(:last-child)::after { background: linear-gradient(90deg, var(--vert), rgba(var(--vert-rgb), .5)); }
.fil-etapes a, .fil-etapes .pas { display: flex; flex-direction: column; gap: 3px; padding: 0 12px 0 0; border-radius: 12px; min-width: 0; }
.fil-etapes .rond { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #0b1024; border: 2px solid #ffffff26; color: var(--tres-doux); font-weight: 750; font-size: 14px; margin-bottom: 6px; position: relative; z-index: 1; }
.fil-etapes .rond svg { width: 18px; height: 18px; }
.fil-etapes .nom { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fil-etapes .date { font-size: 12.5px; color: var(--tres-doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fil-etapes li.faite .rond { background: rgba(var(--vert-rgb), .16); border-color: var(--vert); color: var(--vert); }
.fil-etapes li.encours .rond { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .2); }
.fil-etapes li.encours.a-vous .rond { background: var(--ambre); border-color: var(--ambre); color: #3a2600; box-shadow: 0 0 0 5px rgba(var(--ambre-rgb), .2); }
.fil-etapes li.encours .date { color: var(--accent-fort); font-weight: 650; }
.fil-etapes li.encours.a-vous .date { color: var(--ambre); }
.fil-etapes li.avenir .nom { color: var(--tres-doux); }
.fil-etapes li.vue .nom { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.panneau { padding: 22px; min-width: 0; }
.panneau-tete { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.panneau-tete h2 { font-size: 20px; font-weight: 720; }
.panneau-tete .qui-date { color: var(--tres-doux); font-size: 13px; }
.panneau-tete .droite { margin-left: auto; display: flex; gap: 8px; }
.badge-propose { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: rgba(var(--ambre-rgb), .14); color: var(--ambre); border: 1px solid rgba(var(--ambre-rgb), .35); font-size: 13px; font-weight: 700; }
.badge-propose svg { width: 15px; height: 15px; }
.section-titre { font-size: 12.5px; color: var(--tres-doux); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
.section-titre:first-child { margin-top: 0; }

/* Le brief */
.brief-blocs { display: grid; gap: 14px; }
.brief-bloc h3 { font-size: 13.5px; color: var(--doux); font-weight: 700; margin-bottom: 3px; }
.brief-bloc p { font-size: 15px; line-height: 1.55; }
.brief-bloc ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.brief-bloc li { padding: 5px 11px; border-radius: 9px; background: #ffffff0f; border: 1px solid var(--ligne); font-size: 14px; }
.brief-infos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.brief-infos span { padding: 5px 11px; border-radius: 9px; background: #0b1024; border: 1px solid var(--ligne); font-size: 13.5px; color: var(--doux); }
.brief-infos b { color: var(--texte); font-weight: 650; }
.medias { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.media { border-radius: 12px; overflow: hidden; background: #0b1024; border: 1px solid var(--ligne); }
.media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.media span { display: block; padding: 6px 8px; font-size: 12px; color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fichiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.fichier { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; background: #ffffff0a; border: 1px solid var(--ligne); min-width: 0; }
.fichier .ic { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: rgba(var(--bleu-rgb), .14); color: var(--bleu); flex: none; }
.fichier .ic svg { width: 19px; height: 19px; }
.fichier b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fichier small { color: var(--tres-doux); font-size: 12.5px; }
.fichier > div { min-width: 0; flex: 1; }
.fichier .bouton { flex: none; }
.vocal { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 999px; background: #0b1024; border: 1px solid var(--ligne); max-width: 520px; }
.vocal .lire { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--accent); color: var(--sur-accent); flex: none; }
.vocal .lire svg { width: 18px; height: 18px; }
.vocal .onde { flex: 1; height: 34px; display: flex; align-items: center; gap: 2px; min-width: 0; overflow: hidden; }
.vocal .onde i { flex: 1; min-width: 2px; border-radius: 2px; background: #ffffff40; display: block; }
.vocal .onde i.joue { background: var(--accent); }
.vocal .duree { font-size: 13px; color: var(--doux); font-variant-numeric: tabular-nums; flex: none; }
.vocal .qui-vocal { font-size: 12.5px; color: var(--tres-doux); flex: none; }

/* Le formulaire de brief vide */
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label, .champ .lab { font-size: 13.5px; font-weight: 650; color: var(--doux); }
.champ input, .champ textarea, .champ select { width: 100%; border-radius: 12px; border: 1px solid var(--ligne-forte); background: var(--champ); padding: 11px 13px; font-size: 15px; outline: none; }
.champ textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.champ input:focus, .champ textarea:focus, .champ select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); }
.champ .aide { font-size: 12.5px; color: var(--tres-doux); }
.depot { display: grid; place-items: center; text-align: center; gap: 6px; padding: 22px; border-radius: 14px; border: 1.5px dashed var(--ligne-forte); background: #ffffff05; color: var(--doux); font-size: 14px; }
.depot svg { width: 24px; height: 24px; color: var(--accent); margin: 0 auto; }
.depot b { color: var(--texte); }
.depot small { color: var(--tres-doux); font-size: 12.5px; }
.rangee { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.form-grille { display: grid; gap: 16px; }

/* La planche d'images */
.planche { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.plan { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.plan-image { position: relative; border-radius: 12px; overflow: hidden; background: #0b1024; border: 1px solid var(--ligne); aspect-ratio: 9 / 16; }
.plan-image img { width: 100%; height: 100%; object-fit: cover; }
.plan-image .num { position: absolute; top: 8px; left: 8px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 8px; background: #0b1024e6; display: grid; place-items: center; font-weight: 800; font-size: 13px; border: 1px solid var(--ligne-forte); }
.plan-image .duree { position: absolute; top: 8px; right: 8px; padding: 2px 7px; border-radius: 7px; background: #0b1024cc; font-size: 12px; font-weight: 650; color: var(--doux); }
.plan-image .marque-ret { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 8px; font-size: 11.5px; font-weight: 700; }
.plan-image .marque-ret svg { width: 13px; height: 13px; }
.plan-image .marque-ret.faite { background: #0b4a33e6; color: var(--vert); }
.plan-image .marque-ret.a-faire { background: #5a2418e6; color: var(--corail); }
.plan.cible .plan-image { border-color: var(--corail); box-shadow: 0 0 0 2px rgba(var(--corail-rgb), .5); }
.plan p { font-size: 13px; line-height: 1.4; color: var(--doux); }
.plan .bouton { align-self: flex-start; }

/* La vidéo */
.versions { display: flex; gap: 4px; padding: 3px; border-radius: 11px; background: #0b1024; border: 1px solid var(--ligne); }
.versions button { border: 0; background: transparent; color: var(--doux); height: 30px; padding: 0 11px; border-radius: 8px; font-weight: 650; font-size: 13px; }
.versions button.actif { background: #ffffff1c; color: var(--texte); }
.zone-video { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 22px; align-items: start; }
.lecteur { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 9 / 16; border: 1px solid var(--ligne); }
.lecteur video { width: 100%; height: 100%; object-fit: cover; }
.lecteur .jouer { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #0b1024b3; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; box-shadow: 0 0 0 1px #ffffff40; transition: opacity 200ms; }
.lecteur .jouer svg { width: 26px; height: 26px; margin-left: 3px; }
.lecteur.en-lecture .jouer { opacity: 0; }
.lecteur.en-lecture:hover .jouer { opacity: 1; }
.lecteur .etiquette-v { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 8px; background: #0b1024cc; font-size: 12px; font-weight: 700; }
.infos-video { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.infos-video .ligne-info { display: flex; gap: 8px; flex-wrap: wrap; }
.liste-marques { display: grid; gap: 8px; }
.marque-ligne { display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: start; padding: 10px 12px; border-radius: 12px; background: #ffffff08; border: 1px solid var(--ligne); text-align: left; width: 100%; }
.marque-ligne:hover { background: #ffffff10; }
.marque-ligne .tc { font-variant-numeric: tabular-nums; font-weight: 750; font-size: 13px; padding: 2px 8px; border-radius: 7px; background: #0b1024; border: 1px solid var(--ligne-forte); }
.marque-ligne p { font-size: 13.5px; line-height: 1.4; color: var(--texte); }
.ajout-retouche { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; border: 1.5px dashed rgba(var(--corail-rgb), .5); color: var(--doux); font-size: 13.5px; }
.ajout-retouche .bouton { margin-left: auto; }

.timeline-bloc { margin-top: 20px; }
.timeline { position: relative; height: 64px; border-radius: 12px; cursor: pointer; margin-top: 26px; }
.tl-pellicule { position: absolute; inset: 0; display: flex; border-radius: 12px; overflow: hidden; border: 1px solid var(--ligne-forte); }
.tl-pellicule img { flex: 1; min-width: 0; height: 100%; object-fit: cover; opacity: .65; }
.tl-progression { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(var(--accent-rgb), .22); border-radius: 12px 0 0 12px; pointer-events: none; }
.tl-tete { position: absolute; top: -6px; bottom: -6px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1px #0007; pointer-events: none; }
.tl-marque { position: absolute; top: -26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; border: 0; background: transparent; padding: 0; }
.tl-marque span { width: 24px; height: 24px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); display: grid; place-items: center; font-size: 11.5px; font-weight: 800; box-shadow: 0 4px 10px -4px #000; }
.tl-marque span b { transform: rotate(45deg); }
.tl-marque::after { content: ""; width: 2px; height: 66px; margin-top: 2px; opacity: .8; }
.tl-marque.faite span { background: var(--vert); color: #04301a; }
.tl-marque.faite::after { background: var(--vert); }
.tl-marque.a-faire span { background: var(--corail); color: #3d0f05; }
.tl-marque.a-faire::after { background: var(--corail); }
.tl-temps { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12.5px; color: var(--tres-doux); font-variant-numeric: tabular-nums; }
.tl-temps b { color: var(--texte); font-weight: 650; }
.tl-legende { display: flex; gap: 14px; font-size: 12.5px; color: var(--tres-doux); }
.tl-legende span { display: inline-flex; align-items: center; gap: 6px; }
.tl-legende i { width: 9px; height: 9px; border-radius: 50%; display: block; }

/* Finalisation et téléchargement */
.finalisation { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: center; }
.finalisation .vi { border-radius: 14px; overflow: hidden; aspect-ratio: 9 / 16; border: 1px solid var(--ligne); position: relative; }
.finalisation .vi img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.finalisation .vi .voile { position: absolute; inset: 0; display: grid; place-items: center; background: #0b102480; }
.finalisation .vi .voile svg { width: 34px; height: 34px; color: var(--accent-fort); }
.jauge { height: 10px; border-radius: 99px; background: #ffffff14; overflow: hidden; margin: 14px 0 8px; }
.jauge span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-fort)); }
.etapes-hd { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 9px; }
.etapes-hd li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--doux); }
.etapes-hd li svg { width: 18px; height: 18px; flex: none; }
.etapes-hd li.fait { color: var(--texte); }
.etapes-hd li.fait svg { color: var(--vert); }
.etapes-hd li.cours svg { color: var(--accent); }
.finalisation h3 { font-size: 22px; font-weight: 720; }
.finalisation p.doux { color: var(--doux); margin-top: 6px; }
.telechargements { display: grid; gap: 8px; margin-top: 16px; }

/* Retouches et échanges */
.fil { padding: 0; display: flex; flex-direction: column; position: sticky; top: calc(var(--barre-h) + 16px); max-height: calc(100vh - var(--barre-h) - 32px); min-width: 0; }
.fil > header { padding: 18px 18px 12px; border-bottom: 1px solid var(--ligne); }
.fil > header h2 { font-size: 17px; font-weight: 720; }
.fil-compte { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.fil-liste { list-style: none; margin: 0; padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; flex: 1; }
.ev { display: flex; align-items: center; gap: 8px; color: var(--tres-doux); font-size: 12.5px; padding: 0 4px; }
.ev svg { width: 15px; height: 15px; flex: none; }
.ev .d { margin-left: auto; white-space: nowrap; }
.ret { padding: 11px 12px; border-radius: 13px; background: #ffffff09; border: 1px solid var(--ligne); border-left: 3px solid var(--corail); }
.ret.faite { border-left-color: var(--vert); }
.ret.surligne { background: rgba(var(--accent-rgb), .1); border-color: rgba(var(--accent-rgb), .55); }
.ret-tete { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ret-cible { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 7px; background: #0b1024; border: 1px solid var(--ligne-forte); font-size: 12px; font-weight: 700; color: var(--texte); font-variant-numeric: tabular-nums; }
.ret-cible svg { width: 13px; height: 13px; color: var(--corail); }
.ret.faite .ret-cible svg { color: var(--vert); }
.ret-tete .statut { margin-left: auto; font-size: 11.5px; padding: 2px 8px 2px 7px; }
.ret p { font-size: 14px; line-height: 1.45; }
.ret-pied { display: flex; align-items: center; gap: 7px; margin-top: 8px; color: var(--tres-doux); font-size: 12px; }
.ret-pied .bouton { margin-left: auto; }
.msg { display: flex; gap: 9px; align-items: flex-start; }
.msg .bulle { padding: 9px 12px; border-radius: 4px 14px 14px 14px; background: #ffffff10; font-size: 14px; line-height: 1.45; }
.msg .bulle small { display: block; color: var(--tres-doux); font-size: 12px; margin-bottom: 2px; }
.msg.moi { flex-direction: row-reverse; }
.msg.moi .bulle { border-radius: 14px 4px 14px 14px; background: rgba(var(--accent-rgb), .14); }
.fil-saisie { display: flex; gap: 6px; padding: 12px; border-top: 1px solid var(--ligne); align-items: center; }
.fil-saisie input { flex: 1; min-width: 0; height: 40px; border-radius: 999px; border: 1px solid var(--ligne-forte); background: var(--champ); padding: 0 14px; font-size: 14.5px; outline: none; }
.fil-saisie input:focus { border-color: var(--accent); }
.fil-saisie .bouton.icone { width: 38px; height: 38px; }

/* La barre d'actions de l'étape, collée en bas */
.barre-actions { position: sticky; bottom: 14px; z-index: 20; margin-top: 16px; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; border-radius: 18px;
  background: #1c2445f7; border: 1px solid var(--ligne-forte); box-shadow: 0 18px 40px -16px #000; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.barre-actions .texte { color: var(--doux); font-size: 13.5px; line-height: 1.4; min-width: 0; }
.barre-actions .texte b { color: var(--texte); display: block; font-size: 14.5px; }
.barre-actions .boutons { margin-left: auto; display: flex; gap: 8px; flex: none; }
.bouton .c { display: none; }
.onglets-colonnes { display: none; }
.finalisation.prete + .telechargements { margin-top: 20px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* Fenêtres */
.voile-modale { position: fixed; inset: 0; z-index: 50; background: #070a18b8; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; animation: apparait 180ms var(--courbe); }
.modale { width: min(560px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 24px; background: linear-gradient(160deg, #252f52, #1b2242); border: 1px solid var(--ligne-forte); border-radius: 22px; box-shadow: 0 30px 80px -20px #000; }
.modale.large { width: min(1000px, 100%); }
.modale-tete { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.modale-tete h2 { font-size: 21px; font-weight: 740; }
.modale-tete p { color: var(--doux); font-size: 14px; margin-top: 4px; }
.modale-tete .fermer { margin-left: auto; flex: none; }
.modale-pied { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.choix { display: flex; gap: 6px; flex-wrap: wrap; }
.choix button { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px; border-radius: 11px; border: 1px solid var(--ligne-forte); background: #ffffff08; color: var(--doux); font-weight: 600; font-size: 14px; }
.choix button svg { width: 16px; height: 16px; }
.choix button.actif { border-color: var(--accent); background: rgba(var(--accent-rgb), .14); color: var(--texte); }
.case { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--doux); }
.case input { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 2px; flex: none; }
@keyframes apparait { from { opacity: 0; } }

.invitation { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.apercu-mail { border-radius: 16px; background: #0f1530; border: 1px solid var(--ligne); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.apercu-mail .entetes { font-size: 12.5px; color: var(--tres-doux); display: grid; gap: 3px; padding: 0 4px 12px; border-bottom: 1px solid var(--ligne); }
.apercu-mail .entetes b { color: var(--doux); font-weight: 600; }
.mail { background: #1a2147; border: 1px solid #2c3566; border-radius: 18px; padding: 24px 22px; }
.mail .m-logo { height: 30px; width: auto; margin: -4px 0 16px -6px; }
.mail h3 { font-size: 19px; line-height: 1.3; margin-bottom: 10px; color: #fff; }
.mail p { color: #c9d0e4; font-size: 14px; line-height: 1.55; margin-bottom: 12px; }
.mail blockquote { margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid #61c7bc; background: #ffffff08; border-radius: 0 10px 10px 0; color: #e3e8f5; font-size: 14px; font-style: italic; }
.mail .m-bouton { display: inline-block; background: #61c7bc; color: #0f1c2f; font-weight: 700; font-size: 14.5px; padding: 11px 20px; border-radius: 999px; margin: 4px 0 14px; }
.mail .m-pied { color: #8590a8; font-size: 12px; line-height: 1.5; margin: 6px 0 0; }
.lab-apercu { font-size: 12.5px; color: var(--tres-doux); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 80; padding: 12px 18px; border-radius: 14px; background: #f1f4fb; color: #10162e; font-weight: 600; font-size: 14px; box-shadow: 0 16px 40px -10px #000; opacity: 0; pointer-events: none; transition: opacity 200ms, transform 200ms var(--courbe); max-width: calc(100vw - 32px); }
#toast.vu { opacity: 1; transform: translate(-50%, 0); }

/* Écrans moyens */
@media (max-width: 1240px) {
  .resume { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: minmax(0, 1fr) 340px; }
  .colonnes { grid-template-columns: repeat(5, 250px); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
  .colonne { scroll-snap-align: start; }
}
@media (max-width: 980px) {
  .detail { grid-template-columns: minmax(0, 1fr); }
  .fil { position: static; max-height: none; }
  .invitation { grid-template-columns: minmax(0, 1fr); }
}

/* Téléphone */
@media (max-width: 720px) {
  :root { --barre-h: 56px; }
  body { font-size: 15px; }
  .barre { padding: 0 12px; gap: 8px; }
  .marque .logo { display: none; }
  .marque .symbole { display: block; height: 34px; width: 34px; }
  .marque-nom { padding-left: 8px; font-size: 14px; }
  .nav { display: none; }
  .bascule-role .etiquette { display: none; }
  .bascule-role button { padding: 0 11px; height: 30px; font-size: 13px; }
  .bascule-role .long { display: none; }
  .bascule-role .court { display: inline; }
  .barre-droite { gap: 8px; }
  .avatar { width: 32px; height: 32px; }
  .nav-tel { display: flex; gap: 4px; padding: 8px 12px 0; position: sticky; top: var(--barre-h); z-index: 25; background: #11152cdd; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid var(--ligne); }
  .nav-tel a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; height: 40px; color: var(--doux); font-weight: 650; font-size: 14px; border-bottom: 2px solid transparent; }
  .nav-tel a svg { width: 17px; height: 17px; }
  .nav-tel a.actif { color: var(--texte); border-bottom-color: var(--accent); }

  .page, .page.etroite { width: calc(100% - 32px); padding: 18px 0 110px; }
  .tete-page { margin-bottom: 16px; align-items: flex-start; }
  .tete-page h1 { font-size: 26px; }
  .tete-page .actions { width: 100%; }
  .tete-page .actions .bouton { flex: 1; }
  .resume { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
  .tuile { padding: 12px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .tuile .rond { width: 34px; height: 34px; border-radius: 10px; }
  .tuile .rond svg { width: 18px; height: 18px; }
  .tuile b { font-size: 22px; }
  .tuile span { font-size: 12.5px; line-height: 1.3; }
  .filtres { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
  .filtres::-webkit-scrollbar { display: none; }
  .grille-projets { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .carte-projet { padding: 16px; gap: 12px; }
  .cp-legende .etapes-leg { display: none; }

  .table-clients-bloc { display: none; }
  .cartes-clients { display: grid; gap: 10px; }
  .carte-client { padding: 14px; display: grid; gap: 10px; }
  .carte-client .rangee { justify-content: space-between; }

  .tete-projet { margin-bottom: 14px; gap: 14px; }
  .tp-gauche { gap: 12px; align-items: flex-start; }
  .tp-gauche h1 { font-size: 23px; }
  .logo-client.grand { width: 44px; height: 44px; font-size: 18px; border-radius: 13px; }
  .tete-projet .actions { width: 100%; }
  .tete-projet .actions .bouton { flex: 1; }
  .barre-outils { gap: 10px; }
  .barre-outils .filtres { order: 2; width: calc(100% + 32px); }
  .bascule-vue { width: 100%; }
  .bascule-vue a { flex: 1; justify-content: center; }
  .colonnes { grid-template-columns: repeat(5, 82vw); gap: 10px; margin: 0 -16px; padding: 0 16px 10px; scroll-padding: 0 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .colonnes::-webkit-scrollbar { display: none; }
  .onglets-colonnes { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 10px; padding: 0 16px; scrollbar-width: none; position: sticky; top: var(--barre-h); z-index: 15; padding-top: 8px; padding-bottom: 8px; background: #11152ce6; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .onglets-colonnes::-webkit-scrollbar { display: none; }
  .onglets-colonnes button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ligne); background: #ffffff08; color: var(--doux); font-weight: 650; font-size: 13.5px; white-space: nowrap; flex: none; }
  .onglets-colonnes button b { color: var(--texte); font-weight: 750; }
  .onglets-colonnes button.actif { border-color: var(--ligne-forte); background: #ffffff1c; color: var(--texte); }
  .onglets-colonnes .pt-etape { width: 8px; height: 8px; box-shadow: none; }
  .barre-outils .filtres { display: none; }

  .liste-videos .entete { display: none; }
  .ligne-v { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 12px 14px; }
  .ligne-v .lv-etape { grid-column: 1; }
  .ligne-v .lv-statut { grid-column: 1; }
  .ligne-v .lv-ret, .ligne-v .lv-date { display: none; }
  .ligne-v .chevron { grid-column: 2; grid-row: 1 / span 3; }

  .tete-video { margin-bottom: 12px; }
  .tete-video h1 { font-size: 23px; }
  .tete-video .actions { display: none; }
  .note-vue { font-size: 13px; padding: 9px 12px; }
  .fil-etapes { display: flex; overflow-x: auto; padding: 14px; gap: 0; margin: 0 -16px 14px; border-radius: 0; border-left: 0; border-right: 0; scrollbar-width: none; }
  .fil-etapes::-webkit-scrollbar { display: none; }
  .fil-etapes li { flex: 0 0 auto; width: 116px; }
  .fil-etapes li:not(:last-child)::after { left: 44px; right: 6px; }
  .fil-etapes .nom { font-size: 13.5px; }
  .fil-etapes .date { font-size: 12px; white-space: normal; line-height: 1.3; }
  .panneau { padding: 16px; }
  .panneau-tete { margin-bottom: 14px; }
  .panneau-tete h2 { font-size: 18px; }
  .planche { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .medias { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fichiers { grid-template-columns: minmax(0, 1fr); }
  .zone-video { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .lecteur { width: min(100%, 236px); margin: 0 auto; }
  .finalisation.prete .telechargements { grid-column: 1 / -1; }
  .finalisation { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: start; }
  .finalisation h3 { font-size: 18px; }
  .barre-actions { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; border-radius: 18px 18px 0 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-left: 0; border-right: 0; border-bottom: 0; gap: 8px; }
  .barre-actions .texte { display: none; }
  .barre-actions .boutons { margin: 0; width: 100%; }
  .barre-actions .boutons .bouton { flex: 1; height: 46px; padding: 0 12px; min-width: 0; }
  .barre-actions .bouton .l { display: none; }
  .barre-actions .bouton .c { display: inline; overflow: hidden; text-overflow: ellipsis; }
  .voile-modale { padding: 0; place-items: end stretch; }
  .modale, .modale.large { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
  .modale-pied .bouton { flex: 1; }
  #toast { bottom: 90px; }
}

/* ── Ajouts du vrai site (25/11/2026) ── */
[hidden] { display: none !important; }
.barre .compte { position: relative; }
.barre .compte > button { border: 0; padding: 0; background: transparent; border-radius: 50%; }
.menu-compte { position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; padding: 8px; border-radius: 16px; background: #1c2445; border: 1px solid var(--ligne-forte); box-shadow: 0 20px 50px -18px #000; z-index: 40; }
.menu-compte .qui-menu { padding: 8px 10px 10px; border-bottom: 1px solid var(--ligne); margin-bottom: 6px; }
.menu-compte .qui-menu b { display: block; font-size: 14.5px; }
.menu-compte .qui-menu small { color: var(--tres-doux); font-size: 12.5px; word-break: break-all; }
.menu-compte button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--doux); font-weight: 600; font-size: 14px; text-align: left; }
.menu-compte button:hover { background: #ffffff10; color: var(--texte); }
.menu-compte button svg { width: 17px; height: 17px; }
.role-pastille { font-size: 11.5px; font-weight: 700; color: var(--accent-fort); background: rgba(var(--accent-rgb), .14); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }

/* La connexion */
.connexion { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.carte-connexion { width: min(420px, 100%); padding: 30px 26px; display: grid; gap: 18px; }
.carte-connexion .logo-connexion { display: flex; align-items: center; gap: 12px; }
.carte-connexion .logo-connexion img { height: 40px; width: auto; margin-left: -8px; }
.carte-connexion .logo-connexion span { padding-left: 12px; border-left: 1px solid var(--ligne-forte); color: var(--doux); font-weight: 600; }
.carte-connexion h1 { font-size: 25px; line-height: 1.2; font-weight: 750; letter-spacing: -0.02em; }
.carte-connexion p { color: var(--doux); font-size: 14.5px; }
.carte-connexion .bouton { width: 100%; height: 46px; }
.carte-connexion .lien-discret { background: none; border: 0; color: var(--doux); font-weight: 600; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; padding: 0; justify-self: start; }
.champ-code { letter-spacing: .5em; font-size: 24px !important; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.erreur-ligne { color: var(--corail); font-size: 13.5px; font-weight: 600; }
.signature { color: var(--tres-doux); font-size: 12.5px; text-align: center; }
.pied-site { text-align: center; color: var(--tres-doux); font-size: 12.5px; padding: 0 16px 28px; }

/* Les états vides */
.vide-page { padding: 40px 24px; text-align: center; display: grid; gap: 10px; justify-items: center; color: var(--doux); }
.vide-page svg { width: 30px; height: 30px; color: var(--accent); }
.vide-page b { color: var(--texte); font-size: 17px; }
.chargement { padding: 60px 0; text-align: center; color: var(--tres-doux); }

/* Les dépôts de fichiers */
label.depot { cursor: pointer; transition: border-color 160ms, background 160ms; }
label.depot:hover, .depot.survol { border-color: var(--accent); background: rgba(var(--accent-rgb), .06); }
.depot input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.depot.compact { padding: 14px; grid-template-columns: auto 1fr; text-align: left; place-items: center start; column-gap: 12px; }
.depot.compact svg { margin: 0; grid-row: span 2; }
.brouillons { display: grid; gap: 8px; }
.brouillons .fichier .bouton { color: var(--doux); }
.ic.vert { background: rgba(var(--vert-rgb), .14) !important; color: var(--vert) !important; }
.ic.violet { background: rgba(192, 168, 255, .14) !important; color: #c0a8ff !important; }
.plan.brouillon .plan-image { border-style: dashed; border-color: var(--ligne-forte); }
.plan .mini-champs { display: grid; grid-template-columns: minmax(0, 1fr) 62px; gap: 6px; }
.plan .mini-champs input { width: 100%; min-width: 0; border-radius: 9px; border: 1px solid var(--ligne-forte); background: var(--champ); padding: 7px 9px; font-size: 13px; outline: none; }
.plan .mini-champs input:focus { border-color: var(--accent); }
.plan .retirer { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 8px; border: 0; display: grid; place-items: center; background: #0b1024e6; color: var(--texte); }
.plan .retirer svg { width: 15px; height: 15px; }
.bloc-depot { margin-bottom: 22px; padding: 16px; border-radius: 16px; background: rgba(var(--ambre-rgb), .05); border: 1px solid rgba(var(--ambre-rgb), .25); display: grid; gap: 14px; }
.bloc-depot h3 { font-size: 15px; font-weight: 720; display: flex; align-items: center; gap: 8px; }
.bloc-depot h3 svg { width: 18px; height: 18px; color: var(--ambre); }
.bloc-depot .aide { color: var(--tres-doux); font-size: 13px; }
.case-ligne { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--doux); }
.case-ligne input { width: 17px; height: 17px; accent-color: var(--accent); }

/* La file des envois, en bas à droite */
#envois { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: grid; gap: 8px; width: min(340px, calc(100vw - 32px)); pointer-events: none; }
.envoi { pointer-events: auto; padding: 11px 13px; border-radius: 14px; background: #1c2445f7; border: 1px solid var(--ligne-forte); box-shadow: 0 16px 40px -14px #000; font-size: 13px; display: grid; gap: 7px; }
.envoi .ligne { display: flex; gap: 10px; align-items: center; }
.envoi b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.envoi .pc { color: var(--doux); font-variant-numeric: tabular-nums; }
.envoi .jauge { margin: 0; height: 6px; }
.envoi.rate { border-color: rgba(var(--corail-rgb), .6); }
.envoi.rate .pc { color: var(--corail); }

/* L'enregistreur de vocal */
.enregistreur { display: grid; gap: 16px; justify-items: center; text-align: center; padding: 8px 0; }
.enregistreur .rond-micro { width: 84px; height: 84px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--corail); color: #3d0f05; box-shadow: 0 0 0 8px rgba(var(--corail-rgb), .15); }
.enregistreur .rond-micro svg { width: 34px; height: 34px; }
.enregistreur .rond-micro.actif { animation: pulse 1.4s infinite; }
.enregistreur .rond-micro.arret { background: #fff; color: #10162e; }
.enregistreur .chrono { font-size: 30px; font-weight: 750; font-variant-numeric: tabular-nums; }
.enregistreur audio { width: 100%; }
@keyframes pulse { 50% { box-shadow: 0 0 0 16px rgba(var(--corail-rgb), .05); } }

/* Le vocal lu dans la page */
.vocal { margin: 0 0 8px; }
.vocal .lire.en-cours { background: #fff; }
.vocal audio { display: none; }
.vocaux { display: grid; gap: 8px; }

/* Les pièces jointes du fil et des retouches */
.pj { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pj img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--ligne); }
.pj .vocal { flex: 1 1 100%; padding: 6px 10px 6px 6px; gap: 8px; }
.pj .vocal .lire { width: 32px; height: 32px; }
.pj .vocal .onde { height: 24px; }
.pj a.fichier-mini { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 9px; background: #ffffff10; font-size: 12.5px; font-weight: 600; max-width: 100%; }
.pj a.fichier-mini svg { width: 14px; height: 14px; flex: none; }
.pj a.fichier-mini span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.puces-jointes { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px; }
.puces-jointes:empty { display: none; }
.puce-jointe { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; background: #ffffff12; font-size: 12.5px; font-weight: 600; max-width: 100%; }
.puce-jointe span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.puce-jointe button { width: 22px; height: 22px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #ffffff14; }
.puce-jointe button svg { width: 12px; height: 12px; }
.fil-pied { border-top: 1px solid var(--ligne); padding-top: 10px; }
.fil-pied .fil-saisie { border-top: 0; padding-top: 6px; }
.fil-saisie textarea { flex: 1; min-width: 0; min-height: 40px; max-height: 140px; border-radius: 20px; border: 1px solid var(--ligne-forte); background: var(--champ); padding: 9px 14px; font-size: 14.5px; outline: none; resize: none; line-height: 1.4; }
.fil-saisie textarea:focus { border-color: var(--accent); }

/* Le brief en texte libre */
.brief-texte { font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.media video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #000; }
.media a { display: block; }
.anciens { margin-top: 20px; border-top: 1px solid var(--ligne); padding-top: 14px; }
.anciens summary { cursor: pointer; color: var(--doux); font-weight: 650; font-size: 13.5px; }
.anciens .ancien { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #ffffff07; border: 1px solid var(--ligne); }
.anciens .ancien small { color: var(--tres-doux); font-size: 12.5px; display: block; margin-bottom: 6px; }

/* L'aperçu de l'e-mail d'invitation */
.apercu-mail iframe { width: 100%; height: 520px; border: 0; border-radius: 14px; background: #0f1530; }
.cases-projets { display: grid; gap: 6px; max-height: 220px; overflow: auto; padding: 2px; }
.cases-projets label { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px; border: 1px solid var(--ligne-forte); background: #ffffff06; font-size: 14px; color: var(--doux); cursor: pointer; }
.cases-projets label:has(input:checked) { border-color: var(--accent); background: rgba(var(--accent-rgb), .1); color: var(--texte); }
.cases-projets input { width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.cases-projets small { color: var(--tres-doux); margin-left: auto; font-size: 12.5px; white-space: nowrap; }
.lien-projet .retirer-lien { border: 0; background: transparent; color: var(--tres-doux); padding: 0 0 0 2px; display: grid; place-items: center; }
.lien-projet .retirer-lien svg { width: 13px; height: 13px; }
.lien-projet .retirer-lien:hover { color: var(--corail); }
.liste-membres { display: grid; gap: 8px; }
.liste-membres .membre { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #ffffff08; border: 1px solid var(--ligne); }
.liste-membres .membre > div { flex: 1; min-width: 0; }
.liste-membres .membre b { display: block; font-size: 14.5px; }
.liste-membres .membre small { color: var(--tres-doux); font-size: 12.5px; overflow-wrap: anywhere; }
.note-interne { white-space: pre-wrap; }
.danger { color: var(--corail) !important; }
.zone-danger { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ligne); display: flex; gap: 10px; flex-wrap: wrap; }

/* Les formats autres que la story */
.lecteur.f-169 { aspect-ratio: 16 / 9; } .lecteur.f-11 { aspect-ratio: 1 / 1; } .lecteur.f-45 { aspect-ratio: 4 / 5; }
.zone-video.large { grid-template-columns: minmax(0, 1fr); }
.plan-image.f-169 { aspect-ratio: 16 / 9; } .plan-image.f-11 { aspect-ratio: 1 / 1; } .plan-image.f-45 { aspect-ratio: 4 / 5; }
.planche.large { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.lecteur video { object-fit: contain; }
.finalisation .vi .vignette-vide svg { width: 30px; height: 30px; }

@media (max-width: 720px) {
  .barre .role-pastille { display: none; }
  .apercu-mail iframe { height: 460px; }
  .zone-video.large .lecteur { width: 100%; }
  .planche.large { grid-template-columns: minmax(0, 1fr); }
  #envois { bottom: 84px; }
  .tete-video .actions { display: flex; }
  .tete-video .actions .bouton { flex: 1; }
  .fil-saisie textarea { font-size: 16px; }
  .champ input, .champ textarea, .champ select { font-size: 16px; }
}
