/*
Theme Name: Bankai Discord Gradient – Merged & Full Dark
Theme URI: https://www.bankaimods.com/
Author: soundsbylaitue
Description: Polished v2 – everything in #000000, with original typography, animations, and gradient titles préservés.
Version: 1.3
License: GPL2
Text Domain: bankai-discord
*/

/* =====================================================
   1. DESIGN TOKENS (MODIFIÉS POUR UN FOND #000000)
   ===================================================== */
:root {
  /* ————— Couleurs de fond (gris très foncé) ————— */
  --clr-bg-1: #000000;       /* Fond principal */
  --clr-bg-2: #050505;       /* Conteneurs & cartes */
  --clr-bg-3: #272727;       /* Survol / secondaire */
  --clr-bg-4: #272727;       /* (peut être identique à clr-bg-3) */

  /* ————— Surfaces (cartes, conteneurs) ————— */
  --clr-surface: #050505;       /* identique à clr-bg-2 */
  --clr-surface-hover: #272727; /* couleur au survol */

  /* ————— Bordures ————— */
  --clr-border: #272727;

  /* ————— Accent (liens, boutons) ————— */
  --clr-accent: #7289DA;

  /* ————— Textes ————— */
  --clr-text: #E0E0E0;       /* gris clair pour le texte principal */
  --clr-text-light: #FFFFFF; /* blanc pour éléments secondaires */
  --clr-heading: #FFFFFF;    /* couleur au cas où le gradient ne charge pas */

  /* ————— Rayons & espacements ————— */
  --radius-lg: 16px;
  --radius-sm: 6px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
}

/* =====================================================
   2. GLOBAL BACKGROUND (SUPPRESSION DU DÉGRADÉ ORIGINAL)
   ===================================================== */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  background-color: var(--clr-bg-1); /* Noir pur */
  color: var(--clr-text);
  line-height: 1.6;
  font-size: 15px;
}

/* Le gradientBG original est désactivé car maintenant tout est noir */
/*
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}
*/

/* Scrollbar (WebKit) */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--clr-bg-3);
  border-radius: var(--radius-sm);
}

