/* Heroes of Haradon : habillage « MOBA 2011-2012 » colore : bleu nuit texture + halos, bleu electrique, or brillant a reflet,
   boutons rouge-orange, cadres dores lumineux, police du jeu (Fontin). Lisibilite : texte clair sur bleu nuit, jamais sur l'or. */
@font-face { font-family: 'Fontin SC'; src: url(../assets/fontin-sc.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: 'Fontin'; src: url(../assets/fontin.ttf) format('truetype'); font-display: swap; }

html { background: #091434 url(../assets/bg.png); }
body { margin: 0; font: 12px/1.6 Verdana, Arial, Helvetica, sans-serif; color: #dfe6ff;
  background: radial-gradient(ellipse 70% 40% at 50% 0, rgba(60, 130, 255, .35), transparent 100%),
              radial-gradient(ellipse 40% 30% at 0 60%, rgba(120, 60, 220, .18), transparent 100%),
              radial-gradient(ellipse 40% 30% at 100% 70%, rgba(255, 120, 40, .12), transparent 100%); }
a { color: #ffd54a; }
a:hover { color: #fff1a8; }
img { max-width: 100%; }
.wrap { width: 980px; max-width: 100%; margin: 0 auto; box-sizing: border-box; padding: 0 12px; }
/* titres dores a reflet (degrade dans le texte + ombre) */
h1, h2, h3 { font-family: 'Fontin SC', Georgia, serif; font-weight: normal; letter-spacing: 1px; color: #ffd54a;
  background: linear-gradient(#fff6c4 0%, #ffd54a 42%, #d58f12 56%, #ffe27a 100%); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; filter: drop-shadow(0 1px 0 #3a1e00) drop-shadow(0 0 8px rgba(255, 200, 60, .35)); }
h1 { font-size: 28px; margin: 0 0 14px; border-bottom: 1px solid #c9962c; padding-bottom: 6px; }
h2 { font-size: 21px; margin: 0 0 12px; border-bottom: 1px solid #c9962c; padding-bottom: 5px; }
h3 { font-size: 16px; margin: 14px 0 6px; }
p { margin: 0 0 10px; }

/* === barre du haut === */
#topbar { background: linear-gradient(#0b1a44, #050c24); border-bottom: 1px solid #2a4fa8; font-size: 11px; }
#topbar .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; line-height: 28px; }
#topbar a { color: #9fb6ee; text-decoration: none; }
#topbar a:hover, #topbar a.actif, #topbar a.or { color: #ffd54a; font-weight: bold; }
#topbar .sep { color: #2a4fa8; margin: 0 7px; }
#topbar .user { color: #8fe08a; margin-right: 7px; }

/* === en-tete bleu electrique + onglets === */
#header { background: linear-gradient(#1d4fb8 0%, #0f2d78 55%, #0a1c4e 100%); border-bottom: 3px solid #e2ac2c;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .6), 0 0 24px rgba(255, 190, 60, .25), inset 0 1px 0 rgba(255, 255, 255, .15); }
#header .wrap { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; padding-top: 10px; }
.logo img { height: 104px; display: block; margin-bottom: 8px; filter: drop-shadow(0 0 12px rgba(255, 200, 60, .45)); }
#nav { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
#nav a { display: block; padding: 8px 15px; margin-left: 3px; font: 17px 'Fontin SC', Georgia, serif; letter-spacing: 1px; color: #ffe9a6;
  text-decoration: none; text-shadow: 0 1px 0 #000; background: linear-gradient(#3d7bff, #1a3f9c 55%, #12327f); border: 1px solid #6fa0ff; border-bottom: 0;
  border-radius: 5px 5px 0 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
#nav a:hover, #nav a.actif { background: linear-gradient(#fff0a8, #ffc632 50%, #e0900e 51%, #ffcf4a); color: #3a1e00; text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
  border-color: #fff1a8; box-shadow: 0 0 14px rgba(255, 210, 80, .6), inset 0 1px 0 rgba(255, 255, 255, .6); }
#nav a.dl { background: linear-gradient(#ffb03a, #ff6a1a 50%, #d4260c 51%, #ff7a2a); color: #fff; text-shadow: 0 1px 1px #000; border-color: #ffd27a;
  box-shadow: 0 0 14px rgba(255, 120, 40, .6), inset 0 1px 0 rgba(255, 255, 255, .5); }
#nav a.dl:hover { filter: brightness(1.12); }

/* === boutons brillants (rouge-orange = action, bleu = secondaire) === */
.btn, button.btn { display: inline-block; padding: 8px 22px; font: 17px 'Fontin SC', Georgia, serif; letter-spacing: 1px; color: #fff; text-decoration: none;
  text-shadow: 0 1px 2px #000; cursor: pointer; border: 1px solid #ffd27a; border-radius: 6px;
  background: linear-gradient(#ffc24a 0%, #ff7a1a 50%, #d4260c 51%, #ff6a2a 100%);
  box-shadow: 0 0 14px rgba(255, 140, 40, .6), inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 3px #000; }
.btn:hover { color: #fff; filter: brightness(1.12); }
.btn.grand { padding: 14px 40px; font-size: 30px; border-width: 2px; border-radius: 9px;
  box-shadow: 0 0 28px rgba(255, 140, 40, .75), inset 0 1px 0 rgba(255, 255, 255, .6), 0 3px 6px #000; }
.btn.gris { background: linear-gradient(#4d8bff, #1f4bb3 55%, #163a8f); border-color: #8fb4ff;
  box-shadow: 0 0 10px rgba(60, 130, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 3px #000; }
.mini { margin-left: 6px; padding: 0 7px; border: 1px solid #3d63c2; border-radius: 3px; background: #0f2260; color: #dfe6ff; cursor: pointer; }

/* === bandeau de l'accueil : halo bleu, art du heros grand et en pleine couleur === */
#bandeau { position: relative; overflow: hidden; border-bottom: 3px solid #e2ac2c; box-shadow: 0 4px 18px rgba(0, 0, 0, .7), 0 0 30px rgba(255, 190, 60, .2);
  background: #091434 radial-gradient(ellipse 55% 80% at 72% 50%, #2e60d2 0%, #16337f 40%, #091434 75%); }
#bandeau .wrap { position: relative; min-height: 460px; display: flex; align-items: center; }
#bandeau .art { position: absolute; right: -30px; top: 0; height: 100%; width: 560px; display: block; object-fit: contain; object-position: bottom;
  -webkit-mask-image: radial-gradient(ellipse 60% 75% at 50% 50%, #000 65%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 75% at 50% 50%, #000 65%, transparent 100%);
  filter: drop-shadow(0 0 30px rgba(80, 150, 255, .5)) saturate(1.15) brightness(1.05); }
#bandeau .texte { position: relative; z-index: 1; max-width: 520px; padding: 30px 0; }
#bandeau h1 { font-size: 42px; border: 0; margin: 0 0 4px; filter: drop-shadow(0 2px 0 #3a1e00) drop-shadow(0 0 18px rgba(255, 200, 60, .5)); }
#bandeau .sous { font-size: 15px; color: #eef2ff; text-shadow: 0 1px 2px #000; margin-bottom: 22px; }
#bandeau .version { font-size: 11px; color: #b7c6f5; margin-top: 12px; }
#bandeau .prepa { display: inline-block; margin-top: 12px; padding: 3px 10px; border: 1px solid #c9962c; border-radius: 3px; color: #ffe27a; font-size: 11px;
  background: rgba(9, 20, 52, .6); }

/* === contenu : panneaux bleu nuit a cadre dore lumineux === */
#page { padding: 24px 12px; }
.cols { display: flex; gap: 20px; align-items: flex-start; }
.main { flex: 1; min-width: 0; }
.aside { width: 300px; flex: none; }
.panel { background: linear-gradient(rgba(22, 44, 110, .92), rgba(10, 24, 66, .95)); border: 1px solid #d8a83a; border-radius: 5px; padding: 16px 18px; margin-bottom: 20px;
  box-shadow: 0 0 0 1px #0a1533, 0 0 16px rgba(255, 190, 60, .22), inset 0 1px 0 rgba(255, 255, 255, .12), 0 4px 10px rgba(0, 0, 0, .6); }
.stale, .aide { color: #a9b9ea; font-size: 11px; }
.alert { padding: 10px 14px; border-radius: 4px; margin-bottom: 14px; font-size: 12px; }
.alert-success { background: rgba(76, 175, 80, .18); border: 1px solid rgba(120, 220, 120, .6); color: #b8f0a8; }
.alert-info { background: rgba(60, 130, 255, .18); border: 1px solid rgba(120, 170, 255, .6); color: #dbe6ff; }
.alert-error { background: rgba(244, 67, 54, .2); border: 1px solid rgba(255, 110, 100, .6); color: #ffb3ac; }

/* actualites */
.news { list-style: none; margin: 0; padding: 0; }
.news li { border-bottom: 1px dotted #3d63c2; padding: 8px 0; }
.news .date { color: #a9b9ea; font-size: 10px; }
.news .titre { display: block; font: 15px 'Fontin SC', Georgia, serif; color: #ffd54a; }
ol.etapes { padding-left: 20px; }
ol.etapes li { margin-bottom: 6px; }
ol.etapes li::marker { color: #ffd54a; font-weight: bold; }

/* roster / rotation */
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px 8px; }
.roster a, .rot a { display: block; text-align: center; text-decoration: none; color: #ffe9a6; font-size: 11px; line-height: 1.3; }
.roster img, .rot img, .portrait { width: 96px; height: 96px; border: 2px solid #e2ac2c; border-radius: 5px; background: #091434;
  box-shadow: 0 0 0 1px #0a1533, 0 0 10px rgba(255, 190, 60, .35), 0 2px 6px #000; }
.roster a:hover img, .rot a:hover img { border-color: #fff1a8; box-shadow: 0 0 18px #4d8bff, 0 0 6px #ffd54a; }
.roster span, .rot span { display: block; margin-top: 4px; }
.roster .role { color: #a9b9ea; font-size: 10px; }
.rot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rot img { width: 76px; height: 76px; }
.filtres a { display: inline-block; margin: 0 6px 8px 0; padding: 2px 10px; border: 1px solid #3d63c2; border-radius: 3px; text-decoration: none; font-size: 11px;
  background: rgba(29, 79, 184, .35); }
.filtres a.actif { background: linear-gradient(#ffe27a, #e0900e); color: #3a1e00; border-color: #fff1a8; }

/* fiche */
.fiche { display: flex; gap: 24px; }
.fiche .art { width: 400px; flex: none; border: 2px solid #e2ac2c; border-radius: 5px; background: #091434;
  box-shadow: 0 0 0 1px #0a1533, 0 0 24px rgba(80, 150, 255, .45), 0 0 8px rgba(255, 200, 60, .35); }
.fiche dl { margin: 0 0 14px; }
.fiche dt { color: #a9b9ea; font-size: 11px; text-transform: uppercase; }
.fiche dd { margin: 0 0 8px; font-size: 14px; }
.skins { display: flex; gap: 12px; }
.skins div { text-align: center; font-size: 11px; color: #a9b9ea; }
.badge { display: inline-block; padding: 2px 10px; background: linear-gradient(#9be36a, #3f8a1e); color: #fff; border: 1px solid #c9ff9a; border-radius: 3px; font-size: 11px;
  text-shadow: 0 1px 1px #000; }

/* tableau */
table.cl { width: 100%; border-collapse: collapse; }
.cl th { background: linear-gradient(#2a5ccf, #163a8f); color: #ffd54a; font: 15px 'Fontin SC', Georgia, serif; text-align: left; border-bottom: 1px solid #e2ac2c; }
.cl td, .cl th { padding: 6px 10px; border-bottom: 1px solid #2a4fa8; }
.cl tr:nth-child(even) td { background: rgba(255, 255, 255, .04); }

/* formulaires */
.form { max-width: 440px; margin: 0 auto; }
.form h1 { font-size: 24px; }
.champ { margin-bottom: 14px; }
.champ label { display: block; margin-bottom: 4px; color: #ffe9a6; }
.champ input { width: 100%; box-sizing: border-box; padding: 7px 9px; background: #071026; border: 1px solid #3d63c2; color: #eef2ff; border-radius: 3px;
  font: 13px Verdana, Arial, sans-serif; box-shadow: inset 0 1px 3px #000; }
.champ input:focus { border-color: #ffd54a; outline: 0; box-shadow: 0 0 8px rgba(255, 213, 74, .5); }
.champ small { display: block; color: #a9b9ea; font-size: 10px; margin-top: 3px; }
.deux { display: flex; gap: 12px; }
.deux .champ { flex: 1; }
.form .pied { text-align: center; margin-top: 12px; font-size: 11px; color: #a9b9ea; }
#cq { color: #ffd54a; }
dl.infos dt { color: #a9b9ea; font-size: 11px; text-transform: uppercase; margin-top: 8px; }
dl.infos dd { margin: 0; font-size: 14px; }

/* pied */
#footer { margin-top: 30px; background: linear-gradient(#0a1c4e, #050c24); border-top: 3px solid #e2ac2c; padding: 18px 0; font-size: 11px; color: #a9b9ea;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .5); }
#footer .cols { align-items: center; }
#footer .patate { height: 40px; float: left; margin-right: 12px; }
#footer .liens { text-align: right; line-height: 1.9; }
#footer a { color: #9fb6ee; text-decoration: none; }
#footer a:hover { color: #ffd54a; }

@media (max-width: 760px) {
  #header .wrap { justify-content: center; }
  .logo img { height: 70px; }
  #nav a { padding: 7px 10px; font-size: 14px; margin: 0 2px 2px 0; }
  #bandeau .wrap { min-height: 340px; }
  #bandeau .art { opacity: .45; width: 100%; right: 0; }
  #bandeau h1 { font-size: 30px; }
  .cols, .fiche { flex-direction: column; }
  .aside, .fiche .art { width: auto; }
  .deux { flex-direction: column; gap: 0; }
  #footer .liens { text-align: left; }
}
