/* Espace client Miniads, accueil.
   Couleurs, polices et ombres de miniads.fr ; mise en page d'après NewEra AI et Beatza
   (menu posé sur un fond gris clair, contenu dans un grand panneau blanc arrondi). */
@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: Geist; src: url(fonts/geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --encre: #0c0f1a;
  --texte: #14161d;
  --gris: rgba(12, 15, 26, 0.62);
  --gris-doux: rgba(12, 15, 26, 0.45);
  --trait: #ececef;
  --fond: #f6f6f7;
  --orange: #ff991c;
  --orange-pale: rgba(255, 153, 28, 0.12);
  --ombre-pilule: 0 18px 18px -9px #0656860a, 0 4.5px 9px -4.5px #06568605, 0 4.5px 6px -2.25px #01223603,
    0 2.25px 2.25px -1.12px #0122360f, 0 0.75px 0.75px -0.37px #0122360a, 0 0 0 0.75px #0656860a, inset 0 0 0 1.5px #fff;
  --ombre-miniature: 0 6.61px 14.04px #0000001a, 0 25.6px 25.6px #00000017;
  --ombre-orange: 0 0 50px #ff991c1f, 0 0 10px #ff991c14, 0 4px 8px #ff991c14, 0 8px 16px #ff991c14,
    0 16px 32px #ff991c14, inset 0 0 4px #fff3, inset 0 0 36px #ffffff14, inset 0 1px #ffffff1f;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 400 14.5px/1.5 Geist, sans-serif; letter-spacing: -0.11px; color: var(--texte); background: var(--fond); min-height: 100vh; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
svg { flex: none; }
[hidden] { display: none !important; }
.logo { display: flex; align-items: center; gap: 6px; }
.logo-icone { width: 34.5px; height: 24px; background: url(img/logo-icone.avif) 0.03% 0 / 436.4% 100% no-repeat; }
.logo-mot { width: 112.5px; height: 24px; background: #000;
  -webkit-mask: url(img/logo-mot.avif) 0 0 / 100% 100% no-repeat; mask: url(img/logo-mot.avif) 0 0 / 100% 100% no-repeat; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 12px Geist; color: #fff;
  background: linear-gradient(140deg, #ffb347, #e97a00); flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ================= connexion ================= */
.connexion { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(48% 42% at 0% 0%, rgba(255, 153, 28, .13), transparent 70%), radial-gradient(40% 38% at 100% 0%, rgba(255, 153, 28, .08), transparent 70%), var(--fond); }
.connexion-carte { width: min(400px, 100%); padding: 32px 28px 26px; border-radius: 24px; background: #fff; border: 1px solid var(--trait);
  box-shadow: 0 1px 2px rgba(12, 15, 26, .03), 0 24px 48px -28px rgba(12, 15, 26, .18); }
.connexion-carte h1 { margin: 26px 0 4px; font: 600 30px/1.1 "Instrument Sans", sans-serif; letter-spacing: -0.04em; color: var(--encre); }
.connexion-carte > p { margin: 0 0 22px; color: var(--gris); }
.champ { display: grid; gap: 6px; margin-bottom: 14px; font-size: 13px; font-weight: 500; color: var(--encre); }
.champ input { height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--trait); background: var(--fond); font: 400 14.5px Geist; color: var(--encre); outline: none; }
.champ input:focus { border-color: var(--orange); background: #fff; box-shadow: 0 0 0 3px var(--orange-pale); }
.erreur { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #fef2f2; color: #b91c1c; font-size: 13px; }
.connexion-carte .btn-orange { width: 100%; height: 46px; font-size: 14.5px; }
.connexion-aide { margin: 16px 0 0; text-align: center; font-size: 12.5px; color: var(--gris-doux); }

/* ================= cadre ================= */
.cadre { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.cote { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 14px 16px 18px; overflow-y: auto; scrollbar-width: none; }
.cote > * { flex-shrink: 0; }
.marque { padding: 0 4px 0 6px; }
.chaine {
  margin-top: 22px; height: 46px; padding: 0 12px 0 8px; border-radius: 14px; background: #fff; border: 1px solid var(--trait);
  display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--encre);
}
.chaine .avatar { width: 28px; height: 28px; font-size: 11px; }
.chaine span { line-height: 1.2; min-width: 0; }
.chaine b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chaine small { display: block; font-size: 11.5px; font-weight: 400; color: var(--gris-doux); }

.menu-cote { margin-top: 18px; display: grid; gap: 2px; }
.entree { height: 38px; padding: 0 10px; border-radius: 12px; display: flex; align-items: center; gap: 11px; color: var(--gris); font-size: 14.5px; }
.entree svg { color: rgba(12, 15, 26, .42); }
.entree:hover { background: rgba(255, 255, 255, .7); color: var(--encre); }
.entree.actif { background: #fff; box-shadow: var(--ombre-pilule); color: var(--encre); font-weight: 500; }
.entree.actif svg { color: var(--orange); }
.compteur { margin-left: auto; font-size: 12px; color: var(--gris-doux); font-variant-numeric: tabular-nums; }
.tag { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--encre); }
.rubrique { margin: 14px 10px 4px; font-size: 12.5px; color: var(--gris-doux); }

.carte-pack {
  margin-top: auto; position: relative; overflow: hidden; padding: 14px; border-radius: 20px;
  background:
    radial-gradient(90% 70% at 100% 100%, rgba(255, 153, 28, .55), transparent 70%),
    radial-gradient(70% 60% at 0% 0%, rgba(255, 214, 140, .55), transparent 70%),
    linear-gradient(160deg, #fff6ea, #ffe7c7);
  border: 1px solid rgba(255, 153, 28, .25);
}
.pack-ligne { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pack-ligne strong { font: 600 34px/1 "Instrument Sans", sans-serif; letter-spacing: -0.035em; color: var(--encre); }
.pack-ligne span { font-size: 13.5px; font-weight: 500; color: var(--encre); line-height: 1.25; }
.pack-ligne small { display: block; font-size: 12px; font-weight: 400; color: rgba(12, 15, 26, .62); }
.jauge { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .75); overflow: hidden; margin-bottom: 12px; }
.jauge i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--orange); transition: width .6s ease; }
.btn-orange {
  height: 36px; border-radius: 11px; background: linear-gradient(180deg, #ffad45, var(--orange)); box-shadow: var(--ombre-orange);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 13px;
}
.btn-orange:disabled { opacity: .7; cursor: wait; }

.carte-apport { margin-top: 10px; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--trait); }
.apport-tete { display: flex; align-items: center; gap: 10px; }
.cadeau { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--encre); }
.carte-apport b { display: block; font: 600 15px/1.2 "Instrument Sans", sans-serif; letter-spacing: -0.015em; color: var(--encre); }
.carte-apport p { margin: 9px 0 11px; font-size: 12.5px; line-height: 1.4; color: var(--gris); }
.copier { width: 100%; height: 34px; padding: 0 10px; border-radius: 10px; background: var(--fond); border: 1px solid var(--trait);
  display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--encre); }
.copier span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copier svg { color: var(--gris-doux); }
.copier.copie { border-color: rgba(34, 197, 94, .4); background: rgba(34, 197, 94, .08); }

.profil {
  margin-top: 10px; height: 48px; padding: 0 8px; border-radius: 14px; background: #fff; border: 1px solid var(--trait);
  display: flex; align-items: center; gap: 10px;
}
.profil b { font-weight: 500; color: var(--encre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profil button { margin-left: auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--gris-doux); }
.profil button:hover { background: var(--fond); color: var(--encre); }

/* ================= grand panneau blanc ================= */
.panneau {
  margin: 14px 14px 14px 0; border-radius: 22px; background: #fff; border: 1px solid var(--trait);
  box-shadow: 0 1px 2px rgba(12, 15, 26, .03), 0 12px 32px -18px rgba(12, 15, 26, .1); padding: 0 34px 34px; min-width: 0;
}
.barre-haut { height: 72px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #f2f2f4; margin: 0 -34px; padding: 0 34px; }
.barre-haut h2 { margin: 0; font: 500 18px Geist; color: var(--encre); }

.accueil { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 20px 0 16px; }
h1 { margin: 0; font: 600 clamp(32px, 2.8vw, 40px)/1.05 "Instrument Sans", sans-serif; letter-spacing: -0.04em; color: var(--encre); }
.accueil p { margin: 4px 0 0; font-size: 15.5px; color: var(--gris); }
.btn-noir {
  height: 46px; padding: 0 18px; border-radius: 14px; background: var(--encre); color: #fff; font-weight: 500; font-size: 14.5px;
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; box-shadow: 0 10px 22px -10px rgba(12, 15, 26, .5);
}

/* ---- rangée 1 : la grande carte orange + les outils ---- */
.rang-1 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; }
.carte-vedette {
  position: relative; overflow: hidden; border-radius: 22px; padding: 18px 24px 20px; color: #fff;
  display: flex; flex-direction: column;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(255, 214, 120, .55), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(233, 90, 0, .55), transparent 70%),
    linear-gradient(135deg, #ff9a1f 0%, #ff7a1a 55%, #f0611a 100%);
}
.carte-vedette::after {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 120%; height: 160%;
  background: repeating-radial-gradient(circle at 100% 0%, rgba(255,255,255,.07) 0 2px, transparent 2px 46px); pointer-events: none;
}
.etiquettes { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; position: relative; z-index: 1; margin-bottom: 12px; }
.puce { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.etiquettes .point { width: 8px; height: 8px; border-radius: 50%; background: #fff; margin: 0 4px 0 8px; position: relative; }
.etiquettes .point.vif::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #fff; animation: pouls 1.8s ease-out infinite; }
@keyframes pouls { from { transform: scale(1); opacity: .7; } to { transform: scale(2.6); opacity: 0; } }
.carte-vedette h3 { margin: auto 0 10px; position: relative; z-index: 1; font: 600 clamp(26px, 2.3vw, 33px)/1.06 "Instrument Sans", sans-serif; letter-spacing: -0.035em; }
.carte-vedette p { margin: 0 0 14px; position: relative; z-index: 1; color: rgba(255, 255, 255, .88); font-size: 15px; }
.carte-vedette .btn-noir { position: relative; z-index: 1; align-self: flex-start; height: 40px; }

.carte { border-radius: 22px; border: 1px solid var(--trait); background: #fff; padding: 18px 20px; }
.carte-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.carte-tete h4 { margin: 0; font: 600 19px "Instrument Sans", sans-serif; letter-spacing: -0.02em; color: var(--encre); }
.carte-tete h4 a { display: inline-flex; align-items: center; gap: 6px; }
.carte-tete h4 svg { color: var(--gris-doux); }
.raccourcis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.raccourci { display: grid; gap: 10px; text-align: center; font-weight: 600; font-size: 14px; color: var(--encre); }
.raccourci > span { line-height: 1.2; }
.scene { position: relative; height: 136px; border-radius: 16px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.raccourci:hover .scene { transform: translateY(-2px); box-shadow: 0 14px 26px -16px rgba(12, 15, 26, .35); }

.scene-yt { background: linear-gradient(180deg, #fff3e4, #ffe2c2); padding: 10px 10px 0; }
.yt-barre { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.yt-logo { width: 16px; height: 11px; border-radius: 3px; background: #ff0000; position: relative; }
.yt-logo::after { content: ""; position: absolute; left: 6px; top: 3px; border: 2.5px solid transparent; border-left: 4px solid #fff; }
.yt-barre i { flex: 1; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .8); }
.yt-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.yt-grille figure { margin: 0; position: relative; }
.yt-grille .faux { aspect-ratio: 16 / 9; border-radius: 5px; background: linear-gradient(135deg, rgba(12, 15, 26, .1), rgba(12, 15, 26, .04)); }
.yt-grille img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px; box-shadow: 0 0 0 2px var(--orange), 0 6px 14px -4px rgba(255, 122, 26, .6); }
.yt-grille i { display: block; height: 4px; width: 80%; margin-top: 4px; border-radius: 2px; background: rgba(12, 15, 26, .14); }
.yt-grille .toi i { background: rgba(12, 15, 26, .45); }
.yt-grille em { position: absolute; top: -6px; right: -4px; font: 600 9px/1 Geist; font-style: normal; color: #fff; background: var(--orange); padding: 3px 5px; border-radius: 99px; box-shadow: 0 0 0 2px #ffe9cf; }

.scene-intel { background: linear-gradient(180deg, #f1edff, #e4dcff); padding: 12px 12px 10px; display: flex; flex-direction: column; }
.barres { flex: 1; display: flex; align-items: flex-end; gap: 5px; padding: 0 2px; }
.barres i { flex: 1; border-radius: 4px 4px 2px 2px; background: rgba(124, 92, 255, .28); }
.barres .haute { background: linear-gradient(180deg, #9b7bff, #6d4bff); box-shadow: 0 6px 14px -6px rgba(109, 75, 255, .8); }
.pastille-x { position: absolute; top: 10px; left: 50%; transform: translateX(-2%); font: 700 11px/1 Geist; color: #fff; background: #6d4bff; padding: 4px 7px; border-radius: 99px; box-shadow: 0 4px 10px -3px rgba(109, 75, 255, .7); }
.scene-intel small { margin-top: 8px; font-size: 10px; font-weight: 500; line-height: 1.25; color: #4c33c7; text-align: left; }

.scene-facture { background: linear-gradient(180deg, #eafbf1, #d5f5e2); display: grid; place-items: center; }
.facture { width: 76%; padding: 10px 11px 11px; border-radius: 10px; background: #fff; text-align: left; box-shadow: 0 10px 22px -12px rgba(21, 128, 61, .45); transform: rotate(-3deg); }
.f-tete { display: flex; align-items: center; justify-content: space-between; }
.f-tete b { font-size: 10px; font-weight: 600; color: var(--gris); }
.f-tete em { display: inline-flex; align-items: center; gap: 3px; font: 600 9px/1 Geist; font-style: normal; color: #15803d; background: rgba(34, 197, 94, .14); padding: 3px 6px; border-radius: 99px; }
.facture small { display: block; margin-top: 7px; font-size: 9.5px; color: var(--gris-doux); }
.facture strong { display: block; font: 600 20px/1.1 "Instrument Sans", sans-serif; letter-spacing: -0.03em; color: var(--encre); margin-bottom: 7px; }
.facture i { display: block; height: 4px; border-radius: 2px; background: #eef0f2; margin-top: 4px; }

/* ---- rangée 2 : les chiffres, cartes à coin coloré ---- */
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.chiffre { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--trait); padding: 16px 18px 15px; background: #fff; }
.chiffre::before { content: ""; position: absolute; inset: 0; background: radial-gradient(85% 120% at 100% 0%, var(--c), transparent 62%); opacity: .5; }
.chiffre > * { position: relative; }
.chiffre svg { color: var(--t); width: 19px; height: 19px; position: absolute; top: 16px; right: 16px; }
.chiffre strong { display: block; font: 600 30px/1 "Instrument Sans", sans-serif; letter-spacing: -0.04em; color: var(--encre); }
.chiffre span { display: block; margin-top: 8px; line-height: 1.2; font-weight: 500; color: var(--t); }
.chiffre small { display: block; margin-top: 3px; color: var(--gris-doux); font-size: 12.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- rangée 3 : dernières livraisons ---- */
.section { margin-top: 12px; }
.livraisons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fiche { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; border: 1px solid var(--trait); transition: border-color .15s, box-shadow .15s; min-width: 0; }
.fiche:hover { border-color: #dcdce2; box-shadow: 0 10px 22px -16px rgba(12, 15, 26, .3); }
.fiche .vignette { width: 112px; flex: none; aspect-ratio: 16 / 9; border-radius: 10px; box-shadow: var(--ombre-miniature); overflow: hidden; background: var(--fond); }
.fiche img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fiche div:last-child { min-width: 0; }
.fiche b { font-weight: 600; color: var(--encre); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.fiche small { display: flex; align-items: center; gap: 6px; margin-top: 5px; color: var(--gris-doux); font-size: 12.5px; }
.etat { font-size: 11.5px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: rgba(34, 197, 94, .12); color: #15803d; }
.vide { grid-column: 1 / -1; margin: 0; padding: 26px 8px; text-align: center; color: var(--gris); }
.apport-mobile { display: none; }

/* attente : blocs gris pendant le chargement */
.attente { background: linear-gradient(100deg, #f1f1f3 30%, #f8f8fa 50%, #f1f1f3 70%) 0 0 / 200% 100%; animation: reflet 1.3s linear infinite; color: transparent !important; border-radius: 8px; }
@keyframes reflet { to { background-position: -200% 0; } }

/* ================= tablette et téléphone ================= */
.haut-mobile, .barre-bas { display: none; }
@media (max-width: 1180px) {
  .raccourcis .raccourci:nth-child(3) { display: none; }
  .raccourcis { grid-template-columns: repeat(2, 1fr); }
  .livraisons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chiffres { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  body { background: #fff; }
  .cadre { display: block; }
  .cote { display: none; }
  .panneau { margin: 0; border: 0; border-radius: 0; box-shadow: none; padding: 0 16px 110px; }
  .barre-haut { display: none; }
  .haut-mobile { display: flex; align-items: center; justify-content: space-between; height: 64px; }
  .haut-mobile .avatar { width: 40px; height: 40px; border-radius: 12px; font-size: 13px; }
  .accueil { flex-direction: column; align-items: stretch; margin: 14px 0 20px; }
  .accueil .btn-noir { display: none; }
  .rang-1 { grid-template-columns: 1fr; }
  .carte-vedette { min-height: 240px; padding: 22px; }
  .carte { padding: 18px; }
  .livraisons { grid-template-columns: 1fr; }
  .chiffres { gap: 10px; }
  .chiffre { padding: 14px; }
  .chiffre strong { font-size: 26px; }
  .apport-mobile { display: block; margin-top: 12px; }
  .barre-bas {
    display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; height: 60px; border-radius: 20px; background: #fff;
    box-shadow: 0 0 0 1px var(--trait), 0 14px 30px rgba(12, 15, 26, .12); justify-content: space-around; align-items: center; z-index: 5;
  }
  .barre-bas a { display: grid; justify-items: center; gap: 2px; font-size: 11px; color: var(--gris-doux); }
  .barre-bas a.actif { color: var(--encre); font-weight: 600; }
  .barre-bas a.actif svg { color: var(--orange); }
}
@media (prefers-reduced-motion: reduce) {
  .etiquettes .point.vif::after, .attente { animation: none; }
  .scene, .jauge i { transition: none; }
}

/* ================= écrans Miniatures, Prévisualiser, Facturation ================= */
.tete-ecran { margin: 20px 0 18px; }
.tete-ecran p { margin: 4px 0 0; font-size: 15.5px; color: var(--gris); }
.btn-clair {
  height: 38px; padding: 0 14px; border-radius: 12px; background: #fff; border: 1px solid var(--trait); color: var(--encre);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500; font-size: 13.5px; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(12, 15, 26, .04);
}
.btn-clair:hover { border-color: #dcdce2; }
.btn-clair:disabled { opacity: .6; cursor: wait; }
.segments { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--fond); gap: 2px; }
.segments button { height: 32px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--gris); white-space: nowrap; }
.segments button.on { background: #fff; color: var(--encre); box-shadow: var(--ombre-pilule); }
.panneau .recherche {
  height: 40px; padding: 0 12px; border-radius: 12px; background: var(--fond); border: 1px solid transparent;
  display: flex; align-items: center; gap: 9px; color: var(--gris-doux);
}
.panneau .recherche:focus-within { background: #fff; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-pale); }
.panneau .recherche input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 14px Geist; color: var(--encre); }
.champ-texte {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--trait); background: var(--fond);
  font: 400 14px Geist; color: var(--encre); outline: none;
}
.champ-texte:focus { background: #fff; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-pale); }

/* --- Miniatures --- */
.outils-liste { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.outils-liste .recherche { flex: 1; max-width: 420px; }
.mois { margin-bottom: 26px; }
.mois-tete { display: flex; align-items: baseline; gap: 10px; margin: 0 2px 12px; }
.mois-tete h3 { margin: 0; font: 600 18px "Instrument Sans", sans-serif; letter-spacing: -0.02em; color: var(--encre); }
.mois-tete span { font-size: 13px; color: var(--gris-doux); }
.grille-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; }
.carte-mini { display: grid; gap: 9px; align-content: start; text-align: left; min-width: 0; }
.carte-mini .vignette { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--fond); box-shadow: var(--ombre-miniature); transition: transform .2s, box-shadow .2s; }
.carte-mini img { display: block; width: 100%; height: 100%; object-fit: cover; }
.carte-mini:hover .vignette { transform: translateY(-3px); box-shadow: 0 10px 20px #00000024, 0 28px 30px #00000014; }
.carte-mini b { font-weight: 600; color: var(--encre); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.carte-mini small { display: block; margin-top: 2px; color: var(--gris-doux); font-size: 12.5px; }

/* visionneuse */
.visionneuse { position: fixed; inset: 0; z-index: 20; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; gap: 8px; padding: 24px;
  background: rgba(12, 15, 26, .82); backdrop-filter: blur(6px); }
.vis-contenu { margin: 0; justify-self: center; width: min(1100px, 100%); }
.vis-contenu img { display: block; width: 100%; max-height: calc(100vh - 170px); object-fit: contain; border-radius: 14px; background: #000; }
.vis-contenu figcaption { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #fff; }
.vis-contenu b { display: block; font: 600 18px "Instrument Sans", sans-serif; letter-spacing: -0.02em; }
.vis-contenu small { color: rgba(255, 255, 255, .6); font-size: 13px; }
.vis-actions { display: flex; gap: 8px; flex: none; }
.vis-actions .btn-noir { height: 38px; background: #fff; color: var(--encre); font-size: 13.5px; box-shadow: none; }
.vis-actions .btn-clair { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); color: #fff; box-shadow: none; }
.vis-fleche, .vis-fermer { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .12); justify-self: center; }
.vis-fleche:hover, .vis-fermer:hover { background: rgba(255, 255, 255, .22); }
.vis-fermer { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; }

/* messages éphémères */
.messages { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: grid; gap: 8px; }
.message { padding: 11px 14px; border-radius: 12px; background: var(--encre); color: #fff; font-size: 13.5px; box-shadow: 0 14px 30px -12px rgba(12, 15, 26, .5); animation: entree .25s ease; }
@keyframes entree { from { opacity: 0; transform: translateY(8px); } }

/* --- Prévisualiser : un studio, réglages à gauche, fausse page YouTube à droite --- */
.studio { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.studio-reglages { position: sticky; top: 16px; display: grid; gap: 12px; padding: 18px; border-radius: 22px; border: 1px solid var(--trait); background: #fff; }
.etape { display: flex; align-items: center; gap: 9px; margin-top: 6px; }
.etape:first-child { margin-top: 0; }
.etape .num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--encre); color: #fff; font: 600 11.5px Geist; }
.etape b { font: 600 15.5px "Instrument Sans", sans-serif; letter-spacing: -0.015em; color: var(--encre); }
.etape small { margin-left: auto; font-size: 12px; color: var(--gris-doux); font-variant-numeric: tabular-nums; }
.choix-miniatures { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: max-content; align-content: start; gap: 8px; max-height: 236px; overflow-y: auto; padding: 4px; margin: -4px; scrollbar-width: thin; }
.choix-miniatures button { display: block; border-radius: 9px; background: var(--fond); opacity: .6; transition: opacity .15s, box-shadow .15s; }
.choix-miniatures button img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; }
.choix-miniatures button.on, .choix-miniatures button:hover { opacity: 1; }
.choix-miniatures button.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--orange); }
.choix-miniatures .importer { opacity: 1; aspect-ratio: 16 / 9; border: 1.5px dashed #d6d6dc; background: #fff; color: var(--gris); font-size: 12px; font-weight: 500; display: grid; place-items: center; }
.champ-titre { height: auto; min-height: 76px; padding: 10px 12px; resize: vertical; line-height: 1.4; font: 500 14px/1.4 Geist; }
.puces-chaines { display: flex; flex-wrap: wrap; gap: 6px; }
.puce-chaine { height: 32px; padding: 0 4px 0 3px; border-radius: 99px; background: var(--fond); display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--encre); max-width: 100%; }
.puce-chaine img, .puce-chaine .rond-init { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: #d9d9de; display: grid; place-items: center; font-size: 11px; color: #fff; flex: none; }
.puce-chaine em { font-style: normal; font-size: 10.5px; color: #b35f00; background: var(--orange-pale); padding: 2px 6px; border-radius: 99px; }
.puce-chaine button { width: 22px; height: 22px; border-radius: 50%; color: var(--gris-doux); font-size: 15px; line-height: 1; flex: none; }
.puce-chaine button:hover { background: #e7e7ea; color: var(--encre); }
.ajout-chaine { position: relative; }
.resultats-chaines { position: absolute; z-index: 6; top: calc(100% + 6px); left: 0; right: 0; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--trait); box-shadow: 0 18px 40px -16px rgba(12, 15, 26, .3); }
.resultats-chaines button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; font-size: 13.5px; text-align: left; }
.resultats-chaines button:hover { background: var(--fond); }
.resultats-chaines img { width: 28px; height: 28px; border-radius: 50%; }
.btn-large { width: 100%; }
.vide-ligne { font-size: 13px; color: var(--gris-doux); }

.barre-sim { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.barre-sim .btn-clair { margin-left: auto; }
.segments.icones button { width: 38px; padding: 0; display: grid; place-items: center; }

/* la fausse page YouTube, en Roboto comme la vraie */
.ecran-yt { border-radius: 22px; border: 1px solid var(--trait); background: #fff; overflow: hidden; font-family: Roboto, Arial, sans-serif; letter-spacing: 0; -webkit-font-smoothing: antialiased; color: #0f0f0f; transition: background .2s; }
.ecran-yt * { font-family: inherit; }
.yt-entete { height: 56px; padding: 0 18px; display: flex; align-items: center; gap: 16px; }
.yt-marque { display: flex; align-items: center; gap: 4px; font: 700 19px/1 Roboto, Arial, sans-serif; letter-spacing: -1px; flex: none; }
.yt-marque sup { font-size: 9px; font-weight: 400; letter-spacing: 0; color: #606060; margin: -10px 0 0 2px; }
.yt-play { width: 28px; height: 20px; border-radius: 6px; background: #ff0000; position: relative; margin-right: 2px; }
.yt-play::after { content: ""; position: absolute; left: 11px; top: 6px; border: 4px solid transparent; border-left: 7px solid #fff; border-right: 0; }
.yt-cherche { flex: 1; max-width: 520px; margin: 0 auto; height: 38px; border: 1px solid #d3d3d3; border-radius: 99px; display: flex; overflow: hidden; }
.yt-cherche i { flex: 1; padding: 0 16px; display: flex; align-items: center; font-style: normal; font-size: 15px; color: #888; }
.yt-cherche b { width: 62px; display: grid; place-items: center; background: #f8f8f8; border-left: 1px solid #d3d3d3; color: #333; }
.yt-droite { display: flex; align-items: center; gap: 18px; flex: none; color: #0f0f0f; }
.yt-moi { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(140deg, #ffb347, #e97a00); overflow: hidden; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 500; }
.yt-moi img { width: 100%; height: 100%; object-fit: cover; }
.yt-filtres { display: flex; gap: 12px; padding: 4px 18px 16px; overflow: hidden; }
.yt-filtres span { flex: none; height: 32px; padding: 0 12px; border-radius: 8px; background: #f2f2f2; display: flex; align-items: center; font-size: 14px; font-weight: 500; }
.yt-filtres span.on { background: #0f0f0f; color: #fff; }
.yt-fil { padding: 4px 18px 24px; }
.yt-grille-fil { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 34px 16px; }
.yt-v-th { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #e5e5e5; }
.yt-v-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-duree { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .8); color: #fff; font-size: 12px; font-weight: 500; padding: 1px 4px; border-radius: 4px; }
.yt-v-meta { display: flex; gap: 12px; margin-top: 12px; align-items: flex-start; }
.yt-v-txt { flex: 1 1 auto; min-width: 0; }
.yt-points { flex: 0 0 24px; color: #606060; font-size: 17px; line-height: 20px; text-align: center; }
.yt-av { width: 36px; height: 36px; border-radius: 50%; flex: 0 0 36px; object-fit: cover; display: grid; place-items: center; color: #fff; font-weight: 500; font-size: 15px; background: #909090; }
.yt-av--moi { background: linear-gradient(135deg, #ff991c, #ff6b1a); }
.yt-v-t { margin: 0 0 4px; font-size: 16px; line-height: 22px; font-weight: 500; color: #0f0f0f; max-height: 44px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.yt-v-c, .yt-v-s { margin: 0; font-size: 14px; color: #606060; line-height: 20px; }
.yt-v-c { margin-top: 2px; }
.yt-v--moi .yt-v-th { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--orange); }
.ecran-yt .vide { color: #606060; }

/* thème sombre de YouTube */
.ecran-yt.sombre { background: #0f0f0f; border-color: #272727; color: #f1f1f1; }
.ecran-yt.sombre .yt-cherche { border-color: #303030; }
.ecran-yt.sombre .yt-cherche i { color: #888; background: #121212; }
.ecran-yt.sombre .yt-cherche b { background: #222; border-color: #303030; color: #f1f1f1; }
.ecran-yt.sombre .yt-droite, .ecran-yt.sombre .yt-marque { color: #f1f1f1; }
.ecran-yt.sombre .yt-filtres span { background: #272727; color: #f1f1f1; }
.ecran-yt.sombre .yt-filtres span.on { background: #f1f1f1; color: #0f0f0f; }
.ecran-yt.sombre .yt-v-t { color: #f1f1f1; }
.ecran-yt.sombre .yt-v-c, .ecran-yt.sombre .yt-v-s, .ecran-yt.sombre .yt-points, .ecran-yt.sombre .vide { color: #aaa; }
.ecran-yt.sombre .yt-v--moi .yt-v-th { box-shadow: 0 0 0 3px #0f0f0f, 0 0 0 6px var(--orange); }

/* téléphone : le fil dans un cadre de smartphone */
.ecran-yt.mob { width: 392px; max-width: 100%; margin: 0 auto; border: 11px solid #0c0f1a; border-radius: 48px; box-shadow: 0 30px 60px -30px rgba(12, 15, 26, .5); }
.ecran-yt.mob .yt-entete { height: 52px; padding: 18px 14px 0; gap: 10px; }
.ecran-yt.mob .yt-cherche { display: none; }
.ecran-yt.mob .yt-droite { margin-left: auto; gap: 14px; }
.ecran-yt.mob .yt-filtres { padding: 10px 14px 12px; gap: 8px; }
.ecran-yt.mob .yt-filtres span { height: 30px; font-size: 13px; }
.ecran-yt.mob .yt-fil { padding: 0 0 18px; max-height: 640px; overflow-y: auto; scrollbar-width: none; }
.ecran-yt.mob .yt-grille-fil { grid-template-columns: 1fr; gap: 20px; }
.ecran-yt.mob .yt-v-th { border-radius: 0; }
.ecran-yt.mob .yt-v-meta { padding: 0 12px; }
.ecran-yt.mob .yt-v-t { font-size: 14px; line-height: 20px; max-height: 40px; }
.ecran-yt.mob .yt-v-c, .ecran-yt.mob .yt-v-s { font-size: 12px; line-height: 18px; display: inline; }
.ecran-yt.mob .yt-v--moi .yt-v-th { box-shadow: inset 0 0 0 4px var(--orange); }

/* mode capture : la page YouTube seule, prête pour une capture d'écran */
body.capture .cote, body.capture .barre-haut, body.capture .haut-mobile, body.capture .barre-bas,
body.capture [data-ecran="apercu"] .tete-ecran, body.capture .studio-reglages, body.capture .barre-sim { display: none !important; }
body.capture .cadre, body.capture .studio { display: block; }
body.capture .panneau { margin: 0; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
body.capture .ecran-yt:not(.mob) { border: 0; border-radius: 0; min-height: 100vh; }
body.capture .ecran-yt.mob { margin: 24px auto; }

/* --- Livraison --- */
.surtitre { display: inline-block; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--gris); }
.livraison { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.liv-image { margin: 0; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--fond); box-shadow: var(--ombre-miniature), 0 0 0 1px rgba(12, 15, 26, .04); }
.liv-image img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.liv-image img.charge { opacity: 1; }
.liv-versions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.liv-versions button { display: grid; gap: 6px; width: 132px; text-align: left; font-size: 12.5px; font-weight: 500; color: var(--gris); }
.liv-versions img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; opacity: .6; transition: opacity .15s; }
.liv-versions button.on { color: var(--encre); }
.liv-versions button.on img { opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--orange); }
.liv-actions { position: sticky; top: 16px; display: grid; gap: 10px; padding: 20px; }
.liv-pret { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px; font: 600 17px "Instrument Sans", sans-serif; letter-spacing: -0.015em; color: var(--encre); }
.point-vert { width: 8px; height: 8px; border-radius: 50%; background: var(--vert, #22c55e); box-shadow: 0 0 0 4px rgba(34, 197, 94, .15); }
.btn-haut { height: 46px; gap: 9px; font-size: 14px; border-radius: 13px; }
.liv-titres { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--trait); display: grid; gap: 8px; }
.liv-titres > b { font: 600 14.5px "Instrument Sans", sans-serif; color: var(--encre); }
.titre-propose { width: 100%; display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--fond); text-align: left; font-size: 13.5px; line-height: 1.4; color: var(--encre); }
.titre-propose span { flex: 1; }
.titre-propose svg { flex: none; margin-top: 2px; color: var(--gris-doux); }
.titre-propose:hover svg { color: var(--encre); }
.titre-propose.copie { background: rgba(34, 197, 94, .1); }
.liv-retouche { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--gris); }
.liv-toutes { font-size: 13.5px; font-weight: 500; color: var(--encre); }

/* --- Facturation --- */
.table-factures table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-factures th { text-align: left; font-size: 12px; font-weight: 500; color: var(--gris-doux); padding: 4px 12px 12px; border-bottom: 1px solid var(--trait); }
.table-factures td { padding: 14px 12px; border-bottom: 1px solid #f2f2f4; color: var(--encre); vertical-align: middle; }
.table-factures tr:last-child td { border-bottom: 0; }
.table-factures td.montant { font: 600 16px "Instrument Sans", sans-serif; letter-spacing: -0.02em; }
.table-factures .num { color: var(--gris); font-variant-numeric: tabular-nums; }
.table-factures .actions { text-align: right; white-space: nowrap; }
.table-factures .actions a, .table-factures .actions button { height: 32px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 99px; background: #f1f1f3; color: var(--gris); }
.badge.paye { background: rgba(34, 197, 94, .12); color: #15803d; }
.badge.attente-paiement { background: var(--orange-pale); color: #b35f00; }
.supprimer { color: #b91c1c; border: 1px solid #f3d0d0; background: #fff; }
.depot { margin-bottom: 14px; padding: 18px; border-radius: 18px; border: 1.5px dashed #d6d6dc; background: #fff; display: flex; align-items: center; gap: 14px; }
.depot.survol { border-color: var(--orange); background: #fffaf3; }
.depot .badge { background: var(--encre); color: #fff; }
.depot p { margin: 0; flex: 1; color: var(--gris); }

@media (max-width: 1180px) {
  .grille-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .livraison { grid-template-columns: 1fr; }
  .liv-actions { position: static; }
  .studio { grid-template-columns: 260px minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .grille-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .outils-liste { flex-wrap: wrap; }
  .outils-liste .recherche { max-width: none; flex-basis: 100%; }
  .studio { grid-template-columns: 1fr; }
  .choix-miniatures { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; max-height: none; overflow-x: auto; overflow-y: hidden; }
  .studio-reglages { position: static; }
  .barre-sim .btn-clair { display: none; }
  .ecran-yt:not(.mob) .yt-cherche, .ecran-yt:not(.mob) .yt-filtres span:nth-child(n+4) { display: none; }
  .yt-fil { padding: 4px 12px 18px; }
  .table-factures { overflow-x: auto; }
  .table-factures table { min-width: 560px; }
  .visionneuse { grid-template-columns: 1fr; padding: 16px; }
  .vis-fleche { display: none; }
  .vis-contenu figcaption { flex-direction: column; align-items: flex-start; }
}
