/* =========================================================================
   LES PAGES PUBLIQUES ET DE COMPTE (public.css)
   =========================================================================
   Connexion, mot de passe oublie, premiere connexion, second facteur,
   changement de mot de passe, pages d'erreur, documents legaux, depot par
   lien, offre d'emploi, inscription. Ce sont les pages de ceux qui n'ont pas
   encore de compte, ou qui n'arrivent pas a y entrer : elles doivent se
   comprendre en un coup d'oeil, sur un telephone de 375 px.

   UNE SEULE FACON DE FAIRE, PARTOUT :
     - un titre court, une phrase d'aide au plus ;
     - des etiquettes visibles au-dessus des champs (jamais un simple texte
       grise dans le champ) ;
     - un seul bouton principal, pleine largeur ;
     - un message d'erreur en une phrase, avec une icone ET une couleur.

   Les couleurs, les tailles, les rayons et les durees sont les jetons du site
   (biopoint.css, :root), charge avant cette feuille par chaque page publique.
   Contrastes calcules sur le fond de page : texte 18,0:1, texte secondaire
   11,4:1, aide 7,0:1 ; contour des champs 4,09:1 ; blanc sur le bouton 5,29:1.
   ========================================================================= */

/* LE FOND VA JUSQU'AU BORD. html porte la couleur de la page, comme body : le
   rebond elastique d'iOS et tout decalage du doigt montrent le meme noir, jamais du
   blanc. La valeur est celle de --bp-bg et de la couleur de theme des gabarits. La
   classe est posee par _public.html et par les pages publiques autonomes
   (inscription, souscription, parrainage), qui chargent aussi cette feuille. */
html.pub-racine { background-color: #09090b; color-scheme: dark; }
html.pub-racine > body { background-color: #09090b; }
.pub {
    background: #09090b;
    color: var(--bp-text);
    margin: 0;
    min-height: 100vh;
    font-family: var(--bp-font);
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    /* Un mot trop long pour sa ligne (empreinte SHA-256, adresse, reference) passe
       a la ligne au lieu d'elargir la page. */
    overflow-wrap: break-word;
}
.pub *, .pub *::before, .pub *::after { box-sizing: border-box; }
/* `hidden` l'emporte toujours : un bouton que le script n'a pas encore
   montre (cle d'acces) ne doit jamais paraitre, quel que soit son display. */
.pub [hidden] { display: none !important; }

.pub-page {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 24px 16px 48px;
    padding-bottom: calc(48px + env(safe-area-inset-bottom));
}
.pub-page.pub-large { max-width: 760px; }

/* ---------------- La marque, en haut ---------------- */
.pub-marque {
    display: inline-flex; align-items: center; min-height: 44px;
    color: var(--bp-text); text-decoration: none;
    font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em;
    margin: 0 0 16px;
}
/* Le sigle officiel de Ryado (l'empreinte, static/sigle.svg). */
.pub-logo { width: 28px; height: 28px; flex: 0 0 28px; display: block; margin-right: 10px; }

/* ---------------- La carte ---------------- */
.pub-carte {
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-r);
    padding: 24px 16px;
}
@media (min-width: 480px) { .pub-carte { padding: 32px 24px; } }
.pub-carte + .pub-carte { margin-top: 16px; }

.pub-titre { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 8px; color: var(--bp-text); }
.pub-aide { color: var(--bp-text-2); font-size: .9375rem; line-height: 1.5; margin: 0 0 24px; }
.pub-sous-titre { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin: 0 0 8px; color: var(--bp-text); }
.pub-texte { color: var(--bp-text-2); font-size: .9375rem; line-height: 1.6; margin: 0 0 12px; }
.pub-petit { color: var(--bp-text-3); font-size: .8125rem; line-height: 1.5; margin: 12px 0 0; }

/* ---------------- Les champs ---------------- */
.pub-champ { margin: 0 0 20px; }
.pub-etiquette {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
    font-size: .875rem; font-weight: 600; color: var(--bp-text-2);
    margin: 0 0 8px;
}
.pub-etiquette label { margin: 0; font: inherit; color: inherit; }
.pub-etiquette small { font-weight: 400; color: var(--bp-text-3); font-size: .8125rem; margin-left: auto; padding-left: 8px; }
.pub-etiquette a { display: inline-flex; align-items: center; min-height: 44px; margin: -16px 0 -8px auto; padding-left: 12px; font-weight: 500; font-size: .8125rem; white-space: nowrap; }
.pub .pub-saisie,
.pub input.pub-saisie[type="text"],
.pub input.pub-saisie[type="email"],
.pub input.pub-saisie[type="password"],
.pub input.pub-saisie[type="tel"],
.pub textarea.pub-saisie {
    display: block; width: 100%;
    min-height: 44px;
    background: var(--bp-bg);
    border: 1px solid var(--bp-border-control);
    border-radius: var(--bp-r-sm);
    padding: 8px 12px;
    color: var(--bp-text);
    font-size: 1rem;       /* 16 px : iOS ne zoome pas dans le champ */
    font-family: inherit;
    line-height: 1.4;
    transition: border-color var(--bp-duree-1) var(--bp-courbe);
}
.pub textarea.pub-saisie { min-height: 0; resize: vertical; }
.pub input.pub-saisie[type="file"] { padding: 8px; font-size: .875rem; }
.pub .pub-saisie:hover { border-color: var(--bp-text-3); }
.pub .pub-saisie:focus { outline: none; border-color: var(--bp-focus); box-shadow: 0 0 0 3px var(--bp-primary-glow); }
.pub .pub-saisie::placeholder { color: var(--bp-text-3); opacity: 1; }
.pub .pub-saisie[aria-invalid="true"] { border-color: var(--bp-danger-soft); }
.pub .pub-saisie[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(var(--bp-danger-soft-rgb), 0.2); }
.pub-saisie.pub-chiffres { font-family: var(--bp-font-mono); font-variant-numeric: tabular-nums; letter-spacing: .12em; }
/* Le message sous un champ : ce qu'il faut faire, avec son icone. */
.pub-erreur-champ { display: flex; align-items: baseline; margin: 8px 0 0; color: var(--bp-danger-soft); font-size: .8125rem; line-height: 1.45; }
.pub-erreur-champ i { flex: 0 0 auto; margin-right: 6px; font-size: .8125rem; }

/* Le mot de passe : le bouton « Afficher » dans le champ. */
.pub-mdp { position: relative; }
.pub-mdp .pub-saisie { padding-right: 48px; }
.pub-voir {
    position: absolute; right: 0; top: 0; bottom: 0; width: 44px;
    border: 0; background: transparent; color: var(--bp-text-3); cursor: pointer;
    border-radius: var(--bp-r-sm); font-size: 1rem;
    transition: color var(--bp-duree-1) var(--bp-courbe);
}
.pub-voir:hover { color: var(--bp-text); }
.pub-voir:focus-visible { color: var(--bp-text); outline: 2px solid var(--bp-focus); outline-offset: -4px; }
.pub-majuscules { color: var(--bp-warning); font-size: .8125rem; margin-top: 8px; font-weight: 500; }
.pub-texte-erreur { color: var(--bp-danger-soft); }

.pub-case { display: flex; align-items: flex-start; color: var(--bp-text-2); font-size: .9375rem; line-height: 1.5; margin: 0 0 16px; cursor: pointer; }
.pub-case input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 12px 0 0; accent-color: var(--bp-primary); }

