/* ==========================================================================
   consoles.css — Consoles
   Thème : moderne clean, marques colorées, esprit "fiche produit"
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Manrope', 'Inter', system-ui, sans-serif;
    line-height: 1.65;
    color: #1a1d2e;
    background: #f0f2f8;
    background-image:
        linear-gradient(135deg, #f0f2f8 0%, #e8ebf5 100%);
    min-height: 100vh;
}

.con-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 22px 60px;
}

.back-link {
    display: inline-block;
    margin-bottom: 22px;
    color: #4a5fc1;
    text-decoration: none;
    font-size: 0.92em;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-bottom: 1px solid #4a5fc1;
}
.back-link:hover { color: #1a1d2e; border-color: #1a1d2e; }

/* HERO ====================================================================== */
.con-hero {
    background:
        linear-gradient(135deg, #1a1d2e 0%, #2d3354 60%, #4a5fc1 100%);
    color: #fff;
    padding: 60px 40px;
    border-radius: 20px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(26, 29, 46, .22);
}

.con-hero::before {
    /* Manettes décoratives en pseudo-3D */
    content: '🎮';
    position: absolute;
    right: 30px; top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    font-size: 12em;
    opacity: 0.08;
    pointer-events: none;
}

.con-hero h1 {
    font-size: 3.4em;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 12px;
    line-height: 1;
}

.con-hero .tagline {
    font-size: 1.15em;
    color: rgba(255, 255, 255, .9);
    font-weight: 300;
    max-width: 640px;
    line-height: 1.55;
}

/* SECTIONS ================================================================== */
.section {
    background: #fff;
    border-radius: 18px;
    padding: 32px 38px;
    margin-bottom: 26px;
    box-shadow: 0 8px 24px rgba(26, 29, 46, .07);
}

.section h2 {
    font-size: 1.7em;
    font-weight: 700;
    color: #1a1d2e;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 10px;
}
.section h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 60px; height: 3px;
    background: linear-gradient(90deg, #4a5fc1, #00b3a4);
    border-radius: 2px;
}

.section h3 {
    font-size: 1.2em;
    font-weight: 700;
    margin: 18px 0 10px;
    color: #2d3354;
}

.section p { margin-bottom: 12px; color: #404560; }
.section ul, .section ol { margin: 10px 0 14px 26px; }
.section li { margin-bottom: 6px; color: #404560; }
.section strong { color: #1a1d2e; }
.section em { font-style: italic; color: #2d3354; }

/* BRAND CARDS GRID ========================================================== */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin: 16px 0 8px;
}

.brand-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(26, 29, 46, .1);
    display: flex;
    flex-direction: column;
}

.brand-head {
    padding: 24px 22px 18px;
    color: #fff;
    font-weight: 700;
}
.brand-head .b-name {
    font-size: 1.5em;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}
.brand-head .b-since {
    font-size: 0.85em;
    opacity: 0.85;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.brand-body {
    padding: 18px 22px 22px;
    flex: 1;
}
.brand-body ul { margin: 0; list-style: none; }
.brand-body li {
    padding: 5px 0;
    border-bottom: 1px solid #ecedf3;
    font-size: 0.93em;
    display: flex;
    justify-content: space-between;
    color: #404560;
}
.brand-body li:last-child { border-bottom: none; }
.brand-body li .b-year {
    color: #8a8fa6;
    font-size: 0.85em;
    font-variant-numeric: tabular-nums;
}

/* Couleurs de marque */
.brand-nintendo .brand-head { background: linear-gradient(135deg, #e60012, #b40010); }
.brand-sony     .brand-head { background: linear-gradient(135deg, #003791, #0066cc); }
.brand-xbox     .brand-head { background: linear-gradient(135deg, #107c10, #0e6b0e); }
.brand-sega     .brand-head { background: linear-gradient(135deg, #0078d7, #1a52a8); }
.brand-atari    .brand-head { background: linear-gradient(135deg, #e2231a, #b51812); }
.brand-other    .brand-head { background: linear-gradient(135deg, #6a6a6a, #404040); }

/* GENERATIONS TIMELINE / SWITCHER =========================================== */
.gen-switcher {
    margin: 20px 0;
}

.gen-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
    border-bottom: 2px solid #e3e6f0;
    padding-bottom: 12px;
}

.gen-tab {
    background: #f0f2f8;
    color: #4a5fc1;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.92em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}

.gen-tab:hover {
    background: #dde2f2;
}

.gen-tab.active {
    background: linear-gradient(135deg, #4a5fc1, #00b3a4);
    color: #fff;
    box-shadow: 0 4px 12px rgba(74, 95, 193, .3);
}

.gen-panel {
    display: none;
    background: #f7f8fc;
    border-radius: 14px;
    padding: 22px 26px;
    border-left: 4px solid #4a5fc1;
    animation: fadeIn 0.25s ease;
}
.gen-panel.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.gen-panel h3 {
    color: #1a1d2e;
    font-size: 1.3em;
    margin-bottom: 6px;
}

.gen-panel .gen-period {
    color: #4a5fc1;
    font-size: 0.92em;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.gen-panel .gen-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.gen-console {
    background: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .05);
    border-left: 3px solid #00b3a4;
}
.gen-console strong {
    display: block;
    font-size: 0.98em;
    color: #1a1d2e;
}
.gen-console .meta {
    font-size: 0.82em;
    color: #6a6f88;
    margin-top: 2px;
}

/* TABLES ==================================================================== */
.section table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 0.93em;
    background: #f7f8fc;
    border-radius: 10px;
    overflow: hidden;
}
.section th {
    background: #1a1d2e;
    color: #fff;
    padding: 11px 14px;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.4px;
}
.section td {
    padding: 10px 14px;
    border-bottom: 1px solid #e3e6f0;
}
.section tr:last-child td { border-bottom: none; }
.section tr:hover td { background: #ecedf3; }

/* CALLOUTS ================================================================== */
.callout {
    background: linear-gradient(135deg, #fff8e6, #fff3d4);
    border-left: 4px solid #f5a623;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 16px 0;
}
.callout strong { color: #b8740b; }

/* RESPONSIVE ================================================================ */
@media (max-width: 700px) {
    .con-hero h1 { font-size: 2.3em; }
    .con-hero { padding: 40px 22px; }
    .section { padding: 24px 22px; }
    .gen-tab { padding: 8px 12px; font-size: 0.85em; }
}
