/* Portail Enshrouded Fr – styles propres à la page d'accueil.
   Les couleurs et la base viennent de style.css. */

/* ============================================================
   Couleurs de statut
   ============================================================ */
:root {
  --st-online: #5fd28a;
  --st-reset: #f0b43c;
  --st-closed: #e0675b;
  --st-unknown: #7d889c;
  --discord: #5865f2;
}

/* ============================================================
   Héros
   ============================================================ */
.hero {
  border-bottom: none;
  padding-bottom: 36px;
}
.hero h1 {
  font-size: 2.6rem;
  color: var(--accent);
}
.hero h1 .fr {
  color: #eaf5ff;
  text-shadow: 0 0 8px var(--accent-2), 0 0 18px var(--accent-2);
  font-size: 0.8em;
}
.hero p {
  max-width: 560px;
  margin: 0 auto;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }
}

/* ============================================================
   Boutons-liens
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: var(--panel-2);
  transition: filter 0.15s, border-color 0.15s;
}
.btn:hover {
  border-color: var(--accent);
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1b1408;
  box-shadow: 0 0 14px rgba(214, 164, 78, 0.35);
}
.btn.primary:hover {
  filter: brightness(1.08);
}
.btn.ghost {
  background: transparent;
}
.btn.btn-discord {
  background: var(--discord);
  border-color: var(--discord);
  color: #fff;
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.4);
}
.btn svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   Sections
   ============================================================ */
.portal {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 60px;
}
.section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  margin: 0 0 10px;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.section-intro {
  color: var(--muted);
  max-width: 720px;
  margin: 0 0 24px;
}
@media (max-width: 600px) {
  .portal {
    padding: 0 16px;
  }
}

/* ============================================================
   La communauté
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.feature h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.feature a {
  color: var(--accent-2);
}

.discord-cta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(88, 101, 242, 0.5);
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.18), rgba(88, 101, 242, 0.04));
}
.discord-cta h3 {
  margin: 0 0 4px;
}
.discord-cta p {
  margin: 0;
  color: var(--muted);
}

/* ============================================================
   Cartes serveur mises en avant
   ============================================================ */
.featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
@media (max-width: 400px) {
  .featured {
    grid-template-columns: minmax(0, 1fr);
  }
}
.srv-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-margin-top: 70px;
}
.srv-card:first-child {
  border-color: rgba(214, 164, 78, 0.55);
  box-shadow: 0 0 0 1px rgba(214, 164, 78, 0.15), 0 10px 30px rgba(0, 0, 0, 0.35);
}
.srv-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.srv-head h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}
.srv-tagline {
  margin: 2px 0 0;
  color: var(--accent);
  font-size: 0.9rem;
}
.srv-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Pastille de statut */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid currentColor;
  color: var(--st-unknown);
}
.status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill.small {
  font-size: 0.75rem;
  padding: 3px 9px;
}
.st-online {
  color: var(--st-online);
}
.st-online .dot {
  animation: pulse 2s infinite;
}
.st-reset {
  color: var(--st-reset);
}
.st-reset .dot {
  animation: pulse 0.8s infinite;
}
.st-closed {
  color: var(--st-closed);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; }
  50% { box-shadow: 0 0 0 4px transparent; opacity: 0.6; }
}

