/* sage.jeuxintimes.fr : thème clair, doux et lisible. */
:root {
  --fond: #fff7f3;
  --surface: #ffffff;
  --texte: #2a1a24;
  --doux: #6b5563;
  --ligne: #f0d9e0;
  --rose: #c2255c;
  --rose-fonce: #a01d4b;
  --rose-clair: #fde4ec;
  --or: #8a5a12;
  --or-clair: #fbe9c9;
  --vert-clair: #e3f2e8;
  --rouge-clair: #fbe3e3;
  --rayon: 16px;
  --ombre: 0 6px 24px rgba(120, 40, 70, 0.08);
  --titre: "Georgia", "Times New Roman", serif;
  --corps: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 17px/1.6 var(--corps);
}
a { color: var(--rose); text-underline-offset: 3px; }
a:hover { color: var(--rose-fonce); }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--titre); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0.6em 0 0.4em; }
h2 { font-size: clamp(1.35rem, 3.6vw, 1.75rem); margin: 1.8em 0 0.5em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 0.4em; }
.cadre { width: min(100% - 32px, 860px); margin-inline: auto; }
.evitement { position: absolute; left: -9999px; }
.evitement:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* En-tête et pied */
.entete { background: var(--surface); border-bottom: 1px solid var(--ligne); }
.entete-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; flex-wrap: wrap; }
.logo { font-family: var(--titre); font-size: 1.3rem; font-weight: 700; color: var(--texte); text-decoration: none; }
.logo span { color: var(--rose); font-style: italic; }
.menu { display: flex; gap: 18px; flex-wrap: wrap; }
.menu a { color: var(--texte); text-decoration: none; font-weight: 600; }
.menu a:hover { color: var(--rose); }
.pied { margin-top: 64px; padding: 28px 0 40px; background: var(--surface); border-top: 1px solid var(--ligne); color: var(--doux); font-size: 0.95rem; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0; }
.petit { font-size: 0.9rem; color: var(--doux); }

/* Fil d'Ariane */
.fil ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 18px 0 0; font-size: 0.9rem; color: var(--doux); }
.fil li + li::before { content: "›"; margin-right: 6px; }

/* Textes */
.chapo { font-size: 1.12rem; color: var(--doux); max-width: 46em; }
.meta { color: var(--doux); font-size: 0.9rem; }
.article h2 { border-top: 1px solid var(--ligne); padding-top: 1.1em; }
.article li { margin: 0.3em 0; }
.intro { padding: 12px 0 8px; }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 2px solid var(--rose);
  background: var(--rose); color: #fff; font: 600 1rem var(--corps); text-decoration: none; cursor: pointer;
}
.bouton:hover { background: var(--rose-fonce); border-color: var(--rose-fonce); color: #fff; }
.bouton:disabled { opacity: 0.6; cursor: default; }
.bouton-second { background: transparent; color: var(--rose); }
.bouton-second:hover { background: var(--rose-clair); color: var(--rose-fonce); }
.bouton-or { background: var(--or); border-color: var(--or); }
.bouton-or:hover { background: #6e480e; border-color: #6e480e; }
.bouton.gros { min-height: 64px; font-size: 1.2rem; flex: 1; }
.lien-bouton { background: none; border: 0; color: var(--doux); text-decoration: underline; cursor: pointer; font: inherit; margin-top: 14px; }
:focus-visible { outline: 3px solid #f59fbd; outline-offset: 2px; }

/* Cartes de liens */
.grille { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 14px 0; }
.carte-lien {
  display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--rayon);
  background: var(--surface); border: 1px solid var(--ligne); box-shadow: var(--ombre); color: var(--texte); text-decoration: none;
}
.carte-lien strong { font-family: var(--titre); font-size: 1.2rem; }
.carte-lien span { color: var(--doux); }
.carte-lien em { margin-top: auto; color: var(--rose); font-style: normal; font-weight: 700; }
.carte-lien:hover { border-color: var(--rose); color: var(--texte); }
.liste-articles { list-style: none; padding: 0; display: grid; gap: 10px; }
.liste-articles a { display: block; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--ligne); text-decoration: none; color: var(--texte); }
.liste-articles a:hover { border-color: var(--rose); }
.liste-articles strong { display: block; font-family: var(--titre); font-size: 1.08rem; }
.liste-articles span { color: var(--doux); font-size: 0.95rem; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--ligne); border-radius: 12px; padding: 12px 16px; margin: 8px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; }

/* Mode pas sage */
.bascule { margin: 40px 0 0; padding: 18px; border-radius: var(--rayon); background: var(--or-clair); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.bascule p { margin: 0; flex: 1 1 280px; }
.passage { max-width: 40em; }
.passage-choix { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* Jeux */
.jeu { margin: 22px 0 8px; }
.panneau { background: var(--surface); border: 1px solid var(--ligne); border-radius: 20px; box-shadow: var(--ombre); padding: 22px; }
.panneau h2 { margin-top: 0.2em; }
.panneau.centre { text-align: center; }
.panneau.centre .bouton { margin: 6px; }
.panneau.bien { background: var(--vert-clair); }
.panneau.rate { background: var(--rouge-clair); }
.etape { margin: 0; color: var(--doux); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.consigne { color: var(--doux); }
.champs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 14px; }
.champs label { display: grid; gap: 6px; font-weight: 600; }
.champs input { min-height: 46px; padding: 8px 12px; border: 1px solid #dcc3cc; border-radius: 10px; font: inherit; background: #fff; }
.choix { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.choix legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.pastille input { position: absolute; opacity: 0; }
.pastille span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--ligne); background: #fff; cursor: pointer; }
.pastille input:checked + span { border-color: var(--rose); background: var(--rose-clair); color: var(--rose-fonce); font-weight: 600; }
.pastille input:focus-visible + span { outline: 3px solid #f59fbd; }
.options { display: grid; gap: 10px; }
.option { text-align: left; min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 2px solid var(--ligne); background: #fff; font: inherit; cursor: pointer; color: var(--texte); }
.option:hover { border-color: var(--rose); background: var(--rose-clair); }
.score { font-weight: 700; }
.score.grand { font-size: 1.4rem; font-family: var(--titre); }
.duo { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.carte-jeu { text-align: center; }
.carte-jeu.action { border-top: 6px solid var(--rose); }
.carte-jeu.verite { border-top: 6px solid var(--or); }
.texte-carte { font-family: var(--titre); font-size: clamp(1.25rem, 3.6vw, 1.6rem); line-height: 1.4; margin: 14px 0; }
.avis { padding: 12px 16px; background: var(--or-clair); border-radius: 12px; }

/* Roue */
.jeu-roue { text-align: center; }
.roue-zone { position: relative; width: min(100%, 340px); margin: 0 auto; }
.roue-pointe { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid var(--rose); z-index: 2; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.15)); }
.roue { display: block; width: 100%; height: auto; }
.roue text { font: 700 15px var(--corps); fill: #3a2430; }
.roue .roue-coeur { font-size: 22px; fill: var(--rose); }
#roue-parts { transform-box: view-box; transform-origin: 160px 160px; transition: transform 4.1s cubic-bezier(0.15, 0.7, 0.2, 1); }
.resultat { max-width: 560px; margin: 0 auto; }
.cases dt { font-weight: 700; margin-top: 10px; }
.cases dd { margin: 2px 0 0; color: var(--doux); }

@media (prefers-reduced-motion: reduce) {
  #roue-parts { transition: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .panneau { padding: 18px 16px; }
}
