:root {
  --bg: #0c0815;
  --bg-pattern: url("../images/bg-pattern.svg");
  --panel: #15101f;
  --line: #27283a;
  --red: #ff1f3f;
  --red-2: #c20f2b;
  --text: #f7f7f9;
  --muted: #969aa7;
  --radius: 16px;
}

/* Etoile(s) abonnement :
 *   - 1 etoile : membre / free (gris doree, neutre)
 *   - 2 etoiles dorees : abonne premium actif
 *   - 3 etoiles dorees + halo intensifie : VIP (premium permanent admin)
 *
 * Strategie anti-debordement :
 *   - taille relative au conteneur (em), letter-spacing negatif, max-width 100%
 *   - line-height: 1 pour eviter de pousser les autres elements verticalement
 *   - white-space: nowrap pour ne jamais retourner a la ligne au milieu d'un trio
 *   - overflow: visible pour ne pas couper le glow exterieur (drop-shadow)
 *   - les conteneurs etroits (icon-box / qa-icon / account-icon) reduisent ensuite
 *     la taille via overrides locaux (cf. profile.css et bas de ce fichier).
 */
.dsc-star-single,
.dsc-star-pair,
.dsc-star-trio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 1;
  white-space: nowrap;
  max-width: 100%;
  vertical-align: middle;
  font-style: normal;
  text-decoration: none;
}

.dsc-star-pair {
  /* Aspect dore + petit halo pour bien marquer le statut premium */
  letter-spacing: -1px;
  filter: drop-shadow(0 0 4px rgba(255, 195, 60, 0.55));
  animation: dscStarPairPulse 2.4s ease-in-out infinite;
}

.dsc-star-trio {
  /* VIP : halo dore plus intense + animation un peu plus rapide pour signaler le statut superieur */
  letter-spacing: -2px; /* serre les 3 etoiles pour rester compact */
  filter: drop-shadow(0 0 6px rgba(255, 215, 80, 0.85));
  animation: dscStarTrioPulse 2.0s ease-in-out infinite;
}

@keyframes dscStarPairPulse {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 3px rgba(255, 195, 60, 0.35)); }
  50%      { transform: scale(1.06); filter: drop-shadow(0 0 8px rgba(255, 195, 60, 0.85)); }
}

@keyframes dscStarTrioPulse {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 4px rgba(255, 215, 80, 0.55)); }
  50%      { transform: scale(1.10); filter: drop-shadow(0 0 12px rgba(255, 215, 80, 1)); }
}

/* Verrou taille pour les conteneurs etroits utilises sur la page d'accueil :
 * - .account-icon / .icon (header bouton "Abonnement" front-page)
 * - .icon-box (cartes statistiques de pages d'accueil eventuelles)
 * Le trio ne doit jamais elargir le bouton hote.
 */
.account-icon .dsc-star-single,
.account-icon .dsc-star-pair,
.account-icon .dsc-star-trio,
.account-btn > .account-icon .dsc-star-trio,
.icon .dsc-star-trio {
  font-size: 0.95em;
}

.account-icon .dsc-star-pair { letter-spacing: -1.5px; }
.account-icon .dsc-star-trio { letter-spacing: -2.5px; }

/* Variante staff du bouton "Abonnement" : icone SVG (crayon / bouclier) au lieu d'etoile.
 * Le label change ("Tableau de bord" / "Guide editeur") et la couleur de la
 * pastille suit celle du badge. */
