/* ==========================================================================
   jeux_d_arcades.css — Jeux d'Arcade
   Thème : néon arcade, magenta/cyan/jaune, scanlines CRT, pixel
   ========================================================================== */

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

body {
    margin: 0;
    font-family: 'VT323', 'Courier New', monospace;
    background: #0b0b0b;
    color: #eaeaea;
    line-height: 1.55;
    font-size: 19px;
    overflow-x: hidden;
}

/* Effet CRT scanlines très subtil */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0,
        transparent 2px,
        rgba(0, 0, 0, .12) 2px,
        rgba(0, 0, 0, .12) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

/* Vignettage léger */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,.55) 100%);
    pointer-events: none;
    z-index: 9998;
}

/* HEADER ==================================================================== */
header {
    background: linear-gradient(90deg, #ff004c 0%, #6f00ff 100%);
    padding: 38px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(255, 0, 76, .35);
    border-bottom: 4px double #ffcc00;
}

header::before {
    /* Étoiles d'arrière-plan */
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle 1px at 12% 30%, #fff 0, transparent 1px),
        radial-gradient(circle 1px at 78% 65%, #fff 0, transparent 1px),
        radial-gradient(circle 1px at 45% 80%, #fff 0, transparent 1px),
        radial-gradient(circle 1px at 89% 20%, #fff 0, transparent 1px),
        radial-gradient(circle 1px at 22% 70%, #fff 0, transparent 1px);
    opacity: .45;
}

header h1 {
    font-family: 'Press Start 2P', 'VT323', monospace;
    font-size: 2.4em;
    margin: 0;
    color: #ffcc00;
    text-shadow:
        0 0 8px #ff004c,
        0 0 16px #ff004c,
        3px 3px 0 #000,
        -3px 3px 0 #000;
    letter-spacing: 3px;
}

header p {
    font-size: 1.2em;
    margin-top: 14px;
    color: #fff;
    text-shadow: 0 0 6px rgba(0, 234, 255, .8);
    letter-spacing: 2px;
}

.back-link {
    position: absolute;
    top: 14px;
    left: 18px;
    color: #00eaff;
    text-decoration: none;
    font-size: 0.95em;
    border: 1px solid #00eaff;
    padding: 4px 10px;
    background: rgba(0, 0, 0, .6);
    z-index: 2;
    letter-spacing: 1px;
}
.back-link:hover { background: #00eaff; color: #000; }

/* NAV ======================================================================= */
nav {
    background: #111;
    padding: 14px;
    text-align: center;
    border-bottom: 2px solid #00eaff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 0 20px rgba(0, 234, 255, .25);
}

nav a {
    display: inline-block;
    color: #00eaff;
    margin: 4px 10px;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.95em;
    transition: text-shadow .2s, color .2s;
}
nav a:hover {
    color: #ffcc00;
    text-shadow: 0 0 10px #ffcc00;
}

/* SECTIONS ================================================================== */
section {
    padding: 36px 30px;
    max-width: 1180px;
    margin: 0 auto;
}

h2 {
    font-family: 'Press Start 2P', 'VT323', monospace;
    color: #ffcc00;
    border-bottom: 2px solid #ff004c;
    padding-bottom: 10px;
    font-size: 1.45em;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 204, 0, .5);
    margin-bottom: 20px;
}

h3 {
    color: #00ffaa;
    font-size: 1.25em;
    margin: 18px 0 8px;
    text-shadow: 0 0 6px rgba(0, 255, 170, .5);
    letter-spacing: 1px;
}

p { line-height: 1.7; margin-bottom: 12px; }
ul, ol { line-height: 1.8; margin: 10px 0 14px 28px; }
li { margin-bottom: 4px; }
strong { color: #ffcc00; }
em { color: #00eaff; font-style: italic; }

/* CARDS ===================================================================== */
.card {
    background: #141414;
    padding: 24px 26px;
    margin: 22px 0;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(255, 0, 76, .15),
                inset 0 0 30px rgba(111, 0, 255, .12);
    border: 1px solid rgba(0, 234, 255, .25);
    position: relative;
}

.card::before {
    /* Petit angle néon en haut à gauche */
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 30px; height: 30px;
    border-top: 3px solid #ff004c;
    border-left: 3px solid #ff004c;
    border-top-left-radius: 6px;
}

.card::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 30px; height: 30px;
    border-bottom: 3px solid #00eaff;
    border-right: 3px solid #00eaff;
    border-bottom-right-radius: 6px;
}

/* TABLES ==================================================================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    font-size: 0.95em;
}

th, td {
    border: 1px solid #333;
    padding: 10px 12px;
}

th {
    background: linear-gradient(180deg, #2a0040, #1a0028);
    color: #ffcc00;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

td { background: #1a1a1a; }
tr:nth-child(even) td { background: #141414; }

/* MARQUEE TITLE / HIGHLIGHT ================================================= */
.highlight {
    color: #00eaff;
    font-weight: bold;
    text-shadow: 0 0 6px #00eaff;
}

/* PIXEL GRID OF GAMES ======================================================= */
.games-pixel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.pixel-game {
    background: #0c0c0c;
    border: 2px solid #6f00ff;
    padding: 16px;
    text-align: center;
    transition: transform .15s, box-shadow .15s;
}

.pixel-game:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 18px rgba(255, 0, 76, .5);
    border-color: #ff004c;
}

.pixel-game .pix-icon {
    font-size: 2.4em;
    line-height: 1;
}

.pixel-game .pix-title {
    color: #ffcc00;
    font-weight: bold;
    margin-top: 10px;
    font-size: 0.95em;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pixel-game .pix-year {
    color: #00ffaa;
    font-size: 0.85em;
    margin-top: 4px;
}

.pixel-game .pix-maker {
    color: #999;
    font-size: 0.8em;
    font-style: italic;
}

/* PONG GAME ================================================================= */
.pong-wrap {
    text-align: center;
    margin: 24px 0;
}

#pong-canvas {
    background: #000;
    border: 4px solid #00eaff;
    box-shadow: 0 0 30px rgba(0, 234, 255, .4);
    image-rendering: pixelated;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.pong-controls {
    margin-top: 14px;
    color: #00ffaa;
    font-size: 0.95em;
    letter-spacing: 1px;
}

.pong-score {
    font-family: 'Press Start 2P', 'VT323', monospace;
    color: #ffcc00;
    font-size: 1.6em;
    letter-spacing: 4px;
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(255, 204, 0, .6);
}

#pong-start {
    background: #ff004c;
    color: #fff;
    border: 2px solid #ffcc00;
    padding: 10px 24px;
    font-family: inherit;
    font-size: 1.1em;
    cursor: pointer;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 10px;
    box-shadow: 0 0 15px rgba(255, 0, 76, .5);
}
#pong-start:hover {
    background: #ffcc00;
    color: #000;
    border-color: #fff;
}

/* TIMELINE ================================================================= */
.timeline {
    border-left: 2px dashed #ff004c;
    padding-left: 24px;
    margin: 18px 0;
}
.timeline-event {
    position: relative;
    padding-bottom: 14px;
}
.timeline-event::before {
    content: '▶';
    position: absolute;
    left: -32px;
    top: 0;
    color: #ffcc00;
    font-size: 0.85em;
}
.timeline-event .date {
    color: #00eaff;
    font-weight: bold;
    margin-right: 8px;
    letter-spacing: 1px;
}

/* FOOTER ==================================================================== */
footer {
    background: #111;
    text-align: center;
    padding: 24px;
    color: #888;
    font-size: 0.9em;
    border-top: 2px solid #ff004c;
    letter-spacing: 1px;
}

/* RESPONSIVE =============================================================== */
@media (max-width: 700px) {
    header h1 { font-size: 1.5em; letter-spacing: 1px; }
    h2 { font-size: 1.1em; }
    section { padding: 24px 18px; }
    nav a { margin: 2px 6px; font-size: 0.82em; }
}
