/* ==========================================================================
   go.css — Jeu de Go (sous-page ludothèque)
   Thème : bois clair de goban japonais (kaya), encre noire, sobriété zen
   ========================================================================== */

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

body {
    font-family: 'Shippori Mincho', 'Noto Serif JP', 'Times New Roman', serif;
    line-height: 1.85;
    color: #1a1410;
    background: #e9d8a6;
    background-image:
        repeating-linear-gradient(90deg, transparent 0 100px, rgba(120,80,40,.04) 100px 101px),
        repeating-linear-gradient(0deg, transparent 0 200px, rgba(120,80,40,.05) 200px 201px),
        radial-gradient(ellipse at center, #f4e4bc 0%, #e9d8a6 100%);
    min-height: 100vh;
}

.go-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #3d2914;
    text-decoration: none;
    font-size: 0.95em;
    border-bottom: 1px dashed #3d2914;
}
.back-link:hover { background: rgba(0,0,0,.05); }

/* HERO ====================================================================== */
.go-hero {
    background:
        radial-gradient(ellipse at top, rgba(255,255,255,.4) 0%, transparent 60%),
        linear-gradient(135deg, #d4a373 0%, #b8865d 100%);
    color: #1a1410;
    padding: 55px 40px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 35px;
    box-shadow: 0 10px 26px rgba(60,30,10,.35);
    border: 2px solid #6b4226;
    position: relative;
}

.go-hero h1 {
    font-size: 3.4em;
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 8px;
}
.go-hero .kanji {
    font-size: 2.6em;
    color: #1a1410;
    margin-bottom: 18px;
    letter-spacing: 0.4em;
}
.go-hero .stones {
    font-size: 2em;
    margin: 12px 0;
    letter-spacing: 0.3em;
}
.go-hero .black-stone, .go-hero .white-stone {
    display: inline-block;
    width: 36px; height: 36px;
    border-radius: 50%;
    margin: 0 6px;
    vertical-align: middle;
    box-shadow: 2px 3px 6px rgba(0,0,0,.4);
}
.go-hero .black-stone { background: radial-gradient(circle at 35% 30%, #555 0%, #000 70%); }
.go-hero .white-stone { background: radial-gradient(circle at 35% 30%, #fff 0%, #d0d0d0 90%); border: 1px solid #888; }
.go-hero .tagline {
    font-style: italic;
    font-size: 1.15em;
    margin-top: 12px;
}

/* SECTIONS ================================================================== */
.section {
    background: #fdf6e3;
    margin-bottom: 24px;
    padding: 32px 38px;
    border-radius: 3px;
    border-top: 3px solid #6b4226;
    box-shadow: 0 3px 14px rgba(60,30,10,.12);
}

.section h2 {
    font-size: 1.95em;
    color: #3d2914;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #c9a868;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section h3 {
    font-size: 1.35em;
    color: #5e3a1f;
    margin-top: 22px;
    margin-bottom: 8px;
    font-weight: 700;
}

.section p {
    margin-bottom: 14px;
    text-align: justify;
}

.section ul, .section ol { margin: 10px 0 14px 28px; }
.section li { margin-bottom: 6px; }

/* GOBAN décoratif =========================================================== */
.goban {
    width: 360px;
    height: 360px;
    margin: 25px auto;
    background: #d4a373;
    background-image:
        radial-gradient(ellipse at 50% 50%, rgba(255,255,255,.15) 0%, transparent 70%);
    border: 4px solid #6b4226;
    box-shadow: 0 8px 18px rgba(60,30,10,.4);
    position: relative;
    box-sizing: content-box;
    padding: 18px;
}

.goban-grid {
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(#1a1410 1px, transparent 1px),
        linear-gradient(90deg, #1a1410 1px, transparent 1px);
    background-size: calc(100%/8) calc(100%/8);
    position: relative;
}

.goban-grid::after {
    /* hoshi (étoiles) */
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle, #1a1410 3px, transparent 3px) calc(100%*2/8) calc(100%*2/8) / 1px 1px no-repeat,
        radial-gradient(circle, #1a1410 3px, transparent 3px) calc(100%*6/8) calc(100%*2/8) / 1px 1px no-repeat,
        radial-gradient(circle, #1a1410 3px, transparent 3px) calc(100%*4/8) calc(100%*4/8) / 1px 1px no-repeat,
        radial-gradient(circle, #1a1410 3px, transparent 3px) calc(100%*2/8) calc(100%*6/8) / 1px 1px no-repeat,
        radial-gradient(circle, #1a1410 3px, transparent 3px) calc(100%*6/8) calc(100%*6/8) / 1px 1px no-repeat;
}

.stone {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 2px 3px 5px rgba(0,0,0,.5);
}
.stone.black { background: radial-gradient(circle at 35% 30%, #555 0%, #000 70%); }
.stone.white { background: radial-gradient(circle at 35% 30%, #fff 0%, #c8c8c8 90%); border: 1px solid #888; }

/* CARTES CONCEPTS =========================================================== */
.concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin: 20px 0;
}
.concept {
    background: linear-gradient(180deg, #fffaeb 0%, #f4e4bc 100%);
    border: 1px solid #c9a868;
    border-left: 4px solid #6b4226;
    padding: 18px;
    border-radius: 3px;
}
.concept h4 {
    color: #3d2914;
    font-size: 1.2em;
    margin-bottom: 6px;
    letter-spacing: 1px;
}
.concept .kanji {
    font-size: 1.6em;
    color: #6b4226;
    margin-bottom: 8px;
}

/* TABLES ==================================================================== */
.section table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.section th {
    background: #3d2914;
    color: #f4e4bc;
    padding: 10px 12px;
    text-align: left;
}
.section td {
    padding: 10px 12px;
    border-bottom: 1px solid #d4b88a;
}
.section tr:nth-child(even) td { background: #f9efd5; }

/* ENCARTS =================================================================== */
.proverb {
    font-style: italic;
    border-left: 3px solid #6b4226;
    background: #f4e4bc;
    padding: 14px 22px;
    margin: 18px 0;
    color: #3d2914;
    position: relative;
}
.proverb::before {
    content: '〈';
    color: #6b4226;
    font-size: 1.5em;
    margin-right: 6px;
}
.proverb::after {
    content: '〉';
    color: #6b4226;
    font-size: 1.5em;
    margin-left: 6px;
}

footer {
    text-align: center;
    padding: 32px 0 12px;
    color: #5e3a1f;
    font-style: italic;
    font-size: 0.95em;
}

@media (max-width: 720px) {
    .go-hero h1 { font-size: 2.4em; }
    .section { padding: 22px 20px; }
    .goban { width: 280px; height: 280px; padding: 14px; }
    .stone { width: 22px; height: 22px; }
}
