/* ==========================================================
   TANJIRO STUDIO — THÈME « LIQUID GLASS »
   Chargé après style.css : il ne fait que repeindre le site.
   Pour revenir à l'ancien thème, retire simplement la ligne
   <link rel="stylesheet" href="assets/css/liquid-glass.css…">
   des pages (et de staff/index.php).
   ========================================================== */

:root {
  /* Verre : fond, reflet, bord et ombre */
  --lg-verre: linear-gradient(140deg, rgba(255, 255, 255, .66) 0%, rgba(255, 255, 255, .30) 46%, rgba(255, 255, 255, .46) 100%);
  --lg-reflet: radial-gradient(120% 70% at 50% -18%, rgba(255, 255, 255, .70), rgba(255, 255, 255, 0) 58%);
  --lg-verre-epais: linear-gradient(140deg, rgba(255, 255, 255, .80) 0%, rgba(255, 255, 255, .52) 50%, rgba(255, 255, 255, .64) 100%);
  --lg-bord: rgba(255, 255, 255, .78);
  --lg-flou: blur(26px) saturate(190%) brightness(1.04);
  --lg-flou-leger: blur(14px) saturate(170%);
  --lg-relief:
    inset 0 1.5px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(255, 255, 255, .38),
    inset 1px 0 0 rgba(255, 255, 255, .45),
    inset -1px 0 0 rgba(255, 255, 255, .28),
    inset 0 0 28px rgba(255, 255, 255, .20);
  --lg-ombre: 0 1px 2px rgba(16, 42, 74, .06), 0 22px 60px -12px rgba(16, 42, 74, .20);
  --lg-ombre-forte: 0 2px 4px rgba(16, 42, 74, .06), 0 34px 80px -16px rgba(16, 42, 74, .28);

  /* Verre bleuté pour les boutons principaux */
  --lg-bleu: linear-gradient(180deg, rgba(176, 218, 252, .92) 0%, rgba(95, 179, 245, .82) 55%, rgba(78, 167, 241, .88) 100%);
  /* Verre sombre (bouton Discord) */
  --lg-nuit: linear-gradient(180deg, rgba(40, 62, 88, .86) 0%, rgba(11, 31, 52, .90) 100%);

  --rayon: 30px;
  --rayon-petit: 20px;
}

/* ---------- Fond : des taches de couleur douces que le verre fait vibrer ---------- */
html {
  background-color: #EEF4FA;
  background-image:
    radial-gradient(38rem 30rem at 8% 6%, rgba(95, 179, 245, .55), transparent 70%),
    radial-gradient(34rem 28rem at 92% 14%, rgba(167, 139, 250, .38), transparent 70%),
    radial-gradient(40rem 32rem at 70% 58%, rgba(45, 212, 191, .26), transparent 70%),
    radial-gradient(36rem 30rem at 12% 74%, rgba(244, 170, 200, .30), transparent 70%),
    radial-gradient(40rem 30rem at 88% 96%, rgba(95, 179, 245, .40), transparent 70%),
    linear-gradient(160deg, #F4F8FC 0%, #E9F1F9 50%, #F2F0FA 100%);
  background-attachment: fixed;
}
body, body.staff {
  background: transparent !important;
}
/* Ancienne grille de fond : remplacée par un léger voile qui adoucit les couleurs */
body::before {
  opacity: 1;
  background-image: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .18));
  mask-image: none;
  -webkit-mask-image: none;
}
body::after {
  background: radial-gradient(520px circle at var(--cursor-x, 78%) var(--cursor-y, 18%), rgba(255, 255, 255, .45), transparent 55%);
}
.site-noise { opacity: .012; }
.section-sombre::before { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); }
.hero::before { -webkit-text-stroke: 1px rgba(255, 255, 255, .7); }

