/* ============================================================
   TRANSFERT - Baila'Cubano
   Charte officielle bailacubano.com :
   Montserrat Bold / Black, bleu nuit, rouge, blanc, jaune.
   Public : fondu blanc par le bas. Admin : fondu bleu nuit.
   Mobile first, esprit Smash : minimal, net, genereux.
   ============================================================ */

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #081628;
  --navy-2: #0e2138;
  --navy-3: #16304f;
  --red: #d62b35;
  --red-dark: #b71f29;
  --yellow: #f1c82b;
  --yellow-dark: #e0b512;
  --white: #ffffff;
  --grey: #5c6673;
  --grey-2: #97a0ab;
  --line: #e6e9ee;
  --line-navy: rgba(255, 255, 255, 0.14);
  --radius: 16px;
  --shadow: 0 12px 36px rgba(8, 22, 40, 0.12);
  --shadow-soft: 0 4px 14px rgba(8, 22, 40, 0.08);
  --font: 'Montserrat', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.6;
  min-height: 100vh;
}

img, video, svg { max-width: 100%; }
a { color: var(--navy); }

.ic {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: -0.22em;
  flex: none;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 18px; }

.black {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.06;
}

.muted { color: var(--grey); }
.hidden { display: none !important; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }

/* ------------------------------------------------------------
   Fonds : illustration en tete + fondu
   Public : fondu vers le BLANC par le bas.
   Admin (body.admin) : fondu vers le BLEU NUIT par le bas.
   ------------------------------------------------------------ */
.bg-hero {
  position: absolute;
  inset: 0 0 auto 0;
  height: 480px;
  z-index: -1;
  background: url('../img/bg-mobile.jpg') center 24% / cover no-repeat;
  pointer-events: none;
}
@media (min-width: 760px) {
  .bg-hero { background-image: url('../img/bg.jpg'); height: 560px; }
}
.bg-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0.78) 46%,
      #ffffff 100%);
}

body.admin { background: var(--navy); color: var(--white); }
body.admin .bg-hero::after {
  background: linear-gradient(180deg,
      rgba(8, 22, 40, 0.52) 0%,
      rgba(8, 22, 40, 0.82) 52%,
      #081628 100%);
}

.page { position: relative; }

/* ------------------------------------------------------------
   En-tete : marque + menu (Site, Blog, Agenda, Contact)
   ------------------------------------------------------------ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0 10px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; min-width: 0; }
.brand .b-name {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 19px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand .b-sub { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
body.admin .brand .b-sub { color: var(--grey-2); }

.logo-circle { width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-soft); flex: none; }
.logo-fb {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: none;
  display: inline-grid;
  place-items: center;
  background: var(--navy);
  border: 2px solid var(--yellow);
  color: var(--white);
  font-weight: 900;
  font-size: 15px;
}

.menu { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.menu a, .menu button {
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  background: none;
  border: 0;
  padding: 9px 11px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.menu a:hover, .menu button:hover { background: rgba(8, 22, 40, 0.06); }
.menu .m-cta { background: var(--navy); color: #fff; }
.menu .m-cta:hover { background: var(--navy-3); }
body.admin .menu a, body.admin .menu button { color: #fff; }
body.admin .menu a:hover, body.admin .menu button:hover { background: rgba(255, 255, 255, 0.1); }
body.admin .menu .m-cta { background: var(--yellow); color: var(--navy); }

/* ------------------------------------------------------------
   Cartes
   ------------------------------------------------------------ */
.card {
  position: relative;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px;
}
@media (min-width: 700px) { .card { padding: 30px 30px; } }

.card h1, .card h2, .card h3 {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.08;
  margin-top: 0;
  color: var(--navy);
}

.cover {
  margin: -26px -22px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  max-height: 280px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 700px) { .cover { margin: -30px -30px 22px; } }
.cover img { display: block; width: 100%; height: 100%; max-height: 280px; object-fit: cover; }

/* ------------------------------------------------------------
   Boutons : jaune (action), bleu nuit, contour, rouge
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 13.5px;
  padding: 15px 24px;
  border-radius: 12px;
  color: var(--navy);
  background: var(--yellow);
  box-shadow: 0 8px 22px rgba(241, 200, 43, 0.4);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--yellow-dark); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-disabled {
  background: #e3e6ea;
  color: #9aa2ad;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 8px 22px rgba(8, 22, 40, 0.28); }
.btn-navy:hover { background: var(--navy-3); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--line);
  box-shadow: none;
  font-weight: 700;
}
.btn-ghost:hover { border-color: var(--navy); background: transparent; }
body.admin .btn-ghost { color: #fff; border-color: var(--line-navy); }
body.admin .btn-ghost:hover { border-color: #fff; }

.btn-danger {
  background: transparent;
  border: 2px solid rgba(214, 43, 53, 0.5);
  color: var(--red);
  box-shadow: none;
  font-weight: 700;
}
.btn-danger:hover { background: rgba(214, 43, 53, 0.08); }

.btn-sm { font-size: 12px; padding: 10px 15px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------
   Champs
   ------------------------------------------------------------ */
.field { margin: 0 0 14px; text-align: left; }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 6px;
}
.input, select.input, textarea.input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 11px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-size: 16px;
  font-family: var(--font);
  transition: border-color 0.15s ease;
}
textarea.input { resize: vertical; min-height: 92px; }
.input:focus, textarea.input:focus { outline: none; border-color: var(--navy); }
.input::placeholder { color: var(--grey-2); font-weight: 400; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--grey); }
.check input { width: 19px; height: 19px; margin-top: 1px; accent-color: var(--navy); flex: none; }