/* Jauge de reset */
.gauge-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.gauge-label {
  color: var(--muted);
  font-size: 0.88rem;
}
.gauge-time {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.gauge-track {
  height: 14px;
  border-radius: 999px;
  background: #05070a;
  border: 1px solid var(--border);
  overflow: hidden;
}
.gauge-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #b87a2c, var(--accent) 60%, #f3d08a);
  box-shadow: 0 0 12px rgba(214, 164, 78, 0.55);
  transition: width 1s linear;
}
.gauge.low .gauge-fill {
  background: linear-gradient(90deg, #b8442c, var(--ember));
  box-shadow: 0 0 12px rgba(240, 138, 60, 0.6);
}
.gauge.low .gauge-time {
  color: var(--ember);
}
.gauge.resetting .gauge-fill {
  background: repeating-linear-gradient(45deg, rgba(240, 180, 60, 0.85) 0 12px, rgba(240, 180, 60, 0.45) 12px 24px);
  background-size: 34px 34px;
  animation: stripes 1s linear infinite;
  box-shadow: none;
}
.gauge.resetting .gauge-time {
  color: var(--st-reset);
}
@keyframes stripes {
  to { background-position: 34px 0; }
}

/* Statistiques */
.srv-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.srv-stats div {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.srv-stats dt {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.srv-stats dd {
  margin: 2px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 400px) {
  .srv-stats dd {
    font-size: 1rem;
  }
}

/* Copie de l'adresse */
.ip-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label action" "value action";
  align-items: center;
  gap: 2px 14px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed var(--accent);
  background: rgba(214, 164, 78, 0.07);
  margin-top: auto;
}
.ip-copy:hover {
  background: rgba(214, 164, 78, 0.14);
}
.ip-label {
  grid-area: label;
  font-size: 0.75rem;
  color: var(--muted);
}
.ip-value {
  grid-area: value;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
}
.ip-action {
  grid-area: action;
  background: var(--accent);
  color: #1b1408;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
}
.ip-copy.copied {
  border-style: solid;
  border-color: var(--st-online);
}
.ip-copy.copied .ip-action {
  background: var(--st-online);
  color: #06210f;
}
.ip-copy.small {
  grid-template-areas: "value action";
  padding: 8px 10px;
}
.ip-copy.small .ip-value {
  font-size: 0.95rem;
}
.ip-copy.small .ip-action {
  padding: 6px 10px;
  font-size: 0.85rem;
}
.ip-missing {
  margin: auto 0 0;
  color: var(--muted);
  font-style: italic;
  font-size: 0.9rem;
}

/* ============================================================
   Serveurs Minestrator
   ============================================================ */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.mini-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mini-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.mini-head h3 {
  margin: 0;
  font-size: 1.05rem;
}
.mini-players {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.mini-players span {
  color: var(--text);
  font-weight: 700;
}

/* ============================================================
   Accessibilité
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .gauge-fill,
  .status-pill .dot,
  .gauge.resetting .gauge-fill {
    animation: none;
    transition: none;
  }
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

@media (max-width: 420px) {
  .srv-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .srv-stats div:first-child {
    grid-column: 1 / -1;
  }
  .ip-value {
    font-size: 0.98rem;
    white-space: nowrap;
    overflow-wrap: normal;
  }
  .ip-action {
    padding: 8px 10px;
  }
  .srv-card {
    padding: 16px;
  }
}

/* ============================================================
   Tuile du configurateur
   ============================================================ */
.tool-tile {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(140, 200, 255, 0.35);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(140, 200, 255, 0.16), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(214, 164, 78, 0.16), transparent 60%),
    var(--panel);
  box-shadow: 0 0 0 1px rgba(140, 200, 255, 0.08), 0 14px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.tool-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.06) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.8s;
  pointer-events: none;
}
.tool-tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent-2);
  box-shadow: 0 0 24px rgba(140, 200, 255, 0.25), 0 18px 44px rgba(0, 0, 0, 0.5);
}
.tool-tile:hover::after {
  transform: translateX(100%);
}
.tool-kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 6px;
}
.tool-text h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  color: var(--accent);
}
.tool-text p {
  margin: 0 0 12px;
  color: var(--muted);
}
.tool-text code {
  color: var(--accent-2);
}
.tool-points {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 6px;
}
.tool-points li::before {
  content: "◆";
  color: var(--accent);
  font-size: 0.7em;
  margin-right: 8px;
  vertical-align: 2px;
}
.tool-visual {
  background: #05070a;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: grid;
  gap: 12px;
}
.tv-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}
.tv-row b {
  color: var(--text);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.tv-slider {
  position: relative;
  height: 6px;
  border-radius: 6px;
  background: var(--border);
}
.tv-slider i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v);
  border-radius: 6px;
  background: var(--accent);
  animation: tv 4s ease-in-out infinite alternate;
}
.tv-slider i::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(214, 164, 78, 0.7);
}
.tv-row:nth-child(2) .tv-slider i { animation-delay: -1.3s; }
.tv-row:nth-child(3) .tv-slider i { animation-delay: -2.6s; }
@keyframes tv {
  from { width: calc(var(--v) - 18%); }
  to { width: var(--v); }
}
.tv-json {
  margin: 4px 0 0;
  padding: 12px;
  border-radius: 8px;
  background: var(--panel);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.78rem;
  color: #cfe4ff;
  white-space: pre;
  overflow: hidden;
}
.tv-json .k { color: var(--accent-2); }
.tv-json .n { color: var(--accent); }
@media (max-width: 800px) {
  .tool-tile {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
  }
  .tool-text h2 {
    font-size: 1.6rem;
  }
}
@media (max-width: 420px) {
  .tv-row {
    grid-template-columns: 90px minmax(0, 1fr) 40px;
  }
}

