/* Refonte « Les touches » — lot 5 : accueil sans connexion, connexion, Mon espace, Ma liste,
   Notifications, pas-à-pas iPhone, proposition de notifications. */

/* ---------- la porte : accueil sans connexion et connexion ---------- */
body.theme-touches .t-porte{min-height:100dvh;display:grid;align-items:center;padding:
  calc(28px + env(safe-area-inset-top,0px)) var(--gouttiere) calc(28px + env(safe-area-inset-bottom,0px))}
.t-porte-in{width:100%;max-width:720px;margin:0 auto}
.t-porte-in--etroit{max-width:420px}
.t-porte-logo{font:900 clamp(2.4rem,12.5vw,6rem) var(--f-texte);letter-spacing:-.065em;line-height:.9;margin:0 0 22px;color:var(--encre);white-space:nowrap}
/* « pop » : une vraie touche jaune posée dans le mot, légèrement de travers. */
.t-porte-logo b{display:inline-block;font-weight:900;background:var(--jaune);border-radius:.16em;padding:0 .08em .06em;margin:0 .03em;
  transform:rotate(-4deg) translateY(-.04em);box-shadow:inset 0 -.07em 0 var(--jaune-bord),0 .03em 0 #9aa600}
.t-porte-phrase{font:800 clamp(1.25rem,4.6vw,1.75rem)/1.2 var(--f-texte);letter-spacing:-.03em;margin:0 0 28px;max-width:24ch;text-wrap:balance}
.t-porte-btn{min-height:58px;padding:15px 24px 18px;font-size:1.1rem;border-radius:18px}
.t-porte-btn svg{width:20px;height:20px}
.t-porte-note{font:400 .78rem var(--f-pixel);color:var(--encre-2);margin:18px 0 0}

.t-porte-mini{display:inline-block;font:900 1.5rem var(--f-texte);letter-spacing:-.055em;color:var(--encre);text-decoration:none;margin:0 0 18px;
  min-height:44px;padding:6px 2px}
.t-porte-mini b{background:var(--jaune);padding:0 4px;border-radius:6px;font-weight:900}
.t-login h1{font:900 2.2rem var(--f-texte);letter-spacing:-.045em;line-height:1;margin:0 0 6px}
.t-login-sous{font:400 .78rem var(--f-pixel);color:var(--encre-2);margin:0 0 20px}
.t-login .t-btn{width:100%;margin-top:6px;min-height:54px}
.t-login-aide{font:600 .95rem/1.45 var(--f-texte);color:var(--encre-2);margin:16px 4px 0}

/* champ de saisie : un creux dans la plaque, libellé en pixel au-dessus */
.t-etiq{display:block;font:400 .75rem var(--f-pixel);color:var(--encre);margin:0 0 6px}
.t-saisie{display:block;width:100%;min-height:52px;border:0;border-radius:14px;background:var(--creux);color:var(--encre);
  font:700 1.05rem var(--f-texte);padding:13px 14px 14px;margin:0 0 14px;box-shadow:inset 0 3px 0 rgba(11,11,12,.07);outline:none}
.t-saisie:focus-visible,.t-saisie:focus{outline:3px solid var(--lien);outline-offset:2px}

/* ---------- Mon espace ---------- */
.t-moi-h{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin:0 0 22px}
.t-moi-h h1{font:900 clamp(1.9rem,6vw,2.8rem) var(--f-texte);letter-spacing:-.04em;line-height:.95;margin:0}
.t-moi-qui{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:0;font:600 1rem var(--f-texte);color:var(--encre-2)}
.t-moi-qui b{color:var(--encre);font-weight:800}
.t-moi-sortie{margin:20px 0 40px}
.t-chiffres{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 32px;max-width:640px}
.t-chiffre{display:flex;flex-direction:column;justify-content:space-between;gap:10px;padding:14px 14px 18px;min-height:112px}
.t-chiffre b{font:400 clamp(2rem,9vw,2.8rem) var(--f-pixel);line-height:1;font-weight:400}
.t-chiffre span{font:800 .92rem/1.15 var(--f-texte);letter-spacing:-.01em}
/* Ce qui reste à faire (noter, commenter) porte le rond orange ; zéro, il s'éteint. */
.t-chiffre .t-rond{margin-left:6px;vertical-align:.35em}
.t-moi-bloc{margin:0 0 32px;max-width:760px}
.t-chiffres-attente{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:640px}
.t-chiffres-attente div{height:112px;border-radius:var(--r-touche);background:var(--creux);animation:t-pulse 1.4s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){.t-chiffres-attente div{animation:none}}
.t-moi-bloc .t-rail{margin-bottom:6px}
.t-moi-vide{font:600 1rem var(--f-texte);color:var(--encre-2);margin:0 0 12px}
.t-reglages{display:grid;gap:4px}
.t-reglage-ligne{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin:0;font:600 .95rem/1.45 var(--f-texte);min-height:44px}
.t-reglage-ligne .t-lien{min-height:44px}
.t-reglage-ligne[hidden]{display:none}
.t-reglages-canaux{display:grid;gap:8px;padding:0 0 12px;margin:0 0 6px;border-bottom:1.5px solid var(--creux)}
.t-reglages .t-coche{margin:0}
.t-moi-note{font:400 .8rem/1.5 var(--f-mono);color:var(--encre-2);margin:10px 0 0}
.t-compte-sub{font:600 .98rem/1.45 var(--f-texte);color:var(--encre-2);margin:0 0 16px;max-width:52ch}
.t-compte-form{max-width:460px}
@media (max-width:420px){.t-chiffre{padding:12px 10px 16px}.t-chiffre span{font-size:.84rem}}

/* ---------- Mon profil (photo, pseudo) ---------- */
.t-profil-attente{height:260px;max-width:760px;border-radius:var(--r-touche);background:var(--creux);margin:0 0 32px;animation:t-pulse 1.4s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){.t-profil-attente{animation:none}}
.t-profil{max-width:460px}
.t-profil-photo{display:flex;align-items:center;gap:16px;margin:0 0 18px}
.t-profil-av{flex:0 0 auto;display:inline-flex}
.t-profil-av .t-av{width:96px;height:96px;font-size:2.4rem;box-shadow:inset 0 -5px 0 rgba(0,0,0,.18)}
.t-profil-btns{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
.t-profil-aide{margin:-6px 0 4px}
.t-profil .t-err-l{margin:8px 0 12px}
/* Alerte vide : reste dans l'arbre d'accessibilité (une zone display:none n'annonce rien) mais ne prend aucune place. */
.t-profil .t-err-l:empty{display:block;height:0;margin:0;padding:0;border:0;overflow:hidden}
.t-profil .t-err-l:empty::before{content:none}
.t-profil [data-profil-go]{margin-top:4px}
@media (max-width:359px){.t-profil-photo{flex-direction:column;align-items:flex-start}}

/* ---------- Mon espace, tablette et ordinateur (dès 720 px) ----------
   Des rangées pleine largeur, dans l'ordre de lecture : le profil (carte en largeur : la photo à gauche, le pseudo à droite),
   les trois compteurs, Ma liste (son rail profite de la largeur), puis les deux réglages côte à côte, titres et plaques alignés
   (sous-grille : la plaque des notifications prend la hauteur de celle du compte). Une seule gouttière : 24 px. */
@media (min-width:720px){
  .t-moi-bloc,.t-chiffres,.t-chiffres-attente,.t-profil,.t-profil-attente,.t-notifs{max-width:none}
  .t-chiffres{gap:16px}
  .t-chiffres-attente{gap:16px;margin:0 0 32px}
  .t-chiffre{min-height:120px;padding:16px 18px 20px}
  .t-profil-attente{height:196px}
  .t-profil{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:28px;align-items:start;padding:20px 22px 22px}
  .t-profil>*{grid-column:2}
  .t-profil .t-profil-photo{grid-column:1;grid-row:1/span 5;align-self:stretch;margin:0;padding-right:28px;border-right:1.5px solid var(--creux)}
  .t-profil .t-saisie{margin-bottom:12px}
  .t-profil-aide{margin:0 0 4px}
  .t-profil [data-profil-go]{justify-self:start}
  .t-moi-reglages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px;align-items:start}
  .t-moi-reglages .t-compte-form{max-width:none}
  @supports (grid-template-rows:subgrid){
    .t-moi-reglages{grid-template-rows:auto auto}
    .t-moi-reglages>.t-moi-bloc{display:grid;grid-row:span 2;grid-template-rows:subgrid;align-content:start}
    .t-moi-reglages .t-plaque{height:100%}
  }
}
/* Ordinateur : le pseudo et « Enregistrer » sur la même ligne ; le champ (20 caractères) ne s'étire pas sur toute la carte. */
@media (min-width:1024px){
  .t-profil{grid-template-columns:auto minmax(0,30rem) auto;justify-content:start}
  .t-profil>*{grid-column:2/span 2}
  .t-profil .t-saisie{grid-column:2;grid-row:2}
  .t-profil [data-profil-go]{grid-column:3;grid-row:2;margin:0;min-height:52px}
}

/* ---------- Ma liste ---------- */
.t-rang-h .t-compte-txt{font:400 .75rem var(--f-pixel);color:var(--encre-2)}
.t-liste-item{display:flex;flex-direction:column;gap:8px;min-width:0;height:100%}
/* Actions en bas de la case : les « Retirer » s'alignent d'une carte à l'autre. */
.t-liste-acts{display:flex;flex-direction:column;gap:6px;margin-top:auto}
.t-liste-acts .t-btn{width:100%;min-height:44px;padding:9px 12px 12px;font-size:.9rem;border-radius:14px}
.t-liste-acts .t-btn svg{width:16px;height:16px}

/* ---------- Notifications ---------- */
.t-notifs{max-width:760px}
.t-dmd-liste{display:grid;gap:12px}
.t-dmd{display:flex;gap:14px;padding:12px 16px 18px 12px}
.t-dmd-aff{flex:0 0 64px;width:64px;height:96px;border-radius:10px;object-fit:cover;background:var(--creux);display:grid;place-items:center;
  font:800 .7rem var(--f-texte);text-align:center;padding:4px;overflow:hidden}
.t-dmd-b{min-width:0;flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.t-dmd-t{font:800 1.05rem/1.2 var(--f-texte);letter-spacing:-.01em;margin:0;overflow-wrap:anywhere}
.t-dmd-meta{margin:-4px 0 0}
.t-etapes{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.t-etapes li{display:inline-flex;align-items:center;gap:6px;font:400 .72rem var(--f-pixel);padding:5px 8px;border-radius:8px;
  background:var(--creux);color:var(--encre-2)}
.t-etapes li.t-fait{color:var(--encre)}
.t-etapes li.t-ici{background:var(--noir);color:var(--encre-inv)}
.t-dmd-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px}
.t-notif-liste{display:grid;gap:10px}
.t-notif{display:flex;align-items:flex-start;gap:12px;padding:12px 16px 16px 12px;color:var(--encre);text-decoration:none}
.t-notif-ic{flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:var(--creux);display:grid;place-items:center;font-size:1.15rem}
.t-notif-ic .ico{width:20px;height:20px}
.t-notif-b{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}
.t-notif-t{font:700 .98rem/1.4 var(--f-texte);overflow-wrap:anywhere}
.t-notif .t-disc-quand{margin:0}

/* ---------- proposition de notifications (sous un avis, sur une fiche à ajouter) ---------- */
.t-push-prop{margin-top:14px;display:flex;flex-direction:column;gap:12px;max-width:560px}
.t-push-prop p{margin:0;display:flex;align-items:flex-start;gap:10px;font:700 1rem/1.4 var(--f-texte)}
.t-push-prop p svg{flex:0 0 auto;width:22px;height:22px;margin-top:1px}
.t-push-prop-b{display:flex;flex-wrap:wrap;gap:8px}

/* ---------- pas-à-pas iPhone ---------- */
.t-guide{position:fixed;inset:0;z-index:60;background:rgba(11,11,12,.6);display:flex;align-items:flex-end;justify-content:center;
  padding:16px 16px calc(16px + env(safe-area-inset-bottom,0px))}
@media (min-width:600px){.t-guide{align-items:center}}
.t-guide-b{background:var(--touche);color:var(--encre);border-radius:22px;max-width:460px;width:100%;padding:22px 20px 20px;
  max-height:calc(100dvh - 32px);overflow:auto;box-shadow:inset 0 -5px 0 var(--touche-bord),0 20px 50px -20px rgba(0,0,0,.6);
  font-family:var(--f-texte)}
.t-guide-b h2{font:900 1.45rem/1.1 var(--f-texte);letter-spacing:-.035em;margin:0 0 10px}
.t-guide-b>p{font:600 .98rem/1.45 var(--f-texte);color:var(--encre-2);margin:0 0 16px}
.t-guide-b ol{list-style:none;margin:0 0 20px;padding:0;display:flex;flex-direction:column;gap:14px}
.t-guide-b li{display:flex;gap:12px;align-items:flex-start;font:500 1rem/1.45 var(--f-texte)}
.t-guide-b li b{font-weight:800}
.t-guide-b li svg{vertical-align:-5px;color:var(--lien)}
.t-guide-n{flex:0 0 30px;height:30px;border-radius:9px;background:var(--jaune);color:var(--noir);display:grid;place-items:center;
  font:400 .9rem var(--f-pixel);box-shadow:inset 0 -3px 0 var(--jaune-bord)}
.t-guide-b .t-btn{width:100%}

/* Couleurs (lot 6) — Notifications, option A : le picto prend la couleur de ce qui se passe ;
   les nouvelles sont sur un fond jaune pâle. */
.t-notif-ic--star{background:var(--jaune)}
.t-notif-ic--bulle{background:#a3b5ff}
.t-notif-ic--check{background:var(--menthe)}
.t-notif-ic--find{background:#ff7a3d}
.t-notif-ic--bas{background:var(--bleu-vif)}
.t-notif-ic--sablier{background:#f9ffbf}
.t-notif-ic--marque{background:#ff9ecf}
.t-notif-ic[class*="t-notif-ic--"]{box-shadow:inset 0 -3px 0 rgba(0,0,0,.15)}
.t-notif--neuf{background:var(--neuf)}
/* Mon espace, option A : les compteurs sont des touches de couleur (texte noir dessus). */
.t-chiffre--menthe{background:var(--menthe);box-shadow:inset 0 -5px 0 #3fc988,0 2px 0 var(--touche-ombre),0 12px 20px -14px rgba(0,0,0,.35)}
.t-chiffre--jaune{background:var(--jaune);box-shadow:inset 0 -5px 0 var(--jaune-bord),0 2px 0 var(--touche-ombre),0 12px 20px -14px rgba(0,0,0,.35)}
.t-chiffre--orange{background:var(--orange);box-shadow:inset 0 -5px 0 #b83700,0 2px 0 var(--touche-ombre),0 12px 20px -14px rgba(0,0,0,.35)}
.t-chiffre[class*="t-chiffre--"] span{color:var(--noir)}
/* Le rond orange ne se verrait pas sur l'orange : il passe en noir sur les touches de couleur. */
.t-chiffre[class*="t-chiffre--"] .t-rond,.t-chiffre[class*="t-chiffre--"] .t-rond::after{background:var(--noir)}
/* Pictos et chiffres posés sur une couleur vive : toujours en noir (mode sombre compris). */
.t-notif-ic[class*="t-notif-ic--"],.t-chiffre[class*="t-chiffre--"] b{color:var(--noir)}

