/* =============================================================================
   Shkob — feuille de style des pages du jeu, dans la charte Azur du jeu :
   bleu azur, soleil, craie, rouge ; Marcellus pour les titres, Josefin Sans
   pour le texte (licence SIL OFL 1.1, servies depuis /commun/polices).
   ============================================================================= */

@font-face {
  font-family: "Marcellus";
  src: url("/commun/polices/marcellus-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Josefin Sans";
  src: url("/commun/polices/josefin-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Josefin Sans";
  src: url("/commun/polices/josefin-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Josefin Sans";
  src: url("/commun/polices/josefin-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --azur: #13365F;
  --azur-profond: #0E2949;
  --soleil: #EDB53C;
  --craie: #FAF7F0;
  --rouge: #C0303A;
  --ciel: #8DB9DE;
  --texte-doux: #C9D6E6;
  --trait: rgba(250, 247, 240, 0.14);
  --largeur: 1040px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--azur);
  color: var(--craie);
  font-family: "Josefin Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

a { color: var(--soleil); text-underline-offset: 3px; }

.conteneur {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 24px;
}

/* Barre du haut : retour vers les applications du studio. */
.barre {
  padding: 20px 0;
  font-size: 15px;
}
.barre a { color: var(--texte-doux); text-decoration: none; }
.barre a:hover { color: var(--craie); }

/* Accroche : éventail de cartes et titre. Le fond reprend le tapis « Rayons » du jeu. */
.accroche {
  position: relative;
  overflow: hidden;
  padding: 40px 0 96px;
  text-align: center;
}
/* Lumière et rayons du tapis « Rayons », qui s'effacent vers les bords. */
.accroche::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 32%, rgba(141, 185, 222, 0.2), transparent 55%),
    repeating-conic-gradient(from 0deg at 50% 32%, rgba(250, 247, 240, 0.04) 0deg 5deg, transparent 5deg 10deg);
  -webkit-mask-image: radial-gradient(circle at 50% 32%, #000 0, transparent 70%);
  mask-image: radial-gradient(circle at 50% 32%, #000 0, transparent 70%);
  pointer-events: none;
}
.accroche > .conteneur { position: relative; }
.eventail {
  position: relative;
  height: 250px;
  margin: 0 auto 40px;
  max-width: 460px;
}
.eventail img {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 132px;
  height: auto;
  margin-left: -66px;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}
.eventail img:nth-child(1) { transform: translateX(-120px) rotate(-18deg); }
.eventail img:nth-child(2) { transform: translateX(-40px) rotate(-6deg); }
.eventail img:nth-child(3) { transform: translateX(40px) rotate(6deg); }
.eventail img:nth-child(4) { transform: translateX(120px) rotate(18deg); }
/* Le 7 de carreau, carte spéciale du jeu, est soulevé avec un halo doré. */
.eventail .carte-mise-en-avant {
  z-index: 1;
  transform: translateX(-40px) translateY(-22px) rotate(-6deg);
  filter: drop-shadow(0 0 3px #EDB53C) drop-shadow(0 0 14px rgba(237, 181, 60, 0.55)) drop-shadow(0 12px 18px rgba(0, 0, 0, 0.35));
}

.accroche h1 {
  margin: 0 0 12px;
  font-family: "Marcellus", serif;
  font-weight: 400;
  font-size: clamp(56px, 11vw, 96px);
  line-height: 1;
}
.accroche p {
  margin: 0 auto;
  max-width: 560px;
  font-size: 21px;
  color: var(--texte-doux);
}
.etat {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 24px;
  border-radius: 14px;
  background: var(--soleil);
  color: var(--azur);
  font-weight: 700;
  font-size: 17px;
}

/* Sections de contenu. */
.section {
  padding: 72px 0;
  border-top: 1px solid var(--trait);
}
.section h2 {
  margin: 0 0 32px;
  font-family: "Marcellus", serif;
  font-weight: 400;
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.15;
}
.section > .conteneur > p { max-width: 680px; color: var(--texte-doux); margin: 0 0 16px; }

.etapes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.etape {
  padding: 28px;
  border-radius: 16px;
  background: var(--azur-profond);
  border: 1px solid var(--trait);
}
.etape__numero {
  display: block;
  font-family: "Marcellus", serif;
  font-size: 32px;
  color: var(--soleil);
  line-height: 1;
  margin-bottom: 12px;
}
.etape h3 { margin: 0 0 8px; font-size: 21px; font-weight: 700; }
.etape p { margin: 0; color: var(--texte-doux); }

/* Ce qui rapporte : une ligne par point. */
.points {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 560px;
}
.points li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--trait);
}
.points li span:last-child {
  font-weight: 600;
  color: var(--soleil);
}

/* Valeur des figures : une ligne par carte, la valeur en or. */
.valeurs {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.valeurs li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--azur-profond);
  border: 1px solid var(--trait);
}
.valeurs li span:last-child {
  font-family: "Marcellus", serif;
  font-size: 28px;
  line-height: 1;
  color: var(--soleil);
}

/* Contenu du jeu : liste à puces dorées. */
.contenu-jeu {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--texte-doux);
}
.contenu-jeu li {
  position: relative;
  padding-left: 24px;
}
.contenu-jeu li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: var(--soleil);
}
.contenu-jeu strong { color: var(--craie); font-weight: 600; }

/* Questions fréquentes : une question par ligne, la réponse se déplie. */
.faq { max-width: 680px; border-top: 1px solid var(--trait); }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary {
  cursor: pointer;
  padding: 16px 32px 16px 0;
  font-weight: 600;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 24px;
  color: var(--soleil);
}
.faq details[open] summary::after { content: "−"; }
.faq summary:focus-visible { outline: 2px solid var(--soleil); outline-offset: 2px; }
.faq details p { margin: 0 0 16px; color: var(--texte-doux); }

/* Pages de texte (confidentialité). */
.page-texte {
  padding: 32px 0 48px;
  max-width: 720px;
}
.page-texte h1 {
  margin: 0 0 8px;
  font-family: "Marcellus", serif;
  font-weight: 400;
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1.1;
}
.page-texte .date { margin: 0 0 40px; color: var(--texte-doux); font-size: 16px; }
.page-texte h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  font-weight: 700;
}
.page-texte p, .page-texte ul { margin: 0 0 12px; color: var(--texte-doux); }
.page-texte li { margin-bottom: 6px; }
.page-texte strong { color: var(--craie); font-weight: 600; }

/* Pied de page. */
.pied {
  border-top: 1px solid var(--trait);
  padding: 32px 0 48px;
  font-size: 15px;
  color: var(--texte-doux);
}
.pied .conteneur {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.pied nav { display: flex; gap: 20px; flex-wrap: wrap; }
.pied a { color: var(--texte-doux); }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .accroche { padding: 24px 0 72px; }
  .accroche p { font-size: 19px; }
  .eventail { height: 190px; }
  .eventail img { width: 96px; margin-left: -48px; }
  .eventail img:nth-child(1) { transform: translateX(-84px) rotate(-18deg); }
  .eventail img:nth-child(2) { transform: translateX(-28px) rotate(-6deg); }
  .eventail img:nth-child(3) { transform: translateX(28px) rotate(6deg); }
  .eventail img:nth-child(4) { transform: translateX(84px) rotate(18deg); }
  .eventail .carte-mise-en-avant { transform: translateX(-28px) translateY(-16px) rotate(-6deg); }
  .section { padding: 56px 0; }
}