/* ============================================================
   Accès réservé Discord, badge hébergeur
   ============================================================ */
.srv-stats.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.srv-stats.two div:first-child {
  grid-column: auto;
}
.discord-access {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed rgba(88, 101, 242, 0.7);
  background: rgba(88, 101, 242, 0.1);
}
.discord-access p {
  margin: 0;
  flex: 1 1 200px;
  font-size: 0.9rem;
}
.btn.small {
  padding: 8px 14px;
  font-size: 0.9rem;
}
.st-members {
  color: #a3acff;
}
.host-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
}
.host-badge img {
  height: 16px;
  width: auto;
  opacity: 0.85;
}
.host-badge:hover img {
  opacity: 1;
}
.ms-wordmark {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
}
.ms-wordmark b {
  color: #3ecf8e;
}

/* ============================================================
   Section Minestrator et code promo
   ============================================================ */
.ms-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-bottom: 10px;
}
.ms-head .section-title {
  margin: 0;
}
.ms-logo {
  height: 28px;
  width: auto;
}
.ms-head .ms-wordmark {
  font-size: 1.4rem;
}
.section-intro a {
  color: var(--accent-2);
}
.ms-promo {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid rgba(62, 207, 142, 0.45);
  background: linear-gradient(135deg, rgba(62, 207, 142, 0.14), rgba(62, 207, 142, 0.03));
}
.ms-promo-text {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 320px;
}
.ms-promo h3 {
  margin: 0 0 4px;
}
.ms-promo p {
  margin: 0;
  color: var(--muted);
}
.ms-discount {
  flex: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #3ecf8e;
  text-shadow: 0 0 16px rgba(62, 207, 142, 0.45);
}
.ms-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.code-copy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  border-radius: 10px;
  border: 1px dashed #3ecf8e;
  background: rgba(62, 207, 142, 0.08);
}
.code-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.code-value {
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.code-copy .ip-action {
  padding: 6px 10px;
  font-size: 0.85rem;
}
.code-copy.copied .ip-action {
  background: var(--st-online);
  color: #06210f;
}
@media (max-width: 420px) {
  .ms-promo-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .ms-promo-actions,
  .ms-promo-actions > * {
    width: 100%;
    justify-content: space-between;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tv-slider i { animation: none; }
  .tool-tile, .tool-tile::after { transition: none; }
}
@media (max-width: 420px) {
  .ms-promo-actions > .btn {
    justify-content: center;
  }
}

/* Tuiles des serveurs de jeu : plus grandes */
.mini-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.mini-card {
  padding: 22px;
  gap: 14px;
  min-height: 200px;
}
.mini-head h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}
.mini-card .srv-desc {
  font-size: 0.95rem;
}
.mini-players {
  font-size: 0.95rem;
}
.mini-players span {
  font-size: 1.15rem;
}
.mini-card .ip-copy.small,
.mini-card .ip-missing {
  margin-top: auto;
}
@media (max-width: 400px) {
  .mini-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ============================================================
   Bandeau pleine largeur (configurateur)
   ============================================================ */
.band {
  position: relative;
  margin: 12px 0;
  padding: 64px 20px;
  scroll-margin-top: 50px;
  overflow: hidden;
  border-top: 1px solid rgba(140, 200, 255, 0.35);
  border-bottom: 1px solid rgba(214, 164, 78, 0.35);
  background:
    linear-gradient(90deg, rgba(7, 9, 12, 0.88) 0%, rgba(7, 9, 12, 0.5) 55%, rgba(7, 9, 12, 0.8) 100%),
    radial-gradient(60% 120% at 85% 50%, rgba(140, 200, 255, 0.22), transparent 70%),
    radial-gradient(50% 120% at 10% 50%, rgba(214, 164, 78, 0.18), transparent 70%),
    url("../img/banniere-fond.webp") center bottom / cover no-repeat;
  box-shadow: 0 -12px 40px rgba(140, 200, 255, 0.06), 0 12px 40px rgba(214, 164, 78, 0.06);
}
/* Lignes lumineuses en haut et en bas */
.band::before,
.band::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
}
.band::before {
  top: 0;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  box-shadow: 0 0 14px var(--accent-2);
}
.band::after {
  bottom: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 14px var(--accent);
}
.band-inner {
  max-width: 1100px;
  margin: 0 auto;
}
/* Dans le bandeau, la tuile se fond dans le fond */
.band .tool-tile {
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}
.band .tool-tile:hover {
  transform: none;
  box-shadow: none;
}
.band .tool-tile:hover .tool-visual {
  border-color: var(--accent-2);
  box-shadow: 0 0 28px rgba(140, 200, 255, 0.3);
}
.band .tool-tile:hover .btn.primary {
  filter: brightness(1.1);
}
.band .tool-text h2 {
  font-size: 2.4rem;
}
.band .tool-visual {
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(4px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.band + .portal .section:first-child {
  border-top: none;
}
@media (max-width: 800px) {
  .band {
    padding: 44px 16px;
    background-attachment: scroll, scroll, scroll, scroll;
  }
  .band .tool-text h2 {
    font-size: 1.8rem;
  }
}
/* iOS ne gère pas bien background-attachment: fixed */
@supports (-webkit-touch-callout: none) {
  .band {
    background-attachment: scroll, scroll, scroll, scroll;
  }
}
.band {
  margin-bottom: 0;
}

/* ============================================================
   Astérisque et note d'hébergement
   ============================================================ */
.footnote-ref {
  color: var(--accent-2);
  text-decoration: none;
  font-size: 0.7em;
  vertical-align: super;
  margin-left: 2px;
}
.footnote {
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.footnote > span {
  color: var(--accent-2);
  font-weight: 700;
}
.footnote a {
  color: var(--accent-2);
}

/* ============================================================
   Mascotte Minestrator à côté du bandeau promo
   ============================================================ */
.ms-promo {
  position: relative;
}
.ms-mascot {
  display: none;
}
.ms-promo.has-mascot {
  padding-left: 150px;
  margin-top: 48px;
}
.ms-promo.has-mascot .ms-mascot {
  display: block;
  position: absolute;
  left: 8px;
  bottom: 0;
  height: 175px;
  width: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 14px rgba(62, 207, 142, 0.25));
  animation: mascot-float 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes mascot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (max-width: 600px) {
  .ms-promo.has-mascot {
    padding-left: 22px;
    padding-top: 120px;
    margin-top: 70px;
  }
  .ms-promo.has-mascot .ms-mascot {
    left: 50%;
    bottom: auto;
    top: -60px;
    height: 170px;
    margin-left: -60px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ms-mascot { animation: none !important; }
}
#serveurs .section-title {
  margin-bottom: 20px;
}

/* ============================================================
   Rythme de lecture : une idée par ligne, en alternance
   ============================================================ */
.row,
.srv-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.row.reverse > :first-child,
.srv-row.reverse > :first-child {
  order: 2;
}
.featured {
  display: flex;
  flex-direction: column;
  gap: 72px;
  grid-template-columns: none;
}
.row-kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.row-text p,
.srv-story p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0 0 12px;
  max-width: 52ch;
}
.row-text .btn {
  margin-top: 6px;
}
.srv-story h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  color: var(--text);
}
.row-points {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
}
.row-points li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.row-points li::before {
  content: "◆";
  color: var(--accent);
  font-size: 0.7em;
}
.row-side.features {
  grid-template-columns: minmax(0, 1fr);
}
/* La section communauté et le CTA Discord respirent un peu plus */
#communaute .discord-cta {
  margin-top: 48px;
}
/* Serveurs de jeu : cartes empilées à côté du texte */
#minestrator-section .mini-grid {
  grid-template-columns: minmax(0, 1fr);
}
#minestrator-section .ms-head {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  gap: 10px;
}
#minestrator-section .ms-logo {
  height: 22px;
}
#minestrator-section .ms-head .ms-wordmark {
  font-size: 1.05rem;
}
.section {
  padding: 64px 0;
}
@media (max-width: 860px) {
  .row,
  .srv-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  /* Sur mobile : le texte d'abord, puis la carte */
  .srv-row > .srv-card,
  .srv-row.reverse > .srv-card {
    order: 2;
  }
  .row.reverse > :first-child {
    order: 2;
  }
  .featured {
    gap: 56px;
  }
  .section {
    padding: 44px 0;
  }
  .srv-story h3 {
    font-size: 1.45rem;
  }
}

