/* ============================================ */
/*  RESET & BASE                                */
/* ============================================ */
body, div, dl, dt, dd, ol, ul, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote {
    margin: 0; padding: 0;
}
html { height: 100%; }
a img { border: 0 none; }
body, html {
    font-size: 13px;
    font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
    color: #5E5E5E;
    background: url('../app/layout/theme_digitalcup/images/fond_vierge_cup.jpg') no-repeat scroll center top rgb(34,34,34);
}
a { color: #005F6B; text-decoration: none; }
a:hover { color: #00B4CC; }

/* ============================================ */
/*  DEMO BANNER                                 */
/* ============================================ */
.demo-banner {
    background: linear-gradient(135deg, #ff3035, #cc0000);
    color: white; text-align: center; padding: 6px 0;
    font-size: 11px; font-weight: bold; letter-spacing: 1px;
    position: fixed; top: 0; left: 0; right: 0; z-index: 99999;
    height: 14px; line-height: 14px;
}

/* ============================================ */
/*  TOP BAR (header fixe DigitalNetwork)        */
/* ============================================ */
.dn-topbar {
    position: fixed; top: 26px; left: 0; right: 0; z-index: 9999;
    background: url('../app/layout/theme_digitalcup/images/menu.png') repeat-x #222;
    border-bottom: 3px solid #e44d26;
    height: 45px; line-height: 45px;
}
.dn-topbar-inner {
    max-width: 980px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 10px;
}
.dn-topbar .logo {
    display: block; width: 200px; height: 44px;
    background: url('../app/layout/theme_digitalcup/images/logo.png') no-repeat left center;
    background-size: contain; text-indent: -9999px;
}
.dn-topbar ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.dn-topbar ul li a {
    color: #fff; font-size: 13px; font-weight: bold;
    padding: 0 14px; display: block; height: 45px; line-height: 45px;
    text-decoration: none;
}
.dn-topbar ul li a:hover { color: #d9d9d9; background: #000; }
.dn-topbar .divider {
    width: 1px; height: 45px; background: #000;
    box-shadow: 1px 0 0 rgba(255,255,255,0.1);
}
.dn-topbar .active-link { color: #ff7e00 !important; }
.btn-connect {
    background: #005F6B; color: #fff !important; padding: 5px 14px;
    border-radius: 3px; font-size: 12px; font-weight: bold;
    line-height: normal; display: inline-block; margin: 0 5px;
}
.btn-register {
    background: #ff3035; color: #fff !important; padding: 5px 14px;
    border-radius: 3px; font-size: 12px; font-weight: bold;
    line-height: normal; display: inline-block; margin: 0 5px;
}
.btn-connect:hover { background: #007a8a; }
.btn-register:hover { background: #cc0000; }

/* ============================================ */
/*  HEADER (zone image fond)                    */
/* ============================================ */
#header {
    width: 100%; height: 190px;
    padding-top: 25px;
}

/* ============================================ */
/*  NAVIGATION MENU (#cssmenu)                  */
/* ============================================ */
#cssmenu {
    width: 990px; margin: 0 auto;
    height: 37px;
    border: 1px solid #bebebe;
    border-radius: 5px;
    background: linear-gradient(to bottom, #fff 0%, #dfdfdf 100%);
    position: relative; z-index: 100;
}
#cssmenu > ul {
    list-style: none; padding: 0; margin: 0; display: flex;
}
#cssmenu > ul > li {
    position: relative; display: block;
}
#cssmenu > ul > li > a {
    padding: 0 24px;
    font-family: Arial; font-size: 11px; font-weight: bold;
    line-height: 37px; height: 37px;
    text-decoration: none; color: #929292;
    display: block;
    border-left: 1px solid #f7f7f7; border-right: 1px solid #c5c5c5;
    transition: all 0.3s ease;
}
#cssmenu > ul > li:first-child > a { border-left: none; }
#cssmenu > ul > li:last-child > a { border-right: none; }
#cssmenu > ul > li > a:hover { background: #fff; color: #cc1f1f; }
#cssmenu > ul > li.active > a { background: #fff; color: #cc1f1f; }
#cssmenu > ul > li.boutique {
    background: url('../app/layout/theme_digitalcup/images/h2-rouge.jpg') repeat-x;
}
#cssmenu > ul > li.boutique > a { color: #fff; }
#cssmenu > ul > li.boutique > a:hover { color: #ffd; }

/* Sous-menus */
#cssmenu ul li > ul {
    display: none; position: absolute; top: 37px; left: 0;
    width: 220px; z-index: 999;
    background: url('../app/layout/theme_digitalcup/images/h2-gris.jpg') repeat-x #3f3f3f;
    border-radius: 0 5px 5px 5px;
    list-style: none; padding: 5px 0; margin: 0;
}
#cssmenu ul li:hover > ul { display: block; }
#cssmenu ul li > ul li {
    display: block; margin: 0; padding: 0;
}
#cssmenu ul li > ul li a {
    display: block; padding: 7px 14px;
    color: #fff; font-family: Arial; font-size: 11px; font-weight: bold;
    text-decoration: none; transition: all 0.3s ease;
    height: auto; line-height: normal; border: none;
}
#cssmenu ul li > ul li a:hover { background: #fff; color: #ff0000; }

