/* Scantio — thème de l'appli (04/11/2026).
   Même identité que la vitrine (bleu électrique → violet, touches cyan,
   lueurs douces), mais en CLAIR : fond lumineux, texte foncé bien contrasté,
   gros boutons. Chargé après app.css et mobile.css, ne change aucune page. */

:root {
  --ink: #0f172a;
  --ink-70: rgba(15, 23, 42, 0.86);
  --ink-45: #55617a;           /* texte secondaire : plus foncé qu'avant, lisible au soleil */
  --ink-20: rgba(15, 23, 42, 0.16);
  --ink-10: rgba(15, 23, 42, 0.08);
  --paper: #f3f6fc;
  --paper-deep: #e4eaf6;
  --surface: #ffffff;
  --accent: #3b63f0;
  --accent-deep: #2948c9;
  --accent-bright: #5b7cff;
  --accent-soft: #e8edff;
  --cyan: #06b6d4;
  --violet: #7c5cff;
  --degrade: linear-gradient(135deg, #2f6bff 0%, #6d4dff 100%);
  --degrade-ligne: linear-gradient(90deg, #22d3ee, #4d7dff 45%, #a78bfa);
  --ombre-carte: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px -14px rgba(47, 91, 255, .28);
  --ombre-lueur: 0 12px 32px -10px rgba(77, 125, 255, .55);
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Fond : clair, avec un halo bleu-violet très léger en haut et une grille fine */
body {
  background:
    radial-gradient(900px 380px at 15% -120px, rgba(77, 125, 255, .16), transparent 70%),
    radial-gradient(700px 320px at 95% -80px, rgba(124, 92, 255, .12), transparent 70%),
    var(--paper);
  background-attachment: fixed;
  color: var(--ink);
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto 0; height: 340px; pointer-events: none; z-index: -1;
  background-image: linear-gradient(rgba(59, 99, 240, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(59, 99, 240, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent);
}

/* En-tête : bleu nuit de la marque + ligne lumineuse */
.app-header {
  background: linear-gradient(120deg, #0a1122 0%, #121c3a 55%, #1d2f6b 120%);
  border-bottom: 0;
  position: relative;
  box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .6);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.app-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--degrade-ligne); background-size: 200% 100%;
  animation: sc-flux 6s linear infinite; box-shadow: 0 0 12px rgba(77, 125, 255, .7);
}
@keyframes sc-flux { to { background-position: -200% 0; } }
.icon-btn--accent { background: var(--degrade); border: 0; color: #fff; box-shadow: 0 6px 18px -6px rgba(77, 125, 255, .8); }

/* Titres */
.salut { font-size: 27px; font-weight: 800; letter-spacing: -.6px; color: var(--ink); }
.rubrique { color: #5b6784; letter-spacing: .08em; }
h1 { font-weight: 800; letter-spacing: -.02em; }

/* Cartes : blanches, arrondies, ombre bleutée, petite lueur au toucher */
.tuile, .chiffres, .liste, .panel, .receipt-card, .envoi-card {
  background: var(--surface);
  border: 1px solid rgba(59, 99, 240, .10);
  border-radius: 20px;
  box-shadow: var(--ombre-carte);
}
.tuile { padding: 15px 16px; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.tuile:hover, a.tuile:active { border-color: rgba(59, 99, 240, .35); box-shadow: var(--ombre-lueur); }
.tuile__titre { font-size: 15.5px; font-weight: 700; }
.tuile__sous, .ticket__sous, .chiffres__petit { color: var(--ink-45); }
.tuile__fin, .link-action { color: var(--accent); font-weight: 700; }
.tuile__num { border-radius: 12px; width: 40px; height: 40px; }
.tuile__num--ok { background: #dcf7ec; color: #0f7a55; }
.tuile__num--warn { background: #fff2d6; color: #8a4b05; }
.tuile__num--err { background: #fde6e4; color: #b42318; }

/* Chiffres du mois : total en dégradé, jauge lumineuse */
.chiffres { padding: 18px; position: relative; overflow: hidden; }
.chiffres::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--degrade-ligne); }
.chiffres__gros { font-size: 32px; font-weight: 800; letter-spacing: -1px;
  background: linear-gradient(100deg, #0f172a 30%, #2f5bff 75%, #6d4dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chiffres__moyen { font-weight: 800; }
.jauge { height: 10px; background: #e6ebf7; border-radius: 99px; }
.jauge > div { background: var(--degrade-ligne); border-radius: 99px; box-shadow: 0 0 10px rgba(77, 125, 255, .6); }
.jauge--pleine > div { background: linear-gradient(90deg, #f97316, #dc2626); box-shadow: none; }

/* Gros bouton photo : rond en dégradé, anneau lumineux qui tourne */
.photo-geante { margin: 22px 0 8px; }
.photo-geante__rond {
  position: relative; width: 124px; height: 124px; background: var(--degrade);
  box-shadow: 0 16px 40px -10px rgba(77, 125, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .15s;
}
.photo-geante__rond::before {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; z-index: -1;
  background: conic-gradient(from var(--sc-a, 0deg), #22d3ee, #4d7dff, #a78bfa, #22d3ee);
  filter: blur(8px); opacity: .7; animation: sc-tourne 5s linear infinite;
}
@property --sc-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes sc-tourne { to { --sc-a: 360deg; } }
.photo-geante:active .photo-geante__rond { transform: scale(.96); }
.photo-geante__rond > span { width: 96px; height: 96px; border: 3px solid rgba(255, 255, 255, .9); }
.photo-geante__texte { font-size: 17px; font-weight: 800; }
.lien-fichier { color: var(--ink-45); }
.lien-fichier label { color: var(--accent); font-weight: 600; }

/* Boutons */
.btn { border-radius: 14px; font-weight: 700; font-family: var(--font-body); }
.btn-primary, .btn-large {
  background: var(--degrade); color: #fff; border: 0;
  box-shadow: 0 10px 24px -10px rgba(77, 125, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover:not(:disabled), .btn-large:hover { background: linear-gradient(135deg, #2a5ff0, #5e3ff0); }
.btn-large { border-radius: 16px; padding: 16px; font-size: 16px; }
.btn-secondaire { border: 1.5px solid rgba(59, 99, 240, .25); border-radius: 16px; color: var(--accent-deep); font-weight: 700; padding: 13px; }
.btn-secondaire:hover { background: var(--accent-soft); }
.btn-ghost { border-radius: 14px; }

/* Filtres en pastilles */
.pastilles a { border-radius: 99px; padding: 8px 14px; font-size: 13.5px; border-color: rgba(59, 99, 240, .15); color: #3a4560; }
.pastilles a.actif { background: var(--degrade); border-color: transparent; color: #fff; box-shadow: 0 6px 16px -6px rgba(77, 125, 255, .8); }

/* Liste des tickets */
.liste { padding: 2px 16px; }
.ticket { padding: 14px 0; border-bottom-color: rgba(59, 99, 240, .08); }
.ticket__ico { width: 44px; height: 44px; border-radius: 14px; box-shadow: 0 6px 14px -8px rgba(15, 23, 42, .5); }
.ticket__nom { font-weight: 700; }
.ticket__mt { font-weight: 800; font-size: 16px; }

/* Statuts : mêmes couleurs que la démo du site, contrastées sur fond clair */
.etat { font-size: 11.5px; padding: 3px 10px; border: 1px solid transparent; }
.etat--ok { background: #e3f8ef; color: #0b6b4b; border-color: rgba(16, 185, 129, .3); }
.etat--verifier { background: #fff4dc; color: #8a4b05; border-color: rgba(245, 158, 11, .35); }
.etat--erreur { background: #fde8e6; color: #b42318; border-color: rgba(239, 68, 68, .3); }
.chip { border-radius: 99px; }
.chip--certain { background: #10a36f; }
.chip--deduit { background: #3b63f0; }
.chip--ambigu { background: #d97706; }

/* Bouton flottant (photo) */
.fab { background: var(--degrade); width: 64px; height: 64px; box-shadow: 0 12px 30px -8px rgba(77, 125, 255, .85); }
.fab:active { transform: scale(.95); }

/* Barre de navigation du bas : verre clair, onglet actif en dégradé */
.barre-nav { background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-top: 1px solid rgba(59, 99, 240, .12); box-shadow: 0 -8px 24px -16px rgba(15, 23, 42, .25); }
.barre-nav a { color: #6b7590; font-size: 12px; position: relative; }
.barre-nav a.actif { color: var(--accent); }
.barre-nav a.actif::before { content: ""; position: absolute; top: 0; width: 34px; height: 3px; border-radius: 0 0 4px 4px; background: var(--degrade-ligne); box-shadow: 0 0 10px rgba(77, 125, 255, .8); }

/* Écran de lecture : cadre de scan avec laser (comme la démo du site) */
.lecture { background: rgba(10, 17, 34, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lecture__carte { border-radius: 24px; box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .6); }
.lecture__rond {
  position: relative; width: 70px; height: 86px; border-radius: 10px; border: 0; animation: none; overflow: hidden;
  margin: 0 auto 16px; background: linear-gradient(#fbf8f1, #f1ece0);
  box-shadow: 0 0 0 3px #e8edff, 0 10px 24px -10px rgba(15, 23, 42, .4);
}
.lecture__rond::before {
  content: ""; position: absolute; left: 6px; right: 6px; top: 10px; bottom: 10px;
  background: repeating-linear-gradient(#cfc8b6 0 3px, transparent 3px 9px); opacity: .8;
}
.lecture__rond::after {
  content: ""; position: absolute; left: 0; right: 0; height: 3px; top: 0;
  background: linear-gradient(90deg, transparent, #22d3ee, #fff, #22d3ee, transparent);
  box-shadow: 0 0 12px 3px rgba(34, 211, 238, .7); animation: sc-laser 1.6s ease-in-out infinite alternate;
}
@keyframes sc-laser { from { top: 4%; } to { top: 92%; } }
.lecture__titre { font-size: 18px; font-weight: 800; }

/* Formulaires (y compris le champ e-mail, qui n'était pas habillé) */
.field label { color: #3a4560; }
.field input[type="text"], .field input[type="password"], .field input[type="email"], .field input:not([type]) {
  width: 100%; box-sizing: border-box; padding: 13px 14px; border: 1.5px solid rgba(15, 23, 42, .14); border-radius: 12px;
  font-family: var(--font-body); font-size: 16px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(59, 99, 240, .15); }
.flash { border-radius: 14px; background: var(--accent-soft); color: var(--accent-deep); border-color: rgba(59, 99, 240, .2); }
.flash--error { background: #fde8e6; color: #b42318; border-color: rgba(239, 68, 68, .25); }

/* Carte de connexion / inscription : bleu nuit + halo, comme la vitrine */
.login-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 30% 0%, rgba(77, 125, 255, .45), transparent 60%), linear-gradient(150deg, #0a1122, #16224a);
  border: 1px solid rgba(77, 125, 255, .35); box-shadow: 0 24px 50px -24px rgba(35, 60, 160, .7);
}
.login-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--degrade-ligne); }
.login-hero .brand__icone { box-shadow: 0 0 30px rgba(77, 125, 255, .6); }

/* Divers */
.pied-legal { color: #6b7590; }
.hint { color: var(--ink-45); }
.vide { color: var(--ink-45); }
.vide__ico { filter: drop-shadow(0 6px 10px rgba(77, 125, 255, .35)); }

@media (prefers-reduced-motion: reduce) {
  .app-header::after, .photo-geante__rond::before, .lecture__rond::after { animation: none; }
}

/* ===== Connexion / inscription (04/11/2026) =====
   Bande bleu nuit (marque) + carte blanche bien lisible pour le formulaire. */
.page:has(.auth) { max-width: 1000px; }
.auth { max-width: 440px; margin: 0 auto; padding-bottom: 10px; }
.auth__bande {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  border-radius: 26px; padding: 30px 22px 54px;
  background: radial-gradient(ellipse at 25% 0%, rgba(77, 125, 255, .55), transparent 60%),
              radial-gradient(ellipse at 100% 100%, rgba(124, 92, 255, .4), transparent 55%),
              linear-gradient(155deg, #0a1122, #172456);
  box-shadow: 0 24px 50px -26px rgba(35, 60, 160, .8);
}
.auth__bande::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 75%); }
.auth__bande > * { position: relative; }
.auth__icone { width: 60px; height: 60px; border-radius: 16px; display: block; margin: 0 auto 14px; box-shadow: 0 0 34px rgba(77, 125, 255, .75); }
.auth__bande h1 { color: #fff; font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.auth__bande p { color: #c9d3ee; margin: 8px auto 0; font-size: 15px; max-width: 320px; }
.auth__atouts { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 13.5px; font-weight: 600; color: #a7f3d0; }
/* petite démo : ticket balayé par le laser */
.auth__demo { position: relative; width: 64px; height: 78px; margin: 18px auto 0; }
.auth__recu { position: absolute; inset: 0; border-radius: 6px; background: #fbf8f1; padding: 10px 8px; transform: rotate(-4deg); box-shadow: 0 12px 24px -10px rgba(0,0,0,.6); }
.auth__recu i { display: block; height: 4px; border-radius: 2px; background: #cfc8b6; margin-bottom: 7px; }
.auth__recu i:nth-child(2) { width: 70%; } .auth__recu i:nth-child(4) { width: 55%; } .auth__recu i:last-child { background: #9d957f; width: 80%; }
.auth__laser { position: absolute; left: -8px; right: -8px; height: 3px; top: 0; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #22d3ee, #fff, #22d3ee, transparent); box-shadow: 0 0 14px 4px rgba(34, 211, 238, .6);
  animation: sc-laser 1.8s ease-in-out infinite alternate; }

/* carte du formulaire, qui chevauche la bande */
.auth__carte {
  position: relative; margin: -34px 10px 0; background: #fff; border-radius: 24px; padding: 18px 20px 22px;
  border: 1px solid rgba(59, 99, 240, .12); box-shadow: 0 2px 4px rgba(15,23,42,.04), 0 24px 48px -22px rgba(35, 60, 160, .45);
}
.auth__onglets { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 14px; background: #eef2fb; }
.auth__onglets a { text-align: center; padding: 10px 6px; border-radius: 11px; font-weight: 700; font-size: 14.5px; color: #55617a; text-decoration: none; transition: background .2s, color .2s; }
.auth__onglets a.actif { background: #fff; color: var(--accent-deep); box-shadow: 0 2px 8px -2px rgba(15, 23, 42, .18); }
.auth__champ { margin-bottom: 14px; }
.auth__champ label { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 700; color: #26304a; margin-bottom: 7px; }
.auth__saisie { position: relative; display: flex; align-items: center; }
.auth__saisie > svg { position: absolute; left: 14px; width: 19px; height: 19px; color: #7b86a3; pointer-events: none; }
.field .auth__saisie input { padding-left: 44px; padding-right: 14px; height: 52px; border-radius: 14px; font-size: 16px; background: #f8faff; }
.field .auth__saisie input:focus { background: #fff; }
.field .auth__saisie input::placeholder { color: #9aa3b8; }
.auth__saisie:focus-within > svg { color: var(--accent); }
.field .auth__saisie:has(.auth__oeil) input { padding-right: 92px; }
.auth__oeil { position: absolute; right: 8px; border: 0; background: #e8edff; color: var(--accent-deep); font: inherit; font-size: 13px; font-weight: 700; padding: 8px 11px; border-radius: 10px; cursor: pointer; }
.auth__aide { font-size: 13px; color: #6b7590; margin-top: 6px; }
.auth__aide.ok { color: #0b6b4b; font-weight: 600; }
.auth__aide.ko { color: #b42318; font-weight: 600; }
.auth__ligne { text-align: right; margin: -4px 0 14px; font-size: 14px; }
.auth__ligne a, .auth__case a { color: var(--accent); font-weight: 600; }
.auth__case { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: #3a4560; margin: 4px 0 16px; cursor: pointer; }
.auth__case input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.auth__valider { height: 54px; font-size: 16.5px; border-radius: 16px; }
.auth__plus { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 10px 0; padding: 16px 18px; border-radius: 20px; text-decoration: none; color: var(--ink);
  background: linear-gradient(135deg, rgba(47, 107, 255, .08), rgba(109, 77, 255, .08)); border: 1px solid rgba(59, 99, 240, .2); font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.auth__plus:hover { border-color: rgba(59, 99, 240, .45); box-shadow: var(--ombre-lueur); }
.auth__plus strong { font-size: 15px; }
.auth__fleche { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; background: var(--degrade); box-shadow: 0 8px 18px -8px rgba(77, 125, 255, .9); }
.auth__confiance { text-align: center; font-size: 13px; color: #6b7590; margin: 16px 0 0; }
.auth__confiance a { color: var(--accent); }
/* ordinateur : bande à gauche, formulaire à droite */
@media (min-width: 900px) {
  .auth { max-width: none; display: grid; grid-template-columns: 1fr 440px; gap: 0 28px; align-items: stretch; margin-top: 12px; }
  .auth__bande { grid-row: 1 / span 3; display: flex; flex-direction: column; justify-content: center; padding: 50px 40px; }
  .auth__bande h1 { font-size: 36px; }
  .auth__bande p { font-size: 16.5px; max-width: 380px; }
  .auth__demo { transform: scale(1.4); margin-top: 34px; }
  .auth__carte { margin: 0; }
  .auth__plus { margin: 16px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .auth__laser { animation: none; top: 40%; } }
/* mot de passe oublié / nouveau mot de passe / messages */
.auth__etapes { list-style: none; padding: 0; margin: 16px auto 0; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: #dbe3fb; }
.auth__etapes li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.auth__etapes b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; background: linear-gradient(135deg, #22d3ee, #4d7dff); color: #fff; }
.auth__note { font-size: 13.5px; color: #55617a; line-height: 1.5; margin: 14px 0 0; padding: 11px 13px; border-radius: 12px; background: #f3f6fd; }
.auth__retour { display: block; text-align: center; margin-top: 14px; font-weight: 700; font-size: 14.5px; color: var(--accent); text-decoration: none; }
.auth__texte { font-size: 15.5px; line-height: 1.6; color: #26304a; margin: 4px 0 18px; }
.auth--message .auth__bande { padding-bottom: 50px; }
@media (min-width: 900px) { .auth--message .auth__carte { align-self: center; } }

/* Compte : case « Envoi automatique le 1er du mois » */
.envoi-auto__ligne { display:flex; gap:12px; align-items:flex-start; cursor:pointer; }
.envoi-auto__ligne input[type=checkbox] { width:22px; height:22px; flex:0 0 22px; margin-top:2px; accent-color:#2f5bff; }

/* Compte : parcours comptable en 3 étapes */
.compta__etapes { list-style:none; display:flex; gap:6px; margin:0 0 14px; padding:0; }
.compta__etapes li { flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; font-size:12px; color:#7a849a; text-align:center; }
.compta__etapes b { width:28px; height:28px; border-radius:50%; display:grid; place-items:center; background:#eef1f7; color:#7a849a; font-size:13px; }
.compta__etapes li.encours { color:#1d2a4a; font-weight:650; }
.compta__etapes li.encours b { background:linear-gradient(135deg,#2f5bff,#7b5cff); color:#fff; box-shadow:0 0 0 4px rgba(47,91,255,.15); }
.compta__etapes li.fait { color:#1a7f4b; }
.compta__etapes li.fait b { background:#dff5e8; color:#1a7f4b; }
.compta__statut { padding:10px 12px; border-radius:10px; font-size:14px; margin-bottom:10px; line-height:1.4; }
.compta__statut--attente { background:#fff6e0; color:#7a5200; }
.compta__statut--ok { background:#e6f7ee; color:#155e3a; }
.compta__envoi { margin-top:14px; padding-top:14px; border-top:1px solid #e6e9f2; }
.envoi-auto { margin-top:14px; padding-top:14px; border-top:1px solid #e6e9f2; }

/* Pièces en devise étrangère : hors total en euros */
.devise-note { color:#7a5200; font-weight:600; letter-spacing:0; text-transform:none; }
