/* =========================================================
   layout.css
   Screen layouts: navbar, login, feed, ranking, moderation,
   demo control panel.
   Every media query in the project is gathered at the bottom
   of this file.
   ========================================================= */

/* ---------------------------------------------------------
   Coquille applicative
   --------------------------------------------------------- */
.app-main{
  padding-top:calc(var(--nav-h) + var(--demo-h) + 28px);
  padding-bottom:120px;
  min-height:100vh;
}

.page-head{ margin-bottom:var(--sp-5); }
.page-head--split{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:var(--sp-4);
  flex-wrap:wrap;
}
.page-head .sub{
  color:var(--c-text-secondary);
  font-size:var(--fs-small);
  margin-top:6px;
}

/* ---------------------------------------------------------
   Bandeau de démonstration
   Au-dessus de la navbar, écran de connexion compris. Hauteur
   fixe (--demo-h) plutôt qu'auto : c'est cette hauteur que la
   coquille et la navbar ajoutent à leurs calculs, donc elle ne
   peut pas dépendre du texte rendu.
   --------------------------------------------------------- */
.demo-banner{
  position:fixed;
  top:0; left:0; right:0;
  height:var(--demo-h);
  z-index:200; /* au-dessus de la navbar (150), qu'il pousse vers le bas */
  display:flex;
  align-items:center;
  overflow:hidden;
  background:var(--demo-bg);
  color:var(--demo-fg);
  font-size:var(--fs-small);
}
.demo-banner__inner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:var(--sp-4);
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 var(--sp-6);
}
.demo-banner__text{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.demo-banner__action{
  flex:none;
  height:28px;
  padding:0 12px;
  border:1px solid rgba(255,255,255,.45);
  border-radius:var(--r-pill);
  background:transparent;
  color:inherit;
  font:inherit;
  font-size:var(--fs-xsmall);
  cursor:pointer;
}
.demo-banner__action:hover{ background:rgba(255,255,255,.12); }

/* ---------------------------------------------------------
   Navbar
   --------------------------------------------------------- */
.navbar{
  position:fixed;
  /* pushed down by the demonstration banner, which is fixed above it */
  top:var(--demo-h); left:0; right:0;
  height:var(--nav-h);
  z-index:150;
  display:flex;
  align-items:center;
  background:var(--c-white);
  box-shadow:var(--shadow-nav);
}
.navbar .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
}

.brand{
  display:flex;
  align-items:center;
  gap:9px;
  font-size:17px;
  font-weight:700;
  letter-spacing:-0.02em;
  color:var(--c-text-primary);
}
.brand__mark{
  width:30px; height:30px;
  border-radius:var(--r-btn);
  background:var(--c-primary);
  color:var(--c-white);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:var(--fs-body);
  font-weight:700;
  flex:0 0 auto;
}

/* client logo: the SVG already carries the brand name, so it replaces
   both the mark and the label above (cf brand() in js/render.js) */
.brand--logo{ gap:0; }
.brand__logo{ display:block; height:28px; width:auto; }
/* in the navbar the block is a button back to the landing screen
   (cf brand() in js/render.js): strip the browser chrome so it keeps
   looking like the logo it is */
.brand--home{
  border:0;
  padding:0;
  background:none;
  /* family only: the size, weight and colour come from .brand above, and
     the `font` shorthand would wipe them out from here */
  font-family:inherit;
  cursor:pointer;
}
.brand--home:focus-visible{ outline:2px solid var(--c-primary); outline-offset:4px; border-radius:var(--r-btn); }
.auth__visual-inner .brand__logo{ height:34px; }

.nav-links{ display:flex; align-items:center; gap:6px; }
.nav-link{
  position:relative;
  /* the pill below is drawn behind the label with z-index:-1; the
     isolation keeps that -1 inside the button instead of sending it
     behind the navbar itself */
  isolation:isolate;
  display:inline-flex;
  align-items:center;
  gap:7px;
  height:38px;
  padding:0 14px;
  border:none;
  border-radius:var(--r-btn);
  background:transparent;
  color:var(--c-text-secondary);
  font-size:var(--fs-body);
  font-weight:500;
  cursor:pointer;
  transition:background .15s ease, color .15s ease;
}
.nav-link:hover{ background:var(--c-grey-lightest); color:var(--c-text-primary); }
.nav-link.is-active{ color:var(--c-primary); font-weight:600; }

/* The pill of the current entry. A node of its own rather than the
   button's background, so it can slide from the entry being left to the
   one being opened (cf motion.flipNav) — a background cannot travel
   between two elements. It sits under the label: a positioned child
   otherwise paints over the button's text, which is not a positioned
   element and cannot be lifted above it. */
