/* Habillage commun des pages hors jeu (contact, signalement…).
   Objectif : qu'on ne sente pas la couture entre le jeu et ces écrans —
   même fond, même carte, même or, mêmes cibles tactiles. */

:root { color-scheme: dark; }
* { -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; background: #052e16; }
body {
  min-height: 100vh;
  color: #d1fae5;
  background: radial-gradient(ellipse at 50% -10%, #1a6b42 0%, #14532d 45%, #052e16 100%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px calc(env(safe-area-inset-bottom, 0px) + 32px);
}

/* Filigrane d'enseignes, comme sur les écrans du jeu */
.filigrane { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.filigrane span { position: absolute; color: #a7f3d0; opacity: .09; line-height: 1; }

.page { max-width: 480px; margin: 0 auto; position: relative; z-index: 1; }

/* En-tête : le retour ne chevauche plus le titre, qui reste centré */
.entete { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.entete h1 {
  flex: 1; min-width: 0; margin: 0; text-align: center;
  font-family: Georgia, "Times New Roman", serif; font-weight: normal;
  color: #e8b64c; font-size: 21px; text-shadow: 0 3px 10px rgba(0,0,0,.6);
}
.entete .cale { width: 44px; flex: none; }

.retour-haut {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 14px; text-decoration: none; font-size: 18px;
  background: linear-gradient(180deg, #115e45, #0b3d2e); color: #a7f3d0;
  border: 1px solid #14705266; box-shadow: 0 3px 0 #052e16, 0 5px 10px rgba(0,0,0,.35);
}
.retour-haut:active { transform: translateY(2px); box-shadow: 0 1px 0 #052e16, 0 2px 5px rgba(0,0,0,.35); }

/* Carte : exactement le panneau du jeu */
.carte {
  background: linear-gradient(180deg, rgba(6,58,42,.92), rgba(4,40,28,.95));
  border: 1px solid #14705266; border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
  padding: 18px 16px;
}
.carte + .carte { margin-top: 14px; }

.intro { font-size: 13px; line-height: 1.6; color: #a7f3d0; margin: 0 0 4px; }

label {
  display: block; margin: 18px 0 7px; color: #6ee7b7;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
label.requis::after { content: " *"; color: #e8b64c; }

input, select, textarea {
  width: 100%; box-sizing: border-box; min-height: 48px;
  background: rgba(2, 35, 16, .85); border: 1px solid #14705288; border-radius: 14px;
  padding: 13px 14px; color: #ecfdf5; font-size: 16px; font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .18);
}
::placeholder { color: #4f9c78; }

/* Menu déroulant : le chevron du système est remplacé par celui du jeu */
select {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23e8b64c' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 12px 8px;
}
select option { background: #0b3d2e; color: #ecfdf5; }

textarea { min-height: 130px; resize: vertical; line-height: 1.5; }

.btn-or {
  display: block; width: 100%; margin-top: 22px; padding: 15px; cursor: pointer;
  background: linear-gradient(180deg, #fcd34d, #f59e0b); color: #052e16;
  border: none; border-radius: 16px; font-size: 16px; font-weight: bold; font-family: inherit;
  box-shadow: 0 3px 0 #b45309, 0 6px 12px rgba(0, 0, 0, .4);
}
.btn-or:active { transform: translateY(2px); box-shadow: 0 1px 0 #b45309, 0 2px 5px rgba(0, 0, 0, .35); }
.btn-or:disabled { opacity: .55; }

.btn-sombre {
  display: block; width: 100%; margin-top: 12px; padding: 13px; text-align: center; text-decoration: none;
  background: linear-gradient(180deg, #115e45, #0b3d2e); color: #a7f3d0;
  border: 1px solid #14705266; border-radius: 16px; font-size: 14px; font-weight: bold;
  box-shadow: 0 3px 0 #052e16, 0 5px 10px rgba(0, 0, 0, .35);
}
.btn-sombre:active { transform: translateY(2px); box-shadow: 0 1px 0 #052e16, 0 2px 5px rgba(0, 0, 0, .35); }

.err { color: #fca5a5; font-size: 13px; margin-top: 12px; text-align: center; min-height: 0; }
.note { font-size: 11px; color: #4f9c78; margin: 12px 0 0; line-height: 1.55; }
.note a { color: #6ee7b7; }

/* Écran de confirmation */
.merci { text-align: center; }
.merci .emoji { font-size: 44px; line-height: 1; margin-bottom: 8px; }
.merci h2 {
  margin: 0 0 8px; font-family: Georgia, "Times New Roman", serif; font-weight: normal;
  color: #e8b64c; font-size: 20px;
}
.merci p { font-size: 14px; line-height: 1.65; color: #a7f3d0; margin: 0; }

/* ---------- Pages de contenu long (règles, confidentialité, outils) ---------- */
.page.large { max-width: 640px; }
.sous-titre { text-align: center; color: #a7f3d0; font-size: 13px; margin: 0 0 18px; }

.carte h2 {
  margin: 2px 0 10px; color: #e8b64c;
  font-family: Georgia, "Times New Roman", serif; font-weight: normal; font-size: 17px;
}
.carte h3 { margin: 14px 0 6px; color: #fbbf24; font-size: 14px; }
.carte p, .carte li { font-size: 14px; line-height: 1.6; }
.carte ul, .carte ol { padding-left: 20px; margin: 8px 0; }
.carte b { color: #fde68a; }
.carte a { color: #6ee7b7; }
.jk { color: #a78bfa; font-weight: bold; }

/* Tableaux : encadrés arrondis plutôt que grille de bordures façon page web */
table {
  width: 100%; margin: 10px 0; font-size: 13px;
  border-collapse: separate; border-spacing: 0;
  border: 1px solid #14705266; border-radius: 12px; overflow: hidden;
}
th, td { padding: 9px 10px; text-align: left; border-bottom: 1px solid #14705244; }
tr:last-child td { border-bottom: none; }
th {
  color: #e8b64c; background: rgba(2, 35, 16, .55);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