.account-icon--staff {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.account-icon--staff svg {
  width: 14px;
  height: 14px;
  display: block;
}

.account-btn--editeur .account-icon--staff { color: #fdba74; }
.account-btn--administrateur .account-icon--staff { color: #ffd2da; }

.account-btn--editeur:hover { border-color: rgba(249, 115, 22, 0.45); }
.account-btn--administrateur:hover { border-color: rgba(255, 31, 63, 0.45); }

/* Halo dore "Abonne premium" devant le nom d'un auteur dans les commentaires.
 * Visuellement : un cercle dore lumineux qui pulse avec deux petites etoiles a
 * l'interieur, place juste avant le nom de l'utilisateur. */
.dsc-premium-halo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 6px;
  vertical-align: middle;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff7c2 0%, #ffd75e 42%, #d99500 100%);
  box-shadow:
    0 0 0 2px rgba(255, 215, 94, 0.35),
    0 0 18px rgba(255, 195, 60, 0.55),
    inset 0 0 8px rgba(255, 255, 255, 0.45);
  animation: dscPremiumHaloPulse 2.6s ease-in-out infinite;
  flex: 0 0 auto;
  /* Pas de retour a la ligne : le halo + le pseudo doivent rester compacts
   * meme si la ligne d'auteur est longue (cf. .dsc-comment-author-line en flex). */
  white-space: nowrap;
}

.dsc-premium-halo__ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(255, 215, 94, 0.55);
  animation: dscPremiumHaloRing 2.6s ease-out infinite;
  pointer-events: none;
}

.dsc-premium-halo__stars {
  position: relative;
  z-index: 1;
  font-size: 10px;
  line-height: 1;
  letter-spacing: -1px;
  filter: drop-shadow(0 1px 0 rgba(140, 80, 0, 0.45));
}

@keyframes dscPremiumHaloPulse {
  0%, 100% {
    box-shadow:
      0 0 0 2px rgba(255, 215, 94, 0.35),
      0 0 16px rgba(255, 195, 60, 0.45),
      inset 0 0 8px rgba(255, 255, 255, 0.45);
  }
  50% {
    box-shadow:
      0 0 0 3px rgba(255, 215, 94, 0.55),
      0 0 24px rgba(255, 195, 60, 0.85),
      inset 0 0 10px rgba(255, 255, 255, 0.6);
  }
}

@keyframes dscPremiumHaloRing {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 480px) {
  .dsc-premium-halo {
    width: 24px;
    height: 24px;
    margin-right: 5px;
  }
  .dsc-premium-halo__stars { font-size: 9px; }
}

/* Variante VIP du halo (3 etoiles, dore plus intense, anneau plus marque). */
.dsc-premium-halo--vip {
  width: 32px;
  height: 32px;
  background: radial-gradient(circle at 35% 30%, #fff8d8 0%, #ffd75e 35%, #c47a00 100%);
  box-shadow:
    0 0 0 2px rgba(255, 215, 94, 0.55),
    0 0 26px rgba(255, 195, 60, 0.85),
    inset 0 0 10px rgba(255, 255, 255, 0.55);
  animation: dscPremiumHaloPulseVip 2.2s ease-in-out infinite;
}

.dsc-premium-halo--vip .dsc-premium-halo__ring {
  border-color: rgba(255, 215, 94, 0.75);
  border-width: 2px;
}

.dsc-premium-halo--vip .dsc-premium-halo__stars {
  font-size: 9px;
  letter-spacing: -1.5px;
}

@keyframes dscPremiumHaloPulseVip {
  0%, 100% {
    box-shadow:
      0 0 0 2px rgba(255, 215, 94, 0.55),
      0 0 18px rgba(255, 195, 60, 0.55),
      inset 0 0 10px rgba(255, 255, 255, 0.55);
  }
  50% {
    box-shadow:
      0 0 0 4px rgba(255, 215, 94, 0.75),
      0 0 30px rgba(255, 195, 60, 1),
      inset 0 0 12px rgba(255, 255, 255, 0.75);
  }
}

@media (max-width: 480px) {
  .dsc-premium-halo--vip {
    width: 28px;
    height: 28px;
  }
  .dsc-premium-halo--vip .dsc-premium-halo__stars { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .dsc-star-pair,
  .dsc-star-trio,
  .dsc-premium-halo,
  .dsc-premium-halo--vip,
  .dsc-premium-halo__ring { animation: none; }
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #5b3f8c #15101f;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    var(--bg-pattern) 0 0 / 56px 56px repeat,
    radial-gradient(980px 420px at 50% -120px, rgba(236, 72, 153, 0.16) 0%, rgba(168, 85, 247, 0.08) 38%, transparent 62%),
    radial-gradient(720px 520px at 108% 35%, rgba(59, 130, 246, 0.10) 0%, transparent 55%),
    radial-gradient(540px 440px at -8% 55%, rgba(251, 146, 60, 0.06) 0%, transparent 48%),
    var(--bg);
  background-attachment: fixed, fixed, fixed, fixed, scroll;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 14px 10px 24px;
  font-size: clamp(15px, 0.35vw + 14px, 18px);
}

#root {
  width: 100%;
  display: grid;
  place-items: center;
}

button,
input {
  font: inherit;
}

.phone {
  width: 100%;
  max-width: 430px;
  border: 1px solid #292a3d;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, #0a0b10 0%, #05060a 100%);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.62);
  position: relative;
}

.app {
  padding-bottom: 72px;
}

.header {
  margin: 10px 10px 0;
  border-radius: 18px;
  border: 1px solid #2a2b3f;
  background:
    radial-gradient(900px 220px at 18% 0%, rgba(255, 31, 63, 0.18), transparent 55%),
    radial-gradient(700px 260px at 88% 35%, rgba(255, 149, 0, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(15, 16, 26, 0.92), rgba(7, 8, 13, 0.92));
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 31, 63, 0.06) inset;
  overflow: hidden;
  position: relative;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 35%),
    radial-gradient(1px 1px at 12px 16px, rgba(255, 255, 255, 0.18) 0, transparent 2px),
    radial-gradient(1px 1px at 38px 44px, rgba(255, 255, 255, 0.12) 0, transparent 2px),
    radial-gradient(1px 1px at 62px 26px, rgba(255, 255, 255, 0.1) 0, transparent 2px);
  background-size: auto, 72px 72px, 92px 92px, 110px 110px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.topbar-main {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.daily-quote {
  margin-left: 10px;
  margin-right: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(16, 17, 26, 0.55), rgba(10, 11, 16, 0.35));
  color: rgba(240, 242, 250, 0.92);
  font-size: 11px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 38ch;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 149, 0, 0.04) inset;
}

.daily-quote:hover {
  border-color: rgba(255, 149, 0, 0.22);
}

@media (min-width: 900px) {
  .daily-quote {
    font-size: 12px;
    max-width: 60ch;
  }
}

@media (max-width: 520px) {
  .daily-quote {
    display: none;
  }
}

.topbar-sub {
  padding-top: 8px;
  padding-bottom: 10px;
  gap: 12px;
}

.genres-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.genres-more {
  display: none;
  gap: 7px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.genres-wrap.open .genres-more {
  display: flex;
}

.genres-wrap.open .genres-primary {
  padding-bottom: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.4px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  flex-shrink: 0;
  height: 30px;
  width: auto;
  max-width: 40px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 10px rgba(255, 149, 0, 0.35));
}

/* Slightly bigger + styled brand without being too large */
.brand {
  font-size: 19px;
  letter-spacing: 1.2px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(16, 17, 26, 0.85), rgba(10, 11, 16, 0.55));
  backdrop-filter: blur(8px);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 31, 63, 0.05) inset;
}

