/* Apparence commune : espace client et écrans de l'équipe.
   Polices du système uniquement (aucune police chargée chez Google : rien n'est transmis à un tiers). */
:root{
  --plum-950:#1f1233;--plum-900:#2b1846;--plum-800:#3a2160;--plum-700:#4a2d74;--plum-500:#6d48a8;--plum-300:#b9a5dc;
  --plum-100:#efe9f8;--plum-50:#f7f3fc;
  --cream:#fbf7f0;--cream-2:#f4ede2;--card:#fff;--line:#ece4d8;--line-2:#e2d8ca;
  --ink:#241a35;--ink-2:#3d3350;--muted:#6f667f;
  --sun:#f5b82e;--sun-ink:#3b2a00;
  --ok:#2f7a4f;--ok-bg:#e1f3e7;--see:#5b3fa0;--see-bg:#ece6fb;--prep:#8a5300;--prep-bg:#fcefd9;
  --pub:#1f5d8c;--pub-bg:#e1eef9;--bad:#b3261e;--bad-bg:#fbe7e4;--warn:#9a5b00;--warn-bg:#fdf0dd;
  --radius:18px;--radius-s:12px;--shadow:0 1px 2px rgba(43,24,70,.05),0 8px 24px -12px rgba(43,24,70,.12);
  --side:248px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font:15px/1.55 ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  background:var(--cream);color:var(--ink);-webkit-font-smoothing:antialiased}
a{color:var(--plum-500)}
img,video{max-width:100%}
code{background:var(--cream-2);padding:.05rem .35rem;border-radius:6px;font-size:.9em}

/* ---------------------------------------------------------------- structure : barre latérale + contenu */
.shell{display:grid;grid-template-columns:var(--side) minmax(0,1fr);min-height:100vh;
  background:linear-gradient(to right,var(--plum-900) var(--side),transparent var(--side))}
.side{background:var(--plum-900);color:#efe9f8;padding:1.4rem 1rem;display:flex;flex-direction:column;gap:1.4rem;
  position:sticky;top:0;height:100vh;overflow-y:auto}