/* ========== 3. Layout Containers ========== */
.container,
.content-card {
  width: min(95%, 1100px);
  background: var(--clr-surface);
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  margin-inline: auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section {
  margin-block: var(--space-4);
  animation: fadeIn 0.8s ease both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========== 4. Typography ========== */
h1.title, h2.title, h1, h2, h3 {
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--clr-heading);
  margin-top: 0;
}
h1.title, h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
h2.title, h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
h3 { font-size: 1.4rem; }

a { color: var(--clr-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ========== 5. Forms & Buttons ========== */
input,
select,
textarea {
  width: 100%;
  background: #23272A;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  color: var(--clr-text);
  transition: border 0.25s, box-shadow 0.25s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--clr-accent);
  box-shadow: 0 0 8px rgba(114, 137, 218, 0.6);
  outline: none;
}

button,
button[type="submit"],
.wp-block-button__link {
  background: var(--clr-accent);
  border: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  color: var(--clr-text-light);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  font-weight: 600;
}
button:hover,
button[type="submit"]:hover,
.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
button:active { transform: scale(0.97); }

/* ========== 6. Tables ========== */
table {
  width: 100%;
  border-collapse: collapse;
  background: #23272A;
  margin-top: var(--space-3);
  font-size: 0.95rem;
}
th, td {
  font-size:0.9rem;
  border: 1px solid var(--clr-border);
  padding: var(--space-2) var(--space-3);
  text-align: center;
  transition: background 0.3s, transform 0.3s;
}
th {
  background: #2C2F33;
}
tr:hover td {
  background: var(--clr-surface-hover);
  transform: translateX(4px);
}
tr.selected td {
  background: var(--clr-accent);
}

/* ========== 7. Navigation & Header ========== */
.site-header {
  background: transparent;
  padding-block: var(--space-3);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
.primary-nav .menu {
  display: flex;
  justify-content: space-evenly; /* distribue chaque item à parts égales */
  align-items: center;
  width: 100%;                   /* pour prendre toute la largeur possible */
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0;
}
.primary-nav .menu a {
  color: var(--clr-text);
  font-weight: 500;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}
.primary-nav .menu a:hover {
  background: rgba(255,255,255,0.08);
}

/* ========== 8. Footer ========== */
.site-footer {
  margin-top: var(--space-4);
  text-align: center;
  background: var(--clr-surface);
  color: var(--clr-text-light);
  padding: var(--space-3);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ===== 9. Gutenberg Tweaks (embed responsive 16:9 corrigé) ===== */

/* 1) On redonne à .wp-block-embed sa largeur normale (100 %) */
.wp-block-embed {
  max-width: 100%;      /* garde la vidéo responsive */
  width: 100%;
  margin: 0 auto;       /* centre éventuellement le bloc si besoin */
}

/* 2) Le vrai conteneur 16:9, c’est .wp-block-embed__wrapper */
.wp-block-embed .wp-block-embed__wrapper {
  position: relative;
  width: 100%; 
  padding-top: 56.25%;  /* 9/16 = 0.5625 → ratio 16:9 */
  overflow: hidden;     /* pour ne pas dépasser les bords arrondis (si border-radius) */
  border-radius: var(--radius-sm);
}

/* 3) On place l’iframe à l’intérieur, en absolu 100×100 % du wrapper */
.wp-block-embed .wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;         /* optionnel, retire la bordure par défaut */
}

/* 4) Espace vertical entre le titre et la vidéo (ajuste si besoin) */
h1.title {
  margin-bottom: 1rem;
}


/* ===================== POST GRID MODIFIÉ - IMAGES 280x280 ===================== */

/* 1. Modifier la grille pour accommoder les images plus grandes */
.post-grid {
  display: grid;
  /* Colonnes ajustées pour les images 280px + padding */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-3); /* Augmenter l'espace entre les items */
  margin-top: var(--space-2);
}

/* 2. Article individuel : ajuster les dimensions */
.post-grid article {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--clr-surface);
  border-radius: var(--radius-sm);
  padding: var(--space-3); /* Plus de padding pour accommoder l'image plus grande */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.18s, box-shadow 0.18s;
}

/* 3. MODIFICATION PRINCIPALE : Forcer l'icône à 280×280 px */
.post-grid article .post-icon {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 12px; /* Garder les coins arrondis */
  margin-bottom: var(--space-2);
}

/* 4. Titre ajusté pour la nouvelle taille */
.post-grid article h2.title {
  font-size: 1.1rem; /* Légèrement plus grand pour équilibrer */
  line-height: 1.2;
  margin: 0;
  color: var(--clr-text-light);
}

/* 5. Responsive : ajustements pour écrans moyens */
@media (max-width: 768px) {
  .post-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .post-grid article .post-icon {
    width: 220px;
    height: 220px;
  }
}

/* 6. Responsive : ajustements pour petits écrans */
@media (max-width: 640px) {
  .post-grid {
    grid-template-columns: 1fr; /* Une seule colonne sur mobile */
  }
  .post-grid article .post-icon {
    width: 200px;
    height: 200px;
  }
  .post-grid article h2.title {
    font-size: 1rem;
  }
}

/* 7. Très petit écran : encore plus compact */
@media (max-width: 480px) {
  .post-grid article .post-icon {
    width: 160px;
    height: 160px;
  }
  .post-grid article h2.title {
    font-size: 0.9rem;
  }
}
/* ===================== FIN DU POST GRID MODIFIÉ ===================== */

/* subtle reveal animation (inchangé) */
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.content-card, .section, .post-grid article {
  animation: slideUpFade 0.7s ease both;
}

/* ===== Search Bar ===== */
.search-form {
  position: relative;
  width: 100%;
  max-width: 320px;
}
.search-form input[type="search"] {
  background: #23272A;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 0.6rem 2.8rem 0.6rem 1rem;
  width: 100%;
  color: var(--clr-text);
}
.search-form input[type="search"]:focus {
  border-color: var(--clr-accent);
}
.search-form .search-submit {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--clr-text);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
}
.search-form .search-submit:hover {
  color: var(--clr-accent);
}

.search-form { margin-bottom: var(--space-3); }

/* ===== Categories Menu ===== */
.categories-nav {
  margin-top: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
}
.categories-nav a {
  background: #23272A;
  padding: .4rem .8rem;
  border-radius: var(--radius-sm);
  color: var(--clr-text);
  font-size: 0.9rem;
  transition: background 0.2s;
}
.categories-nav a:hover {
  background: var(--clr-accent);
  color: #fff;
}

/* Bullet removal */
.categories-nav, .categories-nav ul { list-style: none; padding: 0; margin: 0; }
.categories-nav li::before,
.categories-nav a::before,
.categories-nav a::after {
  content: none !important;
}

.categories-nav a {
  background: rgba(35, 39, 42, 0.85);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
}
.categories-nav a:hover {
  transform: translateY(-2px) scale(1.05);
  background: var(--clr-accent);
  box-shadow: 0 4px 16px rgba(0,0,0,0.45);
}

/* ========== Mobile tweaks ========== */
@media (max-width: 640px) {
  h1.title, h1 { font-size: 1.8rem; }
  h2.title, h2 { font-size: 1.4rem; }
  .container, .content-card { padding: 1.2rem 1rem; }

  /* → Bien placer la règle sous le sélecteur .primary-nav .menu */
  .primary-nav .menu {
    justify-content: center;
  }
}

  /* Stack search and logo */
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: center;      /* passe de space-between à center */
  flex-wrap: wrap;
  gap: 2rem;                     /* espace uniforme entre logo / menu / etc. */
}

  .search-form {
    max-width: 90vw;
    width: 100%;
  }
  .search-form input[type="search"] { padding: 0.55rem 2.5rem 0.55rem 0.9rem; }

  /* Category pills wrap nicely */
  .categories-nav {
    gap: 0.5rem;
    justify-content: center;
    max-width: 100%;
    flex-wrap: wrap;
  }
  .categories-nav a {
    font-size: 0.85rem;
    padding: 0.35rem 0.7rem;
  }

  /* Post grid devient 1 colonne */
  .post-grid {
    grid-template-columns: 1fr;
  }

  /* Tables horizontal scroll si overflow */
  table { display: block; overflow-x: auto; }
}