/* ---------------- Les boutons ---------------- */
.pub-bouton {
    position: relative;
    display: flex; align-items: center; justify-content: center; text-align: center;
    width: 100%; min-height: 44px;
    border: 1px solid transparent; border-radius: var(--bp-r-sm); padding: 8px 16px;
    background: var(--bp-primary); color: #fff;
    font-size: 1rem; font-weight: 600; font-family: inherit; line-height: 1.25;
    text-decoration: none; cursor: pointer;
    transition: background-color var(--bp-duree-1) var(--bp-courbe),
                transform var(--bp-duree-1) var(--bp-courbe);
    -webkit-tap-highlight-color: transparent;
}
.pub-bouton:hover { background: var(--bp-primary-hover); color: #fff; text-decoration: none; }
.pub-bouton:active { transform: scale(.98); }
.pub-bouton:focus-visible { outline: 2px solid var(--bp-focus); outline-offset: 2px; }
.pub-bouton i { flex: 0 0 auto; margin-right: 8px; font-size: 1rem; }
.pub-bouton[disabled], .pub-bouton[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
/* EN COURS : le libelle garde sa place, un indicateur le remplace (aria-busy="true"),
   et un second appui ne part pas. */
.pub-bouton.is-loading, .pub-bouton.is-loading[disabled] { color: transparent; opacity: 1; cursor: progress; pointer-events: none; }
.pub-bouton.is-loading > * { visibility: hidden; }
.pub-bouton.is-loading::before {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: auto; width: 16px; height: 16px;
    border: 2px solid #fff; border-right-color: transparent; border-radius: 50%;
    animation: bp-tourne .75s linear infinite;
}
.pub-bouton.pub-second.is-loading::before { border-color: var(--bp-text); border-right-color: transparent; }
/* Un libelle long (la cle d'acces) : au telephone, deux lignes egales a cote de l'icone. */
@media (max-width: 479px) { .pub-bouton > i + span { max-width: 13em; text-align: left; } }
.pub-bouton.pub-danger { background: var(--bp-danger); }
.pub-bouton.pub-danger:hover { background: var(--bp-danger-hover); }
.pub-bouton.pub-second { background: var(--bp-surface-2); color: var(--bp-text); border-color: var(--bp-border-strong); font-size: .9375rem; }
.pub-bouton.pub-second:hover { background: var(--bp-surface-3); }
.pub-boutons { display: flex; flex-wrap: wrap; margin: -4px; }
.pub-boutons > * { flex: 1 1 200px; width: auto; margin: 4px; }

.pub a { color: var(--bp-primary-soft); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pub a:hover { color: var(--bp-text); }
.pub a.pub-marque, .pub a.pub-marque:hover { color: var(--bp-text); text-decoration: none; }
.pub a.pub-bouton, .pub a.pub-bouton:hover { color: #fff; text-decoration: none; }
.pub a.pub-bouton.pub-second, .pub a.pub-bouton.pub-second:hover { color: var(--bp-text); }
.pub a:focus-visible { outline: 2px solid var(--bp-focus); outline-offset: 2px; border-radius: 4px; }
.pub-etiquette a, .pub-liens a, .pub .vb-barre a, .pub .bp-pied-legal a { text-decoration: none; }

.pub-liens {
    display: flex; flex-wrap: wrap; justify-content: center;
    margin: 16px 0 0; font-size: .875rem;
}
.pub-liens a { display: inline-flex; align-items: center; min-height: 44px; margin: 0 12px; }
.pub-liens a:hover { text-decoration: underline; }
.pub-liens a i { margin-right: 8px; color: var(--bp-text-3); }
.pub-centre { text-align: center; }

/* ---------------- Les messages ---------------- */
/* Un fond teinte, un filet de la couleur de sens, une icone et une phrase. */
.pub-messages { margin: 0 0 20px; }
.pub-alerte {
    display: flex; align-items: flex-start;
    border-radius: var(--bp-r); padding: 12px 16px;
    font-size: .9375rem; line-height: 1.5; margin: 0 0 8px;
    border: 1px solid var(--bp-border-strong); color: var(--bp-text);
    background: var(--bp-surface-2);
}
.pub-alerte i { flex: 0 0 auto; margin: 4px 12px 0 0; font-size: 1rem; color: var(--bp-text-3); }
.pub-alerte-erreur    { background: var(--bp-danger-fond);  border-color: rgba(var(--bp-danger-soft-rgb), 0.35); }
.pub-alerte-erreur i  { color: var(--bp-danger-soft); }
.pub-alerte-attention { background: var(--bp-warning-fond); border-color: rgba(var(--bp-warning-rgb), 0.35); }
.pub-alerte-attention i { color: var(--bp-warning); }
.pub-alerte-succes    { background: var(--bp-success-fond); border-color: rgba(var(--bp-success-soft-rgb), 0.35); }
.pub-alerte-succes i  { color: var(--bp-success-soft); }
.pub-alerte-info      { background: var(--bp-info-fond);    border-color: rgba(var(--bp-info-rgb), 0.35); }
.pub-alerte-info i    { color: var(--bp-info); }

/* Une note discrete : la precision qui rassure, sous le formulaire. */
.pub-note { display: flex; align-items: flex-start; color: var(--bp-text-3); font-size: .8125rem; line-height: 1.5; margin: 16px 0 0; }
.pub-note i { flex: 0 0 auto; margin: 3px 8px 0 0; font-size: .8125rem; color: var(--bp-text-3); }

/* « En savoir plus » : le detail, replie. */
.pub-details { margin: 16px 0 0; border-top: 1px solid var(--bp-border); padding-top: 4px; }
.pub-details summary { cursor: pointer; display: flex; align-items: center; min-height: 44px; color: var(--bp-primary-soft); font-weight: 500; font-size: .875rem; }
.pub-details summary:hover { color: var(--bp-text); }
.pub-details summary:focus-visible { outline: 2px solid var(--bp-focus); outline-offset: 2px; border-radius: 4px; }
.pub-details[open] summary { margin-bottom: 4px; }
.pub-details p, .pub-details li { color: var(--bp-text-2); font-size: .875rem; line-height: 1.6; }

/* Une liste de faits : « Poste : Equipier ». */
.pub-faits { margin: 0; }
.pub-faits dt { color: var(--bp-text-3); font-size: .8125rem; font-weight: 400; margin-top: 12px; }
.pub-faits dt:first-child { margin-top: 0; }
.pub-faits dd { color: var(--bp-text); margin: 2px 0 0; overflow-wrap: anywhere; }

.pub-pastille {
    display: inline-block; border-radius: var(--bp-r-pill); padding: 2px 10px;
    background: var(--bp-surface-2); border: 1px solid var(--bp-border-strong);
    color: var(--bp-text-2); font-size: .8125rem; margin: 4px 8px 0 0;
}

/* ---------------- Les pages d'erreur ---------------- */
/* Ce qui s'est passe, ce qu'on peut faire, et deux portes : le numero reste discret. */
.pub-erreur { text-align: center; padding-top: 40px; padding-bottom: 32px; }
.pub-erreur-icone { margin: 0 0 12px; color: var(--bp-text-3); font-size: 1.5rem; line-height: 1; }
.pub-erreur .pub-titre { margin-bottom: 8px; }
.pub-erreur .pub-aide { max-width: 40ch; margin: 0 auto 24px; }
.pub-erreur .pub-bouton + .pub-bouton { margin-top: 8px; }
.pub-erreur-code { color: var(--bp-text-3); font-size: .8125rem; font-variant-numeric: tabular-nums; margin: 24px 0 0; }

.pub-pied { text-align: center; color: var(--bp-text-3); font-size: .8125rem; margin: 24px 0 0; }
.pub-pied a { color: var(--bp-text-2); }

/* ---------------- La connexion (login.html) ---------------- */
.connexion-colonne { width: 100%; margin: 0 auto; }
.connexion-suite { margin-top: 8px; }
/* La cle d'acces : le script la montre si le navigateur sait en presenter une. Sa place
   est gardee des le premier rendu, pour que rien ne se decale sous elle. */
.pub .pub-bouton[data-action="cle-acces-connexion"][hidden] { display: flex !important; visibility: hidden; }
.connexion-decouvrir { text-align: center; color: var(--bp-text-3); font-size: .875rem; margin: 8px 0 0; }
/* Dans les applications : le titre reste lu par les lecteurs d'ecran, sans s'afficher. */
.connexion-titre-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.connexion-confidentialite { text-align: center; font-size: .8125rem; margin: 16px 0 0; }
.pub .connexion-confidentialite a { color: var(--bp-text-3); }
.connexion-invitation { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--bp-border); }
/* La demo, sous les facons de se connecter : un lien, pas un troisieme bouton plein. */
.pub a.pub-bouton.demo-bouton-connexion {
    margin-top: 4px; background: transparent; border-color: transparent;
    color: var(--bp-primary-soft); font-size: .9375rem; font-weight: 500;
}
.pub a.pub-bouton.demo-bouton-connexion:hover { background: var(--bp-surface-2); color: var(--bp-primary-soft); }
/* Ouverte depuis la borne : rien que la connexion, au centre. */
.mode-borne .pub-page { padding-top: 76px; }
.carte-badge {
    display: flex; align-items: center; padding: 12px 16px; margin: 0 0 20px;
    border-radius: var(--bp-r); border: 1px solid var(--bp-border-strong); background: var(--bp-surface-2);
}
.carte-badge .emoji { font-size: 2rem; line-height: 1; margin-right: 12px; }
.carte-badge strong { display: block; font-size: 1.0625rem; font-weight: 600; }
.carte-badge-espace { font-weight: 600; }
.carte-badge small { display: block; color: var(--bp-text-3); font-size: .8125rem; }

/* « Demo » et « Se connecter », en haut a droite des pages publiques qui n'ont pas
   la barre (demo_bouton.html). */
.pub-page { position: relative; }
.demo-entete { position: absolute; top: 24px; right: 16px; display: flex; align-items: center; z-index: 5; min-height: 44px; }
.demo-entete.demo-entete-ligne { position: static; justify-content: flex-end; margin: 0 0 16px; }
.demo-entete a.demo-entete-demo, .demo-entete a.demo-entete-connexion {
    position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; margin-left: 8px;
    border-radius: var(--bp-r-sm); border: 1px solid var(--bp-border-strong); background: var(--bp-surface-2);
    color: var(--bp-text); font: 600 .875rem/1.25 var(--bp-font); text-decoration: none; white-space: nowrap;
    transition: background-color var(--bp-duree-1) var(--bp-courbe);
}
.demo-entete a.demo-entete-demo::after, .demo-entete a.demo-entete-connexion::after { content: ""; position: absolute; top: -4px; right: 0; bottom: -4px; left: 0; }
.demo-entete a.demo-entete-demo:hover, .demo-entete a.demo-entete-connexion:hover { background: var(--bp-surface-3); color: var(--bp-text); }
.demo-entete a i { margin-right: 8px; font-size: .75rem; color: var(--bp-text-3); }

/* ---------------- Le second facteur (second_facteur.html) ---------------- */
.pub input.pub-saisie.code-unique {
    text-align: center; font-size: 1.5rem; letter-spacing: .4em; min-height: 52px;
    font-family: var(--bp-font-mono); font-variant-numeric: tabular-nums;
}
/* « Utiliser une autre methode », un lien par methode activee. */
.sf-autres { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--bp-border); }
.sf-autres-titre { font-size: .875rem; font-weight: 600; color: var(--bp-text-2); margin: 0 0 8px; }
.sf-autres form { margin: 0; }
.sf-autre, .pub a.sf-autre {
    display: flex; align-items: center; width: 100%; min-height: 48px;
    padding: 8px 12px; margin-bottom: 8px; border-radius: var(--bp-r-sm); text-align: left;
    border: 1px solid var(--bp-border-strong); background: var(--bp-surface-2); color: var(--bp-text);
    font: inherit; font-size: .9375rem; text-decoration: none; cursor: pointer;
    transition: background-color var(--bp-duree-1) var(--bp-courbe);
}
.sf-autre:hover, .pub a.sf-autre:hover { background: var(--bp-surface-3); color: var(--bp-text); }
.sf-autre i { flex: 0 0 20px; margin-right: 12px; text-align: center; color: var(--bp-text-3); }

/* ---------------- La premiere connexion (premiere_connexion.html) ---------------- */
/* LE MATRICULE, REVELE APRES LE CLIC : c'est ce que le titulaire attend de ce lien,
   et ce que personne d'autre ne doit voir. */
.pc-identite { border: 1px solid var(--bp-border-strong); background: var(--bp-surface-2); border-radius: var(--bp-r); padding: 12px 16px; margin: 0 0 24px; }
.pc-identite small { display: block; color: var(--bp-text-3); font-size: .8125rem; margin-bottom: 4px; }
.pc-numero { font-family: var(--bp-font-mono); font-variant-numeric: tabular-nums; font-size: 1.25rem; letter-spacing: .04em; color: var(--bp-text); font-weight: 600; overflow-wrap: anywhere; }
.pc-etapes { margin: 0 0 16px; padding-left: 1.25rem; color: var(--bp-text-2); font-size: .9375rem; line-height: 1.7; }
/* « ou », entre deux facons de prouver qui l'on est (compte_reauthentifier.html). */
.cm-separateur { display: flex; align-items: center; color: var(--bp-text-3); font-size: .8125rem; margin: 20px 0; }
.cm-separateur::before, .cm-separateur::after { content: ""; flex: 1; height: 1px; background: var(--bp-border); }
.cm-separateur::before { margin-right: 12px; }
.cm-separateur::after { margin-left: 12px; }

/* ---------------- Les documents a lire (mentions, confidentialite, CGV) ---------------- */
/* Un texte long se lit a meme la page : pas de carte, 68 caracteres par ligne au plus. */
.pub-carte.pub-lecture { background: none; border: 0; border-radius: 0; padding: 8px 0 0; }
.pub-lecture .pub-titre { font-size: 1.75rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.pub-lecture p, .pub-lecture li { max-width: 68ch; }
.doc-version { color: var(--bp-text-3); font-size: .8125rem; margin: 0 0 24px; font-variant-numeric: tabular-nums; }
.doc-section { margin: 32px 0 0; scroll-margin-top: 80px; }
.doc-section h2 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: var(--bp-text); margin: 0 0 8px; }
.doc-section p { color: var(--bp-text-2); font-size: 1rem; line-height: 1.65; margin: 0 0 12px; }
.doc-liens { display: flex; flex-wrap: wrap; margin: 32px 0 0; padding-top: 16px; border-top: 1px solid var(--bp-border); font-size: .875rem; }
.doc-liens a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 24px; }
.cgv-entete { color: var(--bp-text-3); font-size: .875rem; line-height: 1.6; margin: 0 0 16px; overflow-wrap: anywhere; }
.cgv-entete code { font-family: var(--bp-font-mono); font-size: .8125rem; color: var(--bp-text-2); }
.pub a.cgv-bouton {
    display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: var(--bp-r-sm);
    background: var(--bp-surface-2); border: 1px solid var(--bp-border-strong);
    color: var(--bp-text); text-decoration: none; font-weight: 600; font-size: .875rem;
    transition: background-color var(--bp-duree-1) var(--bp-courbe);
}
.pub a.cgv-bouton:hover { background: var(--bp-surface-3); color: var(--bp-text); }
.cgv-bouton i { margin-right: 8px; }
.cgv-suite { margin-top: 24px; }
.cgv-texte { margin: 32px 0 0; padding-top: 8px; border-top: 1px solid var(--bp-border); }
.cgv-texte h2 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: var(--bp-text); margin: 32px 0 8px; scroll-margin-top: 80px; }
.cgv-texte h3 { font-size: .8125rem; font-weight: 600; color: var(--bp-text-3); margin: 40px 0 8px; scroll-margin-top: 80px; }
.cgv-texte p, .cgv-texte li { color: var(--bp-text-2); font-size: 1rem; line-height: 1.65; scroll-margin-top: 80px; }
.cgv-texte p { margin: 0 0 12px; }
.cgv-texte ul { margin: 0 0 12px; padding-left: 24px; }
.cgv-texte li { margin: 0 0 4px; }
/* L'article vers lequel un lien a mene : un fond d'accent, discret. */
.cgv-texte p:target, .cgv-texte h2:target, .cgv-texte h3:target { background: var(--bp-primary-glow); border-radius: 4px; box-shadow: 0 0 0 4px var(--bp-primary-glow); }
.cgv-tableau { overflow-x: auto; margin: 4px 0 16px; border: 1px solid var(--bp-border); border-radius: var(--bp-r-sm); }
.cgv-tableau table { width: 100%; border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; }
.cgv-tableau th, .cgv-tableau td { padding: 8px 12px; vertical-align: top; text-align: left;
    border-bottom: 1px solid var(--bp-border); color: var(--bp-text-2); line-height: 1.5; min-width: 120px; }
