/* =============================
   Thesr Public Pages – 2025 Refresh
   ============================= */
/* One palette with the application: near-white paper, one contrast colour, and
   that colour is the navy the mark is drawn in. The orange these pages were
   built on (--accent: #17356b, and thirty-odd literal copies of it) is the one
   thing the product no longer uses anywhere. */
:root {
  --primary: #17356b;
  --primary-dark: #0f2750;
  --primary-light: #244a86;
  --accent: #17356b;
  --accent-dark: #0f2750;
  --text: #0f172a;
  --text-light: #475569;
  --line: #e6e8ec;
  --paper: #f8f9fb;
  --surface: #ffffff;
  --tint: #eef4ff;
  --tint-line: #d6e3f8;
}

.public-page {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
  font-family: "IBM Plex Sans", "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  min-height: 100vh;
}

.public-main {
  /* La hauteur de ce qu'il y a dedans, pas celle de l'écran : une carte de
     trois champs laissait une bande vide d'un demi-écran avant le pied de
     page (23 septembre). Le minimum garde le pied de page en bas sur les
     pages courtes. */
  min-height: max(38vh, 320px);
  padding: 5vh 1.25rem 6vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.public-panel {
  width: 100%;
  /* Un formulaire de trois champs dans une carte de 920px laissait la moitié
     droite vide : la carte fait maintenant la largeur de ce qu'on y lit
     (23 septembre). Les pages qui ont vraiment besoin de la largeur - les
     textes légaux - la reprennent avec .public-panel--wide. */
  max-width: 660px;
  background: #ffffff;
  padding: 3rem 2.75rem;
  border-radius: 20px;
  box-shadow: 0 32px 80px -50px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(230, 232, 236, 0.9);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.public-panel--wide { max-width: 920px; }

.public-panel h1,
.public-panel h2 {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.public-panel h1 {
  font-size: 2rem;
  text-align: center;
}

.public-panel p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.public-panel .btn-primary {
  align-self: flex-start;
  background: linear-gradient(135deg, #17356b 0%, #0f2750 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 2.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px rgba(23, 53, 107, 0.32);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.public-panel .btn-primary:hover {
  background: linear-gradient(135deg, #244a86 0%, #17356b 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(23, 53, 107, 0.44);
}

.public-panel a {
  color: var(--primary);
  text-decoration: none;
}

.public-panel a:hover {
  text-decoration: underline;
}

.public-panel .form-check,
.form-check {
  display: flex !important;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-light);
  padding-left: 0 !important;
}

.public-panel .form-check .form-check-input,
.form-check .form-check-input {
  flex-shrink: 0;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  margin-top: 0.1rem !important;
  margin-left: 0 !important;
  float: none !important;
  accent-color: #17356b;
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  border: 1px solid rgba(18, 56, 96, 0.3) !important;
  border-radius: 4px !important;
  background: transparent !important;
  cursor: pointer;
}

.form-check-label a {
  color: var(--primary);
  text-decoration: underline;
}

.demo-request-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.demo-header h1 {
  font-size: 2rem;
  color: var(--primary);
  text-align: center;
}

/* The contact page's head, like the demonstration page's: centred, the title
   an h1 in the panel's serif. It was an h2 centred under an eyebrow and an
   introduction aligned left (26 September). */
.contact-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.contact-head__lead { max-width: 46ch; }

/* In a panel, the contact form takes the demonstration page's fields: the
   landing's dark rule along the top of each field, and its bold entry, read
   there as a stray border and a shout (26 September). The landing keeps its
   own. */
.landing-page .public-panel .contact-form .input-with-icon,
.landing-page .public-panel .contact-form .textarea-with-icon {
  background: rgba(247, 249, 251, 0.96);
  border-color: rgba(29, 53, 87, 0.14);
  box-shadow: none;
}
.landing-page .public-panel .contact-form .input-with-icon:focus-within,
.landing-page .public-panel .contact-form .textarea-with-icon:focus-within {
  border-color: rgba(23, 53, 107, 0.28);
  box-shadow: 0 0 0 3px rgba(23, 53, 107, 0.08);
}
.landing-page .public-panel .contact-form input,
.landing-page .public-panel .contact-form textarea { font-weight: 400; }
/* Its button, the landing's and the sign-in pages': the whole width, a pill.
   style.css shrinks every .btn with !important, so it is answered the same
   way. */
.landing-page .public-panel .contact-form .btn-primary {
  align-self: stretch;
  min-height: 50px;
  padding: 0.8rem 1.5rem !important;
  border-radius: 999px !important;
  font-size: 1rem !important;
}

.demo-intro {
  margin: 0 auto;
  max-width: 640px;
  font-size: 1.05rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.6;
}

.demo-stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  gap: 1.5rem;
  padding: 0 0.75rem;
}

.demo-stepper::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 12%;
  right: 12%;
  height: 3px;
  background: #e2e8f0;
  z-index: 0;
}

.demo-stepper .step {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.demo-stepper .circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #edf2f7;
  color: var(--text-light);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px -16px rgba(12, 28, 36, 0.45);
  transition: transform .3s ease, background .3s ease, color .3s ease;
}

.demo-stepper .step.completed .circle,
.demo-stepper .step.current .circle {
  background: linear-gradient(135deg, #17356b 0%, #0f2750 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(23, 53, 107, 0.35);
}

.demo-stepper .step.current .circle {
  transform: scale(1.05);
}

.demo-stepper .label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

.demo-stepper .step.completed .label,
.demo-stepper .step.current .label {
  color: var(--primary);
}

.demo-progress {
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  height: 6px;
}

.demo-progress .progress-bar {
  background: linear-gradient(135deg, #17356b 0%, #0f2750 100%);
}

.demo-form,
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.demo-form .btn-primary {
  align-self: flex-end;
  padding-inline: 2.6rem;
}

.contact-form .btn-primary {
  align-self: flex-start;
  padding-inline: 2.4rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-field label,
.field-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.input-with-icon,
.textarea-with-icon {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(29, 53, 87, 0.14);
  background: rgba(247, 249, 251, 0.96);
  transition: border-color .25s ease, box-shadow .25s ease;
}

.textarea-with-icon {
  align-items: flex-start;
}

.input-with-icon:focus-within,
.textarea-with-icon:focus-within {
  border-color: rgba(76, 140, 191, 0.45);
  box-shadow: 0 0 0 3px rgba(76, 140, 191, 0.18);
}

.input-with-icon i,
.textarea-with-icon i {
  color: var(--primary);
  font-size: 1rem;
  margin-top: 0.1rem;
}

.form-field input,
.form-field textarea {
  border: none;
  background: transparent;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  padding: 0;
  width: 100%;
  box-shadow: none;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

/* Override Bootstrap form-control inside icon wrappers */
.input-with-icon .form-control,
.textarea-with-icon .form-control {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 100%;
  font-size: 1rem;
  color: var(--text);
  font-family: inherit;
}

.input-with-icon .form-control:focus,
.textarea-with-icon .form-control:focus {
  outline: none;
  box-shadow: none !important;
}

/* Privacy / GDPR checkbox */
.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--text-light);
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(18, 56, 96, 0.05);
  border: 1px solid rgba(18, 56, 96, 0.12);
}

.privacy-check input[type="checkbox"],
.privacy-check .form-check-input {
  flex-shrink: 0;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  margin-top: 0.1rem !important;
  margin-left: 0 !important;
  padding: 0 !important;
  accent-color: #17356b;
  cursor: pointer;
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  float: none !important;
  border: 1px solid rgba(18, 56, 96, 0.35) !important;
  border-radius: 4px !important;
  background: transparent !important;
}

/* style.css transforme toute `.form-check-input[type=checkbox]` du produit en
   interrupteur : un rail de 3em et un bouton rond dessiné en `::before`. Les
   règles ci-dessus rendent la case à cocher native, mais le bouton rond, lui,
   restait - Firefox ne peint pas de pseudo-élément sur un contrôle natif,
   WebKit si : sur Safari, la case de consentement était un grand cercle gris
   (23 septembre). */
.public-panel .form-check .form-check-input::before,
.form-check .form-check-input::before,
.privacy-check .form-check-input::before {
  content: none !important;
}

/* Et Safari garde la bordure et le relief natifs d'un champ tant qu'on ne les
   lui retire pas : les champs du formulaire y apparaissaient cernés de noir,
   là où le cadre est dessiné par leur conteneur. */
.form-field input,
.form-field textarea,
.input-with-icon input,
.input-with-icon .form-control,
.textarea-with-icon textarea,
.textarea-with-icon .form-control {
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}

.privacy-check label {
  cursor: pointer;
  line-height: 1.5;
  margin: 0;
}

.privacy-check a {
  color: #17356b;
  font-weight: 600;
  text-decoration: underline;
}

/* Password strength widget */
.pwd-strength-bar {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-top: 0.5rem;
}

.pwd-strength-bar .progress-bar {
  height: 100%;
  transition: width 0.3s ease, background 0.3s ease;
  border-radius: 999px;
}

.pwd-rules {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 0.75rem;
  font-size: 0.8rem;
}

.pwd-rules li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-light);
}

.pwd-rules li::before {
  content: '○';
  color: #cbd5e0;
  font-size: 0.7rem;
}

.pwd-rules li.valid {
  color: #2d8a4e;
}

.pwd-rules li.valid::before {
  content: '✓';
  color: #2d8a4e;
}

/* Simple auth panel (password reset, link request) */
.simple-auth-panel {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* The mark above the title on the three sign-in pages - a magnifier for a lost
   link, a key for a forgotten password, an open lock for a new one. It was
   written inline on each page, which the Content Security Policy's
   style-src-attr refuses; these are the values it computed to. */
.auth-icon-row {
  text-align: center;
  margin-bottom: 1rem;
}
.auth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(18, 56, 96, 0.1);
  border: 1px solid rgba(18, 56, 96, 0.18);
}
.auth-icon > i {
  color: #123860;
  font-size: 1.3rem;
}

.simple-auth-panel h2 {
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  text-align: center;
}

.simple-auth-panel .auth-description {
  text-align: center;
  font-size: 0.97rem;
}

.simple-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.simple-auth-form .btn-primary {
  align-self: stretch;
  text-align: center;
  background: linear-gradient(135deg, #17356b 0%, #0f2750 100%);
  border: none;
  color: #fff;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(23, 53, 107, 0.32);
  transition: transform .25s ease, box-shadow .25s ease;
}

.simple-auth-form .btn-primary:hover {
  background: linear-gradient(135deg, #244a86 0%, #17356b 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(23, 53, 107, 0.44);
}

.auth-back-link {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-light);
}

.auth-back-link a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

/* The arrow is smaller than the words it leads, as it was when the size was
   written on the element itself. */
.auth-back-link a > i {
  font-size: 0.8rem;
}

.auth-back-link a:hover {
  text-decoration: underline;
}

.form-error-banner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(220, 38, 38, 0.10);
  border: 1px solid rgba(220, 38, 38, 0.22);
  color: #b91c1c;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.9rem;
}

/* Status / confirmation panels */
.status-panel {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 1.5rem;
}

.status-icon--success {
  background: rgba(45, 138, 78, 0.12);
  border: 1px solid rgba(45, 138, 78, 0.22);
  color: #2d8a4e;
}

.status-icon--info {
  background: rgba(18, 56, 96, 0.10);
  border: 1px solid rgba(18, 56, 96, 0.18);
  color: #123860;
}

.status-icon--warning {
  background: rgba(23, 53, 107, 0.12);
  border: 1px solid rgba(23, 53, 107, 0.22);
  color: #17356b;
}

.status-icon--error {
  background: rgba(220, 38, 38, 0.10);
  border: 1px solid rgba(220, 38, 38, 0.20);
  color: #b91c1c;
}

.status-panel h2 {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.status-panel p {
  font-size: 0.97rem;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 400px;
  margin: 0;
}

.status-panel .btn-primary {
  align-self: center;
  background: linear-gradient(135deg, #17356b 0%, #0f2750 100%);
  border: none;
  color: #fff;
  border-radius: 999px;
  padding: 0.8rem 2rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(23, 53, 107, 0.32);
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
  display: inline-block;
}

.status-panel .btn-primary:hover {
  background: linear-gradient(135deg, #244a86 0%, #17356b 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(23, 53, 107, 0.44);
  color: #fff;
}

/* Le retour au compte, pendant une démonstration (login/sandbox_way_back.html). */
.way-back__actions { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.way-back__stay { font-size: 0.9rem; color: var(--text-light); }
/* Le code redemandé pour revenir à un compte qui a une double authentification. */
.way-back__code { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; width: min(100%, 14rem); }
.way-back__code label { font-size: 0.85rem; font-weight: 600; color: var(--text-light); }
.way-back__code input { text-align: center; font-size: 1.25rem; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }
.status-panel .way-back__error { margin: 0; font-size: 0.85rem; color: #b42318; }

.form-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: -0.5rem 0 0;
}

/* =============================
   Auth pages
   ============================= */

.auth-layout {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: stretch;
}

@media (min-width: 992px) {
  .auth-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

.auth-intro {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: #17356b;
}

.auth-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

/* The column reads left to right, eyebrow to highlights: the panel's centred
   h1 is for the one-message pages, and wins over .auth-title alone. */
.public-panel .auth-title {
  text-align: left;
}

.auth-description {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 520px;
}

.auth-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.auth-highlights li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: rgba(18, 56, 96, 0.06);
  border: 1px solid rgba(18, 56, 96, 0.14);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.auth-highlights i {
  color: var(--primary);
}

.auth-card {
  background: #ffffff;
  border-radius: 20px;
  padding: clamp(2rem, 3vw, 2.75rem);
  box-shadow: 0 35px 70px -45px rgba(12, 26, 46, 0.25);
  border: 1px solid rgba(18, 56, 96, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.auth-alert {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #b91c1c;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 0.92rem;
}

.auth-form {
  gap: 1.25rem;
}

.auth-links {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.5rem;
}

.auth-links a {
  color: var(--primary);
  font-weight: 600;
}

.auth-submit {
  width: 100%;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.85rem 1rem;
}

.auth-submit + .auth-submit {
  margin-top: -0.25rem;
}

.auth-terms {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* =============================
   Contact page
   ============================= */

.contact-layout {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: stretch;
}

@media (min-width: 992px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.contact-intro {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary-light);
}

.contact-title {
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  margin-bottom: 0.25rem;
}

.contact-description {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 560px;
}

.contact-details {
  display: grid;
  gap: 1rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(247, 249, 251, 0.96);
  border: 1px solid rgba(29, 53, 87, 0.1);
  color: var(--text);
}

.contact-detail i {
  color: var(--primary);
  font-size: 1.1rem;
}

.contact-detail__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary-light);
  font-weight: 700;
}

.contact-detail a {
  color: var(--primary);
  font-weight: 600;
}

.contact-highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(29, 53, 87, 0.08);
  border: 1px solid rgba(29, 53, 87, 0.15);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  color: var(--primary);
  font-weight: 600;
}

.contact-card {
  background: #fff;
  border-radius: 24px;
  padding: clamp(2rem, 3vw, 2.75rem);
  box-shadow: 0 40px 80px -55px rgba(12, 28, 36, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card h2 {
  font-size: 1.5rem;
  margin: 0;
}

.contact-card__description {
  color: var(--text-light);
  margin: 0;
  font-size: 0.95rem;
}

.choice-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.choice-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  display: none;
}

.choice-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 18px;
  padding: 0.9rem 1rem;
  border: 1px solid #dce4ef;
  background: #f4f7fb;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.choice-card i {
  color: var(--primary);
  font-size: 1rem;
}

.choice-card:hover {
  border-color: rgba(23, 53, 107, 0.35);
  background: rgba(23, 53, 107, 0.05);
}

.choice-card.active,
.choice-input:checked + .choice-card {
  border-color: rgba(23, 53, 107, 0.55);
  background: rgba(23, 53, 107, 0.10);
  color: var(--primary);
  box-shadow: 0 10px 28px -16px rgba(23, 53, 107, 0.28);
}

.errorlist {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: #c0392b;
}

.g-recaptcha {
  transform-origin: left top;
}

/* Paper, like the marketing page and the application either side of it. The
   dark band with white links belonged to the palette these pages left. */
/* style.css paints every .navbar with a navy gradient and marks it important,
   so this has to say so too or the bar stays dark under light text. */
nav.navbar.navbar-custom,
.navbar-custom {
  background: rgba(255, 255, 255, 0.96) !important;
  background-image: none !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

nav.navbar.navbar-custom .navbar-brand,
nav.navbar.navbar-custom .navbar-brand span,
.navbar-custom .navbar-brand,
.navbar-custom .navbar-brand span {
  font-weight: 700;
  color: var(--text) !important;
}

nav.navbar.navbar-custom .nav-link,
.navbar-custom .nav-link {
  color: var(--text-light) !important;
  font-weight: 550;
}

.navbar-custom .nav-link:hover {
  color: var(--primary) !important;
}

.navbar-custom .navbar-toggler {
  border-color: var(--line);
}

.saas-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--text-light);
  font-size: 0.875rem;
  padding: 2rem 0;
  text-align: center;
}

/* The four links ran into one another: they were laid out as inline text with
   a horizontal margin each, in a container narrow enough that the last one
   started before the third had finished. A row that wraps, with a real gap. */
.saas-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 1.5rem;
}

.saas-footer a {
  color: var(--text-light);
  margin: 0;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease;
}

.saas-footer a:hover {
  color: #17356b;
}

/* This page in each language, under the footer's links. It was a globe emoji
   in a half-transparent box fixed to the bottom-left corner of every page,
   over whatever was there, with a menu of flags (23 September). Words, where
   a reader looks for them, and the one being read is stated rather than
   offered. */
.saas-footer .lang-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.saas-footer .lang-switch__choice {
  color: var(--text-light);
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
}

.saas-footer .lang-switch__choice:hover {
  color: #17356b;
  text-decoration: underline;
}

.saas-footer .lang-switch__choice.is-current {
  color: #17356b;
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .public-panel {
    padding: 2.5rem 1.75rem;
    border-radius: 16px;
  }

  .demo-form .btn-primary,
  .contact-form .btn-primary {
    align-self: stretch;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .public-panel {
    padding: 2rem 1.25rem;
  }

  .demo-stepper::before {
    left: 20%;
    right: 20%;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }
}

/* ── OAuth consent (MCP: Claude, ChatGPT, Copilot) ───────────────────── */
.oauth-consent { max-width: 34rem; margin: 0 auto; text-align: left; }
.oauth-consent__head { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 1rem; }
.oauth-consent__logo {
  flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 12px; background: #eef4ff; color: #17356b; font-size: 1.2rem; overflow: hidden;
}
.oauth-consent__logo img { width: 40px; height: 40px; object-fit: contain; }
.oauth-consent__title { font-size: 1.25rem; font-weight: 600; margin: 0; color: #0f172a; line-height: 1.3; }
.oauth-consent__who { margin: 0.2rem 0 0; font-size: 0.88rem; color: #64748b; }
.oauth-consent__redirect { font-size: 0.9rem; color: #475569; margin: 0 0 1.25rem; }
.oauth-consent__warn { color: #a2701c; }
.oauth-consent__subtitle {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #94a3b8; margin: 0 0 0.6rem;
}
.oauth-consent__list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.6rem; }
.oauth-consent__list li { display: flex; gap: 0.55rem; font-size: 0.92rem; color: #0f172a; line-height: 1.45; }
.oauth-consent__list li > i { color: #1f7a4c; margin-top: 0.25rem; }
.oauth-consent__option label { display: flex; gap: 0.55rem; cursor: pointer; margin: 0; }
.oauth-consent__option input { margin-top: 0.25rem; accent-color: #17356b; }
.oauth-consent__muted { color: #64748b !important; }
.oauth-consent__muted > i { color: #94a3b8 !important; }
.oauth-consent__note { font-size: 0.82rem; color: #64748b; margin: 0 0 1.25rem; }
.oauth-consent__actions { display: flex; justify-content: flex-end; gap: 0.5rem; }
.oauth-consent__option { margin: 0 0 1rem; padding: 0.75rem 0.9rem; border-radius: 10px; background: #f6f7f9; }
.oauth-consent__list--nested { margin: 0.6rem 0 0 1.6rem; }
.oauth-consent__list--nested li > i { color: #64748b; }
.oauth-consent__muted-text { color: #64748b; font-size: 0.85rem; font-weight: 400; }
.oauth-consent__option input[type="checkbox"] { width: 1.05rem; height: 1.05rem; min-height: 0; flex: 0 0 auto; padding: 0; }
.oauth-consent__redirect { margin-bottom: 1.5rem; }

/* ── La porte d'une démonstration (sandbox_code.html) ────────────────── */
/* Sur la page de connexion depuis le 26 septembre (login/_auth.html) : d'où
   .signin-page devant chaque règle, là où c'était .public-panel. */
.signin-page .sb-entry { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
.signin-page .sb-entry__tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary); background: var(--tint); border: 1px solid var(--tint-line);
  padding: 0.35rem 0.8rem; border-radius: 999px;
}
.signin-page .sb-entry__dot { width: 7px; height: 7px; border-radius: 50%; background: #1f7a4c; box-shadow: 0 0 0 3px rgba(31, 122, 76, 0.15); }
.signin-page .sb-entry h1 { font-size: 2.1rem; line-height: 1.2; }
.signin-page .sb-entry__lead { max-width: 30rem; font-size: 1.02rem; }
/* Un seul bord gauche et un seul bord droit pour le code, la case et le
   bouton : la colonne du formulaire. */
.signin-page .sb-entry__form { width: 100%; max-width: 22rem; display: flex; flex-direction: column; gap: 1.1rem; margin-top: 0.75rem; text-align: left; }
.signin-page .sb-entry__form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.signin-page .sb-entry__form legend {
  float: none; width: auto; margin: 0 0 0.55rem; padding: 0;
  font-size: 0.85rem; font-weight: 600; color: var(--text);
}
.signin-page .sb-entry__code { display: flex; gap: 0.65rem; }
.signin-page .sb-entry__code .invite-digit {
  flex: 1 1 0; min-width: 0; height: 3.9rem; padding: 0; text-align: center;
  font: 600 1.6rem/1 "IBM Plex Sans", "Inter", system-ui, sans-serif; color: var(--text);
  background: var(--paper); border: 1px solid #cfd5df; border-radius: 12px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.signin-page .sb-entry__code .invite-digit:focus {
  outline: none; background: #fff; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(23, 53, 107, 0.12);
}
.signin-page .sb-entry__code .invite-digit.is-invalid { border-color: #b42318; background: #fff; }
.signin-page .sb-entry__hint,
.signin-page .sb-entry__error { margin: 0.55rem 0 0; font-size: 0.82rem; }
.signin-page .sb-entry__error { color: #b42318; font-weight: 500; }
.signin-page .sb-entry__form .btn-primary { align-self: stretch; display: inline-flex; justify-content: center; align-items: center; }
/* Ce qu'il y a derrière la porte : trois colonnes égales, pas une ligne et
   demie selon la longueur des phrases. */
.signin-page .sb-entry__points {
  list-style: none; margin: 1rem 0 0; padding: 1.5rem 0 0; width: 100%;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem;
  font-size: 0.84rem; line-height: 1.45; color: var(--text-light);
}
.signin-page .sb-entry__points li { display: flex; flex-direction: column; align-items: center; gap: 0.55rem; margin: 0; }
.signin-page .sb-entry__points i {
  display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--tint); color: var(--primary); font-size: 0.85rem;
}
.signin-page .sb-entry__fine { font-size: 0.8rem; color: #64748b; margin-top: 0.25rem; }
.signin-page .sb-entry__kept {
  display: flex; align-items: flex-start; gap: 0.55rem; margin: 0;
  font-size: 0.8rem; line-height: 1.45; color: var(--text-light);
}
.signin-page .sb-entry__kept i { color: #1f7a4c; margin-top: 0.15rem; }
/* L'espace qui s'ouvre, après le code : dans la même carte, à la place du
   formulaire. Une deuxième page le faisait, carte dans la carte, et attendait
   un clic (25 septembre). La carte garde sa hauteur (invite_code.js) : rien
   ne saute quand le formulaire s'efface. */
.signin-page .sb-entry.is-opening { justify-content: center; }
.signin-page .sb-entry.is-opening > :not(.sb-entry__opening) { display: none; }
.signin-page .sb-entry__opening[hidden] { display: none; }
.signin-page .sb-entry__opening {
  display: flex; flex-direction: column; align-items: center; gap: 1.15rem;
  animation: sb-opening-in .3s ease both;
}
.signin-page .sb-entry__emblem { position: relative; width: 88px; height: 88px; display: grid; place-items: center; }
.signin-page .sb-entry__emblem img { border-radius: 10px; }
.signin-page .sb-entry__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: sb-ring 1.1s linear infinite; }
.signin-page .sb-entry__ring circle { fill: none; stroke-width: 3; }
.signin-page .sb-entry__ring-track { stroke: var(--tint-line); }
/* 2πr = 251 : un quart de tour, qui tourne. */
.signin-page .sb-entry__ring-arc { stroke: var(--primary); stroke-linecap: round; stroke-dasharray: 64 188; }
.signin-page .sb-entry__opening-title {
  margin: 0; font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: 1.55rem; line-height: 1.25; font-weight: 600; color: var(--primary);
}
.signin-page .sb-entry__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; text-align: left; }
.signin-page .sb-entry__steps li {
  display: flex; align-items: center; gap: 0.7rem; margin: 0;
  font-size: 0.92rem; color: var(--text-light);
  opacity: 0; transform: translateY(4px); animation: sb-step .35s ease forwards;
}
.signin-page .sb-entry__steps li:nth-child(2) { animation-delay: .35s; }
.signin-page .sb-entry__steps li:nth-child(3) { animation-delay: .7s; }
.signin-page .sb-entry__steps li:first-child { animation-delay: 0s; }
.signin-page .sb-entry__steps i {
  display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%;
  font-size: 0.66rem; background: rgba(31, 122, 76, 0.12); color: #1f7a4c;
}
@keyframes sb-ring { to { transform: rotate(360deg); } }
@keyframes sb-step { to { opacity: 1; transform: none; } }
@keyframes sb-opening-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .signin-page .sb-entry__opening,
  .signin-page .sb-entry__steps li { animation: none; opacity: 1; transform: none; }
  .signin-page .sb-entry__ring { animation-duration: 3s; }
}
@media (max-width: 576px) {
  .signin-page .sb-entry h1 { font-size: 1.7rem; }
  .signin-page .sb-entry__code .invite-digit { height: 3.6rem; }
  .signin-page .sb-entry__points { grid-template-columns: 1fr; gap: 0.8rem; }
  .signin-page .sb-entry__points li { flex-direction: row; text-align: left; gap: 0.75rem; }
  .signin-page .sb-entry__points i { flex: 0 0 auto; }
}

/* ── Les textes légaux (terms, privacy, cookies, dpa, legal_notice) ─────── */
/* Récrits le 26 septembre avec des tableaux (données, durées, sous-traitants) :
   la colonne d'une page légale se lit comme un texte, pas comme des cartes
   espacées de 2rem. */
.public-panel.legal-doc { gap: 0.85rem; text-align: left; }
.public-panel.legal-doc h1 { text-align: left; margin-bottom: 0.25rem !important; }
.public-panel.legal-doc h2 { margin-top: 1.4rem; font-size: 1.3rem; line-height: 1.3; }
.public-panel.legal-doc h3 {
  margin: 0.6rem 0 0; font-size: 1.02rem; font-weight: 600; color: var(--text);
  font-family: "IBM Plex Sans", "Inter", system-ui, sans-serif !important;
}
.public-panel.legal-doc ul { margin: 0; padding-left: 1.25rem; color: var(--text-light); line-height: 1.6; }
.public-panel.legal-doc li { margin: 0.2rem 0; }
.public-panel.legal-doc a { text-decoration: underline; text-underline-offset: 2px; }
.public-panel.legal-doc .legal-meta { color: var(--text-light); font-size: 0.95rem; }
.public-panel.legal-doc .table-responsive { margin: 0.25rem 0; }
.public-panel.legal-doc .legal-table { margin: 0; font-size: 0.92rem; color: var(--text); border-color: var(--line); }
.public-panel.legal-doc .legal-table th { background: var(--paper); font-weight: 600; white-space: nowrap; }
/* Bootstrap's own cell rule (.table > :not(caption) > * > *) wins over a class. */
.public-panel.legal-doc .legal-table > :not(caption) > * > * { padding: 0.6rem 0.75rem; vertical-align: top; border-color: var(--line); }
.public-panel.legal-doc .legal-table small { color: var(--text-light); }

/* On a phone, three or four columns do not fit: each row becomes a card and
   each cell says which column it is (data-label, 27 September). They were
   cut off at the panel's edge, mid-word. */
@media (max-width: 640px) {
  .public-panel.legal-doc .legal-table thead { display: none; }
  .public-panel.legal-doc .legal-table,
  .public-panel.legal-doc .legal-table tbody,
  .public-panel.legal-doc .legal-table tr,
  .public-panel.legal-doc .legal-table td { display: block; width: 100%; }
  .public-panel.legal-doc .legal-table tr {
    margin: 0 0 0.75rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
  }
  .public-panel.legal-doc .legal-table > :not(caption) > * > * { border: 0; padding: 0.45rem 0.85rem; }
  .public-panel.legal-doc .legal-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--text-light);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .public-panel.legal-doc .legal-table td:first-child { padding-top: 0.6rem; background: var(--paper); font-weight: 600; }
  .public-panel.legal-doc .legal-table td:first-child::before { display: none; }
}
.public-panel.legal-doc code { color: var(--primary); font-size: 0.88em; }
.legal-lang-note {
  padding: 0.75rem 1rem; border-radius: 10px; background: var(--tint);
  border: 1px solid var(--tint-line); color: var(--primary) !important; font-size: 0.95rem;
}
