/* EvoBuskin - styles
   POUR CHANGER LES COULEURS : modifiez uniquement les variables ci-dessous (bloc :root). */
:root {
  color-scheme: light;
  --couleur-principale: #0b7a3e;   /* vert : barre du haut, boutons */
  --couleur-principale-fonce: #075c2e;
  --couleur-accent: #f2b705;       /* jaune : mises en avant */
  --couleur-danger: #c62828;       /* rouge : ruptures, dettes, suppression */
  --couleur-alerte: #e67e00;       /* orange : stock bas */
  --couleur-fond: #f3f5f4;
  --couleur-carte: #ffffff;
  --couleur-texte: #1d2a24;
  --couleur-texte-doux: #5d6b64;
  --couleur-bordure: #dbe2de;
  --rayon: 14px;
  --hauteur-barre: 56px;
  --hauteur-menu: 62px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px; color: var(--couleur-texte); background: var(--couleur-fond);
  overscroll-behavior-y: contain;
}
body.modal-ouvert { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
h2 { margin: 4px 0 12px; font-size: 1.25rem; }
h3 { margin: 0; font-size: 1.1rem; }
p { margin: 0 0 10px; }
[hidden] { display: none !important; }

/* ---------- Chargement ---------- */
#chargement {
  position: fixed; inset: 0; background: #060d1f; color: #fff; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 700;
}
.logo-rond {
  width: 84px; height: 84px; border-radius: 50%; background: #fff; color: var(--couleur-principale);
  display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 900;
  box-shadow: 0 0 0 6px var(--couleur-accent);
}

/* ---------- Structure ---------- */
#app { display: flex; flex-direction: column; height: 100%; max-width: 720px; margin: 0 auto; background: var(--couleur-fond); }
#barre {
  height: calc(var(--hauteur-barre) + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top);
  background: var(--couleur-principale); color: #fff; display: flex; align-items: center; justify-content: space-between;
  padding-left: 14px; padding-right: 10px; flex-shrink: 0;
}
.barre-gauche { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.barre-gauche strong { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre-gauche small { opacity: .85; }
.barre-droite { display: flex; align-items: center; gap: 8px; }
.pastille { font-size: .72rem; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.2); }
.pastille.hors-ligne { background: var(--couleur-accent); color: #3b2f00; font-weight: 700; }
.btn-icone {
  width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: inherit;
  font-size: 1.2rem; cursor: pointer;
}
#vue { flex: 1; overflow-y: auto; padding: 12px 12px 90px; -webkit-overflow-scrolling: touch; }
#menu {
  height: calc(var(--hauteur-menu) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--couleur-carte); border-top: 1px solid var(--couleur-bordure); display: flex; flex-shrink: 0;
}
#menu button {
  flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: .74rem; color: var(--couleur-texte-doux); cursor: pointer;
}
#menu button .ico { font-size: 1.4rem; }
#menu button.actif { color: var(--couleur-principale); font-weight: 700; }

