/* ============================================================================
 * MYCELL — comptes, social, espace entreprise, confort
 *                                                      build mycell-2026-10-04-2
 * Mouvement : entrées en cascade, particules, cloche, transitions de vues.
 * Tout est coupé par « animations réduites » (système ou panneau Confort).
 * ========================================================================== */

/* ─── Confort : échelle du texte, contraste renforcé, espacement ─── */
:root { --echelle: 1; }
body { zoom: var(--echelle); }
:root[data-contraste="fort"] { --ink2: #1F2E47; --ink3: #3E4E68; --ligne: rgba(15,29,51,.35); --accent-t: #0B4FAF; --carte: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root[data-contraste="fort"]:not([data-theme="light"]) { --ink2: #E0E8F5; --ink3: #C4D0E3; --ligne: rgba(232,238,249,.4); --accent-t: #B5D3FF; --carte: #0E1A30; } }
:root[data-theme="dark"][data-contraste="fort"] { --ink2: #E0E8F5; --ink3: #C4D0E3; --ligne: rgba(232,238,249,.4); --accent-t: #B5D3FF; --carte: #0E1A30; }
:root[data-contraste="fort"] .carte-c, :root[data-contraste="fort"] .bloc, :root[data-contraste="fort"] .bt.second { border-width: 2px; }
:root[data-contraste="fort"] :focus-visible { outline-width: 4px; }
:root[data-espacement] body { letter-spacing: .06em; word-spacing: .16em; line-height: 1.75; }
:root[data-espacement] p { margin-bottom: .4em; }
:root[data-mouvement="reduit"] *, :root[data-mouvement="reduit"] *::before, :root[data-mouvement="reduit"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
:root[data-mouvement="reduit"] #fond-reseau { display: none; }

/* ─── Transitions de vues (View Transitions API) ─── */
::view-transition-old(root) { animation: 160ms ease both vt-sortie; }
::view-transition-new(root) { animation: 260ms var(--ease) both vt-entree; }
@keyframes vt-sortie { to { opacity: 0; } }
@keyframes vt-entree { from { opacity: 0; transform: translateY(6px); } }

/* ─── Entrées en cascade ─── */
.carte-c, .tuile, .une-carte, .offre, .produit, .notifs li { animation: cascade .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms); }
@keyframes cascade { from { opacity: 0; transform: translateY(10px) scale(.985); } }

/* ─── Particules et confettis ─── */
.particule { position: fixed; z-index: 60; pointer-events: none; font-size: 16px; color: var(--rouge); transform: translate(-50%, -50%); animation: particule .85s var(--ease) forwards; }
@keyframes particule { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.6); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.25); } }
.confetti { position: fixed; top: -12px; z-index: 60; width: 8px; height: 14px; border-radius: 2px; pointer-events: none; animation: confetti 1.9s cubic-bezier(.2,.6,.4,1) forwards; }
@keyframes confetti { to { transform: translateY(105vh) rotate(var(--rot)); opacity: .2; } }

