/* La Belote : site public. Une seule feuille de style pour toutes les pages.
   Couleurs et police : celles du jeu (tapis vert, or chaud, crème, Lora). Pas de JavaScript, pas de service externe. */

@font-face {
  font-family: "Lora";
  src: url("/polices/lora-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("/polices/lora-400-italique.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("/polices/lora-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --vert: #145a46;
  --vert-fonce: #0e4234;
  --vert-nuit: #0a2f25;
  --creme: #f5efe0;
  --creme-2: #ece3cc;
  --papier: #fbf8ef;
  --or: #c9a227;
  --or-clair: #e6cb6e;
  --or-texte: #7a5f08;
  --encre: #1e2824;
  --encre-douce: #46524c;
  --bordeaux: #7a1f2b;
  --filet: rgba(20, 90, 70, 0.18);
  --rayon: 16px;
  --ombre: 0 10px 28px rgba(10, 47, 37, 0.1);
  --largeur: 1120px;
  --lecture: 46rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 12px;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--creme);
  color: var(--encre);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--vert);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}

/* Le clavier doit toujours voir où il est. */
:focus-visible {
  outline: 3px solid var(--or);
  outline-offset: 3px;
  border-radius: 6px;
}

.conteneur {
  width: min(100% - 32px, var(--largeur));
  margin-inline: auto;
}

.lien-evitement {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--creme);
  color: var(--vert-fonce);
  border-radius: 8px;
  text-decoration: none;
}
.lien-evitement:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- En-tête ---------- */
.entete {
  background: var(--vert-fonce);
  color: var(--creme);
  border-bottom: 1px solid rgba(201, 162, 39, 0.5);
}
.entete .conteneur {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  padding-block: 10px;
}
.marque {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: var(--creme);
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
}
.marque img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}
.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 12px;
  border-radius: 8px;
  color: var(--creme);
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease;
}
.nav a:hover {
  color: var(--or-clair);
  background: rgba(255, 255, 255, 0.07);
}
.nav a[aria-current="page"] {
  color: var(--or-clair);
}
@media (max-width: 559px) {
  .entete .conteneur {
    justify-content: center;
  }
  .nav {
    width: 100%;
  }
  .nav ul {
    justify-content: space-between;
  }
  .nav a {
    padding-inline: 8px;
  }
}

/* ---------- Accueil : en-tête de page ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--vert-nuit);
  color: var(--creme);
}
.hero .fond {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 47, 37, 0.5) 0%, rgba(10, 47, 37, 0.72) 55%, rgba(10, 47, 37, 0.94) 100%);
}
.hero .conteneur {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-block: clamp(40px, 8vw, 104px) clamp(48px, 8vw, 96px);
  text-align: center;
}
.hero .logo {
  width: min(520px, 82vw);
  height: auto;
}
.hero h1 {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(1.7rem, 4.6vw, 2.75rem);
}
.hero .accroche {
  max-width: 38rem;
  margin: 0;
  color: rgba(245, 239, 224, 0.94);
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
}
@media (prefers-reduced-motion: no-preference) {
  .hero .conteneur > * {
    animation: apparition 0.9s ease-out both;
  }
  .hero .conteneur > :nth-child(2) {
    animation-delay: 0.12s;
  }
  .hero .conteneur > :nth-child(3) {
    animation-delay: 0.24s;
  }
  .hero .conteneur > :nth-child(4) {
    animation-delay: 0.36s;
  }
}
@keyframes apparition {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Pastille « Bientôt sur Google Play » : pas un lien pour l'instant (voir le commentaire dans index.html). */
.pastille-play {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 12px 30px;
  border: 1px solid var(--or);
  border-radius: 999px;
  background: rgba(10, 47, 37, 0.6);
  color: var(--or-clair);
  line-height: 1.3;
}
.pastille-play .petit {
  color: rgba(245, 239, 224, 0.85);
  font-size: 0.875rem;
}
.pastille-play strong {
  font-size: 1.15rem;
  font-weight: 600;
}
a.pastille-play {
  text-decoration: none;
  transition: background-color 0.25s ease;
}
a.pastille-play:hover {
  background: rgba(10, 47, 37, 0.85);
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(48px, 7vw, 88px);
}
.section--vert {
  background: var(--vert);
  color: var(--creme);
}
.section--papier {
  background: var(--papier);
  border-block: 1px solid var(--filet);
}
.tete-section {
  max-width: 42rem;
  margin: 0 auto clamp(28px, 4vw, 44px);
  text-align: center;
}
.tete-section h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
}
.tete-section h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin: 16px auto 18px;
  background: var(--or);
}
.tete-section p {
  margin: 0;
  color: var(--encre-douce);
}
.section--vert .tete-section p {
  color: rgba(245, 239, 224, 0.9);
}

