/* Le carnet du client et la page Comptoir (9/10/2026) : la même allure que les pages d'essai du 4/10, pensées
   pour un iPhone tenu d'une main. Couleurs de la façade : rouge #A23730, fond crème. */
:root {
  --rouge: #A23730; --rouge-fonce: #862C26; --rose: #FBF1EF; --rose-filet: #EBCFCA;
  --fond: #FAF8F4; --carte: #fff; --encre: #2B2D30; --doux: #6B6E72; --filet: #E6E1D8;
  --vert: #2F6B45; --ambre: #9A6B12;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--encre);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
header.bandeau {
  background: var(--rouge); color: #fff; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
header.bandeau img { height: 30px; display: block; }
header.bandeau b { font-size: 17px; letter-spacing: .01em; }
header.bandeau .qui { font-size: 13px; text-align: right; line-height: 1.3; }
header.bandeau button { background: none; border: 1px solid rgba(255,255,255,.6); color: #fff; border-radius: 99px;
  font: inherit; font-size: 12px; padding: 2px 10px; margin-top: 3px; cursor: pointer; }
.ferme { background: #FFF6E5; color: #6B4A0C; border-bottom: 1px solid #F0DDB2; font-size: 14px; padding: 8px 16px;
  text-align: center; }
main { max-width: 560px; margin: 0 auto; padding: 16px; display: grid; gap: 14px; }
.carte { background: var(--carte); border: 1px solid var(--filet); border-radius: 14px; padding: 18px 16px; min-width: 0; }
h1 { font-size: 23px; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 17px; margin: 0 0 10px; }
h3 { font-size: 15px; margin: 16px 0 6px; }
p { margin: 0 0 10px; }
.doux { color: var(--doux); font-size: 15px; }
.petit { color: var(--doux); font-size: 13px; }
a { color: var(--rouge); }

.btn {
  display: flex; align-items: center; justify-content: center; text-align: center; width: 100%;
  min-height: 52px; padding: 10px 16px; border-radius: 12px; font: inherit; font-weight: 600;
  border: 1px solid var(--filet); background: var(--fond); color: var(--encre); cursor: pointer;
  -webkit-tap-highlight-color: transparent; text-decoration: none;
}
.btn-rouge { background: var(--rouge); color: #fff; border-color: var(--rouge); font-size: 17px; min-height: 58px; }
.btn-rouge:active { background: var(--rouge-fonce); }
.btn.actif { border-color: var(--rouge); background: var(--rose); color: var(--rouge); }
.btn:disabled { opacity: .45; }
.ligne-btn, .choix { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.ligne-btn .btn, .choix .btn { min-height: 48px; font-size: 15px; }
.trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.trois .btn { min-height: 64px; font-size: 14px; font-weight: 600; padding: 6px; }
.lien-discret { background: none; border: 0; color: var(--rouge); font: inherit; font-size: 14px; padding: 6px 0;
  text-decoration: underline; cursor: pointer; }

label.champ { display: block; font-weight: 600; margin: 10px 0 6px; font-size: 15px; }
label.champ small { font-weight: 400; color: var(--doux); }
input.texte, select.texte {
  width: 100%; min-width: 0; min-height: 50px; border: 1px solid var(--filet); border-radius: 12px; padding: 10px 14px;
  font: inherit; font-size: 18px; background: var(--fond); color: var(--encre);
}
input.texte[type=date], input.texte[type=month] { -webkit-appearance: none; appearance: none; display: block; }
input.code { letter-spacing: .3em; font-size: 24px; text-align: center; }
input.tel { font-size: 20px; letter-spacing: .03em; }
.numero-lu { min-height: 1.4em; margin: 6px 0 10px; font-size: 15px; color: var(--doux); }
.numero-lu b { color: var(--encre); font-size: 20px; letter-spacing: .04em; }
.ligne-date { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-top: 8px; }
.ligne-date .btn { width: auto; padding: 0 18px; min-height: 50px; }

.ok { color: var(--vert); font-weight: 600; }
.message { margin: 10px 0 0; font-size: 15px; color: var(--encre); }
.message.reussi { color: var(--vert); font-weight: 600; }
.message.erreur { color: var(--rouge); }
.alerte { color: var(--rouge); font-size: 15px; margin: 8px 0 0; }

.ligne { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--filet); padding: 8px 0;
  font-size: 15px; }
.ligne span:last-child { text-align: right; font-weight: 600; }
.ligne small { display: block; color: var(--doux); font-size: 13px; font-weight: 400; }
ul.soins { margin: 6px 0 0 18px; padding: 0; font-size: 15px; }

/* le carnet du client */
.paire-carte { border-top: 1px solid var(--filet); padding-top: 12px; margin-top: 12px; }
.paire-carte:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.paire-carte img { width: 100%; max-height: 220px; object-fit: contain; display: block; margin: 0 0 10px; background: #fff; }
.paire-carte b { font-size: 19px; display: block; }
.cadeau { background: var(--rose); border-color: var(--rose-filet); }
.cadeau .montant { font-size: 24px; font-weight: 700; color: var(--rouge); line-height: 1.2; margin: 4px 0 8px; }
.cadeau .code-cadeau { font: 600 22px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em;
  text-align: center; background: #fff; border: 1px dashed var(--rose-filet); border-radius: 10px; padding: 10px; margin: 10px 0; }
.cadeau .qr svg { width: min(200px, 70%); height: auto; display: block; margin: 0 auto 8px; background: #fff; }
.cadeau.servi { opacity: .7; }
.accord { display: flex; gap: 12px; align-items: flex-start; border-top: 1px solid var(--filet); padding: 12px 0;
  font-size: 15px; cursor: pointer; }
.accord input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--rouge); }
.accord small { display: block; color: var(--doux); }
.accord-fort { background: var(--fond); border: 1px solid var(--filet); border-radius: 12px; padding: 12px; margin: 12px 0 0; }
.bulle { background: var(--rose); border: 1px solid var(--rose-filet); border-radius: 12px; padding: 12px 14px; margin: 4px 0 10px; }
.bulle b { color: var(--rouge); }
.case-enfant { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--doux); margin: 10px 0 2px; }
.case-enfant input { width: 20px; height: 20px; accent-color: var(--rouge); flex: none; }
/* le premier passage, en étapes : une seule chose à l'écran, un gros bouton, une sortie discrète */
.scenario { border-color: var(--rouge); }
.scenario .pas { font-size: 13px; font-weight: 600; color: var(--rouge); letter-spacing: .04em; text-transform: uppercase;
  margin: 0 0 6px; }
.scenario h2 { font-size: 21px; margin: 0 0 8px; }
.scenario .btn-rouge { margin-top: 14px; }
.scenario #sc-rappels .accord:first-of-type { border-top: 0; }
.scenario .lien-discret { display: block; margin: 10px auto 0; padding: 8px 12px; min-height: 44px; }
.scenario #sc-suite { margin: 14px 0 0; text-align: center; }
details.donnees summary { cursor: pointer; font-weight: 600; color: var(--rouge); margin: 6px 0; }
details.donnees p, details.donnees li { font-size: 14px; color: var(--encre); }
details.donnees ul { padding-left: 18px; margin: 0 0 10px; }

/* le comptoir */
.cache { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.apercu { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
.apercu img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--fond); flex: none; }
.etat-lecture { margin: 0; font-weight: 600; }
.etat-lecture small { display: block; font-weight: 400; color: var(--doux); }
.tourne { width: 18px; height: 18px; border: 3px solid var(--filet); border-top-color: var(--rouge); border-radius: 50%;
  display: inline-block; vertical-align: -3px; margin-right: 8px; animation: t .8s linear infinite; }
@keyframes t { to { transform: rotate(360deg); } }
.lu-ia { margin-top: 12px; background: var(--fond); border-radius: 10px; padding: 8px 12px; font-size: 14px;
  overflow-wrap: anywhere; }
.lu-ia p { margin: 2px 0; }
.paires { display: grid; gap: 10px; margin-top: 14px; }
.paire { display: flex; gap: 12px; align-items: center; border: 1px solid var(--filet); border-radius: 12px; padding: 10px;
  background: #fff; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.paire img { width: 96px; height: 72px; object-fit: contain; background: #fff; flex: none; }
.paire .vide { width: 96px; height: 72px; background: var(--fond); border-radius: 8px; flex: none; }
.paire b { display: block; line-height: 1.25; }
.paire span { display: block; color: var(--doux); font-size: 14px; }
.paire.choisie { outline: 2px solid var(--rouge); outline-offset: 1px; }
.statut { display: inline-block !important; font-size: 12px !important; font-weight: 600; border-radius: 99px;
  padding: 1px 9px; margin-top: 4px; color: #fff !important; background: var(--vert); }
.statut.vendu { background: var(--ambre); }
.statut.retire, .statut.brouillon { background: var(--doux); }
.avertissement { background: #FFF6E5; border: 1px solid #F0DDB2; color: #6B4A0C; border-radius: 10px; padding: 8px 12px;
  font-size: 14px; margin: 10px 0 0; }
.sous-bloc { margin-top: 16px; border-top: 1px solid var(--filet); padding-top: 14px; }
.qr { margin: 14px 0 4px; text-align: center; }
.qr svg { width: min(280px, 100%); height: auto; display: block; margin: 0 auto 8px; background: #fff; }
.qr > p { margin: 0; color: var(--doux); font-size: 15px; }
.suivi { text-align: left; margin-top: 16px; border-top: 1px solid var(--filet); padding-top: 14px; }
.suivi-etat { display: flex; gap: 10px; align-items: baseline; font-weight: 600; margin: 0 0 8px; }
.pastille { width: 10px; height: 10px; border-radius: 50%; background: var(--doux); flex: none; }
.pastille.ambre { background: var(--ambre); }
.pastille.verte { background: var(--vert); }
.suivi label { font-size: 14px; font-weight: 600; display: block; margin: 10px 0 4px; }
.suivi input.texte { font-size: 17px; min-height: 48px; }
.suivi .btn { min-height: 48px; margin-top: 10px; font-size: 15px; }
.suivi .ligne-btn .btn, .suivi .ligne-date .btn { margin-top: 0; }
.s-p-etat { font-weight: 600; }
.s-p-etat.en-attente { color: var(--ambre); }
.s-p-etat.faite { color: var(--vert); }
.compteurs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.compteurs .btn { min-height: 64px; font-size: 14px; flex-direction: column; gap: 2px; }
.compteurs .btn small { font-weight: 400; color: var(--doux); font-size: 12px; }
footer { max-width: 560px; margin: 0 auto; padding: 4px 16px 28px; color: var(--doux); font-size: 13px; }

/* Une seule connexion (10/10/2026) : le bouton de la connexion Google, sur la page de connexion du comptoir */
.btn-google { gap: 10px; background: #fff; color: #1F1F1F; border-color: #747775; min-height: 58px; font-size: 17px; }
.btn-google svg { flex: none; }