/* ============================================ */
/*  CONTENT FIX (conteneur principal)           */
/* ============================================ */
#contentFix {
    width: 990px; margin: 0 auto;
    padding-top: 76px;
}

.header1 { width: 100%; height: 5px; }

/* ============================================ */
/*  WRAPPER (zone blanche)                      */
/* ============================================ */
#wrapper {
    border: 1px solid #c5c5c5;
    margin: 0 auto;
    border-radius: 5px;
    width: 990px;
    background-color: #fff;
    padding: 5px;
    box-sizing: border-box;
}
.main-row {
    display: flex;
    gap: 5px;
}

/* ============================================ */
/*  CONTENT (colonne principale)                */
/* ============================================ */
#content {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid #dadada;
    border-bottom-width: 4px;
    border-radius: 5px 5px 0 0;
}
#content h1 {
    background-image: url("../app/layout/theme_digitalcup/images/barlogo.png"), url("../app/layout/theme_digitalcup/images/h2-rouge.jpg");
    background-position: right top, left top;
    background-repeat: no-repeat, repeat;
    height: 27px; color: white;
    text-decoration: none; text-transform: uppercase;
    font-size: 14px; font-weight: bold;
    font-family: arial, helvetica, sans-serif;
    padding: 10px 0 0 10px;
    border-radius: 5px 5px 0 0;
    margin: 0;
}
#content h2 {
    background-image: url("../app/layout/theme_digitalcup/images/barlogo.png"), url("../app/layout/theme_digitalcup/images/h2-rouge.jpg");
    background-position: right top, left top;
    background-repeat: no-repeat, repeat;
    height: 27px; color: white;
    text-decoration: none; text-transform: uppercase;
    font-size: 13px; font-weight: bold;
    font-family: arial, helvetica, sans-serif;
    padding: 10px 0 0 10px;
    margin: 0;
}
#content h4 {
    background: url('../app/layout/theme_digitalcup/images/h2-gris.jpg') repeat-x;
    height: 27px; color: white;
    text-decoration: none; text-transform: uppercase;
    font-size: 13px; font-weight: bold;
    font-family: arial, helvetica, sans-serif;
    padding: 10px 0 0 8px;
    border-radius: 5px 5px 0 0;
    margin: 0;
}

/* ============================================ */
/*  SIDEBAR DROITE                              */
/* ============================================ */
#sidebar-right {
    width: 260px; min-width: 260px;
}
.block {
    width: 260px;
    margin: 0 0 5px 0;
    border: 1px solid #dadada;
    border-bottom-width: 4px;
    border-radius: 5px;
    background: #fff;
}
.block > h4 {
    background: url('../app/layout/theme_digitalcup/images/h2-gris.jpg') repeat-x;
    height: 27px; color: white;
    text-decoration: none; text-transform: uppercase;
    font-size: 12px; font-weight: bold;
    font-family: arial, helvetica, sans-serif;
    padding: 10px 0 0 8px;
    border-radius: 5px 5px 0 0;
    margin: 0;
}
.block > div { padding: 0; }

/* ============================================ */
/*  COMPOSANTS CONTENU                          */
/* ============================================ */

/* Banniere jeux */
.game-banners { padding: 10px; }
.game-banners img {
    width: 100%; display: block; margin-bottom: 4px;
    border-radius: 2px;
}

