/* ==========================================================
   Orphelinat Pattaya - Accès listing CV parrainage
   Style carte claire, bouton dégradé bleu en pilule
   ========================================================== */

:root {
  --fond: #f7f8ff;
  --carte: #ffffff;
  --titre: #262938;
  --texte: #4a5578;
  --bleu-fonce: #1e3f94;
  --bleu: #2459c9;
  --trait: #dfe4f2;
  --erreur: #b3261e;
}

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

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: "Noto Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--texte);
  background: var(--fond);
}

/* ---------- Carte ---------- */

.acces {
  width: 100%;
  max-width: 440px;
  padding: 48px 32px 32px;
  text-align: center;
  background: var(--carte);
  border-radius: 28px;
  box-shadow:
    0 1px 3px rgba(36, 60, 130, 0.06),
    0 24px 56px -16px rgba(36, 89, 201, 0.22);
}

.acces h1 {
  margin: 0 0 14px;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--titre);
}

.acces .intro {
  margin: 0 0 32px;
  font-size: 1.05rem;
}

/* ---------- Formulaire ---------- */

.champ {
  margin-bottom: 18px;
  text-align: left;
}

.champ label {
  display: block;
  margin: 0 0 6px 4px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--titre);
}

.champ input {
  display: block;
  width: 100%;
  padding: 14px 18px;
  font: inherit;
  color: var(--titre);
  background: #fff;
  border: 1.5px solid var(--trait);
  border-radius: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.champ input:hover {
  border-color: #c3cce6;
}

.champ input:focus {
  outline: none;
  border-color: var(--bleu);
  box-shadow: 0 0 0 4px rgba(36, 89, 201, 0.16);
}

.bouton {
  display: block;
  width: 100%;
  margin-top: 30px;
  padding: 18px 24px;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--bleu-fonce) 0%, var(--bleu) 100%);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 14px 26px -10px rgba(30, 63, 148, 0.55);
  transition: filter 0.15s, box-shadow 0.15s;
}

.bouton:hover {
  filter: brightness(1.08);
  box-shadow: 0 16px 30px -10px rgba(30, 63, 148, 0.6);
}

.bouton:active {
  transform: translateY(1px);
}

.bouton:focus-visible {
  outline: 3px solid var(--bleu);
  outline-offset: 3px;
}

/* Message d'erreur (à réutiliser dans resultat.php si besoin) */
.erreur {
  margin: 0 0 18px;
  padding: 12px 16px;
  font-size: 0.92rem;
  text-align: left;
  color: var(--erreur);
  background: #fdeceb;
  border-radius: 14px;
}

/* ---------- Mention dons ---------- */

.note-dons {
  margin: 32px 0 0;
  padding-top: 20px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #6b7597;
  border-top: 1px solid var(--trait);
}

/* ---------- Mobile ---------- */

@media (max-width: 480px) {
  body {
    padding: 14px;
  }

  .acces {
    padding: 40px 22px 26px;
    border-radius: 24px;
  }

  .acces h1 {
    font-size: 1.45rem;
  }
}

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