/* Surcharges communes chargées après les CSS historiques de chaque page. */
body { color: #10283e; }
.conteneur, .container, main { color: #10283e; }
p, li, label, small, td, th, .description, .info-secondaire { color: inherit; }
.muted, .description, .text-muted, .info-secondaire, .coursives-intro,
.coursives-statut, .recycleur-valeurs, .recycleur-sous-titre,
.trophees-intro, .trophees-compteur, .trophees-note { color: #526b80 !important; }
.section, .card, .panel, .bloc, .fenetre, .module, .objectif, .aventure,
.dashboard-section, .stat-card, .event-card, .chat-container,
.chat-layout, .trophees-record, .trophees-filtres {
  color: #10283e;
  background-color: #fff;
  border-color: #c4dce9;
  box-shadow: 0 2px 9px rgba(5,47,77,.10);
}
.section h2, .panel h2, .bloc h2, .module h2, .chat-header h2 {
  color: #fff !important;
  background: linear-gradient(105deg, #075486 0%, #087eb5 72%, #000000 100%);
  border-radius: 6px;
  padding: 7px 10px;
}
.objectif, .aventure, .chat-message, .ea-alerte, .ea-bilan, .ac-alea {
  color: #18364d !important;
  background: #fff !important;
  border: 1px solid #c8dce8;
}
.objectif h3, .objectif p, .aventure h3, .aventure p,
.ea-alerte p, .ea-bilan p, .ac-alea p { color: #18364d; }
.objectif h3, .aventure h3 { color: #123e60; }
.ea-alerte, .ea-bilan--recent, .ea-bilan--resolu { border-left: 5px solid #0a9bd0; background: #eefaff !important; }
.ea-bilan--ancien { border-left: 5px solid #7894a8; background: #f3f7fa !important; }
.ea-etiquette { background: #075486; color: #fff; }
.ac-alea { border-left: 5px solid #ff9d00; background: #fff8e9 !important; }
.ac-alea--actif { border-left-color: #e87500; background: #fff1d7 !important; }
.ac-alea h3 { color: #70400b !important; }
.ac-etiquette { background: #9a4a08; color: #fff; }
.chat-header { color: #fff; background: linear-gradient(100deg,#075486,#087db8); }
.chat-header h2 { margin: 0; background: transparent; padding: 0; }
.chat-messages { color: #18364d; background: #edf5f9 !important; }
.chat-message { color: #18364d !important; background: #fff !important; border: 1px solid #d4e3eb; }
.chat-message .pseudo, .chat-message .canal-name { color: #0075b9 !important; }
.chat-message .time, .no-messages { color: #60798c !important; }
.chat-channel-description { color: #34566e !important; background: #e8f6fc !important; border-left-color: #0a9bd0; }
.chat-tab { color: #17415f !important; background: #e6f0f5 !important; }
.chat-tab.active { color: #fff !important; background: #087db8 !important; }
.chat-form textarea { color: #18364d; background: #fff; border-color: #a9c6d8; }

/* Tableaux, filtres et pagination */
table { color: #18364d !important; }
th { color: #fff !important; background: #124d73 !important; }
td { color: #18364d; }
tr:nth-child(even) { background: #f1f7fa; }
.pagination a, .pagination span, .trophees-pagination a {
  color: #075b91 !important; background: #fff; border-color: #b8d3e2;
}
.pagination .current, .pagination .active, .trophees-pagination a[aria-current="page"] {
  color: #fff !important; background: #087db8 !important; border-color: #087db8;
}
.filtres a { color: #0875ad !important; }
.reussi { color: #168044 !important; }
.echec { color: #c83232 !important; }
.en_cours { color: #087db8 !important; }
.annulee { color: #718596 !important; }

/* Coursives et salle des trophées */
.coursives-salle { color: #18364d; background: #fff !important; border-color: #c4dce9; box-shadow: 0 2px 9px rgba(5,47,77,.10); }
.coursives-salle h2 { color: #fff !important; background: linear-gradient(105deg,#075486,#087eb5 72%,#000000); padding: 8px 10px; border-radius: 6px; }
.coursives-salle p, .coursives-salle .coursives-statut { color: #526b80 !important; }
.coursives-trophees { background: linear-gradient(135deg,#fffdf6,#fff4d9) !important; border-color: #e6bd65; }
.coursives-trophees h2 { color: #fff !important; }
.trophees-record { background: #f4faff !important; border-color: #c6e0ee; }
.trophees-record span { color: #526b80 !important; }
.trophees-record strong { color: #123e60 !important; }
.trophees-table-wrap { background: #fff; border-color: #c4dce9; }
.trophees-table th { color: #fff !important; background: #124d73 !important; }
.trophees-table td { color: #18364d !important; }
.trophees-table tbody tr:hover { background: #eaf8fd !important; }
.trophees-nom { color: #006eaa !important; }
.trophees-statut { color: #40596b !important; background: #e8f1f6 !important; }
.trophees-statut.en_cours { color: #17663a !important; background: #e2f4e9 !important; }
.trophees-pastille { color: #344f63 !important; background: #edf4f8 !important; }

/* Profil, historique et pages de consultation */
.player-link, .vaisseau-name, .player-name { color: #006eaa !important; }
.wiki-link { color: #075b91 !important; background: #eef7fb !important; border-color: #c4dce9 !important; }
.search-box, .tabs, .tab-content { color: #18364d; }
.tab { color: #17415f; background: #e8f2f7; }
.tab.active { color: #fff; background: #087db8; }

/* Sélecteur de thème : aperçu miniature fidèle à l'identité Odyssée. */
.theme-preview--odyssee_stellaire { background: #071b30 !important; border-color: #29bce9 !important; box-shadow: 0 0 9px rgba(41,188,233,.25); }
.theme-preview--odyssee_stellaire .mini-topbar { color: #fff; background: linear-gradient(100deg,#06182b,#0b4770); border-bottom: 2px solid #35c9f5; }
.theme-preview--odyssee_stellaire .mini-layout { background: #eaf2f7; }
.theme-preview--odyssee_stellaire .mini-side,
.theme-preview--odyssee_stellaire .mini-main,
.theme-preview--odyssee_stellaire .mini-chat { background: #fff; border: 1px solid #9dcce0; }
.theme-preview--odyssee_stellaire .mini-side b,
.theme-preview--odyssee_stellaire .mini-chat b { background: linear-gradient(100deg,#075486,#087db8 75%,#000000); }
.theme-preview--odyssee_stellaire .mini-side i,
.theme-preview--odyssee_stellaire .mini-panels i,
.theme-preview--odyssee_stellaire .mini-chat i { background: #edf4f8; border-color: #d2e3ec; }
.theme-preview--odyssee_stellaire .mini-title { background: #0b6597; }
.theme-preview--odyssee_stellaire .mini-stats i { background: #dff4fb; border-bottom-color: #19a9d7; }
.theme-preview--odyssee_stellaire .mini-panels i:first-child { border-bottom: 2px solid #ff9d00; }

/* Ajustements V7 — lisibilité et proportions des éléments du tableau de bord */
/* Un peu d'air entre les pictogrammes et les titres, sans modifier leur taille. */
.section h2, .panel h2, .bloc h2, .module h2, .chat-header h2 {
  word-spacing: .08em;
}

/* Boutons Contribuer : retrouver le relief et l'épaisseur de la version précédente,
   avec une réduction modérée pour ne pas les rendre trop imposants. */
.section form button[type="submit"],
.section button[type="submit"],
.objectif form button[type="submit"],
.aventure form button[type="submit"] {
  padding: 7px 12px !important;
  min-height: 31px;
  font-size: .92rem !important;
  font-weight: 700 !important;
  line-height: 1.15;
  border-radius: 8px !important;
  box-shadow: 0 2px 7px rgba(0, 150, 220, .28), inset 0 1px 0 rgba(255,255,255,.28) !important;
}

/* Le titre du canal doit rester blanc sur le bandeau bleu, même si le CSS historique
   ou une règle de lien lui applique une couleur sombre. */
.chat-header,
.chat-header h2,
.chat-header h2 a,
.chat-header * {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 15, 35, .65);
}
.chat-header {
  background: linear-gradient(100deg, #064b78 0%, #087db8 72%, #000000 100%) !important;
  border-bottom: 1px solid rgba(53, 201, 245, .85) !important;
  border-radius: 10px 10px 0 0;
}

/* Textes secondaires placés en ligne dans le tableau de bord : ils doivent rester
   lisibles sur les panneaux bleu nuit. Les cartes blanches conservent leurs couleurs. */
.jauge p[style*="color: #555"],
.jauge p[style*="color:#555"],
.section > p[style*="color: #666"],
.section > p[style*="color:#666"] {
  color: #f1f8ff !important;
}
