/* =========================================================
   DOLE OPEN INTERNATIONAL 2026 — Feuille de style
   Thème : classique & élégant (sombre, serif, doré)
   ========================================================= */

:root {
  --bg:        #14110d;   /* charbon chaud          */
  --bg-2:      #1c1813;   /* panneaux               */
  --bg-3:      #241f18;   /* survol / cartes        */
  --ink:       #f3ece1;   /* texte ivoire           */
  --ink-soft:  #c9bfae;   /* texte secondaire       */
  --ink-faint: #8a8071;   /* texte discret          */
  --gold:      #c8a24a;   /* accent principal       */
  --gold-2:    #e6c878;   /* accent clair           */
  --line:      #3a3127;   /* filets / bordures      */
  --green:     #6fae73;   /* gains / 1-0            */
  --red:       #c06b5c;   /* défaites              */
  --maxw:      1120px;
  --serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* subtle chessboard texture behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.012) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.012) 75%),
    linear-gradient(45deg, rgba(255,255,255,.012) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.012) 75%);
  background-size: 64px 64px;
  background-position: 0 0, 32px 32px;
  pointer-events: none;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1em; }
a  { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
.center { text-align: center; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 1rem;
}

.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Navigation ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20,17,13,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 22px;
}
.brand { margin-right: auto; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.15rem; letter-spacing: .04em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 4px; flex: 0 0 auto;
  background:
    linear-gradient(45deg, var(--gold) 25%, transparent 25%, transparent 75%, var(--gold) 75%),
    linear-gradient(45deg, var(--gold) 25%, var(--bg) 25%, var(--bg) 75%, var(--gold) 75%);
  background-size: 15px 15px; background-position: 0 0, 7.5px 7.5px;
  border: 1px solid var(--gold);
}
.brand b { font-weight: 600; }
.brand span { color: var(--gold); }

nav.links { display: flex; gap: 26px; align-items: center; }
nav.links a {
  color: var(--ink-soft); font-size: .9rem; letter-spacing: .03em;
  text-transform: uppercase; font-weight: 500; padding: 6px 0; position: relative;
}
nav.links a:hover, nav.links a[aria-current="page"] { color: var(--ink); text-decoration: none; }
nav.links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold);
}
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 6px; padding: 6px 10px; font-size: 1.1rem; cursor: pointer; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  background: none; border: 1px solid var(--line); color: var(--gold-2);
  border-radius: 6px; padding: 7px 12px; font-family: var(--sans); font-weight: 600;
  font-size: .8rem; letter-spacing: .08em; cursor: pointer; transition: all .15s ease; min-width: 42px;
}
.lang-toggle:hover { border-color: var(--gold); background: rgba(200,162,74,.1); }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  nav.links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-2);
    border-bottom: 1px solid var(--line); padding: 8px 0; display: none;
  }
  nav.links.open { display: flex; }
  nav.links a { padding: 12px 24px; width: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: .92rem;
  letter-spacing: .05em; text-transform: uppercase; padding: 14px 28px; border-radius: 6px;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1409; box-shadow: 0 6px 22px rgba(200,162,74,.25); }
.btn-gold:hover { color: #1a1409; box-shadow: 0 10px 28px rgba(200,162,74,.35); }
.btn-ghost { border: 1px solid var(--gold); color: var(--gold-2); }
.btn-ghost:hover { background: rgba(200,162,74,.1); color: var(--gold-2); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(80px, 14vw, 150px) 0 clamp(70px, 10vw, 120px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(200,162,74,.14), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(200,162,74,.06), transparent 60%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero .present { color: var(--ink-faint); font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1.2rem; }
.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: .98; margin: 0 0 .3em;
  letter-spacing: -0.01em;
}
.hero h1 span { display: block; color: var(--gold); font-size: .42em; letter-spacing: .26em; text-transform: uppercase; margin-top: .6em; font-weight: 500; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--ink-soft); font-size: 1.05rem; margin: 1.6rem 0 2.2rem; }
.hero .meta b { color: var(--ink); font-weight: 600; }
.hero .meta .dot { color: var(--gold); }

/* decorative knight watermark */
.hero .piece {
  position: absolute; right: -2%; top: 50%; transform: translateY(-50%);
  font-size: clamp(220px, 40vw, 460px); line-height: 1; color: rgba(200,162,74,.06);
  z-index: 1; pointer-events: none; user-select: none;
}
@media (max-width: 760px){ .hero .piece { opacity: .5; right: -20%; } }

/* ---------- Stat strip ---------- */
.stats { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 0; }
.stat { padding: 30px 24px; text-align: center; }
.stat .n { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--gold-2); }
.stat .l { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-faint); }
.stats .wrap.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px){ .stats .wrap, .stats .wrap.three { grid-template-columns: repeat(2,1fr); } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px){ .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 30px; transition: border-color .2s ease, transform .12s ease;
}
.card:hover { border-color: var(--gold); transform: translateY(-2px); }
.card h3 { color: var(--ink); }
.card .tag { display: inline-block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
.card .price { font-family: var(--serif); font-size: 1.6rem; color: var(--gold-2); }
.card ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); }
.card ul li { margin: .35em 0; }

/* ---------- Sections / dividers ---------- */
.alt { background: var(--bg-2); }
.section-head { max-width: 70ch; margin-bottom: 40px; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
thead th {
  background: var(--bg-3); color: var(--gold); text-align: left;
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--bg-3); }
td.num, th.num { text-align: center; font-variant-numeric: tabular-nums; }
td.name { color: var(--ink); font-weight: 500; }
.title-badge { color: var(--gold); font-weight: 700; font-size: .82rem; margin-right: 6px; }
.rank-1 td.rank, .rank-2 td.rank, .rank-3 td.rank { color: var(--gold-2); font-weight: 700; }
.pts { color: var(--gold-2); font-weight: 700; }