.nav-link__ind{
  position:absolute;
  inset:0;
  z-index:-1;
  border-radius:inherit;
  background:var(--c-primary-light);
  transform-origin:left center;
  opacity:0;
}
.nav-link.is-active .nav-link__ind{ opacity:1; }
.nav-link__count{
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:var(--r-pill);
  background:var(--c-orange);
  color:var(--c-white);
  font-size:12px;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.nav-right{ display:flex; align-items:center; gap:var(--sp-3); position:relative; }
.user-btn{
  display:flex;
  align-items:center;
  gap:10px;
  padding:var(--sp-1);
  border:none;
  border-radius:var(--r-btn);
  background:transparent;
  cursor:pointer;
}
.user-btn:hover{ background:var(--c-grey-lightest); }
.user-btn__who{ text-align:left; line-height:1.2; }
.user-btn__who b{ display:block; font-size:var(--fs-small); font-weight:600; }
.user-btn__who span{ display:block; font-size:12px; color:var(--c-text-secondary); }
/* the instant between the first paint and GET /me: the button is on screen
   with nothing to put in it yet (cf viewNavbar), so it shows the same
   skeleton as the screen below it rather than a placeholder name */
.user-btn[disabled]{ cursor:default; }
.user-btn[disabled]:hover{ background:transparent; }

.burger{
  display:none;
  width:40px; height:40px;
  border:none;
  border-radius:var(--r-btn);
  background:transparent;
  /* the icon is drawn in currentColor; a <button> does not inherit the
     document color, the browser sheet forces buttontext (black) on it */
  color:var(--c-text-primary);
  cursor:pointer;
  align-items:center;
  justify-content:center;
}
.burger:hover{ background:var(--c-grey-lightest); }

/* ---------------------------------------------------------
   Login screen
   --------------------------------------------------------- */
/* The login screen has no navbar to be pushed down by, so it reserves the
   banner's height itself. Padding rather than margin: the top margin of
   the first child collapses through #root, and the screen would slide
   back under the banner. box-sizing is border-box everywhere (cf
   base.css), so the two columns still end up exactly one viewport tall. */
.auth{
  display:flex;
  padding-top:var(--demo-h);
  min-height:100vh;
}

.auth__visual{
  position:relative;
  width:45%;
  display:flex;
  align-items:stretch;
  background-image:url("/brand/auth.jpg");
  background-size:cover;
  background-position:center;
  background-color:var(--c-background);
}
.auth__visual::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(48,49,88,.68);
}
.auth__visual-inner{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  width:100%;
  padding:48px;
  color:var(--c-white);
}
.auth__visual-inner .auth__kicker{ align-self:flex-start; }
.auth__visual-inner .brand{ color:var(--c-white); margin-bottom:auto; }
.auth__kicker{
  display:inline-flex;
  align-items:center;
  height:28px;
  padding:0 14px;
  margin-bottom:var(--sp-4);
  border-radius:var(--r-pill);
  background:rgba(255,255,255,.16);
  font-size:12px;
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.auth__visual h2{ font-size:34px; line-height:1.15; font-weight:700; max-width:420px; }
.auth__visual p{
  margin-top:14px;
  font-size:var(--fs-body);
  color:rgba(255,255,255,.82);
  max-width:400px;
}

.auth__form{
  width:55%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:48px var(--sp-8);
  background:var(--c-white);
}
.auth__box{ width:100%; max-width:380px; }
/* Deux boutons pleine largeur qui se suivent — l'écran d'entrée d'une
   démonstration en a un par rôle : collés, ils se lisent comme un seul bloc
   coupé en deux. Sur le sibling immédiat, donc sans effet là où un bouton
   suit un formulaire, qui porte déjà sa marge. */
.auth__box .btn--block + .btn--block{ margin-top:var(--sp-2); }
.auth__box .brand{ margin-bottom:28px; }
.auth__box h1{ font-size:var(--fs-page); margin-bottom:6px; }
.auth__lead{
  font-size:var(--fs-small);
  color:var(--c-text-secondary);
  margin-bottom:28px;
}
.auth__foot{
  margin-top:22px;
  font-size:var(--fs-xsmall);
  color:var(--c-text-secondary);
  text-align:center;
}

/* ---------------------------------------------------------
   Fil : bandeau de la photo gagnante
   --------------------------------------------------------- */
.winner-row{
  display:grid;
  grid-template-columns:1fr;
  gap:var(--sp-4);
  margin-bottom:var(--sp-6);
}
.winner-row--multi{ grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)); }
.winner{
  position:relative;
  display:flex;
  min-height:300px;
  border-radius:var(--r-card);
  overflow:hidden;
  background:var(--c-background);
  box-shadow:var(--shadow-nav);
  cursor:pointer;
  outline:none;
}
.winner__img{ position:absolute; inset:0; }
.winner__img img{ width:100%; height:100%; object-fit:cover; }
.winner__veil{
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,
    rgba(48,49,88,.94) 0%,
    rgba(48,49,88,.86) 45%,
    rgba(48,49,88,.35) 100%);
}
.winner__content{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:var(--sp-3);
  padding:var(--sp-8);
  max-width:640px;
  color:var(--c-white);
}
.winner-row--multi .winner{ min-height:240px; }
.winner-row--multi .winner__content{ padding:var(--sp-6); max-width:none; }
.winner-row--multi .winner__title{ font-size:22px; }
.winner-row--multi .winner__veil{
  background:linear-gradient(180deg,
    rgba(48,49,88,.55) 0%,
    rgba(48,49,88,.93) 68%);
}
.winner__label,
.podium-card__label{
  display:inline-flex;
  align-items:center;
  gap:var(--sp-2);
  align-self:flex-start;
  height:28px;
  padding:0 14px;
  border-radius:var(--r-pill);
  background:#FFD166;
  color:#5B3F00;
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.winner__title{ font-size:28px; line-height:1.2; font-weight:700; }
.winner__meta{ font-size:var(--fs-small); color:rgba(255,255,255,.82); }
.winner__stats{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:var(--sp-1);
}
.winner__pill{
  display:inline-flex;
  align-items:center;
  gap:7px;
  height:32px;
  padding:0 14px;
  border-radius:var(--r-pill);
  background:rgba(255,255,255,.14);
  color:var(--c-white);
  font-size:var(--fs-small);
  font-weight:600;
}
.winner__pill svg{ width:15px; height:15px; fill:currentColor; }

/* lien de retour vers le palmarès, sous le bandeau du fil */
.results-link{ margin:calc(var(--sp-6) * -1 + var(--sp-2)) 0 var(--sp-6); }


/* ---------------------------------------------------------
   Palmarès

   Le podium reprend la mise en page du bandeau gagnant : même
   image de fond, même voile, mêmes proportions. Ce qui change,
   c'est qu'il est seul sur son écran, donc plus haut.
   --------------------------------------------------------- */
.reveal{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:var(--sp-2) var(--sp-3);
  margin-bottom:var(--sp-5);
  padding:14px var(--sp-5);
  border-radius:var(--r-card);
  background:#FFD166;
  color:#5B3F00;
}
.reveal__title{ font-size:16px; font-weight:700; }
.reveal__text{ font-size:var(--fs-small); }

.podium-top{
  display:grid;
  grid-template-columns:1fr;
  gap:var(--sp-4);
  margin-bottom:var(--sp-6);
}
.podium-top--multi{ grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)); }
.podium-card{
  position:relative;
  display:flex;
  min-height:380px;
  border-radius:var(--r-card);
  overflow:hidden;
  background:var(--c-background);
  box-shadow:var(--shadow-nav);
  cursor:pointer;
  outline:none;
}
.podium-card__img{ position:absolute; inset:0; }
.podium-card__img img{ width:100%; height:100%; object-fit:cover; }
.podium-card__veil{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,
    rgba(48,49,88,.15) 0%,
    rgba(48,49,88,.72) 55%,
    rgba(48,49,88,.95) 100%);
}
.podium-card__content{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:flex-start;
  gap:var(--sp-3);
  padding:var(--sp-8);
  color:var(--c-white);
}
.podium-top--multi .podium-card{ min-height:300px; }
.podium-top--multi .podium-card__content{ padding:var(--sp-6); }
.podium-top--multi .podium-card__title{ font-size:24px; }
.podium-card__title{ font-size:32px; line-height:1.2; font-weight:700; }
.podium-card__meta{ font-size:var(--fs-small); color:rgba(255,255,255,.82); }
.podium-card__likes{
  display:inline-flex;
  align-items:center;
  gap:7px;
  height:32px;
  padding:0 14px;
  border-radius:var(--r-pill);
  background:rgba(255,255,255,.14);
  font-size:var(--fs-small);
  font-weight:600;
}
.podium-card__likes svg{ width:15px; height:15px; fill:var(--c-red); }