.brand-logo {
  height: 44px;
  max-width: 62px;
  filter:
    drop-shadow(0 0 12px rgba(255, 31, 63, 0.28))
    drop-shadow(0 0 18px rgba(255, 149, 0, 0.18));
}

.brand-site-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  object-fit: cover;
  margin-left: 2px;
  padding: 3px;
  background:
    radial-gradient(circle at 50% 45%, rgba(10, 11, 16, 0.96) 0%, rgba(10, 11, 16, 0.96) 62%, rgba(0, 0, 0, 0) 63%),
    linear-gradient(135deg, rgba(255, 59, 92, 1), rgba(255, 179, 0, 0.98));
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 0 22px rgba(255, 31, 63, 0.22);
  transform: translateY(-1px);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  filter: saturate(1.12) contrast(1.05);
}

/* Accueil: logo un peu plus grand */
.topbar-main .brand-site-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
}

.brand:hover .brand-site-icon {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 0 32px rgba(255, 31, 63, 0.32);
  filter: saturate(1.2) contrast(1.08);
}

.brand span {
  background: linear-gradient(90deg, #ff1f3f, #ff7a90 55%, #ffd1d9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 8px 18px rgba(255, 31, 63, 0.16);
}

@media (min-width: 900px) {
  .brand {
    font-size: 22px;
    letter-spacing: 1.35px;
    padding: 8px 12px;
  }

  .brand-logo {
    height: 54px;
    max-width: 76px;
  }
}

/* keep gradient text for brand span */

.top-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  min-width: 0;
}

.top-tab {
  font-size: 12px;
  color: #d6d8df;
  border: 1px solid #2f3042;
  border-radius: 999px;
  padding: 7px 10px;
  white-space: nowrap;
  background: #10111a;
  cursor: pointer;
}

.top-tab.active {
  border-color: #6d1728;
  background: #2a0d15;
  color: #ffb7c3;
}

.menu-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: visible;
  margin-left: auto;
  padding-bottom: 2px;
  min-width: 0;
}

/* Le dropdown doit pouvoir s'afficher "par-dessus" sans être coupé. */
.topbar,
.topbar-main,
.header {
  overflow: visible;
}

.menu-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.menu-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.menu-dropdown__chev {
  opacity: 0.85;
  font-size: 12px;
  transform: translateY(-1px);
}

.menu-dropdown__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(16, 17, 26, 0.98), rgba(10, 11, 16, 0.98));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 40;
}

.menu-dropdown.is-open .menu-dropdown__panel,
.menu-dropdown:focus-within .menu-dropdown__panel {
  display: block;
}

