/* Site Bluescape : une page d'accueil avec une tuile par app, puis une page par app et ses documents. */
:root {
  --fond: #0b1a2a;
  --fond-icone: #071421;
  --texte: #e8edf2;
  --texte-doux: #a9b6c3;
  --or: #d6b25e;
  --or-clair: #f6da92;
  --trait: rgba(214, 178, 94, 0.35);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--or-clair); }
a:hover, a:focus-visible { color: #fff; }

.page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
}

/* Accueil */
.marque { text-align: center; margin-bottom: 2.5rem; }
.marque h1 { margin: 0; font-size: 2.2rem; letter-spacing: 0.04em; color: var(--or-clair); font-weight: 600; }
.marque p { margin: 0.3rem 0 0; color: var(--texte-doux); }

.tuiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 1rem;
}
.tuiles a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 8.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--texte);
  font-size: 0.95rem;
  line-height: 1.3;
}
.tuiles img { transition: transform 0.15s ease; }
.tuiles a:hover img, .tuiles a:focus-visible img { transform: scale(1.05); }

.icone {
  display: block;
  border-radius: 22%;
  border: 1px solid var(--trait);
  background: var(--fond-icone);
}

/* Page d'une app */
.retour { display: inline-block; margin-bottom: 1.5rem; color: var(--texte-doux); text-decoration: none; }
.retour:hover { color: var(--texte); }

.app-tete { text-align: center; }
.app-tete h1 { margin: 1rem 0 0; font-size: 1.7rem; font-weight: 600; }
.app-tete .arabe { margin: 0.2rem 0 0; color: var(--or); font-size: 1.3rem; }
.app-tete .resume { margin: 1rem auto 0; max-width: 32rem; color: var(--texte-doux); }

.liens { list-style: none; margin: 2rem auto 0; padding: 0; max-width: 24rem; }
.liens li + li { margin-top: 0.75rem; }
.liens a {
  display: block;
  padding: 0.85rem 1rem;
  border: 1px solid var(--trait);
  border-radius: 0.75rem;
  text-align: center;
  text-decoration: none;
  color: var(--texte);
}
.liens a:hover, .liens a:focus-visible { border-color: var(--or); background: rgba(214, 178, 94, 0.08); }

/* Documents (confidentialité, conditions) */
.document h1 { font-size: 1.6rem; font-weight: 600; line-height: 1.3; margin: 0 0 0.3rem; }
.document .maj { margin: 0 0 2rem; color: var(--texte-doux); font-size: 0.95rem; }
.document h2 { font-size: 1.15rem; font-weight: 600; color: var(--or-clair); margin: 2rem 0 0.5rem; }
.document ul { padding-left: 1.3rem; }
.document li + li { margin-top: 0.35rem; }
.document [dir="rtl"] ul { padding-left: 0; padding-right: 1.3rem; }

.langues { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; }

/* Page d'une app : le résumé et le choix de langue sont centrés sous l'icône, comme le titre. */
main:not(.document) > .langues { justify-content: center; margin-top: 1.5rem; }
main:not(.document) > article > .resume { margin: 0 auto; max-width: 32rem; color: var(--texte-doux); text-align: center; }
.langues button {
  font: inherit;
  font-size: 0.9rem;
  color: var(--texte-doux);
  background: transparent;
  border: 1px solid var(--trait);
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  cursor: pointer;
}
.langues button[aria-pressed="true"] { color: var(--fond); background: var(--or); border-color: var(--or); }

/* Pied de page : mentions légales */
.pied {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--trait);
  color: var(--texte-doux);
  font-size: 0.85rem;
  text-align: center;
}
.pied p { margin: 0.2rem 0; }
