/* Espace client Predixis : charte de ../site/doc/predixis-charte-couleurs.txt, polices
   hébergées ici (Montserrat, licence OFL dans polices/). */
@font-face {
  font-family: 'Montserrat'; font-weight: 400; font-display: swap;
  src: url(polices/montserrat-latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Montserrat'; font-weight: 600; font-display: swap;
  src: url(polices/montserrat-latin-600-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Montserrat'; font-weight: 700; font-display: swap;
  src: url(polices/montserrat-latin-700-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Montserrat'; font-weight: 800; font-display: swap;
  src: url(polices/montserrat-latin-800-normal.woff2) format('woff2');
}
:root {
  --bleu-nuit: #2C3E50;
  --bleu: #3498DB;
  --bleu-fonce: #2980B9;
  --encre: #333;
  --ardoise: #666;
  --bordure: #E0E6ED;
  --fond: #F7F9FC;
  --vert: #27AE60;
  --rouge: #E74C3C;
}

* { box-sizing: border-box; }
/* Un display posé par une règle l'emporterait sur l'attribut hidden. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.bandeau {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: #fff;
  border-bottom: 1px solid var(--bordure);
}
.bandeau .logo { width: 40px; height: 40px; display: block; }

main { padding: 32px 16px; }

.carte {
  max-width: 440px;
  margin: 0 auto;
  padding: 32px 28px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

h1 {
  margin: 0 0 24px;
  color: var(--bleu-nuit);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--bleu-nuit);
  font-size: 14px;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--bordure);
  border-radius: 8px;
  font: inherit;
  font-size: 16px; /* moins de 16px : le téléphone zoome sur le champ */
  color: var(--encre);
}
input:focus { outline: none; border-color: var(--bleu-fonce); }
input.code { letter-spacing: 3px; text-transform: uppercase; text-align: center; }

/* Une case à cocher avec son texte sur la même ligne, pas un champ en pleine largeur. */
.coche {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  font-weight: 400;
  cursor: pointer;
}
.coche[hidden] { display: none; }
.coche input { width: 18px; height: 18px; padding: 0; flex: none; cursor: pointer; }

button {
  width: 100%;
  margin-top: 16px;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  background: var(--bleu);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
button:hover, button:focus-visible { background: var(--bleu-fonce); }
button:disabled { opacity: 0.6; cursor: wait; }

button.discret {
  width: auto;
  margin: 0;
  padding: 8px 16px;
  border: 1.5px solid var(--bordure);
  background: transparent;
  color: var(--bleu-nuit);
  font-weight: 500;
}
button.discret:hover, button.discret:focus-visible {
  background: transparent;
  border-color: var(--bleu);
  color: var(--bleu-fonce);
}

.message { margin: 0 0 20px; }
.aide { color: var(--ardoise); font-size: 14px; }
.pas-client { margin: 24px 0 0; text-align: center; }
/* Le formulaire qui vient après un autre sur la même carte : bien détaché de son bouton. */
.suite { margin-top: 32px; }
/* Le code du mail : replié, pour que le lien reste le chemin normal. */
.par-code { margin-bottom: 20px; }
.par-code summary { color: var(--bleu-fonce); font-size: 14px; cursor: pointer; }
.par-code[open] summary { margin-bottom: 16px; }
.erreur { margin: 12px 0 0; color: var(--rouge); font-size: 15px; }
a { color: var(--bleu-fonce); }