.menu-dropdown__item {
  display: block;
  padding: 9px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #e6e8ef;
  font-size: 13px;
  border: 1px solid transparent;
  background: transparent;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.menu-dropdown__section-label {
  display: block;
  padding: 10px 10px 4px;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(229, 231, 235, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-dropdown__item:hover,
.menu-dropdown__item:focus-visible {
  border-color: rgba(255, 31, 63, 0.35);
  background: rgba(43, 13, 21, 0.55);
  transform: translateY(-1px);
  outline: none;
}

.menu-pill {
  font-size: 13px;
  color: #e6e8ef;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 9px 13px;
  white-space: nowrap;
  background: rgba(16, 17, 26, 0.65);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.menu-pill:hover {
  border-color: rgba(255, 31, 63, 0.35);
  background: rgba(43, 13, 21, 0.65);
  transform: translateY(-1px);
}

.menu-pill.active {
  border-color: rgba(255, 31, 63, 0.55);
  background: linear-gradient(180deg, rgba(255, 31, 63, 0.22), rgba(43, 13, 21, 0.62));
  color: #ffd2da;
  box-shadow: 0 10px 28px rgba(255, 31, 63, 0.1);
}

.menu-pill:active {
  transform: translateY(0px);
}

.account-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.account-btn {
  font-size: 13px;
  color: #e7e9f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 9px 13px;
  white-space: nowrap;
  background: rgba(16, 17, 26, 0.45);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.account-btn:hover {
  border-color: rgba(255, 31, 63, 0.35);
  background: rgba(43, 13, 21, 0.55);
  transform: translateY(-1px);
}

.menu-pill:focus-visible,
.top-tab:focus-visible,
.account-btn:focus-visible {
  outline: 2px solid rgba(255, 31, 63, 0.55);
  outline-offset: 2px;
}

.top-tab.genre-tab {
  background: rgba(16, 17, 26, 0.35);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.top-tab.genre-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 31, 63, 0.32);
  background: rgba(43, 13, 21, 0.45);
}

.top-tab.genre-tab.active {
  border-color: rgba(255, 31, 63, 0.55);
  background: linear-gradient(180deg, rgba(255, 31, 63, 0.22), rgba(43, 13, 21, 0.55));
  color: #ffd2da;
  box-shadow: 0 10px 28px rgba(255, 31, 63, 0.08);
}

.account-icon {
  opacity: 0.9;
}

.hero {
  margin: 12px 10px 0;
  border-radius: var(--radius);
  min-height: 205px;
  border: 1px solid #35364b;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 31, 63, 0.10) inset,
    0 0 42px rgba(255, 31, 63, 0.14),
    0 0 64px rgba(255, 179, 0, 0.10);
  touch-action: pan-y;
}

.hero-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, #30466d, #6f3b57 45%, #18202e);
  transform: translateX(0%);
  transition: transform 620ms cubic-bezier(0.2, 0.9, 0.2, 1);
  filter: saturate(1.15) contrast(1.08) brightness(1.05);
  will-change: transform;
  background-size: cover;
  background-position: center;
}

.hero.dragging .hero-bg {
  transition: none !important;
}

.hero-link {
  cursor: grab;
}

.hero-link:active {
  cursor: grabbing;
}

.hero-bg-next {
  transform: translateX(100%);
}

.hero.sliding .hero-bg-current {
  transform: translateX(0%);
}

.hero.sliding .hero-bg-next {
  transform: translateX(-100%);
}

.hero.sliding-go .hero-bg-current {
  transform: translateX(-100%);
}

.hero.sliding-go .hero-bg-next {
  transform: translateX(0%);
}

.hero-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  text-decoration: none;
}

.hero-body {
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(900px 320px at 20% 0%, rgba(255, 179, 0, 0.18), transparent 60%),
    radial-gradient(780px 320px at 95% 10%, rgba(255, 31, 63, 0.22), transparent 62%),
    linear-gradient(
      0deg,
      rgba(3, 3, 6, 0.78) 12%,
      rgba(3, 3, 6, 0.12) 58%,
      rgba(3, 3, 6, 0.86) 100%
    );
}

.hero-body {
  z-index: 2;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(180px 110px at 18% 32%, rgba(246, 223, 179, 0.54), transparent 62%),
    radial-gradient(230px 120px at 82% 15%, rgba(163, 65, 90, 0.63), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.95;
  animation: dsc-hero-pulse 6.5s ease-in-out infinite alternate;
}

.hero::selection,
.hero *::selection {
  background: rgba(255, 31, 63, 0.35);
}

.hero::marker {
  color: inherit;
}

.hero::before,
.hero::after {
  pointer-events: none;
}

.hero::after {
  animation: dsc-hero-shimmer 9s ease-in-out infinite;
  background-size: 140% 140%, 160% 160%, 100% 100%;
  background-position: 0% 0%, 100% 0%, 0% 0%;
}

.hero .badge {
  box-shadow:
    0 12px 34px rgba(255, 31, 63, 0.16),
    0 0 18px rgba(255, 179, 0, 0.12);
}

.hero h1 {
  background: linear-gradient(90deg, #ffffff 0%, #ffe7ee 40%, #ffd1a3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.hero p {
  color: rgba(245, 247, 255, 0.86);
}

.hero:hover .hero-bg-current,
.hero:hover .hero-bg-next {
  filter: saturate(1.22) contrast(1.12) brightness(1.08);
}

.hero:hover {
  border-color: rgba(255, 31, 63, 0.36);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 31, 63, 0.14) inset,
    0 0 54px rgba(255, 31, 63, 0.18),
    0 0 84px rgba(255, 179, 0, 0.14);
}

@keyframes dsc-hero-pulse {
  0% {
    transform: translateY(0px);
    filter: saturate(1.0);
    opacity: 0.85;
  }
  100% {
    transform: translateY(-1px);
    filter: saturate(1.12);
    opacity: 1;
  }
}

@keyframes dsc-hero-shimmer {
  0% {
    background-position: 0% 0%, 100% 0%, 0% 0%;
  }
  50% {
    background-position: 55% 18%, 48% 12%, 0% 0%;
  }
  100% {
    background-position: 0% 0%, 100% 0%, 0% 0%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after {
    animation: none;
  }
  .hero-bg {
    transition: none;
  }
}
.hero-body {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(255, 31, 63, 0.5);
  background: rgba(255, 31, 63, 0.2);
  color: #ffd2da;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 7px;
}

.hero h1 {
  margin: 0;
  font-size: 19px;
  line-height: 1.34;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.65);
}

.hero p {
  margin: 6px 0 0;
  color: #d5d8e1;
  font-size: 13px;
}

.search-wrap {
  margin: 10px 10px 12px;
  display: grid;
  gap: 8px;
}

.search {
  height: 44px;
  border-radius: 12px;
  border: 1px solid #303143;
  background: #0f1119;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: #c4c7d0;
  font-size: 14px;
}

#search-input {
  background: transparent;
  border: 0;
  color: #fff;
  width: 100%;
  outline: none;
}

.quick-strip {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 7px;
}

.pill {
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid #303243;
  background: #0f1118;
  color: #d8dae1;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  white-space: nowrap;
  cursor: pointer;
}

.pill.main {
  justify-content: flex-start;
  color: #ffb4c1;
  border-color: #6a1727;
  background: #2b0d15;
  font-weight: 700;
}

.pill.active {
  border-color: #6d1728;
  background: #2a0d15;
  color: #ffb7c3;
}

.section {
  margin: 0 10px 12px;
}

.section-title {
  position: relative;
  margin: 18px 0 16px;
  /* Plus grand et plus visible */
  font-size: 26px;
  line-height: 1.15;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: 0.2px;
  color: #fff;
  text-transform: none;
  /* Effet moderne : degrade rouge -> rose pale sur le texte */
  background: linear-gradient(95deg, #ff5470 0%, #ff1f3f 35%, #ffb3c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 10px 26px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(255, 31, 63, 0.18);
  /* Sous le texte : un trait decoratif anime */
  padding-bottom: 10px;
  isolation: isolate;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 26px; /* derriere le .dot */
  bottom: 0;
  height: 3px;
  width: 64px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 31, 63, 0) 0%, #ff1f3f 30%, #ff6a80 100%);
  box-shadow: 0 0 18px rgba(255, 31, 63, 0.55);
  transform-origin: left center;
  animation: dscSectionUnderline 2.6s ease-in-out infinite;
}

@keyframes dscSectionUnderline {
  0%   { transform: scaleX(0.7); opacity: 0.55; }
  50%  { transform: scaleX(1.15); opacity: 1; }
  100% { transform: scaleX(0.7); opacity: 0.55; }
}

/* Le span "Réactions", chaining etc. herite du degrade */
.section-title span:not(.dot) {
  background: inherit;
  -webkit-background-clip: inherit;
  background-clip: inherit;
  -webkit-text-fill-color: inherit;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 5px;
  background: linear-gradient(180deg, #ff1f3f, #ff6a80);
  box-shadow:
    0 0 14px rgba(255, 31, 63, 0.75),
    0 0 30px rgba(255, 31, 63, 0.28);
  flex: 0 0 auto;
  animation: dscDotPulse 1.8s ease-in-out infinite;
}

@keyframes dscDotPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 14px rgba(255, 31, 63, 0.55),
      0 0 0 0 rgba(255, 31, 63, 0.45);
  }
  50% {
    transform: scale(1.18);
    box-shadow:
      0 0 18px rgba(255, 31, 63, 0.85),
      0 0 0 8px rgba(255, 31, 63, 0);
  }
}

@media (min-width: 900px) {
  .section-title {
    font-size: 34px;
    letter-spacing: 0.35px;
    gap: 16px;
    margin: 22px 0 20px;
  }

  .section-title::after {
    height: 4px;
    width: 88px;
    left: 30px;
  }

  .dot {
    width: 16px;
    height: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-title::after,
  .dot {
    animation: none;
  }
}

.h-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.grid {
  display: grid;
  /* Lisible sur téléphone : pas 5 colonnes minuscules */
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 10px;
}

.grid-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* "Dernieres mises a jour" : on FORCE 4 colonnes meme sur mobile.
 * Page 1 : 12 mangas (3 lignes), pages suivantes : 16 mangas (4 lignes). */
.dmaj-page.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.dmaj-page[hidden] {
  display: none !important;
}

.dmaj-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Pagination de la section "Dernieres mises a jour" */
.dmaj-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 0 2px;
}

.dmaj-pagination button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(20, 10, 14, 0.7);
  color: #ffd2da;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  font-family: inherit;
  min-width: 32px;
  cursor: pointer;
  transition: 140ms ease;
}