.cgv-tableau tr:last-child td { border-bottom: 0; }
.cgv-tableau th { color: var(--bp-text); font-weight: 600; background: var(--bp-surface-2); }
.cgv-tableau td:first-child { color: var(--bp-text); font-weight: 500; }
.cgv-historique { margin: 8px 0 0; padding-left: 20px; color: var(--bp-text-2); font-size: .875rem; line-height: 1.7; }

/* =========================================================================
   L'INSCRIPTION D'UN ETABLISSEMENT (creer_etablissement.html,
   _inscription_choix.html, _souscription_etapes.html)
   =========================================================================
   Sept etapes d'un formulaire, puis la commande et le paiement. Une question,
   sa raison ecrite dessous ; l'etape en cours, le choix coche et l'action
   principale portent l'accent du site, et lui seul. */
body.cr-page { margin: 0; padding: 24px 16px 72px; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.cr-wrap { max-width: 760px; margin: 0 auto; }
.cr-haut { margin: 8px 0 32px; }
.cr-titre { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 8px; color: var(--bp-text); }
.cr-sous { color: var(--bp-text-2); font-size: .9375rem; line-height: 1.6; margin: 0; max-width: 68ch; }
.cr-sous + .cr-sous { margin-top: 8px; color: var(--bp-text-3); font-size: .875rem; }
.cr-carte { background: var(--bp-surface); border: 1px solid var(--bp-border); border-radius: var(--bp-r); padding: 24px; margin-bottom: 16px; }
.cr-carte-avis { border-color: var(--bp-border-strong); }
.cr-section { color: var(--bp-text); font-size: 1rem; font-weight: 600; line-height: 1.35; margin: 0 0 4px; }
.cr-section-sous { color: var(--bp-text-3); font-size: .875rem; line-height: 1.55; margin: 0 0 20px; max-width: 68ch; }
.cr-section-sous strong { color: var(--bp-text-2); font-weight: 600; }
.cr-section-fort { color: var(--bp-text-2); }
.cr-champ { margin-bottom: 24px; }
.cr-champ label { display: block; font-weight: 600; font-size: .875rem; color: var(--bp-text-2); margin-bottom: 8px; }
.cr-facultatif { color: var(--bp-text-3); font-weight: 400; font-size: .8125rem; }
.cr-pourquoi { color: var(--bp-text-3); font-size: .8125rem; line-height: 1.5; margin: 8px 0 0; max-width: 68ch; }
/* Le verdict du SIRET. Trois etats, trois couleurs, et la phrase qui les dit : la
   fiche est trouvee, l'annuaire doute, l'annuaire refuse. Un texte gris pour les trois
   laisserait passer un etablissement ferme sans que personne ne le remarque. */
.cr-verdict { font-weight: 500; }
.cr-verdict.ok { color: var(--bp-success-soft); }
.cr-verdict.doute { color: var(--bp-warning); }
.cr-verdict.mal { color: var(--bp-danger-soft); }
.cr-saisie, .cr-liste {
    width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 12px;
    border-radius: var(--bp-r-sm); border: 1px solid var(--bp-border-control); background: var(--bp-bg);
    color: var(--bp-text); font-size: 1rem; font-family: inherit;
}
.cr-saisie:focus, .cr-liste:focus { outline: none; border-color: var(--bp-focus); box-shadow: 0 0 0 3px var(--bp-primary-glow); }
.cr-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.cr-jour { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--bp-border); }
.cr-jour:first-of-type { border-top: none; }
.cr-jour-nom { font-size: .875rem; min-width: 96px; }
.cr-jour-case { display: flex; align-items: center; margin: 0; min-height: 44px; }
.cr-jour-case input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0 12px 0 0; }
.cr-erreurs { background: var(--bp-danger-fond); border: 1px solid rgba(var(--bp-danger-soft-rgb), 0.35); border-radius: var(--bp-r); padding: 16px 20px; margin-bottom: 16px; }
.cr-erreurs h2 { font-size: 1rem; font-weight: 600; margin: 0 0 8px; color: var(--bp-text); }
.cr-erreurs h2 i { margin-right: 8px; color: var(--bp-danger-soft); }
.cr-erreurs ul { margin: 0; padding-left: 20px; }
.cr-erreurs li { color: var(--bp-text-2); font-size: .875rem; line-height: 1.6; }
.cr-devis { background: var(--bp-surface-2); border: 1px solid var(--bp-border); border-radius: var(--bp-r); padding: 4px 20px; font-variant-numeric: tabular-nums; }
.cr-devis-suite { margin-top: 12px; }
/* Un ecart entre le libelle et le montant, aligne a droite - au telephone,
   « par salarié) » toucherait « € net » et se lirait d'un seul tenant. */
