/* ==========================================================================
   L'Olympe — feuille de style de la page (chargée APRÈS styles.css)
   Aucune couleur n'est écrite en dur : tout passe par les variables du thème,
   afin que les cinq thèmes du site continuent de fonctionner. Deux teintes
   chaudes neutres (chair et or) sont définies une seule fois ci-dessous, à la
   manière de la mascotte Atlas, puis réutilisées par variable.
   ========================================================================== */

body[data-page="olympe"] {
  --oly-warm: rgb(231 177 132);   /* chair / terre cuite, comme mascot.js */
  --oly-gold: rgb(214 170 84);    /* or mat */
}

/* ---------- structure de la page ---------- */
.olympe { max-width: 1040px; margin: 0 auto; }
.olympe .page-head { margin-bottom: 18px; }

/* ---------- barre d'outils : onglets + recherche ---------- */
.oly-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.oly-tabs { display: flex; gap: 6px; flex: 0 0 auto; }
.oly-tabs button {
  font: 600 13.5px/1 var(--sans); color: var(--text-dim); cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 15px; transition: color .15s, border-color .15s, background .15s;
}
.oly-tabs button:hover { color: var(--accent-ink); border-color: var(--accent); }
.oly-tabs button.on {
  background: var(--accent); border-color: var(--accent); color: var(--panel);
}
.oly-search {
  flex: 1 1 220px; min-width: 0;
  font: 500 14px/1 var(--sans); color: var(--text);
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 14px;
}
.oly-search::placeholder { color: var(--text-faint); }
.oly-search:focus { outline: none; border-color: var(--accent); }
.oly-count { font: 600 12.5px/1 var(--sans); color: var(--text-faint); flex: 0 0 auto; }

/* ---------- grille de cartes ---------- */
.oly-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
@media (max-width: 380px) { .oly-grid { grid-template-columns: 1fr; } }

.oly-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center; cursor: pointer; width: 100%; min-width: 0;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 12px 15px; box-shadow: var(--shadow-sm);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.oly-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow); }
.oly-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.oly-art {
  display: block; width: 84px; height: 84px; max-width: 100%;
  border-radius: 50%; background: var(--panel-2); margin-bottom: 4px;
}
.oly-name {
  font: 700 15px/1.25 var(--display); color: var(--text);
  letter-spacing: .4px; overflow-wrap: anywhere;
}
.oly-ep {
  font: 500 12px/1.35 var(--sans); color: var(--text-dim);
  font-style: italic; overflow-wrap: anywhere;
}
.oly-empty {
  padding: 30px 4px; text-align: center;
  font: 500 14.5px/1.5 var(--sans); color: var(--text-faint);
}

/* ---------- dessins ---------- */
.oly-svg { display: block; width: 100%; height: 100%; }
.oly-svg .f1 { fill: var(--accent); }
.oly-svg .f2 { fill: var(--accent-ink); }
.oly-svg .f3 { fill: var(--text); }
.oly-svg .f4 { fill: var(--panel); }
.oly-svg .f5 { fill: var(--oly-warm); }
.oly-svg .f6 { fill: var(--oly-gold); }
.oly-svg .s1, .oly-svg .s2, .oly-svg .s4, .oly-svg .s5, .oly-svg .s6 {
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.oly-svg .s1 { stroke: var(--accent);    stroke-width: 4; }
.oly-svg .s2 { stroke: var(--accent-ink); stroke-width: 3.4; }
.oly-svg .s4 { stroke: var(--panel);     stroke-width: 2.4; }
.oly-svg .s5 { stroke: var(--oly-warm);  stroke-width: 8; }
.oly-svg .s6 { stroke: var(--oly-gold);  stroke-width: 3.4; }

/* ---------- modale ---------- */
.modal.oly-modal { max-width: 640px; }
.oly-modal-body { display: flex; gap: 20px; align-items: flex-start; }
.oly-big {
  flex: 0 0 148px; width: 148px; height: 148px; max-width: 100%;
  border-radius: 50%; background: var(--panel-2);
}
.oly-txt { flex: 1 1 auto; min-width: 0; }
.oly-ep-big {
  font: 600 13.5px/1.4 var(--sans); font-style: italic;
  color: var(--accent-ink); margin: 0 0 10px;
}
.oly-recit {
  font-family: var(--read); font-size: 15.5px; line-height: 1.68;
  color: var(--text-dim); margin: 0 0 16px;
}
.oly-keys-t {
  font: 700 12px/1 var(--sans); letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--text-faint); margin: 0 0 8px;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.oly-keys { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.oly-keys li {
  font: 600 12.5px/1.35 var(--sans); color: var(--text-dim);
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 11px; overflow-wrap: anywhere;
}

/* ---------- mobile : une seule colonne, jamais de débordement ---------- */
@media (max-width: 620px) {
  .oly-modal-body { flex-direction: column; align-items: center; }
  .oly-big { flex: 0 0 auto; width: 120px; height: 120px; }
  .oly-txt { width: 100%; }
  .oly-ep-big, .oly-recit { text-align: left; }
}
@media (max-width: 420px) {
  .oly-bar { gap: 8px; }
  .oly-tabs { width: 100%; }
  .oly-tabs button { flex: 1 1 0; padding: 9px 8px; }
  .oly-search { flex: 1 1 100%; }
  .oly-count { display: none; }
  .modal.oly-modal { padding: 18px 16px 22px; }
  .oly-recit { font-size: 15px; }
}