/* Apparition au défilement */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
/* Une seule carte mise en avant en or : la première */
.srv-row .srv-card:first-child {
  border-color: var(--border);
  box-shadow: none;
}
.srv-row:first-child .srv-card {
  border-color: rgba(214, 164, 78, 0.55);
  box-shadow: 0 0 0 1px rgba(214, 164, 78, 0.15), 0 10px 30px rgba(0, 0, 0, 0.35);
}
@media (max-width: 860px) {
  .row > .mini-grid {
    order: 2;
  }
}

/* ============================================================
   Tuiles « magiques » des serveurs de jeu
   ============================================================ */
#minestrator-section .mini-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@property --gt-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.game-tile {
  --c1: #7d889c;
  --c2: #2a3654;
  --glow: rgba(125, 136, 156, 0.15);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 240px;
  padding: 26px 18px 22px;
  border-radius: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  background:
    radial-gradient(80% 60% at 50% 38%, var(--glow), transparent 70%),
    linear-gradient(180deg, #0d1219, #07090c);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s, box-shadow 0.25s;
}
/* Bordure runique animée */
.game-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--gt-angle), var(--c2), var(--c1), var(--c2) 40%, var(--c1) 60%, var(--c2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: gt-spin 6s linear infinite;
  z-index: -1;
}
.game-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), 0 0 26px var(--glow);
}
@keyframes gt-spin {
  to { --gt-angle: 360deg; }
}