.brand{display:flex;align-items:center;gap:.7rem;color:#fff;text-decoration:none;padding:.2rem .5rem}
.brand-mark{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,var(--sun),#f08a3c);
  color:var(--plum-950);display:grid;place-items:center;font-weight:800;font-size:1.15rem;flex:none}
.brand-name{font-weight:750;font-size:1.3rem;letter-spacing:-.02em;line-height:1.1}
.brand-sub{display:block;font-size:.78rem;font-weight:500;color:var(--plum-300);line-height:1.3;margin-top:.15rem}
.nav{display:flex;flex-direction:column;gap:.25rem}
.nav a{display:flex;align-items:center;gap:.8rem;padding:.7rem .9rem;border-radius:14px;color:#ddd3ee;
  text-decoration:none;font-weight:550;transition:background .15s,color .15s}
.nav a:hover{background:rgba(255,255,255,.07);color:#fff}
.nav a[aria-current=page]{background:var(--cream);color:var(--plum-900);box-shadow:0 6px 18px -8px rgba(0,0,0,.5)}
.nav svg{width:20px;height:20px;flex:none}
.nav .short{display:none}
.nav .count{margin-left:auto;background:var(--sun);color:var(--sun-ink);font-size:.75rem;font-weight:700;
  border-radius:99px;padding:0 .45rem;min-width:1.4rem;text-align:center}
.side-foot{margin-top:auto;display:flex;flex-direction:column;gap:.8rem}
.side-card{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:1rem;
  text-align:center;font-size:.85rem;color:#ddd3ee}
.side-card strong{display:block;color:#fff;font-size:1rem;margin:.2rem 0 .3rem}
.side-card .button{margin-top:.6rem}
.who{display:flex;align-items:center;gap:.7rem;font-size:.88rem;color:#fff;padding:0 .4rem}
.who-text{display:flex;flex-direction:column;min-width:0;line-height:1.3}
.who-text strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.who-text small{color:var(--plum-300)}
.who form{margin:0}
.linkish{background:none!important;border:0;padding:0;color:var(--plum-300);font-size:.8rem;font-weight:600;
  text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.linkish:hover{color:#fff}
.avatar{width:40px;height:40px;border-radius:50%;background:var(--plum-900);color:#fff;display:grid;place-items:center;
  font-weight:700;flex:none}
.side .avatar{width:32px;height:32px;background:var(--plum-500);font-size:.85rem}
.content{padding:2rem clamp(1rem,3vw,2.6rem) 3rem;min-width:0;max-width:1320px}

/* ---------------------------------------------------------------- en-tête de page */
.top{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.6rem}
.top h1{font-size:clamp(1.7rem,3.2vw,2.5rem);margin:0;letter-spacing:-.03em;line-height:1.15}
.top p{margin:.35rem 0 0;color:var(--muted);font-size:1.05rem}
.top-actions{display:flex;align-items:center;gap:.8rem;flex:none}
.bell{position:relative;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;color:var(--plum-900);
  text-decoration:none;background:var(--card);border:1px solid var(--line)}
.bell svg{width:22px;height:22px}
.bell .dot{position:absolute;top:-2px;right:-2px;background:var(--sun);color:var(--sun-ink);font-size:.7rem;font-weight:800;
  min-width:1.2rem;height:1.2rem;border-radius:99px;display:grid;place-items:center;padding:0 .25rem}
h1{font-size:1.6rem;margin:.2rem 0 1rem;letter-spacing:-.02em}
h2{font-size:1.15rem;margin:1.6rem 0 .7rem;letter-spacing:-.01em}
.preview-banner{background:var(--sun);color:var(--sun-ink);border-radius:var(--radius-s);padding:.6rem 1rem;margin-bottom:1.2rem;
  display:flex;align-items:center;gap:1rem;flex-wrap:wrap;font-weight:600}
.preview-banner form{margin:0 0 0 auto}

/* ---------------------------------------------------------------- cartes et grilles */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:1.2rem 1.4rem;
  margin-bottom:1.2rem;box-shadow:var(--shadow)}
.card > h2:first-child{margin-top:0}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.9rem}
.card-head h2{margin:0;font-size:1.25rem}
.see-all{font-size:.88rem;font-weight:650;color:var(--plum-900);text-decoration:none;display:inline-flex;align-items:center;gap:.3rem}
.see-all svg{width:16px;height:16px}
.hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:1.2rem;margin-bottom:1.2rem;align-items:stretch}
.hero > *{min-width:0}
.dash{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:1.2rem;align-items:start}
.dash > *{min-width:0}
.stack{display:flex;flex-direction:column;gap:1.2rem}
.stack > .card{margin-bottom:0}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0 1rem}
.cols-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.2rem}
.cols-2 > .card{margin-bottom:0}
.inline{display:flex;flex-wrap:wrap;gap:.3rem 1rem;align-items:center}
.inline label{font-weight:400;margin:0}

/* ---------------------------------------------------------------- dépôt / envois */
.drop{border:2px dashed var(--plum-300);border-radius:var(--radius);background:var(--plum-50);padding:1.6rem;text-align:center}
.drop .cloud{width:54px;height:54px;color:var(--plum-900)}
.drop h2{margin:.4rem 0 .2rem;font-size:1.35rem}
.drop p{margin:.2rem 0;color:var(--muted)}
.folder{display:inline-flex;align-items:center;gap:.5rem;background:var(--card);border:1px solid var(--line-2);border-radius:12px;
  padding:.45rem .8rem;margin:.6rem 0 .2rem;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.88rem;
  color:var(--ink-2);max-width:100%;overflow-wrap:anywhere;text-align:left}
.folder svg{width:18px;height:18px;flex:none;color:var(--plum-500)}
.chips{display:flex;gap:.4rem;justify-content:center;flex-wrap:wrap;margin-top:.7rem}
.chip{background:var(--card);border:1px solid var(--line-2);border-radius:99px;padding:.1rem .65rem;font-size:.78rem;font-weight:650;color:var(--ink-2)}
.agent-state{display:inline-flex;align-items:center;gap:.45rem;font-size:.85rem;font-weight:600}
.agent-state::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--muted)}
.agent-state.on::before{background:#2fb36b;box-shadow:0 0 0 4px rgba(47,179,107,.18)}
.agent-state.off::before{background:#d08b1c}
.transfers{list-style:none;margin:1rem 0 0;padding:0;text-align:left;display:flex;flex-direction:column;gap:.55rem}
.transfers li{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:.55rem .8rem}
.transfers .row{display:flex;justify-content:space-between;gap:.6rem;font-size:.88rem}
.transfers .row .muted{white-space:nowrap}
.transfers .name{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bar{height:6px;border-radius:99px;background:var(--plum-100);margin-top:.4rem;overflow:hidden}
.bar span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--plum-500),#9a74d6);transition:width .6s}
.received{list-style:none;margin:.9rem 0 0;padding:0;text-align:left}
.received li{display:flex;justify-content:space-between;align-items:center;gap:.6rem;padding:.45rem 0;border-top:1px solid var(--line);font-size:.88rem}
.received li span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}

/* ---------------------------------------------------------------- statistiques */
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.stat{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:1.1rem 1.1rem .9rem;box-shadow:var(--shadow);min-width:0}
.stat-icon{width:46px;height:46px;border-radius:50%;background:var(--plum-100);color:var(--plum-900);display:grid;place-items:center}
.stat-icon svg{width:22px;height:22px}
.stat-value{font-size:clamp(1.5rem,2.4vw,2rem);font-weight:780;letter-spacing:-.03em;margin-top:.6rem;line-height:1.1}
.stat-label{color:var(--muted);font-weight:550}
.trend{font-size:.82rem;font-weight:700;color:var(--ok);display:block;margin-top:.2rem;min-height:1.2em}
.trend.down{color:var(--bad)}
.spark{display:block;width:100%;height:36px;margin-top:.3rem}
.spark .l{fill:none;stroke:var(--plum-500);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.spark .a{fill:var(--plum-100)}

/* ---------------------------------------------------------------- projets */
.projects{list-style:none;margin:0;padding:0}
.projects li{display:flex;align-items:center;gap:1rem;padding:.75rem 0;border-top:1px solid var(--line)}
.projects li:first-child{border-top:0;padding-top:.2rem}
.thumb{width:120px;aspect-ratio:16/10;border-radius:12px;overflow:hidden;flex:none;position:relative;
  background:linear-gradient(135deg,var(--plum-700),var(--plum-500));display:grid;place-items:center;color:#fff}
.thumb video,.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb svg{width:26px;height:26px;opacity:.85}
.thumb .tag{position:absolute;left:6px;bottom:6px;background:rgba(0,0,0,.5);border-radius:99px;padding:.1rem .45rem;font-size:.7rem;font-weight:700}
.proj-main{flex:1;min-width:0}
.proj-title{font-weight:700;font-size:1.02rem;color:var(--ink);text-decoration:none;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.proj-title:hover{color:var(--plum-500)}
.proj-meta{color:var(--muted);font-size:.86rem}
.pill{display:inline-block;border-radius:99px;padding:.25rem .8rem;font-size:.82rem;font-weight:700;white-space:nowrap}
.pill.ok{background:var(--ok-bg);color:var(--ok)}.pill.see{background:var(--see-bg);color:var(--see)}
.pill.prep{background:var(--prep-bg);color:var(--prep)}.pill.pub{background:var(--pub-bg);color:var(--pub)}
.pill.warn{background:var(--warn-bg);color:var(--warn)}.pill.bad{background:var(--bad-bg);color:var(--bad)}
.tabs{display:flex;gap:.4rem;flex-wrap:wrap;margin-bottom:1rem}
.tabs a{padding:.4rem .9rem;border-radius:99px;background:var(--card);border:1px solid var(--line);text-decoration:none;color:var(--ink-2);font-weight:600;font-size:.9rem}
.tabs a[aria-current=page]{background:var(--plum-900);color:#fff;border-color:var(--plum-900)}
.tabs .n{opacity:.7;font-weight:500;margin-left:.2rem}
.empty{color:var(--muted);text-align:center;padding:1.5rem .5rem}
.empty svg{width:34px;height:34px;color:var(--plum-300);display:block;margin:0 auto .5rem}

/* ---------------------------------------------------------------- réseaux, calendrier, idées */
.networks{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:.8rem}
.network{border-radius:16px;padding:1rem;color:#fff;min-height:120px;display:flex;flex-direction:column;justify-content:space-between;
  background:linear-gradient(150deg,var(--plum-700),var(--plum-500))}
.network.instagram{background:linear-gradient(150deg,#7b3fbf,#e0457b 60%,#f6a03a)}
.network.tiktok{background:linear-gradient(150deg,#141414,#2b2b2b 55%,#1f8f94)}
.network.linkedin{background:linear-gradient(150deg,#0b4f86,#1a6fb0)}
.network.youtube_shorts{background:linear-gradient(150deg,#7c0d0d,#d42b2b)}
.network.facebook{background:linear-gradient(150deg,#1b3f8f,#3b6fd8)}
.network strong{display:inline-block;background:rgba(255,255,255,.95);color:var(--ink);border-radius:99px;padding:.2rem .7rem;font-size:.82rem;align-self:flex-start}
.network span{font-size:.82rem;opacity:.95}
.days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.45rem}
.day{border:1px solid var(--line);border-radius:14px;text-align:center;padding:.5rem .2rem .7rem;background:var(--card);color:var(--ink);position:relative}
.day small{display:block;color:var(--muted);font-size:.75rem;font-weight:600}
.day b{font-size:1.15rem}
.day.today{background:var(--plum-900);color:#fff;border-color:var(--plum-900)}
.day.today small{color:var(--plum-300)}
.day .has{position:absolute;left:50%;bottom:5px;transform:translateX(-50%);width:6px;height:6px;border-radius:50%;background:var(--sun)}
.events{list-style:none;margin:.9rem 0 0;padding:0;display:flex;flex-direction:column;gap:.5rem}
.events li{display:flex;align-items:center;gap:.7rem;background:var(--plum-50);border-radius:12px;padding:.6rem .8rem;font-size:.9rem}
.events .bullet{width:10px;height:10px;border-radius:50%;background:var(--plum-500);flex:none}
.events .when{margin-left:auto;color:var(--muted);font-size:.82rem;white-space:nowrap}
.week-day{display:grid;grid-template-columns:8.5rem minmax(0,1fr);gap:1rem;align-items:start;padding:.8rem 0;border-top:1px solid var(--line)}
.week-day:first-child{border-top:0}
.week-day.today .wd{color:var(--plum-500)}
.wd{font-weight:700}
.wd small{display:block;color:var(--muted);font-weight:500}
.slot{background:var(--plum-50);border-radius:12px;padding:.6rem .8rem;margin-bottom:.5rem}
.slot:last-child{margin-bottom:0}
.slot .why{color:var(--muted);font-size:.85rem}
.banner{background:var(--plum-900);color:#fff;border-radius:var(--radius);padding:1.3rem 1.5rem;display:flex;gap:1rem;align-items:flex-start;
  position:relative;overflow:hidden}
.banner::after{content:"";position:absolute;right:-40px;bottom:-60px;width:180px;height:180px;border-radius:50%;
  background:radial-gradient(circle,rgba(245,184,46,.35),transparent 70%);pointer-events:none}
.banner .ico{width:26px;height:26px;color:var(--sun);flex:none;margin-top:.15rem}
.banner h2{margin:0 0 .3rem;font-size:1.15rem}
.banner ul{margin:.3rem 0 0;padding-left:1.1rem;color:#ddd3ee}
.banner p{margin:0;color:#ddd3ee}

/* ---------------------------------------------------------------- détail d'un projet */
.project{display:grid;grid-template-columns:minmax(0,380px) minmax(0,1fr);gap:1.4rem;align-items:start}
.project > *{min-width:0}
.player{background:#0f0a17;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.player video{display:block;width:100%;max-height:72vh;background:#000}
.pages{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.7rem}
.pages figure{margin:0;border-radius:12px;overflow:hidden;border:1px solid var(--line);background:var(--card)}
.pages img,.pages video{display:block;width:100%;aspect-ratio:4/5;object-fit:cover}
.pages figcaption{font-size:.8rem;color:var(--muted);padding:.3rem .5rem;display:flex;justify-content:space-between}
.caption-box{background:var(--cream);border:1px solid var(--line);border-radius:12px;padding:.8rem 1rem;white-space:pre-wrap;font-size:.92rem;overflow-wrap:anywhere}
.caption-head{display:flex;justify-content:space-between;align-items:center;margin:.9rem 0 .4rem;gap:.5rem}
.feedback-actions{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:.6rem}
.history{list-style:none;padding:0;margin:0}
.history li{border-top:1px solid var(--line);padding:.6rem 0;font-size:.9rem}
.history li:first-child{border-top:0}
.placeholder{aspect-ratio:9/16;max-height:60vh;display:grid;place-items:center;text-align:center;color:#ddd3ee;padding:2rem;
  background:linear-gradient(160deg,var(--plum-900),var(--plum-700))}
.placeholder svg{width:40px;height:40px;color:var(--sun)}

/* ---------------------------------------------------------------- formulaires, boutons, tableaux */
table{width:100%;border-collapse:collapse}
th,td{text-align:left;padding:.6rem .5rem;border-bottom:1px solid var(--line);vertical-align:top}
th{color:var(--muted);font-weight:600;font-size:.8rem;text-transform:uppercase;letter-spacing:.04em}
tr:last-child td{border-bottom:0}
label{display:block;font-weight:600;margin:.8rem 0 .25rem}
input[type=text],input[type=email],input[type=password],input[type=date],input[type=number],input[type=file],select,textarea{
  width:100%;padding:.6rem .75rem;border:1px solid var(--line-2);border-radius:12px;font:inherit;background:#fff;color:var(--ink)}
input:focus,select:focus,textarea:focus{outline:3px solid var(--plum-100);border-color:var(--plum-500)}
textarea{min-height:5rem}
button,.button{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;background:var(--plum-900);color:#fff;border:0;
  border-radius:12px;padding:.6rem 1.1rem;font:inherit;font-weight:650;cursor:pointer;text-decoration:none;transition:transform .1s,background .15s}
button:hover,.button:hover{background:var(--plum-700)}
button:active,.button:active{transform:translateY(1px)}
button svg,.button svg{width:18px;height:18px}
button.secondary,.button.secondary{background:#fff;color:var(--plum-900);border:1px solid var(--line-2)}
button.secondary:hover,.button.secondary:hover{background:var(--plum-50)}
button.sun,.button.sun{background:var(--sun);color:var(--sun-ink)}
button.sun:hover,.button.sun:hover{background:#ffc94d}
button.small,.button.small{padding:.3rem .7rem;font-size:.85rem;border-radius:10px}
button.danger,.button.danger{background:var(--bad)}
button:disabled{opacity:.45;cursor:not-allowed}
:focus-visible{outline:3px solid var(--sun);outline-offset:2px}
.badge{display:inline-block;padding:.12rem .55rem;border-radius:99px;font-size:.78rem;font-weight:700}
.badge.ok{background:var(--ok-bg);color:var(--ok)}.badge.warn{background:var(--warn-bg);color:var(--warn)}.badge.bad{background:var(--bad-bg);color:var(--bad)}
.muted{color:var(--muted)}
.flash{padding:.7rem 1rem;border-radius:12px;margin-bottom:1rem;background:var(--ok-bg);border:1px solid #bfe2cb;color:#1d5235}
.error{padding:.7rem 1rem;border-radius:12px;margin-bottom:1rem;background:var(--bad-bg);border:1px solid #f0c1bb;color:var(--bad)}
.swatch{display:inline-block;width:1.1rem;height:1.1rem;border-radius:5px;border:1px solid var(--line);vertical-align:middle}
details summary{cursor:pointer;color:var(--plum-500);font-weight:600}
.link-box{display:flex;gap:.5rem;align-items:center;margin-top:.5rem}
.link-box input{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.85rem}

/* ---------------------------------------------------------------- connexion / invitation */
.auth{min-height:100vh;display:grid;place-items:center;padding:1.5rem;
  background:radial-gradient(1200px 500px at 10% -10%,var(--plum-100),transparent),var(--cream)}
.auth-card{width:min(420px,100%);background:var(--card);border:1px solid var(--line);border-radius:24px;padding:2rem;box-shadow:var(--shadow)}
.auth-card .brand{color:var(--plum-900);padding:0;margin-bottom:1.2rem}
.auth-card .brand-sub{color:var(--muted)}
.auth-card h1{font-size:1.5rem;margin:0 0 .3rem}
.auth-card button{width:100%;margin-top:1.2rem;padding:.75rem}

/* ---------------------------------------------------------------- petits écrans */
@media (max-width:1100px){
  .dash,.hero{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:900px){
  .shell{grid-template-columns:minmax(0,1fr);background:none}
  .side{position:sticky;top:0;z-index:10;height:auto;flex-direction:row;align-items:center;gap:.6rem;padding:.7rem 1rem}
  .brand-name{font-size:1.1rem}
  .side-foot{margin:0 0 0 auto;flex-direction:row;align-items:center}
  .side-card{display:none}
  .who .avatar{display:none}
  .who-text{align-items:flex-end}
  .who-text strong,.who-text small{display:none}
  /* menu en barre d'onglets en bas de l'écran, toujours visible au pouce */
  .nav{position:fixed;left:0;right:0;bottom:0;z-index:30;background:var(--plum-900);display:grid;grid-auto-flow:column;
    grid-auto-columns:minmax(0,1fr);gap:.2rem;padding:.35rem .4rem calc(.35rem + env(safe-area-inset-bottom));
    box-shadow:0 -8px 24px -12px rgba(0,0,0,.45)}
  .nav a{flex-direction:column;gap:.15rem;padding:.4rem .2rem;font-size:.7rem;font-weight:600;text-align:center;border-radius:12px;position:relative}
  .nav a[aria-current=page]{background:rgba(255,255,255,.1);color:var(--sun);box-shadow:none}
  .nav .long{display:none}
  .nav .short{display:inline}
  .nav .count{position:absolute;top:2px;left:calc(50% + 6px);margin:0;font-size:.65rem;min-width:1.1rem}
  .content{padding:1.3rem 1rem calc(5.5rem + env(safe-area-inset-bottom))}
  .project{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:640px){
  .stats{gap:.5rem}
  .stat{padding:.8rem .7rem .6rem}
  .stat-icon{width:34px;height:34px}
  .stat-icon svg{width:17px;height:17px}
  .stat-value{font-size:1.3rem;margin-top:.45rem}
  .stat-label{font-size:.82rem}
  .trend{font-size:.72rem}
  .trend .muted{display:none}
  .top{flex-direction:column-reverse;gap:.4rem}
  .top-actions{align-self:flex-end}
  .projects li{display:grid;grid-template-columns:84px minmax(0,1fr);gap:.2rem .9rem;align-items:start}
  .projects .thumb{width:84px;grid-row:span 2}
  .projects .pill{justify-self:start;font-size:.75rem;padding:.15rem .6rem}
  .proj-title{white-space:normal}
  .days{gap:.25rem}
  .day{padding:.4rem 0 .7rem;border-radius:10px}
  .day b{font-size:1rem}
  .week-day{grid-template-columns:minmax(0,1fr);gap:.4rem}
  .drop{padding:1.2rem .9rem}
  .card{padding:1rem}
  th:nth-child(n+3),td:nth-child(n+3){display:none}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
.ico{width:20px;height:20px;vertical-align:-4px;flex:none}
.side-card .ico{width:24px;height:24px;color:var(--sun);display:block;margin:0 auto}
.see-all,.linkish{white-space:nowrap}

/* ---------------------------------------------------------------- zone de dépôt */
.drop.over{border-color:var(--plum-500);background:var(--plum-100);border-style:solid}
.drop.app{border-color:#7cc49b}
.drop-mode{font-size:.86rem;margin:.7rem auto 0!important;max-width:34rem}
.drop.app .drop-mode{color:var(--ok);font-weight:600}
.welcome{margin-bottom:1.2rem}
.videos-grid,.contents-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:.8rem;margin-bottom:.6rem}
.video-card,.content-card{display:flex;flex-direction:column;gap:.3rem;padding:.7rem;text-decoration:none;color:inherit;margin:0}
.video-card:hover,.content-card:hover{border-color:var(--plum-300)}
.video-cover,.content-thumb{border-radius:10px;overflow:hidden;background:#1d1528;display:grid;place-items:center;min-height:120px}
.video-cover{aspect-ratio:16/10}
.content-thumb{aspect-ratio:9/16;max-height:300px}
.content-thumb.carrousel{aspect-ratio:4/5}
.video-cover video,.content-thumb video,.content-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.video-cover .muted,.content-thumb .muted{color:#cfc4e3;font-size:.82rem;padding:.5rem;text-align:center}
.video-name{font-size:1rem}
.video-group .card-head{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem;flex-wrap:wrap}
.video-group h2{display:flex;align-items:center;gap:.4rem}
.bank .card-head{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem}
.bank-dialog{max-width:520px;width:calc(100% - 2rem);border:0;border-radius:18px;padding:1.4rem 1.5rem;
  box-shadow:0 20px 60px rgba(31,18,51,.25);color:var(--ink);background:var(--card)}
.bank-dialog::backdrop{background:rgba(31,18,51,.35)}
.bank-dialog h2{margin:0 0 .5rem}
.bank-dialog ul{margin:.4rem 0;padding-left:1.2rem}
.welcome-networks{display:flex;flex-wrap:wrap;gap:.5rem .8rem}
.welcome-net{display:inline-flex;align-items:center;gap:.4rem;margin:0;padding:.45rem .8rem;border:1px solid var(--line-2);
  border-radius:999px;background:var(--card);font-weight:600;cursor:pointer}
.welcome-net:has(input:checked){border-color:var(--plum-500);background:color-mix(in srgb, var(--plum-500) 8%, var(--card))}
.network.x{background:linear-gradient(135deg,#111 0%,#333 100%)}
.brief{border:1px solid var(--line);border-radius:14px;margin:1rem auto 0;padding:.7rem 1rem .8rem;max-width:760px;text-align:left;background:var(--card)}
.brief legend{font-weight:700;padding:0 .4rem;color:var(--ink)}
.brief.missing{border-color:var(--bad);box-shadow:0 0 0 3px color-mix(in srgb, var(--bad) 20%, transparent)}
.brief-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.6rem 1.2rem}
.brief-platform strong{display:block;font-size:.92rem;margin-bottom:.2rem}
.brief-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem;font-size:.88rem;padding:.15rem 0}
.brief-row label{display:inline-flex;align-items:center;gap:.35rem;margin:0;font-weight:500;cursor:pointer}
.brief-row select{width:auto;min-width:0;font-size:.82rem;padding:.2rem .4rem;margin:0}
.brief-row select:disabled{opacity:.45}
.brief-hint{font-size:.82rem;margin:.5rem 0 0}
.kind-choice{border:0;margin:.8rem 0 0;padding:0;display:flex;gap:.3rem 1.1rem;justify-content:center;flex-wrap:wrap;font-size:.9rem}
.kind-choice legend{float:left;font-weight:650;color:var(--ink-2);margin-right:.2rem}
.kind-choice label{display:inline-flex;align-items:center;gap:.35rem;font-weight:500;margin:0;cursor:pointer}
.linkish.dark{color:var(--plum-500);font-size:inherit;font-weight:650}
.linkish.dark:hover{color:var(--plum-900)}
.folder-tip{margin-top:.8rem;font-size:.88rem}
.folder-tip p{margin:.4rem 0 0}
#drop-list:empty{display:none}
#drop-list li.ok .state{color:var(--ok);font-weight:600}
#drop-list li.ok .bar span{background:#4fb27a}
#drop-list li.bad .state{color:var(--bad)}
#drop-list li.bad .bar{display:none}
#uploads > p{margin:.8rem 0 0}
.for-touch{display:none}
@media (hover:none) and (pointer:coarse){  /* téléphone, tablette : on choisit, on ne glisse pas */
  .for-mouse{display:none}
  span.for-touch{display:inline}
  p.for-touch{display:block;margin:.8rem 0 0}
  p.for-touch button{padding:.8rem 1.2rem;font-size:1rem}
}

/* ---------------------------------------------------------------- finaliser en HD */
.hd-card{border-color:var(--sun);background:linear-gradient(180deg,#fff8e6,#fff 60%)}
.hd-card .card-head h2{display:flex;align-items:center;gap:.5rem}
.hd-card .ico{color:#d99a00}
.hd-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.8rem}
.hd-item{border:1px solid var(--line);border-radius:14px;padding:.8rem 1rem;background:var(--card)}
.hd-item .row{display:flex;justify-content:space-between;gap:.6rem;flex-wrap:wrap}
.hd-item p{margin:.6rem 0 .3rem}
.hd-state{font-size:.88rem;min-height:1.2em}
.hd-state.ok{color:var(--ok);font-weight:600}
.hd-state.bad{color:var(--bad);font-weight:600}

/* ---------------------------------------------------------------- réseaux sociaux */
.net-state{display:inline-block;background:rgba(255,255,255,.92);color:var(--ok);border-radius:99px;padding:.15rem .6rem;
  font-size:.78rem;font-weight:700;align-self:flex-start;margin-top:.5rem;max-width:100%;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.net-state.warn{color:var(--warn)}
.net-btn{display:inline-block;background:var(--sun);color:var(--sun-ink);border-radius:99px;padding:.2rem .75rem;font-size:.8rem;
  font-weight:700;text-decoration:none;align-self:flex-start;margin-top:.5rem}
.net-btn:hover{background:#ffc94d}
.social-row{display:flex;justify-content:space-between;align-items:center;gap:.8rem;padding:.7rem 0;border-top:1px solid var(--line)}
.social-row:first-of-type{border-top:0}
.social-actions{display:flex;gap:.4rem;align-items:center;flex-wrap:wrap;justify-content:flex-end}
