/* ============================================================
   Hexes Ancients Hall : style grec antique, propre à ce jeu (chargé après site.css), sur le modèle
   de public/napo.css. Clair, d'après l'architecture plutôt que la céramique (décision de
   l'utilisateur, 2026-11-17 : l'ancien style à figures rouges était trop sombre) : marbre blanc,
   pierre calcaire, fronton, cannelures de colonnes, frise de méandres en terre cuite, capitales
   Marcellus. Le bleu reste réservé au camp 1, pour ne pas ressembler à Hexes Napo Hall (ivoire,
   bleu et or). Sert à la page d'accueil du jeu et aux pages communes (scénarios, règles, création
   de partie, jouer, tutoriel), par la classe ancients-page du corps de page.
   ============================================================ */
.ancients-page {
    --anc-marbre: #f8f5ef;   /* fond : marbre blanc */
    --anc-pierre: #ece4d4;   /* surfaces : pierre calcaire */
    --anc-encre:  #2b2620;   /* texte */
    --anc-gris:   #6b6255;   /* texte secondaire */
    --anc-terre:  #b4532a;   /* accent : méandres, boutons, titres */
    --anc-terre2: #96431f;   /* accent au survol */
    --anc-ocre:   #b8892f;   /* filets */
    /* Variables de site.css réutilisées par le menu et le pied de page */
    --bg:      var(--anc-marbre);
    --text:    var(--anc-encre);
    --muted:   var(--anc-gris);
    --border:  #d6cbb5;
    --accent:  var(--anc-terre);
    background: var(--anc-marbre);
    color: var(--anc-encre);
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

/* Le menu : pierre claire, frise de méandres en terre cuite dessous (le motif est un petit dessin
   SVG répété ; le même sert à l'en-tête et au tableau de bord, site.css) */
.ancients-page .site-nav, .ancients-page .app-nav {
    background-color: var(--anc-pierre); border-bottom: 0; padding-bottom: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8' viewBox='0 0 24 8'%3E%3Cpath d='M0 7 H5 V1 H11 V5 H8 V3 M12 7 H17 V1 H23 V5 H20 V3' fill='none' stroke='%23b4532a' stroke-width='1.3'/%3E%3C/svg%3E");
    background-repeat: repeat-x; background-position: left bottom; background-size: 24px 8px;
}
.ancients-page .nav-logo-text {
    font-family: 'Marcellus', Georgia, serif;
    font-weight: 400; letter-spacing: .08em; color: var(--anc-terre);
}
.ancients-page .nav-links a { color: var(--anc-encre); }
.ancients-page .nav-links a:hover { color: var(--anc-terre); background: transparent; }

/* En-tête : une façade de temple. Fond de marbre à fines cannelures verticales (les colonnes),
   fronton triangulaire tracé en terre cuite au-dessus du titre, frise de méandres dessous */
.ancients-tete {
    background: repeating-linear-gradient(90deg, var(--anc-marbre) 0 20px, #efe8dc 20px 23px);
    color: var(--anc-encre);
    text-align: center;
    padding: 40px 24px 46px;
    border-bottom: 1px solid var(--border);
}
/* Le fronton : un triangle étiré à la largeur du titre (preserveAspectRatio none), avec sa
   corniche (trait du bas) ; pur décor, sans texte */
.ancients-tete::before {
    content: ""; display: block; height: 56px; max-width: 520px; margin: 0 auto 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 56' preserveAspectRatio='none'%3E%3Cpolygon points='6,50 260,6 514,50' fill='%23ece4d4' stroke='%23b4532a' stroke-width='2'/%3E%3Cline x1='0' y1='54' x2='520' y2='54' stroke='%23b4532a' stroke-width='2'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
/* Inscription en lettres grecques au-dessus du titre (ΑΙ ΜΑΧΑΙ ΤΩΝ ΑΡΧΑΙΩΝ, « les batailles des
   Anciens »), à la manière d'une dédicace gravée */
.ancients-grec {
    font-family: 'Marcellus', Georgia, serif;
    font-size: 15px; letter-spacing: .32em; color: var(--anc-ocre); margin-bottom: 6px;
}
.ancients-surtitre {
    font-size: 14px; letter-spacing: .26em; text-transform: uppercase;
    color: var(--anc-gris); margin-bottom: 12px;
}
.ancients-titre {
    font-family: 'Marcellus', Georgia, serif;
    font-size: clamp(38px, 7vw, 66px); font-weight: 400; letter-spacing: .06em; line-height: 1.1;
    color: var(--anc-terre); text-wrap: balance;
}
/* Frise de méandres sous le titre */
.ancients-frise {
    height: 10px; max-width: 360px; margin: 22px auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8' viewBox='0 0 24 8'%3E%3Cpath d='M0 7 H5 V1 H11 V5 H8 V3 M12 7 H17 V1 H23 V5 H20 V3' fill='none' stroke='%23b4532a' stroke-width='1.3'/%3E%3C/svg%3E");
    background-repeat: repeat-x; background-size: 30px 10px;
}
.ancients-accroche { font-size: 20px; font-style: italic; text-wrap: balance; }

/* Corps de la page */
.ancients-corps { max-width: 760px; margin: 0 auto; padding: 44px 24px 64px; font-size: 18px; line-height: 1.65; }
.ancients-corps h2 {
    font-family: 'Marcellus', Georgia, serif;
    font-size: 28px; font-weight: 400; letter-spacing: .03em; color: var(--anc-terre);
    margin-bottom: 14px; text-wrap: balance;
}
.ancients-points { list-style: none; margin: 22px 0; display: flex; flex-direction: column; gap: 10px; }
.ancients-points li { padding-left: 26px; position: relative; }
.ancients-points li::before { content: "◆"; position: absolute; left: 2px; color: var(--anc-terre); font-size: 14px; top: 3px; }
.ancients-note {
    border-top: 1px solid var(--anc-ocre);
    padding-top: 18px; margin-top: 28px;
    color: var(--anc-gris); font-style: italic;
}

@media (max-width: 640px) {
    .ancients-tete { padding: 30px 16px 36px; }
    .ancients-tete::before { height: 40px; }
    .ancients-corps { padding: 32px 16px 48px; font-size: 17px; }
}

/* Bouton d'action : terre cuite à lettres blanches, plus foncé au survol */
.ancients-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.ancients-bouton {
    display: inline-block; padding: 10px 22px; border-radius: 4px; border: 1px solid var(--anc-terre2);
    background: var(--anc-terre); color: #fff; font-weight: 600; text-decoration: none;
}
.ancients-bouton:hover, .ancients-bouton:focus-visible { background: var(--anc-terre2); color: #fff; }

/* Dernières modifications du hall (includes/journal_hall.php, 2026-11-17) : sous le texte
   principal, même largeur, une ligne par entrée avec sa date en couleur d'accent */
.hall-journal { max-width: 760px; margin: 0 auto; padding: 0 24px 48px; border-top: 1px solid var(--border); }
.hall-journal h2 { font-size: 20px; margin: 28px 0 12px; color: var(--anc-encre); }
.hall-journal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.5; }
.hall-journal time { color: var(--anc-terre); font-weight: 700; margin-right: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 600px) { .hall-journal { padding: 0 16px 36px; } }

/* Bandeau des parties en attente (includes/attente_hall.php, 2026-11-19) : terre cuite, comme les
   boutons du hall */
.attente-ligne { background: var(--anc-pierre); }
.attente-bouton:hover, .attente-bouton:focus-visible { background: var(--anc-terre2); border-color: var(--anc-terre2); }