.cr-devis-ligne { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; font-size: .9375rem; color: var(--bp-text-2); border-bottom: 1px solid var(--bp-border); }
.cr-devis-ligne > span:last-child { text-align: right; color: var(--bp-text); }
.cr-devis-ligne:last-child { border-bottom: none; font-weight: 600; font-size: 1rem; color: var(--bp-text); }
.cr-case { display: flex; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--bp-border); font-size: .875rem; line-height: 1.6; color: var(--bp-text-2); }
.cr-case:first-of-type { border-top: none; }
.cr-case input { margin: 2px 12px 0 0; flex: 0 0 auto; width: 20px; height: 20px; }
.cr-case strong { color: var(--bp-text); }
.cr-bouton {
    width: 100%; min-height: 52px; border: 1px solid transparent; border-radius: var(--bp-r-sm); padding: 12px 24px;
    font-weight: 600; font-size: 1rem; line-height: 1.25; color: #fff; background: var(--bp-primary);
    cursor: pointer; font-family: inherit;
    transition: background-color var(--bp-duree-1) var(--bp-courbe), transform var(--bp-duree-1) var(--bp-courbe);
}
.cr-bouton:hover { background: var(--bp-primary-hover); }
.cr-bouton:active { transform: scale(.98); }
.cr-bouton[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.cr-note { color: var(--bp-text-3); font-size: .8125rem; line-height: 1.55; margin: 16px 0 0; max-width: 68ch; }
.cr-note-centre { margin-left: auto; margin-right: auto; text-align: center; }
/* LA DEMANDE EXPRESSE D'EXECUTION IMMEDIATE sous la case du parrainage, des que
   le code tape est celui d'un commercial de Ryado (art. L221-25). */
.cr-execution { margin-top: 16px; padding: 4px 16px 12px; border: 1px solid var(--bp-border-strong); border-radius: var(--bp-r-sm); }
.cr-execution .cr-section-sous { margin-top: 12px; }
.cr-execution .cr-note { margin-top: 8px; }
.cr-mention { color: var(--bp-text-2); font-weight: 600; }
/* LES TROIS OFFRES : trois cartes ; la cochee porte un contour d'accent et son bouton rond. */
.cr-offres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cr-offre-activation { color: var(--bp-text-2); font-size: .8125rem; }
.cr-offre-tranches { color: var(--bp-text); font-size: .8125rem; font-weight: 600; }
.cr-offre {
    display: flex; align-items: flex-start; cursor: pointer; margin: 0; padding: 16px;
    border: 1px solid var(--bp-border-strong); border-radius: var(--bp-r); background: var(--bp-bg);
    transition: border-color var(--bp-duree-1) var(--bp-courbe);
}
.cr-offre:hover { border-color: var(--bp-text-3); }
.cr-offre:has(input:checked) { border-color: var(--bp-primary-soft); box-shadow: inset 0 0 0 1px var(--bp-primary-soft); }
.cr-offre:has(input:focus-visible) { outline: 2px solid var(--bp-focus); outline-offset: 2px; }
.cr-offre.fermee { cursor: not-allowed; opacity: .6; }
.cr-offre.fermee:hover { border-color: var(--bp-border-strong); }
.cr-offre-bientot { align-self: flex-start; padding: 2px 8px; border-radius: var(--bp-r-pill); border: 1px solid rgba(var(--bp-warning-rgb), 0.35); background: var(--bp-warning-fond); color: var(--bp-warning); font-size: .75rem; font-weight: 600; }
.cr-fermees { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--bp-r); border: 1px solid rgba(var(--bp-warning-rgb), 0.35); background: var(--bp-warning-fond); color: var(--bp-text); font-size: .9375rem; line-height: 1.5; }
.cr-offre input { margin: 2px 12px 0 0; flex: 0 0 auto; width: 20px; height: 20px; }
.cr-offre-corps { display: flex; flex-direction: column; min-width: 0; }
.cr-offre-corps > * + * { margin-top: 4px; }
.cr-offre-titre { font-weight: 600; font-size: .9375rem; line-height: 1.4; color: var(--bp-text); font-variant-numeric: tabular-nums; }
.cr-offre-ttc { color: var(--bp-text-3); font-size: .8125rem; }
.cr-offre-liste { display: flex; flex-direction: column; margin-top: 8px; color: var(--bp-text-2); font-size: .8125rem; line-height: 1.45; }
.cr-offre-liste > * + * { margin-top: 4px; }
@media (max-width: 820px) { .cr-offres { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
    .cr-duo, .cr-offres { grid-template-columns: minmax(0, 1fr); }
    .cr-duo { gap: 0; }
    .cr-jour { grid-template-columns: auto minmax(0, 1fr); }
}

/* LE PARCOURS PAGE PAR PAGE. Sans JavaScript, les sept etapes s'affichent a la suite ;
   avec lui, une seule a l'ecran (`.cr-js`, pose par le script). */
.cr-etape { margin: 0 0 40px; }
.cr-js .cr-etape { margin-bottom: 0; }
.cr-etape-titre { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; margin: 0 0 16px; color: var(--bp-text); scroll-margin-top: 80px; }
.cr-etape-titre:focus { outline: none; }
.cr-etape-titre:focus-visible { outline: 2px solid var(--bp-focus); outline-offset: 4px; border-radius: 4px; }
.cr-etape-rang { display: block; color: var(--bp-text-3); font-size: .8125rem; font-weight: 600; letter-spacing: 0; margin-bottom: 4px; }
/* Avec le script, la barre dit deja « Etape 2 sur 9 » : le rang reste lu par les
   lecteurs d'ecran (le titre recoit le focus), il ne s'affiche pas deux fois. */
.cr-js .cr-etape-rang, html.cr-script .cr-etape-rang { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cr-etape .cr-section { margin-top: 0; }
.cr-etape-nav { margin: 8px 0 0; }
.cr-etape-boutons { display: flex; flex-direction: column; }
.cr-etape-boutons > * + * { margin-top: 8px; }
.cr-etape-alerte { color: var(--bp-danger-soft); font-size: .875rem; font-weight: 500; line-height: 1.5; margin: 0 0 12px; }
.cr-etape-alerte:empty { display: none; }
.cr-precedent {
    width: 100%; min-height: 44px; box-sizing: border-box;
    border: 1px solid var(--bp-border-strong); border-radius: var(--bp-r-sm);
    background: var(--bp-surface-2); color: var(--bp-text); padding: 8px 16px;
    font-weight: 600; font-size: .9375rem; line-height: 1.25; font-family: inherit; cursor: pointer;
    transition: background-color var(--bp-duree-1) var(--bp-courbe);
}
.cr-precedent:hover { background: var(--bp-surface-3); }
.cr-bouton:focus-visible, .cr-precedent:focus-visible, .cr-modifier:focus-visible,
.cr-erreur-lien:focus-visible { outline: 2px solid var(--bp-focus); outline-offset: 2px; }
@media (min-width: 641px) {
    .cr-etape-boutons { flex-direction: row-reverse; justify-content: space-between; align-items: center; }
    .cr-etape-boutons > * + * { margin-top: 0; }
    .cr-etape-boutons .cr-bouton { width: auto; min-width: 240px; }
    .cr-etape-boutons .cr-precedent { width: auto; min-height: 52px; padding: 12px 24px; }
    .cr-etape-boutons .cr-precedent:only-child { margin-right: auto; }
}
/* Les messages sous le champ, en francais, lies au champ (aria-describedby). */
.cr-erreur-champ { color: var(--bp-danger-soft); font-size: .8125rem; font-weight: 500; line-height: 1.45; margin: 8px 0 0; }
.cr-saisie[aria-invalid="true"], .cr-liste[aria-invalid="true"] { border-color: var(--bp-danger-soft); }
.cr-saisie[aria-invalid="true"]:focus, .cr-liste[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(var(--bp-danger-soft-rgb), 0.2); }
.cr-offres[aria-invalid="true"] .cr-offre { border-color: rgba(var(--bp-danger-soft-rgb), 0.6); }
.cr-groupe { border: 0; margin: 0; padding: 0; min-width: 0; }
.cr-groupe > legend { padding: 0; }
.cr-erreur-lien { color: var(--bp-primary-soft); margin-left: 8px; white-space: nowrap; }
.cr-erreurs-note { color: var(--bp-text-2); font-size: .8125rem; line-height: 1.6; margin: 12px 0 0; }
/* VOTRE PREMIER MOIS : deux grandes cartes, celles des offres, et la case qui
   reformule le choix, bien detachee. */
.cr-premier-mois-titre { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin: 0 0 8px; color: var(--bp-text); }
.cr-modalites { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.cr-modalite .cr-offre-titre { font-size: 1rem; }
.cr-modalite .cr-offre-liste { font-size: .875rem; line-height: 1.5; }
.cr-modalite .cr-offre-liste > * + * { margin-top: 8px; }
.cr-premier-mois-confirme { margin-top: 16px; padding: 12px 16px; border: 1px solid var(--bp-border-strong); border-radius: var(--bp-r-sm); background: var(--bp-surface-2); }
.cr-premier-mois .cr-fermees { margin: 16px 0 0; }
@media (max-width: 640px) { .cr-modalites { grid-template-columns: minmax(0, 1fr); } }
/* Le recapitulatif avant l'envoi : ce qui a ete saisi, etape par etape. */
.cr-recap-bloc { padding: 16px 0; border-top: 1px solid var(--bp-border); }
.cr-recap-bloc:first-child { border-top: none; padding-top: 4px; }
.cr-recap-tete { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; }
.cr-recap-tete h4 { margin: 0 12px 0 0; font-size: .9375rem; font-weight: 600; color: var(--bp-text); }
.cr-modifier {
    position: relative; flex: 0 0 auto; min-height: 36px; padding: 4px 12px;
    background: var(--bp-surface-2); border: 1px solid var(--bp-border-strong); border-radius: var(--bp-r-sm);
    color: var(--bp-text); font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer;
    transition: background-color var(--bp-duree-1) var(--bp-courbe);
}
.cr-modifier::after { content: ""; position: absolute; top: -4px; right: 0; bottom: -4px; left: 0; }
.cr-modifier:hover { background: var(--bp-surface-3); }
.cr-recap-liste { margin: 0; display: grid; gap: 8px; }
.cr-recap-liste > div { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 12px; font-size: .875rem; line-height: 1.5; }
.cr-recap-liste dt { color: var(--bp-text-3); }
.cr-recap-liste dd { margin: 0; color: var(--bp-text); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.cr-recap-liste dd.cr-recap-vide { color: var(--bp-text-3); }
/* La saisie reprise apres un rechargement de l'onglet. */
.cr-brouillon { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; border: 1px solid rgba(var(--bp-info-rgb), 0.35); background: var(--bp-info-fond); border-radius: var(--bp-r); padding: 12px 16px; margin: 0 0 16px; }
.cr-brouillon p { margin: 4px 16px 4px 0; font-size: .875rem; line-height: 1.5; color: var(--bp-text-2); }
.cr-brouillon .cr-precedent { width: auto; margin: 4px 0; }
.cr-brouillon[hidden] { display: none; }
/* Au telephone : des cibles larges, et 16 px dans les champs - en dessous, iOS
   agrandit la page a chaque champ touche. */
@media (max-width: 640px) {
    body.cr-page { padding: 16px 16px 56px; padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
    .cr-haut { margin-bottom: 24px; }
    .cr-carte { padding: 16px; }
    .cr-saisie, .cr-liste { font-size: 16px; }
    .cr-recap-liste > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* LE CHOIX AVANT TOUT (_inscription_choix.html) : un magasin ou une enseigne. */
.ins-choix { margin: 0 0 32px; }
.ins-choix-titre { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 16px; color: var(--bp-text); }
.ins-cartes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.ins-carte {
    display: flex; flex-direction: column; text-decoration: none; min-height: 144px; padding: 24px;
    color: var(--bp-text); background: var(--bp-surface); border: 1px solid var(--bp-border-strong); border-radius: var(--bp-r);
    transition: border-color var(--bp-duree-1) var(--bp-courbe), background-color var(--bp-duree-1) var(--bp-courbe);
}
.ins-carte:hover { color: var(--bp-text); border-color: var(--bp-text-3); background: var(--bp-surface-2); }
.ins-carte:focus-visible { outline: 2px solid var(--bp-focus); outline-offset: 2px; }
.ins-carte i { font-size: 1.25rem; color: var(--bp-text-3); margin-bottom: 12px; }
.ins-carte strong { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; margin-bottom: 4px; }
.ins-carte span { color: var(--bp-text-2); font-size: .875rem; line-height: 1.5; }
html.ins-choix-actif #progression, html.ins-choix-actif #formulaire-creation,
html.ins-choix-actif #brouillon-repris { display: none !important; }
@media (max-width: 640px) { .ins-cartes { grid-template-columns: minmax(0, 1fr); gap: 12px; } .ins-carte { min-height: 0; padding: 20px 16px; } }

/* LA BARRE DE PROGRESSION (_souscription_etapes.html), commune au formulaire, a la
   commande et au paiement : l'etape faite a l'aplat d'accent, l'etape en cours sa
   variante claire. */
.pg-barre { margin: 0 0 24px; }
.pg-texte { margin: 0 0 12px; font-size: .9375rem; font-weight: 600; line-height: 1.45; color: var(--bp-text); font-variant-numeric: tabular-nums; }
.pg-texte-rang { color: var(--bp-text-3); font-weight: 500; }
.pg-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.pg-item { min-width: 0; }
.pg-corps, .pg-lien { display: flex; flex-direction: column; width: 100%; text-align: left; }
.pg-lien { background: none; border: none; padding: 0; margin: 0; color: inherit; font: inherit; cursor: pointer; border-radius: 4px; }
.pg-lien[disabled] { cursor: default; }
.pg-lien:not([disabled]):hover .pg-nom { color: var(--bp-text); text-decoration: underline; }
.pg-lien:focus-visible { outline: 2px solid var(--bp-focus); outline-offset: 3px; }
.pg-trait { display: block; height: 4px; border-radius: var(--bp-r-pill); background: var(--bp-border-strong); }
.pg-item.faite .pg-trait { background: var(--bp-primary); }
.pg-item.courante .pg-trait { background: var(--bp-primary-soft); }
.pg-nom { margin-top: 8px; font-size: .75rem; line-height: 1.35; color: var(--bp-text-3); overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.pg-item.faite .pg-nom { color: var(--bp-text-2); }
/* L'etape en cours se dit par la couleur : la meme graisse garde le meme retour a la ligne. */
.pg-item.courante .pg-nom { color: var(--bp-text); }
.pg-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Au telephone, neuf noms ne tiennent pas sur une ligne : la phrase « Etape 2
   sur 9 - Votre etablissement » et les neuf traits suffisent ; les noms restent
   lus par les lecteurs d'ecran. */
@media (max-width: 760px) {
    .pg-nom { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
    /* Le trait garde 4 px a l'oeil ; le bouton qui rouvre une etape en fait 44 sous le doigt. */
    .pg-lien { padding: 20px 0; margin: -20px 0; }
}
/* 3. Avec JavaScript, la barre est a l'ecran des le premier rendu : rien ne se decale
   quand le script des etapes prend la main (le choix d'entree la cache tant qu'il est la). */
html.cr-script:not(.ins-choix-actif) #progression[hidden] { display: block !important; }

/* =========================================================================
   LES PAGES D'INFORMATION, UNE A UNE
   ========================================================================= */
/* ---- « Comment Ryado protege vos donnees » (public_securite.html) ---- */
.sec-surtitre { display: flex; align-items: center; color: var(--bp-text-3); font-size: .8125rem; font-weight: 600; margin: 0 0 8px; }
.sec-surtitre i { margin-right: 8px; }
.sec-version { color: var(--bp-text-3); font-size: .8125rem; font-variant-numeric: tabular-nums; margin: -8px 0 24px; }
.sec-actions { display: flex; flex-wrap: wrap; margin: 0 -4px 28px; }
.pub a.sec-bouton, .sec-bouton {
    display: inline-flex; align-items: center; justify-content: center; margin: 4px;
    min-height: 44px; padding: 8px 16px; border-radius: var(--bp-r-sm); border: 1px solid transparent;
    font-weight: 600; font-size: .9375rem; line-height: 1.25; text-decoration: none;
    background: var(--bp-primary); color: #fff;
    transition: background-color var(--bp-duree-1) var(--bp-courbe);
}
.sec-bouton i { margin-right: 8px; }
.pub a.sec-bouton:hover { background: var(--bp-primary-hover); color: #fff; }
.pub a.sec-bouton-second, .sec-bouton-second { background: var(--bp-surface-2); color: var(--bp-text); border-color: var(--bp-border-strong); }
.pub a.sec-bouton-second:hover { background: var(--bp-surface-3); color: var(--bp-text); }
/* L'essentiel : une liste de faits, sans carte. */
.sec-essentiel { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 32px; margin: 0 0 32px; border-bottom: 1px solid var(--bp-border); }
@media (min-width: 560px) { .sec-essentiel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.sec-fait { display: flex; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--bp-border); }
.sec-fait strong { display: block; color: var(--bp-text); font-size: .9375rem; font-weight: 600; margin-bottom: 2px; }
.sec-fait span { color: var(--bp-text-2); font-size: .875rem; line-height: 1.5; }
.sec-fait .sec-pastille { flex: 0 0 20px; margin-right: 16px; text-align: center; color: var(--bp-text-3); font-size: 1rem; line-height: 1.5rem; }
.sec-sommaire { background: var(--bp-surface); border: 1px solid var(--bp-border); border-radius: var(--bp-r); padding: 16px 20px; margin: 0 0 16px; }
.sec-sommaire p { color: var(--bp-text); font-weight: 600; font-size: .9375rem; margin: 0 0 4px; }
.sec-sommaire ol { margin: 0; padding-left: 24px; columns: 1; }
@media (min-width: 560px) { .sec-sommaire ol { columns: 2; column-gap: 32px; } }
.sec-sommaire li { color: var(--bp-text-3); font-size: .875rem; break-inside: avoid; font-variant-numeric: tabular-nums; }
.pub .sec-sommaire a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.pub .sec-sommaire a:hover { text-decoration: underline; }
.sec-section { scroll-margin-top: 80px; }
.sec-section h2 { display: flex; align-items: center; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; color: var(--bp-text); margin: 0 0 12px; line-height: 1.3; overflow-wrap: anywhere; }
.sec-icone { flex: 0 0 auto; width: 32px; height: 32px; margin-right: 12px; border-radius: var(--bp-r-sm); display: inline-flex; align-items: center; justify-content: center; background: var(--bp-surface-3); color: var(--bp-text-2); font-size: .875rem; }
.sec-intro { color: var(--bp-text); font-size: .9375rem; line-height: 1.6; margin: 0 0 12px; font-weight: 500; max-width: 68ch; }
.sec-points { margin: 0; padding: 0; list-style: none; }
.sec-points li { position: relative; padding-left: 20px; color: var(--bp-text-2); font-size: .9375rem; line-height: 1.6; margin: 0 0 8px; max-width: 68ch; overflow-wrap: anywhere; }
.sec-points li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--bp-text-3); }
.sec-section h3 { color: var(--bp-text); font-size: 1rem; font-weight: 600; margin: 24px 0 12px; }
.sec-fiches { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.sec-fiche { border: 1px solid var(--bp-border); border-radius: var(--bp-r-sm); padding: 12px 16px; background: var(--bp-surface-2); }
.sec-fiche strong { display: block; color: var(--bp-text); font-size: .9375rem; font-weight: 600; margin: 0 0 8px; }
.sec-fiche dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 16px; }
@media (min-width: 560px) { .sec-fiche dl { grid-template-columns: 170px minmax(0, 1fr); } }
.sec-fiche dt { color: var(--bp-text-3); font-size: .8125rem; font-weight: 500; }
.sec-fiche dd { color: var(--bp-text-2); font-size: .875rem; line-height: 1.5; margin: 0 0 8px; overflow-wrap: anywhere; }
.sec-jamais { margin: 0; padding-left: 20px; }
.sec-jamais li { color: var(--bp-text-2); font-size: .875rem; line-height: 1.55; margin: 0 0 8px; max-width: 68ch; }
.sec-note { display: flex; align-items: flex-start; background: var(--bp-info-fond); border: 1px solid rgba(var(--bp-info-rgb), 0.35); border-radius: var(--bp-r); padding: 12px 16px; color: var(--bp-text); font-size: .875rem; line-height: 1.55; margin: 16px 0 0; }
.sec-note i { flex: 0 0 auto; color: var(--bp-info); margin: 3px 12px 0 0; }
.sec-liens { margin: 24px 0 0; font-size: .875rem; display: flex; flex-wrap: wrap; }
.sec-liens a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 24px; }

/* ---- « Verifier un passeport professionnel » (verifier_passeport.html) ---- */
.vp-intro { color: var(--bp-text-2); font-size: .9375rem; line-height: 1.6; margin: 0 0 24px; }
.vp-verdict { border-radius: var(--bp-r); border: 1px solid var(--bp-border-strong); padding: 16px 16px 12px; margin: 0 0 24px; color: var(--bp-text-2); }
.vp-verdict h2 { display: flex; align-items: center; font-size: 1.125rem; font-weight: 600; margin: 0 0 8px; color: var(--bp-text); }
.vp-verdict h2 i { margin-right: 12px; }
.vp-verdict p { margin: 0 0 12px; line-height: 1.6; font-size: .9375rem; }
.vp-oui { border-color: rgba(var(--bp-success-soft-rgb), 0.35); background: var(--bp-success-fond); }
.vp-oui h2 i { color: var(--bp-success-soft); }
.vp-non { border-color: rgba(var(--bp-danger-soft-rgb), 0.35); background: var(--bp-danger-fond); }
.vp-non h2 i { color: var(--bp-danger-soft); }
.vp-faits { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: .875rem; }
.vp-faits th, .vp-faits td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--bp-border-strong); vertical-align: top; }
.vp-faits th { color: var(--bp-text-2); font-weight: 500; width: 42%; padding-right: 12px; }
.vp-faits td { color: var(--bp-text); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.vp-code { font-family: var(--bp-font-mono); letter-spacing: .04em; }
.vp-note { color: var(--bp-text-3); font-size: .8125rem; line-height: 1.55; margin: 8px 0 0; }
.vp-bloc { padding: 20px 0 4px; margin: 0; border-top: 1px solid var(--bp-border); }
.vp-bloc h2 { display: flex; align-items: center; font-size: 1rem; font-weight: 600; color: var(--bp-text); margin: 0 0 8px; }
.vp-bloc h2 i { margin-right: 8px; color: var(--bp-text-3); font-size: .875rem; }
.vp-bloc p { color: var(--bp-text-2); font-size: .875rem; line-height: 1.6; margin: 0 0 12px; }
.vp-saisie { display: flex; flex-wrap: wrap; margin: -4px; }
.vp-saisie > * { margin: 4px; }
.pub .vp-saisie input {
    flex: 1 1 240px; min-width: 0; min-height: 44px; padding: 8px 12px; border-radius: var(--bp-r-sm);
    border: 1px solid var(--bp-border-control); background: var(--bp-bg); color: var(--bp-text);
    font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; font-family: var(--bp-font-mono);
}
/* La reference refusee : le champ porte l'erreur, liee au message du haut. */
.pub .vp-saisie input[aria-invalid="true"] { border-color: var(--bp-danger-soft); }
.pub .vp-saisie input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(var(--bp-danger-soft-rgb), 0.2); }
.pub .vp-saisie input::placeholder { text-transform: none; letter-spacing: 0; font-family: var(--bp-font); }
.vp-bouton {
    min-height: 44px; padding: 8px 16px; border-radius: var(--bp-r-sm); border: 1px solid transparent;
    font: 600 .9375rem/1.25 var(--bp-font); cursor: pointer; background: var(--bp-primary); color: #fff;
    transition: background-color var(--bp-duree-1) var(--bp-courbe), transform var(--bp-duree-1) var(--bp-courbe);
}
.vp-bouton:hover { background: var(--bp-primary-hover); }
.vp-bouton:active { transform: scale(.98); }
.vp-bouton:focus-visible { outline: 2px solid var(--bp-focus); outline-offset: 2px; }
.vp-bouton-ligne { background: var(--bp-surface-2); color: var(--bp-text); border-color: var(--bp-border-strong); }
.vp-bouton-ligne:hover { background: var(--bp-surface-3); }
.vp-camera { width: 100%; max-width: 420px; border-radius: var(--bp-r); background: var(--bp-bg); margin: 12px 0 0; display: block; }
.vp-message { margin: 12px 0 0; color: var(--bp-danger-soft); font-size: .875rem; }
.vp-contact a { overflow-wrap: anywhere; }

/* ---- « Etat du service » (statut.html) ---- */
.st-ligne { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--bp-border); font-size: .9375rem; }
.st-ligne > * + * { margin-left: 12px; }
.st-etiquette { color: var(--bp-text-2); }
.st-ok { color: var(--bp-success-soft); font-weight: 600; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-ko { color: var(--bp-danger-soft); font-weight: 600; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---- « Contact et signalement » (contact.html) ---- */
.ct-bloc { margin: 0 0 20px; color: var(--bp-text-2); font-size: .9375rem; line-height: 1.6; }
.ct-champ { margin: 0 0 20px; }
.ct-champ label { display: block; font-weight: 600; font-size: .875rem; margin: 0 0 8px; color: var(--bp-text-2); }
.ct-champ input[type=text], .ct-champ input[type=email], .ct-champ textarea {
    width: 100%; min-height: 44px; padding: 8px 12px; border-radius: var(--bp-r-sm); border: 1px solid var(--bp-border-control);
    background: var(--bp-bg); color: var(--bp-text); font-size: 1rem; font-family: inherit; }
.ct-case { display: flex; align-items: flex-start; color: var(--bp-text-2); font-size: .875rem; line-height: 1.5; padding: 12px 0; margin: 0 0 4px; }
.ct-case input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0 12px 0 0; }
.ct-note { color: var(--bp-text-3); font-size: .8125rem; line-height: 1.55; margin: 12px 0 0; }
.ct-accuse { border: 1px solid rgba(var(--bp-success-soft-rgb), 0.35); background: var(--bp-success-fond); border-radius: var(--bp-r); padding: 12px 16px; color: var(--bp-text); margin: 0 0 20px; }
.ct-adresses { list-style: none; padding: 0; margin: 0 0 20px; border-bottom: 1px solid var(--bp-border); }
.ct-adresse { padding: 12px 0; border-top: 1px solid var(--bp-border); color: var(--bp-text-2); font-size: .875rem; line-height: 1.6; }
.ct-adresse strong { display: block; color: var(--bp-text); font-size: .9375rem; font-weight: 600; }
.ct-adresse a { overflow-wrap: anywhere; }

/* ---- Le centre d'aide dans la page publique (_aide_centre.html) : ses couleurs
   deviennent les jetons du site, ses boutons et ses champs ceux des pages publiques ---- */
.pub .ca { --ca-fond: var(--bp-surface); --ca-bord: var(--bp-border); --ca-texte: var(--bp-text-2); --ca-doux: var(--bp-text-3); --ca-accent: var(--bp-primary-soft); --ca-vif: var(--bp-primary); }
.pub .ca-hero { text-align: left; padding: 0 0 8px; margin-bottom: 16px; background: none; border: 0; border-radius: 0; }
.pub .ca-hero h2 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; color: var(--bp-text); margin: 0 0 12px; }
.pub .ca-cherche { margin: 0; }
.pub .ca-cherche input { min-height: 44px; padding: 8px 12px; border-radius: var(--bp-r-sm); border: 1px solid var(--bp-border-control); background: var(--bp-bg); color: var(--bp-text); }
.pub .ca-cherche input:focus { outline: none; border-color: var(--bp-focus); box-shadow: 0 0 0 3px var(--bp-primary-glow); }
.pub .ca-cherche button { min-height: 44px; border-radius: var(--bp-r-sm); padding: 8px 16px; background: var(--bp-primary); font-weight: 600; cursor: pointer; transition: background-color var(--bp-duree-1) var(--bp-courbe); }
.pub .ca-cherche button:hover { background: var(--bp-primary-hover); }
.pub .ca-francais { color: var(--bp-warning); }
.pub .ca-h { font-size: 1.0625rem; font-weight: 600; color: var(--bp-text); margin: 32px 0 12px; }
.pub .ca-carte { border-radius: var(--bp-r); padding: 16px; transition: border-color var(--bp-duree-1) var(--bp-courbe); }
.pub a.ca-carte { color: var(--bp-text-2); text-decoration: none; }
.pub a.ca-carte:hover, .pub a.ca-carte:focus { border-color: var(--bp-text-3); color: var(--bp-text); }
.pub .ca-carte i { color: var(--bp-text-3); font-size: 1rem; }
.pub .ca-carte strong { color: var(--bp-text); font-weight: 600; }
.pub .ca-populaires a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.pub .ca-populaires a:hover { text-decoration: underline; }
.pub .ca-q { border-radius: var(--bp-r); }
.pub .ca-q > summary { color: var(--bp-text); padding: 12px 40px 12px 16px; }
.pub .ca-q > summary::after { color: var(--bp-text-3); font-weight: 400; right: 16px; top: 10px; }
.pub .ca-q > summary:focus-visible { outline: 2px solid var(--bp-focus); border-radius: var(--bp-r); }
.pub .ca-r { padding: 0 16px 16px; }
.pub .ca-etiquette { background: var(--bp-warning-fond); color: var(--bp-warning); font-weight: 600; }
.pub a.ca-bouton {
    display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; padding: 8px 16px; border-radius: var(--bp-r-sm);
    background: var(--bp-surface-2); border: 1px solid var(--bp-border-strong); color: var(--bp-text);
    text-decoration: none; font-weight: 600; font-size: .875rem;
    transition: background-color var(--bp-duree-1) var(--bp-courbe);
}
.pub a.ca-bouton:hover, .pub a.ca-bouton:focus { background: var(--bp-surface-3); color: var(--bp-text); }
.pub .ca-effacer { min-height: 44px; color: var(--bp-primary-soft); cursor: pointer; }

/* ---- « Questions frequentes » (aide_publique.html) ---- */
.ap-intro { color: var(--bp-text-2); font-size: .9375rem; line-height: 1.6; margin: 0 0 20px; }
.ap-fin { margin-top: 32px; padding: 20px; border-radius: var(--bp-r); border: 1px solid var(--bp-border); background: var(--bp-surface); }
.ap-fin h2 { font-size: 1.0625rem; font-weight: 600; color: var(--bp-text); margin: 0 0 8px; }
.ap-fin p { color: var(--bp-text-2); font-size: .875rem; line-height: 1.6; margin: 0 0 12px; }
.ap-liens { display: flex; flex-wrap: wrap; margin: -4px; }
.pub .ap-liens a {
    display: inline-flex; align-items: center; min-height: 44px; margin: 4px; padding: 8px 16px; border-radius: var(--bp-r-sm);
    text-decoration: none; font-weight: 600; font-size: .875rem;
    border: 1px solid var(--bp-border-strong); background: var(--bp-surface-2); color: var(--bp-text);
    transition: background-color var(--bp-duree-1) var(--bp-courbe);
}
.pub .ap-liens a:hover, .pub .ap-liens a:focus-visible { background: var(--bp-surface-3); color: var(--bp-text); }

/* ---- Le parrainage (parrainage.html) : la prime, puis trois etapes ---- */
body.pr-page { margin: 0; padding: 24px 16px 64px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.pr-wrap { max-width: 760px; margin: 0 auto; }
.pr-haut { margin: 8px 0 32px; }
.pr-prime { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; color: var(--bp-text); margin: 0 0 4px; }
.pr-titre { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; color: var(--bp-text-3); margin: 0 0 16px; }
.pr-sous { color: var(--bp-text-2); font-size: .9375rem; line-height: 1.6; margin: 0; max-width: 62ch; font-variant-numeric: tabular-nums; }
.pr-carte { background: var(--bp-surface); border: 1px solid var(--bp-border); border-radius: var(--bp-r); padding: 24px; margin-bottom: 16px; }
.pr-etape { display: flex; align-items: center; margin-bottom: 16px; color: var(--bp-text); font-size: 1rem; font-weight: 600; line-height: 1.35; }
.pr-pastille {
    width: 28px; height: 28px; border-radius: 50%; flex: 0 0 28px; margin-right: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--bp-border-strong); color: var(--bp-text-2); font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.pr-pastille.vive { background: var(--bp-primary); border-color: var(--bp-primary); color: #fff; }
.pr-video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border-radius: var(--bp-r-sm); background: var(--bp-bg); border: 1px solid var(--bp-border); display: block; }
.pr-q { border-top: 1px solid var(--bp-border); padding: 16px 0 4px; }
.pr-q:first-of-type { border-top: none; }
.pr-q p { margin: 0 0 12px; font-weight: 600; font-size: .9375rem; color: var(--bp-text); }
.pr-choix {
    display: flex; align-items: center; min-height: 44px; padding: 8px 12px; margin-bottom: 8px;
    border-radius: var(--bp-r-sm); border: 1px solid var(--bp-border-strong); cursor: pointer;
    font-size: .9375rem; line-height: 1.45; color: var(--bp-text-2);
    transition: border-color var(--bp-duree-1) var(--bp-courbe);
}
.pr-choix:hover { border-color: var(--bp-text-3); }
.pr-choix:has(input:checked) { border-color: var(--bp-primary-soft); box-shadow: inset 0 0 0 1px var(--bp-primary-soft); color: var(--bp-text); }
.pr-choix input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0 12px 0 0; }
.pr-bouton {
    width: 100%; min-height: 52px; border: 1px solid transparent; border-radius: var(--bp-r-sm); padding: 12px 24px;
    font: 600 1rem/1.25 var(--bp-font); color: #fff; background: var(--bp-primary); cursor: pointer;
    transition: background-color var(--bp-duree-1) var(--bp-courbe), transform var(--bp-duree-1) var(--bp-courbe);
}
.pr-bouton:hover { background: var(--bp-primary-hover); }
.pr-bouton:active { transform: scale(.98); }
.pr-bouton:focus-visible { outline: 2px solid var(--bp-focus); outline-offset: 2px; }
.pr-bouton:disabled { opacity: .45; cursor: not-allowed; transform: none; background: var(--bp-primary); }
.pr-champ {
    width: 100%; min-height: 44px; box-sizing: border-box; padding: 8px 12px; margin-bottom: 16px;
    background: var(--bp-bg); border: 1px solid var(--bp-border-control); border-radius: var(--bp-r-sm);
    color: var(--bp-text); font-size: 1rem;
}
.pr-champ:focus { outline: none; border-color: var(--bp-focus); box-shadow: 0 0 0 3px var(--bp-primary-glow); }
.pr-label { display: block; font-size: .875rem; font-weight: 600; color: var(--bp-text-2); margin-bottom: 8px; }
.pr-loi { border: 1px solid rgba(var(--bp-warning-rgb), 0.35); background: var(--bp-warning-fond); border-radius: var(--bp-r); padding: 12px 16px; color: var(--bp-text-2); font-size: .875rem; line-height: 1.6; margin-bottom: 12px; }
.pr-coche { display: flex; align-items: flex-start; margin-bottom: 12px; font-size: .875rem; line-height: 1.55; color: var(--bp-text-2); }
.pr-coche input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 12px 0 0; }
.pr-note { color: var(--bp-text-3); font-size: .875rem; line-height: 1.6; max-width: 68ch; }
h2.pr-note-titre { color: var(--bp-text); font-size: .9375rem; font-weight: 600; margin: 16px 0 4px; }
.pr-note-centre { margin-left: auto; margin-right: auto; text-align: center; }
.pr-verdict { display: none; border-radius: var(--bp-r); border: 1px solid var(--bp-border-strong); padding: 12px 16px; margin-bottom: 16px; color: var(--bp-text); font-size: .9375rem; line-height: 1.6; }
.pr-verdict.bon { background: var(--bp-success-fond); border-color: rgba(var(--bp-success-soft-rgb), 0.35); }
.pr-verdict.mauvais { background: var(--bp-danger-fond); border-color: rgba(var(--bp-danger-soft-rgb), 0.35); }
.pr-rate { color: var(--bp-text-3); font-size: .8125rem; margin: 8px 0 0; }
body.pr-page .cache { display: none; }
.pr-flash { border-radius: var(--bp-r); padding: 12px 16px; margin-bottom: 16px; font-size: .9375rem; line-height: 1.5; color: var(--bp-text); background: var(--bp-info-fond); border: 1px solid rgba(var(--bp-info-rgb), 0.35); }
@media (max-width: 640px) { body.pr-page { padding-top: 16px; } .pr-carte { padding: 16px; } }

/* ---- L'inscription d'une enseigne (inscription_enseigne_socle.html) : le meme
   habillage que l'inscription d'un etablissement ---- */
body.en-page { margin: 0; padding: 24px 16px 72px; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.en-wrap { max-width: 880px; margin: 0 auto; }
.en-titre { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; margin: 8px 0 8px; color: var(--bp-text); }
.en-sous { color: var(--bp-text-2); font-size: .9375rem; line-height: 1.6; margin: 0 0 24px; max-width: 68ch; }
.en-ref { color: var(--bp-text-3); font-size: .875rem; margin: 0 0 24px; font-family: var(--bp-font-mono); font-variant-numeric: tabular-nums; }
.en-carte { background: var(--bp-surface); border: 1px solid var(--bp-border); border-radius: var(--bp-r); padding: 24px; margin-bottom: 16px; }
.en-carte.faite { border-color: rgba(var(--bp-success-soft-rgb), 0.35); }
.en-carte.alerte { border-color: rgba(var(--bp-warning-rgb), 0.35); }
.en-section { color: var(--bp-text); font-size: 1rem; font-weight: 600; line-height: 1.35; margin: 0 0 16px; }
.en-p { font-size: .9375rem; line-height: 1.6; color: var(--bp-text-2); margin: 0 0 12px; max-width: 68ch; }
.en-p.gris { color: var(--bp-text-3); font-size: .875rem; }
.en-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.en-grille.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.en-champ label, .en-etiquette { display: block; font-size: .875rem; color: var(--bp-text-2); margin: 0 0 8px; font-weight: 600; }
.en-champ .obl { color: var(--bp-text-3); font-weight: 400; font-size: .8125rem; }
.en-saisie {
    width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 12px; border-radius: var(--bp-r-sm);
    border: 1px solid var(--bp-border-control); background: var(--bp-bg); color: var(--bp-text);
    font-size: 1rem; font-family: inherit;
}
.en-saisie:focus { outline: none; border-color: var(--bp-focus); box-shadow: 0 0 0 3px var(--bp-primary-glow); }
.en-aide { color: var(--bp-text-3); font-size: .8125rem; line-height: 1.5; margin: 8px 0 0; }
.en-bouton {
    width: 100%; min-height: 52px; border: 1px solid transparent; border-radius: var(--bp-r-sm); padding: 12px 24px;
    font: 600 1rem/1.25 var(--bp-font); color: #fff; background: var(--bp-primary); cursor: pointer;
    transition: background-color var(--bp-duree-1) var(--bp-courbe), transform var(--bp-duree-1) var(--bp-courbe);
}
.en-bouton:hover { background: var(--bp-primary-hover); color: #fff; }
.en-bouton:active { transform: scale(.98); }
.en-bouton:focus-visible { outline: 2px solid var(--bp-focus); outline-offset: 2px; }
.en-bouton[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.en-bouton.second { background: var(--bp-surface-2); color: var(--bp-text); border-color: var(--bp-border-strong); }
.en-bouton.second:hover { background: var(--bp-surface-3); color: var(--bp-text); }
a.en-bouton { display: flex; align-items: center; justify-content: center; box-sizing: border-box; text-align: center; text-decoration: none; }
.en-erreurs { background: var(--bp-danger-fond); border: 1px solid rgba(var(--bp-danger-soft-rgb), 0.35); border-radius: var(--bp-r); padding: 16px 20px; margin-bottom: 16px; }
.en-erreurs h2 { font-size: 1rem; font-weight: 600; margin: 0 0 8px; color: var(--bp-text); }
.en-erreurs li { color: var(--bp-text-2); font-size: .875rem; line-height: 1.6; }
.en-ligne { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; font-size: .9375rem; color: var(--bp-text-2); border-bottom: 1px solid var(--bp-border); font-variant-numeric: tabular-nums; }
.en-ligne > span:last-child { text-align: right; color: var(--bp-text); }
.en-ligne.total { border-bottom: none; font-weight: 600; color: var(--bp-text); font-size: 1rem; }
.en-table { width: 100%; border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; }
.en-table th { text-align: left; color: var(--bp-text-3); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--bp-border-strong); }
.en-table td { padding: 8px; border-bottom: 1px solid var(--bp-border); vertical-align: top; color: var(--bp-text-2); }
.en-table .droite { text-align: right; white-space: nowrap; }
.en-defile { overflow-x: auto; }
.en-case { display: flex; align-items: flex-start; padding: 12px 0; font-size: .875rem; line-height: 1.6; color: var(--bp-text-2); }
.en-case input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 12px 0 0; }
.en-magasin { border: 1px solid var(--bp-border-strong); border-radius: var(--bp-r); padding: 16px; margin: 0 0 16px; }
.en-magasin h3 { font-size: 1rem; font-weight: 600; margin: 0 0 12px; color: var(--bp-text); }
.en-payeurs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 8px; }
.en-choix { border: 1px solid var(--bp-border); border-radius: var(--bp-r-sm); padding: 8px 12px; margin: 0; }
.en-choix legend { font-size: .875rem; font-weight: 600; color: var(--bp-text-2); padding: 0 4px; }
.en-choix label { display: flex; align-items: center; min-height: 44px; font-size: .875rem; cursor: pointer; color: var(--bp-text-2); }
.en-choix label input { margin: 0 8px 0 0; }
.en-lien { color: var(--bp-primary-soft); text-decoration: none; font-size: .875rem; }
.en-lien:hover { color: var(--bp-text); text-decoration: underline; }
.en-pastille { display: inline-block; border-radius: var(--bp-r-pill); padding: 2px 10px; font-size: .75rem; font-weight: 600; background: var(--bp-surface-3); color: var(--bp-text-2); }
.en-pastille.ok { background: var(--bp-success-fond); color: var(--bp-success-soft); }
.en-pastille.attention { background: var(--bp-warning-fond); color: var(--bp-warning); }
@media (max-width: 700px) {
    body.en-page { padding-top: 16px; }
    .en-carte { padding: 16px; }
    .en-grille, .en-grille.trois, .en-payeurs { grid-template-columns: minmax(0, 1fr); }
}

/* ---- L'espace du parrain (parrainage_espace.html) ---- */
body.pe-page { margin: 0; padding: 24px 16px 64px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.pe-wrap { max-width: 760px; margin: 0 auto; }
.pe-carte { background: var(--bp-surface); border: 1px solid var(--bp-border); border-radius: var(--bp-r); padding: 24px; margin-bottom: 16px; }
.pe-titre { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; margin: 0 0 8px; color: var(--bp-text); }
.pe-sous { color: var(--bp-text-2); font-size: .9375rem; line-height: 1.6; margin: 0 0 20px; }
.pe-code { font-family: var(--bp-font-mono); font-variant-numeric: tabular-nums; font-size: 2rem; font-weight: 600; color: var(--bp-text); letter-spacing: .04em; }
.pe-champ {
    width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 12px; margin-bottom: 16px;
    background: var(--bp-bg); border: 1px solid var(--bp-border-control); border-radius: var(--bp-r-sm);
    color: var(--bp-text); font-size: 1rem;
}
.pe-champ:focus { outline: none; border-color: var(--bp-focus); box-shadow: 0 0 0 3px var(--bp-primary-glow); }
.pe-label { display: block; font-size: .875rem; font-weight: 600; color: var(--bp-text-2); margin-bottom: 8px; }
.pe-bouton {
    min-height: 44px; border: 1px solid transparent; border-radius: var(--bp-r-sm); padding: 8px 16px;
    font: 600 .9375rem/1.25 var(--bp-font); color: #fff; background: var(--bp-primary); cursor: pointer;
    transition: background-color var(--bp-duree-1) var(--bp-courbe), transform var(--bp-duree-1) var(--bp-courbe);
}
.pe-bouton:hover { background: var(--bp-primary-hover); }
.pe-bouton:active { transform: scale(.98); }
.pe-bouton:focus-visible { outline: 2px solid var(--bp-focus); outline-offset: 2px; }
.pe-bouton.pe-second { background: var(--bp-surface-2); color: var(--bp-text); border-color: var(--bp-border-strong); }
.pe-bouton.pe-second:hover { background: var(--bp-surface-3); }
.pe-carte.pe-avis { border-color: rgba(var(--bp-warning-rgb), 0.35); }
.pe-ligne { display: flex; justify-content: space-between; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--bp-border); font-size: .875rem; color: var(--bp-text-2); font-variant-numeric: tabular-nums; }
.pe-ligne > * + * { margin-left: 12px; }
.pe-etat { font-size: .75rem; font-weight: 600; padding: 2px 10px; border-radius: var(--bp-r-pill); background: var(--bp-surface-3); color: var(--bp-text-2); }
.pe-etat.paye { background: var(--bp-success-fond); color: var(--bp-success-soft); }
.pe-etat.attente { background: var(--bp-info-fond); color: var(--bp-info); }
.pe-etat.du { background: var(--bp-warning-fond); color: var(--bp-warning); }
.pe-etat.annule { background: var(--bp-danger-fond); color: var(--bp-danger-soft); }
.pe-note { color: var(--bp-text-3); font-size: .875rem; line-height: 1.6; }
.pe-flash { border-radius: var(--bp-r); padding: 12px 16px; margin-bottom: 16px; font-size: .9375rem; line-height: 1.5; color: var(--bp-text); background: var(--bp-info-fond); border: 1px solid rgba(var(--bp-info-rgb), 0.35); }
.pe-chiffre { font-size: 1.75rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--bp-text); }
.pe-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 0 24px; margin-bottom: 20px; border-top: 1px solid var(--bp-border); }
.pe-case { padding: 16px 0; }
.pe-case span { color: var(--bp-text-3); font-size: .8125rem; }
@media (max-width: 640px) { body.pe-page { padding-top: 16px; } .pe-carte { padding: 16px; } }