/* bilan personnel : la même rangée de statistiques que le classement,
   précédée de la phrase qui s'adresse au lecteur */
.recap__lead{
  margin-bottom:var(--sp-3);
  font-size:var(--fs-body);
  font-weight:600;
  color:var(--c-text-primary);
}
.recap{ margin-bottom:var(--sp-6); }

.results-foot{
  display:flex;
  flex-wrap:wrap;
  gap:var(--sp-3);
  margin-top:var(--sp-6);
}

/* ---------------------------------------------------------
   Palmarès : la course des likes

   Les lignes sont posées dans l'ordre final ; race.js les
   déplace par animation, sans jamais écrire d'attribut (le
   diff les effacerait, cf morph.js). D'où le `will-change` :
   ce sont transform et rien d'autre qui bougent.
   --------------------------------------------------------- */
/* le titre de la course et son bouton rejouer, sur la même ligne */
.race > .sc-section__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--sp-3);
  /* Les deux boutons ne se compriment pas (flex:0 0 auto, libellés
     insécables) : sur un téléphone ils prenaient toute la ligne et le
     titre tombait à quelques pixels de large, un mot par ligne. Le
     titre passe donc à la ligne au lieu d'être écrasé. */
  flex-wrap:wrap;
}

/* les deux boutons de l'en-tête : rejouer, et exporter en vidéo */
.race__actions{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:var(--sp-2);
}
/* en dessous de cette largeur le titre ne tient plus à côté des
   boutons : il garde la ligne, les boutons prennent la suivante */
.race__heading{ flex:1 1 260px; min-width:0; }

/* Sans animation possible, le bouton ne ferait rien : il ne s'affiche pas
   plutôt que de mentir (cf race.js, motionAllowed). L'export, lui, reste :
   rien ne bouge à l'écran quand on le presse, l'animation est dans le
   fichier. */
@media (prefers-reduced-motion: reduce){
  .race__replay{ display:none; }
}