.site-header .container{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;}

/* ========= Enhanced mobile UX ========= */
@media (max-width: 480px){
  html,body{font-size:15px;}

  /* header */
  .site-header .container{
    padding-block:0.75rem;
  }
  .site-logo img{max-height:38px;}

  /* search bar */
  .search-form{
    order:2;
    margin-top:0.5rem;
  }

  /* categories – horizontal scroll similar to Platinmods */
  .categories-nav{
    order:3;
    justify-content:flex-start;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    padding-bottom:0.5rem;
    margin-inline:-1rem;
    padding-inline:1rem;
  }
  .categories-nav::-webkit-scrollbar{
    display:none;
  }
  .categories-nav a{
    white-space:nowrap;
    flex:0 0 auto;
    background:#23272A;
    border:1px solid rgba(255,255,255,0.05);
    margin-right:0.4rem;
  }

  /* cards */
  .content-card, .container{
    border-radius:18px;
  }

  .post-grid article{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:0.5rem;
  }
  .post-grid article .post-icon{
    border-radius:12px;
  }
  .post-grid article h2.title{
    font-size:1.2rem;
    margin:0;
  }
}

.site-logo img{height:auto; max-height:48px;}

/* ====== tighter typography for très petit écran ====== */
@media (max-width: 380px){
  html,body{font-size:13px;}
  h1.title, h1 {font-size:1.6rem;}
  h2.title, h2 {font-size:1.25rem;}
}

/* ===== Condensed mobile typography ===== */
@media (max-width: 640px){
  html,body{font-size:14px; line-height:1.4;}

  p, li { margin-bottom:0.5rem; }

  h1.title, h1 { font-size:1.5rem; }
  h2.title, h2 { font-size:1.1rem; }
  h3 { font-size:1rem; }

  .container, .content-card { padding:0.9rem 0.8rem; }

  .section { margin-bottom:1rem; }
}

/* For very narrow */
@media (max-width: 380px){
  html,body{font-size:12.5px;}
  h1.title, h1{font-size:1.35rem;}
  h2.title, h2{font-size:1rem;}
}

/* Buttons on small screens */
button, button[type="submit"], .wp-block-button__link { padding: 0.4rem 0.9rem; font-size: 0.9rem; }

/* ===== Uniform tables ===== */
table {
  width: 100%;
  table-layout: fixed;
  word-wrap: break-word;
}

@media (max-width: 640px){
  /* Wrap tables in un scroll‐box pour éviter la casse */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  table tr {
    display: table-row;
  }
  table th, table td {
    padding: 0.6rem;
  }
}

table, th, td {
  font-size: 0.9rem;
}
@media (max-width:640px){
  table, th, td { font-size: 0.8rem; }
}

@media (max-width: 640px){
  th, td { font-size: 0.78rem; }
  table th, table td { padding: 0.35rem 0.5rem; white-space: normal; }
  table { table-layout: auto; } /* allow wrap */
}

/* ===== Ultra-condensed mobile typography ===== */
@media (max-width: 640px){
  html,body{font-size:13px; line-height:1.35;}
  h1.title, h1{font-size:1.25rem;}
  h2.title, h2{font-size:1rem;}
  h3{font-size:0.95rem;}
  p, li{font-size:0.8rem;}

  /* Tables */
  table{font-size:0.75rem; margin-top:0.5rem;}
  table th, table td{padding:0.4rem;}

  /* Buttons */
  button, .wp-block-button__link{padding:0.35rem 0.7rem; font-size:0.8rem;}
}

/* Extra small */
@media (max-width:380px){
  html,body{font-size:12px;}
  h1.title, h1{font-size:1.1rem;}
  h2.title, h2{font-size:0.95rem;}
  p, li{font-size:0.75rem;}
  table{font-size:0.7rem;}
}

/* ===== Center everything on mobile ===== */
@media (max-width: 640px){
  .section, .entry-content, .post-grid article {
    text-align: center;
    align-items: center;
  }
  table th, table td {
    text-align: center;
  }
  /* Make images and embeds centered */
  .entry-content img,
  .wp-block-embed { margin-left: auto; margin-right: auto; }
}