/* ---------------- Le pied commun (_pied_public.html) ---------------- */
.bp-pied-legal { text-align: center; margin: 32px auto 0; max-width: 880px; font-family: var(--bp-font); }
.bp-pied-legal nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; }
.bp-pied-legal a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 8px; color: var(--bp-text-3); font-size: .8125rem; text-decoration: none; }
@media (min-width: 992px) and (pointer: fine) { .bp-pied-legal a { min-height: 32px; } }
.bp-pied-legal a:hover, .bp-pied-legal a:focus-visible { color: var(--bp-text); text-decoration: underline; }
.bp-pied-legal p { color: var(--bp-text-3); font-size: .8125rem; margin: 8px 0 0; }

@media (prefers-reduced-motion: reduce) {
    .pub-bouton, .pub .pub-saisie, .pub-voir { transition: none; }
    .pub-bouton:active { transform: none; }
}

/* =========================================================================
   LE CADRAGE : RIEN NE DEBORDE, RIEN NE SORT DE SON CADRE
   =========================================================================
   Les titres s'equilibrent sur leurs lignes, les paragraphes evitent la derniere
   ligne d'un seul mot, les mots longs se coupent en francais (lang="fr"). */
html.pub-racine > body { overflow-wrap: break-word; }
html.pub-racine h1, html.pub-racine h2, html.pub-racine h3 { text-wrap: balance; }
html.pub-racine p, html.pub-racine li, html.pub-racine dd { text-wrap: pretty; -webkit-hyphens: auto; hyphens: auto; }
html.pub-racine img, html.pub-racine video, html.pub-racine canvas, html.pub-racine iframe { max-width: 100%; }
/* Un libelle de bouton qui passe a la ligne se partage en deux lignes egales ; une
   option trop longue pour sa liste finit par des points de suspension. */