.dmaj-pagination button:hover:not(:disabled) {
  border-color: rgba(255, 58, 89, 0.55);
  background: rgba(40, 14, 22, 0.9);
}

.dmaj-pagination button.is-active {
  background: rgba(255, 31, 63, 0.85);
  border-color: rgba(255, 31, 63, 0.65);
  color: #fff;
}

.dmaj-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.dmaj-pagination__num[aria-current="page"] {
  pointer-events: none;
}

@media (max-width: 380px) {
  .dmaj-pagination button {
    padding: 4px 8px;
    font-size: 11px;
    min-width: 28px;
  }
}

/* Série DASSOUSCAN: always 4 per row (scroll on small screens) */
#dassouscan-list.grid-4 {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  overflow-x: auto;
  padding-bottom: 6px;
}

.featured-card[data-title="Bientôt"] {
  opacity: 0.85;
}

.featured-card[data-title="Bientôt"] .chapter-item {
  border-style: dashed;
  opacity: 0.9;
}

.load-more {
  margin-top: 12px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 17, 26, 0.55);
  color: rgba(240, 242, 250, 0.92);
  padding: 12px 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.load-more:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 31, 63, 0.35);
  background: rgba(43, 13, 21, 0.55);
}

.latest-page {
  display: none;
}

.page {
  display: none;
}

