/* Page publique SharePass. Charte Targa Telematics : pétrole #0c232c, vert #80bc00
   (toujours en fond de bouton avec texte pétrole, jamais du texte vert sur blanc).
   Polices système seulement : aucune ressource tierce (CSP default-src 'none'). */

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

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

body {
  margin: 0;
  background: #0c232c;
  color: #0c232c;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

[hidden] { display: none !important; }

.fond {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.marque {
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.carte {
  width: 100%;
  max-width: 560px;
  background: #ffffff;
  border-radius: 14px;
  padding: 32px;
}

.etat { display: flex; flex-direction: column; gap: 20px; }
.etat.centre { align-items: center; text-align: center; padding: 24px 0; }

h1 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.3; }
p { margin: 0; }

.discret { color: #4b5c63; }          /* 6,6:1 sur blanc */
.petit { font-size: 14px; }

.entete { display: flex; gap: 14px; align-items: center; }

.pastille {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f1f3f4;
  color: #0c232c;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pastille-verte { background: #eef6dc; color: #3d5c00; }
.pastille-alerte { background: #fdf1e2; color: #7a3d00; }

.points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.points li { display: flex; gap: 10px; align-items: flex-start; }
.points svg { flex: none; margin-top: 3px; }

.encart {
  padding: 12px 14px;
  background: #f4f6f7;
  border-radius: 8px;
  font-size: 15px;
  color: #3f5057;
}

.phrase, .pile { display: flex; flex-direction: column; gap: 8px; }

label { font-weight: 600; }
.aide { font-size: 14px; color: #4b5c63; margin-top: -4px; }

input[type="password"], input[type="text"] {
  width: 100%;
  min-height: 48px;
  border: 2px solid #8a999f;
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  font-size: 17px;
  color: #0c232c;
  background: #ffffff;
}
input[aria-invalid="true"] { border-color: #a32b1d; }

/* Placeholders : clairs et en italique (règle de Targa Intra). */
::placeholder { color: #9aa6ab; font-style: italic; opacity: 1; }

.voir { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; font-size: 14px; cursor: pointer; }
.voir input { width: 18px; height: 18px; margin: 0; accent-color: #0c232c; }

.erreur {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fbeceb;
  border: 1px solid #e3a49c;
  color: #7c1d12;
  font-size: 15px;
}

textarea {
  width: 100%;
  border: 2px solid #0c232c;
  border-radius: 10px;
  padding: 14px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 17px;
  color: #0c232c;
  background: #f4f6f7;
  resize: vertical;
  white-space: pre-wrap;
  word-break: break-all;
}

.bouton {
  min-height: 52px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: #80bc00;
  color: #0c232c;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
}
.bouton:hover { background: #8fd000; }
.bouton:disabled { background: #c9d6b0; color: #3f5057; cursor: progress; }
.bouton-second { background: #e6ebed; }
.bouton-second:hover { background: #d6dee1; }

:focus-visible { outline: 3px solid #0c232c; outline-offset: 2px; }
/* Titre qui reçoit le focus par programme (changement d'état annoncé aux lecteurs
   d'écran) : pas de cadre, ce n'est pas une commande. */
h1[tabindex="-1"]:focus { outline: none; }
.bouton:focus-visible { outline: 3px solid #0c232c; outline-offset: 3px; box-shadow: 0 0 0 6px #ffffff inset; }

.masque {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 2px dashed #8a999f;
  border-radius: 10px;
  background: #f4f6f7;
  color: #0c232c;
}

/* Lu par les lecteurs d'écran, invisible à l'écran. */
.lecteur {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.confirme { min-height: 1.5em; font-size: 14px; color: #2f4a00; font-weight: 600; text-align: center; }

.avis {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: #fdf1e2;
  border: 1px solid #e8b673;
  border-radius: 10px;
  color: #5c2e00;
}
.avis svg { flex: none; margin-top: 2px; color: #7a3d00; }
.avis-info { background: #eef6dc; border-color: #b9d77a; color: #2f4a00; }
.avis-info svg { color: #3d5c00; }

.roue {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 4px solid #e6ebed;
  border-top-color: #0c232c;
  animation: tourne 0.9s linear infinite;
}
@keyframes tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .roue { animation: none; } }

.pied {
  max-width: 560px;
  color: #c8d3d7;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 480px) {
  .fond { padding: 20px 12px; gap: 16px; }
  .carte { padding: 22px 18px; border-radius: 12px; }
  h1 { font-size: 20px; }
}