.pub-bouton { text-wrap: balance; }
html.pub-racine select { max-width: 100%; text-overflow: ellipsis; }

/* Les pages publiques, une a une. L'etat du service (statut.html) : l'etiquette se
   resserre et, si la place manque, la valeur passe dessous au lieu de sortir de la
   carte. « Comment Ryado protege vos donnees » (public_securite.html) : le titre
   d'une rubrique, pose a cote de son icone, coupe un mot trop long plutot que de
   deborder. */
.st-ligne { flex-wrap: wrap; row-gap: 2px; }
.st-etiquette { flex: 1 1 auto; min-width: 0; }
.sec-section h2 { overflow-wrap: anywhere; }
/* L'aide publique (_aide_centre.html) : au telephone, le champ de recherche prend
   toute la largeur et « Chercher » passe dessous, au lieu d'un champ etrangle dont
   l'exemple est coupe. */
@media (max-width: 479px) {
    .pub .ca-cherche { flex-wrap: wrap; }
    .pub .ca-cherche input { flex: 1 1 100%; }
    .pub .ca-cherche button { flex: 1 1 100%; min-height: 44px; }
}
/* Les themes de l'aide, deux par ligne au telephone : sur le plus petit ecran, le titre
   d'une carte se coupe en francais (« Engage-ment ») au lieu de casser n'importe ou. */
