/*
 * LA GALERIE DU CONCOURS D'ARKENSIA (spec docs/SPEC-2026-10-08-arkensia-galerie.md).
 * Ce que la maquette n'avait pas, dans sa matière : ses jetons (site.css, :root), ses
 * filets dorés, ses coins nets. Sur les seules pages /concours. L'ordre des feuilles n'est pas garanti : ce qui
 * reprend une règle de site.css (le chapeau) passe par `.concours` pour la gagner.
 */

.concours .cc-chapeau {
  min-height: clamp(300px, 46vh, 520px);
}
.concours .cc-sans-fond {
  min-height: 0;
}
.concours .cc-sans-fond .large {
  padding-block: clamp(100px, 14vw, 140px) clamp(16px, 3vw, 32px);
}
.concours .cc-chapeau h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.95;
}

.cc-corps {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  padding-block: clamp(28px, 4vw, 56px) clamp(64px, 8vw, 110px);
}
.cc-corps h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

/* Le compte : une carte au filet doré */
.cc-compte {
  display: grid;
  gap: 12px;
  justify-items: start;
  max-width: 64ch;
  padding: 20px 22px 22px;
  background: var(--nuit-2);
  border: 1px solid var(--trait);
}
.cc-compte h2 {
  font-size: 1.5rem;
}
.cc-ok {
  color: #8ff0b8;
}
.cc-raison {
  color: var(--or-vif);
}
.cc-avis {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--trait);
  background: var(--nuit-3);
  max-width: 64ch;
}
.cc-petit {
  color: var(--doux);
  font-size: 0.95rem;
  max-width: 64ch;
}
.cc-petit a,
.cc-retour {
  color: var(--or-vif);
  text-underline-offset: 3px;
}
.cc-retour {
  display: inline-block;
  min-height: 44px;
  padding-block: 10px;
}

.cc-form {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.cc-form label {
  font-weight: 700;
}
.cc-form input {
  width: min(16ch, 100%);
  min-height: 48px;
  padding: 10px 14px;
  font: 700 1.3rem / 1 var(--f-ui);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--texte);
  background: var(--nuit);
  border: 2px solid var(--trait);
}
.cc-form input:focus-visible {
  border-color: var(--or-clair);
}
.cc-lien {
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--doux);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Le filtre par thème */
.cc-themes ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cc-themes a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid rgba(154, 92, 255, 0.5);
  background: rgba(154, 92, 255, 0.14);
  color: var(--lueur);
  font-weight: 700;
  text-decoration: none;
}
.cc-themes a[aria-current="page"] {
  border-color: var(--or-clair);
  background: rgba(239, 159, 39, 0.12);
  color: var(--or-vif);
}

/* La grille : de grandes images */
.cc-grille,
.cc-podium,
.cc-autres {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cc-grille {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
}
.cc-podium {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.cc-autres {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.cc-carte {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  background: var(--nuit-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.35s, transform 0.45s var(--ease);
}
a.cc-carte:hover,
a.cc-carte:focus-visible {
  border-color: var(--or-clair);
  transform: translateY(-4px);
}
.cc-ph {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--nuit-3);
  overflow: hidden;
}
.cc-ph img,
.cc-autres img,
.cc-une img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cc-tx {
  display: grid;
  gap: 4px;
  padding: 16px 18px 18px;
  align-content: start;
}
.cc-tx strong {
  font: 700 1.6rem / 1.05 var(--f-titre);
}
.cc-tx span {
  color: var(--doux);
}
.cc-place {
  font: 700 2.4rem / 1 var(--f-titre);
  color: var(--or-vif) !important;
}
.cc-vide {
  color: var(--doux);
}

/* Le classement figé */
.cc-table {
  overflow-x: auto;
}
.cc-table table {
  width: 100%;
  border-collapse: collapse;
}
.cc-table th,
.cc-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--trait);
}
.cc-table th {
  color: var(--or-vif);
  font-weight: 700;
}
.cc-table small {
  color: var(--doux);
}
.cc-resultats {
  display: grid;
  gap: 20px;
}

/* Un build */
.cc-une {
  margin: 0;
  border: 1px solid var(--trait);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.cc-build-tx {
  display: grid;
  gap: 18px;
  max-width: 70ch;
}
.cc-description {
  font: 400 1.2rem / 1.6 var(--f-lire);
  color: #e6ddf1;
  white-space: pre-line;
}
.cc-tien {
  font: 700 1.6rem / 1.1 var(--f-titre);
  color: var(--or-vif);
}

/* La note d'un geste */
.cc-note {
  display: grid;
  gap: 8px;
}
.cc-note-titre {
  font-weight: 700;
}
.cc-etoiles {
  display: inline-flex;
  justify-self: start;
  gap: 2px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}
.cc-etoile {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
}
.cc-etoile svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--or-clair);
  stroke-width: 1.6;
  transition: transform 0.2s var(--ease), fill 0.2s;
}
.cc-etoile.pleine svg {
  fill: var(--or-vif);
  stroke: var(--or-vif);
}
.cc-etoile:focus-visible {
  outline: 2px solid var(--or-clair);
  outline-offset: 2px;
}
.cc-etoile:focus-visible svg,
.cc-etoiles:hover .cc-etoile.pleine svg {
  transform: scale(1.08);
}
.cc-note-aide {
  color: var(--doux);
  font-size: 0.92rem;
}
.cc-note-etat {
  display: block;
  min-height: 1.6em;
  color: var(--lueur);
}

@media (prefers-reduced-motion: reduce) {
  .cc-carte,
  .cc-etoile svg {
    transition: none;
  }
  a.cc-carte:hover,
  a.cc-carte:focus-visible {
    transform: none;
  }
}