.page-subtitle {
  margin: -4px 0 12px;
  color: rgba(200, 204, 218, 0.92);
  font-size: 13px;
}

.profile-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 16, 24, 0.7);
  padding: 14px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
}

.profile-h {
  margin: 0 0 6px;
  font-size: 18px;
}

.profile-p {
  margin: 0 0 12px;
  color: rgba(200, 204, 218, 0.92);
  font-size: 13px;
  line-height: 1.4;
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.latest-nav {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.latest-nav-btn {
  flex: 1 1 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 17, 26, 0.45);
  color: rgba(240, 242, 250, 0.92);
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
}

.latest-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.grid .featured-card {
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.5);
}

.grid .featured-title {
  font-size: 12px;
}

.grid .chapters {
  gap: 7px;
}

.grid .chapter-item {
  padding: 7px 9px;
}

.strip-empty {
  margin: 0;
  padding: 12px 10px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  grid-column: 1 / -1;
}

.card {
  border-radius: 9px;
  border: 1px solid #242535;
  background: var(--panel);
  overflow: hidden;
  min-width: 68px;
  cursor: pointer;
}

.featured-card {
  border-radius: var(--dsc-graphic-card-radius, 14px);
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(13, 14, 20, 0.9), rgba(10, 11, 16, 0.9));
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
}

.featured-card .cover {
  aspect-ratio: 3/4;
}

.featured-card .cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.88));
}

.featured-ribbon {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 1;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 13, 20, 0.55);
  backdrop-filter: blur(8px);
  color: #dfe2ee;
}

.featured-meta {
  padding: 10px 10px 12px;
  background: #090a10;
}

.featured-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.98);
  text-shadow:
    0 10px 26px rgba(0, 0, 0, 0.45),
    0 0 22px rgba(255, 31, 63, 0.10);
}

.dsc-manga-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.dsc-manga-card__tags li {
  margin: 0;
  padding: 0;
  max-width: 100%;
}

.dsc-manga-card__tag {
  display: inline-block;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(122, 182, 217, 0.35);
  background: rgba(18, 31, 47, 0.65);
  color: rgba(200, 220, 232, 0.95);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dsc-manga-card__tag:hover,
.dsc-manga-card__tag:focus {
  border-color: rgba(160, 210, 240, 0.55);
  color: #e8f4fc;
}

.chapters {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.chapter-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 12px;
  padding: 8px 10px;
  border-radius: var(--dsc-graphic-chapter-row-radius, 12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 17, 26, 0.45);
}

.chapter-lock {
  flex: 0 0 auto;
  width: 1.15em;
  text-align: center;
  opacity: 0.9;
  font-size: 12px;
  line-height: 1.4;
  padding-top: 2px;
}

.chapter-release {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255, 212, 132, 0.98);
  white-space: nowrap;
  margin-top: 1px;
}

.chapter-release--stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  line-height: 1.2;
  white-space: normal;
  min-width: 3.4rem;
}

.chapter-release__date {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: rgba(255, 212, 132, 0.98);
}

.chapter-release__time {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 224, 160, 0.88);
  font-variant-numeric: tabular-nums;
}

.chapter-item__lead {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 8px;
  flex: 1 1 100px;
  min-width: 0;
}

.chapter-item__label-block {
  min-width: 0;
  flex: 1 1 auto;
}

.chapter-label-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
}

.chapter-label-row .chapter-label {
  margin: 0;
}

.chapter-badge {
  display: inline-block;
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(52, 211, 153, 0.45);
  background: rgba(16, 185, 129, 0.18);
  color: rgba(187, 247, 208, 0.98);
  line-height: 1.2;
}

.chapter-item--placeholder .chapter-item__meta-secondary {
  flex: 1 0 100%;
  width: 100%;
  margin-top: 2px;
}