@media (max-width: 379px) {
    .pub .ca-carte { padding: .75rem .7rem; }
    .pub .ca-carte strong { font-size: .88rem; overflow-wrap: normal; -webkit-hyphens: auto; hyphens: auto; }
}
/* Le depot par code (_depot_formulaire.html) : au plus petit ecran, « Analyser le
   document » tient sur une ligne a cote de son icone. */
@media (max-width: 359px) {
    .pub .depot-gros { font-size: 1.02rem; padding: .8rem .75rem; }
}
/* Le recapitulatif de commande et le devis (souscription_contrat.html,
   souscription_reglement.html, creer_etablissement.html) : au telephone, un montant
   court reste a droite de son libelle ; une valeur longue (duree, execution, TVA) passe
   sous son libelle, alignee a droite, au lieu d'etre serree dans une demi-colonne. */
@media (max-width: 480px) {
    html.pub-racine .sc-devis-ligne, html.pub-racine .cr-devis-ligne { flex-wrap: wrap; column-gap: 14px; row-gap: 2px; }
    html.pub-racine .sc-devis-ligne > span:first-child,
    html.pub-racine .cr-devis-ligne > span:first-child { flex: 1 1 9em; min-width: 0; }
    html.pub-racine .sc-devis-ligne > span:last-child,
    html.pub-racine .cr-devis-ligne > span:last-child { flex: 0 1 auto; max-width: 100%; margin-left: auto; }
}
/* Les horaires d'ouverture (creer_etablissement.html) : au telephone, le jour sur sa
   ligne, puis l'ouverture et la fermeture cote a cote, de la meme largeur. */