/* ====== Read More Button Styling ====== */
.read-more-btn {
  display: inline-block;         /* so it never stretches to full width */
  white-space: nowrap;           /* keep the text sur une ligne */
  background: var(--clr-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  margin-top: var(--space-2);
  transition: background 0.2s, transform 0.2s;
}

.read-more-btn:hover {
  transform: translateY(-2px);
  background: darken(var(--clr-accent), 5%);
}

/* ==== Gradient animation keyframes (même que votre demo) ==== */
@keyframes gradientMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ==== Appliqué à tous les liens de titre de post ==== */
.post-grid article h2.title a,
.single-post h1.title,
h2.title a {
  background: linear-gradient(90deg, #7289DA, #99AAB5, #7289DA);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 6s ease infinite;
}

#bg-music { display:none; }

 /* ======================================================
   OVERRIDE FINAL : FORCE TOUS LES FONDS EN NOIR PUR 
   (modifié pour rétablir les conteneurs “carte”)
   ====================================================== */

/* 1. S’assure que <html> et <body> soient NOIR à 100 % */
html, 
body {
  background-color: #000000 !important;
}

/* 2. Conteneur principal (main) en noir pur */
main,
.site-main {
  background-color: #000000 !important;
}

/* 3. Au cas où un autre wrapper injecterait encore du var(--clr-bg-3) (#7289DA) */
*[style*="var(--clr-bg-3)"] {
  background-color: #000000 !important;
}

/* 4. Écrase tout élément susceptible d’avoir un fond bleu “par défaut” */
/* Remplacement : on utilise var(--clr-surface) au lieu de #000000 */
.container,
.content-card,
.single-post .container,
.page .container,
.section,
.entry-content,
.post-content,
.entry-header,
.entry-footer {
  background-color: var(--clr-surface) !important;
}

/* 5. Boîtes flottantes, widgets, popups */
#kofi-popup,
.kofi-popup,
.widget,
.widget * {
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* 6. Toutes les barres de navigation / catégories / header */
/* Remplacement : n’obligez plus .site-header .container à #000000,
   mais laissez-le reprendre sa couleur “carte” var(--clr-surface) */
.site-header,
/* supprimez “.site-header .container” de cette liste si vous voulez uniquement
   que le container du header reste en var(--clr-surface) et non en noir pur. */
.site-header .container,
.primary-nav,
.primary-nav .menu,
.categories-nav,
.search-form,
.search-form * {
  background-color: var(--clr-surface) !important;
  color: #ffffff !important;
}

/* 6a. Le fond du <header> doit être noir ou transparent,
       pour ne pas laisser apparaître du gris sous le container */
.site-header {
  background-color: transparent !important;
}

/* 6b. Le <div class="container"> à l’intérieur reste en gris foncé (carte) */
.site-header .container {
  background-color: var(--clr-surface) !important;
  color: #ffffff !important;
}

/* 6c. Les autres éléments du menu conservent leur style normal */
.primary-nav,
.primary-nav .menu,
.categories-nav,
.search-form,
.search-form * {
  /* Si besoin, ajoutez background: var(--clr-surface) ici également,
     ou laissez-les transparents pour qu’ils héritent du container. */
}

/* 7. Toute zone ou colonne gauche/droite qui resterait bleue */
.sidebar,
.footer-widgets,
.card,
.panel {
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* 8. Iframes / vidéos / embeds */
iframe,
.video-container,
.embed-container {
  background-color: #000000 !important;
}

/* 9. Tables sur très petits écrans */
@media (max-width: 640px) {
  table {
    background-color: #000000 !important;
  }
}

/* 10. Scrollbar (pour rappel : noir + pouce en accent) */
::-webkit-scrollbar-track {
  background: transparent !important;
}
::-webkit-scrollbar-thumb {
  background-color: var(--clr-accent) !important;
  border-radius: var(--radius-sm) !important;
}

/* ========== FORCER ARRIÈRE-PLAN NOIR TOUTE PAGE ========== */
html,
body {
  background-color: #000000 !important;
  background-image: none !important;
  margin: 0;
  padding: 0;
}

/* Si un wrapper global existe (par exemple .site-container ou #page), on le passe aussi en noir */
#page,
.site-container,
.wrapper {
  background-color: #000000 !important;
  background-image: none !important;
}

/* Enfin, s’il y a une zone “push” ou “spacer” sous le footer */
.site-footer + * {
  background-color: #000000 !important;
}

/* ⇢ Forcer le fond global (tout ce qui n’est pas carte) en noir pur */
html,
body,
.site-main {
  background-color: #000000 !important;
}

/* ===== CORRECTION SECTION COMMENTAIRES - CENTRAGE PARFAIT ===== */

/* 1. Conteneur principal des commentaires */
.comments-area,
#respond,
.comment-respond {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-3);
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  text-align: center;
}

/* 2. Titre "Leave a Reply" centré */
.comments-area h2,
.comments-area h3,
#reply-title {
  text-align: center;
  margin-bottom: var(--space-3);
  color: var(--clr-heading);
}

/* 3. Formulaire de commentaire centré */
.comment-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
}

/* 4. Tous les champs de saisie centrés */
.comment-form input,
.comment-form textarea,
.comment-form select {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background: #23272A;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  color: var(--clr-text);
  text-align: left; /* Texte saisi aligné à gauche pour la lisibilité */
}

/* 5. Labels centrés */
.comment-form label {
  display: block;
  text-align: center;
  margin-bottom: var(--space-1);
  color: var(--clr-text);
  font-weight: 500;
}

/* 6. Textarea commentaire plus grand */
.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* 7. Checkbox "Save my name..." centré */
.comment-form .form-submit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
}