.err { color: var(--red); font-size: 13.5px; font-weight: 700; margin-top: 10px; display: none; }

/* ------------------------------------------------------------
   Chips (informations)
   ------------------------------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f4f6f9;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--grey);
  white-space: nowrap;
}
.chip .ic { width: 1em; height: 1em; }
.chip strong { color: var(--navy); font-weight: 900; }
.chip.yellow { background: rgba(241, 200, 43, 0.2); color: #7a6410; }
.chip.yellow strong { color: #4d3f07; }

/* ------------------------------------------------------------
   Message du transfert
   ------------------------------------------------------------ */
.message {
  white-space: pre-line;
  background: #f4f6f9;
  border-left: 4px solid var(--yellow);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--navy-2);
  font-size: 14.5px;
  margin: 16px 0 4px;
}

/* ------------------------------------------------------------
   Disposition Smash : panneau + contenu
   ------------------------------------------------------------ */
.smash { display: grid; gap: 22px; margin-top: 12px; align-items: start; }
@media (min-width: 980px) {
  .smash { grid-template-columns: 400px minmax(0, 1fr); gap: 30px; }
  .smash > aside { position: sticky; top: 22px; }
}

.section-title {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 14px;
  color: var(--navy);
  margin: 4px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title .ic { color: var(--red); }
.section-title::after { content: ''; flex: 1; height: 2px; background: var(--line); border-radius: 2px; }
.smash section .section-title:first-child { margin-top: 0; }

/* ------------------------------------------------------------
   Liste de fichiers (documents, audio)
   ------------------------------------------------------------ */
.filelist { margin: 0 0 22px; }
.frow {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.frow:hover { border-color: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.frow .fi {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(8, 22, 40, 0.05);
  color: var(--navy);
  flex: none;
}
.frow .fi .ic { width: 20px; height: 20px; }
.frow .fn { flex: 1; min-width: 0; }
.frow .fn .n1 { font-size: 14px; font-weight: 700; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow .fn .n2 { font-size: 12px; color: var(--grey-2); font-weight: 700; }
.frow .fa a {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  transition: background 0.15s ease;
}
.frow .fa a:hover { background: var(--navy-3); }
.frow .fa .ic { width: 18px; height: 18px; }

/* ------------------------------------------------------------
   Grille medias : miniatures UNIFORMES (carre, object-fit)
   ------------------------------------------------------------ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
@media (min-width: 700px) { .grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; } }

.cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #eef1f5;
  cursor: zoom-in;
  border: 1px solid var(--line);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.cell:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.cell img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cell .ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--grey-2);
}
.cell .ph .ic { width: 30px; height: 30px; }

.cell .tag-video {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(8, 22, 40, 0.85);
  color: var(--yellow);
}
.cell .tag-video .ic { width: 14px; height: 14px; }
.cell .dl {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.cell .dl .ic { width: 17px; height: 17px; }
.cell:hover .dl, .cell:focus-within .dl { opacity: 1; }
@media (hover: none) { .cell .dl { opacity: 1; } }

/* Apparition en cascade, minimaliste */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.on { opacity: 1; transform: none; }

/* ------------------------------------------------------------
   Barre mobile fixe
   ------------------------------------------------------------ */
.stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 26px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.97) 46%);
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.stickybar > * { pointer-events: auto; max-width: 480px; flex: 1; }
@media (min-width: 980px) { .stickybar { display: none; } }

/* ------------------------------------------------------------
   Soutien HelloAsso
   ------------------------------------------------------------ */
.support {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.support:hover { background: var(--navy-3); transform: translateY(-1px); }
.support .ic { color: var(--red); width: 22px; height: 22px; }
.support .t1 { font-weight: 900; text-transform: uppercase; font-size: 12.5px; letter-spacing: 0.04em; }
.support .t2 { font-size: 11.5px; color: var(--grey-2); font-weight: 700; }

/* ------------------------------------------------------------
   Loader minimaliste
   ------------------------------------------------------------ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(3px);
  opacity: 1;
  transition: opacity 0.25s ease;
}
body.admin .loader { background: rgba(8, 22, 40, 0.92); }
.loader.hide { opacity: 0; pointer-events: none; }
.loader .inner { text-align: center; }
.loader .eq { display: flex; gap: 6px; justify-content: center; height: 34px; align-items: flex-end; }
.loader .eq span {
  width: 7px;
  height: 32px;
  border-radius: 4px;
  transform-origin: bottom;
  animation: bct-eq 1s ease-in-out infinite;
}
.loader .eq span:nth-child(1) { background: var(--navy); animation-delay: 0s; }
.loader .eq span:nth-child(2) { background: var(--red); animation-delay: 0.11s; }
.loader .eq span:nth-child(3) { background: var(--yellow); animation-delay: 0.22s; }
.loader .eq span:nth-child(4) { background: var(--red); animation-delay: 0.33s; }
.loader .eq span:nth-child(5) { background: var(--navy); animation-delay: 0.44s; }
body.admin .loader .eq span:nth-child(1),
body.admin .loader .eq span:nth-child(5) { background: #fff; }
.loader .txt { margin-top: 13px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); }
body.admin .loader .txt { color: var(--grey-2); }

@keyframes bct-eq {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

/* ------------------------------------------------------------
   Visionneuse
   ------------------------------------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  background: rgba(8, 22, 40, 0.96);
}
.lightbox.open { display: flex; flex-direction: column; }
.lightbox .lb-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 700;
}
.lightbox .lb-top .lb-actions { display: flex; gap: 8px; }
.lightbox .lb-stage {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 0 8px calc(14px + env(safe-area-inset-bottom));
  min-height: 0;
}
.lightbox .lb-stage img, .lightbox .lb-stage video {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  border-radius: 10px;
}
.audio-card {
  background: #fff;
  color: var(--navy);
  border-radius: 14px;
  padding: 28px 24px;
  width: min(430px, 92vw);
  text-align: center;
  box-shadow: var(--shadow);
}
.audio-card .big-ic { width: 46px; height: 46px; color: var(--red); }
.audio-card .nm { font-weight: 900; margin: 12px 0 16px; word-break: break-word; text-transform: none; }
.audio-card audio { width: 100%; }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
}
.lb-nav .ic { width: 20px; height: 20px; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

.iconbtn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}
.iconbtn:hover { background: rgba(255, 255, 255, 0.26); }
.iconbtn .ic { width: 18px; height: 18px; }

/* ------------------------------------------------------------
   Fenetre Contact (reprise ClaveLab)
   ------------------------------------------------------------ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(8, 22, 40, 0.62);
  backdrop-filter: blur(2px);
}
.modal.open { display: grid; }
.modal .box {
  width: min(480px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  color: var(--navy);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.modal .box h3 { margin: 0 0 4px; font-weight: 900; text-transform: uppercase; font-size: 18px; }
.modal .m-ok { text-align: center; padding: 16px 0 6px; }
.modal .m-ok .ok-ic {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(241, 200, 43, 0.25);
  color: var(--navy);
  display: inline-grid;
  place-items: center;
}
.modal .m-ok .ok-ic .ic { width: 28px; height: 28px; }
.hp { position: absolute; left: -6000px; top: -6000px; }

/* ------------------------------------------------------------
   Pied de page
   ------------------------------------------------------------ */
.site-footer {
  padding: 34px 0 40px;
  color: var(--grey-2);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.site-footer a { color: var(--grey); text-decoration: none; }
.site-footer a:hover { color: var(--navy); }
body.admin .site-footer a:hover { color: #fff; }

/* ------------------------------------------------------------
   Ecrans systeme (introuvable, expire, accueil)
   ------------------------------------------------------------ */
.sys { min-height: 80vh; display: grid; place-items: center; padding: 26px 16px 40px; }
.sys .card { max-width: 500px; width: 100%; text-align: center; }

/* ------------------------------------------------------------
   ADMIN
   ------------------------------------------------------------ */
.admin-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.storage { min-width: 180px; flex: 1; max-width: 250px; }
.storage .lbl { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--grey-2); margin-bottom: 5px; }
.storage .bar { position: relative; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.storage .bar .fill { position: absolute; inset: 0 auto 0 0; width: 0%; background: var(--yellow); border-radius: 99px; transition: width 0.4s ease; }
.storage .bar .mark { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--red); }
.storage.hot .bar .fill { background: var(--red); }

.gal-list { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 18px; }
@media (min-width: 800px) { .gal-list { grid-template-columns: 1fr 1fr; } }

.gal-card .top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.gal-card h3 { font-size: 16px; margin-bottom: 3px; text-transform: none; }
.gal-card .meta { font-size: 12px; font-weight: 700; color: var(--grey-2); margin-bottom: 12px; }
.gal-card .stats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.gal-card .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-exp {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(241, 200, 43, 0.22);
  color: #6d5a0c;
  white-space: nowrap;
}
.badge-exp.warn { background: rgba(214, 43, 53, 0.12); color: var(--red); }

.dropzone {
  border: 2px dashed rgba(8, 22, 40, 0.28);
  border-radius: 14px;
  background: #f4f6f9;
  padding: 36px 18px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.dropzone.over { background: rgba(241, 200, 43, 0.15); border-color: var(--yellow-dark); }
.dropzone .big { font-weight: 900; text-transform: uppercase; font-size: 16px; letter-spacing: 0.03em; color: var(--navy); }
.dropzone .hint { color: var(--grey); font-size: 12.5px; font-weight: 700; margin-top: 6px; }

.progress { height: 8px; border-radius: 99px; background: #e8ebef; overflow: hidden; }
.progress .fill { height: 100%; width: 0%; background: var(--navy); border-radius: 99px; transition: width 0.2s linear; }
.progress.done .fill { background: var(--yellow); }

.uprow {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 4px 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.uprow .fic { color: var(--grey); display: grid; place-items: center; }
.uprow .fic .ic { width: 18px; height: 18px; }
.uprow .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.uprow .st { color: var(--grey-2); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 12.5px; font-weight: 700; }
.uprow .progress { grid-column: 1 / -1; }
.uprow.ok .st { color: #1c7a3a; }
.uprow.err .st { color: var(--red); }

.linkbox {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #f4f6f9;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 7px 7px 7px 13px;
  flex-wrap: wrap;
}
.linkbox input { flex: 1 1 160px; background: none; border: 0; color: var(--navy); font-size: 14px; min-width: 0; font-weight: 700; font-family: var(--font); }
.linkbox input:focus { outline: none; }

.banner-zone { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.banner-zone .bprev {
  width: 150px;
  height: 62px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #f4f6f9;
}

.setrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.toast {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--line-navy);
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 220;
  max-width: 92vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.login-wrap { min-height: 82vh; display: grid; place-items: center; padding: 20px 16px; }
.login-card { width: min(410px, 100%); text-align: center; }

/* ------------------------------------------------------------
   Mouvement reduit
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .loader .eq span { transform: scaleY(0.7); }
}