/* Tournoi item */
.tournament-item {
    padding: 8px 10px; border-bottom: 1px solid #eee;
    font-size: 12px; display: flex; align-items: center; gap: 6px;
}
.tournament-item:last-child { border-bottom: none; }
.tournament-item .game-icon { width: 22px; height: 22px; border-radius: 2px; flex-shrink: 0; }
.tournament-item .t-name { font-weight: bold; }
.tournament-item .t-name a { color: #005F6B; }
.tournament-item .t-name a:hover { color: #00B4CC; }
.status { font-size: 10px; padding: 2px 7px; border-radius: 3px; color: white; white-space: nowrap; }
.status-open { background: #5cb85c; }
.status-progress { background: #f0ad4e; }
.status-closed { background: #999; }
.t-info { margin-left: auto; font-size: 10px; color: #888; white-space: nowrap; }

/* Match tables */
.match-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.match-table td, .match-table th { padding: 6px 8px; border-bottom: 1px solid #eee; vertical-align: middle; }
.match-table th { background: #f5f5f5; font-size: 11px; color: #666; text-align: left; font-weight: bold; }
.match-table tr:last-child td { border-bottom: none; }
.match-table tr:hover { background: #f8f8f8; }
.match-table a { color: #005F6B; font-weight: bold; }
.match-table a:hover { color: #00B4CC; }
.match-table .eq-r { text-align: right; width: 30%; }
.match-table .eq-l { text-align: left; width: 30%; }
.match-table .vs-col { text-align: center; width: 5%; color: #999; }
.match-table .score { text-align: center; font-weight: bold; width: 5%; font-size: 14px; }
.match-table .date-col { text-align: center; color: #888; font-size: 10px; width: 15%; }
.match-table .game-col { font-size: 10px; color: #888; text-align: right; width: 10%; }
.win { color: #5cb85c; }
.lose { color: #d9534f; }

/* Generic data table */
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table td, .data-table th { padding: 6px 8px; border-bottom: 1px solid #eee; vertical-align: middle; }
.data-table th { background: #f5f5f5; font-size: 11px; color: #666; text-align: left; font-weight: bold; border-bottom: 2px solid #ddd; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover { background: #f8f8f8; }
.data-table a { color: #005F6B; font-weight: bold; }
.data-table a:hover { color: #00B4CC; }
.data-table .game-icon { width: 20px; height: 20px; border-radius: 2px; vertical-align: middle; }

/* List items */
.list-item {
    padding: 6px 10px; border-bottom: 1px solid #eee; font-size: 12px;
    display: flex; align-items: center; gap: 5px;
}
.list-item:last-child { border-bottom: none; }
.list-item a { color: #005F6B; }
.list-item a:hover { color: #00B4CC; }
.list-item .info-right { margin-left: auto; color: #888; font-size: 10px; white-space: nowrap; }
.flag-icon { height: 12px; }

/* Online dot */
.online-dot {
    display: inline-block; width: 8px; height: 8px;
    border-radius: 50%; background: #5cb85c; flex-shrink: 0;
}
.online-dot.admin { background: #ff3035; }

/* Stats */
.stats-block { padding: 8px 10px; font-size: 12px; }
.stat-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 10px; border-bottom: 1px solid #f0f0f0;
}
.stat-row:last-child { border-bottom: none; }
.stat-value { font-weight: bold; color: #005F6B; }

/* Calendar mini */
.mini-cal { padding: 8px; }
.mini-cal table { width: 100%; font-size: 11px; text-align: center; border-collapse: collapse; }
.mini-cal .cal-header td { background: #005F6B; color: #fff; padding: 6px; font-weight: bold; font-size: 12px; }
.mini-cal .cal-days td { background: #f5f5f5; font-weight: bold; padding: 4px; color: #555; }
.mini-cal td { padding: 4px; color: #666; }
.mini-cal .has-event { color: #ff3035; font-weight: bold; cursor: pointer; }

/* ============================================ */
/*  NEWS ARTICLES (accueil)                     */
/* ============================================ */
.news-article {
    border: 1px solid #dadada; border-bottom-width: 4px;
    border-radius: 5px 5px 0 0;
    margin: 10px; overflow: hidden;
}
.news-article h2 { margin: 0; }
.news-article .article-meta {
    background: url('../app/layout/theme_digitalcup/images/infos_bg.png') repeat-x #555;
    color: #fff; font-size: 11px; padding: 3px 10px;
    font-family: arial;
}
.news-article .article-body {
    padding: 10px; font-size: 13px; line-height: 1.5;
}
.news-article .article-body img {
    max-width: 100%; height: auto; border-radius: 3px;
}

/* VS image */
.vs-img { height: 14px; vertical-align: middle; }

/* ============================================ */
/*  CONTENT PADDING (inner content areas)       */
/* ============================================ */
.content-padding { padding: 10px; }
.content-padding p { margin-bottom: 10px; line-height: 1.5; }

/* ============================================ */
/*  INFO BOX (profil equipe/joueur/tournoi)     */
/* ============================================ */
.info-box {
    margin: 10px;
    border: 1px solid #dadada;
    border-radius: 5px;
    overflow: hidden;
}
.info-box table { width: 100%; border-collapse: collapse; font-size: 12px; }
.info-box td { padding: 8px 12px; border-bottom: 1px solid #eee; }
.info-box td:first-child { font-weight: bold; color: #555; width: 180px; background: #fafafa; }
.info-box tr:last-child td { border-bottom: none; }

/* ============================================ */
/*  FORM STYLES                                 */
/* ============================================ */
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 4px; font-size: 12px; color: #555; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%; padding: 7px 10px; border: 1px solid #ccc;
    border-radius: 3px; font-size: 12px; font-family: inherit;
    box-sizing: border-box;
}
.form-group textarea { height: 120px; resize: vertical; }
.btn-submit {
    background: #005F6B; color: #fff; border: none; padding: 8px 24px;
    border-radius: 3px; font-size: 13px; font-weight: bold; cursor: pointer;
}
.btn-submit:hover { background: #007a8a; }
.search-bar {
    padding: 10px; display: flex; gap: 5px;
}
.search-bar input {
    flex: 1; padding: 7px 10px; border: 1px solid #ccc;
    border-radius: 3px; font-size: 12px;
}
.search-bar button {
    background: #005F6B; color: #fff; border: none; padding: 7px 16px;
    border-radius: 3px; font-size: 12px; font-weight: bold; cursor: pointer;
}
.search-bar button:hover { background: #007a8a; }

/* ============================================ */
/*  BRACKET (tournament bracket)                */
/* ============================================ */
.bracket { padding: 15px; overflow-x: auto; }
.bracket-round { display: inline-block; vertical-align: top; margin-right: 30px; }
.bracket-round h5 { text-align: center; font-size: 11px; color: #888; margin-bottom: 10px; text-transform: uppercase; }
.bracket-match {
    border: 1px solid #dadada; border-radius: 3px; margin-bottom: 15px;
    width: 180px; font-size: 11px; overflow: hidden;
}
.bracket-match .bm-team {
    padding: 5px 8px; display: flex; justify-content: space-between;
    border-bottom: 1px solid #eee;
}
.bracket-match .bm-team:last-child { border-bottom: none; }
.bracket-match .bm-team.winner { background: #f0fff0; font-weight: bold; }
.bracket-match .bm-score { font-weight: bold; }

/* ============================================ */
/*  CALENDAR (full page)                        */
/* ============================================ */
.full-calendar { padding: 10px; }
.full-calendar table { width: 100%; border-collapse: collapse; }
.full-calendar th {
    background: #005F6B; color: #fff; padding: 10px; font-size: 12px;
    text-align: center; border: 1px solid #004a55;
}
.full-calendar td {
    border: 1px solid #ddd; padding: 6px 8px; vertical-align: top;
    height: 70px; width: 14.28%; font-size: 11px;
}
.full-calendar .cal-day-num { font-weight: bold; font-size: 13px; color: #333; margin-bottom: 4px; }
.full-calendar .cal-event {
    background: #ff3035; color: #fff; font-size: 9px; padding: 1px 4px;
    border-radius: 2px; margin-bottom: 2px; display: block;
}
.full-calendar .cal-event-blue { background: #005F6B; }
.full-calendar .cal-empty { background: #f9f9f9; }

/* ============================================ */
/*  TABS                                        */
/* ============================================ */
.nav-tabs-custom {
    list-style: none; margin: 0; padding: 0; display: flex;
    border-bottom: 2px solid #ddd; margin: 10px 10px 0 10px;
}
.nav-tabs-custom li a {
    display: block; padding: 8px 20px; font-size: 12px; font-weight: bold;
    color: #888; text-decoration: none; border: 1px solid transparent;
    border-bottom: none; border-radius: 3px 3px 0 0; margin-bottom: -2px;
}
.nav-tabs-custom li a:hover { color: #005F6B; background: #f5f5f5; }
.nav-tabs-custom li.active a {
    color: #cc1f1f; border-color: #ddd; background: #fff;
    border-bottom: 2px solid #fff;
}

/* ============================================ */
/*  FOOTER                                      */
/* ============================================ */
#footer {
    padding: 15px 10px; text-align: center;
    color: #999; font-size: 11px;
    border-top: 1px solid #ddd;
    margin-top: 10px;
}
#footer a { color: #005F6B; }
#footer p { margin: 4px 0; }

/* ============================================ */
/*  RESPONSIVE (petit ecran)                    */
/* ============================================ */
@media (max-width: 1020px) {
    #contentFix, #wrapper, #cssmenu { width: auto; max-width: 100%; }
    .main-row { flex-direction: column; }
    #sidebar-right { width: 100%; min-width: auto; }
    .block { width: 100%; }
    #cssmenu > ul { flex-wrap: wrap; }
}