/* ─── Toast enrichi ─── */
.toast { display: flex; align-items: center; gap: 10px; pointer-events: none; width: max-content; }
.bandeau .fermer-bandeau { margin-left: auto; border: 0; background: none; color: inherit; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.toast.on { pointer-events: auto; }
.toast .ic { width: 18px; height: 18px; }
.toast.ko { background: var(--rouge); color: #fff; }
.toast-action { border: 0; background: rgba(255,255,255,.18); color: inherit; font-weight: 800; border-radius: 8px; padding: 5px 10px; }

/* ─── Boutons et utilitaires ─── */
.rang-bt { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.rang-bt.gauche { justify-content: flex-start; } .rang-bt.droite { justify-content: flex-end; margin-top: 0; } .rang-bt.entre { justify-content: space-between; margin: 0 0 12px; }
.bt.large { width: 100%; height: 52px; font-size: var(--t-l); }
.bt.petit { height: 36px; padding: 0 12px; font-size: var(--t-s); }
.bt.rond { width: 48px; height: 48px; padding: 0; border-radius: 50%; flex-shrink: 0; }
.bt.danger { background: linear-gradient(160deg, #E4566D, var(--rouge)); box-shadow: 0 6px 18px rgba(217,58,84,.28); }
.danger-texte { color: var(--ko-t) !important; }
.lien.centre { display: block; margin: 12px auto 0; }
.petit-gris { font-size: var(--t-xs); color: var(--ink3); margin-top: 10px; }
.rang-icb { display: flex; gap: 8px; }
.icb.petit { width: 32px; height: 32px; border-radius: 10px; border: 0; background: transparent; color: var(--ink3); }
.icb.petit .ic { width: 17px; height: 17px; }
.sans-maj { text-transform: none; letter-spacing: 0; }
.h3-sous { text-transform: none; letter-spacing: 0; font-weight: 600; }
.bloc.nu { background: transparent; border: 0; padding: 0; }
.choix-prix { margin-left: auto; color: var(--ink3); font-weight: 600; }
.compteur.vif { background: var(--rouge); box-shadow: 0 0 0 2px var(--fond); }
.cote-lien { display: block; margin-top: 10px; padding: 0 12px; font-size: var(--t-xs); color: var(--ink3); }
.cote-pied { display: flex; flex-direction: column; gap: 8px; }
.cote-pied .bt-theme { position: relative; }
.cote-pied .bt-theme .compteur { position: static; margin-left: auto; }
.onglets { grid-template-columns: repeat(var(--n, 4), 1fr); }
.bascule .ic { width: 17px; height: 17px; }

/* Cloche */
.icb.cloche, [data-action="notifications"] { position: relative; }
[data-action="notifications"] .compteur { position: absolute; top: -5px; right: -5px; left: auto; }
.tete [data-action="notifications"] .lib { display: none; }
.cote-pied [data-action="notifications"] .compteur { position: static; margin-left: auto; }
.sonne .ic { animation: sonne .9s ease; transform-origin: 50% 10%; }
@keyframes sonne { 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }

/* ─── Étoiles ─── */
.etoiles { display: inline-flex; gap: 2px; vertical-align: -2px; }
.etoiles i { width: 16px; height: 16px; background: var(--ligne); -webkit-mask: var(--etoile) center / contain no-repeat; mask: var(--etoile) center / contain no-repeat; }
.etoiles i.pleine { background: var(--or); }
.etoiles i.demi { background: linear-gradient(90deg, var(--or) 50%, var(--ligne) 50%); }
.etoiles.petites i { width: 13px; height: 13px; }
:root { --etoile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.5 2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5-4.8-4.6 6.6-.9Z'/%3E%3C/svg%3E"); }
.note-courte { display: inline-flex; align-items: center; gap: 3px; font-size: var(--t-xs); font-weight: 800; color: var(--or-t); font-variant-numeric: tabular-nums; }
.note-courte .ic { width: 13px; height: 13px; fill: var(--or); stroke: var(--or); }
.note-courte em { font-style: normal; font-weight: 600; color: var(--ink3); }
.pmr { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(59,140,255,.12); color: var(--accent-t); }
.pmr .ic { width: 15px; height: 15px; }
.une-sous { display: block; font-size: var(--t-s); color: var(--ink2); }
.annonce-mini { display: flex; gap: 8px; align-items: flex-start; font-size: var(--t-s); font-weight: 700; color: var(--or-t); }
.annonce-mini .ic { width: 17px; height: 17px; flex-shrink: 0; }

/* ─── Pastilles de membres ─── */
.pastille-membre { display: inline-grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; font-weight: 800; font-size: 15px;
  background: oklch(var(--av-l) var(--av-c) var(--h)); color: oklch(var(--av-tl) var(--av-tc) var(--h)); }
.pastille-membre.grande { width: 56px; height: 56px; font-size: 22px; }
.pastille-membre.geante { width: 84px; height: 84px; font-size: 34px; box-shadow: 0 16px 40px rgba(29,111,224,.2); }

/* ─── Feuille générique ─── */
.voile2 { z-index: 30; }
.feuille { position: fixed; z-index: 31; left: 0; right: 0; bottom: 0; max-height: 92dvh; display: flex; flex-direction: column; background: var(--fond); background-image: var(--grad-ciel);
  border-radius: 26px 26px 0 0; box-shadow: var(--ombre-forte); animation: monte .36s var(--ease) both; outline: none; }
/* Clavier ouvert (téléphone) : la feuille se pose au-dessus du clavier et tient dans la partie visible */
@media (max-width: 759px) {
  html.clavier .feuille { bottom: var(--clavier, 0px); max-height: calc(var(--vue-h, 100dvh) - 12px); }
  html.clavier .fc { min-height: 0; }
  html.clavier .fc-liste { max-height: calc(var(--vue-h, 60dvh) * .38); }
  html.clavier .fc-regles { display: none; }
}
.feuille-defil { overflow-y: auto; overscroll-behavior: contain; padding: 4px var(--gout) calc(22px + env(safe-area-inset-bottom, 0px)); }
.feuille-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0 12px; }
.feuille-tete h2 { font-family: var(--font-titre); font-size: var(--t-xl); font-weight: 850; letter-spacing: -.3px; }
.confirm-texte { color: var(--ink2); }
.export { margin-top: 12px; max-height: 50dvh; overflow: auto; padding: 12px; border-radius: 12px; background: var(--code-bg, #0E1A2E); color: #CFE0FF; font-family: var(--mono); font-size: 12px; white-space: pre-wrap; word-break: break-word; }
@media (min-width: 760px) {
  .feuille { left: 50%; right: auto; bottom: auto; top: 50%; width: min(520px, calc(100% - 32px)); max-height: 86dvh; border-radius: 26px; transform: translate(-50%, -50%); animation: feuille-pop .3s var(--ressort) both; }
  .feuille.large { width: min(760px, calc(100% - 32px)); }
  .feuille .fiche-poignee { display: none; }
  .feuille-defil { padding-top: 12px; }
}
/* Nom propre à la feuille : commerce.css a aussi un « pop » (sans translate) qui la décentrait sur PC */
@keyframes feuille-pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%); } }

/* ─── Connexion ─── */
.connexion { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 0 10px; }
.acc-carte { width: min(430px, 100%); padding: 28px 22px 24px; border-radius: 28px; background: var(--verre); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--ligne); box-shadow: 0 30px 80px rgba(29,111,224,.14), 0 4px 14px rgba(15,45,90,.06); }
.acc-etape { display: flex; flex-direction: column; gap: 12px; animation: glisse-g .45s var(--ease) both; }
@keyframes glisse-g { from { opacity: 0; transform: translateX(14px); } }
.acc-etape h1 { font-family: var(--font-titre); font-size: 24px; font-weight: 850; letter-spacing: -.4px; text-align: center; text-wrap: balance; }
.acc-sous { text-align: center; color: var(--ink2); font-size: var(--t-m); }
.acc-logo, .acc-avatar, .acc-icone { display: grid; place-items: center; }
.acc-logo img { filter: drop-shadow(0 8px 20px rgba(217,165,43,.4)); animation: flotte 5s ease-in-out infinite; }
@keyframes flotte { 50% { transform: translateY(-4px); } }   /* logo bien droit (plus de rotation) */
.acc-icone .ic { width: 52px; height: 52px; padding: 12px; border-radius: 18px; color: #fff; background: linear-gradient(150deg, var(--bleu2), var(--lagon)); box-shadow: 0 14px 32px rgba(20,184,166,.3); }
.acc-bio-ic { display: grid; place-items: center; width: 108px; height: 108px; margin: 4px auto; border-radius: 34px; color: #fff; background: linear-gradient(150deg, var(--bleu2), var(--lagon)); box-shadow: 0 18px 40px rgba(20,184,166,.35); animation: pulse 2.4s ease-in-out infinite; }
.acc-bio-ic .ic { width: 58px; height: 58px; }
@keyframes pulse { 50% { transform: scale(1.05); box-shadow: 0 22px 52px rgba(20,184,166,.45); } }
.acc-liens { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.acc-info { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-s); color: var(--ink2); padding: 12px; border-radius: 14px; background: var(--neutre-fond); }
.acc-info .ic { color: var(--or); margin-top: 1px; }
.acc-pied { display: flex; align-items: center; gap: 8px; font-size: var(--t-xs); color: var(--ink3); text-align: center; flex-wrap: wrap; justify-content: center; }
.acc-pied .ic { width: 15px; height: 15px; }
.demo-rapide { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--ligne); font-size: var(--t-xs); color: var(--ink3); font-weight: 700; }
.otp { width: 100%; text-align: center; font-family: var(--mono); font-size: 30px; letter-spacing: .5em; padding: 14px 0 14px .5em; border-radius: 16px; border: 1px solid var(--ligne); background: var(--carte2); color: var(--ink); }
.otp:focus { outline: none; border-color: var(--bleu2); box-shadow: 0 0 0 4px rgba(59,140,255,.18); }
.bienvenue { align-items: center; padding: 18px 0; }
.bienvenue .pastille-membre { animation: bienvenue .8s var(--ressort) both; }
@keyframes bienvenue { from { transform: scale(.4); opacity: 0; } }

/* Pavé du code */
.code-zone { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.code-cache { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pastilles { display: flex; justify-content: center; gap: 20px; margin: 6px 0 2px; }
.pastilles i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink3); transition: background .15s, border-color .15s, transform .25s var(--ressort); }
.pastilles i.on { background: var(--bleu); border-color: var(--bleu); transform: scale(1.18); }
.pastilles.erreur { animation: secoue .45s; }
.pastilles.erreur i { border-color: var(--rouge); background: var(--rouge); }
.pastilles.ok i { background: var(--vert); border-color: var(--vert); }
@keyframes secoue { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
.code-msg { min-height: 20px; text-align: center; font-size: var(--t-s); font-weight: 650; color: var(--ko-t); }
.code-zone.attente .code-msg { color: var(--ink2); }
.pave { display: grid; grid-template-columns: repeat(3, 72px); gap: 12px 22px; margin-top: 6px; }
.pave button, .pave span { width: 72px; height: 72px; }
.pave button { border-radius: 50%; border: 1px solid var(--ligne); background: var(--carte); color: var(--ink); font-size: 28px; font-weight: 650; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(15,45,90,.05); transition: transform .12s, background .12s; font-variant-numeric: tabular-nums; }
.pave button:active { transform: scale(.9); background: rgba(59,140,255,.18); }
.pave .pave-bio, .pave .pave-del { background: transparent; border-color: transparent; box-shadow: none; color: var(--accent-t); }
.pave .ic { width: 28px; height: 28px; }
.code-zone.attente .pave { opacity: .5; pointer-events: none; }
/* Déjà inscrit : code MyCell ou clé d'accès (sans code e-mail) */
.acc-sep { display: flex; align-items: center; gap: 10px; color: var(--ink3); font-size: var(--t-xs); font-weight: 750; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.acc-sep::before, .acc-sep::after { content: ""; flex: 1; height: 1px; background: var(--ligne); }
.acc-sep span { text-align: center; }
.acc-rapide { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 440px) { .acc-rapide { grid-template-columns: 1fr; } }
.acc-rapide .bt { justify-content: center; min-height: 48px; white-space: nowrap; font-size: clamp(14px, 3.9vw, 15px); }
/* Smartphone : carte cadrée, rien ne déborde ni ne se coupe en plein mot */
.acc-carte { box-sizing: border-box; max-width: 100%; overflow-wrap: break-word; }
.acc-etape .bt.large { white-space: nowrap; font-size: clamp(15px, 4.2vw, 17px); }
.acc-etape .acc-info span { text-wrap: pretty; }
@media (max-width: 420px) {
  .connexion { padding-top: 14px; }
  .acc-carte { padding: 22px 16px 20px; border-radius: 24px; }
  .acc-etape h1 { font-size: 22px; }
  .code-zone { width: 100%; }
  .pave { grid-template-columns: repeat(3, minmax(60px, 68px)); gap: 10px clamp(12px, 5vw, 20px); justify-content: center; }
  .pave button, .pave span { width: auto; height: auto; aspect-ratio: 1; }
}

/* ─── Compte ─── */
.compte-grille { display: grid; gap: 12px; }
.compte-grille .bloc h4 { margin: 16px 0 8px; font-size: var(--t-s); color: var(--ink2); }
.profil-tete { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.profil-tete > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.profil-pseudo { font-family: var(--font-titre); font-size: var(--t-xl); font-weight: 850; }
.profil-form { display: grid; gap: 12px; }
.teintes { display: flex; gap: 10px; flex-wrap: wrap; }
.teinte { position: relative; width: 36px; height: 36px; border-radius: 50%; background: oklch(.72 .13 var(--h)); cursor: pointer; }
.teinte input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.teinte:has(input:checked) { box-shadow: 0 0 0 3px var(--fond), 0 0 0 5px var(--bleu2); }
.teinte:has(input:focus-visible) { outline: 3px solid var(--bleu2); outline-offset: 4px; }
.reglages, .appareils { list-style: none; display: grid; }
.reglages li, .appareils li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.reglages li:last-child, .appareils li:last-child { border-bottom: 0; }
.reglages li > span, .appareils li > span { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; align-items: center; min-width: 0; }
.reglages li > span .ic, .appareils li > span .ic { grid-row: span 2; color: var(--ink3); }
.reglages small, .appareils small { color: var(--ink3); font-size: var(--t-xs); }
.appareils em { font-style: normal; font-weight: 600; color: var(--vert); }
.bascule-rond { position: relative; flex-shrink: 0; width: 52px; height: 32px; border-radius: 99px; border: 0; background: var(--ink3); transition: background .2s; }
.bascule-rond i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .25s var(--ressort); }
.bascule-rond[aria-checked="true"] { background: var(--vert); }
.bascule-rond[aria-checked="true"] i { transform: translateX(20px); }
.segment.large { display: flex; margin: 0; width: 100%; }
.segment.large button, .seg-radio { flex: 1; height: 40px; display: grid; place-items: center; border-radius: 9px; font-weight: 700; font-size: var(--t-s); color: var(--ink2); cursor: pointer; }
.segment.large button[aria-checked="true"], .seg-radio:has(input:checked) { background: var(--carte); color: var(--ink); box-shadow: 0 1px 4px rgba(15,45,90,.12); }
.seg-radio input { position: absolute; opacity: 0; }
.seg-radio:has(input:focus-visible) { outline: 3px solid var(--bleu2); }
.confort { display: grid; gap: 16px; }

/* ─── Confidentialité ─── */
.texte-legal h2 { font-family: var(--font-titre); font-size: var(--t-l); font-weight: 800; margin: 24px 0 8px; }
.texte-legal p { color: var(--ink2); max-width: 70ch; }
.resume-rgpd { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.resume-rgpd .bloc { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.resume-rgpd .ic { width: 26px; height: 26px; color: var(--lagon); }
.resume-rgpd p { font-size: var(--t-s); }
.tableau-defil { overflow-x: auto; border-radius: var(--r-s); border: 1px solid var(--ligne); }
.tableau { width: 100%; border-collapse: collapse; font-size: var(--t-s); min-width: 620px; background: var(--carte); }
.tableau th, .tableau td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.tableau th { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .6px; color: var(--ink3); }

/* ─── Fiche : annonce, note, écrire, accessibilité ─── */
.annonce { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; padding: 12px 14px; border-radius: 14px; font-weight: 750; font-size: var(--t-s);
  color: #3A2600; background: linear-gradient(120deg, #FFE9AE, #F7CE6A); box-shadow: 0 8px 22px rgba(217,165,43,.25); position: relative; overflow: hidden; }
.annonce::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%); transform: translateX(-100%); animation: reflet 4s ease-in-out 1s infinite; }
@keyframes reflet { 40%, 100% { transform: translateX(100%); } }
.note-lien { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 0; font-size: var(--t-xs); color: var(--ink2); }
.note-lien b { color: var(--ink); }
.bt-ecrire { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; margin-bottom: 14px; border: 0; border-radius: 16px; font-weight: 800; font-size: var(--t-m);
  color: #fff; background: linear-gradient(135deg, var(--bleu2), var(--lagon)); box-shadow: 0 10px 24px rgba(20,184,166,.28); }
.bt-ecrire.mien { background: linear-gradient(135deg, var(--or2), var(--or)); color: #2A1B00; box-shadow: 0 10px 24px rgba(217,165,43,.28); }
.onglets-fiche { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); }
.acces { list-style: none; display: grid; gap: 8px; }
.acces li { display: flex; gap: 10px; align-items: center; font-weight: 650; }
.acces .ic { color: var(--accent-t); }
.mini-bt { display: inline-grid; place-items: center; text-decoration: none; }

/* ─── Avis ─── */
.avis-resume { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 16px; margin-bottom: 12px; border-radius: var(--r); background: var(--carte); border: 1px solid var(--ligne); }
.avis-moyenne { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.avis-moyenne b { font-family: var(--font-titre); font-size: 42px; font-weight: 850; line-height: 1; letter-spacing: -1px; }
.avis-moyenne span { font-size: var(--t-xs); color: var(--ink3); font-weight: 700; }
.repartition { display: grid; gap: 5px; }
.rep-ligne { display: grid; grid-template-columns: 12px 1fr 24px; gap: 8px; align-items: center; font-size: var(--t-xs); color: var(--ink2); font-variant-numeric: tabular-nums; }
.rep-barre { height: 8px; border-radius: 99px; background: var(--neutre-fond); overflow: hidden; }
.rep-barre i { display: block; height: 100%; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--or2), var(--or)); animation: remplit .9s var(--ease) both; }
@keyframes remplit { from { width: 0; } }
.rep-n { text-align: right; }
.invite-avis { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px; margin-bottom: 12px; border-radius: var(--r); background: var(--or-fond); }
.invite-avis > .ic { width: 30px; height: 30px; color: var(--or); fill: var(--or); }
.invite-avis div { flex: 1; min-width: 160px; } .invite-avis p { font-size: var(--t-s); color: var(--ink2); }
.form-avis { display: grid; gap: 10px; padding: 16px; margin-bottom: 12px; border-radius: var(--r); background: var(--carte); border: 1px solid var(--bleu2); box-shadow: 0 0 0 4px rgba(59,140,255,.1); animation: cascade .4s var(--ease) both; }
.form-avis h3 { font-size: var(--t-m); }
.form-avis textarea { width: 100%; min-height: 90px; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--ligne); background: var(--carte2); font-size: 16px; resize: vertical; }
.choix-note { border: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.etoiles-choix { display: flex; flex-direction: row-reverse; justify-content: flex-end; }
.etoiles-choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.etoiles-choix label { cursor: pointer; padding: 4px; color: var(--ligne); transition: transform .2s var(--ressort), color .15s; }
.etoiles-choix label .ic { width: 36px; height: 36px; fill: currentColor; stroke: currentColor; }
.etoiles-choix input:checked ~ label, .etoiles-choix label:hover, .etoiles-choix label:hover ~ label { color: var(--or); }
.etoiles-choix input:checked + label { transform: scale(1.15); }
.etoiles-choix input:focus-visible + label { outline: 3px solid var(--bleu2); border-radius: 8px; }
.lib-note { font-weight: 750; color: var(--ink2); font-size: var(--t-s); }
.liste-avis { display: grid; gap: 10px; }
.avis { padding: 14px; border-radius: var(--r); background: var(--carte); border: 1px solid var(--ligne); display: grid; gap: 10px; animation: cascade .45s var(--ease) both; }
.avis header { display: flex; align-items: center; gap: 10px; }
.avis header > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.avis header > div > span { font-size: var(--t-xs); color: var(--ink3); display: flex; align-items: center; gap: 5px; }
.avis .moi { font-style: normal; font-size: 11px; font-weight: 800; color: var(--accent-t); background: rgba(59,140,255,.12); padding: 1px 6px; border-radius: 6px; }
.avis-texte { color: var(--ink); white-space: pre-line; }
.reactions { display: flex; flex-wrap: wrap; gap: 6px; position: relative; }
.reac { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--ligne); background: var(--carte2); font-size: 15px; transition: transform .2s var(--ressort), background .15s; }
.reac b { font-size: 12px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.reac:active { transform: scale(.9); }
.reac.mienne { border-color: var(--bleu2); background: rgba(59,140,255,.12); }
.reac.ajouter { color: var(--ink3); font-size: 12px; font-weight: 700; }
.reac.ajouter .ic { width: 18px; height: 18px; }
.reac-choix { position: absolute; bottom: 38px; left: 0; z-index: 4; display: flex; gap: 2px; padding: 6px; border-radius: 99px; background: var(--carte); border: 1px solid var(--ligne); box-shadow: var(--ombre-forte); animation: pop-reac .25s var(--ressort) both; }
@keyframes pop-reac { from { opacity: 0; transform: translateY(8px) scale(.8); } }
.reac-choix button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; font-size: 24px; transition: transform .15s var(--ressort); }
.reac-choix button:hover, .reac-choix button:focus-visible { transform: scale(1.3) translateY(-3px); }
.reponse { padding: 12px; border-radius: 14px; background: var(--neutre-fond); border-left: 3px solid var(--or); display: grid; gap: 4px; }
.reponse b { display: flex; align-items: center; gap: 6px; font-size: var(--t-xs); color: var(--or-t); }
.reponse b .ic { width: 15px; height: 15px; }
.reponse p { font-size: var(--t-s); }
.reponse span { font-size: 11px; color: var(--ink3); }

/* ─── Messagerie ─── */
.messagerie { display: grid; gap: 12px; }
.conv-liste, .convs, .convs li, .conv { min-width: 0; }
.convs { list-style: none; display: grid; gap: 6px; }
.conv { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: var(--r); border: 1px solid var(--ligne); background: var(--carte); text-align: left; }
.conv.active { border-color: var(--bleu2); box-shadow: 0 0 0 3px rgba(59,140,255,.12); }
.conv-corps { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.conv-corps span { font-size: var(--t-s); color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv.non-lu .conv-corps b, .conv.non-lu .conv-corps span { color: var(--ink); font-weight: 750; }
.conv-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.conv-meta small { font-size: 11px; color: var(--ink3); white-space: nowrap; }
.conv-meta .compteur { position: static; }
.fil { display: flex; flex-direction: column; min-height: 0; border-radius: var(--r-l); background: var(--carte); border: 1px solid var(--ligne); overflow: hidden; }
.fil-vide { display: grid; place-items: center; gap: 8px; padding: 50px 20px; color: var(--ink3); text-align: center; }
.fil-vide .ic { width: 34px; height: 34px; }
.fil-vide.petit { padding: 24px; }
.fil-tete { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--ligne); background: var(--verre); }
.fil-tete > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fil-tete small { color: var(--ink3); font-size: var(--t-xs); }
.bulles { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; min-height: 280px; max-height: calc(100dvh - 330px); }
.bulle { max-width: 80%; align-self: flex-start; padding: 9px 13px 6px; border-radius: 18px 18px 18px 6px; background: var(--neutre-fond); color: var(--ink); }
.bulle.moi { align-self: flex-end; border-radius: 18px 18px 6px 18px; color: #fff; background: linear-gradient(150deg, var(--bleu2), var(--bleu)); }
.bulle p { white-space: pre-wrap; word-break: break-word; }
.bulle time { display: block; margin-top: 2px; font-size: 10.5px; opacity: .7; text-align: right; }
.bulle.envoi { opacity: .65; }
.bulle.neuve { animation: bulle .35s var(--ressort) both; }
@keyframes bulle { from { opacity: 0; transform: translateY(8px) scale(.94); } }
.jour-sep { display: flex; justify-content: center; margin: 8px 0 4px; }
.jour-sep span { font-size: 11px; font-weight: 700; color: var(--ink3); background: var(--carte2); padding: 3px 10px; border-radius: 99px; text-transform: capitalize; }
.composer { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid var(--ligne); }
.composer textarea { flex: 1; min-height: 48px; max-height: 140px; padding: 12px 14px; border-radius: 22px; border: 1px solid var(--ligne); background: var(--carte2); font-size: 16px; resize: none; line-height: 1.4; }
.composer textarea:focus { outline: none; border-color: var(--bleu2); }
.fil-note { margin: 0 12px 10px; }
@media (max-width: 899px) {
  .messagerie.avec-fil .conv-liste { display: none; }
  .messagerie:not(.avec-fil) .fil { display: none; }
  .bulles { max-height: calc(100dvh - 300px); }
}
@media (min-width: 900px) {
  .messagerie { grid-template-columns: 320px minmax(0, 1fr); align-items: start; }
  .fil { position: sticky; top: 16px; height: calc(100dvh - 60px); }
  .bulles { max-height: none; }
  .fil-tete [data-vue="messages"] { display: none; }
}

/* ─── Notifications ─── */
.notif-groupe { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .7px; color: var(--ink3); margin: 12px 0 6px; }
.notifs { list-style: none; display: grid; gap: 6px; }
.notif { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 12px; border-radius: 16px; border: 1px solid var(--ligne); background: var(--carte); text-align: left; position: relative; }
.notif.non-lue { border-color: rgba(59,140,255,.4); }
.notif.non-lue::after { content: ''; position: absolute; top: 14px; right: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--bleu); }
.notif-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; background: var(--neutre-fond); color: var(--accent-t); }
.notif-ic.t-avis, .notif-ic.t-reaction { color: var(--or-t); background: var(--or-fond); }
.notif-ic.t-message { color: var(--lagon); }
.notif-corps { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-right: 14px; }
.notif-corps span { font-size: var(--t-s); color: var(--ink2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notif-corps small { font-size: 11px; color: var(--ink3); }

/* ─── Espace entreprise ─── */
.ent-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 0 14px; }
.sur-titre { font-size: var(--t-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--or-t); }
.ent-tete h1 { font-family: var(--font-titre); font-size: var(--t-xxl); font-weight: 850; letter-spacing: -.8px; line-height: 1.1; }
.ent-tete select { height: 44px; border-radius: 12px; border: 1px solid var(--ligne); background: var(--carte); padding: 0 12px; font-weight: 700; }
.ent-onglets { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gout)) 14px; padding: 2px var(--gout); }
.ent-onglets::-webkit-scrollbar { display: none; }
.ent-onglets button { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--ligne); background: var(--carte); font-weight: 750; font-size: var(--t-s); color: var(--ink2); }
.ent-onglets button .ic { width: 18px; height: 18px; }
.ent-onglets button[aria-current="page"] { background: var(--ink); color: var(--fond); border-color: transparent; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.kpi { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border-radius: var(--r); border: 1px solid var(--ligne); background: var(--carte); box-shadow: var(--ombre); text-align: left; animation: cascade .5s var(--ease) both; }
.kpi:nth-child(2) { animation-delay: 60ms; } .kpi:nth-child(3) { animation-delay: 120ms; } .kpi:nth-child(4) { animation-delay: 180ms; }
.kpi::after { content: ''; position: absolute; right: -24px; top: -24px; width: 90px; height: 90px; border-radius: 50%; background: oklch(.8 .1 var(--acc) / .18); }
.kpi .ic { width: 22px; height: 22px; color: oklch(.55 .15 var(--acc)); }
.kpi b { font-family: var(--font-titre); font-size: 30px; font-weight: 850; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.kpi b small { font-size: 15px; color: var(--ink3); }
.kpi span { font-size: var(--t-s); color: var(--ink2); font-weight: 650; }
.kpi:disabled { cursor: default; opacity: 1; }
.ent-grille { display: grid; gap: 12px; }
.contrat-offre { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.contrat-offre > .ic { width: 42px; height: 42px; padding: 9px; border-radius: 14px; color: #2A1B00; background: linear-gradient(150deg, var(--or2), var(--or)); }
.contrat-offre div { display: flex; flex-direction: column; } .contrat-offre span { color: var(--ink2); font-size: var(--t-s); }
.alerte { font-style: normal; color: var(--ko-t); font-weight: 800; }
.droits { list-style: none; display: grid; gap: 8px; }
.droits li { display: flex; gap: 10px; align-items: center; font-size: var(--t-s); font-weight: 650; }
.droits li.oui .ic { color: var(--vert); } .droits li.non { color: var(--ink3); }
.a-faire { list-style: none; display: grid; gap: 6px; }
.a-faire button, .a-faire li.fait { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; border-radius: 14px; border: 1px solid var(--ligne); background: var(--carte2); font-weight: 700; font-size: var(--t-s); text-align: left; color: var(--ink); }
.a-faire button .ic { color: var(--accent-t); }
.a-faire li.fait { color: var(--ok-t); background: var(--ok-fond); border-color: transparent; }
.verrou-offre { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--neutre-fond); color: var(--ink2); font-size: var(--t-s); font-weight: 650; }
.verrou-offre .ic { color: var(--ink3); }
.verrouille-champ p { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.verrouille-champ .ic { width: 16px; height: 16px; color: var(--ink3); }
.horaires-edit { border: 0; display: grid; gap: 8px; }
.jour-edit { display: grid; grid-template-columns: 90px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--ligne); }
.plages { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.plages input { width: 104px; padding: 8px; border-radius: 10px; border: 1px solid var(--ligne); background: var(--carte2); font-variant-numeric: tabular-nums; }
.plages .et { font-size: var(--t-xs); color: var(--ink3); margin: 0 4px; }
.coches { display: flex; flex-wrap: wrap; gap: 8px; }
.coches label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--ligne); background: var(--carte2); font-size: var(--t-s); font-weight: 650; cursor: pointer; }
.coches label:has(input:checked) { border-color: var(--bleu2); background: rgba(59,140,255,.1); color: var(--accent-t); }
.coches input { accent-color: var(--bleu); width: 17px; height: 17px; }
.barre-enregistrer { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 3; padding: 12px; margin: 0 -12px -12px; border-radius: 0 0 var(--r-l) var(--r-l); background: var(--verre); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.ent-produits { list-style: none; display: grid; gap: 8px; }
.ent-produits li { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 16px; border-radius: var(--r); border: 1px solid var(--ligne); background: var(--carte); }
.ent-produits li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ent-produits li span { font-size: var(--t-s); color: var(--ink2); }
.ent-produits li.indispo { opacity: .65; }
.formulaire.unique { grid-template-columns: 1fr; padding: 0; background: transparent; border: 0; box-shadow: none; }
.repondre { display: grid; gap: 8px; }
.repondre textarea { width: 100%; min-height: 70px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ligne); background: var(--carte2); font-size: 16px; resize: vertical; }
.squelette.court { height: 44px; }
@media (min-width: 760px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ent-grille, .compte-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .compte-grille > .rang-bt { grid-column: 1 / -1; }
}
@media (min-width: 1000px) { .barre-enregistrer { bottom: 0; } .cote-pied .bt-theme[hidden] { display: none !important; } }
@media (max-width: 759px) { .jour-edit { grid-template-columns: 1fr auto; } .jour-edit .plages { grid-column: 1 / -1; grid-row: 2; } .pave { grid-template-columns: repeat(3, 68px); gap: 10px 20px; } .pave button, .pave span { width: 68px; height: 68px; } }