.chapter-main {
  flex: 1 1 120px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.chapter-label {
  font-size: 13px;
  color: rgba(235, 237, 244, 0.92);
  font-weight: 650;
}

.chapter-date {
  font-size: 12px;
  color: rgba(150, 154, 167, 0.95);
}

.chapter-date--secondary {
  font-size: 11px;
  color: rgba(160, 164, 178, 0.88);
}

@media (min-width: 900px) {
  .h-list {
    grid-auto-columns: minmax(220px, 1fr);
    gap: 10px;
  }

  .featured-title {
    font-size: 14px;
  }

  .chapter-label {
    font-size: 12px;
  }
}

.cover {
  aspect-ratio: 3/4;
  position: relative;
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50px 40px at 20% 20%, rgba(255, 255, 255, 0.35), transparent 64%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.62));
}

.meta {
  padding: 5px 5px 6px;
  background: #0b0c12;
}

.name {
  margin: 0;
  font-size: 8px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.42);
}

.stats {
  margin-top: 3px;
  font-size: 7px;
  color: var(--red-2);
  letter-spacing: 0.2px;
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(12, 13, 20, 0.92), rgba(7, 8, 13, 0.92)),
    radial-gradient(520px 120px at 50% 0%, rgba(255, 31, 63, 0.14), transparent 65%),
    radial-gradient(520px 120px at 85% 0%, rgba(255, 179, 0, 0.10), transparent 70%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 4px;
  padding: 6px 6px 8px;
  backdrop-filter: blur(10px);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.55);
}

.bottom-nav.bottom-nav--home {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 6px 4px 8px;
}

@media (min-width: 380px) {
  .bottom-nav.bottom-nav--home {
    gap: 6px;
    padding: 8px 10px 10px;
  }
}

.nav-item {
  text-align: center;
  font-size: 10px;
  color: rgba(230, 232, 239, 0.78);
  background: rgba(16, 17, 26, 0.20);
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1.1;
  padding: 5px 3px;
  min-width: 0;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, color 140ms ease;
  user-select: none;
}

.nav-item .icon {
  font-size: 16px;
  display: block;
  line-height: 1;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.nav-item__label {
  display: block;
  font-weight: 800;
  letter-spacing: 0.02em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-item__role {
  display: block;
  font-size: 8px;
  font-weight: 600;
  color: rgba(229, 231, 235, 0.65);
  letter-spacing: 0.02em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 31, 63, 0.22);
  background: rgba(43, 13, 21, 0.38);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 31, 63, 0.08) inset;
}

.nav-item:focus-visible {
  outline: 2px solid rgba(255, 31, 63, 0.55);
  outline-offset: 2px;
}

.nav-item.active,
.nav-item[aria-current="page"] {
  color: #ffd2da;
  border-color: rgba(255, 31, 63, 0.38);
  background: linear-gradient(180deg, rgba(255, 31, 63, 0.22), rgba(43, 13, 21, 0.44));
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 31, 63, 0.10) inset,
    0 0 36px rgba(255, 31, 63, 0.14);
}

.nav-item.active .nav-item__role,
.nav-item[aria-current="page"] .nav-item__role {
  color: rgba(255, 210, 218, 0.88);
}

.manga-dialog {
  border: 0;
  padding: 0;
  max-width: 360px;
  width: calc(100% - 40px);
  background: transparent;
}

.manga-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
}

.dialog-card {
  border-radius: 16px;
  border: 1px solid #2f3245;
  background: #0e1018;
  padding: 12px;
  position: relative;
}

.close-dialog {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 26px;
  height: 26px;
  border: 1px solid #3a3c54;
  background: #151828;
  color: #d8dce8;
  border-radius: 999px;
  cursor: pointer;
}

.dialog-cover {
  width: 100%;
  aspect-ratio: 3/2;
  border-radius: 11px;
  border: 1px solid #313449;
}

#dialog-title {
  margin: 10px 0 4px;
  font-size: 16px;
}

.dialog-genre {
  margin: 0;
  color: #ffb3c0;
  font-size: 12px;
}