/* ---------- La recette du verre, appliquée à toutes les surfaces ---------- */
.entete,
.product,
.travail,
.service,
.serveur,
.hero-console,
.hero-float,
.chiffres > div,
.ressources li,
.vide,
.competences li,
.apropos-logo,
.staff-carte,
.staff-accueil,
.staff-image-site,
.staff-barre,
.staff-rappel,
.staff-bibliotheque {
  border: 1px solid var(--lg-bord) !important;
  background: var(--lg-reflet), var(--lg-verre) !important;
  box-shadow: var(--lg-relief), var(--lg-ombre) !important;
  -webkit-backdrop-filter: var(--lg-flou);
  backdrop-filter: var(--lg-flou);
}

.product, .travail, .service, .serveur, .hero-console, .staff-carte, .staff-accueil {
  border-radius: var(--rayon) !important;
}
.chiffres > div, .ressources li, .vide, .competences li, .staff-image-site, .staff-bibliotheque, .hero-float {
  border-radius: var(--rayon-petit) !important;
}

.product, .travail, .service {
  transition: transform .45s cubic-bezier(.2, .9, .25, 1.15), box-shadow .35s ease, background .35s ease;
}
@media (hover: hover) and (min-width: 901px) {
  .product:hover, .travail:hover, .service:hover {
    transform: translateY(-6px) scale(1.012);
    box-shadow: var(--lg-relief), var(--lg-ombre-forte) !important;
  }
}

/* Les images dans le verre : coins arrondis assortis */
.product > img, .product .projet-image, .product .produit-image, .product .projet-image img, .product .produit-image img {
  border-radius: calc(var(--rayon) - 10px) !important;
}

/* ---------- Navigation flottante en verre ---------- */
.entete {
  border-radius: 26px !important;
  -webkit-backdrop-filter: blur(30px) saturate(200%) brightness(1.05);
  backdrop-filter: blur(30px) saturate(200%) brightness(1.05);
}
.entete.is-scrolled {
  background: var(--lg-reflet), var(--lg-verre-epais) !important;
}
.marque-symbole {
  border: 1px solid var(--lg-bord);
  border-radius: 16px;
  background: var(--lg-verre);
  box-shadow: var(--lg-relief);
}
.menu a {
  border-radius: 999px;
  color: #33475B;
}
.menu a:hover {
  background: rgba(255, 255, 255, .45);
  border-color: rgba(255, 255, 255, .7);
}
.menu a[aria-current="page"] {
  background: var(--lg-reflet), rgba(255, 255, 255, .62);
  border-color: rgba(255, 255, 255, .9);
  box-shadow: var(--lg-relief), 0 6px 18px -6px rgba(16, 42, 74, .22);
}
.menu .bouton-discord {
  border-radius: 999px;
  border-color: rgba(255, 255, 255, .22);
  background: var(--lg-nuit);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(255, 255, 255, .08), 0 10px 26px -8px rgba(11, 31, 52, .55);
}
.menu .bouton-discord:hover { background: var(--lg-nuit); }
.burger {
  border-radius: 999px;
  border-color: var(--lg-bord);
  background: var(--lg-verre);
  box-shadow: var(--lg-relief);
}

/* ---------- Boutons : des capsules de verre ---------- */
.bouton, .btn, .staff-bouton {
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, .8) !important;
  background: var(--lg-reflet), rgba(255, 255, 255, .42) !important;
  color: #0E1F2F;
  box-shadow: var(--lg-relief), 0 8px 22px -10px rgba(16, 42, 74, .30) !important;
  -webkit-backdrop-filter: var(--lg-flou-leger);
  backdrop-filter: var(--lg-flou-leger);
  transition: transform .35s cubic-bezier(.2, .9, .25, 1.3), box-shadow .3s ease, background .3s ease !important;
}
.bouton:hover, .btn:hover, .staff-bouton:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--lg-reflet), rgba(255, 255, 255, .62) !important;
}
.bouton:active, .btn:active, .staff-bouton:active { transform: scale(.97); }

