/* Identité reprise de l'application (src/styles.css, écran de connexion) : vert forêt, ocre, bleu eau,
   polices système. Aucune ressource externe. */
:root {
  --foret: #12301f;
  --foret-2: #1d4430;
  --manoma: #2f6b47;
  --taimako: #d08b2c;
  --eau: #2c6ba3;
  --accent: #7cc79a;
  --ambre: #f3c27e;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: #fff;
  background:
    radial-gradient(closest-side at 100% 0%, rgb(208 139 44 / 0.22), transparent) no-repeat,
    radial-gradient(closest-side at 0% 100%, rgb(125 183 230 / 0.16), transparent) no-repeat,
    var(--foret);
}

.tissage {
  height: 4px;
  background-image: linear-gradient(90deg, var(--manoma) 0 58%, var(--taimako) 58% 82%, var(--eau) 82% 100%);
}

:focus-visible { outline: 3px solid var(--ambre); outline-offset: 3px; border-radius: 4px; }

.entete, main, .pied { width: 100%; max-width: 64rem; margin-inline: auto; padding-inline: 1.25rem; }

.entete { padding-top: 1.75rem; }

.marque { display: inline-flex; align-items: center; gap: 0.75rem; color: inherit; text-decoration: none; }
.marque img { display: block; border-radius: 12px; }
.marque-nom {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
}
.marque-sous-titre { display: block; margin-top: 0.25rem; font-size: 0.8125rem; font-weight: 500; color: rgb(255 255 255 / 0.8); }

main { flex: 1; padding-top: 2.5rem; padding-bottom: 2.5rem; display: grid; gap: 2.5rem; align-content: start; }

h1 {
  margin: 0;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.acces { margin-top: 1.75rem; display: grid; gap: 1rem; justify-items: start; }

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  background: var(--taimako);
  color: var(--foret);
  font-size: 1.1875rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.25), inset 0 1px 0 rgb(255 255 255 / 0.25);
  transition: background-color 0.15s;
}
.bouton:hover { background: #e0a043; }
.bouton:active { background: #bd7b20; }

.etat { margin: 0; display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.9375rem; color: rgb(255 255 255 / 0.9); }
.etat-note { margin: 0; font-size: 0.9375rem; color: rgb(255 255 255 / 0.85); }
.pastille { flex: none; width: 0.75rem; height: 0.75rem; margin-top: 0.4rem; border-radius: 50%; background: rgb(255 255 255 / 0.6); }
.etat[data-etat="disponible"] .pastille { background: var(--accent); }
.etat[data-etat="indisponible"] .pastille { background: var(--ambre); }
.etat[data-etat="verification"] .pastille { animation: pouls 1.2s ease-in-out infinite; }
@keyframes pouls { 50% { opacity: 0.3; } }

.presentation {
  max-width: 40rem;
  padding: 1.25rem;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 16px;
  background: rgb(255 255 255 / 0.06);
}
.presentation h2 { margin: 0 0 0.75rem; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3; }
.presentation p { margin: 0 0 0.75rem; color: rgb(255 255 255 / 0.9); }
.presentation p:last-child { margin-bottom: 0; }

.pied {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgb(255 255 255 / 0.8);
}
.pied p { margin: 0; }
.logo-partenaire { display: inline-block; padding: 0.625rem 1rem; border-radius: 12px; background: #fff; box-shadow: 0 12px 32px rgb(0 0 0 / 0.25); }
.logo-partenaire img { display: block; height: 2.75rem; width: auto; }

@media (min-width: 40rem) {
  .entete, main, .pied { padding-inline: 2.5rem; }
  h1 { font-size: 2.5rem; }
  .bouton { width: auto; min-width: 18rem; }
  .presentation { padding: 1.75rem; }
}

@media (min-width: 64rem) {
  main { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; align-items: center; padding-top: 5rem; }
  .presentation { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .etat[data-etat="verification"] .pastille { animation: none; }
  .bouton { transition: none; }
}

/* Bandeau injecté par le Worker uniquement sur le staging. */
.bandeau-test {
  margin: 0;
  padding: 0.5rem 1rem;
  background: var(--ambre);
  color: var(--foret);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
}