/* ---------- Composants ---------- */
.carte { background: var(--couleur-carte); border-radius: var(--rayon); padding: 12px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.carte.danger { border-left: 5px solid var(--couleur-danger); }
.carte.alerte { border-left: 5px solid var(--couleur-alerte); }
.texte-centre { text-align: center; }
.petit { font-size: .85rem; color: var(--couleur-texte-doux); }
.gras { font-weight: 700; }
.rouge-txt { color: var(--couleur-danger); }
.vert-txt { color: var(--couleur-principale); }
.droite { text-align: right; }
.ligne-flex { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vide { text-align: center; color: var(--couleur-texte-doux); padding: 28px 10px; }

.btn {
  display: block; width: 100%; padding: 14px 16px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--couleur-principale); color: #fff; font-weight: 700; font-size: 1rem; text-align: center;
}
.btn:active { background: var(--couleur-principale-fonce); }
.btn.gris { background: #e4e9e6; color: var(--couleur-texte); }
.btn.rouge { background: var(--couleur-danger); }
.btn.jaune { background: var(--couleur-accent); color: #3b2f00; }
.btn.contour { background: #fff; color: var(--couleur-principale); border: 2px solid var(--couleur-principale); }
.btn.petit-btn { width: auto; display: inline-block; padding: 9px 14px; font-size: .9rem; }
.btn[disabled] { opacity: .5; }
.ligne-boutons { display: flex; gap: 10px; margin-top: 12px; }
.ligne-boutons .btn { flex: 1; }
.pile > * + * { margin-top: 10px; }

.champ { display: block; margin-bottom: 12px; }
.champ > span { display: block; font-size: .85rem; color: var(--couleur-texte-doux); margin-bottom: 4px; }
.champ input, .champ select, .champ textarea {
  width: 100%; padding: 12px; border: 1.5px solid var(--couleur-bordure); border-radius: 10px; background: #fff; min-height: 46px;
}
.champ input:focus, .champ select:focus { outline: 0; border-color: var(--couleur-principale); }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.recherche { display: flex; gap: 8px; margin-bottom: 10px; }
.recherche input { flex: 1; padding: 12px; border: 1.5px solid var(--couleur-bordure); border-radius: 10px; min-height: 46px; background: #fff; }
.recherche .btn { width: 52px; padding: 0; font-size: 1.3rem; }

.segment { display: flex; background: #e4e9e6; border-radius: 12px; padding: 3px; margin-bottom: 12px; }
.segment button { flex: 1; border: 0; background: none; padding: 10px 4px; border-radius: 10px; font-weight: 600; cursor: pointer; }
.segment button.actif { background: #fff; color: var(--couleur-principale); box-shadow: 0 1px 3px rgba(0,0,0,.15); }

.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .75rem; font-weight: 700; background: #e1f3e8; color: var(--couleur-principale); }
.badge.rouge { background: #fde4e4; color: var(--couleur-danger); }
.badge.orange { background: #ffefd6; color: var(--couleur-alerte); }
.badge.gris { background: #e4e9e6; color: var(--couleur-texte-doux); }

.bandeau { padding: 10px 12px; border-radius: 12px; margin-bottom: 12px; background: #fff6d6; color: #5c4700; font-size: .9rem; }
.bandeau.rouge { background: #fde4e4; color: #7a1414; }

/* ---------- Listes ---------- */
.liste { background: var(--couleur-carte); border-radius: var(--rayon); overflow: hidden; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.liste .ligne { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-bottom: 1px solid var(--couleur-bordure); cursor: pointer; }
.liste .ligne:last-child { border-bottom: 0; }
.liste .ligne:active { background: #f0f4f2; }
.liste .ligne .nom { font-weight: 600; }
.liste .ligne .sous { font-size: .82rem; color: var(--couleur-texte-doux); }
.liste .ligne .droite { text-align: right; flex-shrink: 0; }

/* ---------- Caisse ---------- */
.categories { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 4px; }
.categories button { flex-shrink: 0; border: 1.5px solid var(--couleur-bordure); background: #fff; border-radius: 99px; padding: 7px 14px; cursor: pointer; }
.categories button.actif { background: var(--couleur-principale); color: #fff; border-color: var(--couleur-principale); }
.grille-produits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 480px) { .grille-produits { grid-template-columns: repeat(3, 1fr); } }
.produit {
  background: #fff; border: 0; border-radius: var(--rayon); padding: 12px 10px; text-align: left; cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.1); display: flex; flex-direction: column; gap: 4px; min-height: 92px; position: relative;
}
.produit:active { transform: scale(.97); }
.produit .p-nom { font-weight: 700; line-height: 1.2; }
.produit .p-prix { color: var(--couleur-principale); font-weight: 800; }
.produit .p-stock { font-size: .78rem; color: var(--couleur-texte-doux); }
.produit.rupture { opacity: .55; }
.produit .p-qte { position: absolute; top: 6px; right: 6px; background: var(--couleur-accent); color: #3b2f00; font-weight: 800; border-radius: 99px; min-width: 26px; text-align: center; padding: 1px 7px; }
.barre-panier {
  position: fixed; left: 0; right: 0; bottom: calc(var(--hauteur-menu) + env(safe-area-inset-bottom)); max-width: 720px; margin: 0 auto;
  padding: 8px 12px; background: transparent; z-index: 20;
}
.barre-panier .btn { display: flex; justify-content: space-between; box-shadow: 0 4px 14px rgba(0,0,0,.25); }

.ligne-panier { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--couleur-bordure); }
.ligne-panier .info { flex: 1; min-width: 0; }
.ligne-panier .info .nom { font-weight: 600; }
.qte-ctrl { display: flex; align-items: center; gap: 6px; }
.qte-ctrl button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #e4e9e6; font-size: 1.3rem; font-weight: 800; cursor: pointer; }
.qte-ctrl input { width: 58px; text-align: center; padding: 8px 2px; border: 1.5px solid var(--couleur-bordure); border-radius: 8px; }
.total-grand { font-size: 1.5rem; font-weight: 900; color: var(--couleur-principale); }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.modes button { border: 2px solid var(--couleur-bordure); background: #fff; border-radius: 12px; padding: 10px 4px; font-size: .82rem; font-weight: 600; cursor: pointer; }
.modes button.actif { border-color: var(--couleur-principale); background: #e9f6ee; color: var(--couleur-principale); }
.recu { background: #fffef5; border: 1px dashed #b9b27a; border-radius: 10px; padding: 12px; font-family: "Courier New", monospace; font-size: .85rem; white-space: pre-wrap; margin-bottom: 12px; }

/* ---------- Fenêtres ---------- */
.fond-fenetre { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.fenetre {
  background: #fff; width: 100%; max-width: 720px; max-height: 92vh; border-radius: 20px 20px 0 0;
  display: flex; flex-direction: column; animation: monter .2s ease-out;
}
@keyframes monter { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.fenetre-tete { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; }
.fenetre-tete .fermer { background: #e4e9e6; width: 36px; height: 36px; font-size: 1.5rem; }
.fenetre-corps { padding: 8px 16px calc(18px + env(safe-area-inset-bottom)); overflow-y: auto; }

/* ---------- Connexion / PIN ---------- */
#ecranPin { display: flex; flex-direction: column; align-items: center; padding: 24px 16px; gap: 14px; }
.roles { display: flex; gap: 12px; width: 100%; max-width: 360px; }
.roles button { flex: 1; padding: 16px 8px; border: 2px solid var(--couleur-bordure); background: #fff; border-radius: 14px; font-weight: 700; cursor: pointer; font-size: 1rem; }
.roles button.actif { border-color: var(--couleur-principale); background: #e9f6ee; color: var(--couleur-principale); }
.points { display: flex; gap: 14px; height: 24px; }
.points i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--couleur-principale); }
.points i.plein { background: var(--couleur-principale); }
.clavier { display: grid; grid-template-columns: repeat(3, 76px); gap: 12px; }
.clavier button { height: 64px; border-radius: 50%; border: 0; background: #fff; font-size: 1.6rem; font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.15); cursor: pointer; }
.clavier button:active { background: #e4e9e6; }
.erreur-pin { color: var(--couleur-danger); min-height: 22px; font-weight: 600; text-align: center; }

/* ---------- Scanner ---------- */
.scan-zone { position: relative; background: #000; border-radius: 12px; overflow: hidden; margin-bottom: 10px; aspect-ratio: 4 / 3; }
.scan-zone video { width: 100%; height: 100%; object-fit: cover; }
.scan-cadre { position: absolute; inset: 22% 10%; border: 3px solid var(--couleur-accent); border-radius: 12px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }

/* ---------- Rapports ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.stat { background: #fff; border-radius: var(--rayon); padding: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.stat .lib { font-size: .8rem; color: var(--couleur-texte-doux); }
.stat .val { font-size: 1.15rem; font-weight: 800; }
.stat .val2 { font-size: .78rem; color: var(--couleur-texte-doux); }
.stat.vert .val { color: var(--couleur-principale); }
.stat.rouge .val { color: var(--couleur-danger); }
.graphique { display: flex; align-items: flex-end; gap: 6px; height: 130px; padding-top: 8px; }
.graphique .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.graphique .barre-g { width: 100%; background: var(--couleur-principale); border-radius: 6px 6px 0 0; min-height: 2px; }
.graphique .lib-g { font-size: .7rem; color: var(--couleur-texte-doux); margin-top: 3px; }
.barre-h { height: 8px; background: #e4e9e6; border-radius: 99px; overflow: hidden; margin-top: 4px; }
.barre-h i { display: block; height: 100%; background: var(--couleur-accent); }

/* ---------- Message temporaire ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--hauteur-menu) + 24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: #243029; color: #fff; padding: 12px 18px; border-radius: 12px; opacity: 0; pointer-events: none;
  transition: all .25s; z-index: 200; max-width: 90%; text-align: center; font-size: .95rem;
}
#toast.visible { opacity: 1; transform: translate(-50%, 0); }
#toast.erreur { background: var(--couleur-danger); }
#toast.ok { background: var(--couleur-principale); }

/* ---------- Options repliables (formulaire produit) ---------- */
details.options { background: #f6f8f7; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
details.options summary { font-weight: 700; color: var(--couleur-principale); cursor: pointer; }
details.options[open] summary { margin-bottom: 8px; }

/* ---------- Logo EvoBuskin ---------- */
#chargement img, .logo-login { border-radius: 22%; }
.logo-login { width: 96px; height: 96px; box-shadow: 0 4px 14px rgba(6,13,31,.35); }

/* ---------- Calendrier de choix de période ---------- */
.cal-tete { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 10px; }
.cal-nav { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #e4e9e6; font-size: 1.6rem; line-height: 1; color: var(--couleur-principale); cursor: pointer; }
.cal-nav[disabled] { opacity: .3; cursor: default; }
.cal-titre { border: 0; background: none; font-size: 1.1rem; font-weight: 800; text-transform: capitalize; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
button.cal-titre:active { background: #e4e9e6; }
div.cal-titre { cursor: default; }
.cal-sem, .cal-grille { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-sem span { text-align: center; font-size: .75rem; font-weight: 700; color: var(--couleur-texte-doux); padding: 4px 0 6px; }
.cal-grille { row-gap: 2px; }
.cal-j { position: relative; height: 48px; padding: 0; border: 0; background: none; cursor: pointer; }
.cal-j span { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 2px auto 0; border-radius: 50%; font-weight: 600; font-size: 1rem; }
.cal-j:active span { background: #e4e9e6; }
.cal-j.auj span { box-shadow: inset 0 0 0 2px var(--couleur-principale); color: var(--couleur-principale); }
.cal-j.mil { background: #dff1e6; }
.cal-j.deb.plage { background: linear-gradient(to right, transparent 50%, #dff1e6 50%); }
.cal-j.fin.plage { background: linear-gradient(to left, transparent 50%, #dff1e6 50%); }
.cal-j.deb span, .cal-j.fin span, .cal-j.seul span { background: var(--couleur-principale); color: #fff; box-shadow: none; }
.cal-j.futur { cursor: default; }
.cal-j.futur span { color: #b4bdb8; }
.cal-j .pt, .pt-l { position: absolute; z-index: 2; bottom: 1px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--couleur-accent); }
.cal-resume { margin: 14px 0 2px; padding: 12px; border-radius: 12px; background: #f0f4f2; text-align: center; min-height: 64px; display: flex; flex-direction: column; justify-content: center; }
.cal-legende { margin-top: 10px; text-align: center; font-size: .8rem; color: var(--couleur-texte-doux); }
.pt-l { position: static; display: inline-block; margin: 0 4px 1px 0; }
.cal-mois-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 4px; }
.cal-mois-grille button { padding: 16px 4px; border: 1.5px solid var(--couleur-bordure); border-radius: 12px; background: #fff; font-weight: 700; text-transform: capitalize; cursor: pointer; }
.cal-mois-grille button.actif { border-color: var(--couleur-principale); background: #e9f6ee; color: var(--couleur-principale); }
.cal-mois-grille button[disabled] { opacity: .35; }

/* ---------- Authentification SaaS ---------- */
.auth-page { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 8px 40px; }
.auth-card { width: 100%; max-width: 480px; background: var(--couleur-carte); border-radius: 22px; padding: 24px; box-shadow: 0 10px 35px rgba(0,0,0,.10); }
.auth-logo { display: block; width: 86px; height: 86px; margin: 0 auto 8px; border-radius: 22px; }
.auth-brand { text-align: center; color: var(--couleur-principale); font-size: 1.15rem; font-weight: 900; margin-bottom: 18px; }
.auth-card h1 { text-align: center; margin: 0 0 6px; font-size: 1.55rem; }
.auth-subtitle { text-align: center; color: var(--couleur-texte-doux); margin-bottom: 20px; line-height: 1.45; }
.champ-auth { display: block; margin-bottom: 14px; }
.champ-auth > span, .role-title { display: block; font-size: .86rem; font-weight: 700; margin-bottom: 6px; }
.champ-auth input { width: 100%; min-height: 48px; padding: 12px 13px; border: 1.5px solid var(--couleur-bordure); border-radius: 11px; background: #fff; }
.champ-auth input:focus { outline: 0; border-color: var(--couleur-principale); box-shadow: 0 0 0 3px rgba(11,122,62,.10); }
.auth-password-wrap { position: relative; }
.auth-password-wrap input { padding-right: 48px; }
.auth-eye { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; }
.auth-submit { margin-top: 8px; }
.auth-link { width: 100%; border: 0; background: transparent; color: var(--couleur-principale); font-weight: 700; padding: 14px 8px; cursor: pointer; }
.auth-separator { display: flex; align-items: center; gap: 10px; color: var(--couleur-texte-doux); font-size: .82rem; margin: 14px 0; }
.auth-separator:before, .auth-separator:after { content: ''; height: 1px; background: var(--couleur-bordure); flex: 1; }
.auth-message { min-height: 0; margin-bottom: 10px; border-radius: 10px; font-size: .9rem; line-height: 1.4; }
.auth-message:not(:empty) { padding: 10px 12px; background: #eef4f0; }
.auth-message.erreur { color: #7a1414; background: #fde4e4 !important; }
.auth-message.succes { color: #075c2e; background: #e1f3e8 !important; }
.account-types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
.account-type { text-align: left; border: 1.5px solid var(--couleur-bordure); border-radius: 13px; background: #fff; padding: 12px; cursor: pointer; min-height: 88px; }
.account-type b, .account-type small { display: block; }
.account-type small { color: var(--couleur-texte-doux); margin-top: 5px; line-height: 1.3; }
.account-type.actif { border: 2px solid var(--couleur-principale); background: #f0f8f3; }
.auth-check { display: flex; align-items: flex-start; gap: 9px; font-size: .83rem; line-height: 1.35; margin: 14px 0; }
.auth-check input { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: var(--couleur-principale); }
.password-meter { height: 6px; background: #e7ece9; border-radius: 99px; margin-top: 8px; overflow: hidden; }
.password-meter i { display: block; height: 100%; width: 0; background: var(--couleur-danger); transition: width .2s, background .2s; }
.password-strength { font-size: .78rem; font-weight: 800; margin-top: 5px; }
.password-strength.faible { color: var(--couleur-danger); }.password-strength.moyen { color: var(--couleur-alerte); }.password-strength.fort, .password-strength.tres-fort { color: var(--couleur-principale); }
.password-rules { list-style: none; padding: 7px 0 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: .76rem; color: var(--couleur-texte-doux); }
.password-rules li.ok { color: var(--couleur-principale); font-weight: 700; }
.password-match { min-height: 20px; font-size: .78rem; margin: -5px 0 8px; }.password-match.ok { color: var(--couleur-principale); }.password-match.bad { color: var(--couleur-danger); }
.auth-security, .auth-security-box { max-width: 480px; text-align: center; color: var(--couleur-texte-doux); font-size: .76rem; line-height: 1.45; margin-top: 12px; }
.auth-security-box { padding: 11px; border-radius: 11px; background: #f3f5f4; max-width: none; }
.auth-footnote { color: var(--couleur-texte-doux); font-size: .74rem; text-align: center; line-height: 1.45; margin: 14px 0 0; }
@media (max-width: 380px) { .account-types, .password-rules { grid-template-columns: 1fr; } .auth-card { padding: 18px; } }

.mfa-qr { display:block; width:min(240px,80vw); height:auto; margin:12px auto; border-radius:12px; background:#fff; padding:10px; border:1px solid var(--couleur-bordure); }
.mfa-secret { display:block; overflow-wrap:anywhere; margin-top:6px; font-size:.85rem; }

/* ---------- Chargeur animé (logo EvoBuskin) ---------- */
.eb-logo { display: block; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.eb-barre { animation: eb-balayage 1.8s cubic-bezier(.45,.05,.55,.95) infinite; }
.eb-iris { animation: eb-iris 1.8s ease-in-out infinite; }
.eb-auvent { transform-box: fill-box; transform-origin: center bottom; animation: eb-auvent 1.8s ease-in-out infinite; }
.eb-auvent.a1 { animation-delay: .00s; }
.eb-auvent.a2 { animation-delay: .22s; }
.eb-auvent.a3 { animation-delay: .44s; }
.eb-auvent.a4 { animation-delay: .66s; }
@keyframes eb-balayage { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translateX(600px); opacity: 0; } }
@keyframes eb-iris { 0%, 100% { transform: translateX(-9px); } 50% { transform: translateX(9px); } }
@keyframes eb-auvent { 0%, 55%, 100% { transform: translateY(0) scale(1); filter: brightness(1); } 18% { transform: translateY(-6px) scale(1.04); filter: brightness(1.35); } }
@media (prefers-reduced-motion: reduce) {
  .eb-barre, .eb-iris, .eb-auvent { animation-duration: 3.6s; }
}
#chargement { gap: 14px; }
#chargeurGlobal { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; }
#chargeurGlobal[hidden] { display: none !important; }
#chargeurGlobal.chargeur-plein { background: rgba(6, 13, 31, .94); color: #fff; }
#chargeurGlobal.chargeur-page { background: rgba(244, 247, 245, .78); color: #0b2a1a; backdrop-filter: blur(2px); }
.chargeur-contenu { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 20px; }
.chargeur-texte { margin: 0; font-weight: 700; font-size: 1rem; }

/* ---------- Phrase de présentation (connexion / inscription) ---------- */
.auth-slogan { text-align: center; margin: 4px 0 14px; color: #36524a; line-height: 1.35; }
.auth-slogan b { display: block; font-size: .98rem; color: #0b5a2e; margin-bottom: 4px; }
.auth-slogan span { display: block; font-size: .82rem; color: #5b6e68; }

/* ---------- Mon abonnement ---------- */
.ab-niveau { font-size: 1.05rem; margin-bottom: 6px; }
.ab-ligne { margin: 10px 0 2px; }
.ab-tete { display: flex; justify-content: space-between; font-size: .88rem; }
.ab-barre { height: 8px; background: #e3ebe6; border-radius: 6px; overflow: hidden; margin-top: 4px; }
.ab-rempli { height: 100%; background: #0b7a3c; border-radius: 6px; }
.ab-rempli.plein { background: #d64545; }
.ab-grille { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 12px 0; }
.ab-plan { position: relative; background: var(--couleur-carte); border: 2px solid #dfe7e2; border-radius: 16px; padding: 16px 14px; }
.ab-plan.vedette { border-color: #0b7a3c; box-shadow: 0 4px 14px rgba(11, 122, 60, .18); }
.ab-plan.courant { background: #f1faf4; }
.ab-plan h3 { margin: 0 0 4px; font-size: 1.15rem; }
.ab-badge { position: absolute; top: -11px; right: 12px; background: #0b7a3c; color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 12px; }
.ab-prix { font-size: 1.7rem; font-weight: 800; }
.ab-prix small { font-size: .85rem; font-weight: 600; opacity: .7; }
.ab-liste { list-style: none; padding: 0; margin: 12px 0; font-size: .9rem; }
.ab-liste li { padding: 3px 0; }
.ab-liste li.ok { color: inherit; }
.ab-liste li.non { opacity: .45; }
.carte.ab-ok { border: 2px solid #0b7a3c; background: #f1faf4; }

/* ---------- Verrouillage, chargement ---------- */
.verrouille { opacity: .55; filter: grayscale(.6); }
.chargement-ecran { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 16px; color: #5b6b62; }
.chargement-ecran .rond { width: 34px; height: 34px; border: 4px solid #dfe7e2; border-top-color: #0b7a3c; border-radius: 50%; animation: evo-tourne .8s linear infinite; }
@keyframes evo-tourne { to { transform: rotate(360deg); } }
.maj-donnees { font-size: .78rem; opacity: .6; text-align: center; margin: 8px 0; }

/* ---------- Aide ---------- */
.aide-tete { display: flex; align-items: center; gap: 12px; }
.aide-tete h2 { margin: 0; }
.aide-recherche { position: sticky; top: 0; z-index: 5; padding: 8px 0; background: var(--couleur-fond); }
.aide-recherche input { width: 100%; padding: 14px 16px; font-size: 1rem; border: 2px solid #cfdad3; border-radius: 14px; box-sizing: border-box; }
.aide-recherche input:focus { outline: none; border-color: #0b7a3c; }
.aide-rapides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.aide-rapide { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; font-size: .82rem; font-weight: 600; background: #f1faf4; border: 1px solid #cfe6d7; border-radius: 12px; cursor: pointer; color: inherit; }
.aide-rapide span { font-size: 1.5rem; }
.aide-parcours { margin: 8px 0 0; padding-left: 0; list-style: none; }
.aide-parcours li { padding: 6px 0; border-bottom: 1px solid #edf1ee; }
.aide-lien { color: #0b7a3c; text-decoration: none; font-weight: 600; }
.aide-sommaire { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.aide-chip { padding: 8px 12px; background: #fff; border: 1px solid #cfdad3; border-radius: 20px; font-size: .85rem; text-decoration: none; color: inherit; }
.aide-section { margin: 22px 0; scroll-margin-top: 70px; }
.aide-section h3 { margin: 0 0 2px; font-size: 1.2rem; }
.aide-sujet { background: var(--couleur-carte); border: 1px solid #dfe7e2; border-radius: 14px; margin: 8px 0; overflow: hidden; }
.aide-sujet summary { padding: 14px 16px; font-weight: 700; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.aide-sujet summary::-webkit-details-marker { display: none; }
.aide-sujet summary::after { content: '▾'; margin-left: auto; opacity: .5; transition: transform .2s; }
.aide-sujet[open] summary::after { transform: rotate(180deg); }
.aide-sujet[open] summary { border-bottom: 1px solid #edf1ee; background: #f6fbf8; }
.aide-corps { padding: 12px 16px 16px; line-height: 1.55; font-size: .95rem; }
.aide-intro { margin-top: 0; }
.aide-tag { font-size: .68rem; font-weight: 700; background: #e3ebe6; color: #3b4a42; padding: 2px 8px; border-radius: 10px; }
.aide-etapes { counter-reset: e; list-style: none; padding: 0; margin: 10px 0; }
.aide-etapes li { counter-increment: e; position: relative; padding: 4px 0 12px 42px; }
.aide-etapes li::before { content: counter(e); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: #0b7a3c; color: #fff; font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.aide-etapes li:not(:last-child)::after { content: ''; position: absolute; left: 13px; top: 34px; bottom: 2px; width: 2px; background: #dbe9e0; }
.aide-clic { display: inline-block; padding: 1px 9px; background: #0b7a3c; color: #fff; border-radius: 8px; font-weight: 600; font-size: .88em; white-space: nowrap; }
.aide-champ { display: inline-block; padding: 1px 8px; background: #eef1ef; border: 1px solid #cfdad3; border-radius: 6px; font-weight: 600; font-size: .88em; }
.aide-note { margin: 10px 0; padding: 10px 12px; border-radius: 10px; font-size: .9rem; }
.aide-note.ok { background: #eaf7ee; border-left: 4px solid #0b7a3c; }
.aide-note.astuce { background: #eef5ff; border-left: 4px solid #3a7bd5; }
.aide-note.attention { background: #fff4e5; border-left: 4px solid #e08a00; }
.aide-voir { margin-top: 8px; font-size: .88rem; }
.aide-tab-wrap { overflow-x: auto; margin: 10px 0; }
.aide-tab { border-collapse: collapse; width: 100%; font-size: .85rem; }
.aide-tab th, .aide-tab td { border: 1px solid #dfe7e2; padding: 6px 8px; text-align: center; }
.aide-tab thead th { background: #0b7a3c; color: #fff; }
.aide-tab tbody th { text-align: left; background: #f6fbf8; font-weight: 600; }
.aide-gloss dt { font-weight: 700; margin-top: 10px; }
.aide-gloss dd { margin: 2px 0 0; opacity: .85; }
.aide-res-sec { font-size: .8rem; font-weight: 700; opacity: .6; margin-top: 12px; }
.aide-flash { animation: evo-flash 1.8s ease; }
@keyframes evo-flash { 0%, 60% { box-shadow: 0 0 0 3px #0b7a3c; } 100% { box-shadow: 0 0 0 0 transparent; } }

.ico-svg { vertical-align: middle; flex: none; }
.aide-ico { display: inline-flex; vertical-align: middle; color: #0b7a3c; margin-right: 4px; }
.aide-rapide span { display: inline-flex; color: #0b7a3c; }
.aide-chip { display: inline-flex; align-items: center; gap: 6px; }
.aide-chip svg { color: #0b7a3c; }
.aide-note { display: flex; gap: 10px; align-items: flex-start; }
.aide-note-ico { display: inline-flex; margin-top: 1px; }
.aide-note.ok .aide-note-ico { color: #0b7a3c; } .aide-note.astuce .aide-note-ico { color: #3a7bd5; } .aide-note.attention .aide-note-ico { color: #e08a00; }
.aide-images { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0; }
.aide-images figure { margin: 0; flex: 1 1 220px; max-width: 320px; }
.aide-images img { width: 100%; height: auto; border: 1px solid #dfe7e2; border-radius: 12px; display: block; }
.aide-images figcaption { font-size: .82rem; color: var(--couleur-texte-doux); margin-top: 6px; }
.aide-case { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; margin: 6px 0 12px; }
.aide-wa { display: flex; align-items: center; justify-content: center; gap: 8px; }
.aide-support textarea { width: 100%; box-sizing: border-box; }
.aide-tete .btn { width: auto; padding: 8px 14px; min-height: 0; }

/* Annonces de l'équipe : bandeau fin, discret, fermable */
#annonces { display: flex; flex-direction: column; gap: 6px; padding: 0 12px; }
#annonces:empty { display: none; }
.annonce { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; margin-top: 8px; border-radius: 10px; border: 1px solid #c9d8f3; background: #eaf2ff; color: #17325c; font-size: .88rem; line-height: 1.35; }
.annonce-success { background: #e6f5ec; border-color: #b8dfc7; color: #12482b; }
.annonce-warning { background: #fff4de; border-color: #f0d7a0; color: #5e3b00; }
.annonce-important { background: #fdeaea; border-color: #f0b9b9; color: #6b1414; }
.annonce-ico { flex: none; margin-top: 1px; }
.annonce-txt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.annonce-txt a { color: inherit; font-weight: 700; text-decoration: underline; }
.annonce-x { flex: none; background: none; border: 0; color: inherit; font-size: 1.4rem; line-height: 1; padding: 0 6px; min-width: 32px; min-height: 32px; cursor: pointer; opacity: .7; }

/* ---------- Visites guidées (projecteur + main + fenêtre d'explication) ---------- */
.visite { position: fixed; inset: 0; z-index: 1000; }
.visite-fond { position: absolute; inset: 0; background: transparent; }
.visite-voile { position: absolute; inset: 0; background: rgba(40, 44, 52, .55); }
.visite-trou { position: fixed; border-radius: 14px; box-shadow: 0 0 0 100vmax rgba(40, 44, 52, .55); outline: 3px solid var(--couleur-accent); pointer-events: none; animation: visite-pouls 1.4s ease-in-out infinite; transition: left .2s, top .2s, width .2s, height .2s; }
.visite-trou[hidden], .visite-main[hidden], .visite-voile[hidden] { display: none; }
@keyframes visite-pouls { 0%, 100% { outline-offset: 0; } 50% { outline-offset: 5px; } }
.visite-main { position: fixed; font-size: 2.2rem; line-height: 1; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); animation: visite-tap 1s ease-in-out infinite; }
.visite-main.dessus { animation-name: visite-tap-haut; }
@keyframes visite-tap { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes visite-tap-haut { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.visite-carte { position: fixed; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow-y: auto; background: #fff; border-radius: 26px 26px 0 0; padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(0,0,0,.35); max-width: 560px; margin: 0 auto; }
.visite-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.visite-rond { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #eef0f6; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem; color: #1b2b24; border: 2px solid #1b2b24; box-sizing: border-box; }
.visite-tetetxt { flex: 1; min-width: 0; }
.visite-sujet { font-size: 1.1rem; font-weight: 600; line-height: 1.2; }
.visite-compteur { font-size: .85rem; color: var(--couleur-texte-doux); margin-top: 2px; }
.visite-x { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #eef0f6; font-size: 1.7rem; line-height: 1; color: #1b2b24; cursor: pointer; }
.visite-apercu { position: relative; background: #e8f4ec; border-radius: 22px; padding: 14px 14px 26px; margin-bottom: 14px; overflow: hidden; display: flex; justify-content: center; }
.visite-apercu.vide { padding: 22px; }
.visite-grandicone { font-size: 3.4rem; line-height: 1; }
.visite-copie { position: relative; overflow: hidden; pointer-events: none; text-align: left; max-width: 100%; }
.visite-copie > * { position: static !important; }
.visite-main-apercu { position: absolute; bottom: 0; left: 50%; font-size: 2.2rem; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); animation: visite-tap 1s ease-in-out infinite; }
.visite-carte h3 { margin: 0 0 8px; font-size: 1.3rem; text-align: center; color: #111; }
.visite-carte p { margin: 0 0 14px; line-height: 1.5; font-size: 1.02rem; text-align: center; color: #555; }
.visite-points { display: flex; justify-content: center; gap: 6px; margin: 0 0 16px; }
.visite-points i { height: 9px; width: 9px; border-radius: 5px; background: #d5d8de; transition: width .2s; }
.visite-points i.fait { background: #8fb9a0; }
.visite-points i.on { background: var(--couleur-principale); width: 30px; }
.visite-actions { display: flex; gap: 10px; align-items: center; }
.visite-actions .btn { width: auto; margin: 0; padding-left: 10px; padding-right: 10px; border-radius: 26px; min-height: 52px; font-weight: 700; }
.visite-actions .btn:last-child { flex: 1; min-width: 0; }
.visite-actions .btn.contour { flex: none; }
.visite-passer { flex: none; background: transparent; border: 0; color: #666; font-weight: 700; font-size: 1.05rem; padding: 12px 14px; cursor: pointer; }
.visite-aide { display: block; margin: 10px auto 0; }
body.visite-active #vue { padding-bottom: 75vh; }
body.visite-active .fenetre-corps { padding-bottom: 70vh; }

/* ---------- Présentation (3 pages) et page d'accueil ---------- */
.onboarding { position: fixed; inset: 0; z-index: 90; background: radial-gradient(120% 70% at 50% 0%, #0f6b3a 0%, #0a3d28 38%, #060d1f 75%); color: #fff; display: flex; flex-direction: column; }
.ob-haut { display: flex; justify-content: flex-end; padding: 14px 16px 0; }
.ob-haut button { background: rgba(255,255,255,.1); border: 0; color: #e6f2ea; font-size: .95rem; padding: 9px 16px; border-radius: 20px; cursor: pointer; }
.ob-piste { flex: 1; display: flex; overflow: hidden; min-height: 0; }
.ob-glisse { display: flex; width: 100%; transition: transform .3s ease; }
.ob-page { flex: 0 0 100%; overflow-y: auto; display: flex; padding: 0 20px; }
.ob-contenu { margin: auto; width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 8px 0; }
/* illustration détourée : posée directement sur le fond de la page */
.ob-illus { width: 112%; margin: -6px -6% -4px; } .ob-illus img { display: block; width: 100%; height: auto; max-height: 26vh; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,.28)); }
.ob-merite { width: 100%; text-align: center; padding: 12px 14px; border-radius: 18px; background: rgba(47,191,116,.16); border: 1.5px solid #2fbf74; color: #d9efe3; font-size: .92rem; } .ob-merite b { display: block; color: #fff; font-size: 1.02rem; }
.ob-carte b { display: block; }
.ob-halo { width: 104px; height: 104px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #2fbf74, #0b5a30); display: flex; align-items: center; justify-content: center; font-size: 3.4rem; box-shadow: 0 0 0 10px rgba(47,191,116,.15), 0 0 0 22px rgba(47,191,116,.07), 0 14px 40px rgba(11,122,62,.5); margin-bottom: 8px; }
.ob-aveugle { background: radial-gradient(circle at 30% 25%, #ffb347, #c4690a); box-shadow: 0 0 0 10px rgba(255,179,71,.15), 0 0 0 22px rgba(255,179,71,.07), 0 14px 40px rgba(196,105,10,.45); }
.ob-page h2 { margin: 0; font-size: 1.5rem; line-height: 1.28; text-align: center; font-weight: 800; }
.ob-page h2 .o { color: #ffa63d; }
.ob-sous { margin: 0; color: #cfe3d8; text-align: center; font-size: 1.02rem; }
.ob-grille, .ob-liste, .ob-etapes { list-style: none; margin: 4px 0 0; padding: 0; width: 100%; display: grid; gap: 10px; }
.ob-grille { grid-template-columns: 1fr 1fr; }
.ob-cadre { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 18px; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.22); box-shadow: 0 6px 18px rgba(0,0,0,.25); backdrop-filter: blur(4px); line-height: 1.3; font-size: .98rem; color: #e8f0f6; }
.ob-grille .ob-cadre { flex-direction: column; text-align: center; padding: 16px 10px; gap: 8px; }
.ob-cadre b { display: block; color: #fff; font-size: 1.02rem; margin-bottom: 1px; }
.ob-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.ob-grille .ob-ico { width: 54px; height: 54px; font-size: 1.9rem; border-radius: 16px; }
.ob-cadre.v { border-color: #3fd18a; } .ob-cadre.v .ob-ico { background: rgba(63,209,138,.25); }
.ob-cadre.o { border-color: #ffa63d; } .ob-cadre.o .ob-ico { background: rgba(255,166,61,.25); }
.ob-cadre.b { border-color: #5aa9ff; } .ob-cadre.b .ob-ico { background: rgba(90,169,255,.25); }
.ob-num { flex: none; width: 42px; height: 42px; border-radius: 50%; background: #ffa63d; color: #2b1800; font-weight: 800; font-size: 1.25rem; display: flex; align-items: center; justify-content: center; }
.ob-num.v { background: #3fd18a; color: #04301a; }
.ob-puce { margin-top: 4px; padding: 8px 16px; border-radius: 20px; background: rgba(255,255,255,.1); font-size: .95rem; color: #e6f2ea; }
.ob-points { display: flex; gap: 8px; }
.ob-points i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.28); transition: all .2s; }
.ob-points i.on { background: #ffa63d; width: 28px; border-radius: 6px; }
.ob-bas { padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ob-bas .btn { width: 100%; max-width: 380px; margin: 0; }

/* ---------- Photo de profil (en-tête) ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); background: #ffffff22; color: #fff; font-weight: 800; font-size: 1rem; padding: 0; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-grand { width: 112px; height: 112px; font-size: 2.6rem; margin: 4px auto 10px; border: 3px solid var(--couleur-principale); background: #e6f3ec; color: var(--couleur-principale); cursor: default; display: flex; }
.profil-nom { text-align: center; font-weight: 800; font-size: 1.15rem; }
.profil-info { text-align: center; color: var(--couleur-texte-doux); margin-bottom: 12px; font-size: .95rem; }
.profil-actions { display: grid; gap: 8px; }
@media (max-height: 880px) {
  .ob-illus img { max-height: 22vh; }
  .ob-contenu { gap: 12px; }
  .ob-merite { padding: 9px 12px; font-size: .88rem; }
  .ob-grille .ob-cadre { padding: 11px 8px; gap: 6px; }
  .ob-grille .ob-ico { width: 44px; height: 44px; font-size: 1.6rem; }
  .ob-cadre { padding: 11px 14px; }
}
@media (max-height: 820px) {
  .ob-illus img { max-height: 28vh; }
  .ob-contenu { gap: 8px; }
  .ob-page h2 { font-size: 1.2rem; }
  .ob-sous { font-size: .9rem; }
  .ob-grille, .ob-liste, .ob-etapes { gap: 6px; margin-top: 0; }
  .ob-cadre { padding: 8px 12px; font-size: .88rem; }
  .ob-grille .ob-cadre { padding: 8px 6px; gap: 3px; }
  .ob-grille .ob-ico, .ob-ico { width: 36px; height: 36px; font-size: 1.25rem; }
  .ob-num { width: 32px; height: 32px; font-size: 1rem; }
  .ob-cadre b { font-size: .93rem; }
  .ob-merite { padding: 7px 10px; font-size: .8rem; } .ob-merite b { font-size: .92rem; }
}
@media (max-height: 720px) {
  .ob-illus img { max-height: 21vh; }
}
@media (max-height: 680px) {
  .ob-illus img { max-height: 17vh; }
  .ob-merite { display: none; }
  .ob-sous { display: none; }
  .ob-haut { padding-top: 8px; }
}

/* Connexion par numéro */
.champ-tel { display: flex; align-items: center; border: 1.5px solid var(--couleur-bordure, #cfd8d2); border-radius: 12px; background: #fff; overflow: hidden; }
.champ-tel b { padding: 0 12px; align-self: stretch; display: flex; align-items: center; background: #eef3ef; color: #1b2b24; border-right: 1.5px solid var(--couleur-bordure, #cfd8d2); }
.champ-tel input { border: 0; flex: 1; min-width: 0; font-size: 1.1rem; letter-spacing: .5px; }
.champ-tel:focus-within { border-color: var(--couleur-principale); box-shadow: 0 0 0 3px rgba(11,122,62,.15); }
.champ-code { font-size: 1.35rem; letter-spacing: .35em; font-weight: 700; text-transform: uppercase; }
.champ-code::placeholder { letter-spacing: normal; font-size: .95rem; font-weight: 400; text-transform: none; }
.etapes-auth { display: flex; gap: 8px; justify-content: center; margin: 0 0 12px; }
.etapes-auth i { height: 6px; width: 46px; border-radius: 4px; background: #d5d8de; }
.etapes-auth i.on { background: var(--couleur-principale); }
.accueil-actions { display: grid; gap: 12px; margin: 18px 0 6px; }
.ob-icone-auth { font-size: 3rem; text-align: center; margin-bottom: 4px; }
@media (max-height: 600px) { .ob-illus img { max-height: 13vh; } .ob-puce { display: none; } }

/* ===== Aide guidée : habillage soigné (v2.9) ===== */
.visite-carte { background: linear-gradient(180deg, #ffffff 0%, #f4faf6 100%); border-radius: 30px 30px 0 0; padding-top: 22px; box-shadow: 0 -14px 40px rgba(6,20,14,.45), 0 -2px 0 rgba(255,255,255,.6) inset; }
.visite-carte::before { content: ''; position: absolute; top: 8px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: #cfd9d3; }
.visite-rond { background: linear-gradient(145deg, #19a35a, #0b6b3a); border: 0; color: #fff; box-shadow: 0 6px 14px rgba(11,122,62,.4); width: 42px; height: 42px; }
.visite-sujet { font-weight: 800; color: #10261b; letter-spacing: -.2px; }
.visite-compteur { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 12px; background: #e3f3ea; color: #0b6b3a; font-weight: 700; font-size: .78rem; }
.visite-x { background: #edf1ee; color: #31423a; transition: transform .15s, background .15s; } .visite-x:active { transform: scale(.92); background: #dfe7e2; }
.visite-apercu { background: radial-gradient(120% 140% at 50% 0%, #f3fbf6 0%, #dff2e6 60%, #cfe9da 100%); border: 1.5px solid #c2e0cf; box-shadow: inset 0 2px 10px rgba(11,122,62,.08); border-radius: 24px; padding: 16px 16px 30px; }
.visite-copie > * { box-shadow: 0 8px 20px rgba(10,50,30,.18); border-radius: 14px; }
.visite-main-apercu { font-size: 2.6rem; bottom: -2px; filter: drop-shadow(0 4px 5px rgba(0,0,0,.35)); }
.visite-main-apercu::before { content: ''; position: absolute; left: 50%; top: -8px; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: rgba(11,122,62,.18); z-index: -1; animation: visite-onde 1.4s ease-out infinite; }
@keyframes visite-onde { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
.visite-carte h3 { font-size: 1.32rem; font-weight: 800; color: #10261b; }
.visite-carte p { color: #53635a; }
.visite-points i { background: #d3dcd6; } .visite-points i.fait { background: #7fc9a0; }
.visite-points i.on { background: linear-gradient(90deg, #19a35a, #0b7a3e); width: 32px; }
.visite-actions .btn:last-child { background: linear-gradient(180deg, #14a05a, #0b7a3e); box-shadow: 0 8px 18px rgba(11,122,62,.38); border: 0; color: #fff; font-size: 1.05rem; }
.visite-actions .btn.contour { background: #fff; border: 1.5px solid #bcd9c8; color: #0b6b3a; }
.visite-passer { color: #6b7a72; }
.visite-trou { box-shadow: 0 0 0 100vmax rgba(40,44,52,.55); animation: visite-lueur 1.6s ease-in-out infinite; }
@keyframes visite-lueur { 0%,100% { outline: 3px solid rgba(255,255,255,.95); outline-offset: 0; } 50% { outline: 3px solid rgba(255,255,255,.35); outline-offset: 4px; } }