.bouton-plein, .btn.primary, .staff-bouton-plein {
  border-color: rgba(255, 255, 255, .7) !important;
  background: radial-gradient(120% 80% at 50% -20%, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 55%), var(--lg-bleu) !important;
  color: #0B2540 !important;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, .9),
    inset 0 -2px 6px rgba(31, 118, 194, .30),
    0 12px 30px -10px rgba(52, 140, 220, .65) !important;
}
.bouton-plein:hover, .btn.primary:hover, .staff-bouton-plein:hover {
  background: radial-gradient(120% 80% at 50% -20%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 55%), var(--lg-bleu) !important;
}
.bouton-plein::after, .btn.primary::after {
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, .55) 50%, transparent 75%);
}
.bouton-danger {
  background: var(--lg-reflet), rgba(255, 228, 230, .55) !important;
  color: #B4232F !important;
}

/* ---------- Petites étiquettes ---------- */
.tag, .projet-etiquettes .tag, .hero-kicker, .etiquettes li, .staff-onglets .compteur {
  border: 1px solid rgba(255, 255, 255, .8) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .5) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 2px 8px -4px rgba(16, 42, 74, .2);
}

/* ---------- Bandeau Discord : verre bleuté ---------- */
.bande {
  border: 1px solid rgba(255, 255, 255, .7) !important;
  border-radius: 36px !important;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(255, 255, 255, .6), transparent 55%),
    linear-gradient(140deg, rgba(150, 205, 250, .62), rgba(95, 179, 245, .40) 55%, rgba(167, 139, 250, .32)) !important;
  box-shadow: var(--lg-relief), var(--lg-ombre-forte) !important;
  -webkit-backdrop-filter: var(--lg-flou);
  backdrop-filter: var(--lg-flou);
}
.bande .serveur {
  background: var(--lg-reflet), rgba(255, 255, 255, .30) !important;
}