.res-win  { color: var(--green); font-weight: 600; }
.res-loss { color: var(--red); }
.res-draw { color: var(--ink-soft); }
.res-pending { color: var(--ink-faint); }

/* pairings */
.pairing-board { display: grid; gap: 10px; }
.pairing {
  display: grid; grid-template-columns: 36px 1fr auto 1fr; align-items: center; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px;
}
.pairing .bd { color: var(--ink-faint); font-variant-numeric: tabular-nums; text-align: center; }
.pairing .w, .pairing .b { display: flex; align-items: center; gap: 8px; }
.pairing .b { justify-content: flex-end; text-align: right; }
.pairing .score { font-family: var(--serif); color: var(--gold-2); white-space: nowrap; padding: 0 6px; }
.pairing .pend { color: var(--ink-faint); }
@media (max-width: 620px){
  .pairing { grid-template-columns: 1fr auto 1fr; }
  .pairing .bd { display: none; }
  .pairing .b { text-align: right; }
}

/* round selector */
.round-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.round-tabs button {
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-soft);
  border-radius: 999px; padding: 8px 16px; cursor: pointer; font-family: var(--sans); font-size: .88rem;
  transition: all .15s ease;
}
.round-tabs button:hover { border-color: var(--gold); color: var(--ink); }
.round-tabs button.active { background: var(--gold); color: #1a1409; border-color: var(--gold); font-weight: 600; }

/* notice banner */
.notice {
  background: rgba(200,162,74,.08); border: 1px solid var(--gold);
  border-radius: 8px; padding: 14px 18px; color: var(--gold-2); font-size: .92rem; margin-bottom: 28px;
}
.notice b { color: var(--gold-2); }

/* tabs for tournaments on standings */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 24px; }
.seg button { background: var(--bg-2); border: 0; color: var(--ink-soft); padding: 10px 20px; cursor: pointer; font-family: var(--sans); font-size: .9rem; }
.seg button.active { background: var(--gold); color: #1a1409; font-weight: 600; }

/* schedule list */
.timeline { border-left: 2px solid var(--line); margin-left: 8px; }
.tl-item { position: relative; padding: 0 0 28px 28px; }
.tl-item::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--bg); }
.tl-item .d { font-family: var(--serif); color: var(--gold-2); font-size: 1.1rem; }
.tl-item .t { color: var(--ink-faint); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }

/* definition rows */
.dl { display: grid; grid-template-columns: 200px 1fr; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.dl dt { padding: 16px 20px; background: var(--bg-3); color: var(--gold); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; border-bottom: 1px solid var(--line); }
.dl dd { padding: 16px 20px; margin: 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.dl dt:last-of-type, .dl dd:last-of-type { border-bottom: 0; }
@media (max-width: 640px){ .dl { grid-template-columns: 1fr; } .dl dt { border-bottom: 0; } }

/* prize table compact */
.prizes { columns: 2; column-gap: 40px; }
.prizes .pz { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dotted var(--line); break-inside: avoid; }
.prizes .pz b { color: var(--gold-2); font-family: var(--serif); }
@media (max-width: 600px){ .prizes { columns: 1; } }

/* ---------- Players page ---------- */
.players-controls { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.player-search {
  flex: 1 1 280px; min-width: 220px; background: var(--bg-3); border: 1px solid var(--line);
  color: var(--ink); border-radius: 8px; padding: 12px 16px; font-family: var(--sans); font-size: .95rem;
}
.player-search::placeholder { color: var(--ink-faint); }
.player-search:focus { outline: none; border-color: var(--gold); }
.filter-group { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.filter-group button {
  background: var(--bg-2); border: 0; color: var(--ink-soft); padding: 11px 18px; cursor: pointer;
  font-family: var(--sans); font-size: .88rem; transition: all .15s ease;
}
.filter-group button:hover { color: var(--ink); }
.filter-group button.active { background: var(--gold); color: #1a1409; font-weight: 600; }

.card.seed { position: relative; text-align: left; overflow: hidden; }
.card.seed .seed-rank {
  position: absolute; top: 18px; right: 20px; font-family: var(--serif); font-size: 2.6rem;
  color: rgba(200,162,74,.18); line-height: 1;
}
.card.seed .seed-flag { font-size: 1.8rem; margin-bottom: 10px; }
.card.seed h3 { font-size: 1.5rem; margin-bottom: 4px; }
.card.seed .seed-elo { font-family: var(--serif); font-size: 1.9rem; color: var(--gold-2); margin: 10px 0 0; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 40px; margin-top: 40px;
}
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
footer.site h4 { color: var(--gold); font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
footer.site a { color: var(--ink-soft); display: block; margin: .4em 0; font-size: .92rem; }
footer.site a:hover { color: var(--gold-2); }
footer.site .fine { color: var(--ink-faint); font-size: .82rem; margin-top: 40px; border-top: 1px solid var(--line); padding-top: 24px; }
@media (max-width: 760px){ footer.site .cols { grid-template-columns: 1fr; gap: 28px; } }

/* utility */
.muted { color: var(--ink-faint); }
.mt-0 { margin-top: 0; }
.tag-fide { display:inline-block; font-size:.7rem; letter-spacing:.12em; text-transform:uppercase; color:var(--gold); border:1px solid var(--gold); border-radius:4px; padding:3px 8px; }