.comment-form input[type="checkbox"] {
  width: auto;
  margin-right: var(--space-1);
}

.comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  margin: var(--space-2) 0;
}

/* 8. Bouton "Post Comment" centré et stylé */
.comment-form input[type="submit"],
.comment-form button[type="submit"] {
  background: var(--clr-accent);
  border: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  color: var(--clr-text-light);
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.18s, box-shadow 0.18s;
  margin: var(--space-2) auto 0;
  display: block;
}

.comment-form input[type="submit"]:hover,
.comment-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* 9. Texte d'information centré */
.comment-form .comment-notes,
.comment-form .form-allowed-tags {
  text-align: center;
  font-size: 0.9rem;
  color: var(--clr-text);
  margin: var(--space-2) 0;
}

/* 10. Responsive mobile */
@media (max-width: 640px) {
  .comments-area,
  #respond,
  .comment-respond {
    padding: var(--space-2);
    margin: var(--space-2) auto;
  }
  
  .comment-form input,
  .comment-form textarea {
    max-width: 100%;
    font-size: 0.9rem;
  }
  
  .comment-form input[type="submit"],
  .comment-form button[type="submit"] {
    width: 100%;
    max-width: 300px;
  }
}

/* 11. Très petits écrans */
@media (max-width: 480px) {
  .comments-area,
  #respond {
    padding: var(--space-1);
  }
  
  .comment-form input,
  .comment-form textarea {
    padding: 0.5rem;
    font-size: 0.85rem;
  }
}

/* =====================================================
   ANIMATIONS ESTHÉTIQUES AVEC DÉGRADÉ - BANKAI THEME
   Lignes animées avec le même gradient que les titres
   ===================================================== */

/* ========== 1. LIGNES ANIMÉES HORIZONTALES ========== */

/* Ligne décorative animée sous le titre principal */
.title-decorator {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: var(--space-3);
}

.title-decorator::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #7289DA, #99AAB5, #7289DA);
  background-size: 200% 200%;
  animation: lineExpand 2s ease-out forwards, gradientMove 6s ease infinite;
  border-radius: 2px;
}

@keyframes lineExpand {
  from { width: 0; }
  to { width: 80%; }
}

/* ========== 2. LIGNES FLOTTANTES DÉCORATIVES ========== */

/* Conteneur pour les lignes flottantes */
.floating-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

/* Lignes individuelles */
.floating-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7289DA, #99AAB5, #7289DA, transparent);
  background-size: 200% 100%;
  opacity: 0.6;
  animation: floatAcross 15s linear infinite, gradientFlow 8s ease infinite;
}

.floating-line:nth-child(1) {
  width: 300px;
  top: 20%;
  animation-delay: 0s;
  animation-duration: 20s;
}

.floating-line:nth-child(2) {
  width: 200px;
  top: 40%;
  animation-delay: -5s;
  animation-duration: 25s;
}

.floating-line:nth-child(3) {
  width: 250px;
  top: 60%;
  animation-delay: -10s;
  animation-duration: 18s;
}

.floating-line:nth-child(4) {
  width: 180px;
  top: 80%;
  animation-delay: -15s;
  animation-duration: 22s;
}

@keyframes floatAcross {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateX(calc(100vw + 100px));
    opacity: 0;
  }
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ========== 3. BORDURES ANIMÉES POUR LES CARTES ========== */

.animated-border {
  position: relative;
  overflow: hidden;
}

.animated-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7289DA, #99AAB5, #7289DA, transparent);
  animation: borderSweep 3s ease-in-out infinite;
}

.animated-border::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7289DA, #99AAB5, #7289DA, transparent);
  animation: borderSweepReverse 3s ease-in-out infinite;
  animation-delay: 1.5s;
}

@keyframes borderSweep {
  0% { left: -100%; }
  50% { left: 0; }
  100% { left: 100%; }
}

@keyframes borderSweepReverse {
  0% { right: -100%; }
  50% { right: 0; }
  100% { right: 100%; }
}

/* ========== 4. LIGNES PULSANTES VERTICALES ========== */

.pulse-lines {
  position: relative;
}

.pulse-lines::before,
.pulse-lines::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, transparent, #7289DA, #99AAB5, #7289DA, transparent);
  animation: verticalPulse 4s ease-in-out infinite;
}

