/* ============================================================
   Sparkclip — espace de travail : comptes, outils, pages
   Charge apres style.css, hors couches : ces regles l'emportent.
   ============================================================ */

[hidden] { display: none !important; }


/* ---------------- compte actif et outils ---------------- */
.ca-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ca-meta b { font-size: 13px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca-meta small { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.side-nav .side-label { padding: 12px 8px 5px; }
.nav-item {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; margin-bottom: 2px;
  border: 1px solid transparent; border-radius: 12px; background: none;
  color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 540;
  text-align: left; cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-item .ico { width: 17px; height: 17px; }
.nav-item span { flex: 1; }
.nav-item:hover { background: var(--glass-bg-hover); color: var(--ink); }
.nav-item.on {
  background: var(--glass-bg-strong); border-color: var(--glass-stroke); color: var(--ink);
  box-shadow: 0 1px 0 rgb(var(--voile) / 0.22) inset;
}
.nav-badge {
  min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--fort); color: var(--sur-fort); font-size: 10.5px; font-weight: 700; font-style: normal;
}

/* ---------------- barre du haut ---------------- */
.lien-crumb {
  flex: none; padding: 0; border: 0; background: none;
  color: var(--ink-3); font: inherit; font-size: 14px; cursor: pointer;
}
.lien-crumb:hover { color: var(--ink); }
.notif-zone { position: relative; flex: none; }
.notif-btn { position: relative; }
.notif-pastille {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--fort); color: var(--sur-fort); font-size: 10px; font-weight: 700; font-style: normal;
}
.notif-panneau {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 40;
  width: min(380px, 86vw); max-height: 70vh; padding: 0;
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-md);
}
.notif-tete { padding: 14px 16px 10px; border-bottom: 1px solid var(--glass-stroke); }
.notif-liste { overflow-y: auto; }
.notif {
  width: 100%; display: flex; gap: 11px; padding: 11px 16px;
  border: 0; border-bottom: 1px solid rgb(var(--voile) / 0.06); background: none;
  color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.notif:hover { background: var(--glass-bg-hover); }
.notif.nouvelle { background: rgb(var(--voile) / 0.05); }
.notif-ico {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center;
  border-radius: 10px; background: var(--glass-bg-strong);
}
.notif-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.notif-txt span {
  color: var(--ink-2); overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.notif-txt small { font-size: 11px; color: var(--ink-3); }

/* ---------------- pages ---------------- */
.page { max-width: 1280px; margin: 0 auto; }
.page-etroite { max-width: 760px; display: grid; gap: 14px; }
.page-tete { margin: 2px 2px 18px; }
.page-tete h2 { margin: 0 0 4px; font-size: 25px; letter-spacing: -0.03em; }
.page-tete p { margin: 0; font-size: 13px; }
.grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 8px; }
.bloc { min-width: 0; padding: 16px 18px; border-radius: var(--r-md); }
.bloc-tete { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bloc-tete h3 {
  flex: 1; margin: 0; display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 620;
}
.bloc-tete h3 .ico { width: 16px; height: 16px; color: var(--ink-2); }
.bloc .hint { margin: 0 0 10px; }
.vide-bloc { margin: 4px 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.pill {
  padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 650;
  background: rgb(var(--voile) / 0.1); color: var(--ink-2);
}
.pill-fort { background: var(--fort); color: var(--sur-fort); }
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tuile {
  display: flex; flex-direction: column; gap: 3px; padding: 14px 16px;
  border-radius: var(--r-sm); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.tuile b { font-size: 22px; font-weight: 680; letter-spacing: -0.03em; }
.tuile span { font-size: 11.5px; color: var(--ink-3); }
.tuile:hover { background: var(--glass-bg-hover); }

.ligne {
  width: calc(100% + 16px); margin: 0 -8px; padding: 8px;
  display: flex; align-items: center; gap: 11px;
  border: 0; border-radius: 12px; background: none;
  color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.ligne:hover { background: var(--glass-bg-hover); }
.ligne-img {
  width: 36px; height: 50px; flex: none; display: grid; place-items: center; overflow: hidden;
  border-radius: 8px; background: rgba(255, 255, 255, 0.07); color: var(--ink-3);
}
.ligne-img.large { width: 72px; height: 42px; }
.ligne-img img { width: 100%; height: 100%; object-fit: cover; }
.ligne-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ligne-txt b { font-size: 12.5px; font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ligne-txt small { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre-mini { display: block; height: 3px; margin-top: 5px; overflow: hidden; border-radius: 2px; background: rgb(var(--voile) / 0.1); }
.barre-mini i { display: block; height: 100%; background: var(--fort); }
.mini-clips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.mini-clip {
  position: relative; width: 64px; height: 110px; flex: none; padding: 0;
  display: grid; place-items: center; overflow: hidden; cursor: pointer;
  border: 1px solid var(--glass-stroke); border-radius: 10px;
  background: rgba(255, 255, 255, 0.06); color: var(--ink-3);
}
.mini-clip img { width: 100%; height: 100%; object-fit: cover; }
.mini-clip b {
  position: absolute; left: 5px; bottom: 5px; padding: 1px 5px; border-radius: 6px;
  font-size: 10.5px; background: rgba(0, 0, 0, 0.65); color: #fff;
}

.demarrage { margin-bottom: 14px; }
.etapes { display: flex; flex-wrap: wrap; gap: 8px; }
.etape {
  display: flex; align-items: center; gap: 9px; padding: 9px 13px;
  border: 1px solid var(--glass-stroke); border-radius: 999px;
  background: rgb(var(--voile) / 0.04); color: var(--ink); font: inherit; font-size: 12.5px; cursor: pointer;
}
.etape:hover { background: var(--glass-bg-hover); }
.etape-coche {
  width: 18px; height: 18px; display: grid; place-items: center;
  border: 1.5px solid var(--ink-3); border-radius: 50%;
}
.etape-coche .ico { width: 11px; height: 11px; stroke-width: 2.4; }
.etape.faite { color: var(--ink-3); text-decoration: line-through; }
.etape.faite .etape-coche { background: var(--fort); border-color: var(--fort); color: var(--sur-fort); }

/* ---------------- validation ---------------- */
.val { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; min-height: 560px; }
.val-scene { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 0; }
.val-phone {
  height: min(74vh, 760px); aspect-ratio: 9 / 16; display: grid; place-items: center; overflow: hidden;
  border-radius: 26px; background: #000; border: 1px solid var(--glass-stroke); box-shadow: var(--shadow-float);
}
.val-phone video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.val-attente { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 12.5px; color: var(--ink-3); }
.val-nav[disabled] { opacity: 0.25; pointer-events: none; }
.val-panneau { min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 20px; overflow-y: auto; border-radius: var(--r-md); }
.val-titre { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; }
.val-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.val-projet { display: flex; align-items: center; gap: 6px; margin: 0; }
.val-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.val-actions .val-oui { grid-column: 1 / -1; order: -1; padding: 13px; font-size: 14px; }
.val-actions kbd {
  padding: 1px 5px; border: 1px solid currentColor; border-radius: 5px;
  font: inherit; font-size: 10px; opacity: 0.55;
}
.val-suivants { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.val-vignette {
  width: 40px; height: 70px; padding: 0; display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--glass-stroke); border-radius: 8px;
  background: rgb(var(--voile) / 0.06); color: var(--ink-3); cursor: pointer; opacity: 0.55;
}
.val-vignette img { width: 100%; height: 100%; object-fit: cover; }
.val-vignette.on, .val-vignette:hover { opacity: 1; border-color: var(--fort); }

/* ---------------- projets et bibliotheque ---------------- */
.projets-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.carte-projet { position: relative; overflow: hidden; border-radius: var(--r-md); cursor: pointer; transition: transform 0.35s var(--spring); }
.carte-projet:hover { transform: translateY(-2px); }
.cp-image {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center;
  background: rgb(var(--voile) / 0.06); color: var(--ink-3);
}
.cp-image img { width: 100%; height: 100%; object-fit: cover; }
.cp-occupe { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.45); }
.cp-corps { display: flex; flex-direction: column; gap: 3px; padding: 11px 14px 13px; }
.cp-titre {
  font-size: 13px; font-weight: 580; line-height: 1.3; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.carte-projet .proj-del { top: 10px; transform: scale(0.85); background: rgba(0, 0, 0, 0.6); }
.carte-projet:hover .proj-del { opacity: 1; pointer-events: auto; transform: scale(1); }

.biblio-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.carte-biblio { overflow: hidden; border-radius: var(--r-sm); cursor: pointer; transition: transform 0.35s var(--spring); }
.carte-biblio:hover { transform: translateY(-2px); }
.cb-image {
  position: relative; aspect-ratio: 9 / 14; display: grid; place-items: center;
  background: rgb(var(--voile) / 0.06); color: var(--ink-3);
}
.cb-image img { width: 100%; height: 100%; object-fit: cover; }
.cb-etat {
  position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 650; background: rgba(0, 0, 0, 0.65); color: #fff;
}
.cb-etat.etat-publie { background: #fff; color: #0a0a0c; }
.cb-etat.etat-rejete { opacity: 0.6; text-decoration: line-through; }
.cb-corps { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px 11px; }
.cb-corps b {
  font-size: 12.5px; font-weight: 580; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.cb-corps small { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compteur { margin-left: 3px; opacity: 0.55; }
.champ-recherche {
  display: flex; align-items: center; gap: 7px; padding: 6px 12px;
  border: 1px solid var(--glass-stroke); border-radius: 999px;
  background: rgb(var(--voile) / 0.05); color: var(--ink-3);
}
.champ-recherche input {
  width: 220px; border: 0; outline: 0; background: none;
  color: var(--ink); font: inherit; font-size: 12.5px;
}

/* ---------------- calendrier ---------------- */
.bloc-urgent { margin-bottom: 14px; border-color: rgb(var(--voile) / 0.35); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-jour {
  min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 8px;
  border: 1px solid rgb(var(--voile) / 0.06); border-radius: var(--r-sm); background: rgb(var(--voile) / 0.03);
}
.cal-jour.auj { border-color: rgb(var(--voile) / 0.45); background: rgb(var(--voile) / 0.06); }
.cal-jour.passe { opacity: 0.6; }
.cal-tete {
  display: flex; align-items: baseline; justify-content: space-between; padding: 2px 4px 4px;
  font-size: 11px; color: var(--ink-3);
}
.cal-tete b { font-size: 17px; color: var(--ink); }
.cal-creneau {
  min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 7px;
  border: 1px solid var(--glass-stroke); border-radius: 11px; background: var(--glass-bg);
  color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
button.cal-creneau:hover { background: var(--glass-bg-hover); }
.cal-creneau.libre {
  flex-direction: row; align-items: center; justify-content: space-between;
  border-style: dashed; background: none; cursor: default; font-size: 11px;
}
.cal-h { font-size: 11px; font-weight: 650; color: var(--ink-2); }
.cal-img {
  width: 100%; aspect-ratio: 9 / 12; display: grid; place-items: center; overflow: hidden;
  border-radius: 8px; background: rgba(255, 255, 255, 0.06); color: var(--ink-3);
}
.cal-img img { width: 100%; height: 100%; object-fit: cover; }
.cal-txt {
  font-size: 11.5px; font-weight: 560; line-height: 1.3; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.cal-etat { font-size: 10.5px; color: var(--ink-3); }
.cal-creneau.du { border-color: var(--fort); }
.cal-creneau.du .cal-etat { color: var(--fort); font-weight: 650; }
.cal-creneau.publie { opacity: 0.72; }
.cal-creneau.erreur .cal-etat { color: #ff9b8f; }

/* ---------------- feuille de publication ---------------- */
.pub-feuille { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; padding: 22px; }
.pub-video { aspect-ratio: 9 / 16; display: grid; place-items: center; overflow: hidden; border-radius: 18px; background: #000; }
.pub-video video { width: 100%; height: 100%; object-fit: contain; }
.pub-infos { min-width: 0; }
.pub-infos h2 { margin: 4px 0 12px; font-size: 18px; line-height: 1.3; }
.pub-etapes { display: grid; gap: 14px; margin: 0; padding-left: 20px; }
.pub-etapes li::marker { color: var(--ink-3); font-weight: 650; }
.pub-etapes textarea { width: 100%; resize: vertical; }
.pub-secondaire {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--glass-stroke);
}

/* ---------------- statistiques ---------------- */
.stats-comptes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 8px; }
.stat-compte { padding: 14px 16px; border-radius: var(--r-md); }
.stat-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.stat-chiffres div { display: flex; flex-direction: column; }
.stat-chiffres b { font-size: 19px; letter-spacing: -0.02em; }
.stat-chiffres span { font-size: 10.5px; color: var(--ink-3); }
.courbe { width: 100%; height: 46px; margin-top: 8px; color: rgb(var(--voile) / 0.85); }
.chaleur { display: grid; grid-template-columns: 30px repeat(24, minmax(0, 1fr)); gap: 2px; align-items: center; }
.chaleur i { display: block; aspect-ratio: 1; border-radius: 3px; background: rgb(var(--voile) / 0.05); }
.chaleur i[style] { background: rgba(255, 255, 255, var(--a)); }
.ch-h { font-size: 9px; text-align: center; color: var(--ink-3); }
.ch-j { font-size: 10px; color: var(--ink-3); }
.tableau-defile { overflow-x: auto; }
.tableau { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tableau th {
  padding: 6px 8px; border-bottom: 1px solid var(--glass-stroke); white-space: nowrap; text-align: left;
  font-size: 10.5px; font-weight: 620; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3);
}
.tableau td { padding: 8px; border-bottom: 1px solid rgb(var(--voile) / 0.06); white-space: nowrap; }
.cellule-clip { display: flex; align-items: center; gap: 9px; min-width: 220px; max-width: 380px; white-space: normal; }
.cellule-clip > img, .cellule-clip > .ico { width: 30px; height: 44px; flex: none; border-radius: 6px; object-fit: cover; }
.cellule-clip span { min-width: 0; display: flex; flex-direction: column; }
.cellule-clip b { font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- chaines, decouverte, radar ---------------- */
.ajout-chaine { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ajout-chaine .field { flex: 1; min-width: 260px; margin: 0; }
.liste-chaines, .liste-decouverte, .liste-radar { display: grid; gap: 10px; margin-top: 14px; }
.chaine { padding: 12px 14px; border-radius: var(--r-md); }
.chaine-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chaine-av {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center; overflow: hidden;
  border-radius: 50%; background: var(--glass-bg-strong); font-weight: 650;
}
.chaine-av img { width: 100%; height: 100%; object-fit: cover; }
.chaine-meta { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.chaine-meta a, .dec-meta a { color: var(--ink); text-decoration: none; }
.chaine-meta a:hover, .dec-meta a:hover { text-decoration: underline; }
.chaine-meta small { font-size: 11.5px; }
.erreur-txt { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #ff9b8f; }
.chaine-videos {
  max-height: 420px; margin-top: 10px; padding-top: 6px; overflow-y: auto;
  border-top: 1px solid var(--glass-stroke);
}
.video-ligne { display: flex; align-items: center; gap: 11px; padding: 7px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.video-ligne.explose { border-radius: 12px; background: rgba(255, 255, 255, 0.06); }
.video-ligne .ligne-txt b .ico { vertical-align: -2px; }
.liste-radar .video-ligne { padding: 8px 10px; }

.interrupteur { position: relative; width: 38px; height: 22px; flex: none; cursor: pointer; }
.interrupteur input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.interrupteur i {
  position: absolute; inset: 0; border-radius: 11px; pointer-events: none;
  background: rgb(var(--voile) / 0.14); transition: background 0.25s var(--ease);
}
.interrupteur i::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--fort); transition: transform 0.35s var(--spring);
}
.interrupteur input:checked + i { background: rgb(var(--voile) / 0.55); }
.interrupteur input:checked + i::after { transform: translateX(16px); background: var(--sur-fort); }

.decouverte { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); }
.dec-score {
  width: 54px; flex: none; display: flex; flex-direction: column; align-items: center;
  padding: 8px 0; border-radius: 14px; background: rgb(var(--voile) / 0.08);
}
.dec-score b { font-size: 21px; letter-spacing: -0.03em; }
.dec-score small { font-size: 10px; color: var(--ink-3); }
.dec-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.dec-meta small { font-size: 11.5px; line-height: 1.45; }
.dec-raisons { display: flex; flex-wrap: wrap; gap: 5px; }
.dec-videos { display: flex; gap: 6px; }
.dec-videos a {
  position: relative; width: 96px; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden;
  border-radius: 8px; background: rgba(255, 255, 255, 0.06); color: var(--ink-3);
}
.dec-videos img { width: 100%; height: 100%; object-fit: cover; }
.dec-videos span {
  position: absolute; right: 4px; bottom: 4px; padding: 1px 5px; border-radius: 5px;
  font-size: 10px; background: rgba(0, 0, 0, 0.7); color: #fff;
}

/* ---------------- reglages ---------------- */
.param {
  display: flex; justify-content: space-between; gap: 12px; padding: 8px 0;
  border-bottom: 1px solid rgb(var(--voile) / 0.06); font-size: 13px;
}
.param:last-child { border-bottom: 0; }
.param-champ { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.param-champ > span { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.param-champ .hint { margin: 0; }
.heures .chip { min-width: 52px; justify-content: center; }
.zone-danger { border-color: rgba(255, 155, 143, 0.3); }
.liste-modeles { display: grid; gap: 10px; }
.modele, .connexion { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: var(--r-md); }
.connexion { align-items: flex-start; margin-bottom: 10px; }
.modele-ico, .connexion-ico {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border-radius: 12px; background: var(--glass-bg-strong);
}
.modele-ico .ico, .connexion-ico .ico { width: 18px; height: 18px; }
.modele-meta, .connexion-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.connexion-meta small { line-height: 1.5; }
.choix-comptes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.choix-compte {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-md);
  color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.choix-compte:hover { background: var(--glass-bg-hover); }
.btn .spinner { width: 13px; height: 13px; }

/* ---------------- ecrans etroits et telephone ---------------- */
@media (max-width: 1280px) {
  .val { grid-template-columns: minmax(0, 1fr) 320px; }
  .cal { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  html, body { overflow: auto; }
  #app {
    grid-template-columns: 1fr; grid-template-rows: auto auto 1fr;
    height: auto; min-height: 100vh; gap: 10px; padding: 10px;
  }
  .sidebar { display: block !important; border-radius: var(--r-md); }
  .side-footer, .side-nav .side-label { display: none; }
  .side-scroll { padding: 6px; overflow-x: auto; overflow-y: hidden; }
  .side-nav { display: flex; gap: 4px; }
  .nav-item { width: auto; flex: none; margin: 0; }
  .main { min-height: 70vh; }
  .content { overflow: visible; }
  .grille-2, .val { grid-template-columns: 1fr; }
  .val-phone { width: min(100%, 360px); height: auto; }
  .cal { grid-template-columns: 1fr; }
  .cal-creneau { flex-direction: row; align-items: center; }
  .cal-img { width: 44px; flex: none; }
  .cal-txt { flex: 1; }
  .pub-feuille { grid-template-columns: 1fr; }
  .pub-video { width: 100%; max-width: 240px; margin: 0 auto; }
  .champ-recherche input { width: 140px; }
}