/* ---------- Façons de jouer ---------- */
.modes {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .modes {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .modes {
    grid-template-columns: repeat(4, 1fr);
  }
}
.mode {
  display: flex;
  flex-direction: column;
  background: var(--papier);
  border: 1px solid var(--filet);
  border-radius: 20px;
  box-shadow: var(--ombre);
  overflow: hidden;
}
.mode img {
  width: min(100%, 240px);
  margin: 20px auto 0;
  padding-inline: 16px;
}
.mode .corps {
  padding: 16px 22px 26px;
}
.mode h3 {
  font-size: 1.25rem;
}
.mode p {
  margin: 0 0 0.6em;
  font-size: 1.0625rem;
  color: var(--encre-douce);
}
.mode p:last-child {
  margin-bottom: 0;
}

/* ---------- Salons ---------- */
.salons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.salon {
  display: flex;
  flex: 1 1 100%;
  overflow: hidden;
  background: var(--vert-fonce);
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: var(--rayon);
}
.salon img {
  flex: 0 0 96px;
  width: 96px;
  height: auto;
  align-self: stretch;
  object-fit: cover;
}
.salon .corps {
  padding: 14px 16px;
}
.salon h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}
.salon p {
  margin: 0;
  font-size: 1rem;
  color: rgba(245, 239, 224, 0.9);
}
.salon .mise {
  margin-top: 6px;
  color: var(--or-clair);
  font-size: 0.9375rem;
}
@media (min-width: 600px) {
  .salon {
    flex: 0 0 calc((100% - 32px) / 3);
    flex-direction: column;
  }
  .salon img {
    flex: none;
    width: 100%;
    align-self: auto;
    aspect-ratio: 4 / 5;
  }
  .salon .corps {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 18px 20px;
  }
  .salon .mise {
    margin-top: auto;
    padding-top: 6px;
  }
}
@media (min-width: 1000px) {
  .salon {
    flex: 0 0 calc((100% - 64px) / 5);
  }
}
.note-salons {
  max-width: 42rem;
  margin: 28px auto 0;
  text-align: center;
  color: rgba(245, 239, 224, 0.9);
}

/* ---------- Petites raisons de revenir ---------- */
.avantages {
  display: grid;
  gap: 28px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: 1fr;
}
@media (min-width: 680px) {
  .avantages {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .avantages {
    grid-template-columns: repeat(3, 1fr);
  }
}
.avantage {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.avantage img {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 16px;
}
.avantage h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}
.avantage p {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--encre-douce);
}

/* ---------- Club VIP ---------- */
.vip {
  display: grid;
  gap: 36px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .vip {
    grid-template-columns: 1.3fr 1fr;
    gap: 56px;
  }
}
.vip h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
}
.vip h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin: 16px 0 18px;
  background: var(--or);
}
.vip ul {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}
.vip li {
  position: relative;
  padding: 4px 0 4px 26px;
}
.vip li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.95em;
  width: 8px;
  height: 8px;
  background: var(--or);
  transform: rotate(45deg);
}
.vip .discret {
  color: var(--encre-douce);
  font-size: 1rem;
}
.dos {
  display: flex;
  justify-content: center;
  gap: 14px;
}
.dos img {
  flex: 0 1 150px;
  min-width: 0;
  border-radius: 8px;
  box-shadow: var(--ombre);
}

/* ---------- Bandeau Google Play ---------- */
.bandeau {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--vert-nuit);
  color: var(--creme);
  text-align: center;
}
.bandeau .fond {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bandeau::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 47, 37, 0.72);
}
.bandeau .conteneur {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 44rem;
}
.bandeau h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
}
.bandeau p {
  color: rgba(245, 239, 224, 0.94);
}