.pulse-lines::before {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.pulse-lines::after {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  animation-delay: 2s;
}

@keyframes verticalPulse {
  0%, 100% { 
    height: 0;
    opacity: 0;
  }
  50% { 
    height: 100px;
    opacity: 0.8;
  }
}

/* ========== 5. EFFET DE SCAN LASER ========== */

.laser-scan {
  position: relative;
  overflow: hidden;
}

.laser-scan::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(114, 137, 218, 0.3), 
    rgba(153, 170, 181, 0.8), 
    rgba(114, 137, 218, 0.3), 
    transparent
  );
  background-size: 200% 100%;
  animation: laserScan 3s linear infinite, gradientMove 6s ease infinite;
  box-shadow: 0 0 10px rgba(114, 137, 218, 0.5);
}

@keyframes laserScan {
  0% { transform: translateY(0); }
  100% { transform: translateY(100vh); }
}

/* ========== 6. CONNEXIONS RÉSEAU ANIMÉES ========== */

.network-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.connection-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(114, 137, 218, 0.4), 
    rgba(153, 170, 181, 0.6), 
    rgba(114, 137, 218, 0.4), 
    transparent
  );
  animation: connectionFlow 8s linear infinite;
  opacity: 0;
}

.connection-line:nth-child(odd) {
  animation-direction: normal;
}

.connection-line:nth-child(even) {
  animation-direction: reverse;
  animation-delay: -4s;
}

@keyframes connectionFlow {
  0% {
    width: 0;
    opacity: 0;
  }
  20% {
    opacity: 0.6;
  }
  80% {
    opacity: 0.6;
  }
  100% {
    width: 100%;
    opacity: 0;
  }
}

/* ========== 7. APPLICATIONS AUX ÉLÉMENTS EXISTANTS ========== */

/* Applique l'effet titre décoratif */
h1.title,
h2.title {
  position: relative;
}

h1.title::after,
h2.title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #7289DA, #99AAB5, #7289DA);
  background-size: 200% 200%;
  animation: lineExpand 2s ease-out 0.5s forwards, gradientMove 6s ease infinite;
  border-radius: 1px;
}

/* Applique les bordures animées aux cartes */
.content-card,
.container {
  position: relative;
}

.content-card::before,
.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #7289DA, #99AAB5, #7289DA, transparent);
  animation: borderSweep 4s ease-in-out infinite;
  z-index: 1;
}

/* Applique l'effet aux articles de la grille */
.post-grid article {
  position: relative;
  overflow: hidden;
}

.post-grid article::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #7289DA, #99AAB5, #7289DA, transparent);
  animation: borderSweep 5s ease-in-out infinite;
  animation-delay: calc(var(--delay, 0) * 0.2s);
}

/* Délais différents pour chaque article */
.post-grid article:nth-child(1) { --delay: 1; }
.post-grid article:nth-child(2) { --delay: 2; }
.post-grid article:nth-child(3) { --delay: 3; }
.post-grid article:nth-child(4) { --delay: 4; }
.post-grid article:nth-child(5) { --delay: 5; }
.post-grid article:nth-child(6) { --delay: 6; }

/* ========== 8. EFFET HOVER INTERACTIF ========== */

.interactive-glow {
  transition: all 0.3s ease;
  position: relative;
}

.interactive-glow:hover::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #7289DA, #99AAB5, #7289DA);
  background-size: 200% 200%;
  animation: gradientMove 2s ease infinite;
  border-radius: inherit;
  z-index: -1;
  opacity: 0.7;
}

/* Applique l'effet glow aux boutons */
button,
.wp-block-button__link,
.read-more-btn {
  position: relative;
  overflow: hidden;
}

button:hover,
.wp-block-button__link:hover,
.read-more-btn:hover {
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(114, 137, 218, 0.3);
}

/* ========== 9. RESPONSIVE OPTIMIZATIONS ========== */

@media (max-width: 768px) {
  .floating-line {
    opacity: 0.4;
  }
  
  .title-decorator::after {
    width: 60%;
  }
  
  .pulse-lines::before,
  .pulse-lines::after {
    display: none; /* Masque sur mobile pour les perfs */
  }
}

@media (max-width: 480px) {
  .floating-lines {
    display: none; /* Masque complètement sur très petit écran */
  }
  
  .laser-scan::before {
    animation-duration: 4s; /* Ralentit l'animation */
  }
}

/* ========== 10. ANIMATION D'ENTRÉE GÉNÉRALE ========== */

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Applique l'animation d'entrée avec délais */
.content-card { animation-delay: 0.2s; }
.post-grid article:nth-child(1) { animation-delay: 0.3s; }
.post-grid article:nth-child(2) { animation-delay: 0.4s; }
.post-grid article:nth-child(3) { animation-delay: 0.5s; }
.post-grid article:nth-child(4) { animation-delay: 0.6s; }


/* =====================================================
   ICÔNES DE JEUX - BORDS ARRONDIS UNIVERSELS
   Adapte toutes les icônes PNG avec des bords arrondis
   ===================================================== */

