/* ==========================================
   VARIABLES ET POLICES DE CARACTÈRES
   ========================================== */
:root {
    --ow-orange: #f99e1a;
    --ow-blue: #40b4e5;
    --dark-bg: #111622;
    --card-bg: #1a2233;
    --text-color: #f3f4f6;
    --tank-color: #2da1f7;
    --dps-color: #f13c3c;
    --soutien-color: #4cd137;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    overflow-x: hidden;
}

/* ==========================================
   BARRE DE NAVIGATION DESIGN
   ========================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background-color: rgba(17, 22, 34, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--ow-orange);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: white;
}

.logo span {
    color: var(--ow-orange);
}

nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s, border-bottom 0.3s;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

nav a:hover, nav a.active {
    color: var(--ow-orange);
    border-bottom: 2px solid var(--ow-orange);
}

/* ==========================================
   HERO BANNER (ACCUEIL)
   ========================================== */
.hero-banner {
    background: linear-gradient(135deg, rgba(17,22,34,0.9) 30%, rgba(26,34,51,0.6)), url('https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    align-items: center;
    padding: 0 8%;
    border-bottom: 1px solid #232d42;
}

.hero-container {
    max-width: 700px;
}

.hero-tagline {
    color: var(--ow-blue);
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.hero-banner h1 {
    font-size: 3rem;
    font-weight: 900;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.hero-banner p {
    font-size: 1.2rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* ==========================================
   BOUTONS ET COMPOSANTS GENERAUX
   ========================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--ow-orange);
    color: white;
}

.btn-primary:hover {
    background-color: #e08712;
}

.btn-secondary {
    background-color: #334155;
    color: white;
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: #475569;
}

.main-buttons {
    display: flex;
    gap: 15px;
}

/* ==========================================
   STRUCTURE DE CONTENU
   ========================================== */
.content-section {
    padding: 60px 8%;
}

.content-section.alternate-bg {
    background-color: #161d2d;
}

.no-top-padding {
    padding-top: 0 !important;
}

.text-center {
    text-align: center;
}

.section-header {
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.section-header h2, .section-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.barre-separation {
    width: 60px;
    height: 4px;
    background-color: var(--ow-orange);
    margin: 0 auto 20px auto;
    border-radius: 2px;
}

.lead-text {
    font-size: 1.15rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* Grilles */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Cartes */
.card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #232d42;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.mode-shortcut-card {
    position: relative;
    padding-top: 45px;
}

.mode-badge-top {
    position: absolute;
    top: 15px;
    left: 30px;
    font-size: 0.75rem;
    font-weight: 800;
    background-color: var(--tank-color);
    padding: 2px 8px;
    border-radius: 4px;
}

.mode-badge-top.event-badge { background-color: var(--dps-color); }
.mode-badge-top.forge-badge { background-color: var(--ow-orange); }

.btn-link {
    color: var(--ow-blue);
    text-decoration: none;
    font-weight: 700;
    margin-top: 15px;
    display: inline-block;
}

.btn-link:hover {
    text-decoration: underline;
}

/* ==========================================
   PAGE HEROS - FILTRES, BADGES & RECHERCHE
   ========================================== */
.roles-presentation {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0 40px 0;
}

.role-desc {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.tank-dot { background-color: var(--tank-color); }
.dps-dot { background-color: var(--dps-color); }
.soutien-dot { background-color: var(--soutien-color); }

.filters {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: #1a2233;
    color: #94a3b8;
    border: 2px solid #232d42;
    padding: 10px 25px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--ow-orange);
    color: white;
    border-color: var(--ow-orange);
}

.search-container {
    margin: 25px auto;
    text-align: center;
}

.search-input {
    padding: 12px 25px;
    width: 100%;
    max-width: 350px;
    border-radius: 30px;
    border: 2px solid #232d42;
    background-color: #1a2233;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: var(--ow-orange);
}

/* Cartes des héros */
.hero-card {
    text-align: left;
    transition: transform 0.3s, opacity 0.3s, box-shadow 0.3s;
}

.hero-card h3 {
    margin: 15px 0 10px 0;
    font-size: 1.5rem;
}

.hero-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    min-height: 60px;
}

.badge {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    color: white;
}
.badge.tank { background-color: var(--tank-color); }
.badge.degats { background-color: var(--dps-color); }
.badge.soutien { background-color: var(--soutien-color); }

.skills {
    font-size: 0.85rem;
    border-top: 1px solid #232d42;
    padding-top: 10px;
    color: #cbd5e1;
}

/* ==========================================
   PAGE EN DETAIL : MODES DE JEU & HISTOIRE
   ========================================== */
.mode-detail-block, .story-block {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 35px;
    border-left: 5px solid var(--ow-orange);
    text-align: left;
}

.mode-detail-block h2, .story-block h2 {
    margin-top: 0;
    font-size: 1.8rem;
}

.mode-sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.mode-info {
    background-color: #111622;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #232d42;
}

.mode-info h3 {
    margin-top: 0;
    color: var(--ow-blue);
}

.arcade-list {
    padding-left: 20px;
    line-height: 1.8;
    color: #cbd5e1;
}

.story-badge {
    display: inline-block;
    background-color: var(--ow-orange);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
}
.story-badge.badge-red {
    background-color: var(--dps-color);
}

/* ==========================================
   PAGE LA FORGE
   ========================================== */
.forge-block {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 35px;
    border-top: 4px solid var(--ow-blue);
    position: relative;
    box-sizing: border-box;
    text-align: left;
}

.forge-tech-badge {
    position: absolute;
    top: -12px;
    left: 30px;
    background-color: #2da1f7;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 4px 14px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.forge-code-preview {
    background-color: #0b0e16;
    border-left: 4px solid var(--ow-orange);
    padding: 20px;
    border-radius: 6px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 20px;
    color: #cbd5e1;
    overflow-x: auto;
}

.interactive-container {
    background-color: #111622;
    padding: 25px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #232d42;
}

.quiz-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.quiz-btn {
    background-color: #1a2233;
    color: white;
    border: 1px solid #334155;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}
.quiz-btn:hover { background-color: #232d42; }

footer {
    text-align: center;
    padding: 40px 8%;
    background-color: #0b0e16;
    color: #64748b;
    font-size: 0.9rem;
    border-top: 1px solid #161d2d;
}
