.ban-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6 factions */
  gap: 20px;
  padding: 20px;
}

.faction-column {
  text-align: center;
}

.faction-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 18px;
}

.character {
  position: relative;
  margin-bottom: 12px;
}

.character img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
}

/* Icône ban superposé */
.banned::after {
  content: "⛔";
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 24px;
  color: red;
  background: white;
  border-radius: 50%;
  padding: 4px;
  border: 2px solid red;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; color: #e0e0e0; background: #121212; }

/* NAV */
header { width: 100%; padding: 24px 60px; position: fixed; top: 0; left: 0; background: rgba(18,18,18,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid #333; }
nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.6rem; font-weight: bold; color: #bb86fc; }
.nav-links { list-style: none; display: flex; gap: 32px; }
.nav-links a { text-decoration: none; color: #e0e0e0; font-weight: 500; }
.btn-primary { background: #bb86fc; border: none; padding: 12px 26px; color: #121212; border-radius: 8px; cursor: pointer; font-size: 1rem; }

/* HERO */
.ban-list { display: flex; justify-content: space-between; align-items: center; padding: 160px 60px 100px; background: linear-gradient(135deg, #1f1f1f, #2c2c2c); color: #e0e0e0; }
.hero-content { max-width: 80%; }
.hero-content h1 { font-size: 3rem; margin-bottom: 20px; line-height: 1.2; }
.hero-content p { font-size: 1.2rem; opacity: 0.85; margin-bottom: 30px; }
.hero-image img {width: 80%;max-height: 50%; padding-left: 15%; }

/* FEATURES */
.features { padding: 100px 60px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.feature { padding: 30px; border-radius: 16px; border: 1px solid #333; background: #1a1a1a; }
.feature h2 { margin-bottom: 10px; color: #bb86fc; font-size: 1.4rem; }
.feature p { opacity: 0.85; }

/* ABOUT */
.about { padding: 100px 60px; background: #181818; }
.about h2 { font-size: 2.2rem; margin-bottom: 20px; color: #bb86fc; }
.about p { max-width: 650px; font-size: 1.1rem; opacity: 0.85; }

/* CONTACT */
.contact { padding: 100px 60px; }
.contact h2 { font-size: 2rem; margin-bottom: 20px; color: #bb86fc; }
.contact-form { display: flex; flex-direction: column; gap: 20px; max-width: 450px; }
.contact-form input,
.contact-form textarea { padding: 14px; border-radius: 8px; border: 1px solid #333; font-size: 1rem; background: #1a1a1a; color: #e0e0e0; }

footer { text-align: center; padding: 40px 0; background: #111; color: #e0e0e0; margin-top: 60px; }

/* LOGO PLACEHOLDER TOP RIGHT */
/* Uses local image at `res/hofr.jpg` (relative to this file). Falls back to color if missing. */
.logo-placeholder {
    width: 40px;
    height: 40px;
    background-color: #86fce2;
    background-image: url('res/hofr.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    display: inline-block;
    margin-left: 20px;
    margin-right: 20px;
}
/* Assure-toi que l'overlay se positionne bien */
.character {
    position: relative; /* déjà ok */
    display: inline-block;
    margin-bottom: 12px;
    width: 64px; /* fixe pour l'image, mais tooltip sera libre */
}

.character .tooltip {
    position: absolute;
    bottom: 120%; /* au-dessus de l'image */
    left: 50%;
    transform: translateX(-50%);
    display: block; /* important pour ne pas limiter la largeur */
    max-width: 220px; /* largeur max de la tooltip */
    min-width: 120px; /* largeur min si tu veux */
    white-space: normal; /* retour à la ligne autorisé */
    word-wrap: break-word; /* texte long à couper */
    padding: 6px 10px;
    background-color: rgba(30,30,30,0.95);
    color: #eee;
    font-size: 0.85rem;
    text-align: center;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
    box-shadow: 0 0 8px rgba(0,0,0,0.6);
}

/* Icône d'interdiction pour bannis */
.character.banned::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.0); /* aucune couleur de fond */
    mask-image: url("res/icons/forbidden.png");
    mask-size: 70%;
    mask-position: center;
    mask-repeat: no-repeat;

    /* rendu blanc/rouge selon besoin */
    background-color: red; /* couleur du symbole */
    pointer-events: none;
}
/* Tooltip */
.character .tooltip {
  position: absolute;
  bottom: 120%;           /* au-dessus de l'icône */
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(30,30,30,0.95);
  color: #eee;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  text-align: center;

  max-width: 220px;       /* largeur maximale confortable */
  white-space: normal;    /* permet le retour à la ligne */
  word-wrap: break-word;  /* coupe les mots trop longs */
  
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
  box-shadow: 0 0 8px rgba(0,0,0,0.6);
}

/* Style normal des icônes */
.character img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #888;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


/* Hover */
.character img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(255,255,255,0.4);
}

/* Animation bannis */
@keyframes banned-pulse {
    0% { transform: scale(1); box-shadow: 0 0 6px red; }
    50% { transform: scale(1.05); box-shadow: 0 0 12px red; }
    100% { transform: scale(1); box-shadow: 0 0 6px red; }
}

.character.banned img {
    border-color: red;
    animation: banned-pulse 1.2s infinite ease-in-out;
}

.faction-column {
  text-align: center;
  padding: 0 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.1); /* fine et subtile */
}

.faction-column:last-child {
  border-right: none; /* pas de bordure sur la dernière */
}


/* Petit triangle sous la tooltip */
.character .tooltip::after {
  content: "";
  position: absolute;
  top: 100%; /* juste en dessous de la tooltip */
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(30,30,30,0.95) transparent transparent transparent;
}

/* Affiche la tooltip au hover */
.character:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}


/* Accordéon général */
.accordion {
  margin-bottom: 20px;
  border-radius: 12px;
  background: #1e1e1e;
  border: 1px solid #333;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.accordion-btn {
  width: 100%;
  padding: 14px 20px;
  text-align: left;
  font-weight: bold;
  font-size: 1.05rem;
  background: #2a2a2a;
  color: #e0e0e0;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.accordion-btn:hover {
  background: #3a3a3a;
}

.accordion-content {
  display: none;
  padding: 16px 20px;
  background: #1a1a1a;
  border-top: 1px solid #333;
  animation: fadeIn 0.3s ease-in-out;
}

/* Tables patch notes */
.patch-tables {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.ban-table {
  border-collapse: separate;
  border-spacing: 8px;
  background: #222;
  border-radius: 12px;
  padding: 10px;
  min-width: 120px;
  text-align: center;
}

.ban-table caption {
  caption-side: top;
  font-weight: bold;
  color: #bb86fc;
  margin-bottom: 8px;
  font-size: 1rem;
}

.ban-table td {
  padding: 4px;
}

/* Icônes de bannis/débannis */
.ban-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #888;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ban-icon:hover {
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(187, 134, 252, 0.8);
}

/* Animation fade-in */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
