/* ============================================================
   SendSafe V.3.1 — feuille de styles commune
   ============================================================ */
:root{
  --blue:#2412f0;
  --blue-deep:#1a08c9;
  --ink:#0f1830;
  --muted:#8a93a8;
  --line:#e6eaf2;
  --bg:#eceff6;
  --radius:22px;
  --shadow:0 10px 30px rgba(16,24,52,.08);
  --header-h:62px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Arial,sans-serif;
  background:var(--bg);
  color:var(--ink);
  min-height:100vh;
  display:flex;
  justify-content:center;
}
.phone{
  width:100%;
  max-width:460px;
  background:var(--bg);
  min-height:100vh;
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

/* ---------- HEADER / LOGO / MENU ---------- */
.topbar{
  position:relative;
  z-index:30;
  background:#fff;
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  height:var(--header-h);
  padding:0 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.brand{
  display:flex;
  align-items:center;
  gap:11px;
  text-decoration:none;
  color:inherit;
  min-width:0;
}
.brand-logo{
  width:36px;height:36px;
  border-radius:11px;
  background:linear-gradient(150deg,#3a27ff,#1b09cf);
  color:#fff;
  display:grid;place-items:center;
  flex:0 0 auto;
  box-shadow:0 6px 14px rgba(36,18,240,.28);
}
.brand-logo svg{width:20px;height:20px}
.brand-name{
  font-size:16.5px;
  font-weight:800;
  letter-spacing:.3px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.hamburger{
  width:42px;height:42px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#f7f8fc;
  display:grid;
  place-content:center;
  gap:4px;
  cursor:pointer;
  padding:0;
  transition:.15s ease;
  flex:0 0 auto;
}
.hamburger:hover{background:#eef0f8}
.hamburger:focus-visible,.btn-primary:focus-visible,.sheet-cancel:focus-visible,
.back-btn:focus-visible,.icon-btn:focus-visible,.action:focus-visible .circle,
.tab:focus-visible,.brand:focus-visible{outline:2px solid #5b4bff;outline-offset:3px}
.hamburger:active{transform:scale(.96)}
.hamburger span{
  display:block;
  width:19px;height:2px;
  border-radius:2px;
  background:#2a3350;
  transition:.2s ease;
}
.hamburger.open span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.hamburger.open span:nth-child(2){opacity:0}
.hamburger.open span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

.menu-panel{
  position:absolute;
  top:calc(100% + 6px);
  right:12px;
  width:214px;
  background:#fff;
  border-radius:16px;
  border:1px solid var(--line);
  box-shadow:0 18px 40px rgba(15,24,48,.16);
  padding:7px;
  opacity:0;
  transform:translateY(-8px) scale(.98);
  pointer-events:none;
  transition:.18s ease;
  z-index:40;
}
.menu-panel.open{opacity:1;transform:none;pointer-events:auto}
.menu-panel a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 12px;
  border-radius:11px;
  color:#26304a;
  text-decoration:none;
  font-size:14px;
  font-weight:600;
}
.menu-panel a:hover{background:#f3f5fb;color:var(--blue)}
.menu-panel a svg{width:17px;height:17px;color:#8b95ab}
.menu-panel a:hover svg{color:var(--blue)}
.menu-panel .sep{height:1px;background:var(--line);margin:5px 8px}
.menu-panel .menu-login{color:var(--blue)}
.menu-panel .menu-login svg{color:var(--blue)}

/* ---------- HERO ---------- */
.hero{
  position:relative;
  background:linear-gradient(160deg,#2c1bf5 0%,#2412f0 45%,#1b09cf 100%);
  padding:16px 18px 22px;
  overflow:hidden;
}
.hero::before,.hero::after{
  content:"";
  position:absolute;
  border-radius:50%;
  background:rgba(255,255,255,.055);
  pointer-events:none;
}
.hero::before{width:230px;height:230px;top:-40px;right:-70px}
.hero::after{width:150px;height:150px;bottom:-30px;left:45%;background:rgba(255,255,255,.04)}

.hero-top{
  position:relative;
  z-index:2;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
}
.icon-btn{
  width:46px;height:46px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.12);
  color:#fff;
  display:grid;place-items:center;
  cursor:pointer;
  position:relative;
  transition:.15s ease;
  backdrop-filter:blur(4px);
  text-decoration:none;
}
.icon-btn:hover{background:rgba(255,255,255,.2)}
.icon-btn:active{transform:scale(.95)}
.icon-btn svg{width:21px;height:21px}
.hero-actions{display:flex;align-items:center;gap:12px}
.dot{
  position:absolute;
  top:8px;right:9px;
  width:9px;height:9px;
  border-radius:50%;
  background:#ff3b46;
  border:2px solid #2b19f2;
}

/* ---------- SOLDE ---------- */
.balance{
  position:relative;
  z-index:2;
  margin:12px auto 0;
  width:max-content;
  display:flex;
  align-items:center;
  gap:9px;
  padding:8px 17px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.28);
  color:#fff;
  box-shadow:0 6px 18px rgba(8,0,80,.18);
  backdrop-filter:blur(6px);
}
.balance svg{width:16px;height:16px;opacity:.95}
.balance-label{
  font-size:10px;
  letter-spacing:1.2px;
  text-transform:uppercase;
  opacity:.8;
  font-weight:600;
}
.balance-value{
  font-size:16px;
  font-weight:800;
  letter-spacing:.2px;
  font-variant-numeric:tabular-nums;
}
.balance-value small{font-size:11px;font-weight:700;opacity:.9;margin-left:3px}

/* ---------- BOUTONS AJOUTER / ENVOYER (réduits) ---------- */
.actions{
  position:relative;
  z-index:2;
  display:flex;
  justify-content:center;
  gap:20px;
  margin-top:16px;
}
.action{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:9px;
  background:none;
  border:0;
  padding:0;
  cursor:pointer;
  color:#fff;
  font-family:inherit;
  text-decoration:none;
}
.action .circle{
  width:74px;height:74px;
  border-radius:50%;
  background:#fff;
  color:var(--blue);
  display:grid;place-items:center;
  box-shadow:0 10px 22px rgba(6,0,70,.26),0 0 0 8px rgba(255,255,255,.06);
  transition:transform .16s ease,box-shadow .16s ease;
}
.action .circle svg{width:27px;height:27px}
.action:hover .circle{transform:translateY(-3px);box-shadow:0 14px 28px rgba(6,0,70,.32),0 0 0 8px rgba(255,255,255,.1)}
.action:active .circle{transform:scale(.95)}
.action .label{font-size:15px;font-weight:700;letter-spacing:.2px}

/* ---------- CARTES / CONTENU ---------- */
main{
  flex:1;
  padding:18px 14px 26px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.card{
  background:#fff;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.row-collegues{
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px;
  cursor:pointer;
  border:0;
  background:#fff;
  width:100%;
  text-align:left;
  font-family:inherit;
  border-radius:var(--radius);
  text-decoration:none;
  color:inherit;
  transition:.15s ease;
}
.row-collegues:hover{box-shadow:0 14px 34px rgba(16,24,52,.12)}
.badge-people{
  width:44px;height:44px;
  border-radius:14px;
  background:#edf0ff;
  color:var(--blue);
  display:grid;place-items:center;
  flex:0 0 auto;
}
.badge-people svg{width:23px;height:23px}
.row-collegues .txt{flex:1;min-width:0}
.row-collegues .t1{display:block;font-size:16px;font-weight:700;letter-spacing:-.2px}
.row-collegues .t2{display:block;font-size:13px;color:var(--muted);margin-top:3px}
.chev{color:#b9c1d2;flex:0 0 auto}
.chev svg{width:20px;height:20px}

.files-card{padding:18px 13px 22px;flex:1;display:flex;flex-direction:column}
.files-head{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
.files-title{
  font-size:16px;
  font-weight:800;
  letter-spacing:-.35px;
  display:flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
}
.count-pill{
  min-width:22px;height:22px;
  padding:0 7px;
  border-radius:999px;
  background:#e7ecff;
  color:var(--blue);
  font-size:12.5px;
  font-weight:800;
  display:grid;place-items:center;
}
.tabs{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:1px;
  background:#f2f4fa;
  border-radius:11px;
  padding:3px 2px;
  flex:0 0 auto;
}
.tab{
  border:0;
  background:transparent;
  font-family:inherit;
  font-size:11.5px;
  font-weight:600;
  color:#6b7488;
  padding:6px 7px;
  border-radius:9px;
  cursor:pointer;
  white-space:nowrap;
  transition:.15s ease;
}
.tab.active{background:#fff;color:var(--ink);box-shadow:0 2px 6px rgba(16,24,52,.1)}
.btn-filter{
  width:30px;height:30px;
  border-radius:10px;
  border:0;
  background:transparent;
  color:var(--blue);
  display:grid;place-items:center;
  cursor:pointer;
  flex:0 0 auto;
}
.btn-filter:hover{background:#eef1ff}
.btn-filter svg{width:18px;height:18px}
.sep{height:1px;background:var(--line);margin:14px -13px 0}

.file-list{list-style:none;margin:0;padding:0;display:none}
.file-list.show{display:block}
.file{
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px 2px;
  border-bottom:1px solid var(--line);
  animation:pop .22s ease;
}
.file:last-child{border-bottom:0}
@keyframes pop{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.file-ic{
  width:38px;height:38px;
  border-radius:11px;
  background:#eef1ff;
  color:var(--blue);
  display:grid;place-items:center;
  flex:0 0 auto;
}
.file-ic svg{width:19px;height:19px}
.file .meta{flex:1;min-width:0}
.file .name{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.file .sub{font-size:12px;color:var(--muted);margin-top:2px}
.tag{
  font-size:10.5px;
  font-weight:800;
  letter-spacing:.4px;
  text-transform:uppercase;
  padding:4px 8px;
  border-radius:7px;
  flex:0 0 auto;
}
.tag.sent{background:#e6f7ee;color:#0d8a4d}
.tag.recu{background:#eef1ff;color:var(--blue)}

.empty{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:38px 14px 46px;
  gap:6px;
  color:var(--muted);
}
.empty svg{width:58px;height:58px;color:#c3cde0;margin-bottom:14px}
.empty .e1{font-size:15px;font-weight:600;color:#9aa4b8}
.empty .e2{font-size:12.5px;color:#aab2c4;line-height:1.5}

/* ---------- POPUP DU BAS ---------- */
.sheet-overlay{
  position:fixed;
  inset:0;
  background:rgba(10,18,40,.5);
  backdrop-filter:blur(2px);
  opacity:0;
  pointer-events:none;
  transition:opacity .22s ease;
  z-index:60;
}
.sheet-overlay.open{opacity:1;pointer-events:auto}

.sheet{
  position:fixed;
  left:50%;
  bottom:0;
  width:100%;
  max-width:460px;
  transform:translate(-50%,105%);
  background:#fff;
  border-radius:26px 26px 0 0;
  padding:10px 18px calc(20px + env(safe-area-inset-bottom));
  box-shadow:0 -12px 40px rgba(10,18,40,.24);
  transition:transform .28s cubic-bezier(.32,.72,0,1);
  z-index:61;
  box-sizing:border-box;
}
.sheet.open{transform:translate(-50%,0)}
.grabber{
  width:42px;height:4px;
  border-radius:99px;
  background:#dfe3ee;
  margin:2px auto 16px;
}
.sheet h3{
  margin:0;
  font-size:18px;
  font-weight:800;
  letter-spacing:-.3px;
  text-align:center;
}
.sheet-sub{
  margin:5px 0 18px;
  text-align:center;
  font-size:13px;
  color:var(--muted);
}
.sheet-options{display:flex;flex-direction:column;gap:11px}

.sheet-opt{
  display:flex;
  align-items:center;
  gap:13px;
  padding:14px;
  border-radius:16px;
  border:1px solid var(--line);
  background:#fafbff;
  text-decoration:none;
  color:inherit;
  transition:.15s ease;
}
.sheet-opt:hover{border-color:#cfd7ff;background:#f5f7ff;transform:translateY(-1px)}
.sheet-opt:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-color:#cfd7ff}
.sheet-opt:active{transform:scale(.99)}
.opt-num{
  width:22px;height:22px;
  border-radius:50%;
  background:#e7ecff;
  color:var(--blue);
  font-size:11.5px;
  font-weight:800;
  display:grid;place-items:center;
  flex:0 0 auto;
}
.opt-ic{
  width:42px;height:42px;
  border-radius:13px;
  background:#fff;
  border:1px solid var(--line);
  color:var(--blue);
  display:grid;place-items:center;
  flex:0 0 auto;
}
.opt-ic svg{width:21px;height:21px}
.opt-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.opt-txt b{font-size:14.5px;font-weight:700;letter-spacing:-.1px}
.opt-txt small{font-size:12px;color:var(--muted);line-height:1.35}
.sheet-cancel{
  margin-top:14px;
  width:100%;
  padding:14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  color:#4a5470;
  font-family:inherit;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  transition:.15s ease;
}
.sheet-cancel:hover{background:#f5f7fc}
.sheet-cancel:active{transform:scale(.99)}

body.no-scroll{overflow:hidden}

/* ---------- TOAST ---------- */
.toast{
  position:fixed;
  left:50%;
  bottom:26px;
  transform:translate(-50%,20px);
  background:#0f1830;
  color:#fff;
  font-size:13px;
  font-weight:600;
  padding:12px 18px;
  border-radius:12px;
  box-shadow:0 14px 30px rgba(10,18,40,.3);
  opacity:0;
  pointer-events:none;
  transition:.22s ease;
  z-index:80;
  max-width:88vw;
  text-align:center;
}
.toast.show{opacity:1;transform:translate(-50%,0)}
.hidden-input{display:none}

/* ---------- PAGES SECONDAIRES ---------- */
.page-head{
  padding:16px 16px 0;
  display:flex;
  align-items:center;
  gap:12px;
}
.back-btn{
  width:38px;height:38px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  color:#2a3350;
  display:grid;place-items:center;
  text-decoration:none;
  flex:0 0 auto;
  box-shadow:0 2px 8px rgba(16,24,52,.06);
}
.back-btn svg{width:19px;height:19px}
.page-title{
  font-size:20px;
  font-weight:800;
  letter-spacing:-.4px;
  margin:0;
}
.page-body{
  flex:1;
  padding:14px 14px 28px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.lead{
  margin:0;
  font-size:13.5px;
  color:#66708a;
  line-height:1.55;
  padding:0 4px;
}
.lead b{color:var(--ink)}

/* lignes de liste génériques */
.rows{list-style:none;margin:0;padding:0;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.rows li + li{border-top:1px solid var(--line)}
.row{
  display:flex;
  align-items:center;
  gap:13px;
  padding:14px 16px;
  text-decoration:none;
  color:inherit;
  background:#fff;
  width:100%;
  border:0;
  font-family:inherit;
  text-align:left;
  cursor:pointer;
  transition:.15s ease;
}
.row:hover{background:#fafbff}
.avatar{
  width:42px;height:42px;
  border-radius:50%;
  background:linear-gradient(150deg,#eef1ff,#dfe5ff);
  color:var(--blue);
  font-size:14px;
  font-weight:800;
  display:grid;place-items:center;
  flex:0 0 auto;
}
.row .meta{flex:1;min-width:0}
.row .meta b{display:block;font-size:14.5px;font-weight:700}
.row .meta small{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.chip{
  font-size:10.5px;
  font-weight:800;
  letter-spacing:.3px;
  text-transform:uppercase;
  padding:4px 8px;
  border-radius:7px;
  background:#e6f7ee;
  color:#0d8a4d;
  flex:0 0 auto;
}
.chip.off{background:#f1f2f6;color:#8a93a8}

/* QR */
.qr-wrap{
  background:#fff;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:24px 20px 26px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}
.qr-frame{
  padding:14px;
  border-radius:18px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:0 6px 18px rgba(16,24,52,.07);
}
.qr-frame img{display:block;width:212px;height:212px}
.qr-frame.qr-frame-msg{
  width:240px;
  max-width:100%;
  min-height:212px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px;
}
.qr-frame-msg .bulle-erreur{margin:0;max-width:100%}
.qr-code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:19px;
  font-weight:700;
  letter-spacing:4px;
  color:var(--ink);
}
.qr-hint{font-size:12.5px;color:var(--muted);text-align:center;line-height:1.5;max-width:260px}

/* champs / boutons formulaire */
.field{display:flex;flex-direction:column;gap:7px}
.field label{font-size:12.5px;font-weight:700;color:#4a5470;letter-spacing:.2px}
.field input{
  width:100%;
  padding:14px;
  border-radius:13px;
  border:1px solid var(--line);
  background:#fff;
  font-family:inherit;
  font-size:14.5px;
  color:var(--ink);
  outline:none;
  transition:.15s ease;
}
.field input:focus{border-color:#b9c3ff;box-shadow:0 0 0 4px #eef1ff}
.btn-primary{
  width:100%;
  padding:15px;
  border-radius:14px;
  border:0;
  background:linear-gradient(150deg,#3a27ff,#1b09cf);
  color:#fff;
  font-family:inherit;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(36,18,240,.28);
  transition:.15s ease;
}
.btn-primary:hover{filter:brightness(1.06)}
.btn-primary:active{transform:scale(.99)}
.alert{
  padding:12px 14px;
  border-radius:12px;
  font-size:13px;
  font-weight:600;
  line-height:1.4;
}
.alert.err{background:#fdecec;color:#b0212a;border:1px solid #f7cfd1}
.alert.ok{background:#e9f9f0;color:#0d7a45;border:1px solid #c9efdb}
.hint-box{
  background:#f7f8fc;
  border:1px dashed #d6dcec;
  border-radius:13px;
  padding:12px 14px;
  font-size:12px;
  color:#6b7488;
  line-height:1.5;
}
.hint-box code{background:#fff;border:1px solid var(--line);border-radius:6px;padding:1px 6px;font-size:11.5px;color:#26304a}

/* textes de contenu */
.doc{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:20px 18px;display:flex;flex-direction:column;gap:12px}
.doc h3{margin:0;font-size:15.5px;font-weight:800;letter-spacing:-.2px}
.doc p{margin:0;font-size:13.5px;line-height:1.65;color:#5b6580}
.quote{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:18px;display:flex;flex-direction:column;gap:12px}
.quote p{margin:0;font-size:13.8px;line-height:1.6;color:#39425c;font-style:italic}
.quote .who{display:flex;align-items:center;gap:10px}
.quote .who b{font-size:13.5px;font-weight:800;display:block}
.quote .who small{font-size:11.5px;color:var(--muted)}
.stars{color:#f5a623;font-size:13px;letter-spacing:2px}

@media (max-width:360px){
  .action .circle{width:68px;height:68px}
  .action .circle svg{width:24px;height:24px}
  .tab{padding:6px 6px;font-size:11px}
  .brand-name{font-size:15px}
}

/* ---------- ESPACE COMPTE ---------- */
.solde-carte{
  background:linear-gradient(160deg,#2c1bf5,#1b09cf);
  border-radius:22px;
  padding:20px;
  color:#fff;
  box-shadow:0 14px 30px rgba(6,0,70,.22);
}
.solde-carte .lab{font-size:10.5px;letter-spacing:1.3px;text-transform:uppercase;opacity:.82;font-weight:700}
.solde-carte .val{font-size:30px;font-weight:800;letter-spacing:-.8px;margin-top:8px;font-variant-numeric:tabular-nums}
.solde-carte .val small{font-size:13px;font-weight:700;margin-left:3px}
.solde-carte .pied{margin-top:14px;font-size:12px;opacity:.85;display:flex;align-items:center;justify-content:space-between;gap:10px}
.solde-carte .pied a{color:#fff;text-decoration:none;font-weight:700;font-size:12px;border-bottom:1px solid rgba(255,255,255,.45);padding-bottom:1px}
.tuiles{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tuile{background:#fff;border-radius:16px;box-shadow:var(--shadow);padding:15px}
.tuile .n{font-size:24px;font-weight:800;letter-spacing:-.8px;font-variant-numeric:tabular-nums}
.tuile .l{font-size:12px;color:var(--muted);margin-top:3px;font-weight:600}
.raccourcis{display:flex;gap:10px}
.raccourcis a{
  flex:1;display:flex;align-items:center;justify-content:center;gap:8px;
  padding:13px;border-radius:14px;background:#fff;border:1px solid var(--line);
  text-decoration:none;color:var(--ink);font-size:13.5px;font-weight:700;
  box-shadow:0 4px 12px rgba(16,24,52,.05);
}
.raccourcis a svg{width:17px;height:17px;color:var(--blue)}
.lien-discret{display:block;text-align:center;font-size:13px;font-weight:600;color:#6b7488;text-decoration:none;padding:8px}

/* ============================================================
   RESPONSIVE — mobile : cadre téléphone / tablette et PC : plein écran
   ============================================================ */

/* ---- Tablette (≥ 768 px) ---- */
@media (min-width: 768px) {
  body { display: block; }

  /* le cadre téléphone disparaît : l'app occupe toute la largeur */
  .phone { max-width: none; width: 100%; min-height: 100vh; }

  .topbar-inner {
    max-width: 1120px;
    margin: 0 auto;
    height: 72px;
    padding: 0 28px;
  }
  .brand-name { font-size: 18px; }
  .brand-logo { width: 40px; height: 40px; border-radius: 12px; }
  .brand-logo svg { width: 22px; height: 22px; }
  .hamburger { width: 46px; height: 46px; }
  /* right: max(12px, …) — la valeur calc() devient négative sous ~1176px et
     poussait le panneau hors écran (libellés tronqués sur tablette) */
  .menu-panel { right: max(12px, calc((100% - 1120px) / 2 + 28px)); width: 260px; }
  .menu-panel a { font-size: 14.5px; padding: 12px 14px; }

  .hero { padding: 26px 28px 34px; }
  .hero-top { max-width: 1120px; margin: 0 auto; }
  .hero-actions { gap: 14px; }
  .icon-btn { width: 50px; height: 50px; }
  .icon-btn svg { width: 23px; height: 23px; }

  .balance {
    margin-top: 18px;
    padding: 10px 22px;
  }
  .balance-value { font-size: 18px; }

  .actions { gap: 40px; margin-top: 24px; }
  .action .circle {
    width: 96px; height: 96px;
    box-shadow: 0 14px 30px rgba(6,0,70,.28), 0 0 0 10px rgba(255,255,255,.06);
  }
  .action .circle svg { width: 34px; height: 34px; }
  .action .label { font-size: 17px; }

  main, main.page-body {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 26px 28px 40px;
  }

  /* les pages secondaires gardent une colonne lisible */
  main.page-body { max-width: 780px; }
  .page-title { font-size: 24px; }

  /* le popup du bas devient une fenêtre centrée */
  .sheet {
    top: 50%;
    bottom: auto;
    max-width: 470px;
    border-radius: 20px;
    padding: 22px 22px 20px;
    transform: translate(-50%, -46%) scale(.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    box-shadow: 0 26px 60px rgba(10,18,40,.3);
  }
  .sheet.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
  }
  .grabber { display: none; }
  .sheet h3 { font-size: 19px; }
  .toast { bottom: 34px; }
}

/* ---- Ordinateur (≥ 1024 px) : deux colonnes ---- */
@media (min-width: 1024px) {
  /* l'app remplit la hauteur de la fenêtre */
  .phone { display: flex; flex-direction: column; }
  main:not(.page-body) {
    flex: 1;
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
  }
  /* colonne de gauche : les deux cartes empilées */
  .col-gauche {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
  }
  .col-gauche > .card { flex: 0 0 auto; }
  /* les pages secondaires restent une colonne lisible */
  main.page-body {
    display: flex;
    flex-direction: column;
    max-width: 780px;
    flex: 0 0 auto;
  }
  .files-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .files-card .empty { flex: 1; display: grid; place-items: center; padding: 30px 18px; }
  .hero { padding: 22px 34px 28px; }
  .actions { width: 100%; margin: 16px auto 0; justify-content: center; }
  .balance { margin-left: auto; margin-right: auto; }
  .action .circle { width: 94px; height: 94px; }
  .action .circle svg { width: 33px; height: 33px; }
  .actions { gap: 52px; margin-top: 18px; }
  .balance { margin-top: 14px; }
}

/* ---- Grand écran (≥ 1500 px) : l'app occupe réellement l'écran ---- */
@media (min-width: 1500px) {
  .topbar-inner, .hero-top, main, .actions, .balance {
    max-width: min(1440px, 94vw);
  }
  .hero-top, main { margin-left: auto; margin-right: auto; }

  main:not(.page-body) {
    grid-template-columns: 400px minmax(0, 1fr);
    gap: 24px;
  }
  main.page-body { max-width: 880px; }

  .topbar-inner { height: 78px; padding: 0 40px; }
  .brand-name { font-size: 19px; }
  .hero { padding: 28px 40px 34px; }
  .hero-intro h1 { font-size: 34px; }
  .hero-intro p { font-size: 15.5px; max-width: 560px; }
  .balance { padding: 11px 24px; margin-left: auto; margin-right: auto; }
  .balance-value { font-size: 19px; }
  .actions { gap: 60px; margin: 16px auto 0; }
  .action .circle { width: 104px; height: 104px; }
  .action .circle svg { width: 36px; height: 36px; }
  .action .label { font-size: 18px; }
  .files-card .empty { padding: 56px 18px 64px; }
  .card { padding: 20px 20px 22px; }
  .menu-panel { right: max(30px, calc((100% - 1440px) / 2 + 40px)); }
}

/* ---- Très grand écran (≥ 1900 px) : on élargit encore ---- */
@media (min-width: 1900px) {
  .topbar-inner, .hero-top, main, .actions, .balance {
    max-width: min(1640px, 92vw);
  }
  main:not(.page-body) { grid-template-columns: 430px minmax(0, 1fr); }
  .actions, .balance { margin-left: auto; margin-right: auto; }
  .hero-intro h1 { font-size: 38px; }
  .hero-intro p { font-size: 16.5px; max-width: 620px; }
  .menu-panel { right: max(34px, calc((100% - 1640px) / 2 + 44px)); }
}

/* Écrans tactiles larges : on garde les cibles confortables */
@media (hover: none) and (min-width: 768px) {
  .action .circle { box-shadow: 0 10px 24px rgba(6,0,70,.24); }
}

/* ---------- intro du hero : titre + sous-titre visibles dès le mobile ---------- */
.hero-intro {
  display: block;
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 14px auto 2px;
  text-align: center;
}
.hero-intro h1 {
  margin: 0;
  font-size: 23px;
  line-height: 1.22;
  letter-spacing: -.5px;
  font-weight: 800;
  color: #fff;
}
.hero-intro p {
  margin: 8px auto 0;
  max-width: 44ch;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .8);
}

/* tablette : on gagne un cran sans écraser les boutons */
@media (min-width: 768px) {
  .hero-intro h1 { font-size: 26px; letter-spacing: -.6px; }
  .hero-intro p { font-size: 14.5px; max-width: 520px; }
}

.etapes { display: none; }

@media (min-width: 1024px) {
  .hero-intro { max-width: 640px; margin: 14px auto 2px; }
  .hero-intro h1 { font-size: 30px; line-height: 1.2; letter-spacing: -.7px; }
  .hero-intro p { margin-top: 10px; max-width: 520px; font-size: 14.5px; line-height: 1.55; }

  .etapes {
    display: block;
    grid-column: 1;
    grid-row: 2;
    padding: 18px 18px 20px;
  }
  .etapes h2 {
    margin: 0 0 14px;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: -.2px;
  }
  .etapes ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .etapes li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
  }
  .etapes .num {
    width: 24px; height: 24px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #eef1ff;
    color: var(--blue);
    font-size: 11.5px;
    font-weight: 800;
    display: grid;
    place-items: center;
  }
  .etapes b {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
  }
  .etapes small {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--muted);
  }
}

/* ============================================================
   POPUP « AJOUTER » — nombre de fichiers + champs dynamiques
   ============================================================ */
.sheet-add {
  padding-bottom: 16px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.sheet-sub {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #6b768f;
}

/* sélecteur de quantité */
.count-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 16px 0 6px;
}
.count-btn {
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1.5px solid #dfe4f1;
  background: #fff;
  color: var(--blue);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.count-btn:active { transform: scale(.94); }
.count-btn:disabled { opacity: .35; cursor: not-allowed; }
.count-btn:hover:not(:disabled) { background: #f4f6ff; border-color: #c9d3ff; }
.count-val {
  min-width: 64px;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  color: var(--ink, #0f1830);
  letter-spacing: -.5px;
}
.count-max {
  font-size: 12.5px;
  color: #8b95ab;
  margin-left: -6px;
}

/* liste des lignes */
.add-rows {
  margin: 14px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 44vh;
  overflow-y: auto;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}
.add-row {
  border: 1.5px solid #e6eaf5;
  border-radius: 16px;
  padding: 12px 12px 13px;
  background: #fbfcff;
  transition: border-color .2s, background .2s;
}
.add-row.complet { border-color: #bfe6cd; background: #f6fdf8; }

.row-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}
.row-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #eef1ff;
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.row-state {
  font-size: 11.5px;
  font-weight: 600;
  color: #8b95ab;
}
.row-state.ok { color: #17945a; }

.add-row .field { margin-bottom: 10px; }
.add-row .field label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #3b4560;
  margin-bottom: 5px;
}
.code16 {
  width: 100%;
  border: 1.5px solid #dfe4f1;
  border-radius: 12px;
  padding: 11px 13px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 15px;
  letter-spacing: 1.6px;
  color: var(--ink, #0f1830);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.code16::placeholder { letter-spacing: 1.4px; color: #b8c0d4; }
.code16:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3.5px rgba(30, 40, 220, .12);
}
.code16.bad { border-color: #e05a5a; background: #fff7f7; }
.row-help { display: block; margin-top: 4px; font-size: 10.5px; color: #9aa3b8; }

/* zone pièce jointe */
.file-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px dashed #d3daee;
  border-radius: 13px;
  padding: 10px 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.file-pick:hover { border-color: #aab8ff; background: #f9faff; }
.file-pick.a-fichier { border-style: solid; border-color: #bfe6cd; background: #f6fdf8; }
.file-pick input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.pick-ic {
  width: 32px; height: 32px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: #eef1ff;
  color: var(--blue);
  display: grid;
  place-items: center;
}
.pick-ic svg { width: 17px; height: 17px; }
.file-pick.a-fichier .pick-ic { background: #e3f7ea; color: #17945a; }
.pick-txt { min-width: 0; flex: 1; }
.pick-txt b {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink, #0f1830);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pick-txt small { display: block; margin-top: 2px; font-size: 10.5px; color: #8b95ab; }

/* bas de la fenêtre */
.sheet-foot {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sheet-foot .btn-primary {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #3944ff, #1f2ae0);
  box-shadow: 0 10px 22px rgba(31, 42, 224, .28);
  cursor: pointer;
}
.sheet-foot .btn-primary:active { transform: scale(.995); }
.btn-ghost {
  width: 100%;
  border: 0;
  background: transparent;
  color: #6b768f;
  font-size: 13px;
  font-weight: 600;
  padding: 9px;
  cursor: pointer;
}
.sheet-note {
  margin: 6px 2px 0;
  font-size: 11.5px;
  line-height: 1.45;
  min-height: 0;
  color: #6b768f;
}
.sheet-note.err { color: #c0392b; }
.sheet-note.ok { color: #17945a; }

/* tablette / PC : fenêtre plus haute, lignes sur deux colonnes */
@media (min-width: 768px) {
  .sheet-add { max-height: 86vh; }
  .add-rows { max-height: none; }
}
@media (min-width: 1024px) {
  .sheet-add { max-width: 560px; }
  .add-rows { max-height: none; }
  .sheet-foot { flex-direction: row-reverse; align-items: center; }
  .sheet-foot .btn-primary { width: auto; flex: 1; }
  .btn-ghost { width: auto; padding: 12px 16px; }
}

/* ---------- carte « Mes informations » ---------- */
.infos-user { margin: 4px 0 0; }
.info-list { margin: 0; padding: 2px 2px 4px; }
.info-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #eef1f7;
}
.info-list > div:last-child { border-bottom: 0; padding-bottom: 2px; }
.info-list dt {
  font-size: 12.5px;
  font-weight: 600;
  color: #8b95ab;
  flex: 0 0 auto;
}
.info-list dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #0f1830;
  text-align: right;
  word-break: break-word;
}
.info-list dd .chip { margin-left: 6px; font-size: 10.5px; padding: 2px 7px; }
.code-perso {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 1.1px;
  font-size: 13px;
}

/* version accolée au nom de la marque */
.brand-name .brand-ver,
.brand-ver {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  color: #8b95ab;
  margin-left: 3px;
  vertical-align: middle;
}

/* ================= ACCUEIL PUBLIC ================= */
.hero-public {
  padding-bottom: 4px;
}
.pill-public {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef3ff;
  color: #2f6fed;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .2px;
}
.hero-public .hero-intro { margin-top: 10px; }
.hero-public .hero-intro h1 { font-size: 30px; line-height: 1.15; }
.cta-row {
  display: flex;
  gap: 10px;
  margin: 18px 16px 0;
}
.cta-row .btn-primary,
.cta-row .btn-ghost {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 14px 12px;
  font-size: 14.5px;
  border-radius: 14px;
}
.public-note {
  margin: 12px 16px 18px;
  font-size: 12px;
  color: #8b95ab;
  text-align: center;
}
.file-list .file-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  border-bottom: 1px solid #eef1f7;
}
.file-list .file-item:last-child { border-bottom: 0; }
.file-list .fi-ic {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 8px;
  background: #eef3ff;
  color: #2f6fed;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.file-list .fi-txt { display: flex; flex-direction: column; gap: 2px; }
.file-list .fi-txt b { font-size: 13.5px; color: #1c2434; }
.file-list .fi-txt small { font-size: 12.2px; color: #6b768f; line-height: 1.5; }

@media (min-width: 768px) {
  .hero-public .hero-intro h1 { font-size: 38px; }
  .cta-row { max-width: 460px; }
}

/* --- boutons de l'accueil public (sur fond bleu) --- */
.cta-row .btn-primary {
  background: #fff;
  color: #2f2fff;
  border: 0;
  box-shadow: 0 8px 22px rgba(0, 0, 30, .18);
}
.cta-row .btn-primary:hover { background: #f4f6ff; filter: none; }
.cta-row .btn-ghost {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .55);
}
.cta-row .btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.public-note { color: rgba(255, 255, 255, .72); }

/* --- liste des avantages --- */
.avantages { list-style: none; margin: 0; padding: 4px 0 8px; }
.avantages li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 20px;
  border-bottom: 1px solid #eef1f7;
}
.avantages li:last-child { border-bottom: 0; }
.avantages .av-ic {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 8px;
  background: #eef3ff;
  color: #2f6fed;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avantages b { display: block; font-size: 13.5px; color: #1c2434; margin-bottom: 2px; }
.avantages small { font-size: 12.2px; color: #6b768f; line-height: 1.5; }
.avantages > li > span:last-child { display: flex; flex-direction: column; }

/* ajustements accueil public (bureau) */
@media (min-width: 768px) {
  .cta-row { margin-left: auto; margin-right: auto; }
  .hero-public ~ main { flex: 0 0 auto; }
  .hero-public ~ main .files-card { min-height: auto; flex: 0 0 auto; height: auto; }
  .hero-public ~ main .col-gauche { align-self: start; }
}
.hero-public ~ main .files-card a.btn-ghost { border: 1px solid #d7ddec; color: #46506a; }

/* « Comment ça marche » visible aussi sur l'accueil public mobile */
.hero-public ~ main .etapes {
  display: block;
  grid-column: auto;
  grid-row: auto;
  padding: 18px 18px 20px;
}
.hero-public ~ main .etapes h2 { margin: 0 0 14px; font-size: 14.5px; font-weight: 800; letter-spacing: -.2px; }
.hero-public ~ main .etapes ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.hero-public ~ main .etapes li { display: flex; align-items: flex-start; gap: 11px; }
.hero-public ~ main .etapes .num {
  width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%;
  background: #eef1ff; color: var(--blue); font-size: 11.5px; font-weight: 800;
  display: grid; place-items: center;
}
.hero-public ~ main .etapes b { display: block; font-size: 13.5px; font-weight: 700; }
.hero-public ~ main .etapes small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.45; color: var(--muted); }

/* espacement garanti entre les blocs de l'accueil public (mobile) */
.hero-public ~ main .col-gauche {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.hero-public ~ main .col-gauche > .card { flex: 0 0 auto; }
.hero-public ~ main .files-card { margin-top: 16px; }

/* ================= HISTORIQUE (entrées / sorties) ================= */
.tabs .tab { text-decoration: none; display: inline-flex; align-items: center; }
.hist-list {
  list-style: none;
  margin: 0;
  padding: 4px 0 8px;
}
.hist-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-bottom: 1px solid #f1f3f8;
}
.hist-item:last-child { border-bottom: 0; }
.hist-ic {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}
.hist-ic.entree {
  background: #e7f7ee;
  color: #17864a;
}
.hist-ic.sortie {
  background: #fdeaea;
  color: #c62828;
}
.hist-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hist-txt b {
  font-size: 13.2px;
  font-weight: 600;
  color: #1c2434;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hist-txt small {
  font-size: 11.5px;
  color: #8b95ab;
  font-variant-numeric: tabular-nums;
}
.hist-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.hist-mt {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hist-mt.entree { color: #17864a; }
.hist-mt.sortie { color: #c62828; }
.hist-mt small { font-size: 10.5px; font-weight: 600; }

/* --- code masqué + œil --- */
.code-mask {
  font-family: inherit;
  letter-spacing: .5px;
  color: #8b95ab;
}
.code-mask.revele {
  color: #1c2434;
  font-weight: 700;
  letter-spacing: .8px;
  font-variant-numeric: tabular-nums;
}
.eye-toggle {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 2px 2px 0 6px;
  margin: 0;
  color: #8b95ab;
  cursor: pointer;
  line-height: 0;
  vertical-align: -2px;
}
.eye-toggle svg { width: 15px; height: 15px; display: block; }
.eye-toggle:hover { color: #2f6fed; }
.eye-toggle.actif { color: #2f6fed; }
.eye-toggle .ico-closed { display: none; }
.eye-toggle.actif .ico-open { display: none; }
.eye-toggle.actif .ico-closed { display: block; }

/* ligne date + code sur un seul rang */
.hist-sub {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: #8b95ab;
}
.hist-date { font-variant-numeric: tabular-nums; }
.hist-code {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding-left: 7px;
  border-left: 1px solid #e3e7f0;
}
.hist-code .eye-toggle { padding: 4px 4px 4px 5px; }
.hist-code .eye-toggle svg { width: 16px; height: 16px; }

.rappel-secu {
  margin: 4px 0 2px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #fff8e6;
  border: 1px solid #f2e2b8;
  color: #7a6320;
  font-size: 11.8px;
  line-height: 1.55;
}
.rappel-secu b { color: #5f4c14; }

/* --- badge du titulaire (page cartes) --- */
.badge-own {
  margin: 2px 0 18px;
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: linear-gradient(150deg, #1d2b52, #2f6fed);
  color: #fff;
  box-shadow: 0 10px 24px rgba(29, 43, 82, .22);
}
.badge-top {
  display: flex;
  align-items: center;
  gap: 11px;
}
.badge-top .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
}
.badge-qui {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.badge-qui b { font-size: 14.5px; }
.badge-qui small {
  font-size: 11.5px;
  opacity: .78;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.badge-top .chip {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}
.badge-code {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .13);
}
.badge-code .code-mask {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2.4px;
  color: #fff;
}
.badge-code .eye-toggle { color: #fff; }
.badge-code .eye-toggle.actif { opacity: .95; }
.badge-note {
  display: block;
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.45;
  opacity: .8;
}

/* --- encart carte de test (page envoyer-carte) --- */
.carte-test {
  margin: 4px 0 16px;
  padding: 14px 15px 12px;
  border: 1px dashed #b9c6e4;
  border-radius: 14px;
  background: #f4f7ff;
}
.ct-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}
.ct-head b { font-size: 13.5px; color: #1d2b52; }
.ct-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .6px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #2f6fed;
  color: #fff;
}
.ct-ligne {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 6px;
  font-size: 12.5px;
  color: #5d6780;
}
.ct-ligne code {
  font-size: 13px;
  font-weight: 700;
  color: #1d2b52;
  background: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #dde5f5;
}
.ct-btn {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #2f6fed;
  border-radius: 10px;
  background: #fff;
  color: #2f6fed;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.ct-btn:active { background: #eaf0ff; }
.ct-note {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.45;
  color: #8a93a8;
}

/* --- saisie du code destinataire (page cartes) --- */
.code-form {
  margin: 0 0 16px;
  padding: 14px 15px;
  border: 1px solid #dde5f5;
  border-radius: 14px;
  background: #fff;
}
.code-form label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #5d6780;
  margin-bottom: 9px;
}
.code-ligne {
  display: flex;
  gap: 8px;
}
.code-ligne input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #dde3ee;
  border-radius: 10px;
  font: inherit;
  font-size: 14.5px;
  letter-spacing: 1px;
}
.code-ligne input:focus {
  outline: none;
  border-color: #2f6fed;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, .12);
}
.code-ligne .btn-primary {
  flex: 0 0 auto;
  width: auto;
  padding: 11px 18px;
  font-size: 13px;
  white-space: nowrap;
}
.code-err {
  display: block;
  margin-top: 8px;
  font-size: 11.5px;
  color: #c62828;
}

/* --- carte d'accès (badge) : 3 lignes --- */
.badge-data {
  margin-top: 14px;
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .13);
}
.bd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.bd-row:last-child { border-bottom: 0; }
.bd-lab {
  font-size: 11.5px;
  letter-spacing: .2px;
  opacity: .82;
}
.bd-val {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.bd-val b {
  font-size: 14px;
  letter-spacing: 1.2px;
}
.badge-data .code-mask {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: #fff;
}
.badge-data .eye-toggle { color: #fff; }

/* --- formulaire des trois champs --- */
.carte-form {
  margin: 0 0 16px;
  padding: 16px 15px 15px;
  border: 1px solid #dde5f5;
  border-radius: 14px;
  background: #fff;
}
.cf-titre {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: #1d2b52;
  margin-bottom: 12px;
}
.cf-champ { margin-bottom: 10px; }
.cf-champ span {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #5d6780;
  margin-bottom: 5px;
}
.cf-champ input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #dde3ee;
  border-radius: 10px;
  font: inherit;
  font-size: 14.5px;
  letter-spacing: 1px;
}
.cf-champ input:focus {
  outline: none;
  border-color: #2f6fed;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, .12);
}
.carte-form .btn-primary {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
}

/* --- suivi 3 étapes côté client --- */
.suivi {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 7px;
  padding: 7px 9px;
  border-radius: 9px;
  background: #f4f7ff;
}
.su-dots { display: inline-flex; gap: 5px; flex-shrink: 0; }
.su-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #cfd8ea;
}
.su-dot.fait { background: #2f6fed; }
.su-dot.actif { box-shadow: 0 0 0 3px rgba(47, 111, 237, .18); }
.su-txt {
  font-size: 11.5px;
  line-height: 1.4;
  color: #4b5670;
  min-width: 0;
}
.su-txt b { color: #1d2b52; font-size: 11.5px; margin-right: 4px; }

/* suivi : pleine largeur sous la ligne */
.hist-item { flex-wrap: wrap; }
.suivi {
  flex: 1 1 100%;
  margin-left: 39px;
  margin-top: 2px;
}
.su-txt { flex: 1; }

/* --- écran d'envoi : solde, lignes de récap, boutons --- */
.solde-rappel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 11px;
  background: #eef3ff;
  font-size: 12.5px;
  color: #4b5670;
}
.solde-rappel b {
  font-size: 14px;
  color: #1d2b52;
  font-variant-numeric: tabular-nums;
}
.doc-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 2px;
  border-top: 1px solid #eef1f7;
  font-size: 13px;
  color: #5d6780;
}
.doc-line b { color: #1d2b52; font-variant-numeric: tabular-nums; }
.cta-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 14px;
}
.cta-col .btn-primary,
.cta-col .btn-ghost {
  display: block;
  text-align: center;
  text-decoration: none;
}

/* --- carte du destinataire saisie (page envoi) --- */
.dest-carte {
  margin: 2px 0 14px;
  padding: 12px 14px 6px;
  border-radius: 14px;
  background: linear-gradient(150deg, #1d2b52, #2f6fed);
  color: #fff;
  box-shadow: 0 10px 24px rgba(29, 43, 82, .2);
}
.dc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.dc-lab {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .8px;
  opacity: .8;
  font-weight: 700;
}
.dc-chip {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .2);
}
.dest-carte .bd-row { border-bottom-color: rgba(255, 255, 255, .14); }
.dest-carte .bd-lab { color: rgba(255, 255, 255, .85); }
.dest-carte .code-mask { color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 1.6px; }
.dest-carte .eye-toggle { color: #fff; }
.dest-carte .bd-val b { color: #fff; }

/* ---------- pastille d'alerte (suivi) ---------- */
.chip-alert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e5342b;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(229, 52, 43, .55);
  animation: pulse-alert 1.9s infinite;
}
.chip-alert svg { width: 15px; height: 15px; }
.chip-alert:active { transform: scale(.94); }
@keyframes pulse-alert {
  0%   { box-shadow: 0 0 0 0 rgba(229, 52, 43, .5); }
  70%  { box-shadow: 0 0 0 9px rgba(229, 52, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 52, 43, 0); }
}

/* ---------- feuille de suivi ---------- */
.sheet-suivi {
  width: min(430px, calc(100% - 20px));
  max-height: 88vh;
  overflow-y: auto;
  padding: 8px 18px 18px;
  gap: 0;
}
.su-grab {
  width: 42px;
  height: 4px;
  border-radius: 4px;
  background: #d8deea;
  margin: 4px auto 12px;
}
.su-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.su-dest { font-size: 15px; font-weight: 800; color: #1d2b52; }
.su-mt { font-size: 12.5px; color: #6b7488; margin-top: 3px; }

.su-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.su-track {
  flex: 1;
  height: 9px;
  border-radius: 20px;
  background: #e8ecf6;
  overflow: hidden;
}
.su-fill {
  height: 100%;
  width: 0;
  border-radius: 20px;
  background: linear-gradient(90deg, #2f6fed, #4a8bff);
  transition: width .5s cubic-bezier(.2, .8, .2, 1);
}
.su-fill.refus { background: linear-gradient(90deg, #e5342b, #ff6b62); }
.su-pc { font-size: 12.5px; font-weight: 800; color: #2f6fed; min-width: 42px; text-align: right; }

.su-steps { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.su-step { display: flex; gap: 12px; padding: 9px 0; }
.su-step + .su-step { border-top: 1px dashed #e6eaf3; }
.su-dot {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #d5dceb;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.su-dot svg { width: 13px; height: 13px; }
.su-step.fait .su-dot { background: #17864a; border-color: #17864a; }
.su-step.courante .su-dot { border-color: #e5342b; box-shadow: 0 0 0 4px rgba(229, 52, 43, .12); }
.su-step.avenir .su-dot { border-style: dashed; }
.su-step-txt { display: flex; flex-direction: column; gap: 2px; padding-top: 1px; }
.su-step-txt b { font-size: 13px; color: #1d2b52; }
.su-step.avenir .su-step-txt b { color: #8b93a7; font-weight: 700; }
.su-step-txt small { font-size: 11.5px; color: #6b7488; line-height: 1.45; }
.su-step-txt em { font-size: 10.5px; color: #9aa4bb; font-style: normal; }

.su-msg {
  margin: 10px 0 4px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #eef3ff;
  border-left: 3px solid #2f6fed;
}
.su-msg-lab {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .7px;
  font-weight: 800;
  color: #2f6fed;
}
.su-msg p { margin: 5px 0 0; font-size: 12.5px; line-height: 1.55; color: #27324c; }

.su-motif {
  margin: 10px 0 4px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #ffeeed;
  color: #a3231c;
  font-size: 12.5px;
  line-height: 1.5;
  font-weight: 600;
}

.su-live { margin: 10px 0 12px; font-size: 10.5px; color: #9aa4bb; text-align: center; }

/* masquage fiable des blocs en mode refusé */
.su-progress[hidden], .su-steps[hidden], .su-msg[hidden], .su-motif[hidden] { display: none !important; }

/* sous-titre de la feuille Envoyer : deux lignes lisibles */
#sendSheet .sheet-sub {
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* --- bulle d'erreur (page QR) --- */
.bulle-erreur {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 14px;
  padding: 11px 13px;
  background: #fdecea;
  border: 1px solid #f3b7b1;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(198, 40, 40, .08);
}
.bulle-ico {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e5342b;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.bulle-ico svg { width: 14px; height: 14px; }
.bulle-txt {
  font-size: 12.5px;
  line-height: 1.5;
  color: #b3261e;
  font-weight: 600;
}

/* montant d'une sortie pas encore débitée */
.hist-mt.attente { color: #9aa4bb; font-weight: 700; }

/* --- carte d'accès : couleurs claires identiques aux cartes de l'accueil --- */
.badge-own {
  background: #ffffff;
  color: #1d2b52;
  border: 1px solid #e6eaf3;
  box-shadow: 0 6px 18px rgba(29, 43, 82, .06);
}
.badge-own .badge-top .avatar {
  background: #eef3ff;
  color: #2f6fed;
}
.badge-own .badge-qui small { color: #6b768f; opacity: 1; }
.badge-own .badge-top .chip {
  background: #e7f7ee;
  color: #17864a;
}
.badge-own .badge-data {
  background: #f7f9fe;
  border: 1px solid #eaeff8;
}
.badge-own .bd-row { border-bottom-color: #e8ecf5; }
.badge-own .bd-lab { color: #6b768f; opacity: 1; }
.badge-own .bd-val b { color: #1d2b52; }
.badge-own .badge-data .code-mask { color: #1d2b52; }
.badge-own .badge-data .eye-toggle { color: #2f6fed; }
.badge-own .badge-note { color: #6b768f; opacity: 1; }

/* --- cadre « Destinataire » : couleurs claires comme l'accueil --- */
.dest-carte {
  background: #ffffff;
  color: #1d2b52;
  border: 1px solid #e6eaf3;
  box-shadow: 0 6px 18px rgba(29, 43, 82, .06);
}
.dest-carte .dc-lab { color: #6b768f; opacity: 1; }
.dest-carte .bd-row { border-bottom-color: #e8ecf5; }
.dest-carte .bd-lab { color: #6b768f; }
.dest-carte .code-mask { color: #1d2b52; }
.dest-carte .eye-toggle { color: #2f6fed; }
.dest-carte .bd-val b { color: #1d2b52; }

/* --- mes cartes enregistrées --- */
.sec-titre {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 2px 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: #6b768f;
}
.sec-count {
  font-size: 11px;
  background: #eef3ff;
  color: #2f6fed;
  border-radius: 20px;
  padding: 2px 8px;
  letter-spacing: 0;
  font-weight: 800;
}
.benefs { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.benef {
  background: #fff;
  border: 1px solid #e6eaf3;
  border-radius: 16px;
  padding: 12px 14px 12px;
  box-shadow: 0 6px 18px rgba(29, 43, 82, .05);
}
.benef-head { display: flex; align-items: center; gap: 10px; }
.benef-av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eef3ff;
  color: #2f6fed;
  font-weight: 800;
  font-size: 12px;
  display: grid;
  place-items: center;
  letter-spacing: .5px;
}
.benef-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.benef-meta b { font-size: 13.5px; color: #1d2b52; }
.benef-meta small { font-size: 11.5px; color: #7b8499; }
.benef-del {
  border: 0;
  background: #f4f6fb;
  color: #9aa4bb;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.benef-del:hover { background: #fdecea; color: #d4342b; }
.benef-del svg { width: 16px; height: 16px; }
.benef-data {
  margin: 10px 0 4px;
  padding: 2px 11px;
  background: #f7f9fe;
  border: 1px solid #eaeff8;
  border-radius: 12px;
}
.benef-data .bd-row { border-bottom: 1px solid #e8ecf5; }
.benef-data .bd-row:last-child { border-bottom: 0; }
.benef-data .bd-lab { color: #6b768f; font-size: 11.5px; }
.benef-data .code-mask { color: #1d2b52; font-size: 13.5px; font-weight: 800; letter-spacing: 1.4px; }
.benef-data .eye-toggle { color: #2f6fed; }
.benef-go {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  padding: 10px;
  border-radius: 11px;
  background: #eef3ff;
  color: #2f6fed;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
}
.benef-go svg { width: 15px; height: 15px; }
.benef-go:active { transform: scale(.99); }

/* --- bloc « nouvelle carte » repliable --- */
.nouvelle { margin-top: 6px; }
.nouvelle > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border: 1px dashed #cdd8ee;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 800;
  color: #2f6fed;
  background: #fbfcff;
}
.nouvelle > summary::-webkit-details-marker { display: none; }
.nouvelle > summary .plus {
  width: 22px; height: 22px; border-radius: 50%;
  background: #eef3ff; color: #2f6fed;
  display: grid; place-items: center; font-size: 16px; line-height: 1;
}
.nouvelle[open] > summary { margin-bottom: 10px; }
.nouvelle .carte-form { margin-top: 0; }

/* --- case à cocher --- */
.check-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 2px 0 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #4a556e;
  cursor: pointer;
}
.check-line input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #2f6fed;
  flex: 0 0 18px;
}

/* --- lien « ajouter une autre carte » --- */
.lien-nouvelle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 10px;
  padding: 12px 14px;
  border: 1px dashed #cdd8ee;
  border-radius: 13px;
  background: #fbfcff;
  color: #2f6fed;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.lien-nouvelle .plus {
  width: 22px; height: 22px; border-radius: 50%;
  background: #eef3ff;
  display: grid; place-items: center;
  font-size: 16px; line-height: 1;
}
.lien-nouvelle:active { transform: scale(.995); }

/* note sous le bouton Continuer */
.cf-note {
  display: block;
  margin-top: 8px;
  font-size: 11.5px;
  color: #8b95ab;
  text-align: center;
}
.btn-primary:disabled,
.carte-form .btn-primary[disabled] {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}

/* ===== Pourquoi SendSafe : losange + points numérotés ===== */
.pq-card { padding-bottom: 4px; }

.pq-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: center;
  padding: 16px 18px 8px;
}

.pq-visuel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 236px;
  border-radius: 18px;
  background: linear-gradient(160deg, #f3f5ff 0%, #e7ebff 100%);
  border: 1px solid #e2e7fb;
  overflow: hidden;
}
.pq-losange {
  position: absolute;
  border-radius: 24px;
  transform: rotate(45deg);
}
.pq-l1 { width: 168px; height: 168px; background: rgba(36, 18, 240, .09); }
.pq-l2 { width: 126px; height: 126px; background: rgba(36, 18, 240, .16); }

.pq-photo {
  position: relative;
  z-index: 2;
  width: 150px;
  transform: rotate(-10deg);
  filter: drop-shadow(0 14px 22px rgba(16, 24, 52, .22));
}
.pq-photo img { display: block; width: 100%; border-radius: 12px; }

.pq-fallback { display: none; }
.pq-photo.sans-photo img { display: none; }
.pq-photo.sans-photo .pq-fallback {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  aspect-ratio: 1.58 / 1;
  padding: 11px 12px;
  border-radius: 12px;
  background: #fff;
}
.pq-fallback .fb-chip {
  width: 26px; height: 19px; border-radius: 5px;
  background: linear-gradient(135deg, #3b2bff, #1a08c9);
}
.pq-fallback .fb-num { font-size: 9px; font-weight: 700; letter-spacing: .6px; color: #1d2b52; }
.pq-fallback .fb-line { height: 4px; border-radius: 2px; background: #e8ecf5; }
.pq-fallback .fb-line.short { width: 58%; }
.pq-fallback .fb-brand { font-size: 9px; font-weight: 900; letter-spacing: .6px; color: var(--blue); }

.pq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.pq-list li { display: flex; gap: 13px; align-items: flex-start; }
.pq-n {
  flex: 0 0 30px;
  font-size: 33px;
  line-height: .85;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--blue);
}
.pq-list b { display: block; font-size: 13.5px; font-weight: 800; color: var(--ink); margin-bottom: 3px; }
.pq-list small { display: block; font-size: 12px; line-height: 1.5; color: var(--muted); }

.pq-actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 16px 18px 20px; }

@media (max-width: 720px) {
  .pq-body { grid-template-columns: 1fr; gap: 16px; padding: 14px 16px 4px; }
  .pq-visuel { min-height: 196px; }
  .pq-l1 { width: 140px; height: 140px; }
  .pq-l2 { width: 104px; height: 104px; }
  .pq-photo { width: 128px; }
  .pq-n { flex-basis: 26px; font-size: 28px; }
}

/* ===== Deuxième section : plaque bleue, visuel à droite ===== */
.pq-blue {
  margin-top: 14px;
  padding: 0;
  border: none;
  background: linear-gradient(150deg, #2a14f5 0%, #1a08c9 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.pq-blue::before {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  right: -110px; top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%);
  pointer-events: none;
}

.pb-body {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 226px;
  gap: 22px;
  align-items: center;
  padding: 24px 22px;
}

.pb-title {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.24;
  font-weight: 900;
  letter-spacing: -.2px;
  color: #fff;
}
.pb-p {
  margin: 0 0 16px;
  font-size: 12.6px;
  line-height: 1.62;
  color: rgba(255,255,255,.84);
}
.pb-sub {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
}
.pb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.pb-list li {
  position: relative;
  padding-left: 17px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255,255,255,.92);
}
.pb-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 5.5px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #9db0ff;
}

.pb-visuel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 216px;
}
.pb-diamant {
  position: absolute;
  width: 148px; height: 148px;
  border-radius: 22px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, rgba(255,255,255,.26), rgba(255,255,255,.05));
  box-shadow: 0 18px 40px rgba(6, 4, 60, .35);
}
.pb-diamant::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,0));
}

.pb-photo {
  position: relative;
  z-index: 2;
  width: 142px;
  transform: rotate(10deg);
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .38));
}
.pb-photo img { display: block; width: 100%; border-radius: 12px; }

.pb-fallback { display: none; }
.pb-photo.sans-photo img { display: none; }
.pb-photo.sans-photo .pb-fallback {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  aspect-ratio: 1.58 / 1;
  padding: 10px 11px;
  border-radius: 12px;
  background: #fff;
}
.pb-fallback .fb-chip {
  width: 24px; height: 18px; border-radius: 5px;
  background: linear-gradient(135deg, #3b2bff, #1a08c9);
}
.pb-fallback .fb-num { font-size: 8.5px; font-weight: 700; letter-spacing: .5px; color: #1d2b52; }
.pb-fallback .fb-line { height: 4px; border-radius: 2px; background: #e8ecf5; }
.pb-fallback .fb-line.short { width: 58%; }
.pb-fallback .fb-brand { font-size: 8.5px; font-weight: 900; letter-spacing: .6px; color: var(--blue); }

@media (max-width: 720px) {
  .pq-blue { margin-top: 12px; }
  .pb-body { grid-template-columns: 1fr; gap: 14px; padding: 20px 18px 22px; }
  .pb-visuel { order: -1; min-height: 186px; }
  .pb-diamant { width: 124px; height: 124px; border-radius: 18px; }
  .pb-photo { width: 124px; }
  .pb-title { font-size: 19px; }
}

/* la plaque bleue se place sous la carte « Pourquoi SendSafe », même colonne */
@media (min-width: 721px) {
  .pq-blue { grid-column: 2; }
}

/* ===== Avis clients : carrousel ===== */
.avis-card {
  padding: 22px 0 16px;
  margin-top: 14px;
  overflow: hidden;
}
@media (min-width: 721px) { .avis-card { grid-column: 2; } }

.avis-title {
  margin: 0 0 16px;
  padding: 0 22px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -.2px;
  color: var(--ink);
  text-align: center;
}

.avis-cadre { position: relative; }

.avis-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 46px;
  scroll-padding-right: 46px;
  scroll-behavior: smooth;
  padding: 2px 46px 8px;
  scrollbar-width: none;
}
.avis-rail::-webkit-scrollbar { display: none; }

.avis-item {
  flex: 0 0 206px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 13px 13px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(16, 24, 52, .04);
}

.avis-etoiles { display: flex; gap: 2px; }
.avis-etoiles svg { width: 15px; height: 15px; }
.avis-etoiles .on { fill: var(--blue); }
.avis-etoiles .off { fill: #dfe4ef; }

.avis-verifie {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px 2px 5px;
  border-radius: 6px;
  background: #eef1f8;
  color: #6b7488;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .2px;
}
.avis-verifie svg { width: 9px; height: 9px; }

.avis-titre {
  margin: 0;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.avis-texte {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #6b7488;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.avis-auteur {
  margin: auto 0 0;
  font-size: 10.5px;
  color: #9aa3b8;
}

.avis-fleche {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #56607a;
  box-shadow: 0 3px 10px rgba(16, 24, 52, .10);
  cursor: pointer;
  padding: 0;
}
.avis-fleche svg { width: 15px; height: 15px; }
.avis-fleche:disabled { opacity: .35; cursor: default; }
.avis-gauche { left: 6px; }
.avis-droite { right: 6px; }

.avis-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 0;
  font-size: 11.5px;
  color: #6b7488;
}
.avis-note b { color: var(--ink); }
.avis-note-star { width: 13px; height: 13px; fill: var(--blue); }

@media (max-width: 720px) {
  .avis-card { padding: 18px 0 14px; }
  .avis-title { font-size: 15.5px; padding: 0 18px; margin-bottom: 13px; }
  .avis-item { flex-basis: 186px; }
  .avis-rail { padding: 2px 18px 6px; scroll-padding-left: 18px; scroll-padding-right: 18px; }
  .avis-fleche { display: none; }
}

/* ===== Grand pied de page ===== */
.site-footer {
  margin-top: auto;
  padding: 26px 20px 18px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(168deg, #1c2130 0%, #151926 55%, #10131d 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  right: -90px; top: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.07), transparent 70%);
  pointer-events: none;
}

.sf-brand {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.3px;
}
.sf-tag {
  margin: 5px 0 16px;
  font-size: 11.5px;
  line-height: 1.55;
  color: rgba(255,255,255,.66);
  max-width: 300px;
}


.sf-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.sf-cols h4 {
  margin: 0 0 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: rgba(255,255,255,.52);
}
.sf-cols a {
  display: block;
  padding: 4px 0;
  font-size: 12px;
  color: rgba(255,255,255,.88);
  text-decoration: none;
}
.sf-cols a:active { opacity: .7; }

.sf-legal {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
  font-size: 10.5px;
  line-height: 1.6;
  color: rgba(255,255,255,.52);
}

.sf-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.sf-mark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: -.2px;
}
.sf-mark .diamond {
  width: 9px; height: 9px;
  border-radius: 2px;
  background: #fff;
  transform: rotate(45deg);
}
.sf-top {
  font-size: 10.5px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.3);
  padding-bottom: 1px;
}

/* les flèches du carrousel se détachent sur un dégradé, pas sur le texte des cartes */
@media (min-width: 721px) {
  .avis-cadre::before,
  .avis-cadre::after {
    content: "";
    position: absolute;
    top: 0; bottom: 8px;
    width: 40px;
    z-index: 2;
    pointer-events: none;
  }
  .avis-cadre::before { left: 0; background: linear-gradient(90deg, #fff 55%, rgba(255,255,255,0)); }
  .avis-cadre::after  { right: 0; background: linear-gradient(270deg, #fff 55%, rgba(255,255,255,0)); }
}

/* la photo s'adapte à son format, sans jamais déborder du losange */
.pq-photo img,
.pb-photo img {
  width: 100%;
  height: auto;
  max-height: 190px;
  object-fit: cover;
  border-radius: 12px;
}
@media (max-width: 720px) {
  .pq-photo img { max-height: 160px; }
  .pb-photo img { max-height: 150px; }
}

/* photo affichée dans son format réel, sans recadrage ni étirement */
.pq-photo img,
.pb-photo img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 12px;
  background: transparent;
}
@media (max-width: 720px) {
  .pq-photo img,
  .pb-photo img { max-height: none; }
}

/* ---- cadre vertical : la photo garde son format réel, sans recadrage ---- */
.pq-photo,
.pb-photo {
  width: 196px;
  height: 232px;
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 26px rgba(16, 24, 52, .18);
  transform: rotate(-6deg);
}
.pb-photo {
  transform: rotate(6deg);
  background: #fff;
}
.pq-photo img,
.pb-photo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: none;
}
/* la carte dessinée en CSS garde le cadre vertical */
.pq-photo.sans-photo .pq-fallback,
.pb-photo.sans-photo .pb-fallback {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  justify-content: space-between;
  padding: 14px 13px;
}
@media (max-width: 720px) {
  .pq-photo, .pb-photo { width: 168px; height: 200px; }
  .pq-photo img, .pb-photo img { max-width: 100%; max-height: 100%; }
}

/* ---- plus de fond blanc derrière les photos : l'image seule ---- */
.pq-photo,
.pb-photo {
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.pq-photo img,
.pb-photo img {
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(10, 14, 40, .30);
}

/* ---- cadrage final : la photo seule, entière, dans une hauteur fixe ---- */
.pq-photo,
.pb-photo {
  width: 100%;
  height: 236px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.pq-photo img,
.pb-photo img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(10, 14, 40, .30);
}
@media (max-width: 720px) {
  .pq-photo, .pb-photo { height: 204px; }
}

/* ---- verrou final (les règles précédentes se contredisaient) ---- */
.pq-photo,
.pb-photo {
  width: 100% !important;
  height: 236px !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: grid !important;
  place-items: center !important;
}
.pq-photo img,
.pb-photo img {
  width: auto !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 236px !important;
  object-fit: contain !important;
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(10, 14, 40, .30);
}
@media (max-width: 720px) {
  .pq-photo, .pb-photo { height: 200px !important; }
  .pq-photo img, .pb-photo img { max-height: 200px !important; }
}

/* la photo doit tenir entièrement dans le panneau, sans être rognée par son bord */
.pq-visuel { min-height: 262px !important; }
.pq-photo, .pb-photo { height: 214px !important; }
.pq-photo img, .pb-photo img { max-height: 214px !important; }
@media (max-width: 720px) {
  .pq-visuel { min-height: 224px !important; }
  .pq-photo, .pb-photo { height: 180px !important; }
  .pq-photo img, .pb-photo img { max-height: 180px !important; }
}

/* =====================================================================
   VISUEL DES DEUX SECTIONS — simple : un cadre, l'image entière dedans.
   Aucun losange, aucune rotation, aucune ombre, aucun recadrage.
   ===================================================================== */
.pq-visuel {
  display: block !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.pq-photo,
.pb-photo {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  display: block !important;
  padding: 8px !important;
  margin: 0 !important;
  background: transparent !important;
  border: 1px solid #e3e8f2 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
}

.pb-photo {
  border-color: rgba(255, 255, 255, .35) !important;
}

.pq-photo img,
.pb-photo img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  transform: none !important;
}

/* le repli (carte dessinée) suit la même simplicité */
.pq-photo.sans-photo .pq-fallback,
.pb-photo.sans-photo .pb-fallback {
  aspect-ratio: 1.58 / 1 !important;
  height: auto !important;
}

/* sur téléphone, le cadre reste raisonnable et centré */
@media (max-width: 720px) {
  .pq-photo, .pb-photo {
    max-width: 220px !important;
    margin: 0 auto !important;
  }
}

/* ===== blocs éditoriaux : héros public + texte long ===== */
.hero-pub {
  margin: 0 0 14px;
  padding: 26px 22px 24px;
  border-radius: 20px;
  background: linear-gradient(160deg, #f4f6ff 0%, #e6ebff 100%);
  border: 1px solid #e2e7fb;
}
.hero-pub .sur-titre {
  margin: 0 0 9px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #2f6fed;
}
.hero-pub h1 {
  margin: 0 0 10px;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -.6px;
  color: var(--ink);
}
.hero-pub p {
  margin: 0;
  font-size: 13px;
  line-height: 1.62;
  color: #5b6580;
}
.hero-pub .cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.prose { padding: 18px 20px; }
.prose h3 {
  margin: 0 0 9px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.2px;
  color: var(--ink);
}
.prose p {
  margin: 0 0 10px;
  font-size: 12.8px;
  line-height: 1.62;
  color: #5b6580;
}
.prose p:last-child { margin-bottom: 0; }
.prose ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.prose li {
  position: relative;
  padding-left: 23px;
  font-size: 12.6px;
  line-height: 1.55;
  color: #5b6580;
}
.prose li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
  color: var(--blue);
}
.prose li b { color: var(--ink); }

.hero-pub--bleu {
  background: linear-gradient(155deg, #2a14f5 0%, #1a08c9 100%);
  border: none;
}
.hero-pub--bleu h1 { color: #fff; }
.hero-pub--bleu p { color: rgba(255, 255, 255, .82); }
.hero-pub--bleu .sur-titre { color: rgba(255, 255, 255, .72); }

@media (max-width: 720px) {
  .hero-pub { padding: 22px 18px 20px; border-radius: 18px; }
  .hero-pub h1 { font-size: 22px; }
}

/* ===== pied de page : appel à l'action + bloc d'aide ===== */
.sf-cta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 15px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
}
.sf-cta b {
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
}
.sf-cta span {
  font-size: 11px;
  color: rgba(255, 255, 255, .62);
}
.sf-cta-btn {
  align-self: flex-start;
  margin-top: 8px;
  padding: 10px 18px;
  border-radius: 11px;
  background: #fff;
  color: #1a08c9;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.sf-aide {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .10);
}
.sf-aide h4 {
  margin: 0 0 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .52);
}
.sf-aide p {
  margin: 0 0 8px;
  font-size: 11.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .66);
}
.sf-aide a {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  padding-bottom: 1px;
}

/* bouton secondaire lisible sur le héros clair */
.hero-pub .btn-ghost {
  background: #fff;
  border: 1px solid #d7dff5;
  color: #2412f0;
}
.hero-pub--bleu .btn-ghost {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .40);
  color: #fff;
}

/* ===== héros avec photo : l'image en haut, le texte dessous ===== */
.hero-pub--photo {
  padding: 0;
  overflow: hidden;
}
.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: cover;
  object-position: center 35%;
}
.hero-pub--photo .hero-texte {
  padding: 18px 20px 20px;
}
@media (max-width: 720px) {
  .hero-photo { max-height: 210px; }
  .hero-pub--photo .hero-texte { padding: 16px 18px 18px; }
}

/* héros photo : texte au-dessus, image entière en dessous avec une ombre douce */
.hero-pub--photo {
  padding: 20px;
}
.hero-pub--photo .hero-texte {
  padding: 0 0 16px;
}
.hero-pub--photo .hero-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(16, 24, 52, .16);
}
@media (max-width: 720px) {
  .hero-pub--photo { padding: 16px; }
  .hero-pub--photo .hero-texte { padding: 0 0 14px; }
  .hero-pub--photo .hero-photo { max-height: none; }
}

/* héros photo : image entière, texte posé dessus, voile léger pour la lisibilité */
.hero-pub--photo {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(16, 24, 52, .14);
  background: #0b1024;
}
.hero-pub--photo .hero-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}
.hero-pub--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
              rgba(8, 12, 32, 0) 28%,
              rgba(8, 12, 32, .55) 62%,
              rgba(8, 12, 32, .82) 100%);
  pointer-events: none;
}
.hero-pub--photo .hero-texte {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 16px 18px 18px;
}
.hero-pub--photo .sur-titre {
  margin: 0 0 6px;
  color: #cfd8ff;
}
.hero-pub--photo h1 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.2;
  color: #fff;
}
.hero-pub--photo .hero-texte > p:last-child {
  margin: 0;
  font-size: 11.8px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .88);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 720px) {
  .hero-pub--photo { border-radius: 18px; }
  .hero-pub--photo .hero-texte { padding: 14px 16px 15px; }
  .hero-pub--photo h1 { font-size: 18px; }
  .hero-pub--photo .hero-texte > p:last-child { font-size: 11.2px; -webkit-line-clamp: 2; }
}

/* titre du héros Contact : plus gros, sur deux lignes */
.hero-pub--photo h1 { font-size: 22px; letter-spacing: -.4px; }
@media (max-width: 720px) {
  .hero-pub--photo h1 { font-size: 17.5px; line-height: 1.22; }
}

/* =====================================================================
   Pages publiques : vraie mise en page large sur ordinateur.
   Le mobile (≤ 767 px) garde exactement la présentation d'origine.
   ===================================================================== */
@media (min-width: 768px) {

  .is-public-large main.page-body {
    max-width: 1120px;
    margin: 0 auto;
    padding: 26px 28px 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }

  /* tout ce qui doit occuper les deux colonnes */
  .is-public-large .page-head,
  .is-public-large .hero-pub,
  .is-public-large > main > .alert,
  .is-public-large .lead {
    grid-column: 1 / -1;
  }

  .is-public-large .page-head { margin-bottom: 0; }
  .is-public-large .hero-pub { margin-bottom: 4px; }

  /* le héros photo respire : l'image garde son format, en grand */
  .is-public-large .hero-pub--photo .hero-photo {
    max-height: none;
  }
  .is-public-large .hero-pub h1 { font-size: 30px; }
  .is-public-large .hero-pub--photo h1 { font-size: 26px; }
  .is-public-large .hero-pub p { font-size: 14px; }
  .is-public-large .hero-pub--photo .hero-texte { padding: 24px 26px 26px; }
  .is-public-large .hero-pub--photo .hero-texte > p:last-child {
    font-size: 13px;
    -webkit-line-clamp: 3;
  }

  /* les blocs de texte se répartissent en deux colonnes */
  .is-public-large .doc { margin: 0; }
  .is-public-large .prose { padding: 22px 24px; }
  .is-public-large .prose h3 { font-size: 16px; }
  .is-public-large .prose p,
  .is-public-large .prose li { font-size: 13.2px; }

  /* contact : le formulaire à gauche, les explications à droite */
  .is-public-large form.doc { margin: 0; padding: 22px 24px; }

  /* témoignages : les avis par deux */
  .is-public-large .quote { margin: 0; }

  /* pied de page : trois colonnes */
  .is-public-large .site-footer {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 0 26px;
    padding: 30px 32px 22px;
    border-radius: 24px 24px 0 0;
  }
  .is-public-large .sf-cta { grid-column: 1 / -1; margin-bottom: 24px; }
  .is-public-large .sf-brand,
  .is-public-large .sf-tag { grid-column: 1; }
  .is-public-large .sf-cols {
    grid-column: 2 / -1;
    margin: 0;
    padding: 0;
    border: 0;
    gap: 26px;
  }
  .is-public-large .sf-aide {
    grid-column: 1 / -1;
    margin-top: 22px;
    padding-top: 18px;
  }
  .is-public-large .sf-legal,
  .is-public-large .sf-bottom { grid-column: 1 / -1; }
}

/* bouton principal du héros : plein, lisible sur fond clair */
.hero-pub .btn-primary {
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  font-weight: 800;
  text-decoration: none;
}
.hero-pub--bleu .btn-primary {
  background: #fff;
  color: #1a08c9;
  border-color: #fff;
}

/* mobile : boutons du héros pleine largeur, titre un peu plus compact */
@media (max-width: 767px) {
  .hero-pub .cta-row { gap: 9px; }
  .hero-pub .cta-row > a {
    flex: 1 1 100%;
    text-align: center;
    padding: 12px 16px !important;
    font-size: 13px;
    border-radius: 12px;
  }
  .hero-pub h1 { font-size: 21px; }
  .hero-pub--photo h1 { font-size: 17.5px; }
}


/* sélecteur de langue */


/* accueil public : plus de colonne de gauche, les blocs prennent toute la largeur */
@media (min-width: 1024px) {
  main.main-public { grid-template-columns: minmax(0, 1fr); }
  main.main-public > .pq-card,
  main.main-public > .pq-blue,
  main.main-public > .avis-card { grid-column: 1 / -1; }
}

/* pied de page : les trois colonnes de liens s'alignent sur ordinateur */
@media (min-width: 768px) {
  .is-public-large .sf-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 26px;
    align-items: start;
  }
}

/* pied de page : trois colonnes de liens alignées, sur toutes les pages publiques */
@media (min-width: 768px) {
  .site-footer .sf-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 26px;
    align-items: start;
  }
}


/* icône du site dans l'en-tête */
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  object-fit: cover;
  flex: 0 0 auto;
  display: block;
  box-shadow: 0 6px 14px rgba(36, 18, 240, .28);
}


/* case « rester connecté » sur la page de connexion */
.rester {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 2px 0 14px;
  font-size: 13px;
  color: #4a5468;
  cursor: pointer;
}
.rester input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  cursor: pointer;
}

/* ---------- PAGE PROFIL ---------- */
.page-body .profil-head,.profil-head{position:relative;overflow:hidden;border-radius:var(--radius);padding:22px 20px 20px;margin-bottom:14px;color:#fff;background:linear-gradient(135deg,#2412f0 0%,#3a22ff 58%,#5b3cff 100%);box-shadow:0 16px 36px rgba(36,18,240,.26)}
.profil-head::after{content:"";position:absolute;right:-46px;top:-58px;width:190px;height:190px;border-radius:50%;background:rgba(255,255,255,.10);pointer-events:none}
.profil-head::before{content:"";position:absolute;left:-58px;bottom:-86px;width:170px;height:170px;border-radius:50%;background:rgba(255,255,255,.07);pointer-events:none}
.profil-head .profil-avatar{width:64px;height:64px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:700;letter-spacing:1px;color:#2412f0;background:#fff;box-shadow:0 8px 20px rgba(12,8,60,.22);position:relative;z-index:1}
.profil-head .profil-nom{margin:13px 0 3px;font-size:19px;font-weight:700;letter-spacing:-.2px;line-height:1.25;position:relative;z-index:1}
.profil-head .profil-mail{margin:0;font-size:12.5px;color:rgba(255,255,255,.84);display:flex;align-items:center;gap:6px;flex-wrap:wrap;position:relative;z-index:1;word-break:break-all}
.profil-head .profil-mail svg{width:14px;height:14px;flex:0 0 auto;opacity:.9}
.profil-statut{display:inline-flex;align-items:center;gap:7px;margin-top:13px;padding:5px 11px;border-radius:999px;font-size:11.5px;font-weight:600;letter-spacing:.2px;background:rgba(255,255,255,.17);border:1px solid rgba(255,255,255,.26);position:relative;z-index:1}
.profil-statut i{width:6px;height:6px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 3px rgba(74,222,128,.25)}
.profil-statut.att i{background:#fbbf24;box-shadow:0 0 0 3px rgba(251,191,36,.25)}

.profil-solde{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px;margin-bottom:14px;box-shadow:var(--shadow)}
.profil-solde .gauche small{display:block;font-size:10.5px;font-weight:650;letter-spacing:.8px;text-transform:uppercase;color:var(--muted);margin-bottom:5px}
.profil-solde .gauche b{font-size:27px;font-weight:750;color:var(--ink);letter-spacing:-.6px;font-variant-numeric:tabular-nums;line-height:1.1}
.profil-solde .gauche em{font-style:normal;font-size:15px;font-weight:600;color:var(--muted);margin-left:4px}
.profil-solde .droite{text-align:right;border-left:1px solid var(--line);padding-left:16px}
.profil-solde .droite b{display:block;font-size:18px;font-weight:700;color:var(--ink);line-height:1.1;font-variant-numeric:tabular-nums}
.profil-solde .droite span{display:block;margin-top:4px;font-size:11px;color:var(--muted);line-height:1.35;max-width:88px}

.profil-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:14px;overflow:hidden}
.profil-card > h2{margin:0;padding:15px 18px 7px;font-size:10.5px;font-weight:700;letter-spacing:.9px;text-transform:uppercase;color:var(--muted)}
.profil-rows{list-style:none;margin:0;padding:0}
.profil-rows li{display:flex;align-items:center;gap:12px;padding:12px 18px;border-top:1px solid #f2f4fa}
.profil-rows li:first-child{border-top:0}
.profil-rows .ico{width:34px;height:34px;border-radius:11px;background:#f3f4fc;color:#2412f0;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.profil-rows .ico svg{width:16.5px;height:16.5px}
.profil-rows .txt{flex:1;min-width:0}
.profil-rows .lab{margin:0 0 2px;font-size:11px;color:var(--muted);line-height:1.3}
.profil-rows .val{margin:0;font-size:13.5px;font-weight:600;color:var(--ink);line-height:1.35;word-break:break-word}
.profil-rows .val.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px;letter-spacing:.7px;font-weight:600}
.btn-oeil{flex:0 0 auto;border:1px solid var(--line);background:#fff;color:#2412f0;font:inherit;font-size:11.5px;font-weight:600;padding:6px 11px;border-radius:10px;cursor:pointer;transition:background .18s ease,border-color .18s ease}
.btn-oeil:hover{background:#f5f4ff;border-color:#d8d2ff}
.btn-oeil:active{transform:scale(.97)}

.profil-pref{padding:16px 18px 18px;margin:0}
.profil-pref .ligne{display:flex;align-items:flex-start;gap:14px;cursor:pointer}
.profil-pref .switch{position:relative;flex:0 0 auto;width:46px;height:27px;margin-top:1px}
.profil-pref .switch input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:2}
.profil-pref .piste{position:absolute;inset:0;border-radius:999px;background:#dfe3ee;transition:background .25s ease}
.profil-pref .bouton{position:absolute;top:3px;left:3px;width:21px;height:21px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(15,24,48,.24);transition:transform .26s cubic-bezier(.4,0,.2,1)}
.profil-pref input:checked ~ .piste{background:#2412f0}
.profil-pref input:checked ~ .bouton{transform:translateX(19px)}
.profil-pref input:focus-visible ~ .piste{outline:2px solid #2412f0;outline-offset:3px}
.profil-pref .txt{min-width:0}
.profil-pref .titre{display:block;font-size:13.5px;font-weight:600;color:#1a2136;line-height:1.42}
.profil-pref .etat{display:flex;align-items:flex-start;gap:6px;margin-top:8px;font-size:11.5px;color:var(--muted);line-height:1.4}
.profil-pref .etat i{width:6px;height:6px;border-radius:50%;background:#c7ccdb;margin-top:5px;flex:0 0 auto;transition:background .25s ease}
.profil-pref .etat b{font-weight:650;color:#7c8497;transition:color .25s ease}
.profil-pref.actif .etat i{background:#16a34a;box-shadow:0 0 0 3px rgba(22,163,74,.16)}
.profil-pref.actif .etat b{color:#15803d}
.profil-pref .btn-primary{margin-top:16px;width:100%}

.profil-actions{display:grid;gap:10px;margin-bottom:6px}
.btn-profil{display:block;width:100%;text-align:center;text-decoration:none;padding:13px;border-radius:15px;font-size:13.5px;font-weight:600;transition:background .18s ease,transform .12s ease}
.btn-profil.fantome{background:#fff;border:1px solid var(--line);color:#8a93a8}
.btn-profil.fantome:hover{background:#fafbff;color:#5c6478}
.btn-profil:active{transform:scale(.99)}

@media (max-width:360px){
  .profil-rows li{padding:11px 14px;gap:10px}
  .profil-solde .gauche b{font-size:24px}
}
@media (prefers-reduced-motion:reduce){
  .profil-pref .piste,.profil-pref .bouton,.profil-pref .etat i,.btn-oeil,.btn-profil{transition:none}
}