/* ---------- Questions ---------- */
.faq {
  max-width: var(--lecture);
  margin-inline: auto;
  border-top: 1px solid var(--filet);
}
.faq details {
  border-bottom: 1px solid var(--filet);
}
.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 14px 44px 14px 0;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  translate: 0 -52%;
  color: var(--or-texte);
  font-size: 1.6rem;
  font-weight: 400;
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq .reponse {
  padding: 0 44px 18px 0;
  color: var(--encre-douce);
}
.faq .reponse p:last-child {
  margin-bottom: 0;
}

/* ---------- Contact ---------- */
.contact {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
}
.contact .courriel {
  display: inline-block;
  margin: 4px 0 20px;
  padding: 10px 20px;
  background: var(--papier);
  border: 1px solid var(--filet);
  border-radius: 12px;
  font-size: clamp(1.05rem, 4.4vw, 1.4rem);
  font-weight: 600;
  user-select: all;
  -webkit-user-select: all;
}
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 26px;
  border: 1px solid var(--vert);
  border-radius: 999px;
  background: var(--vert);
  color: var(--creme);
  font-size: 1.0625rem;
  text-decoration: none;
  transition: background-color 0.25s ease;
}
.bouton:hover {
  background: var(--vert-fonce);
}

/* ---------- Pages de texte (confidentialité, conditions, etc.) ---------- */
.titre-page {
  background: var(--vert-fonce);
  color: var(--creme);
  border-bottom: 1px solid rgba(201, 162, 39, 0.5);
}
.titre-page .conteneur {
  padding-block: clamp(32px, 5vw, 56px);
  max-width: var(--lecture);
}
.titre-page h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4.4vw, 2.5rem);
}
.titre-page h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin: 16px 0 0;
  background: var(--or);
}
.texte {
  max-width: var(--lecture);
  margin-inline: auto;
  padding-block: clamp(28px, 4vw, 48px) clamp(48px, 7vw, 80px);
}
.texte .maj {
  color: var(--encre-douce);
}
.texte h2 {
  margin: 2em 0 0.6em;
  color: var(--vert-fonce);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
}
.texte h3 {
  margin: 1.6em 0 0.5em;
  font-size: 1.15rem;
}
.texte ul,
.texte ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}
.texte li {
  margin-bottom: 0.6em;
  padding-left: 0.2em;
}
.texte li::marker {
  color: var(--or-texte);
}
.texte a {
  color: var(--vert-fonce);
}
.a-completer {
  padding: 0 0.25em;
  border-bottom: 2px dashed #b38a00;
  border-radius: 4px;
  background: #f6e3a1;
  color: #4a3a00;
}
.encadre {
  margin: 0 0 1.4em;
  padding: 16px 20px;
  background: var(--papier);
  border: 1px solid var(--filet);
  border-left: 4px solid var(--or);
  border-radius: 10px;
}
.encadre p:last-child,
.encadre ul:last-child {
  margin-bottom: 0;
}
.courriel-texte {
  font-weight: 600;
  user-select: all;
  -webkit-user-select: all;
}

/* ---------- Page introuvable ---------- */
.introuvable {
  max-width: 36rem;
  margin-inline: auto;
  padding-block: clamp(56px, 10vw, 112px);
  text-align: center;
}
.introuvable img {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border-radius: 20px;
}
.introuvable h1 {
  font-size: clamp(1.7rem, 4.6vw, 2.4rem);
}

/* ---------- Pied de page ---------- */
.pied {
  background: var(--vert-nuit);
  color: rgba(245, 239, 224, 0.9);
  border-top: 1px solid rgba(201, 162, 39, 0.5);
  font-size: 1rem;
}
.pied .conteneur {
  display: grid;
  gap: 32px 48px;
  padding-block: 44px 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .pied .conteneur {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.pied .marque {
  margin-bottom: 8px;
}
.pied p {
  margin: 0;
  max-width: 28rem;
}
.pied h2 {
  margin: 0 0 8px;
  color: var(--or-clair);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pied ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pied li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--creme);
  text-decoration: none;
}
.pied li a:hover {
  color: var(--or-clair);
  text-decoration: underline;
}
.pied .droits {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 239, 224, 0.16);
  color: rgba(245, 239, 224, 0.75);
  font-size: 0.9375rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .entete,
  .pied,
  .hero .fond,
  .bandeau .fond {
    display: none;
  }
  body {
    background: #fff;
    font-size: 12pt;
  }
}