/* Flamme */
.gt-flame {
  position: absolute;
  top: 26px;
  left: 50%;
  width: 56px;
  height: 78px;
  margin-left: -28px;
  filter: drop-shadow(0 0 14px var(--c1));
}
.gt-flame svg {
  width: 100%;
  height: 100%;
  transform-origin: 50% 100%;
}
.gt-flame .f-outer { fill: var(--c1); opacity: 0.9; }
.gt-flame .f-inner { fill: #fff6d8; opacity: 0.85; }

.game-tile h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}
.gt-state {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c1);
  text-shadow: 0 0 10px var(--glow);
}
.gt-players {
  margin: 10px 0 0;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted);
  font-size: 0.85rem;
}
.gt-players b {
  color: var(--text);
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

/* Braises qui montent */
.gt-embers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.6s;
}
.gt-embers i {
  position: absolute;
  bottom: -6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffcf7a;
  box-shadow: 0 0 8px 2px rgba(240, 138, 60, 0.8);
  animation: gt-ember 4.5s linear infinite;
}
.gt-embers i:nth-child(1) { left: 12%; animation-delay: 0s; }
.gt-embers i:nth-child(2) { left: 26%; animation-delay: 1.6s; animation-duration: 5.2s; }
.gt-embers i:nth-child(3) { left: 38%; animation-delay: 3.1s; }
.gt-embers i:nth-child(4) { left: 52%; animation-delay: 0.8s; animation-duration: 3.8s; }
.gt-embers i:nth-child(5) { left: 63%; animation-delay: 2.4s; }
.gt-embers i:nth-child(6) { left: 74%; animation-delay: 4s; animation-duration: 5.6s; }
.gt-embers i:nth-child(7) { left: 85%; animation-delay: 1.2s; }
.gt-embers i:nth-child(8) { left: 93%; animation-delay: 3.6s; animation-duration: 4.2s; }
@keyframes gt-ember {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(8px, -130px) scale(0.8); }
  100% { transform: translate(-6px, -260px) scale(0.2); opacity: 0; }
}

/* Brume du Linceul */
.gt-fog {
  position: absolute;
  inset: auto -40% -30% -40%;
  height: 70%;
  z-index: -1;
  opacity: 0;
  background:
    radial-gradient(40% 50% at 30% 60%, rgba(140, 170, 255, 0.28), transparent 70%),
    radial-gradient(35% 45% at 70% 50%, rgba(160, 110, 255, 0.22), transparent 70%);
  filter: blur(6px);
  animation: gt-fog 9s ease-in-out infinite alternate;
  transition: opacity 0.6s;
}
@keyframes gt-fog {
  from { transform: translateX(-12%); }
  to { transform: translateX(12%); }
}