/* ---------- Jauges de compétences ---------- */
.jauge {
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  box-shadow: inset 0 1px 2px rgba(16, 42, 74, .12);
}
.jauge span {
  border-radius: 999px;
  background: linear-gradient(90deg, #96CDFA, #5FB3F5) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

/* ---------- Pied de page ---------- */
.pied {
  width: min(calc(100% - 28px), var(--contenu, 1480px));
  margin: 40px auto 18px;
  border: 1px solid var(--lg-bord);
  border-radius: 26px;
  background: var(--lg-reflet), var(--lg-verre);
  box-shadow: var(--lg-relief), var(--lg-ombre);
  -webkit-backdrop-filter: var(--lg-flou);
  backdrop-filter: var(--lg-flou);
}

/* ---------- Visionneuse d'images (avec galerie) ---------- */
html.lightbox-ouverte { overflow: hidden; }
.lightbox {
  z-index: 200;
  flex-direction: column;
  gap: 16px;
  background: rgba(225, 236, 247, .55) !important;
  -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
  backdrop-filter: blur(30px) saturate(180%) !important;
}
.lightbox #lightboxImage {
  max-height: 78vh;
  border: 1px solid rgba(255, 255, 255, .85) !important;
  border-radius: 24px !important;
  box-shadow: 0 40px 100px -20px rgba(16, 42, 74, .45) !important;
}
.lightbox.lightbox-galerie #lightboxImage {
  max-width: calc(100vw - 180px);
  max-height: calc(100vh - 190px);
}
#lightboxClose, .lightbox-nav {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .85) !important;
  border-radius: 999px !important;
  background: var(--lg-reflet), rgba(255, 255, 255, .55) !important;
  color: #0E1F2F !important;
  box-shadow: var(--lg-relief), 0 10px 30px -10px rgba(16, 42, 74, .35);
  cursor: pointer;
}
.lightbox-nav {
  position: fixed;
  top: 50%;
  width: 56px;
  height: 56px;
  margin-top: -28px;
  font-size: 34px;
  line-height: 1;
  padding-bottom: 4px;
  transition: transform .25s ease;
}
.lightbox-nav:hover { transform: scale(1.08); }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
.lightbox-nav[hidden], .lightbox-compteur[hidden], .lightbox-miniatures[hidden] { display: none !important; }
.lightbox-compteur {
  position: fixed;
  top: 26px;
  left: 50%;
  margin: 0;
  padding: 6px 14px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  box-shadow: var(--lg-relief);
  color: #0E1F2F;
  font-size: 13px;
  font-weight: 700;
}
.lightbox-miniatures {
  display: flex;
  gap: 8px;
  max-width: min(92vw, 760px);
  padding: 8px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 22px;
  background: var(--lg-reflet), rgba(255, 255, 255, .45);
  box-shadow: var(--lg-relief), var(--lg-ombre);
}
.lightbox-miniatures button {
  flex: 0 0 auto;
  width: 72px;
  height: 48px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #0E1F2F;
  opacity: .6;
  cursor: pointer;
  transition: opacity .2s ease, border-color .2s ease;
}
.lightbox-miniatures button:hover { opacity: .9; }
.lightbox-miniatures button[aria-current="true"] { opacity: 1; border-color: #5FB3F5; }
.lightbox-miniatures img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Badge « 4 images » sur les cartes qui ont une galerie */
.agrandir { position: relative; }
.galerie-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  backdrop-filter: blur(12px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 6px 18px -6px rgba(16, 42, 74, .4);
  color: #0E1F2F;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}
.galerie-badge::before {
  content: "";
  width: 12px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  box-shadow: 2px -2px 0 -0.5px rgba(255, 255, 255, .9), 2px -2px 0 1px currentColor;
}
.produit-image {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.produit-image img { width: 100%; }

/* ---------- Espace staff ---------- */
.staff-entete, .staff-onglets {
  border-color: rgba(255, 255, 255, .6) !important;
  background: var(--lg-reflet), rgba(255, 255, 255, .42) !important;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .6), 0 10px 30px -18px rgba(16, 42, 74, .3);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  backdrop-filter: blur(26px) saturate(190%);
}
.staff-onglets a { border-radius: 999px !important; border: 1px solid transparent; }
.staff-onglets a:hover { background: rgba(255, 255, 255, .45); }
.staff-onglets a[aria-current="page"] {
  border-color: rgba(255, 255, 255, .9) !important;
  background: var(--lg-reflet), rgba(255, 255, 255, .68) !important;
  box-shadow: var(--lg-relief), 0 6px 18px -8px rgba(16, 42, 74, .3);
  color: #0E1F2F !important;
}
.formulaire input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),
.formulaire textarea,
.formulaire select {
  border: 1px solid rgba(255, 255, 255, .85) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, .55) !important;
  box-shadow: inset 0 1px 3px rgba(16, 42, 74, .10), 0 1px 0 rgba(255, 255, 255, .8);
  color: #0E1F2F;
}
.formulaire input:focus, .formulaire textarea:focus, .formulaire select:focus {
  background: rgba(255, 255, 255, .8) !important;
  border-color: #96CDFA !important;
  outline: none;
  box-shadow: 0 0 0 4px rgba(95, 179, 245, .22), inset 0 1px 3px rgba(16, 42, 74, .08);
}
.staff-image {
  border: 1px solid rgba(255, 255, 255, .7) !important;
  background: rgba(255, 255, 255, .22) !important;
}
.staff-message {
  border: 1px solid rgba(255, 255, 255, .8) !important;
  background: var(--lg-reflet), rgba(220, 252, 231, .6) !important;
  box-shadow: var(--lg-relief), var(--lg-ombre);
  -webkit-backdrop-filter: var(--lg-flou-leger);
  backdrop-filter: var(--lg-flou-leger);
}
.staff-message.erreur { background: var(--lg-reflet), rgba(254, 226, 226, .65) !important; }
.staff-liste li { border-bottom-color: rgba(255, 255, 255, .55) !important; }
.staff-image-site > img { border-radius: 14px; }