@media (max-width: 640px) {
    html.pub-racine .cr-jour { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html.pub-racine .cr-jour > label { grid-column: 1 / -1; }
}

/* =========================================================================
   LA COMMANDE ET LE REGLEMENT (souscription_contrat.html, souscription_reglement.html,
   souscription_differe.html) : les etapes 8 et 9 de l'inscription, sur les jetons et
   l'echelle des sept premieres. Chaque page garde son bloc de styles, que ses tests
   lisent ; ces regles, prefixees par html.pub-racine, l'emportent sur lui.
   ========================================================================= */
html.pub-racine body.sc-page {
    background: var(--bp-bg); color: var(--bp-text); font-family: var(--bp-font);
    padding: 24px 16px 72px; padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
html.pub-racine .sc-wrap { max-width: 760px; }
html.pub-racine .sc-titre { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 8px; color: var(--bp-text); }
html.pub-racine .sc-ref { color: var(--bp-text-3); font-family: var(--bp-font-mono); font-size: .8125rem; margin: 0 0 24px; }
html.pub-racine .sc-carte { background: var(--bp-surface); border: 1px solid var(--bp-border); border-radius: var(--bp-r); padding: 24px; margin-bottom: 16px; }
html.pub-racine .sc-carte.faite { border-color: rgba(var(--bp-success-soft-rgb), 0.35); background: var(--bp-surface); }
html.pub-racine .sc-section { color: var(--bp-text); font-size: 1rem; font-weight: 600; line-height: 1.35; letter-spacing: 0; text-transform: none; margin: 0 0 16px; }
html.pub-racine .sc-etape { gap: 12px; padding: 12px 0; border-top-color: var(--bp-border); }
html.pub-racine .sc-puce { width: 24px; height: 24px; flex: 0 0 24px; background: var(--bp-surface-3); color: var(--bp-text-3); font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
html.pub-racine .sc-puce.faite, html.pub-racine .sc-num.faite { background: var(--bp-success); color: var(--bp-bg); }
html.pub-racine .sc-puce.attente { background: var(--bp-warning); color: var(--bp-bg); }
html.pub-racine .sc-etape-texte { font-size: .9375rem; line-height: 1.5; color: var(--bp-text); }
html.pub-racine .sc-etape-texte span { color: var(--bp-text-3); font-size: .8125rem; line-height: 1.5; margin-top: 4px; }
html.pub-racine .sc-lecteur { border-color: var(--bp-border); border-radius: var(--bp-r-sm); background: var(--bp-surface-2); }
html.pub-racine .sc-devis-ligne { padding: 12px 0; font-size: .9375rem; line-height: 1.5; border-bottom-color: var(--bp-border); font-variant-numeric: tabular-nums; }
html.pub-racine .sc-devis-ligne.sc-total { font-size: 1rem; }
html.pub-racine .sc-case { font-size: .9375rem; line-height: 1.5; color: var(--bp-text-2); margin: 16px 0; }
html.pub-racine .sc-case input { width: 20px; height: 20px; margin: 2px 0 0; }
html.pub-racine .sc-bouton {
    min-height: 52px; border: 1px solid transparent; border-radius: var(--bp-r-sm); padding: 16px 24px;
    font-weight: 600; font-size: 1rem; line-height: 1.25; color: #fff; background: var(--bp-primary);
    transition: background-color var(--bp-duree-1) var(--bp-courbe), transform var(--bp-duree-1) var(--bp-courbe);
}
html.pub-racine .sc-bouton:hover { background: var(--bp-primary-hover); }
html.pub-racine .sc-bouton:active { transform: scale(.98); }
html.pub-racine .sc-bouton[disabled] { background: var(--bp-primary); color: #fff; opacity: .45; cursor: not-allowed; transform: none; }
html.pub-racine .sc-bouton .fas, html.pub-racine .sc-bouton .far { margin-right: 8px; }
html.pub-racine .sc-bouton-sobre {
    min-height: 44px; border: 1px solid var(--bp-border-strong); border-radius: var(--bp-r-sm); padding: 8px 16px;
    background: var(--bp-surface-2); color: var(--bp-text); font-size: .9375rem; font-weight: 600; line-height: 1.25; margin-top: 8px;
    transition: background-color var(--bp-duree-1) var(--bp-courbe);
}
html.pub-racine .sc-bouton-sobre:hover { background: var(--bp-surface-3); }
html.pub-racine .sc-bouton:focus-visible, html.pub-racine .sc-bouton-sobre:focus-visible,
html.pub-racine .sc-lien:focus-visible, html.pub-racine .sc-retrait summary:focus-visible { outline: 2px solid var(--bp-focus); outline-offset: 2px; border-radius: 4px; }
html.pub-racine .sc-lien { color: var(--bp-primary-soft); font-size: .875rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
html.pub-racine .sc-lien:hover { color: var(--bp-text); }
html.pub-racine .sc-wrap a:not([class]) { color: var(--bp-primary-soft); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
html.pub-racine .sc-wrap a:not([class]):hover { color: var(--bp-text); }
html.pub-racine .sc-retrait, html.pub-racine .sc-avertit { border-color: rgba(var(--bp-warning-rgb), 0.35); background: var(--bp-warning-fond); border-radius: var(--bp-r); padding: 16px; margin-top: 16px; }
html.pub-racine .sc-retrait summary { color: var(--bp-warning); font-size: .9375rem; }
html.pub-racine .sc-retrait p { color: var(--bp-text-2); font-size: .875rem; line-height: 1.6; }
html.pub-racine .sc-avertit p { color: var(--bp-warning); font-size: .875rem; line-height: 1.6; }
html.pub-racine .sc-saisie {
    min-height: 44px; padding: 8px 12px; border-radius: var(--bp-r-sm); border: 1px solid var(--bp-border-control);
    background: var(--bp-bg); color: var(--bp-text); font-size: 1rem;
}
html.pub-racine .sc-saisie:focus { outline: none; border-color: var(--bp-focus); box-shadow: 0 0 0 3px var(--bp-primary-glow); }
html.pub-racine .sc-etiquette { font-size: .875rem; color: var(--bp-text-2); font-weight: 600; margin: 0 0 8px; }
html.pub-racine .sc-final { padding: 32px 24px; }
html.pub-racine .sc-final h2 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; margin: 0 0 8px; }
html.pub-racine .sc-final p { color: var(--bp-text-2); font-size: .9375rem; line-height: 1.6; }
html.pub-racine .sc-choix { border-color: var(--bp-border-strong); border-radius: var(--bp-r); padding: 16px; background: var(--bp-surface-2); }
html.pub-racine .sc-choix p { color: var(--bp-text-3); font-size: .8125rem; line-height: 1.55; }
html.pub-racine .sc-suite { border-color: rgba(var(--bp-success-soft-rgb), 0.35); background: var(--bp-success-fond); border-radius: var(--bp-r); padding: 16px; }
html.pub-racine .sc-suite p { font-size: .9375rem; line-height: 1.6; }
html.pub-racine .sc-num { background: var(--bp-surface-3); color: var(--bp-text-3); font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
html.pub-racine .sc-p { font-size: .9375rem; line-height: 1.6; color: var(--bp-text-2); margin: 0 0 16px; }
html.pub-racine .sc-p.gris { color: var(--bp-text-3); font-size: .8125rem; line-height: 1.55; }
html.pub-racine .sc-grille { gap: 16px; }
@media (max-width: 640px) {
    html.pub-racine body.sc-page { padding-top: 16px; }
    html.pub-racine .sc-carte { padding: 16px; }
    html.pub-racine .sc-final { padding: 24px 16px; }
}

/* LA MARQUE, en haut des pages qui n'ont pas la barre (commande, reglement, enseigne,
   espace du parrain) : le meme sigle et le meme retour a l'accueil que partout. */
.sc-page .pub-marque, .en-page .pub-marque, .pe-page .pub-marque,
.sc-page .pub-marque:hover, .en-page .pub-marque:hover, .pe-page .pub-marque:hover { color: var(--bp-text); text-decoration: none; }
.sc-page .pub-marque:focus-visible, .en-page .pub-marque:focus-visible, .pe-page .pub-marque:focus-visible { outline: 2px solid var(--bp-focus); outline-offset: 2px; border-radius: 4px; }

/* La cle d'acces tient sur une ligne : au telephone, le libelle court (le bouton garde
   son nom complet, aria-label, pour les lecteurs d'ecran). */
.connexion-cle-court { display: none; }
@media (max-width: 480px) {
    .connexion-cle-long { display: none; }
    .connexion-cle-court { display: inline; }
}

/* Un lien seul sur sa ligne : 44 px sous le doigt. */
.pub-lien-cible { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }

/* Au telephone, le bouton d'un formulaire prend la largeur du champ. */
@media (max-width: 480px) {
    .vp-saisie .vp-bouton { flex: 1 1 100%; }
    .pe-carte form > .pe-bouton[type="submit"] { width: 100%; }
}

/* La bulle de l'assistant ne recouvre pas la ligne de droits, en bas de page. */
@media (max-width: 640px) {
    body:has(> .va-coin) .bp-pied-legal { padding-bottom: 40px; }
    body:has(> .va-coin) .v-pied .bp-pied-legal { padding-bottom: 0; }
}

/* LE FILET. Les causes de debordement sont corrigees a leur source ; ce filet
   empeche seulement qu'un oubli futur fasse glisser la page de cote au doigt.
   `clip`, et non `hidden` : la barre du haut reste collante (position: sticky).
   La page defile par la fenetre : body ne devient jamais un conteneur de
   defilement (overflow-y visible), sans quoi la barre ne collerait plus. */
html.pub-racine { overflow-x: clip; }
html.pub-racine > body { overflow-x: hidden; overflow-x: clip; overflow-y: visible; }

/* =========================================================================
   LES PAGES PUBLIQUES EN CLAIR (html.pub-clair)
   Dans un navigateur, les pages publiques sont sur fond blanc, comme l'accueil :
   texte presque noir, encadrés gris très clair, une seule couleur de marque. Le
   gabarit pose la classe dans un navigateur comme dans les applications ; à la borne
   et sur une tablette partagée, rien ne change. Le bloc
   qui suit redonne leur valeur claire aux jetons du site : c'est le seul endroit
   de la feuille où des couleurs sont écrites, et la teinte ne dépend jamais du
   mode sombre du téléphone.
   ========================================================================= */
html.pub-clair {
    color-scheme: light;
    --bp-bg: #ffffff; --bp-surface: #f6f6f9; --bp-surface-2: #eeeef3; --bp-surface-3: #e4e4eb;
    --bp-glass: rgba(255, 255, 255, 0.88); --bp-overlay: rgba(16, 16, 40, 0.45);
    --bp-border: #e3e3ea; --bp-border-strong: #cfcfd9; --bp-border-control: #85859a;
    --bp-text: #0b0b10; --bp-text-2: #3b3b48; --bp-text-3: #5a5a69; --bp-text-4: #6f6f7d;
    --bp-primary: #1257d6; --bp-primary-hover: #0f4bbd; --bp-primary-soft: #0f4bbd; --bp-primary-glow: #e6eefc;
    --bp-info: #1d5fbf; --bp-success: #0b7a53; --bp-success-soft: #0b7a53; --bp-warning: #94640a;
    --bp-danger: #c62f2a; --bp-danger-hover: #b02925; --bp-danger-soft: #b3261e;
    --bp-success-fond: #e4f6ee; --bp-warning-fond: #fbf1dc; --bp-danger-fond: #fdeceb; --bp-info-fond: #e8f1fd;
    --bp-surface-rgb: 246, 246, 249; --bp-neutre-rgb: 90, 90, 105; --bp-primary-rgb: 18, 87, 214;
    --bp-primary-soft-rgb: 15, 75, 189; --bp-info-rgb: 29, 95, 191; --bp-success-soft-rgb: 11, 122, 83;
    --bp-warning-rgb: 148, 100, 10; --bp-danger-soft-rgb: 179, 38, 30;
    --bp-shadow: 0 8px 24px rgba(16, 16, 40, 0.08); --bp-shadow-lg: 0 24px 64px rgba(16, 16, 40, 0.14);
}
html.pub-clair, html.pub-clair > body { background-color: var(--bp-bg); }
/* Dans les applications, la page blanche garde une bande sombre sous la barre d'état du
   téléphone : l'heure et la batterie, que l'application écrit en clair, restent lisibles. */
html.pub-clair.pub-appli > body::after {
    content: ""; position: fixed; inset: 0 0 auto 0; z-index: 2000; height: env(safe-area-inset-top, 0px);
    background: #09090b; pointer-events: none;
}