/* --- États --- */
/* Flamme allumée */
.game-tile.st-online {
  --c1: #ffb347;
  --c2: #5a2e10;
  --glow: rgba(255, 150, 60, 0.28);
}
.game-tile.st-online .gt-embers { opacity: 1; }
.game-tile.st-online .gt-flame svg { animation: gt-flicker 1.6s ease-in-out infinite; }
.game-tile.st-online .gt-players b { color: #ffd38a; }
@keyframes gt-flicker {
  0%, 100% { transform: scale(1, 1) skewX(0); }
  25% { transform: scale(0.96, 1.05) skewX(-2deg); }
  50% { transform: scale(1.03, 0.97) skewX(1.5deg); }
  75% { transform: scale(0.98, 1.04) skewX(-1deg); }
}
/* Flamme éteinte : braise grise et fumée */
.game-tile.st-closed {
  --c1: #6e7686;
  --c2: #1c222c;
  --glow: rgba(110, 118, 134, 0.12);
}
.game-tile.st-closed .gt-flame { filter: none; opacity: 0.45; }
.game-tile.st-closed .gt-flame .f-inner { opacity: 0; }
.game-tile.st-closed .gt-fog {
  opacity: 0.6;
  filter: blur(8px) grayscale(1);
}
.game-tile.st-closed::before { animation-duration: 18s; }
/* Ravivage (reset) */
.game-tile.st-reset {
  --c1: #f0b43c;
  --c2: #3a2a10;
  --glow: rgba(240, 180, 60, 0.25);
}
.game-tile.st-reset .gt-flame svg { animation: gt-flicker 0.5s ease-in-out infinite; }
/* Inconnu : perdu dans le Linceul */
.game-tile.st-unknown,
.game-tile.st-members {
  --c1: #9fb4ff;
  --c2: #1d2240;
  --glow: rgba(140, 160, 255, 0.18);
}
.game-tile.st-unknown .gt-fog,
.game-tile.st-members .gt-fog { opacity: 1; }
.game-tile.st-unknown .gt-flame,
.game-tile.st-members .gt-flame { opacity: 0.55; }
.game-tile.st-unknown .gt-flame .f-inner,
.game-tile.st-members .gt-flame .f-inner { fill: #dfe6ff; opacity: 0.5; }
.game-tile.st-unknown::before,
.game-tile.st-members::before { animation-duration: 12s; }

@media (max-width: 420px) {
  #minestrator-section .mini-grid {
    gap: 12px;
  }
  .game-tile {
    min-height: 210px;
    padding: 20px 10px 16px;
  }
  .game-tile h3 { font-size: 1.1rem; }
  .gt-state { font-size: 0.68rem; letter-spacing: 0.08em; }
}
@media (prefers-reduced-motion: reduce) {
  .game-tile::before,
  .gt-flame svg,
  .gt-embers i,
  .gt-fog { animation: none !important; }
}
.game-tile,
.game-tile[class*="st-"] {
  color: var(--text);
}
@media (max-width: 420px) {
  .game-tile {
    min-height: 228px;
  }
  .gt-flame {
    top: 20px;
    width: 46px;
    height: 64px;
    margin-left: -23px;
  }
}

/* Bannière en haut d'une carte serveur */
.srv-card.has-cover {
  padding-top: 0;
  overflow: hidden;
}
.srv-cover {
  position: relative;
  margin: 0 -20px 4px;
  aspect-ratio: 2.1 / 1;
  overflow: hidden;
}
.srv-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 6s ease;
}
.srv-card:hover .srv-cover img {
  transform: scale(1.08);
}
.srv-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, var(--panel) 100%);
}
@media (max-width: 420px) {
  .srv-cover {
    margin: 0 -16px 4px;
  }
}
@media (min-width: 601px) {
  .ms-promo.has-mascot {
    padding-left: 190px;
    margin-top: 60px;
  }
  .ms-promo.has-mascot .ms-mascot {
    height: 200px;
    left: 4px;
  }
}
/* La mascotte ne dépasse jamais de plus de 40 px au-dessus du bandeau,
   quelle que soit la largeur d'écran : la marge au-dessus lui laisse la place. */
@media (min-width: 601px) {
  .ms-promo.has-mascot {
    min-height: 160px;
    margin-top: 64px;
  }
}
@media (max-width: 600px) {
  .ms-promo.has-mascot {
    margin-top: 88px;
  }
}

/* Traits de séparation des sections : sur toute la largeur de la page */
html,
body {
  overflow-x: clip;
}
.section {
  position: relative;
  border-top: none;
}
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  height: 1px;
  background: linear-gradient(90deg, rgba(140, 200, 255, 0.05), rgba(140, 200, 255, 0.28) 50%, rgba(214, 164, 78, 0.05));
  pointer-events: none;
}
.band + .portal .section:first-child::before {
  display: none;
}
.ms-promo-logo {
  display: block;
  height: 30px;
  width: auto;
  margin-bottom: 8px;
}
.ms-promo .ms-wordmark {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 6px;
}
