/* ============================================================
   HexaFront — CSS commun
   hexafront/static/hexafront/css/hexafront.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

/* RESET & BASE */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: #0f1219;
    color: #c8d0e0;
    font-family: 'Share Tech Mono', monospace;
    min-height: 100vh;
}

a { color: #4da6ff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* HEADER */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    background: #111827;
    border-bottom: 1px solid #2d3748;
}

header h1 {
    font-size: 1.4rem;
    letter-spacing: 0.2em;
    color: #4da6ff;
    text-shadow: 0 0 20px rgba(77,166,255,0.3);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 12px;
    color: #4a5568;
}

.header-right .user { color: #c8d0e0; }
.header-right a { color: #4a5568; text-decoration: none; }
.header-right a:hover { color: #c8d0e0; }

/* LAYOUT */
.layout {
    display: flex;
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    gap: 1.5rem;
}

.col-main { flex: 1; }
.col-side { width: 280px; flex-shrink: 0; }

.container {
    max-width: 600px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

/* SECTIONS */
.section-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #CAD7E8;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #1a2030;
}

.page-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

/* CARDS */
.card {
    padding: 0.875rem 1rem;
    border: 1px solid #1e2535;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111827;
    transition: border-color 0.15s, background 0.15s;
}

.card:hover { background: #141c2b; border-color: #2d3748; }

.card-left .titre {
    font-size: 13px;
    color: #c8d0e0;
    margin-bottom: 4px;
}

.card-left .meta {
    font-size: 11px;
    color: #4a5568;
    line-height: 1.5;
}

/* PANEL (carte de contenu pleine) */
.panel {
    background: #111827;
    border: 1px solid #2d3748;
    border-radius: 8px;
    padding: 2rem;
}

/* BOUTONS */
.btn {
    background: #1b6ca8;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    text-decoration: none;
    display: inline-block;
    transition: background 0.15s;
    white-space: nowrap;
}

.btn:hover { background: #2585cc; text-decoration: none; color: white; }

.btn-danger {
    background: #7e1a1a;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 11px;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    transition: background 0.15s;
}

.btn-danger:hover { background: #9e2020; }

.btn-join {
    background: #1a5c2a;
    color: #4cff72;
    border: 1px solid #1a5c2a;
}

.btn-join:hover { background: #1e6e32; }

.btn-new {
    background: #1b6ca8;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 13px;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    width: 100%;
    text-align: center;
    display: block;
    text-decoration: none;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    transition: background 0.15s;
}

.btn-new:hover { background: #2585cc; text-decoration: none; color: white; }

.btn-full {
    width: 100%;
    background: #1b6ca8;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-full:hover { background: #2585cc; }

/* BADGES */
.badge {
    display: inline-block;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
}

.badge-attente { background: rgba(240,192,64,0.15); color: #f0c040; border: 1px solid rgba(240,192,64,0.3); }
.badge-cours { background: rgba(77,166,255,0.1); color: #4da6ff; border: 1px solid rgba(77,166,255,0.2); }
.badge-terminee { background: rgba(74,85,104,0.2); color: #4a5568; border: 1px solid #2d3748; }

/* EMPTY STATE */
.empty {
    font-size: 12px;
    color: #CAD7E8;
    padding: 1rem 0;
    text-align: center;
    border: 1px dashed #1e2535;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

/* SIDEBAR INFO BOX */
.info-box {
    background: #111827;
    border: 1px solid #1e2535;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 12px;
    color: #4a5568;
    line-height: 1.8;
}

.info-box .titre {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

/* FORMULAIRES */
.field { margin-bottom: 1.25rem; }

.field label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: #4a5568;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    background: #0f1219;
    border: 1px solid #2d3748;
    border-radius: 4px;
    padding: 10px 12px;
    color: #c8d0e0;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    transition: border-color 0.2s;
    outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #4da6ff;
    box-shadow: 0 0 0 2px rgba(77,166,255,0.1);
}

/* MESSAGES */
.msg-error {
    background: rgba(126,26,26,0.3);
    border: 1px solid #7e1a1a;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 12px;
    color: #ff6b6b;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.msg-success {
    background: rgba(26,92,42,0.3);
    border: 1px solid #1a5c2a;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 12px;
    color: #4cff72;
    margin-bottom: 1.25rem;
}

/* COULEURS EQUIPES */
.equipe-bleu { color: #4da6ff; }
.equipe-rouge { color: #ff6b6b; }
.equipe-attente { color: #f0c040; }

/* SEPARATEUR */
.sep {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    font-size: 11px;
    color: #2d3748;
}

.sep::before, .sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #1e2535;
}

/* FOOTER */
.footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: #2d3748;
}

/* GRILLE HEXAGONALE (fond login) */
.hex-bg {
    position: fixed;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpolygon points='28,2 54,16 54,44 28,58 2,44 2,16' fill='none' stroke='%234da6ff' stroke-width='1'/%3E%3Cpolygon points='28,52 54,66 54,94 28,108 2,94 2,66' fill='none' stroke='%234da6ff' stroke-width='1'/%3E%3C/svg%3E");
    z-index: 0;
}