.dialog-description {
  margin: 8px 0 0;
  color: #c8ccda;
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 380px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

/* ===== Responsive scaling (no column re-ordering) ===== */
@media (min-width: 640px) {
  body {
    padding: 18px 16px 28px;
  }

  .phone {
    max-width: 520px;
    border-radius: 28px;
  }

  .topbar {
    padding: 12px 14px;
  }

  .hero {
    min-height: 240px;
  }

  .hero h1 {
    font-size: 17px;
  }

  .hero p {
    font-size: 12px;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

@media (min-width: 900px) {
  body {
    padding: 26px 24px 40px;
  }

  .phone {
    max-width: 720px;
    border-radius: 30px;
  }

  .topbar {
    gap: 12px;
    padding: 14px 16px;
  }

  .brand {
    font-size: 14px;
  }

  .top-tab {
    font-size: 11px;
    padding: 6px 10px;
  }

  .menu-pill,
  .account-btn {
    font-size: 14px;
    padding: 10px 15px;
  }

  .hero {
    margin: 14px 14px 0;
    min-height: 290px;
  }

  .hero-body {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .badge {
    font-size: 11px;
    padding: 5px 10px;
  }

  .hero h1 {
    font-size: 19px;
  }

  .hero p {
    font-size: 13px;
  }

  .search-wrap {
    margin: 14px 14px 14px;
    gap: 10px;
  }

  .search {
    height: 44px;
    padding: 0 12px;
    font-size: 13px;
  }

  .quick-strip {
    gap: 10px;
  }

  .pill {
    min-height: 34px;
    font-size: 11px;
    padding: 0 12px;
  }

  .section {
    margin: 0 14px 16px;
  }

  .section-title {
    font-size: 22px;
    gap: 10px;
    margin: 14px 0 14px;
  }

  .section-title::after {
    width: 48px;
    left: 22px;
  }

  .grid {
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .name {
    font-size: 9px;
  }

  .stats {
    font-size: 8px;
  }
}

@media (min-width: 1200px) {
  .phone {
    max-width: 980px;
  }

  .hero {
    min-height: 340px;
  }

  .bottom-nav {
    min-height: 68px;
    gap: 6px;
    padding: 8px 10px 10px;
  }

  .nav-item {
    font-size: 11px;
    padding: 6px 4px;
  }

  .nav-item .icon {
    font-size: 17px;
  }

  .nav-item__role {
    font-size: 9px;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  }
}

@media (min-width: 1600px) {
  .phone {
    max-width: 1120px;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  }
}

/* Raccourcis connecté (accueil) */
.dsc-home-quick-tools {
  margin: 0 14px 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(194, 15, 47, 0.08), rgba(47, 75, 114, 0.08)),
    linear-gradient(180deg, rgba(16, 17, 26, 0.75), rgba(10, 11, 16, 0.55));
}

.dsc-home-quick-tools__label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240, 242, 250, 0.65);
}

.dsc-home-quick-tools__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.dsc-home-quick-tools__link {
  font-size: 13px;
  font-weight: 600;
  color: #ffb3c0;
  text-decoration: none;
}

.dsc-home-quick-tools__link:hover {
  text-decoration: underline;
  color: #ffd0dc;
}

.dsc-home-quick-tools__link--muted {
  color: var(--muted);
  font-weight: 500;
}

.dsc-home-quick-tools__link--muted:hover {
  color: #c8ccda;
}

/* Chapitres planifiés (accueil) */
.dsc-scheduled-intro {
  margin: -4px 0 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.dsc-scheduled-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.dsc-scheduled-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 149, 0, 0.22);
  background:
    linear-gradient(135deg, rgba(194, 15, 47, 0.12), rgba(47, 75, 114, 0.1)),
    linear-gradient(180deg, rgba(16, 17, 26, 0.95), rgba(10, 11, 16, 0.88));
  text-decoration: none;
  color: var(--text);
  text-align: left;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.dsc-scheduled-card:hover {
  border-color: rgba(255, 31, 63, 0.45);
  transform: translateY(-1px);
}

.dsc-scheduled-card--read {
  border-color: rgba(72, 200, 120, 0.35);
}

.dsc-scheduled-card__badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffb86c;
}

.dsc-scheduled-card--read .dsc-scheduled-card__badge {
  color: #7dffb0;
}

.dsc-scheduled-card__title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
}

.dsc-scheduled-card__date {
  font-size: 13px;
  font-weight: 600;
  color: #ffd28a;
}

.dsc-scheduled-card__hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 2px;
}

.dsc-scheduled-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.dsc-scheduled-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  background: rgba(12, 13, 20, 0.65);
}

.dsc-scheduled-btn:hover {
  border-color: rgba(255, 31, 63, 0.45);
  color: #fff;
}

.dsc-scheduled-btn--primary {
  border-color: rgba(194, 15, 47, 0.55);
  background: linear-gradient(180deg, rgba(194, 15, 47, 0.35), rgba(120, 10, 30, 0.5));
  color: #fff;
}

.dsc-scheduled-btn--primary:hover {
  border-color: #ff3b5c;
}

/* Aperçu accueil (catalogue vide + images /image/) */
.dsc-preview-banner {
  margin: 12px 0 0;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #c8ccda;
  background: linear-gradient(90deg, rgba(194, 15, 47, 0.12), rgba(47, 75, 114, 0.15));
  border: 1px solid #34384d;
  border-radius: 10px;
}

.dsc-preview-card .dsc-ch-preview-link {
  color: #ffb3c0;
  text-decoration: none;
}

.dsc-preview-card .dsc-ch-preview-link:hover {
  text-decoration: underline;
}

/* Accueil : relief & titres (Plus Jakarta chargé via functions) */
body.dsc-site .phone {
  border-color: rgba(255, 38, 88, 0.15);
  box-shadow:
    0 26px 88px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 31, 63, 0.07) inset;
}

body.dsc-site .header {
  border-radius: 20px;
}

body.dsc-site .section.page h2,
body.dsc-site .daily-quote,
body.dsc-site .quick-strip .pill {
  font-family: "Plus Jakarta Sans", Inter, Segoe UI, Roboto, Arial, sans-serif;
}

body.dsc-site .account-btn {
  box-shadow: 0 10px 36px rgba(255, 31, 63, 0.2);
}
