/* Le site de DUST RALLY (étape 24) : présentation, aide, confidentialité, en six langues (Tools/site.py). Les couleurs du
   jeu : le brun de sous-bois de l'écran de lancement, la poussière de DUST, l'or de RALLY, l'orange des boutons ; les
   titres en Teko, la police du jeu, servie par le site (pas de Google Fonts). */
@font-face { font-family: "Teko"; src: url("polices/teko.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --sous-bois: #1e1813;
  --terre: #2a221a;
  --dalle: #30271e;
  --bord: rgba(245, 222, 176, 0.12);
  --poussiere: #f5deb0;
  --texte: #efe6d6;
  --doux: #b9ab95;
  --or: #ffd661;
  --orange: #f28c26;
  --encre: #17120d;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texte);
  background-color: var(--sous-bois);
  /* la poussière dorée d'une fin d'après-midi d'automne */
  background-image:
    radial-gradient(ellipse 85% 55% at 20% -10%, rgba(242, 140, 38, 0.16), transparent 70%),
    radial-gradient(ellipse 70% 45% at 95% 25%, rgba(255, 214, 97, 0.07), transparent 70%);
  background-attachment: fixed;
}

a { color: var(--or); text-underline-offset: 3px; }
a:hover { color: #fff; }

header { text-align: center; padding: 40px 16px 6px; }

/* le nom du jeu comme à l'accueil : DUST couleur de poussière au-dessus de RALLY en or */
.titre {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  font-family: "Teko", "Arial Narrow", sans-serif;
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.titre span:first-child { font-size: clamp(3.2rem, 15vw, 6.4rem); color: var(--poussiere); }
.titre span:last-child { font-size: clamp(3.2rem, 15vw, 6.4rem); color: var(--or); text-shadow: 0 4px 0 rgba(0, 0, 0, 0.45); }

.accroche {
  margin: 16px auto 0;
  max-width: 44ch;
  font-family: "Teko", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--texte);
}

nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 22px 0 8px; }

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-family: "Teko", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--texte);
  background: var(--terre);
  border: 1px solid var(--bord);
  border-radius: 6px;
}

nav a:hover { color: var(--or); }
nav a[aria-current="page"] { color: var(--encre); background: var(--orange); border-color: var(--orange); }

main { max-width: 880px; margin: 0 auto 36px; padding: 0 16px; }

.dalle {
  background: var(--dalle);
  border: 1px solid var(--bord);
  border-radius: 8px;
  padding: 22px clamp(16px, 4vw, 34px);
  margin: 18px 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

h2 {
  margin: 0 0 8px;
  font-family: "Teko", system-ui, sans-serif;
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--poussiere);
}

/* le trait doré sous les titres */
h2::after { content: ""; display: block; width: 60px; height: 4px; margin-top: 6px; background: var(--or); border-radius: 2px; }

h3 { margin: 20px 0 4px; font-size: 1.12rem; color: var(--or); }

p, li { margin: 0 0 10px; }
ul { padding-left: 1.2em; margin: 0 0 10px; }
strong { color: #fff; }
.doux { color: var(--doux); font-size: 0.95rem; }

.intro { display: flex; gap: 22px; align-items: center; }
.intro img { flex: 0 0 auto; width: 112px; height: 112px; border-radius: 25px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5); }
.intro p { margin: 0; font-size: 1.12rem; }

.bientot {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px 2px;
  font-family: "Teko", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--encre);
  background: var(--or);
  border-radius: 6px;
}

figure { margin: 18px 0; }
figure img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--bord); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45); }
figcaption { margin-top: 6px; color: var(--doux); text-align: center; font-size: 0.95rem; }

.deux { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.deux figure { margin: 0; }

.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.cases li { margin: 0; padding: 14px; background: var(--terre); border: 1px solid var(--bord); border-left: 4px solid var(--orange); border-radius: 6px; }
.cases li:nth-child(2n) { border-left-color: var(--or); }
.cases strong {
  display: block;
  margin-bottom: 2px;
  font-family: "Teko", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--poussiere);
}

table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--bord); vertical-align: top; }
th { font-family: "Teko", system-ui, sans-serif; font-weight: 700; font-size: 1.25rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--or); }

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--encre);
  background: var(--or);
  border-radius: 6px;
}

.contact:hover { color: var(--encre); background: #fff; }

footer { text-align: center; color: var(--doux); font-size: 0.92rem; padding: 0 16px 36px; }
footer a { color: var(--doux); }
.langues { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; margin-top: 10px; }
.langues a[aria-current="true"] { color: var(--or); text-decoration: none; }

@media (max-width: 560px) {
  .intro { flex-direction: column; text-align: center; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  td { border: none; padding: 3px 0; }
  td:first-child { color: #fff; }
  tr { border-bottom: 1px solid var(--bord); padding: 10px 0; }
}