.race__lead{
  margin:4px 0 0;
  font-size:var(--fs-small);
  color:var(--c-text-secondary);
}
.race-list{
  position:relative;
  padding:0 var(--sp-5) var(--sp-5);
}
.race-row{
  position:relative;
  display:flex;
  align-items:center;
  gap:var(--sp-3);
  height:52px;
  /* opaque, et c'est indispensable : deux lignes qui échangent leur place
     se croisent à mi-parcours, et sans fond elles se superposent en une
     bouillie illisible au moment précis du dépassement. `--c-white` suit
     le thème (cf v2.css), donc la ligne reste de la couleur de sa carte. */
  background:var(--c-white);
  will-change:transform;
}
.race-thumb{
  flex:0 0 auto;
  width:40px;
  height:40px;
  border-radius:var(--r-input);
  overflow:hidden;
  background:var(--c-grey-light);
}
.race-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.race-main{
  flex:0 0 auto;
  width:190px;
  min-width:0;
}
.race-main b{
  display:block;
  font-size:var(--fs-small);
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.race-main span{
  display:block;
  font-size:var(--fs-xsmall);
  color:var(--c-text-secondary);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.race-bar{
  flex:1 1 auto;
  height:14px;
  border-radius:var(--r-pill);
  background:var(--c-grey-light);
  overflow:hidden;
}
.race-bar__fill{
  display:block;
  height:100%;
  border-radius:var(--r-pill);
  background:var(--c-primary);
  /* l'animation joue sur scaleX : l'origine doit être le bord gauche,
     sinon la barre grandit des deux côtés */
  transform-origin:left center;
  will-change:transform;
}
.race-count{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-width:52px;
  justify-content:flex-end;
  font-size:var(--fs-small);
  font-weight:600;
  font-variant-numeric:tabular-nums;
}
/* rouge, comme partout ailleurs où un cœur compte des likes (le fil, les
   lignes de classement en V2) : ici il reprenait la couleur de marque et
   se lisait comme un élément de graphique, pas comme un like */
.race-count svg{ width:14px; height:14px; fill:var(--c-red); }


/* ---------------------------------------------------------
   Fil : barre de quota de likes
   --------------------------------------------------------- */
/* The invitation to add the application to a phone's home screen.
   One row inside the feed rather than a strip at the top of the page:
   the demonstration banner already owns that space (--demo-h), and two
   stacked bars leave nothing of a phone screen. Shown only on a phone,
   only to someone who has already voted or sent a photo, and never
   again once refused (cf js/install.js). */
.install-invite{
  display:flex;
  align-items:center;
  gap:var(--sp-3);
  padding:12px 14px;
  margin-bottom:18px;
  border-radius:var(--r-card);
  background:var(--c-white);
  box-shadow:var(--shadow-nav);
}
.install-invite > svg{ width:17px; height:17px; flex:none; color:var(--c-primary); }
.install-invite__text{
  flex:1 1 0;
  min-width:0;
  font-size:var(--fs-small);
  color:var(--c-text-primary);
}
.install-invite .btn{ flex:none; }
/* the way out is a real button, not a decorative cross: it is the only
   control on this row someone may want to reach with a keyboard as
   readily as the offer itself */
.install-invite__close{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  padding:0;
  border:0;
  border-radius:var(--r-btn, 8px);
  background:transparent;
  color:var(--c-text-secondary);
  cursor:pointer;
}
.install-invite__close:hover{ color:var(--c-text-primary); }

/* the written gesture, for the browsers with no install API */
.install-steps{
  margin:0;
  padding-left:20px;
  font-size:var(--fs-small);
  line-height:1.7;
}
.install-steps svg{ vertical-align:-2px; }

.quota{
  display:flex;
  align-items:center;
  gap:var(--sp-3);
  flex-wrap:wrap;
  padding:14px 18px;
  margin-bottom:18px;
  border-radius:var(--r-card);
  background:var(--c-white);
  box-shadow:var(--shadow-nav);
}
.quota > svg{ width:17px; height:17px; flex:none; fill:var(--c-red); }
.quota__txt{ font-size:var(--fs-small); font-weight:500; }
.quota__rule{
  margin-left:auto;
  font-size:var(--fs-xsmall);
  color:var(--c-text-secondary);
}

/* The contest in one sentence, under the heading of the feed (the same
   sentence the login screen carries). Narrower than the container: the
   grid below runs the full width, a paragraph that did too would lose the
   start of the next line. */
.page-intro{
  margin:0 0 var(--sp-5);
  max-width:68ch;
  font-size:var(--fs-body);
  line-height:1.55;
  color:var(--c-text-secondary);
}

/* What belongs in each category (contests.categories), under the checkboxes
   of the submission form — the one place where a category is being chosen. */
.cat-notes{
  list-style:none;
  margin:10px 0 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:4px;
  max-width:68ch;
  font-size:var(--fs-small);
  line-height:1.5;
  color:var(--c-text-secondary);
}
.cat-notes b{ color:var(--c-text-primary); font-weight:600; }

/* ---------------------------------------------------------
   Feed and ranking: filters and search on a single row
   --------------------------------------------------------- */
.feed-tools{
  display:flex;
  align-items:center;
  gap:var(--sp-4);
  flex-wrap:wrap;
  margin-bottom:18px;
}
.feed-tools--right{ justify-content:flex-end; }
.feed-filters{ margin-bottom:0; flex:1 1 auto; }

.search{
  position:relative;
  display:flex;
  align-items:center;
  gap:var(--sp-2);
  flex:0 1 320px;
  min-width:220px;
  height:38px;
  padding:0 12px;
  border-radius:var(--r-pill);
  background:var(--c-white);
  border:1.5px solid var(--c-grey-border);
}
.search:focus-within{ border-color:var(--c-primary); }
.search > svg{ flex:none; color:var(--c-text-secondary); }
.search__input{
  flex:1;
  min-width:0;
  height:100%;
  border:0;
  outline:none;
  background:transparent;
  font-family:inherit;
  font-size:var(--fs-small);
  color:var(--c-text-primary);
  -webkit-appearance:none;
  appearance:none;
}
.search__input::-webkit-search-cancel-button{ display:none; }
.search__clear{
  /* inline-flex + zero padding: the × is a glyph whose own box is taller
     than its ink and offset inside it, so a text-aligned button drew it
     low and left of the circle's centre. Centring the box, and letting
     the line box collapse to the glyph, is what actually lines it up. */
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:none;
  width:20px; height:20px;
  padding:0;
  border:0;
  border-radius:var(--r-pill);
  background:var(--c-grey-light);
  color:var(--c-text-secondary);
  font-size:15px;
  line-height:1;
  cursor:pointer;
}
.search__count{
  flex:none;
  font-size:var(--fs-xsmall);
  color:var(--c-text-secondary);
  white-space:nowrap;
}

/* ---------------------------------------------------------
   Administration: tabs and data table
   --------------------------------------------------------- */
.tabs{
  display:flex;
  gap:4px;
  padding:4px;
  margin-bottom:18px;
  border-radius:var(--r-pill);
  background:var(--c-grey-lightest);
  overflow-x:auto;
}
.tab{
  display:inline-flex;
  align-items:center;
  gap:7px;
  height:36px;
  padding:0 18px;
  border:0;
  border-radius:var(--r-pill);
  background:transparent;
  color:var(--c-text-secondary);
  font-family:inherit;
  font-size:var(--fs-small);
  font-weight:600;
  white-space:nowrap;
  cursor:pointer;
}
.tab:hover{ color:var(--c-text-primary); }
.tab.is-on{
  background:var(--c-white);
  color:var(--c-text-primary);
  box-shadow:var(--shadow-nav);
}
.tab__count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:var(--r-pill);
  background:var(--c-orange);
  color:var(--c-white);
  font-size:var(--fs-xsmall);
  font-weight:700;
}

/* participants table. A grid rather than a <table>: the columns fold
   cleanly on a small screen, which a table cannot do without breaking
   the alignment. */
.data-table{ display:flex; flex-direction:column; }
.data-row{
  display:grid;
  /* the last track carries the badge and the three icon actions (role
     toggle, rename, delete): narrower, they wrap onto a second line */
  grid-template-columns:minmax(200px, 2.6fr) 1fr 1fr 1.3fr 1.3fr 1.9fr;
  align-items:center;
  gap:var(--sp-4);
  padding:12px var(--sp-5);
  border-bottom:1px solid var(--c-grey-light);
}
.data-row:last-child{ border-bottom:none; }
/* Counts and dates travel in a wrapper that is not a box on a wide
   screen: display:contents hands its four cells straight to the grid,
   which keeps the six columns and their alignment exactly as they were.
   Once the table folds, the wrapper becomes a real element and those
   four cells read as one line of text (cf the media queries below). */
.data-meta{ display:contents; }
.data-row--head{
  padding-top:10px;
  padding-bottom:10px;
  background:var(--c-white-2);
  font-size:var(--fs-xsmall);
  font-weight:600;
  color:var(--c-text-secondary);
  text-transform:uppercase;
  letter-spacing:.03em;
}
.data-cell{ min-width:0; font-size:var(--fs-small); }
.data-cell--who{ display:flex; align-items:center; gap:10px; }
.data-who{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.data-who b{
  display:flex;
  align-items:center;
  gap:7px;
  font-weight:600;
  color:var(--c-text-primary);
}
.data-who span{
  color:var(--c-text-secondary);
  font-size:var(--fs-xsmall);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
/* the name, truncated rather than wrapped (cf the markup in render.js).
   Written under .data-who b, because the rule above paints every span of
   the block in the secondary colour and the name is not one of them. */
.data-who b .data-who__name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:inherit;
  font-size:inherit;
}
.data-cell--num{ display:flex; align-items:baseline; gap:6px; }
.data-cell--num b{ font-size:16px; font-weight:700; color:var(--c-text-primary); }
.data-cell--num span{ font-size:var(--fs-xsmall); color:var(--c-text-secondary); }
.data-cell--date{ color:var(--c-text-secondary); font-size:var(--fs-xsmall); }
/* « Jamais connecté » is an absence, not a date: one step fainter than the
   dates beside it, so a column of visits reads as a column of visits and the
   people who never came stand out by being quieter, not louder */
.data-cell__mute{ opacity:.62; font-style:italic; }
/* Aligned on the end edge of the row, not on its start: it is the last
   column, so its right edge is the row's own padding edge, and that is
   the only x every row shares. Left-aligned, the action block sat at
   whatever x the badge happened to end at, and the badge is « Admin » on
   one row and « Participant » on the next. Right-aligned, every icon
   column lines up down the table. */
.data-cell--role{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
  text-align:right;
}
/* the three icon actions travel as one block: they are the same shape and
   the same size, so a tighter gap between them than between the badge and
   the block reads as one toolbar rather than three loose buttons */
.row-tools{ display:inline-flex; align-items:center; gap:2px; }
.data-row--head .data-cell--num b,
.data-row--head .data-cell--num span{ font-size:inherit; font-weight:inherit; color:inherit; }

/* sortable header cell: the title and its arrow are one button, so the
   whole label is the target rather than a small handle beside it. The
   arrow is always in the markup — reserving its width keeps the columns
   from shifting when the sorted column changes — and only shows on the
   active column, faintly on hover. */
.data-sort{
  display:inline-flex;
  align-items:center;
  gap:5px;
  border:0;
  margin:0;
  padding:0;
  background:none;
  font:inherit;
  color:inherit;
  letter-spacing:inherit;
  text-transform:inherit;
  cursor:pointer;
}
.data-sort:hover{ color:var(--c-text-primary); }
.data-sort.is-on{ color:var(--c-text-primary); }
.data-sort__arrow{
  flex:none;
  opacity:0;
  transition:opacity .12s ease, transform .12s ease;
}
.data-sort:hover .data-sort__arrow{ opacity:.4; }
.data-sort.is-on .data-sort__arrow{ opacity:1; }
.data-sort--asc .data-sort__arrow{ transform:rotate(180deg); }
body.using-keyboard .data-sort:focus{ outline:2px solid var(--c-primary); outline-offset:3px; }

@media (prefers-reduced-motion: reduce){
  .data-sort__arrow{ transition:none; }
}

/* the phone's sort bar (cf participantsSortBar in render.js). Hidden as
   long as the header row is on screen — it is the same control twice —
   and shown by the very media queries that fold the table. */
.sort-bar{ display:none; }
.sort-bar__key{ flex:1 1 auto; width:auto; min-width:0; }
.sort-bar__dir{ flex:none; width:44px; height:44px; }
/* the arrow is the whole button here, not a hint beside a column name:
   it never fades the way the header's does */
.sort-bar__dir .data-sort__arrow{ opacity:1; }

/* Under a finger, the three row actions are a 34px target 2px away from
   the next one — and the next one deletes a participant, their photos
   and their account. The pointer, not the viewport width, is what says
   whether that is a problem: a narrow window on a laptop still has a
   mouse. */
@media (pointer:coarse){
  .row-tools{ gap:var(--sp-2); }
  .row-tools .btn--icon{ width:44px; height:44px; }
}
.avatar--sm{ width:32px; height:32px; font-size:var(--fs-xsmall); }

/* the search field lives in the section header, right of the title */
.sc-section__head--split{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--sp-4);
  flex-wrap:wrap;
}

/* ---------------------------------------------------------
   Ranking: editorial block about what the photos are used for
   --------------------------------------------------------- */
.prize{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:var(--sp-5) var(--sp-6);
  margin-bottom:18px;
  border-radius:var(--r-card);
  background:var(--c-white);
  border-left:4px solid var(--c-primary);
  box-shadow:var(--shadow-nav);
}
.prize__title{ font-size:16px; font-weight:700; color:var(--c-text-primary); }
.prize p{ font-size:var(--fs-small); color:var(--c-text-secondary); margin:0; }
/* until the result is known, the block also carries the deadline */
.prize--pending{ background:var(--c-primary-light); box-shadow:none; }
.prize__lead{ font-weight:600; }
.prize .prize__lead{ color:var(--c-text-primary); }

/* ---------------------------------------------------------
   Ranking: card grid, the rank being a pill laid over the photo
   (reuses .card/.card__open/.thumb from the feed, so each photo
   gets as much room as it does anywhere else in the app)
   --------------------------------------------------------- */
.rank-pos{
  width:38px; height:38px;
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:var(--r-pill);
  background:var(--c-grey-lightest);
  color:var(--c-text-secondary);
  font-size:var(--fs-small);
  font-weight:700;
}
.rank-pos--1{ background:linear-gradient(140deg,#FFD874,#E8A800); color:#4A3200; }
.rank-pos--2{ background:linear-gradient(140deg,#E4E7EC,#B9BFC9); color:#3E4551; }
.rank-pos--3{ background:linear-gradient(140deg,#F0BE94,#C2794A); color:#4A2A11; }
.thumb__rank{ position:absolute; top:10px; left:10px; z-index:1; box-shadow:0 0 0 2px rgba(255,255,255,.9); }
.thumb__badge--right{ left:auto; right:10px; }

.rank-likes{
  display:flex;
  align-items:center;
  gap:7px;
  flex:0 0 auto;
  font-size:var(--fs-body);
  font-weight:700;
  color:var(--c-green-dark);
}
.rank-likes svg{ width:16px; height:16px; fill:currentColor; }

/* highlights the card — or cards, on a tie — leading the ranking:
   a golden halo around the whole card */
.card.is-first{ box-shadow:0 0 0 2px #E8A800, var(--shadow-nav); }
.card.is-first:hover,
.card.is-first:focus-within{ box-shadow:0 0 0 2px #E8A800, var(--shadow-hover); }

/* bascule liste / cartes du classement */
.view-toggle{
  display:inline-flex;
  flex:0 0 auto;
  padding:3px;
  gap:2px;
  border-radius:var(--r-btn);
  background:var(--c-grey-lightest);
}
.view-toggle button{
  height:32px;
  padding:0 14px;
  border:none;
  border-radius:var(--r-input);
  background:transparent;
  color:var(--c-text-secondary);
  font-size:var(--fs-small);
  font-weight:600;
  cursor:pointer;
}
.view-toggle button.is-on{ background:var(--c-white); color:var(--c-text-primary); box-shadow:var(--shadow-nav); }

/* ranking, list view: rank + thumbnail + caption on one row, denser
   than the cards, so the order reads at a glance */
.rank-list{ display:flex; flex-direction:column; }
.rank-row{
  display:flex;
  align-items:center;
  width:100%;
  gap:var(--sp-4);
  padding:14px var(--sp-5);
  border-bottom:1px solid var(--c-grey-light);
  outline:none;
  transition:background .15s ease;
}
.rank-row:last-child{ border-bottom:none; }
.rank-row:hover{ background:var(--c-grey-lightest); }
.rank-row.is-first{
  background:linear-gradient(90deg, var(--c-gold-soft) 0%, rgba(255,243,214,.2) 70%, transparent 100%);
}
.rank-row.is-first:hover{
  background:linear-gradient(90deg, #FFE9AD 0%, rgba(255,233,173,.25) 70%, transparent 100%);
}
.rank-main{ flex:1; min-width:0; }
.rank-main b{
  display:block;
  font-size:var(--fs-body);
  font-weight:600;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.rank-main span{
  display:block;
  font-size:var(--fs-xsmall);
  color:var(--c-text-secondary);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.rank-row > .badge,
.rank-row > .cat-tags{ flex:0 0 auto; }

/* ---------------------------------------------------------
   Moderation
   --------------------------------------------------------- */
.mod-item{
  display:flex;
  gap:18px;
  padding:18px var(--sp-5);
  border-bottom:1px solid var(--c-grey-light);
}
.mod-item:last-child{ border-bottom:none; }
.mod-item--compact{ align-items:center; }
.mod-item__thumb{
  width:180px;
  flex:0 0 auto;
  border-radius:var(--r-btn);
  overflow:hidden;
  background:var(--c-grey-lightest);
  outline:none;
}
.mod-item__thumb img{
  width:180px;
  height:135px;
  object-fit:cover;
  cursor:pointer;
}
.mod-item__body{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:9px;
}
.mod-item__tags{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.mod-item__title{ font-size:16px; font-weight:600; }
.mod-item__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:auto;
  padding-top:6px;
}

.setting-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--sp-4);
  flex-wrap:wrap;
  padding:var(--sp-4) var(--sp-5);
  border-bottom:1px solid var(--c-grey-light);
}
.setting-line:last-child{ border-bottom:none; }

.setting-line__label b{ display:block; font-size:var(--fs-body); font-weight:600; }
.setting-line__label span{
  display:block;
  font-size:var(--fs-xsmall);
  color:var(--c-text-secondary);
  margin-top:2px;
}
.setting-line__value{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
/* second row of the color setting: brand shortcuts and contrast check,
   below the picker, across the full width */
.setting-line__extra{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  width:100%;
}
.color-swatch{
  width:38px;
  height:38px;
  padding:0;
  border:1px solid var(--c-grey-border);
  border-radius:var(--r-input);
  background:none;
  cursor:pointer;
}
.color-swatch::-webkit-color-swatch{ border:none; border-radius:4px; }
.color-swatch::-moz-color-swatch{ border:none; border-radius:4px; }
.color-presets{ display:flex; align-items:center; gap:8px; }
.color-preset{
  position:relative;
  width:24px;
  height:24px;
  padding:0;
  border:1px solid var(--c-grey-border);
  border-radius:var(--r-pill);
  cursor:pointer;
}
.color-preset.is-active{ box-shadow:0 0 0 2px var(--c-white), 0 0 0 4px var(--c-text-secondary); }
/* The color is already applied to the whole interface (App.theme.apply
   is optimistic): only saving it is still pending, and the pill says so
   rather than looking settled. */
.color-preset.is-saving::after{
  content:'';
  position:absolute;
  inset:-1px;
  border:2px solid rgba(255,255,255,.45);
  border-top-color:var(--c-white);
  border-radius:50%;
  animation:btn-spin .6s linear infinite;
}
.color-preset:disabled{ cursor:progress; }
@media (prefers-reduced-motion:reduce){
  .color-preset.is-saving::after{ animation:none; }
}
.setting-line__value .input{
  width:64px;
  height:38px;
  text-align:center;
  font-weight:600;
}
/* the hex field must fit its seven characters: it overrides the fixed
   width set above */
.setting-line__value .input.input--hex{ width:96px; text-align:left; text-transform:uppercase; }
/* A date field is not a two-character number field: 64px cut the value
   down to "17" plus the calendar picker, and the year — the part an
   administrator is actually checking — was never on screen. Sized to the
   widest rendering of JJ/MM/AAAA plus its indicator, and left-aligned like
   any other value the browser writes into a field itself. */
.setting-line__value .input[type="date"]{
  width:auto;
  min-width:158px;
  text-align:left;
}
/* the category list is edited as lines, one per category, so the field is
   a textarea: it keeps the order visible and holds the sentence that comes
   with each label */
.setting-line__value .textarea--categories{
  width:auto;
  flex:1 1 320px;
  min-width:240px;
  min-height:112px;
  font-size:var(--fs-small);
}

/* Inviting a list: the field, its controls and the count under them are
   read top to bottom, not side by side like the one-value rows above —
   a pasted mailing list is a block of text, and its recognised-address
   count belongs directly under it. */
.setting-line__value--stack{ flex-direction:column; align-items:stretch; }
.setting-line__value .textarea--invites{
  width:100%;
  min-height:132px;
  font-size:var(--fs-small);
}
.invite-bar{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
/* the file input is visually hidden, so its label is the button: it has to
   look and size like one rather than like a form label */
.invite-bar label.btn{ display:inline-flex; align-items:center; cursor:pointer; }
.invite-summary{
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:var(--fs-small);
  color:var(--c-text-secondary);
}
.invite-summary__warn{ color:var(--c-text); }
/* the lines that could not be read, quoted as they were written: a count
   alone leaves the administrator hunting for the one to fix */
.invite-lines{ margin:0; padding-left:18px; }
.invite-lines li{ word-break:break-all; }
.invite-report{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:12px 16px 16px;
  font-size:var(--fs-small);
  color:var(--c-text-secondary);
}
.invite-report b{ color:var(--c-text); }

/* a free-text list (categories, allowed domains): it has to show its whole
   value, and it is the one control on these rows worth giving the free
   space to */
.setting-line__value .input.input--wide{
  width:auto;
  flex:1 1 260px;
  min-width:220px;
  max-width:420px;
  text-align:left;
  font-weight:500;
}

/* ---------------------------------------------------------
   Demo control panel
   Deliberately outside the design system, so it is easy to
   spot and easy to keep out of frame.
   --------------------------------------------------------- */
.demo-panel{
  position:fixed;
  right:var(--sp-4);
  bottom:var(--sp-4);
  z-index:600;
  width:238px;
  padding:var(--sp-3);
  border:1px solid rgba(255,255,255,.14);
  border-radius:var(--r-card);
  background:rgba(25,3,64,.9);
  color:var(--c-white);
  font-size:var(--fs-xsmall);
  box-shadow:0 6px 26px rgba(0,0,0,.28);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}
.demo-panel__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--sp-2);
  margin-bottom:10px;
}
.demo-panel__head b{
  font-size:11px;
  font-weight:700;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:rgba(255,255,255,.62);
}
.demo-panel__hide{
  width:24px; height:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:none;
  border-radius:var(--r-input);
  background:rgba(255,255,255,.12);
  color:var(--c-white);
  font-size:var(--fs-small);
  line-height:1;
  cursor:pointer;
}
.demo-panel__hide:hover{ background:rgba(255,255,255,.24); }
.demo-panel__seg{
  display:flex;
  padding:3px;
  margin-bottom:9px;
  border-radius:var(--r-btn);
  background:rgba(255,255,255,.1);
}
.demo-panel__seg button{
  flex:1;
  height:30px;
  border:none;
  border-radius:var(--r-input);
  background:transparent;
  color:rgba(255,255,255,.7);
  font-size:var(--fs-xsmall);
  font-weight:600;
  cursor:pointer;
}
.demo-panel__seg button.is-on{ background:var(--c-white); color:var(--c-text-primary); }
.demo-panel__btn{
  width:100%;
  height:32px;
  margin-top:7px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:7px;
  background:rgba(255,255,255,.06);
  color:var(--c-white);
  font-size:var(--fs-xsmall);
  font-weight:500;
  cursor:pointer;
}
.demo-panel__btn:hover{ background:rgba(255,255,255,.16); }
.demo-panel__note{
  margin-top:9px;
  font-size:11px;
  line-height:1.4;
  color:rgba(255,255,255,.55);
}
.demo-panel__open{
  position:fixed;
  right:var(--sp-4);
  bottom:var(--sp-4);
  z-index:600;
  height:32px;
  padding:0 14px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:var(--r-pill);
  background:rgba(25,3,64,.78);
  color:rgba(255,255,255,.9);
  font-size:12px;
  font-weight:600;
  cursor:pointer;
}
.demo-panel__open:hover{ background:rgba(25,3,64,.94); }


/* =========================================================
   RESPONSIVE
   Every media query in the project is gathered here.

   mobile  : up to 767px     1 column
   tablet  : 768px to 991px  2 columns
   desktop : 992px and up    3 columns
   ========================================================= */

/* ----- tablette et plus : grille sur 2 colonnes ----- */
@media (min-width:768px){
  .grid > .grid-item{ width:calc(100%/2 - var(--gap)*1/2); }
}

/* ----- desktop : grille sur 3 colonnes ----- */
@media (min-width:992px){
  .grid > .grid-item{ width:calc(100%/3 - var(--gap)*2/3); }
  .nav-links{ position:static; }
}

/* ----- up to 991px: navigation folded behind the burger ----- */
@media (max-width:991px){
  .navbar .container{ padding:0 var(--sp-4); }
  /* Hung under the bar rather than placed at a computed viewport
     offset: the V2 gives the navbar a backdrop-filter, which makes it
     the containing block of its fixed descendants — the panel was then
     laid out from the top of the bar, not from the top of the page, and
     fell --demo-h too low, leaving a gap under the bar exactly the
     height of the demonstration banner. Absolute against the navbar
     (position:fixed, so it is the containing block either way) holds
     whether that filter is there or not. */
  .nav-links{
    position:absolute;
    top:var(--nav-h);
    left:0; right:0;
    flex-direction:column;
    align-items:stretch;
    gap:var(--sp-1);
    padding:10px;
    background:var(--c-white);
    box-shadow:var(--shadow-drop);
  }
  .nav-link{ height:44px; justify-content:flex-start; }
  .burger{ display:flex; }
  .user-btn__who{ display:none; }

  .auth__visual-inner{ padding:var(--sp-8); }
  .auth__visual h2{ font-size:26px; }
}

/* ----- mobile ----- */
@media (max-width:767px){
  .container{ padding:0 var(--sp-4); }
  .app-main{
    padding-top:calc(var(--nav-h) + var(--demo-h) + var(--sp-5));
    padding-bottom:110px;
  }
  .page-head h1{ font-size:21px; }
  .brand{ font-size:var(--fs-body); }

  /* la phrase complète ne tient pas sur une ligne de téléphone, et le
     bandeau ne peut pas grandir sans fausser --demo-h : seul le rappel
     court reste, avec le bouton */
  .demo-banner__inner{ padding:0 var(--sp-4); gap:var(--sp-3); }
  .demo-banner__detail{ display:none; }

  /* stacked login */
  .auth{ flex-direction:column; }
  .auth__visual{ width:100%; min-height:210px; }
  .auth__visual-inner{ padding:var(--sp-6); }
  .auth__visual-inner .brand{ margin-bottom:var(--sp-5); }
  .auth__visual h2{ font-size:22px; }
  .auth__visual p{ display:none; }
  .auth__form{ width:100%; flex:1; padding:var(--sp-8) var(--sp-5) 48px; }
  .auth__box .brand{ display:none; }

  /* bandeau gagnante */
  .winner-row--multi{ grid-template-columns:1fr; }
  .winner{ min-height:240px; }
  .winner__content{ padding:22px; }
  .winner__title{ font-size:21px; }
  .winner__veil{
    background:linear-gradient(180deg,
      rgba(48,49,88,.62) 0%,
      rgba(48,49,88,.94) 70%);
  }

  /* palmarès */
  .race-main{ width:110px; }
  .race-thumb{ width:34px; height:34px; }
  .race-row{ height:46px; gap:var(--sp-2); }
  .race-list{ padding:0 var(--sp-4) var(--sp-4); }
  .podium-top--multi{ grid-template-columns:1fr; }
  .podium-card{ min-height:300px; }
  .podium-card__content{ padding:22px; }
  .podium-card__title{ font-size:23px; }
  .results-foot .btn{ flex:1 1 100%; }

  .quota__rule{ margin-left:0; width:100%; }

  /* stacked filters and search */
  .feed-tools{ gap:var(--sp-3); }
  .feed-filters,
  .search{ flex:1 1 100%; }
  .prize{ padding:var(--sp-4) var(--sp-5); }

  /* administration: the row folds into a card. Identity and actions face
     each other on the first line, everything the row knows about that
     person reads as one sentence underneath. Six stacked blocks made a
     200px row on a phone — three people on a screen, for four numbers. */
  .tab{ padding:0 13px; }
  .data-row{ grid-template-columns:minmax(0,1fr) auto; gap:var(--sp-2) var(--sp-3); }
  .data-cell--who{ grid-column:1; }
  .data-cell--role{ grid-column:2; grid-row:1; align-self:start; flex-wrap:nowrap; }
  .data-meta{ grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:2px var(--sp-1); }
  /* every piece of the sentence laid out the same way, separator
     included: a cell that stayed a block spaced its dot differently
     from the flex ones next to it */
  .data-meta .data-cell{
    display:flex;
    align-items:baseline;
    gap:var(--sp-1);
    font-size:var(--fs-xsmall);
    color:var(--c-text-secondary);
  }
  /* the counts stop being headlines and rejoin the sentence */
  .data-meta .data-cell--num b{ font-size:inherit; }
  .data-meta .data-cell--num b.is-zero{ font-weight:600; color:var(--c-text-secondary); }
  /* one separator after each piece but the last, rather than before
     each but the first: the sentence wraps on a phone, and a line that
     starts with a middle dot reads as a bullet list. Drawn by CSS, so
     no screen reader ever reads a dot out. */
  .data-meta > .data-cell:not(:last-child)::after{
    content:'·';
    /* the separator takes the colour of the text it separates, faded:
       a fixed grey reads heavier than the words it stands between */
    opacity:.5;
  }
  /* « Participant » on nine rows out of ten is a grey band that teaches
     nothing; « Admin » is the exception and stays. The role column is
     then just the actions, facing the name. */
  .data-cell--role .badge--grey{ display:none; }
  /* the header goes, and the only way to sort goes with it: the bar
     takes over on the same breakpoint, never on another */
  .data-row--head{ display:none; }
  .sort-bar{ display:flex; align-items:center; gap:var(--sp-2); flex:1 1 100%; }

  /* classement, affichage liste */
  .rank-row{ padding:var(--sp-3) 14px; gap:11px; }
  .rank-row .cat-tag{ display:none; }
  .mini-thumb{ width:52px; height:44px; }

  /* moderation */
  .mod-item{ flex-direction:column; gap:var(--sp-3); }
  .mod-item__thumb,
  .mod-item__thumb img{ width:100%; }
  .mod-item__thumb img{ height:190px; }
  .mod-item--compact{ align-items:stretch; }

  /* full-screen modals */
  .modal-backdrop{ padding:0; }
  .modal,
  .modal--sm{
    max-width:none;
    width:100%;
    height:100%;
    max-height:none;
    border-radius:0;
  }

  /* full-screen lightbox */
  .lightbox{ max-width:none; width:100%; height:100%; max-height:none; border-radius:0; }
  .lightbox__img{ max-height:50vh; }
  .lightbox__nav{ width:38px; height:38px; font-size:20px; }
  .lightbox__nav--prev{ left:var(--sp-2); }
  .lightbox__nav--next{ right:var(--sp-2); }
  .lightbox__close{ top:var(--sp-3); right:var(--sp-3); }
  .lightbox__info{ padding:var(--sp-4); padding-bottom:max(var(--sp-4), env(safe-area-inset-bottom)); }
  .lightbox__caption{ font-size:18px; }

  /* panneau de pilotage */
  .demo-panel{ width:calc(100vw - 32px); max-width:280px; }
}