/* ========== 1. RÈGLES PRINCIPALES POUR TOUTES LES ICÔNES ========== */

/* Sélecteurs génériques pour toutes les images d'icônes */
.post-icon,
.game-icon,
.app-icon,
.post-thumbnail,
.post-grid img,
.entry-content img[src*=".png"],
.entry-content img[src*=".jpg"],
.entry-content img[src*=".jpeg"],
.entry-content img[src*=".webp"],
img.icon,
img.game-logo,
img.app-logo {
  border-radius: 16px !important;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* ========== 2. ICÔNES DANS LA GRILLE DE POSTS ========== */

/* Renforce les règles existantes et les améliore */
.post-grid article .post-icon {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 16px !important; /* Augmente légèrement pour plus d'effet */
  margin-bottom: var(--space-2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

/* Effet hover pour les icônes */
.post-grid article .post-icon:hover {
  transform: scale(1.05) rotate(1deg);
  border-radius: 20px !important;
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(114, 137, 218, 0.3);
}

/* ========== 3. ICÔNES DANS LE CONTENU DES ARTICLES ========== */

/* Images dans le contenu des posts */
.entry-content img,
.post-content img,
.single-post img {
  border-radius: 12px !important;
  max-width: 100%;
  height: auto;
  transition: all 0.3s ease;
}

/* Images plus grandes dans le contenu */
.entry-content img[width="280"],
.entry-content img[height="280"],
.post-content img[width="280"],
.post-content img[height="280"] {
  border-radius: 16px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ========== 4. ICÔNES DANS LES WIDGETS ET SIDEBAR ========== */

.widget img,
.sidebar img,
.footer-widget img {
  border-radius: 12px !important;
  transition: all 0.3s ease;
}

/* ========== 5. AVATARS ET ICÔNES UTILISATEUR ========== */

.avatar,
.user-avatar,
.author-avatar,
.comment-author img {
  border-radius: 50% !important; /* Cercle parfait pour les avatars */
  transition: all 0.3s ease;
}

/* ========== 6. ICÔNES DE NAVIGATION ET MENU ========== */

.menu img,
.nav img,
.primary-nav img,
.categories-nav img {
  border-radius: 8px !important;
  transition: all 0.3s ease;
}

/* ========== 7. LOGOS ET ICÔNES D'APPLICATIONS ========== */

.site-logo img,
.logo img,
.brand img {
  border-radius: 12px !important;
  transition: all 0.3s ease;
}

/* ========== 8. ICÔNES SPÉCIFIQUES AUX JEUX MOBILES ========== */

/* Pour les icônes d'APK et jeux mobiles */
img[src*="apk"],
img[src*="mod"],
img[src*="game"],
img[src*="app"],
.apk-icon,
.mod-icon,
.game-thumbnail {
  border-radius: 18px !important; /* Plus arrondi pour l'aspect mobile */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

/* ========== 9. RESPONSIVE - AJUSTEMENTS MOBILES ========== */

/* Tablettes */
@media (max-width: 768px) {
  .post-grid article .post-icon {
    width: 220px;
    height: 220px;
    border-radius: 14px !important;
  }
  
  .post-grid article .post-icon:hover {
    border-radius: 18px !important;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .post-grid article .post-icon {
    width: 200px;
    height: 200px;
    border-radius: 12px !important;
  }
  
  .post-grid article .post-icon:hover {
    border-radius: 16px !important;
    transform: scale(1.02) rotate(0.5deg);
  }
  
  .entry-content img,
  .post-content img {
    border-radius: 10px !important;
  }
}

/* Très petit écran */
@media (max-width: 480px) {
  .post-grid article .post-icon {
    width: 160px;
    height: 160px;
    border-radius: 10px !important;
  }
  
  .post-grid article .post-icon:hover {
    border-radius: 14px !important;
  }
  
  .entry-content img,
  .post-content img {
    border-radius: 8px !important;
  }
}

/* ========== 10. EFFETS SPÉCIAUX POUR ICÔNES ========== */

/* Effet glow au hover pour les icônes importantes */
.post-grid article .post-icon:hover,
.game-icon:hover,
.app-icon:hover {
  filter: brightness(1.1) saturate(1.2);
}

/* Animation de pulsation pour les nouvelles icônes */
@keyframes iconPulse {
  0%, 100% { 
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }
  50% { 
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 30px rgba(114, 137, 218, 0.4);
  }
}

.new-game .post-icon,
.featured-game .post-icon {
  animation: iconPulse 3s ease-in-out infinite;
}

/* ========== 11. BORDURES GRADIENT (OPTIONNEL) ========== */

/* Ajoute une bordure gradient aux icônes importantes */
.featured-icon,
.premium-icon,
.vip-icon {
  position: relative;
  border-radius: 16px !important;
}

.featured-icon::before,
.premium-icon::before,
.vip-icon::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #7289DA, #99AAB5, #7289DA);
  background-size: 200% 200%;
  border-radius: 18px;
  z-index: -1;
  animation: gradientMove 6s ease infinite;
}

/* ========== 12. CORRECTION POUR IMAGES CASSÉES ========== */

/* Style pour les images qui ne chargent pas */
img[src*=".png"]:not([src]),
img[src*=".jpg"]:not([src]),
img[src=""]:not([src]) {
  background: var(--clr-surface);
  border: 2px dashed var(--clr-border);
  border-radius: 16px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text);
  font-size: 0.8rem;
}

img[src*=".png"]:not([src])::before,
img[src*=".jpg"]:not([src])::before {
  content: "🎮 Icône manquante";
}

/* ========== 13. ICÔNES EN LISTE/TABLEAU ========== */

/* Icônes dans les tableaux */
table img,
.table-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px !important;
  object-fit: cover;
}

/* Icônes dans les listes */
li img,
.list-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px !important;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 8px;
}

/* ========== 14. PRÉCHARGEMENT ET OPTIMISATION ========== */

/* Optimise le chargement des icônes */
.post-icon,
.game-icon,
.app-icon {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Placeholder pendant le chargement */
.post-icon[src=""],
.game-icon[src=""] {
  background: linear-gradient(45deg, #23272A, #2C2F33);
  background-size: 400% 400%;
  animation: loadingShimmer 1.5s ease infinite;
}

@keyframes loadingShimmer {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

/* ========== 15. CLASSE UTILITAIRE POUR FORCER LES BORDS ARRONDIS ========== */

/* Classe à ajouter manuellement si besoin */
.force-rounded {
  border-radius: 16px !important;
  overflow: hidden !important;
}

.force-rounded-sm {
  border-radius: 8px !important;
  overflow: hidden !important;
}

.force-rounded-lg {
  border-radius: 24px !important;
  overflow: hidden !important;
}

.force-rounded-xl {
  border-radius: 32px !important;
  overflow: hidden !important;
}

/* Classe pour désactiver les bords arrondis si nécessaire */
.no-rounded {
  border-radius: 0 !important;
}

/* =====================================================
   INSTRUCTIONS D'UTILISATION :
   
   1. Colle ce CSS à la fin de ton fichier style.css existant
   
   2. Toutes les icônes PNG auront automatiquement des bords arrondis
   
   3. Pour forcer des bords arrondis sur une image spécifique :
      <img src="icon.png" class="force-rounded">
   
   4. Pour différentes tailles de bordures :
      - .force-rounded-sm : 8px
      - .force-rounded : 16px (défaut)
      - .force-rounded-lg : 24px
      - .force-rounded-xl : 32px
   
   5. Pour désactiver sur une image : class="no-rounded"
   
   6. Les effets hover et animations sont inclus automatiquement
   ===================================================== */

/* =====================================================
   INSTRUCTIONS D'INTÉGRATION :
   
   1. Ajoute ce CSS à la fin de ton fichier style.css
   
   2. Pour activer les lignes flottantes, ajoute dans ton HTML :
   <div class="floating-lines">
     <div class="floating-line"></div>
     <div class="floating-line"></div>
     <div class="floating-line"></div>
     <div class="floating-line"></div>
   </div>
   
   3. Pour ajouter l'effet scan laser, ajoute la classe "laser-scan" 
      à ton élément body ou à un conteneur principal
   
   4. Les autres effets s'appliquent automatiquement aux éléments
      existants (titres, cartes, articles, boutons)
   
   5. Pour désactiver certaines animations sur mobile,
      tu peux commenter les sections correspondantes
   ===================================================== */

/* Pour activer la pulsation en plus du dégradé */
/*
.post-grid article .post-icon::before {
  animation: gradientBorder 6s ease infinite, pulse 2s ease infinite;
}
*/

/* (Optionnel : si vous avez besoin de forcer d’autres wrappers, ajoutez-les ici) */

/* ======================================================
   À présent, tous les fonds doivent être 100 % NOIR,
   sans aucune trace de bleu (#7289DA) ou de dégradé.
   Si tu repères encore une zone bleue, identifie sa
   classe/id dans l’Inspecteur, puis ajoute la à l’une
   de ces règles avec “!important”.
   ====================================================== */

/* =====================================================
   README :
   - Ce CSS combine l’ensemble du CSS original (avec toutes les 
     sections : design tokens, containers, typography, forms, tables, 
     navigation, footer, Gutenberg tweaks, responsive) adapté en dark, 
     puis des overrides finaux pour écraser les derniers gris éventuels.
   - Colle tout ce bloc dans ton fichier style.css (ou dans un 
     fichier chargé en dernier) pour forcer le site à avoir un fond 
     100 % noir (#000000) et des textes/blocs adaptés. 
   - Recharge la page (Ctrl+F5) pour voir l’effet complet.
   ===================================================== */
