/* Palette tirée de la collection : prune, sauge, camel sur un gris lilas très clair. */
:root {
  --encre: #2a1f2d;
  --encre-douce: #6e6473;
  --fond: #f3f1f4;
  --surface: #ffffff;
  --trait: #e0dae3;
  --prune: #6b2d5c;
  --prune-fonce: #521f46;
  --prune-pale: #f1e6ee;
  --sauge: #3f6b4c;
  --sauge-pale: #e3eee6;
  --camel: #8a5e17;
  --camel-pale: #f6ead3;
  --alerte: #a8231c;
  --alerte-pale: #fbe5e3;
  --titre: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --texte: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --rayon: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 15px/1.5 var(--texte);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2 { font-family: var(--titre); margin: 0; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--prune); outline-offset: 2px; }

/* En-tête */

.entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
}
.entete-marque {
  font: 700 19px/1 var(--titre);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.entete-nav { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.entete-nav a { text-decoration: none; color: var(--encre-douce); }
.entete-nav a:hover { color: var(--encre); }
.entete-qui { color: var(--encre-douce); padding-left: 20px; border-left: 1px solid var(--trait); }

.bandeau {
  margin: 0 clamp(16px, 4vw, 40px) 8px;
  padding: 10px 16px;
  border-radius: var(--rayon);
  background: var(--sauge-pale);
  color: var(--sauge);
  font-weight: 500;
}
.bandeau-erreur { background: var(--alerte-pale); color: var(--alerte); }

/* Page */

.page { max-width: 1240px; margin: 0 auto; padding: 16px clamp(16px, 4vw, 40px) 64px; }
.page-tete {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-bottom: 24px;
}
.titre-page {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}
.sous-titre { margin-top: 8px; color: var(--encre-douce); }
.vide, .aide { color: var(--encre-douce); max-width: 60ch; }
.aide { margin-top: 20px; font-size: 14px; }
.retour {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--encre-douce);
  font-size: 14px;
  text-decoration: none;
}
.retour::before { content: "‹ "; }
.retour:hover { color: var(--encre); }

.resume, .etats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.resume li { display: flex; align-items: center; gap: 7px; }
.pastille { width: 9px; height: 9px; border-radius: 50%; background: var(--encre-douce); }
.pastille-relire { background: #c9922e; }
.pastille-valide { background: var(--sauge); }
.pastille-programme { background: var(--prune); }
.pastille-probleme { background: var(--alerte); }
.etats { flex-direction: column; gap: 6px; }
.etats li { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.etats small { flex-basis: 100%; color: var(--encre-douce); }

/* États */

.etat {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.etat-relire { background: var(--camel-pale); color: var(--camel); }
.etat-valide { background: var(--sauge-pale); color: var(--sauge); }
.etat-programme { background: var(--prune-pale); color: var(--prune); }
.etat-publie { background: #e8e5ea; color: var(--encre-douce); }
.etat-probleme { background: var(--alerte-pale); color: var(--alerte); }

/* Calendrier : chaque jour porte ses publications comme des tirages photo */

.semaine-entetes, .calendrier { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.semaine-entetes { margin-bottom: 8px; font-size: 13px; color: var(--encre-douce); }
.semaine-entetes span { padding-left: 4px; }

.jour {
  min-height: 132px;
  padding: 8px;
  border-radius: var(--rayon);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.12s, background 0.12s;
}
.jour-vide { background: transparent; box-shadow: inset 0 0 0 1px var(--trait); }
.jour-passe { opacity: 0.55; }
.jour-numero { font: 600 15px/1 var(--titre); color: var(--encre-douce); padding: 2px 2px 0; }
.jour-nom { display: none; }
.jour-aujourdhui .jour-numero { color: var(--prune); }
.jour-aujourdhui { box-shadow: inset 0 0 0 2px var(--prune); }
.jour.cible { background: var(--prune-pale); box-shadow: inset 0 0 0 2px var(--prune); }

.tirage { display: block; text-decoration: none; }
.tirage[draggable="true"] { cursor: grab; }
.tirage.en-deplacement { opacity: 0.4; }
.tirage-image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  background: var(--trait);
}
.tirage-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s; }
.tirage:hover .tirage-image img { transform: scale(1.03); }
.tirage-heure {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(42, 31, 45, 0.78);
  color: #fff;
  font: 600 12px/1.6 var(--titre);
}
.tirage-image .etat { position: absolute; left: 6px; bottom: 6px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7); }
.tirage-titre { display: block; margin-top: 7px; padding: 0 2px; font-size: 13.5px; font-weight: 500; line-height: 1.3; }

/* Fiche d'une publication */

.fiche { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 32px; align-items: start; }
.fiche > * { min-width: 0; }
.fiche-edition { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.bloc { background: var(--surface); border-radius: 14px; padding: 22px; }
.bloc h2 { font-size: 20px; letter-spacing: -0.02em; }
.bloc h2 + p { margin: 4px 0 16px; color: var(--encre-douce); font-size: 14px; }

.champ { display: block; font-size: 13px; font-weight: 600; color: var(--encre-douce); border: 0; padding: 0; margin: 0; min-width: 0; }
.champ legend { padding: 0; }
.champ input, .champ textarea, .connexion input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--trait);
  border-radius: 8px;
  background: var(--surface);
  color: var(--encre);
  font: 400 15px/1.55 var(--texte);
}
.champ textarea { resize: vertical; }
.champ input:disabled, .champ textarea:disabled { background: var(--fond); color: var(--encre-douce); }
.compteur { margin-top: 8px; font-size: 13px; color: var(--encre-douce); }
.compteur.trop { color: var(--alerte); font-weight: 600; }
.rangee { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.cases { display: flex; gap: 18px; margin-top: 6px; padding: 10px 0; }
.case { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 400; color: var(--encre); }
.case input { width: 17px; height: 17px; accent-color: var(--prune); }

.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--trait); }
.actions-note { flex: 1 1 260px; color: var(--encre-douce); font-size: 14px; }
.bouton {
  padding: 11px 20px;
  border: 1px solid var(--trait);
  border-radius: 999px;
  background: var(--surface);
  color: var(--encre);
  font: 600 15px/1 var(--texte);
  cursor: pointer;
}
.bouton:hover { border-color: var(--encre-douce); }
.bouton-principal { border-color: var(--prune); background: var(--prune); color: #fff; }
.bouton-principal:hover { border-color: var(--prune-fonce); background: var(--prune-fonce); }

/* Cadrage */

.cadrage { list-style: none; margin: 0; padding: 0 0 6px; display: flex; gap: 12px; overflow-x: auto; }
.cadrage li { flex: 0 0 132px; }
.cadrage img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.segments { display: flex; margin-top: 6px; border: 1px solid var(--trait); border-radius: 999px; overflow: hidden; }
.segments button {
  flex: 1;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--encre-douce);
  font: 500 12px/1.4 var(--texte);
  cursor: pointer;
}
.segments button:hover { background: var(--fond); }
.segments button[aria-pressed="true"] { background: var(--encre); color: #fff; }

/* Aperçu */

.apercu { position: sticky; top: 16px; }
.onglets { display: inline-flex; padding: 3px; margin-bottom: 12px; border-radius: 999px; background: #e6e1e9; }
.onglets button {
  padding: 6px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--encre-douce);
  font: 600 13px/1.4 var(--texte);
  cursor: pointer;
}
.onglets button[aria-selected="true"] { background: var(--surface); color: var(--encre); }
.maquette { background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: 0 12px 32px -18px rgba(82, 31, 70, 0.45); }
.maquette-tete { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 14px; }
.maquette-tete small { display: block; color: var(--encre-douce); font-size: 12px; }
.avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--prune);
  color: #fff;
  display: grid;
  place-items: center;
  font: 700 15px/1 var(--titre);
}
.carrousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carrousel::-webkit-scrollbar { display: none; }
.carrousel img { flex: 0 0 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; }
.points { display: flex; justify-content: center; gap: 5px; padding: 10px 0 2px; min-height: 8px; }
.points i { width: 6px; height: 6px; border-radius: 50%; background: var(--trait); }
.points i.actif { background: var(--prune); }
.maquette-legende { padding: 8px 14px 16px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.maquette-legende button { border: 0; padding: 0; background: none; color: var(--encre-douce); font: inherit; cursor: pointer; }
.mosaique { display: grid; gap: 2px; grid-template-columns: 1fr 1fr; }
.mosaique span { position: relative; aspect-ratio: 1; overflow: hidden; }
.mosaique img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mosaique-1 { grid-template-columns: 1fr; }
.mosaique-3 span:first-child { grid-column: span 2; aspect-ratio: 2 / 1; }
.mosaique b { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(42, 31, 45, 0.55); color: #fff; font: 700 28px/1 var(--titre); }
.apercu-note { margin-top: 10px; font-size: 12.5px; color: var(--encre-douce); }

/* Connexion */

.connexion { display: grid; place-items: center; min-height: 72vh; padding: 24px; }
.connexion form { width: min(100%, 380px); display: grid; gap: 16px; }
.connexion h1 { font-size: 56px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.connexion p { color: var(--encre-douce); }
.connexion label { font-size: 13px; font-weight: 600; color: var(--encre-douce); }
.connexion-erreur { color: var(--alerte) !important; font-weight: 600; }
.connexion .bouton { justify-self: start; margin-top: 4px; }

/* Petits écrans : le calendrier devient un agenda */

@media (max-width: 860px) {
  .semaine-entetes { display: none; }
  .calendrier { grid-template-columns: 1fr; }
  .jour-vide { display: none; }
  .jour { min-height: 0; padding: 12px; }
  .jour-nom { display: inline; }
  .jour-numero::first-letter { text-transform: uppercase; }
  .tirage { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
  .tirage-titre { margin: 0; font-size: 16px; }
  .fiche { grid-template-columns: 1fr; }
  .apercu { position: static; max-width: 400px; }
  .entete-qui { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 520px) {
  .entete-nav a[href="/"] { display: none; }
}

/* Articles liés (stock et liens Odoo) */

.bloc-tete + p { margin: 4px 0 16px; color: var(--encre-douce); font-size: 14px; }
.bloc-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.lien { border: 0; padding: 0; background: none; color: var(--prune); font: 500 14px/1.4 var(--texte); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lien:hover { color: var(--prune-fonce); }
.lien-discret { color: var(--encre-douce); }
.articles, .resultats { list-style: none; margin: 0; padding: 0; }
.article { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--trait); }
.article:first-child { border-top: 0; padding-top: 0; }
.article > img { flex: none; width: 64px; height: 80px; object-fit: cover; border-radius: 6px; background: var(--fond); }
.article-corps { min-width: 0; display: grid; gap: 6px; }
.article-nom { font-weight: 600; }
.article-nom .etat { margin-left: 6px; vertical-align: 1px; }
.tailles { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.taille { padding: 2px 9px; border: 1px solid var(--trait); border-radius: 6px; font-size: 13px; color: var(--encre-douce); }
.taille b { color: var(--encre); font-family: var(--titre); }
.taille-vide { background: var(--alerte-pale); border-color: transparent; color: var(--alerte); }
.taille-vide b { color: var(--alerte); }
.prix { margin-left: 6px; font: 600 14px/1 var(--titre); }
.article-liens { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 14px; }
.article-liens a { color: var(--prune); text-underline-offset: 3px; }
.article-note { color: var(--alerte); }
.en-ligne { display: inline; }
.recherche { display: flex; gap: 10px; margin-top: 18px; }
.recherche input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--trait); border-radius: 999px; font: 400 15px/1.4 var(--texte); color: var(--encre); background: var(--surface); }
.resultats { margin-top: 12px; }
.resultats li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--trait); }
.resultats small { color: var(--encre-douce); }
.bouton-petit { padding: 7px 14px; font-size: 13px; }
.tirage-alerte { position: absolute; top: 6px; left: 6px; white-space: nowrap; padding: 1px 8px; border-radius: 999px; background: var(--alerte); color: #fff; font: 600 11.5px/1.6 var(--texte); }

/* Recherche d'article : suggestions avec photo */

.recherche-champ { position: relative; flex: 1; min-width: 0; display: flex; }
.suggestions {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid var(--trait);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 40px -20px rgba(82, 31, 70, 0.5);
}
.suggestions li { display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 9px; cursor: pointer; }
.suggestions li[aria-selected="true"] { background: var(--prune-pale); }
.suggestions img, .resultats img { flex: none; width: 52px; height: 65px; object-fit: cover; border-radius: 6px; background: var(--fond); }
.suggestions strong { display: block; font-weight: 600; line-height: 1.3; }
.suggestions small { color: var(--encre-douce); }
.suggestions .rupture { color: var(--alerte); font-weight: 600; }
.suggestions .info { padding: 10px; color: var(--encre-douce); cursor: default; }
.resultats li > span { flex: 1; min-width: 0; }

/* Cadrage : la photo se met à jour sur place */

.cadrage li.en-cours img { opacity: 0.45; }
.cadrage img { transition: opacity 0.15s; }
.segments.en-cours button { cursor: progress; }

/* Stories et reels : aperçu plein écran vertical */

.fiche-story, .fiche-reel { grid-template-columns: minmax(240px, 330px) minmax(0, 1fr); }
.ecran {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  background: #1c151e;
  box-shadow: 0 16px 36px -18px rgba(82, 31, 70, 0.55);
}
.ecran .carrousel { height: 100%; }
.ecran .carrousel img, .ecran .carrousel video {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  scroll-snap-align: start;
}
.points-barres { position: absolute; z-index: 2; top: 10px; left: 12px; right: 12px; padding: 0; gap: 4px; min-height: 0; }
.points-barres i { flex: 1; width: auto; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.4); }
.points-barres i.actif { background: #fff; }
.ecran-compte {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.ecran-compte .avatar { width: 28px; height: 28px; font-size: 13px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }
.ecran-legende {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 46%;
  overflow: hidden;
  margin: 0;
  padding: 48px 14px 64px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-size: 13.5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  pointer-events: none;
}
.ecran-legende button { pointer-events: auto; border: 0; padding: 0; background: none; color: rgba(255, 255, 255, 0.75); font: inherit; cursor: pointer; }

.tirage-genre {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(42, 31, 45, 0.82);
  color: #fff;
  font: 600 11.5px/1.6 var(--texte);
}

.cadrage-story li { flex-basis: 104px; }
.cadrage-story img { aspect-ratio: 9 / 16; }

.soucis { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; }
.soucis li { padding: 9px 14px; border-radius: 8px; background: var(--camel-pale); color: var(--camel); font-size: 14px; font-weight: 500; }
.soucis .souci-bloquant { background: var(--alerte-pale); color: var(--alerte); }
.videos { list-style: none; margin: 14px 0 0; padding: 0; font-size: 14px; color: var(--encre-douce); }
.videos strong { color: var(--encre); font-weight: 600; margin-right: 6px; }
.rangee-seule { margin-top: 0; }
.soucis + .rangee-seule, .videos + .rangee { margin-top: 18px; }

@media (max-width: 860px) {
  .fiche-story, .fiche-reel { grid-template-columns: 1fr; }
  .fiche-story .apercu, .fiche-reel .apercu { max-width: 300px; }
}

/* Navigation par mois et ajout d'une publication */

.entete-action { padding: 7px 14px; border-radius: 999px; background: var(--prune); color: #fff !important; font-weight: 600; }
.entete-action:hover { background: var(--prune-fonce); }
.mois-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mois-nav .bouton { text-decoration: none; }
.jour-tete { display: flex; align-items: center; justify-content: space-between; min-height: 24px; }
.jour-ajout {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--prune-pale);
  color: var(--prune);
  font: 600 17px/1 var(--titre);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.12s;
}
.jour:hover .jour-ajout, .jour-ajout:focus-visible { opacity: 1; }
.jour-ajout:hover { background: var(--prune); color: #fff; }
@media (hover: none) { .jour-ajout { opacity: 1; } }
.jour-hors-mois { opacity: 0.45; }
.jour-hors-mois.jour-passe { opacity: 0.3; }
.tirage-vide { position: absolute; inset: 0; display: grid; place-items: center; color: var(--encre-douce); font-size: 12.5px; }

/* Création */

.page-etroite { max-width: 780px; }
.page-etroite .titre-page { margin-bottom: 24px; }
.page-etroite .bloc { display: grid; gap: 18px; }
.page-etroite .rangee { margin-top: 0; }
.page-etroite .compteur { margin-top: -10px; }
.genres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.genre { position: relative; display: block; padding: 14px; border: 1px solid var(--trait); border-radius: 12px; cursor: pointer; font-weight: 400; color: var(--encre-douce); font-size: 13.5px; line-height: 1.4; }
.genre input { position: absolute; opacity: 0; }
.genre strong { display: block; margin-bottom: 4px; color: var(--encre); font: 700 18px/1.1 var(--titre); }
.genre:has(input:checked) { border-color: var(--prune); background: var(--prune-pale); box-shadow: inset 0 0 0 1px var(--prune); }
.genre:has(input:focus-visible) { outline: 2px solid var(--prune); outline-offset: 2px; }
.champ select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--trait);
  border-radius: 8px;
  background: var(--surface);
  color: var(--encre);
  font: 400 15px/1.55 var(--texte);
}
.rangee > .champ { flex: 1 1 160px; }

/* Dépôt de fichiers */

.depot {
  display: grid;
  place-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 22px 16px;
  border: 1.5px dashed #c9bfce;
  border-radius: 12px;
  color: var(--encre-douce);
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.depot:hover, .depot.survol { border-color: var(--prune); background: var(--prune-pale); }
.depot strong { color: var(--prune); font-weight: 600; }
.depot small { display: block; }
.depot input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.depot:has(input:focus-visible) { outline: 2px solid var(--prune); outline-offset: 2px; }
.depot.occupe { pointer-events: none; opacity: 0.6; }
.cadrage + .depot { margin-top: 16px; }
.depot-etat { margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--prune); white-space: pre-line; }
.depot-etat.erreur { color: var(--alerte); }
.depot-etat a { color: inherit; }

/* Liste des photos et vidéos d'une publication */

.media-visuel { position: relative; display: block; border-radius: 6px; overflow: hidden; background: var(--fond); }
.media-rang {
  position: absolute;
  top: 6px;
  left: 6px;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(42, 31, 45, 0.78);
  color: #fff;
  font: 600 12px/1.7 var(--titre);
  text-align: center;
}
.media-marque { position: absolute; right: 6px; bottom: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(42, 31, 45, 0.82); color: #fff; font: 600 11.5px/1.6 var(--texte); }
.media-vide { display: grid; place-items: center; aspect-ratio: 9 / 16; color: var(--encre-douce); font-size: 13px; }
.cadrage-reel li { flex-basis: 104px; }
.cadrage-reel img { aspect-ratio: 9 / 16; }
.media-outils { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.media-outils button {
  border: 1px solid var(--trait);
  border-radius: 999px;
  background: var(--surface);
  color: var(--encre-douce);
  font: 500 12px/1.5 var(--texte);
  padding: 2px 9px;
  cursor: pointer;
}
.media-outils button:hover:not(:disabled) { border-color: var(--encre-douce); color: var(--encre); }
.media-outils button:disabled { opacity: 0.35; cursor: default; }
.media-outils .media-retirer { margin-left: auto; }
.media-outils .media-retirer:hover { border-color: var(--alerte); color: var(--alerte); }
.actions-gauche { margin-right: auto; }

@media (max-width: 860px) {
  .genres { grid-template-columns: 1fr; }
  .entete-action { padding: 6px 11px; }
}

/* L'attribut hidden doit toujours l'emporter sur les règles d'affichage ci-dessus. */
[hidden] { display: none !important; }

.cadrage-story li, .cadrage-reel li { flex-basis: 128px; }
.media-outils button { padding: 3px 10px; font-size: 13px; }