/* Bibliothèque : envoyer plusieurs images d'un coup */
.staff-bibliotheque {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  scroll-margin-top: 110px;
}
.staff-bibliotheque:target { box-shadow: var(--lg-relief), 0 0 0 3px rgba(95, 179, 245, .35) !important; }

/* Zone d'envoi : glisser-déposer + aperçus */
.staff-depot {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1.5px dashed rgba(95, 179, 245, .55);
  border-radius: 18px;
  background: rgba(255, 255, 255, .28);
  transition: background .2s ease, border-color .2s ease;
}
.staff-depot-survol {
  border-color: #5FB3F5;
  background: rgba(95, 179, 245, .16);
}
.staff-depot label { display: flex; flex-direction: column; gap: 8px; }
.staff-apercus-tete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0E1F2F;
}
.staff-apercus ul, .staff-galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.staff-apercus li, .staff-galerie li {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 16px;
  background: var(--lg-reflet), rgba(255, 255, 255, .5);
  box-shadow: var(--lg-relief), 0 6px 16px -10px rgba(16, 42, 74, .35);
  font-size: 12px;
  transition: opacity .2s ease;
}
.staff-apercus li img, .staff-galerie li img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 11px;
  background: #0E1F2F;
}
.staff-apercus li span {
  overflow: hidden;
  color: #4F6071;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.staff-apercu-retirer {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0 0 2px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  color: #0E1F2F;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.staff-apercu-retirer:hover { background: #FFE4E6; color: #B4232F; }
.staff-apercus-alerte { margin: 0; color: #B4232F; font-size: 13px; font-weight: 600; }
.staff-galerie li:first-child { border-color: #96CDFA; box-shadow: var(--lg-relief), 0 0 0 2px rgba(95, 179, 245, .35); }
.staff-galerie li.staff-galerie-retiree { opacity: .45; }
.formulaire .staff-case {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
}
.formulaire .staff-case input {
  width: 18px !important;
  height: 18px !important;
  min-height: 0 !important;
  margin: 0;
  padding: 0 !important;
  flex: 0 0 auto;
  box-shadow: none !important;
  accent-color: #5FB3F5;
}
.staff-galerie .staff-case { gap: 6px !important; font-size: 12px; }
.formulaire .staff-galerie .staff-case input { width: 15px !important; height: 15px !important; }
.staff-galerie-fleches { display: flex; gap: 6px; }
.staff-galerie-fleches button {
  flex: 1;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  color: #0E1F2F;
  cursor: pointer;
}
.staff-galerie-fleches button:hover { background: #FFFFFF; }

/* Liste « Sur le site » : miniature avec le nombre d'images */
.staff-miniature { position: relative; flex: 0 0 auto; }
.staff-miniature img { display: block; }
.staff-nombre {
  position: absolute;
  right: -6px;
  bottom: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  background: var(--lg-bleu);
  color: #0B2540;
  font-size: 11px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 4px 10px -4px rgba(16, 42, 74, .45);
}

/* ---------- Téléphone et tablette ----------
   Le flou est désactivé partout par style.css pour garder un défilement fluide.
   On garde l'effet « verre » avec des fonds un peu plus opaques et les reflets,
   et on remet le vrai flou seulement sur le menu et la visionneuse. */
@media (hover: none), (max-width: 900px) {
  html { background-attachment: scroll; }
  .entete, .product, .travail, .service, .serveur, .hero-console, .hero-float,
  .chiffres > div, .ressources li, .vide, .competences li, .apropos-logo,
  .staff-carte, .staff-accueil, .staff-image-site, .staff-barre, .staff-rappel, .staff-bibliotheque, .pied {
    background: var(--lg-reflet), var(--lg-verre-epais) !important;
    box-shadow: var(--lg-relief), 0 10px 28px -12px rgba(16, 42, 74, .22) !important;
  }
  .entete {
    background: var(--lg-reflet), rgba(255, 255, 255, .72) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
  }
  .lightbox { background: rgba(233, 241, 249, .94) !important; }
  .lightbox-nav { width: 46px; height: 46px; margin-top: -23px; font-size: 28px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-miniatures button { width: 58px; height: 40px; }
  .lightbox.lightbox-galerie #lightboxImage { max-width: calc(100vw - 24px); }
  .lightbox-nav { top: auto; bottom: 96px; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .product, .travail, .service, .bouton, .btn, .staff-bouton, .lightbox-nav { transition: none !important; }
}

/* ---------- Images des cartes ----------
   Fond sombre (comme les captures d'interface) au lieu d'un fond clair :
   une image encore en chargement ne laisse plus une grande zone blanche.
   « isolation » donne à l'image son propre calque : Firefox la redessine
   correctement même sous les effets de verre. */
.projet .projet-image,
.product .produit-image,
.product > img,
.projet .projet-image img,
.product .produit-image img {
  background-color: #0E1F2F !important;
  isolation: isolate;
}
.projet .projet-image img,
.product .produit-image img,
.product > img {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Onglet Discord : explications repliables */
.staff-explication {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 16px;
  background: rgba(255, 255, 255, .35);
  font-size: 14px;
  line-height: 1.6;
}
.staff-explication summary { cursor: pointer; font-weight: 700; }
.staff-explication[open] summary { margin-bottom: 8px; }
.staff-explication ol { margin: 0 0 8px; padding-left: 20px; }
.staff-explication p { margin: 0; color: #4F6071; }
.staff-explication label { margin-top: 10px; }
.staff-annonce { padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .85); border-radius: 14px; background: rgba(88, 101, 242, .08); }
.staff-webhook { display: grid; gap: 10px; padding: 14px; border: 1px solid rgba(255, 255, 255, .85); border-radius: 16px; background: rgba(88, 101, 242, .06); }

/* Aperçu avant enregistrement (Images du site) */
.staff-image-apercu { position: relative; }
.staff-image-apercu > img {
  display: block;
  width: 100%;
  height: 160px;
  border-radius: 14px;
  object-fit: contain;
  background: #0E1F2F;
  transition: box-shadow .2s ease;
}
.staff-image-modifiee .staff-image-apercu > img { box-shadow: 0 0 0 3px #5FB3F5; }
.staff-apercu-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #5FB3F5;
  color: #0E1F2F;
  font-size: 12px;
  font-weight: 700;
}
.staff-apercu-badge[hidden] { display: none; }
.staff-apercu-liste {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 16 / 10;
  margin-top: 8px;
  object-fit: contain;
  border-radius: 12px;
  background: #0E1F2F;
}
.staff-apercu-liste[hidden] { display: none; }

/* Bibliothèque : supprimer des images envoyées */
.staff-mes-images li { align-content: start; }
.staff-image-nom { overflow: hidden; color: #4F6071; text-overflow: ellipsis; white-space: nowrap; }
.staff-image-badge {
  overflow: hidden;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(95, 179, 245, .16);
  color: #1F5F92;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.staff-mes-images li:has(input:checked) { opacity: .5; box-shadow: 0 0 0 2px rgba(200, 60, 70, .45); }

/* Accueil : images de la console nettes et entières
   (avant : 84 % d'opacité, couleurs ternies, voile blanc sur la moitié basse, image rognée) */
.preview { background: #0E1F2F; }
/* Les deux images remplissent tout leur cadre, sans bandes noires */
.preview img {
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  filter: none;
}
.preview:hover img { opacity: 1; filter: none; }
.preview-secondaire img { object-fit: cover; object-position: center; }
.preview::after { background: linear-gradient(180deg, transparent 72%, rgba(14, 31, 47, .55)); }
.preview figcaption {
  left: 10px;
  right: auto;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 7px 11px;
  background: rgba(248, 250, 252, .88);
}

/* Mode staff : fenêtre « Changer l'image » directement sur la page */
.staff-fenetre {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 20px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 24px;
  background: rgba(248, 251, 254, .97);
  box-shadow: 0 30px 80px -20px rgba(14, 31, 47, .45);
  color: #0E1F2F;
}
.staff-fenetre::backdrop { background: rgba(14, 31, 47, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.staff-fenetre-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.staff-fenetre-tete h2 { margin: 0; font-size: 20px; line-height: 1.2; }
.staff-fenetre-fermer {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border: 1px solid rgba(14, 31, 47, .12);
  border-radius: 999px;
  background: #FFF;
  color: #0E1F2F;
  font-size: 20px; line-height: 1;
  cursor: pointer;
}
.staff-fenetre-apercu { position: relative; }
.staff-fenetre-apercu img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: contain;
  border-radius: 16px;
  background: #0E1F2F;
}
.staff-fenetre-badge {
  position: absolute; left: 10px; bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #5FB3F5;
  color: #0E1F2F;
  font-size: 12px; font-weight: 700;
}
.staff-fenetre-badge[hidden] { display: none; }
.staff-fenetre-depot {
  display: grid; gap: 3px;
  width: 100%;
  margin-top: 14px;
  padding: 14px;
  border: 1.5px dashed rgba(95, 179, 245, .7);
  border-radius: 16px;
  background: rgba(95, 179, 245, .07);
  color: #0E1F2F;
  font: inherit;
  text-align: center;
  cursor: pointer;
}
.staff-fenetre-depot span { overflow: hidden; color: #4F6071; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.staff-fenetre-depot:hover, .staff-fenetre-survol { border-color: #5FB3F5; background: rgba(95, 179, 245, .16); }
.staff-fenetre-sous-titre { margin: 16px 0 8px; font-size: 14px; font-weight: 700; }
.staff-fenetre-grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  max-height: 210px;
  overflow-y: auto;
  padding: 2px;
}
.staff-fenetre-grille button {
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #0E1F2F;
  cursor: pointer;
}
.staff-fenetre-grille img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.staff-fenetre-grille button:hover { border-color: #96CDFA; }
.staff-fenetre-grille .staff-fenetre-actuelle { border-color: rgba(14, 31, 47, .35); }
.staff-fenetre-grille .staff-fenetre-choisie { border-color: #5FB3F5; box-shadow: 0 0 0 3px rgba(95, 179, 245, .35); }
.staff-fenetre-case { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 14px; }
.staff-fenetre-case input { width: 18px; height: 18px; margin-top: 1px; accent-color: #5FB3F5; }
.staff-fenetre-message { min-height: 1em; margin: 12px 0 0; color: #B3261E; font-size: 13px; font-weight: 600; }
.staff-fenetre-message:empty { display: none; }
.staff-fenetre-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.staff-fenetre-actions button:disabled { opacity: .5; cursor: not-allowed; }
.staff-fenetre-lien { display: inline-block; margin-top: 12px; color: #1F5F92; font-size: 13px; }

/* Accueil : cartes cliquables (comme le portfolio) — un clic ouvre toutes les images */
.preview-ouvrir {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
}
.preview-ouvrir:focus-visible { outline: 3px solid #5FB3F5; outline-offset: -3px; border-radius: 20px; }
.preview .preview-legende {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: calc(100% - 20px);
  padding: 7px 11px;
  border: 1px solid rgba(14, 31, 47, .1);
  border-radius: 11px;
  background: rgba(248, 250, 252, .88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background .2s ease;
}
.preview .preview-legende span { color: #5FA8E6; font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.preview .preview-legende strong { margin-top: 3px; color: #0E1F2F; font-size: 14px; line-height: 1.2; }
.preview-ouvrir:hover .preview-legende { background: #FFF; }
.preview .galerie-badge { top: 10px; left: 10px; right: auto; bottom: auto; z-index: 2; }
.console-previews-seule { grid-template-columns: 1fr; }
