/* ============================================================
   Exit · style.css
   Charte : kits Apple iOS 27 / macOS 27, police SF Pro (police système),
   palette « Sapin + bleu nuit » (0.1.53) : bleu nuit #474C24 = ce qu'on touche, sapin #676D44 = l'argent qui rentre,
   rouge = perte, encre et gris = le reste ; échelles --bn50…--bn900 et --sp50…--sp900 ; barre latérale « Aurore + sol ».
   bouton principal noir, fond #FAFBFC, cartes blanches, coins emboîtés.
   Charte 2 (10 nov.) : voir le dernier bloc de ce fichier (surfaces plates, titres en minuscules, moins de pastilles,
   icônes nues, une carte au lieu de quatre, pas d'apparition en cascade, ombres plus marquées) ;
   puis « Mise en page (10 nov.) » : Accueil et Tableau de bord en une grande carte + panneau de droite.
   ============================================================ */
:root {
  --fond: #FAFBFC; --carte: #FFFFFF; --texte: #1D1D1F; --texte2: #6C6C70; --texte3: #8A8A8E; --sep: rgba(60,60,67,.12);
  --accent: #474C24; --accent-f: rgba(71,76,36,.10); --bleu: #474C24; --vert: #676D44; --b600: #16181D; --v600: #676D44; --b900: #636366;
  --ok: #676D44; --ok-t: #525636; --att: #8E8E93; --att-t: #6E6E73; --err: #D36C72; --err-t: #BF5A61;
  --marque: linear-gradient(135deg, #919869, #B5BD8D);
  --bn50: #F0F5FF; --bn100: #DCE9FF; --bn200: #D3D7C0; --bn300: #B5BC93; --bn400: #919869; --bn500: #737A4C; --bn600: #62673F; --bn700: #51572F; --bn800: #474C24; --bn900: #2D3108;
  --sp50: #EBFAF0; --sp100: #E7EAD9; --sp200: #D3D8BC; --sp300: #B5BD8D; --sp400: #919869; --sp500: #737A4C; --sp600: #676D44; --sp700: #525636; --sp800: #414529; --sp900: #2D301B;
  /* 0.1.57 : une seule échelle de gris (plus de gris clair écrit à la main) : fonds g50 → g400, filets (gris système à l'opacité), remplissages (boutons, segments) */
  --g50: #FAFBFC; --g100: #F5F6F8; --g200: #F2F4F6; --g300: #EEF0F3; --g400: #E8EBEF;
  --filet2: rgba(60,60,67,.2); --filet3: rgba(60,60,67,.3); --filet4: rgba(60,60,67,.5);
  --gc0: #16181D; --gc1: #48484D; --gc2: #76767B; --gc3: #A5A5AA; --gc4: #C9C9CE; --gc5: #E1E1E5;   /* 0.1.59 : parts d'un tout en encre et gris (barre des abonnements), du plus gros au plus petit */
  --remp1: rgba(120,120,128,.06); --remp2: rgba(120,120,128,.12); --remp3: rgba(120,120,128,.18);
  --r-carte: 22px; --r-case: 12px;
  --ressort: cubic-bezier(.32,.72,0,1); --sortie: cubic-bezier(.2,.8,.2,1); --rebond: cubic-bezier(.34,1.56,.64,1);
  --ombre: 0 1px 2px rgba(27,29,15,.04);
  --police: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI Variable", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--fond); }
body { font-family: var(--police); color: var(--texte); -webkit-font-smoothing: antialiased; font-size: 13px; letter-spacing: -0.08px; overflow: hidden; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input { font: inherit; }
kbd { font: inherit; }
.sf { display: block; flex: none; overflow: visible; }   /* les SVG sont coupés au ras du tracé : sans ça, le bord (anticrénelage) est rogné à certaines tailles */
h1, h2, h3, p { margin: 0; }
.lab { font-size: 12px; font-weight: 600; color: var(--texte2); }
.mut { color: var(--texte2); }
.vert { color: var(--ok-t); } .rouge { color: var(--err-t); } .bleu { color: var(--accent); }
.mt4 { margin-top: 4px; } .mt5 { margin-top: 5px; } .mt10 { margin-top: 10px; } .mt14 { margin-top: 14px; } .mt18 { margin-top: 18px; }
.centre { text-align: center; }
.barre-txt { text-decoration: line-through; color: var(--texte2); }

/* ---------- boutons (Apple : principal noir, secondaire gris, appui = léger rétrécissement) ---------- */
.btn-noir, .btn-gris, .btn-blanc { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 18px; border-radius: 20px; font-size: 14px; font-weight: 700; transition: transform .18s var(--sortie), background .2s, box-shadow .2s; white-space: nowrap; }
.btn-noir { background: #1D1D1F; color: #fff; }
.btn-noir:hover { background: #000; }
.btn-gris { background: var(--remp2); font-weight: 600; }
.btn-gris:hover { background: var(--remp3); }
.btn-blanc { background: rgba(255,255,255,.88); border: .5px solid rgba(0,0,0,.1); font-weight: 600; font-size: 13.5px; }
.btn-blanc:hover { background: #fff; box-shadow: 0 2px 8px rgba(27,29,15,.06); }
.btn-noir.petit, .btn-gris.petit, .btn-blanc.petit { height: 32px; padding: 0 14px; font-size: 13px; border-radius: 16px; }
.btn-noir.large, .btn-gris.large { height: 42px; padding: 0 20px; border-radius: 21px; }
.btn-txt { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 21px; font-size: 14px; font-weight: 600; }
.btn-txt:hover { background: rgba(211,108,114,.07); }
button:active, a.btn-noir:active, .nx:active, .it:active, .si:active { transform: scale(.97); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible, [role=button]:focus-visible { outline: 2px solid var(--bn800); outline-offset: 2px; }
kbd { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 6px; border-radius: 6px; border: .5px solid rgba(0,0,0,.18); font-size: 11px; font-weight: 600; margin-left: 4px; }
kbd.clair { border-color: rgba(255,255,255,.4); }

.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12px; font-weight: 600; background: var(--g200); white-space: nowrap; }
.chip.blanc { background: rgba(255,255,255,.72); }
.chip.orange { background: rgba(142,142,147,.14); color: var(--att-t); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips.bas { margin-top: auto; padding-top: 10px; }
.pill-orange { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; background: rgba(142,142,147,.14); color: var(--att-t); font-size: 12px; font-weight: 700; }
.dom { display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: none; border-radius: 50%; }
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--marque); color: #fff; font-weight: 700; flex: none; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Amélia : orbe et petit « puits » sombre */
.orbe { position: relative; display: inline-block; flex: none; }
.orbe[data-orbe="112"] { width: 112px; height: 112px; } .orbe[data-orbe="150"] { width: 150px; height: 150px; }
.ami { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ami .orbe { width: 100%; height: 100%; }

/* anneau d'avancement : se dessine à l'ouverture */
.anneau { position: relative; display: inline-flex; flex: none; }
.anneau svg { position: absolute; inset: 0; }
.anneau-arc { transition: stroke-dashoffset 1.1s var(--ressort) .15s; }
.anneau-in { position: relative; z-index: 1; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.an-gd { font-size: 36px; font-weight: 700; letter-spacing: -1px; line-height: 40px; }
.an-pt { font-size: 13px; font-weight: 700; }
.anneau-in small { font-size: 12px; font-weight: 600; color: var(--texte2); }
.anneau-in small.pale { color: var(--texte3); margin-top: 2px; }

.barre { height: 6px; border-radius: 3px; background: var(--remp2); overflow: hidden; margin-top: 8px; }
.barre i { display: block; height: 100%; border-radius: 3px; transition: width 1s var(--ressort) .2s; }
.spark { display: block; max-width: 100%; overflow: visible; }
.spark-trait { stroke-dasharray: 600; stroke-dashoffset: 600; animation: trace 1.2s var(--sortie) .25s forwards; }
.spark-aire, .spark-point { opacity: 0; animation: apparait .5s ease 1s forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes apparait { to { opacity: 1; } }

/* ---------- entrée des cartes (en cascade) ---------- */
[data-anim] { animation: monte .55s var(--ressort) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes monte { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.page.entree { animation: fondu .3s var(--sortie) both; }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
/* iPhone : la page glisse du côté de l'onglet choisi */
body.tel .page.entree.de-droite { animation: deDroite .34s var(--sortie) both; }
body.tel .page.entree.de-gauche { animation: deGauche .34s var(--sortie) both; }
@keyframes deDroite { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes deGauche { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
/* page redessinée sans changer de page (données relues, action) : rien ne rejoue */
.calme [data-anim], .calme .spark-trait, .calme .spark-aire, .calme .spark-point { animation: none !important; opacity: 1; stroke-dashoffset: 0; }
.calme .anneau-arc, .calme .barre i { transition: none !important; }

/* ============================================================
   MAC (fenêtre de l'app, ≥ 1000 px)
   ============================================================ */
#app { height: 100%; }
.app.mac { display: flex; height: 100vh; height: 100dvh; }
.side { width: 236px; flex: none; transition: margin-left .4s var(--ressort); display: flex; flex-direction: column; padding: 14px 10px; border-right: .5px solid rgba(0,0,0,.1);
  background: radial-gradient(95% 36% at 8% 0%, rgba(145,152,105,.40), rgba(145,152,105,0) 74%), radial-gradient(100% 34% at 100% 22%, rgba(211,215,192,.50), rgba(211,215,192,0) 72%), radial-gradient(150% 30% at 50% 104%, rgba(211,216,188,.80), rgba(211,216,188,0) 76%), var(--g100); }
.side-haut { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px 8px; }
.feux { display: flex; gap: 8px; } .feux i { width: 12px; height: 12px; border-radius: 6px; background: #E1797E; } .feux i:nth-child(2) { background: #FEBC2E; } .feux i:nth-child(3) { background: #A5AD7D; }
.feux { visibility: hidden; }
.marque { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 6px; border-radius: 8px; color: #1D1D1F; transition: opacity .2s; } .marque:hover { opacity: .8; }
.mq-logo, .mq-mot { display: block; flex: none; }
.capg-btn { width: 30px; height: 26px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: #3a3a3c; background: rgba(255,255,255,.75); border: .5px solid rgba(0,0,0,.12); }
.side-nav { position: relative; flex: 1; overflow-y: auto; }
.si-pilule { position: absolute; left: 0; right: 0; top: 0; height: 28px; border-radius: 8px; background: rgba(255,255,255,.72); box-shadow: 0 .5px 1.5px rgba(36,38,22,.08); transition: transform .35s var(--ressort), height .35s var(--ressort), opacity .2s; pointer-events: none; }
.si { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; width: 100%; height: 28px; padding: 0 9px; border-radius: 8px; font-size: 13px; font-weight: 500; text-align: left; transition: background .15s, transform .15s; }
.si:not(.on):hover { background: rgba(255,255,255,.35); }
.si.on { font-weight: 600; }
.si.sous { padding-left: 26px; height: 26px; font-size: 12.5px; }
.si.tard { color: var(--texte2); }
.sic { width: 18px; display: flex; justify-content: center; color: var(--texte2); }
.si.on .sic { color: var(--accent); }
.si.tard .sic { color: var(--texte3); }
.sh { font-size: 11px; font-weight: 700; color: var(--texte2); padding: 11px 9px 3px; }
.badge { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--texte2); font-variant-numeric: tabular-nums; }
.chev { margin-left: auto; color: var(--texte3); display: flex; transition: transform .3s var(--ressort); }
.si[data-outils] .chev { transform: rotate(-90deg); } .si[data-outils] .chev.ouvert { transform: none; }
.profil { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-top: 8px; border-radius: 14px; background: rgba(255,255,255,.55); border: .5px solid rgba(255,255,255,.8); box-shadow: 0 1px 3px rgba(36,38,22,.06); color: var(--texte3); transition: background .2s; }
.profil:hover, .profil[aria-current] { background: rgba(255,255,255,.8); }
.profil-t { flex: 1; color: var(--texte); } .profil-t b { display: block; font-size: 13px; font-weight: 600; } .profil-t small { display: block; font-size: 11px; color: var(--texte2); }

.app.mac.side-ferme .side { margin-left: -236px; }
.tb-side { display: none; } .side-ferme .tb-side { display: flex; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff; }
.tb { height: 56px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 14px 0 20px; border-bottom: .5px solid rgba(0,0,0,.08); background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.tb-t { flex: 1; min-width: 0; } .tb-t h1 { font-size: 15px; font-weight: 700; } #tb-sous { font-size: 11.5px; color: var(--texte2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.beta-pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 12px; background: var(--remp2); font-size: 11.5px; font-weight: 600; color: var(--texte2); }
.demande { display: flex; align-items: center; gap: 8px; width: 280px; height: 34px; padding: 0 6px 0 5px; border-radius: 17px; background: rgba(255,255,255,.75); border: .5px solid rgba(0,0,0,.12); box-shadow: 0 1px 3px rgba(0,0,0,.06); color: var(--texte2); font-size: 12.5px; transition: box-shadow .2s, transform .15s; }
.demande:hover { box-shadow: 0 3px 12px rgba(55,58,35,.1); }
.demande > span:not(.ami) { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .demande kbd { color: var(--texte); }
.micro-tb { width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; background: #1D1D1F; transition: transform .15s; }
.micro-tb:hover { transform: scale(1.05); }
.contenu { flex: 1; min-height: 0; overflow-y: auto; background: var(--fond); scroll-behavior: smooth; }
.mac .page { min-height: 100%; padding: 18px 20px; display: flex; flex-direction: column; }
.chargement { height: 100%; display: flex; align-items: center; justify-content: center; }

.carte { background: var(--carte); border-radius: var(--r-carte); border: .5px solid rgba(0,0,0,.06); box-shadow: var(--ombre); }
.wh { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; }
.wh > .sf { color: var(--texte2); }
.lk { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.lk:hover { text-decoration: underline; } .lk.gris { color: var(--texte3); }
.n { font-size: 30px; line-height: 34px; font-weight: 700; letter-spacing: -0.9px; font-variant-numeric: tabular-nums; }
.n-l { display: flex; align-items: baseline; gap: 8px; } .n-s { font-size: 14px; font-weight: 600; }
.lvs { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.lv { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 600; }
.lv .vert { color: var(--ok-t); } .lv .rouge { color: var(--err-t); }
.sec { font-size: 12px; font-weight: 700; color: var(--texte2); display: flex; align-items: center; gap: 6px; margin: 16px 4px 6px; }
.sec:first-child { margin-top: 0; }
.sec-r { margin-left: auto; font-weight: 600; }
.g-titre { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--texte2); margin: 18px 4px 6px; }
.vide-l { padding: 16px; color: var(--texte2); font-weight: 600; }

/* ---------- Accueil (Mac) ---------- */
.acc-grille { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(262px, auto) minmax(250px, 1fr) minmax(250px, 1fr); gap: 14px; }
.maint { grid-column: 1 / 3; grid-row: 1; position: relative; display: flex; align-items: center; border-radius: 26px; border: .5px solid rgba(0,0,0,.06); padding: 24px 34px 24px 28px; overflow: hidden;
  background: var(--carte); }
.maint::after { content: none; }   /* 0.1.57 : ancien nuage décoratif retiré (Charte 2) */
@keyframes derive { from { transform: translate(-8%, -4%); } to { transform: translate(10%, 6%); } }
.maint-txt { position: relative; z-index: 1; flex: 1; min-width: 0; }
.maint-sur { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--texte2); }
.maint h2 { font-size: 46px; line-height: 52px; font-weight: 700; letter-spacing: -1.6px; margin-top: 10px; }
.maint p { font-size: 16px; line-height: 23px; font-weight: 500; color: rgba(29,29,31,.7); margin-top: 4px; max-width: 560px; }
.maint-act { display: flex; gap: 10px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.maint-an-gd { position: relative; z-index: 1; width: 186px; height: 186px; border-radius: 50%; background: rgba(255,255,255,.72); box-shadow: 0 8px 30px rgba(53,56,37,.08); flex: none; margin-left: 20px; }
.maint.sort .maint-txt { animation: sortGauche .26s var(--sortie) forwards; }
@keyframes sortGauche { to { opacity: 0; transform: translateX(-24px); } }
.maint.vide { gap: 16px; color: var(--ok); } .maint.vide h2 { font-size: 30px; color: var(--texte); margin: 0; } .maint.vide p { margin: 0; }
.ensuite { grid-column: 3; grid-row: 1 / 3; padding: 16px 18px; display: flex; flex-direction: column; min-height: 0; }
.nx-liste { margin-top: 6px; }
.nx { display: flex; align-items: center; gap: 11px; padding: 9px 0; transition: background .15s, transform .15s; }
.nx + .nx { border-top: .5px solid var(--sep); }
.mac .nx:hover { background: rgba(98,103,63,.04); box-shadow: -8px 0 0 rgba(98,103,63,.04), 8px 0 0 rgba(98,103,63,.04); }
.nx-o { width: 18px; font-size: 12px; font-weight: 700; color: var(--texte3); text-align: center; flex: none; }
.nx-t { flex: 1; min-width: 0; } .nx-t b { display: block; font-size: 13.5px; font-weight: 600; } .nx-t small { display: block; font-size: 11.5px; color: var(--texte2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-d { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--texte2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.deja { margin-top: 12px; padding-top: 12px; border-top: .5px solid var(--sep); } .deja .lab { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.deja .barre-txt { font-size: 13px; margin-top: 4px; }
.imprevu { display: flex; gap: 9px; align-items: center; width: 100%; padding: 10px 12px; border-radius: 14px; background: var(--g100); font-size: 12.5px; line-height: 17px; color: rgba(29,29,31,.75); text-align: left; margin-top: auto; transition: background .2s, transform .15s; }
.imprevu:hover { background: var(--g200); }
.w { padding: 16px 18px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.spark-b { margin-top: 10px; }
.mois-blocs { display: flex; gap: 4px; margin-top: 12px; } .mois-blocs i { flex: 1; height: 22px; border-radius: 6px; background: var(--remp2); }
.mois-blocs i.fait { background: var(--b600); }
.mois-blocs.fins i { height: 6px; border-radius: 3px; margin-top: -4px; }
.mois-libs { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 600; margin-top: 6px; color: var(--texte2); }
.mois-libs span { flex: 1; } .lab.bas { margin-top: auto; }
.rem p { font-size: 13.5px; line-height: 19px; color: rgba(29,29,31,.82); margin-top: 12px; }
.rem-t { display: flex; align-items: center; gap: 10px; } .rem-t b { font-size: 13.5px; }
.rem-a { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.fond-out { animation: fondOut .25s ease forwards; } @keyframes fondOut { to { opacity: 0; transform: scale(.98); } }

/* ---------- Aujourd'hui (Mac) ---------- */
.auj { flex: 1; display: flex; margin: -18px -20px; min-height: 0; }
.auj-g { flex: 1; min-width: 0; padding: 18px 20px; display: flex; flex-direction: column; }
.auj-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 16px; }
.auj-tt { flex: 1; } .auj-tt b { display: block; font-size: 15px; }
.seg { display: inline-flex; height: 30px; border-radius: 15px; background: var(--remp2); padding: 2px; position: relative; }
.seg button { padding: 0 12px; border-radius: 13px; font-size: 12.5px; font-weight: 600; color: rgba(29,29,31,.7); transition: background .25s var(--ressort), color .2s, box-shadow .25s; }
.seg button[aria-selected="true"] { background: #fff; color: var(--texte); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.liste { border-radius: 18px; overflow: hidden; }
.liste .it.fixe:first-child { border-radius: 18px; }
.liste.ordre { padding: 0; overflow: visible; }
.liste.ordre .it:first-child { border-radius: 18px 18px 0 0; } .liste.ordre .it:last-child { border-radius: 0 0 18px 18px; } .liste.ordre .it:only-child { border-radius: 18px; }
.liste.ordre .it.sel, .liste.ordre .it.tenu { border-radius: 14px; }
.it { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 14px; position: relative; background: #fff; transition: transform .25s var(--ressort), box-shadow .2s, background .2s, height .3s var(--ressort), opacity .3s; cursor: default; }
.it + .it { border-top: .5px solid var(--sep); }
.ordre .it { cursor: pointer; } .ordre .it:hover { background: var(--g50); }
.it.cur { background: rgba(98,103,63,.06); } .ordre .it.cur:hover { background: rgba(98,103,63,.08); }
.it.sel { box-shadow: inset 0 0 0 1.5px var(--accent); border-radius: 14px; z-index: 1; }
.it-o { width: 16px; font-size: 12.5px; font-weight: 700; color: var(--texte3); text-align: center; flex: none; }
.it-h { width: 44px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.it-t { flex: 1; min-width: 0; } .it-t b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it-t small { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--texte2); margin-top: 2px; white-space: nowrap; overflow: hidden; }
.it-t small.encours { color: var(--accent); font-weight: 600; }
.it-d { font-size: 12.5px; font-weight: 600; color: var(--texte2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.poignee { color: var(--texte3); display: flex; padding: 8px 2px; cursor: grab; touch-action: none; }
.poignee:hover { color: var(--texte2); }
.ck { position: relative; width: 22px; height: 22px; flex: none; border-radius: 11px; color: #fff; }
.ck svg { position: absolute; inset: 0; width: 22px; height: 22px; } .ck circle { fill: transparent; stroke: var(--filet3); stroke-width: 1.5; transition: fill .25s, stroke .25s; }
.it.cur .ck circle { stroke: var(--accent); }
.ck:hover circle { stroke: var(--accent); fill: rgba(98,103,63,.06); }
.ck .ck-v { position: absolute; left: 5px; top: 5.5px; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .35s var(--rebond); }
.it.coche .ck circle { fill: var(--ok); stroke: var(--ok); } .it.coche .ck .ck-v { opacity: 1; transform: scale(1); }
.it.coche { animation: pop .35s var(--rebond); } .it.coche .it-t b { text-decoration: line-through; color: var(--texte3); transition: color .3s; }
@keyframes pop { 50% { transform: scale(1.015); } }
.it.replie { opacity: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; }
.en-glisse .it { transition: transform .22s var(--ressort); }
.it.tenu { z-index: 5; box-shadow: 0 14px 34px rgba(27,29,15,.16); border-radius: 14px; transition: box-shadow .2s; cursor: grabbing; }
.chips.faits { margin: 0 4px; }
.imprevu.bas { margin-top: auto; background: #fff; border: .5px solid rgba(0,0,0,.06); border-radius: 20px; padding: 10px 10px 10px 14px; font-size: 13.5px; color: var(--texte2); box-shadow: var(--ombre); }
.imprevu.bas span:nth-child(2) { flex: 1; }
.micro-n { width: 36px; height: 36px; border-radius: 12px; background: #1D1D1F; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.insp { width: clamp(300px, 28vw, 360px); flex: none; border-left: .5px solid rgba(0,0,0,.08); background: #fff; padding: 20px; display: flex; flex-direction: column; gap: 0; overflow-y: auto; }
.insp.arrive > * { animation: monte .4s var(--ressort) both; } .insp.arrive > *:nth-child(2) { animation-delay: 30ms; } .insp.arrive > *:nth-child(3) { animation-delay: 60ms; } .insp.arrive > *:nth-child(n+4) { animation-delay: 90ms; }
.insp.vide { align-items: center; justify-content: center; color: var(--ok); gap: 10px; } .insp.vide p { color: var(--texte2); font-weight: 600; }
.insp-sur { display: flex; align-items: center; gap: 8px; }
.insp h2 { font-size: 22px; line-height: 27px; font-weight: 700; letter-spacing: -0.4px; margin-top: 8px; }
.insp-ex { display: flex; gap: 8px; align-items: center; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: rgba(142,142,147,.08); color: var(--att-t); font-size: 12.5px; font-weight: 600; }
.pourquoi { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--g100); margin-top: 16px; }
.pourquoi p { font-size: 13px; line-height: 18px; color: rgba(29,29,31,.8); }
.insp .g-titre { margin-left: 0; }
.lie { border-radius: 16px; border: .5px solid rgba(0,0,0,.1); overflow: hidden; }
.lie-t { display: flex; align-items: center; gap: 11px; padding: 12px 14px; } .lie-t .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--g200); display: flex; align-items: center; justify-content: center; color: #636366; }
.lie-t b { display: block; font-size: 13.5px; font-weight: 600; } .lie-t small { display: block; font-size: 11.5px; color: var(--texte2); }
.lie-l { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 14px; font-size: 13px; border-top: .5px solid var(--sep); }
.lie-l > span:first-child { color: var(--texte2); font-weight: 600; } .lie-l b { font-weight: 600; } .lie-l b.vert { color: var(--ok-t); }
.etape { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; font-size: 13px; text-align: left; }
.etape i { width: 18px; height: 18px; border-radius: 9px; border: 1.5px solid var(--filet3); flex: none; transition: background .2s, border-color .2s; }
.etape.fait { color: var(--texte3); text-decoration: line-through; } .etape.fait i { background: var(--ok); border-color: var(--ok); box-shadow: inset 0 0 0 3px #fff; }
.lien-ext { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--accent); }
.insp-act { margin-top: auto; padding-top: 16px; display: flex; gap: 8px; } .insp-act .btn-noir { flex: 1; }

/* ---------- À ranger (Mac) ---------- */
.rg { flex: 1; display: flex; margin: -18px -20px; min-height: 0; }
.rg-liste { width: 320px; flex: none; padding: 18px 14px; border-right: .5px solid rgba(0,0,0,.07); display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.rg-liste .sec { margin: 0 6px 6px; } .rg-liste .sec.mt18 { margin-top: 18px; }
.rg-li { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 14px; text-align: left; transition: background .2s, box-shadow .2s, transform .3s var(--ressort), opacity .3s; }
.rg-li:not(.fait):hover { background: rgba(255,255,255,.7); }
.rg-li.sel { background: #fff; box-shadow: 0 1px 3px rgba(27,29,15,.08), inset 0 0 0 1.5px var(--accent); }
.rg-li > span:first-child { display: flex; margin-top: 2px; }
.rg-li.fait { opacity: .6; } .rg-li.fait b { font-weight: 500; }
.rg-q { flex: 1; min-width: 0; } .rg-q b { display: block; font-size: 13.5px; font-weight: 600; line-height: 18px; } .rg-q small { display: block; font-size: 11.5px; color: var(--texte2); margin-top: 2px; }
.pp { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; height: 20px; padding: 0 7px; border-radius: 10px; font-size: 11px; font-weight: 700; background: var(--g200); color: rgba(29,29,31,.75); }
.rg-info { margin-top: auto; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.7); border: .5px solid rgba(0,0,0,.06); font-size: 12.5px; line-height: 17px; color: rgba(29,29,31,.7); }
.rg-centre { flex: 1; min-width: 0; padding: 22px 30px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.rg-haut { display: flex; align-items: center; justify-content: space-between; }
.rg-scene { position: relative; }
.rg-carte { background: #fff; border-radius: 26px; border: .5px solid rgba(0,0,0,.06); box-shadow: var(--ombre); padding: 26px 30px; animation: arriveCarte .5s var(--ressort) both; transition: transform .35s var(--ressort), opacity .3s; touch-action: pan-y; }
@keyframes arriveCarte { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.rg-carte.part-droite { transform: translateX(110%) rotate(6deg) !important; opacity: 0; }
.rg-carte.part-gauche { transform: translateX(-110%) rotate(-6deg) !important; opacity: 0; }
.rg-carte.part-bas { transform: translateY(40px) scale(.95) !important; opacity: 0; }
.rg-li.part-droite, .rg-mini.part-droite { transform: translateX(40px); opacity: 0; }
.rg-quand { display: flex; align-items: center; gap: 7px; } .rg-quand .bleu { display: flex; }
.rg-carte h2 { font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -0.8px; margin-top: 8px; }
.rg-prop { display: flex; align-items: center; gap: 10px; margin-top: 22px; } .rg-prop b { font-size: 14px; }
.rg-champs { margin-top: 6px; }
.pr { display: flex; align-items: center; min-height: 48px; padding: 0 4px; } .pr + .pr { border-top: .5px solid var(--sep); }
.pr-l { width: 110px; font-size: 13px; font-weight: 600; color: var(--texte2); flex: none; }
.pr-n { margin-left: 10px; }
.pv { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px 0 12px; border-radius: 10px; background: var(--g200); font-size: 13.5px; font-weight: 600; transition: background .2s, transform .2s var(--rebond); }
.pv:hover { background: var(--g400); } .pv.tourne { transform: scale(.94); }
.pv.petit { height: 26px; font-size: 12.5px; }
.pv-c { color: var(--texte3); display: flex; }
.rg-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; } .rg-act .btn-gris { margin-left: auto; }
.rg-suivants { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rg-mini { padding: 14px 16px; border-radius: 18px; transition: transform .3s var(--ressort), opacity .3s; } .rg-mini .lab { display: flex; align-items: center; gap: 6px; } .rg-mini .lab .bleu { display: flex; }
.rg-mini b { display: block; font-size: 14px; font-weight: 600; margin-top: 4px; } .rg-mini .chips { margin-top: 10px; }
.rg-vide { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 40px; }
.rg-vide h2 { font-size: 24px; font-weight: 700; margin-top: 8px; }

/* ---------- Réglages et pages « bientôt » ---------- */
.reg { max-width: 640px; width: 100%; margin: 0 auto; padding-bottom: 30px; }
.reg-profil { display: flex; align-items: center; gap: 14px; padding: 16px 18px; } .reg-profil > div { flex: 1; } .reg-profil b { display: block; font-size: 17px; }
.reg-profil label { cursor: pointer; }
.groupe-l { overflow: hidden; }
.gl { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 10px 16px; text-align: left; color: var(--texte3); }
.gl + .gl { border-top: .5px solid var(--sep); }
button.gl:hover { background: var(--g50); }
.gl-ic { width: 28px; height: 28px; border-radius: 8px; background: var(--g200); color: #636366; display: flex; align-items: center; justify-content: center; flex: none; }
.gl-t { flex: 1; color: var(--texte); } .gl-t b { display: block; font-size: 14px; font-weight: 600; } .gl-t small { display: block; font-size: 12px; color: var(--texte2); margin-top: 1px; }
.touches { display: flex !important; align-items: center; gap: 2px; }
.gl-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; padding: 0 16px 14px; }
.gl-form input { height: 34px; border-radius: 10px; border: .5px solid rgba(0,0,0,.12); background: var(--g100); padding: 0 10px; }
.gl-form .cx-err { grid-column: 1 / -1; }
.deco { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; margin-top: 18px; color: var(--err-t); font-size: 14px; font-weight: 600; }
.bientot { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 60px 20px; }
.bientot-ic { width: 72px; height: 72px; border-radius: 20px; background: var(--g200); color: var(--texte2); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(71,76,36,.25); margin-bottom: 6px; }
.bientot h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.4px; } .bientot .btn-noir { margin-top: 10px; }

/* ---------- feuilles ---------- */
.feuille-fond { position: fixed; inset: 0; z-index: 50; background: rgba(0,10,20,.22); opacity: 0; transition: opacity .35s ease; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.feuille-fond.vu { opacity: 1; }
.feuille { position: fixed; z-index: 51; background: rgba(250,251,252,.96); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); box-shadow: 0 20px 60px rgba(19,20,7,.25); display: flex; flex-direction: column;
  left: 50%; top: 50%; width: 480px; max-width: calc(100vw - 32px); max-height: min(720px, calc(100vh - 60px)); border-radius: 26px; transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: transform .45s var(--ressort), opacity .3s; }
.feuille.vu { transform: translate(-50%, -50%); opacity: 1; }
.feuille-poignee { display: none; }
.feuille-tete { display: flex; align-items: center; padding: 18px 18px 8px 22px; } .feuille-tete h2 { flex: 1; font-size: 20px; font-weight: 700; letter-spacing: -0.4px; }
.feuille-x { width: 30px; height: 30px; border-radius: 15px; background: var(--remp2); display: flex; align-items: center; justify-content: center; color: var(--texte2); }
.feuille-x.flottant { position: absolute; right: 14px; top: 14px; z-index: 2; }
.feuille-corps { padding: 6px 18px 20px; overflow-y: auto; }
.groupe { background: #fff; border-radius: 14px; overflow: hidden; border: .5px solid rgba(0,0,0,.06); }
.esp, .compte-ligne { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; text-align: left; color: var(--texte3); transition: background .15s; }
.esp + .esp { border-top: .5px solid var(--sep); }
.esp:hover { background: var(--g50); }
.esp-ic { width: 34px; height: 34px; border-radius: 10px; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.esp-t { flex: 1; color: var(--texte); } .esp-t b { display: block; font-size: 15px; font-weight: 600; } .esp-t small { display: block; font-size: 12px; color: var(--texte2); }
.esp-on { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--accent); }
.esp-bientot { font-size: 11.5px; font-weight: 600; color: var(--texte3); }
.tuiles-plus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tp { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 14px; background: #fff; border: .5px solid rgba(0,0,0,.06); font-size: 12.5px; color: #636366; transition: transform .15s; }
.tp b { color: var(--texte); font-weight: 600; }
.compte-ligne { margin-top: 18px; background: #fff; border-radius: 14px; border: .5px solid rgba(0,0,0,.06); }

/* Amélia */
.amelia-feuille { width: min(800px, calc(100vw - 64px)); height: min(880px, calc(100vh - 48px)); max-height: none; background: var(--g50); overflow: hidden; transition: transform .45s var(--ressort), opacity .3s, height .55s var(--ressort); }
.amelia-feuille.am-vide { height: min(540px, calc(100vh - 48px)); }
.amelia-feuille .feuille-corps { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
/* en-tête (apparaît dès le 1er message) */
.am-tete { flex: none; height: 58px; display: flex; align-items: center; gap: 10px; padding: 0 100px 0 18px; border-bottom: .5px solid var(--sep); transition: opacity .35s, transform .45s var(--ressort); }
.am-tete-o { display: flex; }
.am-tn { display: flex; flex-direction: column; line-height: 1.2; } .am-tn b { font-size: 15px; font-weight: 700; } .am-tn small { font-size: 12px; color: var(--texte2); transition: color .3s; }
.am-tn small[data-e="ecoute"], .am-tn small[data-e="reflexion"] { color: var(--accent); }
.feuille-x.am-nouv { right: 52px; transition: opacity .3s, background .2s; } .feuille-x.am-nouv:hover, .amelia-feuille .feuille-x:hover { background: var(--remp3); }
.am-vide .am-tete { opacity: 0; transform: translateY(-8px); pointer-events: none; border-color: transparent; }
.am-vide .am-nouv { opacity: 0; pointer-events: none; }
/* le fil */
.am-fil { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-padding-bottom: 20px; }
.am-in { max-width: 680px; margin: 0 auto; padding: 22px 24px 18px; display: flex; flex-direction: column; gap: 14px; min-height: 100%; }
/* vide : grande orbe au centre */
.am-accueil { display: none; }
.am-vide .am-accueil { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding-bottom: 40px; animation: fondu .4s ease; }
.am-accueil .orbe { margin-bottom: 14px; }
.am-nom { font-size: 13px; font-weight: 700; color: var(--texte2); letter-spacing: .4px; text-transform: uppercase; }
.am-etat { font-size: 24px; font-weight: 700; letter-spacing: -0.4px; transition: color .3s; } .am-etat[data-e="doute"] { color: var(--texte2); }
.am-dit { max-width: 520px; margin-top: 14px; font-size: 18px; line-height: 25px; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s var(--ressort); }
.am-dit.vu { opacity: 1; transform: none; } .am-dit:empty { display: none; }
/* messages */
.am-m { display: flex; flex-direction: column; max-width: 100%; }
.am-m.arrive { animation: monte .45s var(--ressort) both; }
.am-m.moi { align-items: flex-end; }
.am-bulle { max-width: 78%; padding: 10px 15px; border-radius: 20px 20px 6px 20px; background: var(--g400); font-size: 15px; line-height: 21px; white-space: normal; overflow-wrap: anywhere; }
.am-m.direct .am-bulle { background: transparent; border: 1.5px dashed rgba(98,103,63,.35); color: var(--texte2); }
.am-m.elle { align-items: flex-start; gap: 10px; }
.am-m.elle p { font-size: 15.5px; line-height: 23px; color: var(--texte); overflow-wrap: anywhere; }
.am-m.elle.doute p { color: var(--texte2); }
.am-chiffres { display: grid; gap: 8px; width: 100%; grid-template-columns: repeat(3, 1fr); }
.am-chiffres.n1 { grid-template-columns: minmax(0, 220px); } .am-chiffres.n2, .am-chiffres.n4 { grid-template-columns: repeat(2, 1fr); } .am-chiffres.n2 { max-width: 460px; }
.am-ch { background: #fff; border-radius: 16px; padding: 12px 14px; border: .5px solid rgba(0,0,0,.06); box-shadow: var(--ombre); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.am-ch small { font-size: 12px; font-weight: 600; color: var(--texte2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-ch b { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; line-height: 27px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.am-range { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 460px; padding: 11px 14px 11px 11px; border-radius: 16px; background: #fff; border: .5px solid rgba(0,0,0,.06); box-shadow: var(--ombre); text-align: left; transition: transform .18s var(--sortie), box-shadow .2s; }
.am-range:hover { box-shadow: 0 4px 14px rgba(27,29,15,.08); }
.am-range-ic { width: 34px; height: 34px; border-radius: 10px; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.am-range-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; } .am-range-t b { font-size: 15px; font-weight: 600; } .am-range-t small { font-size: 12.5px; color: var(--texte2); }
.am-range-o { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--accent); flex: none; }
.am-lien { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: 15px; background: var(--accent-f); color: var(--accent); font-size: 13px; font-weight: 600; }
.am-points { display: inline-flex; gap: 5px; padding: 10px 2px; } .am-points i { width: 7px; height: 7px; border-radius: 50%; background: var(--filet3); animation: point 1.2s ease-in-out infinite; }
.am-points i:nth-child(2) { animation-delay: .15s; } .am-points i:nth-child(3) { animation-delay: .3s; }
@keyframes point { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
/* barre du bas */
.am-barre { flex: none; padding: 6px 24px 20px; }
.am-champ { max-width: 680px; margin: 0 auto; display: flex; align-items: flex-end; gap: 8px; padding: 6px; border-radius: 26px; background: #fff; border: .5px solid rgba(0,0,0,.1); box-shadow: 0 2px 12px rgba(27,29,15,.07); transition: border-color .2s, box-shadow .2s; }
.am-champ:focus-within { border-color: rgba(98,103,63,.35); box-shadow: 0 0 0 4px rgba(98,103,63,.1), 0 2px 12px rgba(27,29,15,.07); }
.am-champ textarea { flex: 1; min-width: 0; height: 40px; max-height: 168px; resize: none; border: 0; outline: 0; background: transparent; padding: 10px 12px 9px; font: inherit; font-size: 15.5px; line-height: 21px; color: var(--texte); }
.am-champ textarea:focus-visible { outline: 0; }
.am-champ textarea::placeholder { color: var(--texte3); }
.am-micro { width: 40px; height: 40px; border-radius: 20px; flex: none; background: #1D1D1F; color: #fff; display: flex; align-items: center; justify-content: center; position: relative; transition: transform .18s var(--sortie), background .2s; }
.am-micro .sf { animation: fondu .2s ease; }
.am-micro.on::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(181,188,147,.6); animation: pulse 1.2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }

/* notifications */
.toasts { position: fixed; z-index: 80; left: 50%; top: max(14px, env(safe-area-inset-top)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; max-width: min(90vw, 460px); padding: 10px 16px 10px 12px; border-radius: 22px; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); box-shadow: 0 10px 30px rgba(19,20,7,.16), 0 0 0 .5px rgba(0,0,0,.06); font-size: 13.5px; font-weight: 600; opacity: 0; transform: translateY(-16px) scale(.94); transition: transform .45s var(--rebond), opacity .3s; }
.toast.vu { opacity: 1; transform: none; } .toast.part { opacity: 0; transform: translateY(-10px) scale(.96); transition-timing-function: ease; }
.toast-ic { width: 24px; height: 24px; border-radius: 12px; background: #1D1D1F; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }

/* connexion */
.app.connexion { min-height: 100%; display: flex; align-items: center; justify-content: center; overflow-y: auto;
  background: var(--fond); }
.cx { width: 100%; max-width: 360px; padding: 32px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; animation: monte .6s var(--ressort) both; }
.cx-orbe { width: 112px; height: 112px; margin-bottom: 12px; }
.cx h1 { font-size: 34px; font-weight: 700; letter-spacing: -1px; } .cx p { color: var(--texte2); font-size: 15px; margin-top: 4px; }
.cx-f { width: 100%; margin-top: 24px; } .cx-f.secoue { animation: secoue .4s; }
@keyframes secoue { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.cx-l { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; color: var(--texte3); }
.cx-l + .cx-l { border-top: .5px solid var(--sep); }
.cx-l input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--texte); }
.cx-err { min-height: 20px; margin: 8px 0; font-size: 13px; font-weight: 600; color: var(--err-t); }
.cx-f .btn-noir { width: 100%; height: 50px; border-radius: 25px; font-size: 16px; }
.cx-pied { display: flex; align-items: center; gap: 5px; margin-top: 18px; font-size: 12px; font-weight: 600; color: var(--texte3); }

/* ============================================================
   iPHONE (< 1000 px)
   ============================================================ */
.app.tel { position: relative; height: 100vh; height: 100dvh; }
.tel .contenu { height: 100%; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.tel .page { padding: 0 16px 20px; }
.grand-titre { display: flex; align-items: flex-end; gap: 12px; padding: calc(env(safe-area-inset-top) + 14px) 4px 14px; }
.grand-titre > div { flex: 1; min-width: 0; }
.grand-titre h1 { font-size: 34px; line-height: 40px; font-weight: 700; letter-spacing: -1px; }
.gt-sur, .gt-sous { font-size: 13px; font-weight: 600; color: var(--texte2); }
.gt-av { margin-bottom: 4px; }
.pile { display: flex; flex-direction: column; gap: 12px; }
.tel .maint { flex-direction: column; align-items: stretch; padding: 16px 16px 14px; background: var(--carte); }
.tel .maint-sur { font-size: 12px; letter-spacing: .5px; } .maint-an { margin-left: auto; }
.tel .maint h2 { font-size: 32px; line-height: 37px; letter-spacing: -1px; margin-top: 4px; }
.tel .maint p { font-size: 15px; line-height: 20px; }
.tel .maint-act { flex-wrap: nowrap; margin-top: 14px; } .tel .maint-act .btn-noir { flex: 1; height: 46px; border-radius: 23px; font-size: 16px; } .tel .maint-act .btn-blanc { height: 46px; border-radius: 23px; font-size: 15px; }
.tel .ensuite { padding: 8px 14px 4px; }
.tel .ensuite .wh { padding: 4px 0 2px; } .tel .nx { padding: 0; height: 46px; } .tel .nx-t b { font-size: 15px; } .tel .nx-t small { font-size: 12px; } .tel .nx-d { font-size: 13px; }
.grille2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tel .w { padding: 13px 14px; } .tel .w .wh { font-size: 13px; gap: 6px; }
.tel .n { font-size: 24px; line-height: 28px; letter-spacing: -0.6px; margin-top: 6px; }
.tel .w .lab.apres { display: none; }
.tel .n-l.mt10 { margin-top: 6px; } .tel .n-l .n { margin-top: 0; }
.tel .lvs { margin-top: 10px; gap: 4px; } .tel .lv { font-size: 12px; }
.chips-h { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px; scrollbar-width: none; } .chips-h::-webkit-scrollbar { display: none; }
.chip-f { flex: none; height: 32px; padding: 0 13px; border-radius: 16px; background: #fff; border: .5px solid rgba(0,0,0,.08); font-size: 14px; font-weight: 600; transition: background .25s, color .25s, transform .15s; }
.chip-f.on { background: #1D1D1F; color: #fff; border-color: #1D1D1F; }
.tel .sec { font-size: 13px; margin: 14px 6px 6px; } .tel .sec:first-child { margin-top: 0; }
.tel .it { padding: 0 12px; gap: 11px; } .tel .it-o { width: 12px; } .tel .it-t b { font-size: 15px; } .tel .it-h { width: 34px; font-size: 15px; } .tel .it-d { font-size: 13px; }
.tel .it.coche::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ok); }
.imprevu.flottant { position: fixed; z-index: 16; left: 16px; right: 16px; bottom: calc(118px + env(safe-area-inset-bottom)); width: auto; height: 50px; padding: 0 6px 0 8px; border-radius: 25px; background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: .5px solid rgba(0,0,0,.08); box-shadow: 0 8px 24px rgba(27,29,15,.08); font-size: 14px; color: var(--texte2); }
.tabbar { position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; height: calc(96px + env(safe-area-inset-bottom)); display: flex; align-items: flex-end; justify-content: space-between; padding: 0 10px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(250,251,252,0) 0%, rgba(250,251,252,.94) 45%); }
.onglet { flex: 1; height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #8E8E93; font-size: 10px; font-weight: 600; transition: color .2s, transform .15s; }
.onglet.on { color: var(--accent); }
.o-ic { display: flex; height: 26px; align-items: center; }
.o-ic.rebond { animation: rebond .45s var(--rebond); }
@keyframes rebond { 40% { transform: scale(1.18) translateY(-2px); } }
.t-micro { flex: none; width: 50px; height: 50px; margin: 0 6px 6px; border-radius: 16px; background: #1D1D1F; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,.18); transition: transform .2s var(--rebond); }
.t-micro:active { transform: scale(.9); }
body.tel .feuille { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-width: none; max-height: 88vh; border-radius: 28px 28px 0 0; padding-bottom: env(safe-area-inset-bottom); transform: translateY(100%); opacity: 1; transition: transform .5s var(--ressort); }
body.tel .feuille.vu { transform: none; }
body.tel .feuille-poignee { display: block; width: 38px; height: 5px; border-radius: 3px; background: var(--filet3); margin: 8px auto 0; flex: none; padding: 10px 40px; background-clip: content-box; box-sizing: content-box; }
body.tel .feuille.amelia-feuille { width: 100%; top: calc(env(safe-area-inset-top) + 10px); height: auto; max-height: none; }
body.tel .am-tete { height: 50px; padding: 0 96px 0 16px; } body.tel .amelia-feuille .feuille-x.flottant { top: 22px; } body.tel .am-tete { margin-top: -4px; }
body.tel .am-in { padding: 16px 16px 14px; } body.tel .am-barre { padding: 6px 12px 10px; } body.tel .am-bulle { max-width: 86%; }
body.tel .am-chiffres { grid-template-columns: repeat(2, 1fr); } body.tel .am-range-o { font-size: 0; gap: 0; } body.tel .am-chiffres.n1 { grid-template-columns: minmax(0, 1fr); } body.tel .am-ch b { font-size: 20px; }
body.tel .insp.tel { width: auto; border: 0; padding: 4px 4px 0; background: transparent; }
body.tel .insp-act { flex-wrap: wrap; } body.tel .insp-act .btn-noir { flex: 1 1 100%; }
body.tel .insp-act .btn-gris { flex: 1; }
/* À ranger (iPhone) */
.rg-pile { position: relative; margin-top: 2px; }
.rg-dessous { position: absolute; left: 12px; right: 12px; top: 8px; height: 100%; border-radius: 26px; background: #fff; opacity: .6; transform: translateY(16px) scale(.94); }
.tel .rg-carte { position: relative; border-radius: 28px; padding: 20px 18px 12px; box-shadow: 0 14px 40px rgba(27,29,15,.10); }
.tel .rg-carte h2 { font-size: 25px; line-height: 30px; letter-spacing: -0.6px; }
.rg-n { margin-left: auto; }
.tel .rg-prop { margin-top: 18px; } .tel .pr { justify-content: space-between; min-height: 46px; } .tel .pr-l { width: auto; font-size: 14px; } .tel .pv { height: 30px; font-size: 14px; }
.rg-carte.vers-droite { box-shadow: 0 14px 40px rgba(103,109,68,.25), inset 0 0 0 2px rgba(103,109,68,.5); }
.rg-carte.vers-gauche { box-shadow: 0 14px 40px rgba(211,108,114,.2), inset 0 0 0 2px rgba(211,108,114,.4); }
.rg-boutons { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 46px; }
.rond { width: 64px; height: 64px; border-radius: 32px; display: flex; align-items: center; justify-content: center; background: #fff; border: .5px solid rgba(0,0,0,.08); box-shadow: 0 6px 18px rgba(27,29,15,.08); transition: transform .2s var(--rebond); }
.rond:first-child { color: var(--err-t); }
.rond.grand { width: 80px; height: 80px; border-radius: 40px; background: #1D1D1F; border: 0; color: #fff; box-shadow: 0 12px 28px rgba(71,76,36,.35); }
.rg-astuce { text-align: center; margin-top: 16px; }
.tel .reg-profil .reg-pb label { padding: 0 12px; }
.tel .gl-form { grid-template-columns: 1fr; }

/* ---------- Achat-revente › Tableau de bord ---------- */
.tb-outils { display: flex; align-items: center; gap: 8px; } .tb-outils:empty { display: none; }
.seg button.on { background: #fff; color: var(--texte); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.seg button:disabled { opacity: .3; cursor: default; }
.ar-mois button { padding: 0 9px; display: flex; align-items: center; } .ar-mois button.on { padding: 0 12px; }
.d { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px; border-radius: 10px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.d.up { background: rgba(103,109,68,.13); color: var(--ok-t); } .d.dn { background: var(--remp2); color: var(--att-t); }
.d.wa { background: rgba(142,142,147,.14); color: var(--att-t); } .d.st { background: var(--remp2); color: rgba(29,29,31,.75); }
.orange { color: var(--att-t); } .gris { color: var(--texte3); }
.ar-grille { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 250px minmax(250px, 1fr) minmax(250px, 1fr); gap: 14px; }
.ar-heros { grid-column: 1 / 3; position: relative; display: flex; align-items: center; border-radius: 26px; border: .5px solid rgba(0,0,0,.06); padding: 24px 32px 22px 28px; overflow: hidden;
  background: var(--carte); }
.ar-h-txt { flex: 1; min-width: 0; align-self: stretch; display: flex; flex-direction: column; }
.ar-h-l { display: flex; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.ar-nb { font-size: 46px; line-height: 52px; font-weight: 700; letter-spacing: -1.6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.d.ar-dl { height: 24px; padding: 0 9px; font-size: 12px; background: rgba(255,255,255,.88); color: var(--ok-t); border: .5px solid rgba(0,0,0,.06); }
.d.ar-dl.neg { color: var(--err-t); }
.ar-kpis { margin-top: auto; display: flex; gap: 30px; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.78); border: .5px solid rgba(255,255,255,.9); }
.mk { display: flex; flex-direction: column; gap: 1px; min-width: 0; } .mk span { font-size: 12px; font-weight: 600; color: var(--texte2); white-space: nowrap; }
.mk b { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; font-variant-numeric: tabular-nums; white-space: nowrap; } .mk.droite { margin-left: auto; text-align: right; }
.ar-an { position: relative; z-index: 1; width: 186px; height: 186px; border-radius: 50%; background: rgba(255,255,255,.72); box-shadow: 0 8px 30px rgba(53,56,37,.08); flex: none; margin-left: 20px; }
.ar-tuiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto; gap: 12px; min-height: 0; }
.ar-t { background: #fff; border-radius: 18px; border: .5px solid rgba(0,0,0,.06); padding: 12px 13px 11px; display: flex; flex-direction: column; gap: 3px; min-width: 0; min-height: 0; }
.ar-t .lab { display: flex; align-items: center; gap: 6px; } .ar-t .lab .sf { color: var(--texte2); }
.ar-tn { font-size: 24px; line-height: 28px; font-weight: 700; letter-spacing: -0.6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ar-tp { margin-top: auto; display: flex; align-items: flex-end; gap: 8px; } .ar-tp .spark { flex: none; }
.ar-tg { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.ar-ts { font-size: 11.5px; font-weight: 600; color: var(--texte2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ar-graph-c { grid-column: 1 / 3; padding: 16px 18px 10px; display: flex; flex-direction: column; min-height: 0; }
.ar-leg { display: flex; align-items: center; gap: 22px; margin-top: 8px; }
.op { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; min-width: 0; }
.op i { width: 8px; height: 8px; border-radius: 4px; flex: none; }
.op b, .op .v { font-variant-numeric: tabular-nums; white-space: nowrap; } .ar-leg .op b { margin-left: 2px; }
.op .v { margin-left: auto; } .op .p { width: 38px; text-align: right; color: var(--texte3); font-variant-numeric: tabular-nums; }
.ar-leg-m { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--texte2); }
.ar-graph { flex: 1; min-height: 0; margin-top: 6px; position: relative; touch-action: pan-y; }
.ar-graph svg { position: absolute; inset: 0; display: block; overflow: visible; }
.ar-ax { font-size: 10.5px; font-weight: 600; fill: var(--filet4); transition: fill .2s; } .ar-ax.on { fill: var(--accent); font-weight: 700; }
.ar-cur { stroke: rgba(98,103,63,.35); stroke-width: 1.5; stroke-dasharray: 1 4; stroke-linecap: round; transition: transform .25s var(--sortie); }
.ar-pt { transition: cx .25s var(--sortie), cy .25s var(--sortie); }
.ar-trait.anim { stroke-dasharray: 1; stroke-dashoffset: 1; animation: arTrace 1.2s var(--sortie) .2s forwards; }
@keyframes arTrace { to { stroke-dashoffset: 0; } }
.ar-aire.anim, .ar-pointille.anim { opacity: 0; animation: apparait .6s ease .9s forwards; }
.ar-ou { padding: 16px 18px; display: flex; flex-direction: column; min-height: 0; }
.ar-sur { margin-left: auto; }
.ar-barre { display: flex; gap: 3px; height: 8px; } .ar-barre i { border-radius: 4px; transform-origin: left; animation: arPousse .8s var(--ressort) .25s both; }
.ar-barre.gd { height: 12px; margin-top: 16px; } .ar-barre.gd i { border-radius: 6px; }
@keyframes arPousse { from { transform: scaleX(0); opacity: 0; } }
.ar-ou-l { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.ar-reste { margin-top: auto; padding-top: 11px; border-top: .5px solid var(--sep); display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; font-weight: 700; }
.ar-reste i { width: 8px; height: 8px; border-radius: 4px; background: var(--v600); align-self: center; flex: none; }
.ar-reste .v { margin-left: auto; font-size: 17px; font-variant-numeric: tabular-nums; } .ar-reste .p { width: 38px; text-align: right; font-size: 12.5px; color: var(--texte3); font-weight: 600; }
.ar-liste { padding: 14px 18px 8px; display: flex; flex-direction: column; min-height: 0; } .ar-liste .wh { margin-bottom: 6px; }
.ar-l { display: flex; align-items: center; gap: 11px; height: 46px; } .ar-l + .ar-l { border-top: .5px solid var(--sep); }
.ar-ic { width: 30px; height: 30px; border-radius: 10px; background: var(--g200); color: #636366; display: flex; align-items: center; justify-content: center; flex: none; }
.ar-nm { flex: 1; min-width: 0; } .ar-nm b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-nm small { display: block; font-size: 11.5px; color: var(--texte2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-pr { flex: none; text-align: right; padding-left: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ar-pr b { display: block; font-size: 13.5px; font-weight: 600; } .ar-pr small { display: flex; align-items: center; justify-content: flex-end; gap: 3px; font-size: 11.5px; font-weight: 600; }
.ar-rem { padding: 16px 18px; display: flex; flex-direction: column; min-height: 0; }
.ar-rem p { font-size: 13.5px; line-height: 19px; color: rgba(29,29,31,.82); margin-top: 10px; } .ar-rem .rem-t + p { margin-top: 12px; }
.ar-rem .rem-t > div { flex: 1; }
/* iPhone */
.ar-tete { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.seg.plein { flex: 1; height: 32px; border-radius: 9px; } .seg.plein button { flex: 1; border-radius: 7px; font-size: 13px; }
.ar-mois-b { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 16px; background: #fff; border: .5px solid rgba(0,0,0,.08); font-size: 14px; font-weight: 600; white-space: nowrap; }
.ar-mois-b .sf { color: var(--texte3); }
.tel .ar-heros { flex-wrap: wrap; padding: 16px; align-items: center; background: var(--carte); }
.tel .ar-heros .maint-sur { font-size: 12px; letter-spacing: .5px; }
.tel .ar-nb { font-size: 38px; line-height: 44px; letter-spacing: -1.3px; } .tel .ar-h-l { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 4px; }
.tel .ar-an { width: 84px; height: 84px; margin-left: 10px; box-shadow: none; } .tel .ar-an .an-pt { font-size: 19px; letter-spacing: -0.4px; } .tel .ar-an small { font-size: 10.5px; }
.ar-rep { flex: 0 0 100%; margin-top: 14px; padding: 11px 12px; border-radius: 16px; background: rgba(255,255,255,.78); border: .5px solid rgba(255,255,255,.9); }
.ar-rep-l { display: flex; justify-content: space-between; margin-top: 9px; } .ar-rep-l .op { font-size: 12px; gap: 6px; color: var(--texte2); } .ar-rep-l .op b { color: var(--texte); } .ar-rep-l .op i { width: 7px; height: 7px; }
.tel .ar-tuiles { grid-template-rows: 104px; gap: 10px; } .tel .ar-t { border-radius: 20px; }
.tel .ar-graph-c { padding: 14px 14px 8px; } .tel .ar-leg { gap: 12px; } .tel .ar-leg .op { font-size: 12px; gap: 6px; } .tel .ar-graph { flex: none; height: 130px; }
.tel .ar-liste { padding: 10px 14px 2px; } .tel .ar-liste .wh { padding: 4px 0 2px; margin-bottom: 0; }
.tel .ar-l { height: 52px; } .tel .ar-ic { width: 32px; height: 32px; } .tel .ar-nm b, .tel .ar-pr b { font-size: 15px; } .tel .ar-nm small, .tel .ar-pr small { font-size: 12px; }
.tel .ar-rem { padding: 14px; } .tel .ar-rem p { font-size: 14px; margin-top: 10px; }

/* ---------- Achat-revente › Produits ---------- */
.pr-rech { display: flex; align-items: center; gap: 7px; height: 30px; width: 200px; padding: 0 10px; border-radius: 9px; background: var(--remp2); color: var(--texte2); }
.pr-rech input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 12.5px; color: var(--texte); }
.pr-rech.tel { width: auto; height: 38px; border-radius: 12px; margin: 0 0 12px; font-size: 16px; } .pr-rech.tel input { font-size: 16px; }
.prd { flex: 1; display: flex; margin: -18px -20px; min-height: 0; align-items: flex-start; }
.pr-g { flex: 1; min-width: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; align-self: stretch; }
.pr-seg { align-self: flex-start; } .pr-seg button i, .pr-chip i { font-style: normal; color: var(--texte3); font-variant-numeric: tabular-nums; }
.pr-tbl { padding: 4px 14px 10px; }
.pr-th, .pr-tr { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.55fr) minmax(0,.75fr) minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 18px; }
.pr-th { height: 34px; font-size: 11.5px; font-weight: 700; color: var(--texte2); border-bottom: .5px solid var(--sep); }
.pr-th .r, .pr-tr .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pr-tr { width: 100%; height: 44px; font-size: 13px; font-weight: 600; margin: 0 -8px; padding: 0 8px; width: calc(100% + 16px); border-radius: 10px; text-align: left; transition: background .15s; }
.pr-tr + .pr-tr { box-shadow: 0 -.5px 0 var(--filet); }
.pr-tr:hover { background: rgba(98,103,63,.04); } .pr-tr.sel { background: rgba(98,103,63,.08); box-shadow: none; } .pr-tr.sel + .pr-tr { box-shadow: none; }
.pr-pn { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pr-ic { width: 30px; height: 30px; border-radius: 10px; background: var(--g200); color: #636366; display: flex; align-items: center; justify-content: center; flex: none; }
.pr-ic.gd { width: 44px; height: 44px; border-radius: 13px; }
.pr-nm { min-width: 0; flex: 1; text-align: left; } .pr-nm b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-nm small { display: block; font-size: 11.5px; font-weight: 500; color: var(--texte2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gris2 { color: var(--texte2); } .gris3 { color: var(--texte2); }
.pr-sec2 { display: flex; align-items: baseline; gap: 8px; padding: 14px 0 6px; font-size: 12.5px; }
.pr-sec2 b { font-weight: 700; } .pr-sec2 .nb { font-weight: 700; color: var(--texte3); } .pr-sec2 .sd { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--texte2); }
.pr-plus { display: block; margin: 8px auto 0; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.pr-ins { width: 376px; flex: none; background: #fff; border-left: .5px solid rgba(0,0,0,.08); padding: 20px 22px; display: flex; flex-direction: column; position: sticky; top: 0; height: calc(100vh - 56px); overflow-y: auto; }
.pr-ins.arrive { animation: monte .4s var(--ressort) both; }
.pr-ins-vide { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--texte3); }
.pr-ft { display: flex; align-items: center; gap: 12px; } .pr-ftt { flex: 1; min-width: 0; }
.pr-titre { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-sous { font-size: 12.5px; color: var(--texte2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-st { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11.5px; font-weight: 700; white-space: nowrap; flex: none; }
.pr-ell { width: 30px; height: 30px; border-radius: 15px; background: var(--g200); display: flex; align-items: center; justify-content: center; color: #636366; flex: none; }
.pr-blk { padding: 14px 0; border-bottom: .5px solid var(--sep); } .pr-blk:last-of-type { border-bottom: 0; }
.pr-haut { margin-top: 6px; }
.pr-bt { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; } .pr-bt > :last-child:not(:first-child) { margin-left: auto; } .pr-bt h3 { margin: 0; font-size: 12px; font-weight: 700; color: var(--texte2); }
.pr-lab { font-size: 12px; font-weight: 600; color: var(--texte2); }
.pr-repl { font-size: 13px; font-weight: 600; }
.pr-gros { font-size: 30px; line-height: 34px; font-weight: 700; letter-spacing: -0.8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pr-tri, .pr-trio { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 10px; }
.pr-tri div, .pr-trio div { background: var(--g100); border-radius: 12px; padding: 8px 10px; }
.pr-tri span, .pr-trio span { display: block; font-size: 11px; font-weight: 600; color: var(--texte2); } .pr-tri b, .pr-trio b { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pr-fld { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 13px; } .pr-fld span { color: var(--texte2); flex: none; } .pr-fld b { font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.pr-rg { position: relative; height: 58px; margin-top: 6px; }
.pr-rg-l { position: absolute; left: 0; right: 0; top: 22px; height: 6px; border-radius: 3px; background: var(--remp2); }
.pr-rg-z { position: absolute; top: 20px; height: 10px; border-radius: 5px; background: var(--sp600); transform-origin: left; animation: arPousse .8s var(--ressort) .2s both; }
.pr-rg-c { position: absolute; top: 8px; width: 0; } .pr-rg-c i { position: absolute; left: -1px; top: 4px; width: 2px; height: 26px; border-radius: 1px; background: #1D1D1F; }
.pr-rg-c span { position: absolute; left: 0; top: -10px; transform: translateX(-50%); font-size: 11px; font-weight: 700; white-space: nowrap; }
.pr-rg-t { position: absolute; top: 36px; transform: translateX(-50%); font-size: 11px; font-weight: 600; color: var(--texte2); white-space: nowrap; }
.pr-antitre { font-size: 13px; font-weight: 600; line-height: 18px; }
.pr-act { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; } .pr-act .btn-noir { flex: 1; }
.pr-hv { margin-top: 16px; border-radius: 18px; padding: 14px 16px; background: var(--carte); border: .5px solid rgba(0,0,0,.06); }
.pr-hv.neg { background: var(--carte); }
.pr-split { display: flex; gap: 3px; height: 10px; margin-top: 12px; } .pr-split i { border-radius: 5px; transform-origin: left; animation: arPousse .8s var(--ressort) .2s both; }
.pr-splitl { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; font-weight: 600; color: var(--texte2); } .pr-splitl b { color: var(--texte); }
.pr-parc { display: flex; align-items: flex-start; }
.pr-pe { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; text-align: center; }
.pr-pe::before { content: ''; position: absolute; top: 9px; left: -50%; right: 50%; height: 2px; background: var(--remp3); } .pr-pe.ok::before { background: #676D44; } .pr-pe:first-child::before { display: none; }
.pr-pe i { width: 20px; height: 20px; border-radius: 10px; background: var(--remp3); color: #fff; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.pr-pe.ok i { background: var(--ok); } .pr-pe b { font-size: 11.5px; font-weight: 700; } .pr-pe span { font-size: 11px; font-weight: 600; color: var(--texte2); white-space: nowrap; }
/* menu ⋯ (Mac) */
.pr-menu { position: fixed; z-index: 60; width: 224px; padding: 5px; border-radius: 14px; background: rgba(250,251,252,.97); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); box-shadow: 0 14px 40px rgba(19,20,7,.22), 0 0 0 .5px rgba(0,0,0,.08); opacity: 0; transform: scale(.96) translateY(-4px); transform-origin: top right; transition: opacity .18s, transform .25s var(--ressort); }
.pr-menu.vu { opacity: 1; transform: none; }
.pr-menu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 32px; padding: 0 10px; border-radius: 8px; font-size: 13px; text-align: left; }
.pr-menu button .sf { color: var(--texte2); } .pr-menu button:hover { background: var(--accent); color: #fff; } .pr-menu button:hover .sf { color: #fff; }
.pr-menu button.rouge, .pr-menu button.rouge .sf { color: var(--err-t); } .pr-menu button.rouge:hover { background: var(--err); color: #fff; } .pr-menu button.rouge:hover .sf { color: #fff; }
.pr-msep { height: .5px; background: var(--filet2); margin: 4px 8px; }
/* feuille d'actions (iPhone) */
.pr-as { display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; margin-top: 8px; }
.pr-as button { height: 56px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 19px; color: var(--accent); }
.pr-as button + button { box-shadow: 0 -.5px 0 var(--filet2); } .pr-as button.rouge { color: var(--err-t); }
/* iPhone : liste */
.pr-plusrond { width: 36px; height: 36px; border-radius: 18px; background: #1D1D1F; color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; flex: none; }
.pr-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px; scrollbar-width: none; } .pr-chips::-webkit-scrollbar { display: none; }
.pr-chip { flex: none; height: 32px; padding: 0 13px; border-radius: 16px; background: #fff; border: .5px solid rgba(0,0,0,.08); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .25s, color .25s; }
.pr-chip.on { background: #1D1D1F; color: #fff; border-color: #1D1D1F; } .pr-chip.on i { color: rgba(255,255,255,.6); }
.pr-sec { display: flex; align-items: baseline; gap: 6px; margin: 16px 6px 6px; font-size: 13px; font-weight: 700; color: var(--texte2); } .pr-sec:first-child { margin-top: 0; } .pr-sec span { margin-left: auto; font-weight: 600; }
.pr-groupe { padding: 2px 14px; }
.pr-rw { display: flex; align-items: center; gap: 11px; width: 100%; height: 56px; text-align: left; } .pr-rw + .pr-rw { box-shadow: 0 -.5px 0 var(--filet); }
.pr-rw .pr-ic { width: 32px; height: 32px; } .pr-rw .pr-nm b { font-size: 15px; } .pr-rw .pr-nm small { font-size: 12.5px; }
.pr-dr { flex: none; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; } .pr-dr b { display: block; font-size: 15px; font-weight: 600; } .pr-dr small { display: block; font-size: 12px; font-weight: 600; }
.feuille .pr-ins.tel { position: static; width: auto; height: auto; border: 0; padding: 4px 2px 0; background: transparent; }
.feuille .pr-ins.tel .pr-blk { background: #fff; border-radius: 16px; padding: 12px 14px; margin-top: 10px; border: 0; }
.feuille .pr-ins.tel .pr-trio div, .feuille .pr-ins.tel .pr-tri div { background: #fff; } .feuille .pr-ins.tel .pr-blk .pr-tri div { background: var(--g100); }
.feuille .pr-ins.tel .pr-hv { background: var(--carte); }
.feuille .pr-ins.tel .pr-ell { margin-right: 40px; background: var(--remp2); }
.feuille .pr-ins.tel .pr-act { position: sticky; bottom: 0; padding: 12px 0 4px; background: linear-gradient(180deg, rgba(250,251,252,0), rgba(250,251,252,.96) 30%); }
.feuille .pr-ins.tel .pr-act .btn-noir, .feuille .pr-ins.tel .pr-act .btn-gris { height: 50px; border-radius: 25px; font-size: 16px; }
/* feuilles de formulaire */
.feuille.pr-form { max-height: calc(100vh - 40px); overflow: hidden; }
.feuille.pr-form.large { width: 940px; } .feuille.pr-vente { width: 600px; } .feuille.pr-annonce { width: 720px; }
.pr-form .feuille-corps { padding: 0; display: flex; flex-direction: column; overflow: hidden; min-height: 0; flex: 1; }
.pr-sht { display: flex; align-items: center; gap: 10px; padding: 16px 60px 12px 24px; } .pr-sht h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.2px; }
.pr-ref { height: 22px; padding: 0 8px; border-radius: 11px; background: var(--remp2); font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; color: rgba(29,29,31,.75); }
.pr-ref.blanc { background: #fff; border: .5px solid rgba(0,0,0,.1); }
.pr-fcorps { flex: 1; min-height: 0; overflow-y: auto; padding: 0 24px 18px; display: flex; flex-direction: column; gap: 14px; }
.pr-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; } .pr-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pr-grp { background: #fff; border-radius: 16px; border: .5px solid rgba(0,0,0,.07); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.pr-grp h3 { margin: 0; font-size: 12px; font-weight: 700; color: var(--texte2); }
.pr-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .pr-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.pr-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .pr-f > span:first-child { font-size: 11.5px; font-weight: 600; color: var(--texte2); }
.pr-in { height: 32px; width: 100%; min-width: 0; border-radius: 9px; background: var(--g200); border: .5px solid rgba(0,0,0,.06); padding: 0 10px; font-size: 13px; color: var(--texte); outline: 0; transition: box-shadow .2s, border-color .2s, background .2s; }
.pr-in:focus { background: #fff; border-color: rgba(98,103,63,.45); box-shadow: 0 0 0 3px rgba(98,103,63,.12); }
.pr-eur { position: relative; display: block; } .pr-eur .pr-in { padding-right: 26px; } .pr-eur i { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 600; color: var(--texte3); font-size: 13px; }
.pr-eur.gros .pr-in { height: 46px; font-size: 24px; font-weight: 700; } .pr-eur.gros i { font-size: 18px; }
.pr-cats, .pr-plats { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-cat, .pr-plat { height: 30px; padding: 0 11px; border-radius: 15px; background: var(--g200); border: .5px solid rgba(0,0,0,.06); display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; position: relative; transition: background .2s, color .2s; }
.pr-plat { background: #fff; border-color: rgba(0,0,0,.1); }
.pr-cat .sf { color: var(--texte2); } .pr-cat.on, .pr-plat.on { background: #1D1D1F; color: #fff; border-color: #1D1D1F; } .pr-cat.on .sf, .pr-plat.on .sf { color: #fff; }
.pr-cat-sel select { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.pr-cap { font-size: 12px; font-weight: 600; color: var(--texte2); margin: 0 4px 6px; }
.pr-lst { background: #fff; border-radius: 14px; border: .5px solid rgba(0,0,0,.07); overflow: hidden; }
.pr-lr { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 14px; font-size: 13px; }
.pr-lr + .pr-lr { box-shadow: 0 -.5px 0 var(--filet); }
.pr-lr .kk { flex: none; } .pr-lr .pr-in { flex: 1; background: transparent; border: 0; text-align: right; padding: 0; font-weight: 500; } .pr-lr .pr-in:focus { box-shadow: none; }
.pr-lr > .pr-sel, .pr-lr > .pr-mseg, .pr-lr > .pr-pil, .pr-lr > .pr-tg { margin-left: auto; }
.pr-sel { position: relative; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--texte); } .pr-sel .sf { color: var(--texte3); }
.pr-sel select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; color: inherit; text-align: right; padding: 0; cursor: pointer; }
.pr-f .pr-sel { height: 32px; border-radius: 9px; background: var(--g200); border: .5px solid rgba(0,0,0,.06); padding: 0 10px; justify-content: space-between; } .pr-f .pr-sel select { text-align: left; flex: 1; }
.pr-pil { height: 26px; padding: 0 8px; border-radius: 7px; background: var(--remp2); border: 0; font: inherit; font-size: 13px; color: var(--texte); }
.pr-mseg { display: inline-flex; height: 28px; border-radius: 8px; background: var(--remp2); padding: 2px; }
.pr-mseg button { padding: 0 10px; border-radius: 6px; font-size: 12.5px; font-weight: 600; color: rgba(29,29,31,.7); white-space: nowrap; transition: background .25s var(--ressort), box-shadow .25s; }
.pr-mseg button.on { background: #fff; color: var(--texte); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.pr-f > .pr-mseg, .pr-grp > .pr-mseg { display: flex; height: 32px; } .pr-f > .pr-mseg button, .pr-grp > .pr-mseg button { flex: 1; }
.pr-tg { appearance: none; -webkit-appearance: none; width: 38px; height: 23px; border-radius: 12px; background: var(--remp3); position: relative; cursor: pointer; transition: background .25s; flex: none; }
.pr-tg::after { content: ''; position: absolute; left: 2px; top: 2px; width: 19px; height: 19px; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .25s var(--ressort); }
.pr-tg:checked { background: var(--accent); } .pr-tg:checked::after { transform: translateX(15px); }
.pr-note { width: 100%; min-height: 56px; resize: vertical; border-radius: 14px; background: #fff; border: .5px solid rgba(0,0,0,.07); padding: 10px 14px; font: inherit; font-size: 13px; line-height: 18px; outline: 0; }
.pr-shf { display: flex; align-items: center; gap: 10px; padding: 12px 20px 14px 24px; border-top: .5px solid rgba(0,0,0,.08); background: #fff; flex: none; }
.pr-esp { flex: 1; }
.pr-sum { display: flex; gap: 18px; align-items: baseline; } .pr-sum span { display: block; font-size: 11px; font-weight: 600; color: var(--texte2); } .pr-sum b { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pr-danger { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--err-t); margin-right: 10px; }
.pr-vp { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; border: .5px solid rgba(0,0,0,.07); }
.pr-vp .pr-ftt b { display: block; font-size: 14px; } .pr-vp .pr-ftt small { display: block; font-size: 12px; color: var(--texte2); }
.pr-ben { text-align: right; } .pr-ben small { display: block; font-size: 11.5px; font-weight: 600; color: var(--texte2); } .pr-ben b { display: block; font-size: 19px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pr-cotec { display: flex; gap: 6px; margin-top: 8px; align-items: center; } .pr-cotec button { height: 28px; padding: 0 11px; border-radius: 14px; background: var(--g200); font-size: 12.5px; font-weight: 600; }
.pr-cotec button.on { background: rgba(98,103,63,.12); color: var(--accent); } .pr-cotec span { font-size: 12.5px; color: var(--texte2); }
.pr-temps { display: flex; align-items: center; gap: 6px; } .pr-temps .pr-in { width: 54px; text-align: center; } .pr-temps i { font-style: normal; font-size: 12.5px; color: var(--texte2); }
.pr-icbs { display: flex; gap: 6px; } .pr-icb { width: 30px; height: 30px; border-radius: 9px; background: var(--g200); display: flex; align-items: center; justify-content: center; color: #636366; }
.pr-txt { border-radius: 12px; background: var(--g200); padding: 12px 14px; font-size: 13px; line-height: 19px; white-space: pre-wrap; user-select: text; } .pr-txt.gras { font-weight: 600; } .pr-txt.long { max-height: 52vh; overflow-y: auto; }
.pr-vide-an { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 0; color: var(--texte3); }
.pr-nav { display: flex; align-items: center; height: 48px; padding: 0 16px; flex: none; } .pr-nav button { font-size: 17px; color: var(--accent); } .pr-nav b { flex: 1; text-align: center; font-size: 17px; font-weight: 600; } .pr-nav .ok { font-weight: 700; }
.pr-suppr { display: flex; align-items: center; justify-content: center; gap: 6px; height: 46px; border-radius: 14px; background: #fff; color: var(--err-t); font-size: 16px; font-weight: 500; }
body.tel .pr-form:not(.pr-annonce) .feuille-x.flottant { display: none; }
body.tel .feuille.pr-form { top: 50px; max-height: none; }
body.tel .pr-fcorps { padding: 4px 16px 20px; }
body.tel .pr-2col { display: flex; flex-direction: column; }
body.tel .pr-shf { padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); } body.tel .pr-sum { flex: 1; justify-content: space-around; text-align: center; }
body.tel .pr-in, body.tel .pr-lr, body.tel .pr-sel select, body.tel .pr-note { font-size: 16px; } body.tel .pr-lr { min-height: 44px; }
body.tel .pr-cats { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 0 14px; scrollbar-width: none; }
body.tel .feuille.pr-annonce .pr-sht, body.tel .feuille.pr-vente .pr-sht { padding-right: 60px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}

/* Produits › bloc Annonce cliquable (entrée unique) */
.pr-anblk { cursor: pointer; border-radius: 10px; transition: background .15s; }
.pr-anblk:hover { background: rgba(0,0,0,.025); } .pr-anblk:active { background: rgba(0,0,0,.05); }
.pr-anblk:focus-visible { outline: 2px solid var(--b600); outline-offset: 2px; }
.pr-anblk .pr-chev { margin-left: auto; color: var(--texte3); }

/* ---------- Achat-revente › Pièces (stock) ---------- */
.pc-barre { display: flex; align-items: center; gap: 10px; }
.pc-total { margin-left: auto; font-size: 13px; color: var(--texte2); white-space: nowrap; } .pc-total b { color: var(--texte); font-weight: 700; font-variant-numeric: tabular-nums; }
.pc-chips { align-items: center; } .pc-chips .pc-total { padding-right: 2px; }
.pc-tbl .pr-th, .pc-tbl .pr-tr { grid-template-columns: minmax(0,1.5fr) minmax(0,.7fr) minmax(0,.6fr) minmax(0,.4fr) minmax(0,.6fr); }
.pc-det { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 10px; font-size: 11px; font-weight: 700; background: var(--remp2); color: rgba(29,29,31,.7); white-space: nowrap; }
.pc-af { display: flex; align-items: center; gap: 11px; min-height: 46px; } .pc-af + .pc-af { box-shadow: 0 -.5px 0 var(--filet); }
.pc-af .pr-nm { flex: 1; min-width: 0; } .pc-af .pr-dr b { font-size: 13.5px; } .pc-af .pr-dr small { font-size: 11.5px; font-weight: 600; }
.pr-act .btn-gris { flex: 1; }
.pc-stp { display: inline-flex; align-items: center; gap: 10px; height: 32px; }
.pc-stp button { display: flex; color: var(--texte); transition: transform .15s var(--sortie), opacity .2s; } .pc-stp button:disabled { color: var(--texte3); cursor: default; }
.pc-stp b { min-width: 22px; text-align: center; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pc-stp.off b { color: var(--texte2); }
.feuille.pc-form { width: 680px; } .feuille.pc-form.petit { width: 600px; }
.pc-form .pr-fcorps > .pr-mseg { display: flex; height: 32px; flex: none; } .pc-form .pr-fcorps > .pr-mseg button { flex: 1; }
.pc-plats { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.pc-rech { width: auto; height: 32px; flex: none; }
.pc-ch { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 50px; padding: 0 14px; text-align: left; transition: background .15s; }
.pc-ch + .pc-ch { box-shadow: 0 -.5px 0 var(--filet); } .pc-ch:hover { background: rgba(98,103,63,.04); } .pc-ch.on { background: rgba(98,103,63,.07); }
.pc-ch .pr-nm { flex: 1; min-width: 0; } .pc-ch .pr-ic { width: 30px; height: 30px; }
.pc-rad { width: 22px; height: 22px; border-radius: 11px; border: 1.5px solid var(--filet3); flex: none; display: flex; align-items: center; justify-content: center; color: #fff; transition: background .2s, border-color .2s; }
.pc-ch.on .pc-rad { background: var(--accent); border-color: var(--accent); }
.pc-mt { font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pc-dem { display: grid; grid-template-columns: 34px minmax(0,1fr) 46px 96px 22px; gap: 8px; align-items: center; padding: 8px 10px 8px 12px; }
.pc-dem + .pc-dem { box-shadow: 0 -.5px 0 var(--filet); }
.pc-dcat { width: 34px; height: 32px; padding: 0; justify-content: center; border-radius: 9px; position: relative; }
.pc-q { text-align: center; padding: 0 4px; }
.pc-x { width: 22px; height: 22px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: var(--texte2); } button.pc-x:hover { background: var(--remp2); }
.pc-ajl { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 40px; padding: 0 14px; font-size: 13px; font-weight: 600; color: var(--accent); box-shadow: 0 -.5px 0 var(--filet); }
.pc-ref { margin-top: 10px; }
body.tel .feuille.pc-form { width: 100%; }
body.tel .pc-dem { grid-template-columns: 34px minmax(0,1fr) 40px 84px 22px; padding: 8px 8px 8px 10px; }
body.tel .pc-ch { min-height: 58px; } body.tel .pc-ch .pr-nm b { font-size: 16px; }
body.tel .pc-stp b { font-size: 17px; }
.pc-form .pr-sum span, .pc-form .pr-sum b { white-space: nowrap; } .feuille.pc-form.vente { width: 660px; }

/* Amélia : fichiers joints (trombone, glisser-déposer, coller) */
.am-pj { width: 36px; height: 36px; margin: 2px 0 2px 2px; border-radius: 18px; flex: none; display: flex; align-items: center; justify-content: center; color: var(--texte2); transition: background .2s, color .2s; }
.am-pj:hover { background: var(--remp2); color: var(--texte); }
.am-champ textarea { padding-left: 6px; }
.am-pjs { max-width: 680px; margin: 0 auto; display: none; flex-wrap: wrap; gap: 6px; padding: 0 4px 8px; } .am-pjs.vu { display: flex; }
.am-fics { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-bottom: 6px; max-width: 78%; }
.am-fic { display: inline-flex; align-items: center; gap: 6px; height: 32px; max-width: 260px; padding: 0 6px 0 10px; border-radius: 16px; background: #fff; border: .5px solid rgba(0,0,0,.1); font-size: 13px; font-weight: 600; color: var(--texte); }
.am-fic .sf { color: var(--accent); } .am-fic > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-fics .am-fic { padding-right: 12px; }
.am-fic button { width: 20px; height: 20px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--remp2); color: var(--texte2); flex: none; }
.am-fic.arrive { animation: monte .35s var(--ressort) both; }
body.am-glisse::after { content: ''; position: fixed; inset: 10px; z-index: 80; border-radius: 22px; border: 2px dashed rgba(98,103,63,.5); background: rgba(181,188,147,.08); pointer-events: none; }
body.tel .am-fics { max-width: 86%; }

/* ===== Achat-revente › Charges (maquettes K1–K17) ===== */
.ch { display: flex; flex-direction: column; gap: 14px; }
.ch-haut { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 14px; }
.ch-hero { padding: 16px 18px; display: flex; gap: 22px; border-radius: 22px; }
.ch-hero-g { width: 220px; flex: none; } .ch-hero-d { flex: 1; min-width: 0; display: flex; align-items: flex-end; }
.ch-gros { font-size: 40px; line-height: 46px; font-weight: 700; letter-spacing: -1.2px; margin: 2px 0 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ch-moy { margin-top: 14px; font-size: 12.5px; color: var(--texte2); } .ch-moy b { color: var(--texte); font-weight: 700; }
.ch-delta { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.ch-delta.bon { background: rgba(103,109,68,.13); color: var(--ok-t); } .ch-delta.mal { background: rgba(142,142,147,.14); color: var(--att-t); }
.ch-barres { display: flex; align-items: flex-end; gap: 7px; width: 100%; height: 100%; min-height: 70px; }
.ch-barres > div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.ch-barres i { display: block; width: 100%; border-radius: 5px; background: var(--remp3); min-height: 3px; transform-origin: bottom; animation: ch-monte .5s var(--sortie) both; }
.ch-barres i.on { background: var(--bleu); }
.ch-barres span { font-size: 10.5px; font-weight: 600; color: var(--texte2); } .ch-barres span.on { color: var(--accent); }
@keyframes ch-monte { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.ch-tuiles { display: grid; gap: 10px; }
.ch-t { padding: 12px 14px; border-radius: 18px; display: flex; flex-direction: column; justify-content: center; }
.ch-t span { font-size: 12px; font-weight: 600; color: var(--texte2); }
.ch-t b { font-size: 22px; line-height: 27px; font-weight: 700; letter-spacing: -.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ch-t small { font-size: 11.5px; font-weight: 600; color: var(--texte2); }
.ch-rep { padding: 14px 18px; border-radius: 18px; }
.ch-rep-t { display: flex; align-items: baseline; margin-bottom: 10px; } .ch-rep-t span { font-size: 12px; font-weight: 600; color: var(--texte2); } .ch-rep-t b { margin-left: auto; font-size: 15px; font-weight: 700; }
.ch-split { display: flex; gap: 3px; height: 12px; } .ch-split i { display: block; border-radius: 6px; }
.ch-leg { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 12.5px; color: var(--texte2); }
.ch-leg span { display: flex; align-items: center; gap: 6px; } .ch-leg i { width: 8px; height: 8px; border-radius: 4px; display: block; } .ch-leg b { color: var(--texte); font-weight: 600; font-variant-numeric: tabular-nums; }
.ch-bas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 14px; align-items: start; }
.ch-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ch-st { display: flex; align-items: baseline; gap: 8px; padding: 0 4px; } .ch-st b { font-size: 15px; font-weight: 700; } .ch-st span { margin-left: auto; font-size: 12.5px; color: var(--texte2); font-variant-numeric: tabular-nums; }
.ch-sugg { border-radius: 18px; padding: 14px; border: .5px solid rgba(0,0,0,.06);
  background: #fff; }
.ch-sugg-t { display: flex; align-items: center; gap: 10px; } .ch-sugg-t b { font-size: 13.5px; }
.ch-sugg p { margin: 8px 0 12px; font-size: 13.5px; line-height: 19px; } .ch-sugg-b { display: flex; gap: 8px; }
.ch-liste { padding: 2px 14px; border-radius: 18px; }
.ch-l { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 52px; text-align: left; transition: opacity .15s; }
.ch-l + .ch-l { box-shadow: 0 -.5px 0 var(--filet); } .ch-l:hover { opacity: .75; }
.ch-ic { width: 30px; height: 30px; border-radius: 10px; background: var(--g200); color: #636366; display: flex; align-items: center; justify-content: center; flex: none; }
.ch-ic.bleu { background: rgba(98,103,63,.10); color: var(--accent); } .ch-ic.gd { width: 44px; height: 44px; border-radius: 14px; }
.ch-nm { flex: 1; min-width: 0; } .ch-nm b { display: flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-nm small { display: block; font-size: 11.5px; font-weight: 500; color: var(--texte2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-rec { color: var(--accent); display: inline-flex; } .ch-aff { color: var(--accent); font-weight: 600; }
.ch-mt { font-size: 13.5px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; } .ch-mt small { display: block; font-size: 11px; color: var(--texte2); font-weight: 600; }
.ch-vide { padding: 4px 6px; font-size: 13px; color: var(--texte2); font-weight: 600; }
.ch-mois + .ch-mois { box-shadow: 0 -.5px 0 var(--filet); }
.ch-mrow { display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; font-size: 13.5px; text-align: left; }
.ch-mrow b { font-weight: 600; } .ch-mrow .n { color: var(--texte2); font-weight: 600; font-size: 12.5px; } .ch-mrow .m { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.ch-chev { color: var(--texte3); transition: transform .25s var(--sortie); } .ch-mois.ouvert .ch-chev { transform: rotate(90deg); }
.ch-mcorps { padding-left: 4px; animation: ch-ouvre .25s var(--sortie) both; } .ch-mcorps .ch-l { min-height: 46px; }
@keyframes ch-ouvre { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* feuilles */
.ch-ft { display: flex; align-items: center; gap: 12px; padding: 20px 22px 6px; } .ch-ft > div { min-width: 0; flex: 1; }
.ch-flds { gap: 2px; } .ch-act { justify-content: flex-end; gap: 10px; }
.feuille.ch-fiche { width: 480px; } .feuille.ch-petit { width: 460px; }
.ch-ech { display: flex; align-items: center; gap: 8px; width: 100%; cursor: pointer; text-align: left; } .ch-ech b { margin-left: auto; } .ch-ech:hover { background: rgba(98,103,63,.04); }
.ch-quick { display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 10px; border-radius: 24px; background: #fff; border: .5px solid rgba(98,103,63,.45); box-shadow: 0 0 0 4px rgba(98,103,63,.1); }
.ch-q-orbe { display: flex; flex: none; } .ch-q-in { flex: 1; min-width: 0; height: 34px; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--texte); }
.ch-q-b { width: 34px; height: 34px; border-radius: 17px; display: flex; align-items: center; justify-content: center; color: var(--texte2); flex: none; transition: background .2s, color .2s; }
.ch-q-b:hover { background: var(--remp2); } .ch-q-b.on { background: rgba(211,108,114,.12); color: var(--err-t); }
.ch-q-ok { width: 34px; height: 34px; border-radius: 17px; background: #1D1D1F; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.ch-q-ok:disabled { opacity: .6; }
.ch-form .am-pjs.vu { margin: -4px 4px 0; }
.ch-rempli { background: rgba(181,188,147,.10) !important; border-color: rgba(181,188,147,.45) !important; }
.pr-cat.on.ch-rempli, .pr-plat.on.ch-rempli { background: #1D1D1F !important; border-color: #1D1D1F !important; box-shadow: 0 0 0 3px rgba(181,188,147,.35); }
.ch-autre { width: 110px; height: 30px; border-radius: 15px; font-size: 12.5px; }
.btn-rouge { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 18px; border-radius: 20px; font-size: 14px; font-weight: 700; background: var(--err); color: #fff; white-space: nowrap; transition: transform .18s var(--sortie); }
.btn-rouge:active { transform: scale(.97); }
/* iPhone */
.ch.tel { gap: 10px; padding-bottom: 20px; }
.ch.tel .ch-hero { display: block; padding: 14px; border-radius: 20px; }
.ch-hero-l { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .ch-hero-l .lab { font-size: 13px; }
.ch.tel .ch-gros { font-size: 34px; line-height: 40px; letter-spacing: -1px; margin: 0 0 8px; }
.ch.tel .ch-barres { height: 76px; gap: 5px; }
.ch.tel .ch-tuiles { grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .ch.tel .ch-t b { font-size: 19px; line-height: 24px; }
.ch.tel .ch-l { min-height: 58px; } .ch.tel .ch-nm b { font-size: 15px; } .ch.tel .ch-nm small { font-size: 12.5px; } .ch.tel .ch-mt { font-size: 15px; }
.ch.tel .ch-mrow { height: 46px; font-size: 15px; } .ch.tel .ch-mrow .n { font-size: 13px; }
.ch.tel .ch-st b { font-size: 13px; color: var(--texte2); text-transform: none; } .ch.tel .ch-sugg p { font-size: 15px; line-height: 21px; }
body.tel .feuille.ch-fiche, body.tel .feuille.ch-petit { width: 100%; }
body.tel .ch-q-in { font-size: 16px; } body.tel .ch-act .btn-noir, body.tel .ch-act .btn-gris, body.tel .ch-act .btn-rouge { flex: 1; height: 46px; }

/* ---------- Achat-revente › Chiffres (Bilans · Stats · Registres) ---------- */
.cf { display: flex; flex-direction: column; gap: 14px; }
.cf-charge { min-height: 300px; }
.tb-outils .cf-vues { margin-right: 4px; }
/* Bilans : depuis le début */
.cf-depuis { display: flex; gap: 26px; padding: 16px 18px 12px; height: 312px; border-radius: 22px; }
.cf-dg { width: 168px; flex: none; display: flex; flex-direction: column; }
.cf-tots { flex: 1; display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.cf-tots span { display: block; font-size: 12px; font-weight: 600; color: var(--texte2); }
.cf-tots b { display: block; font-size: 24px; line-height: 28px; font-weight: 700; letter-spacing: -0.6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cf-tots small { margin-top: auto; font-size: 12px; font-weight: 600; color: var(--texte2); }
.cf-dd { flex: 1; min-width: 0; display: flex; }
.cf-fr { display: flex; gap: 6px; width: 100%; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.cf-fr::-webkit-scrollbar { display: none; }
.cf-an { display: flex; flex-direction: column; min-height: 0; }
.cf-ms { flex: 1; display: flex; gap: 4px; min-height: 0; }
.cf-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; border-radius: 12px; padding: 8px 2px 6px; position: relative; transition: background .2s; }
.cf-col:hover { background: rgba(98,103,63,.04); } .cf-col.on { background: rgba(98,103,63,.08); }
.cf-v { font-size: 11px; font-weight: 700; color: var(--texte2); white-space: nowrap; font-variant-numeric: tabular-nums; } .cf-col.on .cf-v { color: var(--accent); } .cf-v.neg { color: var(--err-t); }
.cf-b { flex: 1; min-height: 0; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.cf-b i { display: block; width: 12px; border-radius: 4px; min-height: 3px; transform-origin: bottom; animation: ch-monte .5s var(--sortie) both; }
.cf-b .ca { background: var(--sp200); } .cf-b .re { background: var(--v600); } .cf-b .re.neg { background: var(--err); }
.cf-l { font-size: 11px; font-weight: 600; color: var(--texte2); white-space: nowrap; } .cf-col.on .cf-l { background: #1D1D1F; color: #fff; border-radius: 9px; padding: 1px 7px; font-weight: 700; }
.cf-pt { position: absolute; top: 3px; left: calc(50% + 12px); width: 5px; height: 5px; border-radius: 3px; background: var(--accent); }
.cf-annee { flex: none; height: 20px; margin-top: 6px; border-radius: 7px; background: var(--remp2); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--texte2); }
/* Bilans : le mois, où part la marge, URSSAF, note */
.cf-b3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, .95fr); gap: 14px; align-items: start; }
.cf-col3 { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cf-mois, .cf-ou, .cf-urssaf, .cf-note { padding: 14px 16px; border-radius: 22px; }
.cf-mt { display: flex; align-items: center; gap: 8px; } .cf-mt .d { margin-left: auto; }
.cf-gros { font-size: 36px; line-height: 42px; font-weight: 700; letter-spacing: -1.1px; margin-top: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cf-obj { display: flex; align-items: center; gap: 8px; margin-top: 10px; width: 100%; color: var(--texte3); }
.cf-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--remp2); overflow: hidden; }
.cf-bar i { display: block; height: 100%; border-radius: 3px; background: var(--sp600); transform-origin: left; animation: arPousse .8s var(--ressort) .2s both; }
.cf-objt { font-size: 12px; font-weight: 600; color: var(--texte2); white-space: nowrap; } .cf-objt b { color: var(--texte); }
.cf-objf { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; height: 28px; padding: 0 11px; border-radius: 14px; background: var(--accent-f); color: var(--accent); font-size: 12.5px; font-weight: 600; }
.cf-quatre { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.cf-quatre div { background: var(--g100); border-radius: 12px; padding: 8px 10px; }
.cf-quatre span { display: block; font-size: 11px; font-weight: 600; color: var(--texte2); } .cf-quatre b { display: block; font-size: 16px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; } .cf-quatre small { display: block; font-size: 11px; font-weight: 600; color: var(--texte3); }
.cf-out { display: flex; align-items: baseline; gap: 5px; } .cf-out .lab:first-child { margin-right: auto; } .cf-out b { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cf-split { display: flex; gap: 3px; height: 10px; margin-top: 12px; } .cf-split i { display: block; border-radius: 5px; transform-origin: left; animation: arPousse .8s var(--ressort) .2s both; }
.cf-rps { margin-top: 6px; }
.cf-rp { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; font-size: 13px; text-align: left; border-radius: 8px; }
.cf-rp + .cf-rp { box-shadow: 0 -.5px 0 var(--filet); } .cf-rp.clic:hover { background: rgba(98,103,63,.04); }
.cf-rp > i { width: 9px; height: 9px; border-radius: 3px; flex: none; } .cf-rp > b { font-weight: 600; } .cf-rp .d { margin-left: 2px; }
.cf-rv { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; } .cf-rv b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; } .cf-rv small { display: block; font-size: 11px; font-weight: 600; color: var(--texte3); }
.cf-fin { display: flex; align-items: baseline; padding-top: 10px; margin-top: 4px; border-top: .5px solid var(--sep); font-size: 13.5px; font-weight: 700; } .cf-fin b { margin-left: auto; font-variant-numeric: tabular-nums; } .cf-fin.neg b { color: var(--err-t); }
.cf-2t { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.cf-tu { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--g100); text-align: left; transition: transform .15s var(--sortie); }
.cf-tu:active { transform: scale(.98); }
.cf-tu span { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--texte2); } .cf-tu b { font-size: 20px; line-height: 25px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; } .cf-tu small { font-size: 11.5px; font-weight: 600; color: var(--texte3); }
.cf-tu.ora { background: rgba(142,142,147,.10); box-shadow: inset 0 0 0 .5px rgba(142,142,147,.3); } .cf-tu.ora span, .cf-tu.ora b, .cf-tu.ora small { color: var(--att-t); }
.cf-2b { display: flex; gap: 8px; margin-top: 10px; } .cf-2b button { flex: 1; height: 34px; border-radius: 17px; font-size: 13px; }
.cf-nt { display: flex; align-items: center; gap: 8px; }
.cf-am { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent); }
.cf-ic { margin-left: auto; width: 28px; height: 28px; border-radius: 14px; background: var(--g200); color: #636366; display: flex; align-items: center; justify-content: center; }
.cf-ecrire { width: 100%; min-height: 84px; margin-top: 10px; border: 1.5px dashed var(--filet2); border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent); transition: background .2s; }
.cf-ecrire:hover { background: rgba(98,103,63,.04); }
.cf-ntxt { margin-top: 8px; font-size: 13.5px; line-height: 19px; white-space: pre-wrap; }
/* feuilles */
.feuille.cf-petit { width: 460px; } .feuille.cf-note-f { width: 540px; }
.cf-ta { min-height: 120px; }
.cf-brouillon p { margin: 8px 0 12px; } .cf-attente { color: var(--texte3); animation: cfPulse 1.2s ease-in-out infinite alternate; }
@keyframes cfPulse { from { opacity: .35; } to { opacity: 1; } }
.cf-lr { cursor: pointer; width: 100%; text-align: left; } .cf-lr small { font-size: 12px; color: var(--texte3); } .cf-lr:hover { background: rgba(98,103,63,.04); }
.cf-telb { padding: 0 16px calc(16px + env(safe-area-inset-bottom)); } .cf-telb button { width: 100%; }
.cf-or { color: var(--att-t); font-style: normal; }
/* Stats */
.cf-s1 { display: grid; grid-template-columns: 540px minmax(0, 1fr); gap: 14px; }
.cf-rep { padding: 14px 18px; border-radius: 22px; }
.cf-repc { display: flex; align-items: center; gap: 26px; margin-top: 10px; }
.cf-don { position: relative; width: 140px; height: 140px; flex: none; } .cf-don svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cf-don circle { animation: apparait .6s ease both; opacity: 0; }
.cf-don b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; letter-spacing: -0.8px; }
.cf-lg { flex: 1; min-width: 0; max-width: 320px; display: flex; flex-direction: column; gap: 7px; }
.cf-lg div { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; } .cf-lg i { width: 9px; height: 9px; border-radius: 3px; flex: none; } .cf-lg b { margin-left: auto; font-variant-numeric: tabular-nums; }
.cf-tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cf-t { padding: 10px 14px; border-radius: 18px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.cf-t span { font-size: 12px; font-weight: 600; color: var(--texte2); } .cf-t b { font-size: 22px; line-height: 27px; font-weight: 700; letter-spacing: -.5px; white-space: nowrap; font-variant-numeric: tabular-nums; } .cf-t small { font-size: 11.5px; font-weight: 600; color: var(--texte3); }
.cf-catb { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.cf-cat { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 10px; background: #fff; border: .5px solid rgba(0,0,0,.1); box-shadow: 0 1px 2px rgba(27,29,15,.05); transition: transform .15s var(--sortie), box-shadow .2s; }
.cf-cat:hover { box-shadow: 0 2px 8px rgba(27,29,15,.08); } .cf-cat:active { transform: scale(.98); }
.cf-cat b { font-size: 13.5px; font-weight: 700; } .cf-cat .sf:last-child { color: var(--texte3); } .cf-cat .sf:first-child { color: #636366; }
.cf-menu { transform-origin: top left; width: 220px; }
.cf-ck { width: 14px; display: flex; color: var(--accent); } .cf-menu button:hover .cf-ck { color: #fff; }
.cf-s2 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.cf-tm { padding: 12px 16px 4px; border-radius: 22px; }
.cf-tmt { display: flex; justify-content: space-between; margin-bottom: 4px; }
.cf-th, .cf-tr { display: grid; grid-template-columns: minmax(0, 1.5fr) .45fr .8fr .8fr .8fr .6fr .6fr; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; }
.cf-th { height: 32px; font-size: 11.5px; font-weight: 700; color: var(--texte2); border-bottom: .5px solid var(--sep); }
.cf-tr { height: 34px; font-size: 13px; font-weight: 600; } .cf-tr + .cf-tr { box-shadow: 0 -.5px 0 var(--filet); }
.cf-th .r, .cf-tr .r { text-align: right; white-space: nowrap; } .cf-tr .g, .cf-th .g { color: var(--texte2); } .cf-tr > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-th.tel, .cf-tr.tel { grid-template-columns: minmax(0, 1.6fr) .4fr .9fr .7fr; gap: 10px; } .cf-tr.tel { height: 42px; font-size: 14px; }
.cf-plus { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 40px; font-size: 13px; font-weight: 600; color: var(--accent); }
.cf-tops { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cf-top { padding: 12px 14px 4px; border-radius: 20px; min-width: 0; }
.cf-topt { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; margin-bottom: 2px; white-space: nowrap; }
.cf-tp { display: flex; align-items: center; gap: 10px; height: 38px; font-size: 13px; } .cf-tp + .cf-tp { box-shadow: 0 -.5px 0 var(--filet); }
.cf-rk { width: 20px; height: 20px; border-radius: 10px; background: var(--remp2); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--texte2); flex: none; }
.cf-tpn { flex: 1; min-width: 0; } .cf-tpn b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cf-tpn small { display: block; font-size: 11px; font-weight: 600; color: var(--texte3); }
.cf-tpv { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Registres */
.cf-r2 { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 14px; align-items: start; }
.cf-rg { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cf-radios { padding: 0; overflow: hidden; border-radius: 16px; } .cf-radios .pc-ch { min-height: 52px; }
.cf-mseg button { display: flex; align-items: center; justify-content: center; gap: 6px; }
.cf-nav { display: flex; align-items: center; height: 32px; margin-top: 8px; border-radius: 9px; background: var(--remp2); padding: 2px; }
.cf-nav button { width: 32px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--texte2); } .cf-nav button:disabled { opacity: .3; cursor: default; }
.cf-nav b { flex: 1; height: 28px; border-radius: 7px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.1); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.cf-rexp { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px 0; }
.cf-exp { width: 100%; } .cf-exp:disabled { opacity: .4; cursor: default; }
.cf-ap { padding: 12px 16px 6px; border-radius: 22px; display: flex; flex-direction: column; max-height: calc(100vh - 92px); min-height: 0; }
.cf-apt-t { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.cf-xs { overflow-y: auto; min-height: 0; }
.cf-xh, .cf-xr { display: grid; grid-template-columns: .6fr 1.8fr .9fr 1.2fr .9fr .8fr; align-items: center; gap: 14px; font-variant-numeric: tabular-nums; }
.cf-xh.a, .cf-xr.a { grid-template-columns: .55fr 1.7fr 1.4fr 1.2fr .8fr; }
.cf-xr > span.ac { display: flex; align-items: center; gap: 4px; overflow: visible; } .cf-xr .ac i { font-style: normal; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .cf-xr .ac .cf-acomp { flex: none; margin-left: 0; }
.cf-xh { height: 32px; font-size: 11.5px; font-weight: 700; color: var(--texte2); border-bottom: .5px solid var(--sep); flex: none; }
.cf-xr { min-height: 40px; font-size: 13px; font-weight: 500; } .cf-xr + .cf-xr { box-shadow: 0 -.5px 0 var(--filet); }
.cf-xr > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cf-xr .nm { font-weight: 600; } .cf-xr .g { color: var(--texte2); }
.cf-xh .r, .cf-xr .r { text-align: right; font-weight: 600; }
.cf-xt { display: flex; align-items: center; height: 40px; font-size: 13px; font-weight: 700; border-top: .5px solid var(--sep); flex: none; } .cf-xt b { margin-left: auto; font-variant-numeric: tabular-nums; }
.cf-acomp { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 10px; font-size: 11px; font-weight: 700; background: rgba(142,142,147,.14); color: var(--att-t); white-space: nowrap; margin-left: 4px; vertical-align: middle; }
.cf-vide { padding: 16px 0; }
/* iPhone */
.cf-tete { display: flex; margin: 0 0 12px; }
.cf.tel { gap: 10px; padding-bottom: 20px; }
.cf-depuis.tel { display: block; height: auto; padding: 14px; }
.cf-dt { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .cf-dt .lab { font-size: 13px; } .cf-dt .pr-mseg { height: 26px; } .cf-dt .pr-mseg button { font-size: 12px; }
.cf-tots.tel { display: grid; grid-template-columns: 1fr 1fr .7fr; gap: 8px; margin-top: 10px; } .cf-tots.tel span { font-size: 11.5px; } .cf-tots.tel b { font-size: 19px; line-height: 24px; letter-spacing: -0.5px; }
.cf.tel .cf-fr { height: 136px; margin-top: 12px; }
.cf.tel .cf-b i { width: 10px; } .cf.tel .cf-col { padding: 6px 0 5px; } .cf.tel .cf-v, .cf.tel .cf-l { font-size: 10.5px; }
.cf.tel .cf-mois, .cf.tel .cf-ou, .cf.tel .cf-note, .cf.tel .cf-rep, .cf.tel .cf-tm, .cf.tel .cf-top { border-radius: 20px; padding: 14px; }
.cf.tel .cf-gros { font-size: 34px; line-height: 40px; letter-spacing: -1px; }
.cf.tel .cf-mt .lab { font-size: 13px; }
.cf.tel .cf-quatre b { font-size: 15px; }
.cf.tel .cf-rp { min-height: 48px; font-size: 15px; } .cf.tel .cf-rv b { font-size: 15px; } .cf.tel .cf-out b { font-size: 14px; }
.cf-sec { display: flex; align-items: baseline; gap: 6px; margin: 6px 6px 0; font-size: 13px; font-weight: 700; color: var(--texte2); } .cf-sec span { margin-left: auto; font-weight: 600; }
.cf-bascule { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--accent); }
.cf.tel .cf-2t { margin-top: 0; } .cf.tel .cf-tu { background: #fff; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.06); } .cf.tel .cf-tu.ora { background: rgba(142,142,147,.10); box-shadow: inset 0 0 0 .5px rgba(142,142,147,.3); }
.cf.tel .cf-2b { margin-top: 0; } .cf.tel .cf-2b button { height: 42px; border-radius: 21px; font-size: 15px; background: #fff; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.08); }
.cf.tel .cf-ecrire { min-height: 72px; font-size: 15px; } .cf.tel .cf-am { font-size: 14px; }
.cf-chips-l .cf-chips { display: flex; gap: 8px; }
.cf-chips button { height: 32px; padding: 0 13px; border-radius: 16px; background: #fff; border: .5px solid rgba(0,0,0,.08); font-size: 14px; font-weight: 600; transition: background .25s, color .25s; }
.cf-chips button.on { background: #1D1D1F; color: #fff; border-color: #1D1D1F; }
.cf-tuiles.tel { grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .cf-tuiles.tel .cf-t { padding: 12px 13px; border-radius: 20px; } .cf-tuiles.tel .cf-t b { font-size: 19px; line-height: 24px; }
.cf.tel .cf-repc { gap: 16px; } .cf.tel .cf-don { width: 118px; height: 118px; } .cf.tel .cf-don b { font-size: 26px; }
.cf.tel .cf-catb { margin-top: 4px; } .cf.tel .cf-cat { width: 100%; height: 42px; border-radius: 12px; padding: 0 14px; } .cf.tel .cf-cat b { font-size: 15px; } .cf.tel .cf-cat .sf:last-child { margin-left: auto; }
.cf.tel .cf-tp { height: 48px; font-size: 15px; } .cf.tel .cf-tpn small { font-size: 12px; } .cf.tel .cf-topt { font-size: 15px; } .cf.tel .cf-rk { width: 22px; height: 22px; font-size: 12px; }
.cf-pert { display: flex; flex-direction: column; gap: 8px; } .cf-pert .pr-mseg { display: flex; height: 34px; border-radius: 9px; } .cf-pert .pr-mseg button { flex: 1; font-size: 14px; border-radius: 7px; }
.cf.tel .cf-nav { margin-top: 0; height: 36px; } .cf.tel .cf-nav b { height: 32px; font-size: 15px; } .cf.tel .cf-nav button { height: 32px; color: var(--accent); }
.cf.tel .cf-radios .pr-nm b { font-size: 15px; } .cf.tel .cf-radios .pr-nm small { font-size: 12.5px; } .cf.tel .cf-radios .pc-ch { min-height: 56px; }
.cf.tel .cf-exp { height: 48px; border-radius: 24px; font-size: 16px; }
.cf-apt { padding: 0 14px; border-radius: 20px; }
.cf-rx { display: flex; align-items: center; gap: 10px; min-height: 54px; font-size: 14px; } .cf-rx + .cf-rx { box-shadow: 0 -.5px 0 var(--filet); }
.cf-rxd { width: 50px; white-space: nowrap; flex: none; font-size: 12.5px; font-weight: 700; color: var(--texte2); }
.cf-rxn { flex: 1; min-width: 0; } .cf-rxn b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cf-rxn small { display: block; font-size: 12px; color: var(--texte2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-rxm { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* impression (export PDF) */
.cf-print { display: none; }
@media print {
  body.cf-imprime { height: auto; overflow: visible; background: #fff; }
  body.cf-imprime > *:not(.cf-print) { display: none !important; }
  body.cf-imprime .cf-print { display: block; color: #000; font-size: 10pt; }
  .cf-print h1 { font-size: 16pt; margin: 0 0 2pt; } .cf-print p { margin: 0 0 10pt; color: #555; }
  .cf-print table { width: 100%; border-collapse: collapse; }
  .cf-print th, .cf-print td { border-bottom: .5pt solid #ccc; padding: 4pt 6pt; text-align: left; font-size: 9pt; } .cf-print th { font-weight: 700; } .cf-print .r { text-align: right; white-space: nowrap; }
  .cf-print tfoot td { font-weight: 700; border-bottom: 0; }
}

/* ============================================================
   OUTILS (0.1.18) : Radar, Cote des prix, Convertisseur
   ============================================================ */
.chargement.petit { height: 240px; }
.ou-sw { position: relative; width: 40px; height: 24px; border-radius: 12px; background: var(--remp3); flex: none; transition: background .25s; }
.ou-sw i { position: absolute; left: 2px; top: 2px; width: 20px; height: 20px; border-radius: 10px; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.18); transition: left .25s var(--ressort); }
.ou-sw.on { background: var(--accent); } .ou-sw.on i { left: 18px; }
.ou-sw.grand { width: 58px; height: 35px; border-radius: 18px; } .ou-sw.grand i { width: 31px; height: 31px; border-radius: 16px; } .ou-sw.grand.on i { left: 25px; }
body.tel .ou-sw:not(.grand) { width: 51px; height: 31px; border-radius: 16px; } body.tel .ou-sw:not(.grand) i { width: 27px; height: 27px; border-radius: 14px; } body.tel .ou-sw.on:not(.grand) i { left: 22px; }
.ou-ti { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: none; }
.ou-ti.bleu { background: rgba(181,188,147,.18); color: var(--accent); } .ou-ti.vert { background: var(--sp50); color: var(--ok-t); } .ou-ti.gris { background: var(--g300); color: #636366; }
.ou-ti.orange { background: rgba(142,142,147,.15); color: var(--att-t); } .ou-ti.rouge { background: rgba(211,108,114,.12); color: var(--err-t); }
.ou-range { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 24px; background: transparent; margin: 0; cursor: pointer; }
.ou-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--bleu) var(--p, 0%), var(--remp3) var(--p, 0%)); }
.ou-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 11px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.22), 0 0 0 .5px rgba(0,0,0,.06); }
.ou-range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--remp3); } .ou-range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--bleu); }
.ou-range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 11px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.22); }

/* ---------- Convertisseur ---------- */
.cv-grille { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.cv-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cv-carte { padding: 18px 20px; }
.cv-haut { display: flex; align-items: flex-end; gap: 14px; }
.cv-bloc { flex: 1; min-width: 0; }
.cv-lib { display: block; font-size: 12px; font-weight: 600; color: var(--texte2); margin-bottom: 6px; }
.cv-duo { display: flex; gap: 8px; }
.cv-champ { flex: 1; min-width: 0; width: 100%; height: 58px; border-radius: 14px; background: var(--g200); border: .5px solid rgba(0,0,0,.06); display: flex; align-items: center; padding: 0 16px; font-size: 30px; font-weight: 700; letter-spacing: -0.8px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; color: var(--texte); outline: 0; transition: background .2s, border-color .2s, box-shadow .2s; }
input.cv-champ:focus { background: #fff; border-color: rgba(98,103,63,.45); box-shadow: 0 0 0 3px rgba(98,103,63,.12); }
.cv-champ.res { background: var(--g200); border-color: transparent; }
.cv-dev { position: relative; width: 112px; flex: none; height: 58px; border-radius: 14px; background: #fff; border: .5px solid rgba(0,0,0,.1); display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 15px; cursor: pointer; transition: box-shadow .2s; }
.cv-dev:hover { box-shadow: 0 2px 8px rgba(27,29,15,.08); } .cv-dev b { font-weight: 700; } .cv-dev > .sf { margin-left: auto; color: var(--texte3); }
.cv-dev select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.cv-sym { width: 28px; height: 28px; border-radius: 14px; background: var(--g200); color: #636366; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; letter-spacing: -0.3px; }
.cv-sym.grand { width: 34px; height: 34px; border-radius: 17px; font-size: 13px; }
.cv-perm { width: 44px; height: 44px; border-radius: 22px; background: #1D1D1F; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; margin-bottom: 7px; transition: transform .35s var(--ressort), background .2s; }
.cv-perm:hover { background: #000; transform: rotate(180deg); }
.cv-pied { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: .5px solid var(--sep); }
.cv-src { height: 30px; } .cv-taux { font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cv-quand { font-size: 12.5px; font-weight: 600; color: var(--texte2); white-space: nowrap; }
.cv-ecart { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.cv-ecart.neg { background: rgba(142,142,147,.14); color: var(--att-t); } .cv-ecart.pos { background: rgba(103,109,68,.13); color: var(--ok-t); }
.cv-crayon { width: 32px; height: 32px; border-radius: 16px; background: var(--g200); display: flex; align-items: center; justify-content: center; color: #636366; flex: none; }
.cv-crayon:hover { background: var(--g400); }
.cv-marche { padding: 16px 20px; }
.cv-mh { display: flex; align-items: flex-start; gap: 12px; } .cv-mh .seg { margin-left: auto; }
.cv-mn { font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -0.8px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.cv-courbe { position: relative; height: 240px; margin-top: 12px; touch-action: pan-y; cursor: crosshair; }
.cv-courbe svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cv-point { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 6px; background: #fff; border: 3px solid var(--b600); box-shadow: 0 0 0 5px rgba(181,188,147,.22); pointer-events: none; transition: left .08s linear, top .08s linear; }
.cv-repere { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--filet2); pointer-events: none; }
.cv-bulle { position: absolute; top: -4px; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; padding: 5px 10px; border-radius: 10px; background: #1D1D1F; color: #fff; font-size: 12.5px; white-space: nowrap; pointer-events: none; z-index: 2; }
.cv-bulle span { font-size: 11px; opacity: .7; }
.cv-axe { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--texte3); margin-top: 6px; }
.cv-kk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.cv-kk div { border-radius: 14px; background: var(--g100); padding: 9px 12px; } .cv-kk span { display: block; font-size: 11.5px; font-weight: 600; color: var(--texte2); }
.cv-kk b { display: block; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cv-kk b.cv-va { display: flex; align-items: center; gap: 3px; } .cv-kk b.cv-va .sf { color: var(--texte2); }
.cv-rien { padding: 60px 0; text-align: center; color: var(--texte3); font-weight: 600; }
.cv-autres { padding: 14px 16px 6px; overflow: hidden; }
.cv-ah { display: flex; align-items: baseline; margin-bottom: 2px; } .cv-ah b { font-size: 15px; } .cv-ah span { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--texte2); }
.cv-am { display: flex; align-items: center; gap: 11px; width: 100%; height: 54px; text-align: left; transition: background .2s; }
.cv-am + .cv-am { box-shadow: 0 -.5px 0 var(--filet); }
.cv-am.on, .cv-am:hover { background: rgba(98,103,63,.06); margin: 0 -16px; padding: 0 16px; width: calc(100% + 32px); }
.cv-amt { flex: 1; min-width: 0; } .cv-amt b { display: block; font-size: 13.5px; font-weight: 700; } .cv-amt small { display: block; font-size: 11.5px; color: var(--texte2); }
.cv-amm { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cv-date { display: flex; align-items: center; gap: 6px; color: var(--texte2); }
.cv.tel { display: flex; flex-direction: column; gap: 12px; }
.cv.tel .cv-carte { padding: 14px; }
.cv.tel .cv-champ { height: 56px; padding: 0 14px; font-size: 28px; letter-spacing: -0.7px; }
.cv.tel .cv-dev { width: 104px; height: 56px; padding: 0 10px; gap: 7px; }
.cv-sep { display: flex; align-items: center; gap: 12px; margin: 12px 0 2px; }
.cv-sep:before, .cv-sep:after { content: ''; flex: 1; height: .5px; background: var(--sep); }
.cv.tel .cv-perm { width: 38px; height: 38px; border-radius: 19px; margin: 0; }
.cv.tel .cv-perm:hover { transform: none; }
.cv.tel .cv-pied { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 14px; padding-top: 14px; }
.cv.tel .cv-src { display: flex; height: 32px; border-radius: 9px; } .cv.tel .cv-src button { flex: 1; font-size: 13.5px; border-radius: 7px; }
.cv-ligne { display: flex; align-items: center; gap: 10px; } .cv-ligne .cv-taux { font-size: 15px; }
.cv-ligne .cv-quand { display: flex; align-items: center; gap: 6px; margin-top: 4px; } .cv-ligne .cv-crayon { margin-left: auto; }
.cv.tel .cv-marche { padding: 14px; }
.cv.tel .cv-mn { font-size: 24px; line-height: 30px; letter-spacing: -0.6px; }
.cv.tel .cv-courbe { height: 130px; } .cv.tel .cv-kk { gap: 8px; margin-top: 10px; } .cv.tel .cv-kk div { padding: 7px 10px; border-radius: 12px; } .cv.tel .cv-kk b { font-size: 15px; }
.cv.tel .cv-am { height: 56px; } .cv.tel .cv-amt b { font-size: 15px; } .cv.tel .cv-amm { font-size: 15px; }

/* ---------- Cote des prix ---------- */
.ct { display: flex; flex-direction: column; gap: 14px; }
.ct-cat { margin-left: 14px; } .ct-rech { width: 230px; }
.ct-kpis { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 3fr); gap: 10px; }
.ct-kk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ct-t { display: block; background: #fff; border-radius: 18px; border: .5px solid rgba(0,0,0,.06); box-shadow: var(--ombre); padding: 10px 14px; }
.ct-t > span:first-child { display: block; font-size: 12px; font-weight: 600; color: var(--texte2); }
.ct-t > b { display: block; font-size: 22px; line-height: 30px; font-weight: 700; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.ct-roiw { display: flex; align-items: center; gap: 6px; height: 30px; }
.ct-roiw input, .ct-roib input { width: 64px; height: 30px; border-radius: 9px; background: var(--g200); border: .5px solid rgba(0,0,0,.06); font-size: 20px; font-weight: 700; letter-spacing: -0.4px; padding: 0 8px; outline: 0; color: var(--texte); font-variant-numeric: tabular-nums; transition: background .2s, box-shadow .2s, border-color .2s; }
.ct-roiw input:focus, .ct-roib input:focus { background: #fff; border-color: rgba(98,103,63,.45); box-shadow: 0 0 0 3px rgba(98,103,63,.12); }
.ct-roiw b { font-size: 20px; color: var(--texte3); }
.ct-tab { padding: 6px 16px 10px; }
.ct-l { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, .7fr) minmax(0, .5fr); align-items: center; gap: 14px; height: 40px; font-size: 13px; font-variant-numeric: tabular-nums; transition: background .2s; }
.ct-l + .ct-l { box-shadow: 0 -.5px 0 var(--filet); }
.ct-l.ct-h { height: 32px; font-size: 11.5px; font-weight: 700; color: var(--texte2); box-shadow: inset 0 -.5px 0 var(--filet); }
.ct-h .ct-ach { color: var(--texte); font-weight: 700; } .ct-d { text-align: right; }
.ct-nm { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-vers { display: flex; flex-wrap: wrap; row-gap: 4px; gap: 4px; }
.ct-vers button { height: 24px; padding: 0 9px; border-radius: 12px; background: var(--remp2); font-size: 12px; font-weight: 600; color: rgba(29,29,31,.7); white-space: nowrap; transition: background .2s, color .2s; }
.ct-vers button:hover { background: var(--remp3); } .ct-vers button.on { background: #1D1D1F; color: #fff; }
.ct-vers.sans { color: var(--texte3); padding-left: 8px; }
.ct-ach { color: var(--texte); font-weight: 700; text-align: right; white-space: nowrap; }
.ct-fr { display: flex; align-items: center; justify-content: flex-end; gap: 1px; font-weight: 600; white-space: nowrap; }
.ct-fr i { font-style: normal; color: var(--texte3); } .ct-fr em { font-style: normal; color: var(--texte2); margin-left: 3px; }
.ct-p { width: 54px; height: 28px; border-radius: 7px; border: 1px solid transparent; background: transparent; text-align: right; font: inherit; font-weight: 600; padding: 0 6px; color: var(--texte); outline: 0; font-variant-numeric: tabular-nums; transition: background .2s, border-color .2s, box-shadow .2s; }
.ct-p:hover { background: var(--remp1); }
.ct-p:focus { background: rgba(181,188,147,.12); border-color: rgba(98,103,63,.4); box-shadow: 0 0 0 3px rgba(98,103,63,.1); }
.ct-l.ed { background: rgba(181,188,147,.05); margin: 0 -16px; padding: 0 16px; }
.ct-mg { text-align: right; font-weight: 700; white-space: nowrap; } .ct-nb { text-align: right; color: var(--texte2); }
.ct-serie { font-size: 11.5px; font-weight: 700; color: var(--texte2); padding: 12px 0 2px; letter-spacing: .2px; }
.ct-plus { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 40px; margin-top: 8px; border-radius: 12px; background: var(--g100); font-size: 13px; font-weight: 600; color: var(--accent); }
.ct-plus:hover { background: var(--g300); }
.ct.tel { gap: 10px; }
.ct-tete { display: flex; gap: 8px; }
.ct-cat.tel { flex: 1; min-width: 0; margin: 0; height: 44px; border-radius: 12px; padding: 0 14px; } .ct-cat.tel b { font-size: 16px; } .ct-cat.tel .sf:last-child { margin-left: auto; }
.ct-roib { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 10px 0 12px; border-radius: 12px; background: #fff; border: .5px solid rgba(0,0,0,.08); font-size: 13px; font-weight: 600; color: var(--texte2); }
.ct-roib input { width: 46px; height: 30px; font-size: 18px; padding: 0 6px; text-align: right; } .ct-roib b { font-size: 16px; color: var(--texte); }
.ct.tel .pr-rech.tel { margin: 0; }
.ct.tel .ct-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ct.tel .ct-t { padding: 9px 12px; border-radius: 16px; } .ct.tel .ct-t > b { font-size: 19px; line-height: 24px; }
.ct-h.tel, .ct-l1 { display: grid; grid-template-columns: minmax(0, 1fr) 58px 112px 56px; gap: 6px; align-items: center; }
.ct-h.tel { font-size: 11.5px; font-weight: 700; color: var(--texte2); padding: 2px 14px 0; } .ct-h.tel span { text-align: right; } .ct-h.tel span:first-child { text-align: left; }
.ct.tel .ct-grp { overflow: hidden; border-radius: 14px; }
.ct.tel .ct-l { display: flex; flex-direction: column; align-items: stretch; height: auto; gap: 7px; padding: 9px 14px; }
.ct.tel .ct-l + .ct-l { box-shadow: 0 -.5px 0 var(--filet); }
.ct.tel .ct-l.ed { margin: 0; padding: 9px 14px; background: rgba(181,188,147,.06); }
.ct-l1 > span { text-align: right; font-size: 14px; font-weight: 600; white-space: nowrap; }
.ct-l1 .ct-nm { text-align: left; } .ct-l1 .ct-nm b { display: block; font-size: 15.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; } .ct-l1 .ct-nm small { display: block; font-size: 12px; font-weight: 600; color: var(--texte2); }
.ct.tel .ct-fr { gap: 0; } .ct.tel .ct-p { width: 51px; padding: 0 3px; font-size: 14px; height: 26px; } .ct.tel .ct-fr .ct-p:first-child { text-align: right; } .ct.tel .ct-fr .ct-p:last-child { text-align: left; }
.ct.tel .ct-vers { flex-wrap: wrap; gap: 5px; } .ct.tel .ct-vers button { height: 26px; padding: 0 10px; border-radius: 13px; font-size: 13px; }
.ct.tel .ct-serie { font-size: 13px; padding: 6px 6px 0; }
.ct.tel .ct-plus { background: #fff; height: 46px; border-radius: 14px; font-size: 15px; margin-top: 4px; }

/* ---------- Radar ---------- */
.rd { display: flex; flex-direction: column; gap: 14px; }
.rd-hero { padding: 18px 20px 14px; }
.rd-st { display: flex; align-items: center; gap: 14px; }
.rd-ico { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex: none; }
.rd-ico.ok { color: var(--ok-t); background: var(--sp50); }
.rd-ico.pause { color: #636366; background: var(--g300); } .rd-ico.off { color: var(--err-t); background: rgba(211,108,114,.10); }
.rd-stt { flex: 1; min-width: 0; } .rd-stl { display: flex; align-items: center; gap: 10px; }
.rd-stl b { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.7px; white-space: nowrap; }
.rd-stt small { display: block; font-size: 13px; font-weight: 600; color: var(--texte2); }
.rd-app { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.rd-app.ok { background: rgba(103,109,68,.13); color: var(--ok-t); } .rd-app.att { background: rgba(142,142,147,.14); color: var(--att-t); }
.rd-plats { display: flex; gap: 10px; }
.rd-pf { display: flex; align-items: center; gap: 12px; width: 250px; height: 78px; padding: 0 14px 0 16px; border-radius: 20px; background: var(--bn50); border: 1px solid var(--bn200); transition: background .25s, border-color .25s; }
.rd-pf.off { background: var(--g100); border-color: rgba(0,0,0,.06); }
.rd-pft { flex: 1; min-width: 0; } .rd-pft b { display: block; font-size: 18px; line-height: 22px; font-weight: 700; letter-spacing: -0.3px; }
.rd-pft small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--accent); margin-top: 2px; } .rd-pft small i { width: 7px; height: 7px; border-radius: 4px; background: var(--accent); }
.rd-pf.off .rd-pft small { color: var(--texte2); } .rd-pf.off .rd-pft small i { background: var(--filet3); }
.rd-pft em { display: block; font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--texte3); margin-top: 1px; font-variant-numeric: tabular-nums; }
.rd-fr { position: relative; height: 74px; margin-top: 16px; }
.rd-tr { position: absolute; left: 0; right: 0; top: 22px; height: 30px; border-radius: 10px; background: repeating-linear-gradient(135deg, var(--remp1) 0 6px, var(--remp2) 6px 12px); }
.rd-jour { position: absolute; top: 22px; height: 30px; border-radius: 10px; background: var(--bn50); }
.rd-poi { position: absolute; top: 18px; width: 14px; height: 38px; margin-left: -7px; border-radius: 7px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.22), 0 0 0 .5px rgba(0,0,0,.08); cursor: ew-resize; touch-action: none; z-index: 2; }
.rd-poi:after { content: ''; position: absolute; left: 5px; top: 13px; width: 4px; height: 12px; border-radius: 2px; background: var(--filet3); }
.rd-poi:active { transform: scale(1.08); }
.rd-hl { position: absolute; top: 0; font-size: 12px; font-weight: 700; transform: translateX(-50%); white-space: nowrap; }
.rd-pin { position: absolute; top: 31px; width: 12px; height: 12px; margin-left: -6px; border-radius: 6px; border: 2.5px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); z-index: 1; transition: transform .15s; }
.rd-pin:hover { transform: scale(1.25); }
.rd-now { position: absolute; top: 14px; width: 2px; height: 46px; margin-left: -1px; border-radius: 1px; background: var(--accent); pointer-events: none; }
.rd-now span { position: absolute; top: 48px; left: 50%; transform: translateX(-50%); font-size: 11.5px; font-weight: 700; white-space: nowrap; color: var(--accent); }
.rd-bulle { position: absolute; top: -8px; translate: -50% 0; display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 14px; background: #1D1D1F; color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 16px rgba(19,20,7,.2); z-index: 3; animation: monte .3s var(--ressort) both; }
.rd-bulle > span { display: flex; }
.rd-axe { position: relative; height: 16px; margin-top: 6px; font-size: 11px; font-weight: 600; color: var(--texte3); white-space: nowrap; }
.rd-axe span { position: absolute; transform: translateX(-50%); } .rd-axe span:first-child { transform: none; }
.rd-leg { display: flex; align-items: center; gap: 16px; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--texte2); }
.rd-leg span { display: flex; align-items: center; gap: 6px; } .rd-leg i { width: 18px; height: 8px; border-radius: 4px; }
.rd-leg i.j { background: var(--bn100); } .rd-leg i.n { background: repeating-linear-gradient(135deg, var(--remp2) 0 3px, var(--remp3) 3px 6px); } .rd-leg i.p { width: 8px; background: var(--att); }
.rd-mil { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 14px; align-items: stretch; }
.rd-zone { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.rd-carte { position: relative; overflow: hidden; background: var(--g300); flex: none; }
.rd-tuiles { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-origin: 0 0; }
.rd-tuiles img { position: absolute; width: 256px; height: 256px; max-width: none; user-select: none; pointer-events: none; }
.rd-cercle { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(181,188,147,.16); border: 2px solid var(--bleu); box-shadow: 0 0 0 6px rgba(181,188,147,.18); pointer-events: none; }
.rd-anse { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin-top: -9px; transform: translateX(-50%); border-radius: 9px; background: radial-gradient(circle, var(--bleu) 0 3.5px, #fff 4px); box-shadow: 0 1px 3px rgba(0,0,0,.22); pointer-events: none; }
.rd-maison { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 15px; background: #1D1D1F; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px #fff, 0 6px 14px rgba(0,0,0,.25); pointer-events: none; }
.rd-attr { position: absolute; right: 6px; bottom: 4px; font-size: 9.5px; color: var(--texte2); background: rgba(255,255,255,.7); padding: 0 4px; border-radius: 4px; pointer-events: none; }
.rd-ville { position: absolute; left: 14px; top: 14px; width: 240px; z-index: 2; }
.rd-vch { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 14px; background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border: .5px solid rgba(255,255,255,.9); box-shadow: 0 6px 20px rgba(27,29,15,.12); color: var(--texte3); }
.rd-vch input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; font-weight: 600; color: var(--texte); }
.rd-sugg { margin-top: 6px; background: rgba(250,251,252,.97); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); border-radius: 12px; box-shadow: 0 14px 40px rgba(19,20,7,.18), 0 0 0 .5px rgba(0,0,0,.08); overflow: hidden; }
.rd-sugg button { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 12px; font-size: 13.5px; text-align: left; }
.rd-sugg button span { margin-left: auto; color: var(--texte2); font-size: 12px; } .rd-sugg button + button { box-shadow: 0 -.5px 0 var(--filet); } .rd-sugg button:hover { background: var(--accent-f); }
.rd-sv { padding: 12px; color: var(--texte2); font-weight: 600; }
.rd-ray { display: flex; align-items: center; gap: 16px; padding: 12px 18px 14px; }
.rd-rl { font-size: 12.5px; font-weight: 600; color: var(--texte2); white-space: nowrap; } .rd-ray b { font-size: 17px; white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 56px; text-align: right; }
.rd-droite { display: flex; flex-direction: column; gap: 14px; }
.rd-rent, .rd-salons { padding: 14px 16px; } .rd-salons { flex: 1; }
.rd-ct { display: flex; align-items: baseline; margin-bottom: 8px; } .rd-ct b { font-size: 15px; } .rd-ct span { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--texte2); } .rd-ct span.noir { color: var(--texte); font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }
.rd-rc { display: flex; align-items: center; gap: 18px; }
.rd-roi { display: flex; align-items: baseline; flex: none; cursor: text; }
.rd-roiin { border: 0; background: transparent; font-size: 46px; line-height: 54px; font-weight: 700; letter-spacing: -1.4px; padding: 0 4px; margin-left: -4px; outline: 0; border-radius: 10px; color: var(--texte); font-variant-numeric: tabular-nums; transition: background .2s; }
.rd-roiin:hover { background: var(--remp1); } .rd-roiin:focus { background: rgba(181,188,147,.12); }
.rd-roi > span { font-size: 26px; font-weight: 700; color: var(--texte3); }
.rd-exs { flex: 1; min-width: 0; }
.rd-ex { display: flex; align-items: center; gap: 10px; height: 34px; font-size: 13px; } .rd-ex + .rd-ex { box-shadow: 0 -.5px 0 var(--filet); }
.rd-ex span { flex: 1; font-weight: 600; } .rd-ex small { margin-left: 5px; font-size: 11px; font-weight: 600; color: var(--texte2); } .rd-ex b { color: var(--texte); font-variant-numeric: tabular-nums; }
.rd-sal3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rd-salon { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--g100); }
.rd-sah { display: flex; align-items: center; justify-content: space-between; } .rd-sah .ou-ti { width: 28px; height: 28px; } .rd-salon b { font-size: 13.5px; }
.rd-pt { font-size: 15px; margin: 2px 4px -4px; }
.rd-prods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.rd-prod { background: #fff; border-radius: 18px; border: .5px solid rgba(0,0,0,.06); box-shadow: var(--ombre); padding: 12px; display: flex; flex-direction: column; gap: 10px; transition: background .25s; }
.rd-prod.off { background: var(--g100); box-shadow: none; } .rd-prod.off .rd-pic, .rd-prod.off .rd-prh b { opacity: .5; }
.rd-prh { display: flex; align-items: center; gap: 10px; } .rd-prh b { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; }
.rd-pic { width: 38px; height: 38px; border-radius: 11px; background: var(--g100); border: .5px solid rgba(0,0,0,.05); display: flex; align-items: center; justify-content: center; color: #636366; flex: none; }
.rd-seg { display: flex; height: 28px; } .rd-seg button { flex: 1; padding: 0 4px; }
.rd-pb { display: flex; align-items: center; gap: 12px; min-height: 56px; } .rd-pb + .rd-pb { box-shadow: 0 -.5px 0 var(--filet); }
.rd-pbt { flex: 1; min-width: 0; } .rd-pbt b { display: block; font-size: 14px; font-weight: 600; } .rd-pbt small { display: block; font-size: 12.5px; color: var(--texte2); }
.rd-h { font-size: 12.5px; font-weight: 600; color: var(--texte2); font-variant-numeric: tabular-nums; }
.feuille.rd-feuille { width: 520px; max-height: calc(100vh - 80px); }
.rd-pbs .g-titre:first-child { margin-top: 4px; }
.rd-grp { padding: 0 14px; overflow: hidden; border-radius: 14px; }
.rd-row { display: flex; align-items: center; gap: 12px; min-height: 46px; font-size: 16px; } .rd-grp .rd-row + .rd-row { box-shadow: 0 -.5px 0 var(--filet2); }
.rd-rn { flex: 1; min-width: 0; } .rd-rv { color: var(--texte2); white-space: nowrap; font-variant-numeric: tabular-nums; display: flex; } .rd-row > .sf:last-child { color: var(--texte3); }
.rd-badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--att); color: #fff; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.rd.tel { gap: 12px; }
.rd.tel .rd-hero { padding: 14px 16px 12px; }
.rd.tel .rd-ico { width: 44px; height: 44px; border-radius: 13px; } .rd.tel .rd-st { gap: 12px; }
.rd.tel .rd-stl b { font-size: 24px; line-height: 28px; letter-spacing: -0.6px; } .rd.tel .rd-stt small { font-size: 13.5px; }
.rd.tel .rd-st > .rd-app { align-self: flex-start; margin-top: 3px; }
.rd-fr.petit { height: 40px; margin-top: 12px; } .rd-fr.petit .rd-tr, .rd-fr.petit .rd-jour { top: 12px; height: 18px; border-radius: 7px; }
.rd-fr.petit .rd-pin { top: 16px; width: 10px; height: 10px; margin-left: -5px; border-width: 2px; } .rd-fr.petit .rd-now { top: 6px; height: 30px; }
.rd.tel .rd-axe { margin-top: 0; height: 14px; } .rd.tel .rd-axe span:last-child { transform: translateX(-100%); }
.rd-pfs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rd-pfs .rd-pf { position: relative; display: block; width: auto; height: auto; padding: 12px 14px; border-radius: 18px; }
.rd-pfs .rd-pft b { font-size: 17px; line-height: 31px; } .rd-pfs .rd-pft small { margin-top: 12px; } .rd-pfs .ou-sw { position: absolute; right: 12px; top: 12px; }
.rd-zt { display: block; overflow: hidden; } .rd-zt .rd-row { padding: 0 14px; } .rd-zt .rd-cercle { box-shadow: 0 0 0 4px rgba(181,188,147,.18); } .rd-zt .rd-maison { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.rd.tel .g-titre { margin: 6px 4px -4px; }
.rd-sal3.tel .rd-salon { background: #fff; border-radius: 16px; padding: 12px; gap: 10px; border: .5px solid rgba(0,0,0,.06); } .rd-sal3.tel .rd-salon b { font-size: 15px; } .rd-sal3.tel .rd-sah .ou-ti { width: 30px; height: 30px; }
.rd-retour { display: inline-flex; align-items: center; gap: 2px; margin: calc(env(safe-area-inset-top) + 12px) 0 0 -6px; color: var(--accent); font-size: 17px; }
.grand-titre.rd-gt { padding-top: 2px; } .rd.sous .g-titre:first-child { margin-top: 0; }
.rd-zone.tel .rd-ville { left: 12px; right: 12px; width: auto; } .rd-zone.tel .rd-vch { height: 42px; } .rd-zone.tel .rd-vch input { font-size: 16px; }
.rd-ray.tel { flex-wrap: wrap; gap: 10px 12px; padding: 14px 16px 16px; } .rd-ray.tel .rd-rl { font-size: 15px; } .rd-ray.tel b { font-size: 20px; margin-left: auto; } .rd-ray.tel .ou-range { order: 3; flex-basis: 100%; height: 30px; }
.rd-roi.tel { height: 64px; padding: 0 14px; background: #fff; border-radius: 12px; border: .5px solid rgba(0,0,0,.06); align-items: center; }
.rd-roi.tel .rd-roiin { font-size: 40px; line-height: 50px; background: transparent; } .rd-roi.tel > span { font-size: 24px; }
.rd-roi.tel:focus-within { border-color: rgba(98,103,63,.45); box-shadow: 0 0 0 3px rgba(98,103,63,.12); }
.rd-exs.tel { padding: 0 14px; } .rd-exs.tel .rd-ex { height: 46px; font-size: 16px; } .rd-exs.tel .rd-ex small { font-size: 13px; }
.rd-ok { width: 100%; height: 50px; border-radius: 25px; font-size: 16px; margin-top: 8px; }
.rd-plist { padding: 0; } .rd-plist .rd-prod { border-radius: 0; border: 0; box-shadow: none; background: transparent; padding: 12px 14px; }
.rd-plist .rd-prod + .rd-prod { box-shadow: 0 -.5px 0 var(--filet2); } .rd-plist .rd-prh b { font-size: 16px; font-weight: 600; }
.rd-plist .rd-pic { width: 30px; height: 30px; border-radius: 8px; border: 0; background: var(--g300); } .rd-plist .rd-seg { height: 32px; border-radius: 9px; } .rd-plist .rd-seg button { font-size: 14px; border-radius: 7px; }
.rd-hor { padding: 14px 16px; }
.rd-fr.grand { height: 46px; margin-top: 10px; } .rd-fr.grand .rd-tr, .rd-fr.grand .rd-jour { top: 10px; height: 26px; } .rd-fr.grand .rd-poi { top: 4px; height: 38px; width: 16px; margin-left: -8px; } .rd-fr.grand .rd-poi:after { left: 6px; }
.rd-hor .rd-leg { margin-top: 10px; font-size: 13px; }
.rd-sel { position: relative; display: flex; align-items: center; gap: 6px; font-weight: 600; } .rd-sel select { -webkit-appearance: none; appearance: none; border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--texte); text-align: right; padding: 0; outline: 0; }
.rd-sel .sf { color: var(--texte3); }
.cv-bulle[hidden], .cv-repere[hidden] { display: none; }
.rd-ml { position: absolute; inset: 0; }
.rd-ml canvas { outline: 0; }
.rd-carte.ml .rd-tuiles { display: none; }
.rd-carte.ml { background: #F5F3EE; }
/* 0.1.21 : alignements, focus et carte */
.rd-carte .rd-ml { position: absolute; inset: 0; }
.ct-p:focus-visible, .ct-roiw input:focus-visible, .ct-roib input:focus-visible, .rd-roiin:focus-visible, input.cv-champ:focus-visible, .rd-vch input:focus-visible { outline: none; }
.ct-fr .ct-p + i + .ct-p { text-align: left; }
.ct-mi { width: 20px; display: flex; justify-content: center; flex: none; } .pr-menu button:hover .ct-mi .sf { color: #fff; }
.cf-menu button > .sf { width: 20px; }
.cv-point { transition: none; }

/* iPhone : le bouton flottant « Un imprévu ? » ne cache plus le bas d'Aujourd'hui ; glisser sans loupe ni sélection */
body.tel .page-aujourdhui .pile { padding-bottom: 64px; }
.ordre .it { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.chargement.erreur { flex-direction: column; gap: 14px; } .chargement.erreur b { font-size: 17px; }

/* Mac étroit (1000–1365 px) et petits iPhone (375 px) : les outils ne débordent plus */
@media (max-width: 1365px) { .cv-grille { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1199px) { .rd-st { flex-wrap: wrap; } .rd-plats { width: 100%; } .rd-prods { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 389px) { .ct-h.tel, .ct-l1 { grid-template-columns: minmax(0, 1fr) 50px 100px 50px; gap: 4px; } .ct-l1 > span { font-size: 13px; } }

/* Achat-revente : iPhone sans objectif, Nouvel achat étroit ; Mac 1000–1199 px */
body.tel .ar-h-txt { flex: 1 1 60%; }
body.tel .pr-2:has(> .pr-f > .pr-mseg) { grid-template-columns: 1fr; }
@media (max-width: 1199px) {
  .ar-kpis { flex-wrap: wrap; row-gap: 14px; } .cf-2b { flex-wrap: wrap; }
  .demande > span:not(.ami), .demande kbd { display: none; } .demande { width: auto; flex: none; }   /* la petite Amélia reste visible */
  .tb-t { min-width: 0; } .tb-t h1, #tb-sous { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------- menu Plus (iPhone) : toutes les pages + Modifier la barre ---------- */
body.tel .feuille.plus-feuille { top: calc(env(safe-area-inset-top) + 40px); max-height: none; background: rgba(242,242,247,.97); }
.plus-feuille .feuille-tete { position: relative; justify-content: center; padding: 4px 16px 12px; }
.plus-feuille .feuille-tete h2 { flex: none; font-size: 17px; font-weight: 600; letter-spacing: -0.2px; }
.plus-feuille .feuille-x { display: none; }
.pl-mod { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 17px; color: var(--accent); padding: 6px 0; }
.pl-mod.ok { font-weight: 600; } .pl-mod:disabled { opacity: .35; }
.plus-feuille .feuille-corps { padding: 0 16px calc(24px + env(safe-area-inset-bottom)); }
.pl-sh { font-size: 13px; font-weight: 600; color: var(--texte2); text-transform: uppercase; letter-spacing: .4px; margin: 0 16px 7px; }
.pl-grp { background: #fff; border-radius: 14px; overflow: hidden; margin-bottom: 18px; }
.pl-li { position: relative; display: flex; align-items: center; gap: 13px; width: 100%; min-height: 44px; padding: 0 14px; font-size: 16.5px; color: var(--texte); text-align: left; transition: background .15s; }
.pl-li + .pl-li::before { content: ""; position: absolute; top: 0; left: 50px; right: 0; border-top: .5px solid var(--filet2); }
.pl-li:active { background: var(--remp2); }
.pl-li.on { background: rgba(98,103,63,.09); } .pl-li.on .pl-n { font-weight: 600; color: var(--accent); }
.pl-li.sous { min-height: 40px; padding-left: 38px; font-size: 15.5px; }
.pl-li.sous + .pl-li.sous::before { left: 74px; }
.pl-ic { width: 24px; display: flex; justify-content: center; color: var(--accent); flex: none; }
.pl-n { flex: 1; min-width: 0; }
.pl-nb { font-size: 16px; color: var(--texte2); font-variant-numeric: tabular-nums; }
.pl-chev { color: var(--texte3); display: flex; transition: transform .25s var(--sortie); }
.pl-dep { transform: rotate(-90deg); } .pl-dep.ouvert { transform: none; }
.pl-tard { display: flex; gap: 8px; margin-bottom: 18px; }
.pl-tq { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; background: #fff; border-radius: 14px; padding: 11px 4px; font-size: 12.5px; font-weight: 600; color: var(--texte3); }
.pl-tq .sf { color: var(--texte3); }
.pl-moi { min-height: 52px; } .pl-moi .avatar { flex: none; } .pl-moi + .pl-li::before, .pl-grp .pl-moi::before { display: none; }
.pl-moi .pl-nb { font-size: 15px; }
/* Modifier la barre */
.pl-apercu { display: flex; align-items: center; background: #fff; border-radius: 14px; padding: 8px 10px; margin-bottom: 18px; }
.pl-apercu .m { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--accent); }
.pl-apercu .m i { font-style: normal; font-size: 10px; font-weight: 600; }
.pl-apercu .m.g { color: #8E8E93; } .pl-apercu .m.vide { height: 34px; }
.pl-apercu .mic { width: 38px; height: 38px; border-radius: 12px; background: #1D1D1F; color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 4px; flex: none; }
.pl-ed { cursor: default; } .pl-ed.tire { z-index: 2; background: #fff; box-shadow: 0 8px 24px rgba(19,20,7,.18); border-radius: 12px; transition: none; }
.pl-ed.tire::before { display: none; }
.pl-rm, .pl-ad { display: flex; flex: none; margin-right: -3px; }
.pl-rm { color: #D36C72; } .pl-ad { color: #676D44; } .pl-ad.off { opacity: .3; }
.pl-grip { margin-left: auto; color: var(--texte3); display: flex; padding: 12px 0 12px 16px; touch-action: none; cursor: grab; }

/* 0.1.24 : charge affectée (comptée dans le coût du produit) */
.ch-mt.gris { color: var(--texte3); }
.am-bulle.vocal { display: inline-flex; align-items: flex-start; gap: 7px; } .am-bulle.vocal .sf { flex: none; margin-top: 2px; opacity: .85; }
.toast.annul { pointer-events: auto; padding-right: 6px; } .toast-an { margin-left: 6px; height: 28px; padding: 0 12px; border-radius: 14px; background: rgba(98,103,63,.1); color: var(--accent); font-size: 13.5px; font-weight: 600; }
.toast-an:active { background: rgba(98,103,63,.2); }
.ordre .it.bouge { animation: it-bouge .35s var(--ressort); } @keyframes it-bouge { from { transform: scale(1.025); box-shadow: 0 6px 18px rgba(19,20,7,.12); } to { transform: none; box-shadow: none; } }
/* cocher : le titre glisse vers « Fait » */
.vol-fantome { position: fixed; z-index: 70; margin: 0; pointer-events: none; white-space: nowrap; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 6px 18px rgba(19,20,7,.12); }
.chips.faits .chip.cache { opacity: 0; } .chips.faits .chip.arrive { animation: chip-pose .4s var(--rebond); }
@keyframes chip-pose { from { transform: scale(.9); } to { transform: none; } }
.sec.pop { animation: sec-pop .45s var(--rebond); } @keyframes sec-pop { 40% { transform: scale(1.06); color: var(--ok-t); } }
/* 0.1.24 : menu de choix (Reçu, modèle de l'annonce) */
.pr-menu .mn-n { flex: 1; min-width: 0; } .pr-menu .mn-d { font-size: 11.5px; font-weight: 600; color: var(--texte2); font-variant-numeric: tabular-nums; }
.pr-menu button:hover .mn-d { color: rgba(255,255,255,.8); }
.pr-as .mn-d { margin-left: 4px; font-size: 14px; font-weight: 500; color: var(--texte2); font-variant-numeric: tabular-nums; }
.pr-menu button.off, .pr-as button.off { opacity: .4; } .pr-menu button.off .mn-n, .pr-as button.off .mn-n { text-decoration: line-through; }
.pr-menu button.off:hover { background: none; color: inherit; } .pr-menu button.off:hover .sf { color: var(--texte2); }
/* fiche : pièces et charges affectées */
.pr-rt { display: flex; align-items: center; gap: 10px; padding: 6px 0; } .pr-rt .pr-ic { width: 26px; height: 26px; border-radius: 8px; }
.pr-rtm { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-det { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; margin-right: -4px; color: var(--texte3); border-radius: 13px; flex: none; }
.pr-det:hover { color: var(--err-t); background: rgba(211,108,114,.08); }
body.tel .pr-rt .pr-nm b { font-size: 15px; } body.tel .pr-rtm { font-size: 15px; } body.tel .pr-det { width: 34px; height: 34px; }
/* Produits, Mac 1000–1199 px : fiche plus étroite, sans la colonne « Depuis », filtres sur une ligne */
.pr-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .pr-seg::-webkit-scrollbar { display: none; } .pr-seg button { white-space: nowrap; flex: none; }
@media (max-width: 1199px) {
  .prd .pr-ins { width: 320px; padding: 18px; }
  .pr-tbl:not(.pc-tbl) .pr-th, .pr-tbl:not(.pc-tbl) .pr-tr { grid-template-columns: minmax(0,1.5fr) minmax(0,.8fr) minmax(0,1fr) minmax(0,1.2fr); gap: 12px; }
  .pr-tbl:not(.pc-tbl) .pr-th > :nth-child(2), .pr-tbl:not(.pc-tbl) .pr-tr > :nth-child(2) { display: none; }
}

/* 0.1.25 · Chiffres */
/* barre du haut (maquettes C1, C7, C8) : Bilans / Stats / Registres à gauche, près du titre ; Résultat/Trésorerie ou la période à droite */
.tb:has(.cf-vues) .tb-t { flex: 0 1 auto; min-width: 0; }
.tb:has(.cf-vues) .tb-outils { flex: 1 1 auto; min-width: 0; }
.tb-outils .cf-vues { margin: 0 auto 0 14px; }
/* iPhone : sommes en ligne du groupe (C11), total sous la liste (C13) ; suppression confirmée ; « Moins » */
.cf-ln { display: flex; align-items: baseline; gap: 10px; padding-top: 10px; border-top: .5px solid var(--filet); font-size: 15px; }
.cf-ln span { color: var(--texte); } .cf-ln b { margin-left: auto; font-weight: 500; color: var(--texte2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cf-totl { margin: -6px 4px 0; font-size: 13px; font-weight: 600; color: var(--texte2); } .cf-totl b { color: var(--texte); font-variant-numeric: tabular-nums; }
.pr-suppr.cf-conf { background: var(--err-t); color: #fff; font-weight: 600; } .pr-danger.cf-conf { font-weight: 700; white-space: nowrap; }
.cf-haut { transform: rotate(180deg); }
/* Mac 1000–1199 px : Bilans sur 2 colonnes, Stats et Registres sur une colonne */
@media (max-width: 1199px) {
  .cf-b3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cf-col3 { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .cf-s1, .cf-s2, .cf-r2 { grid-template-columns: minmax(0, 1fr); }
  .cf-s1 .cf-tuiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cf-rg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .cf-ap { max-height: none; }
  .cf-xh, .cf-xr { grid-template-columns: .7fr 1.7fr 1.15fr 1.2fr .8fr .9fr; gap: 12px; } .cf-xh span { white-space: nowrap; }
}

/* 0.1.25 · Charges */
/* répartition (K1) : montants en grand */
.ch-leg { gap: 6px 22px; align-items: baseline; } .ch-leg span { align-items: baseline; } .ch-leg i { align-self: center; }
.ch-leg b { font-size: 22px; line-height: 26px; font-weight: 700; letter-spacing: -.5px; margin-left: 2px; }
/* abonnement arrêté : grisé, en fin de liste */
.ch-l.ch-arrete .ch-nm b, .ch-l.ch-arrete .ch-mt { color: var(--texte3); } .ch-l.ch-arrete .ch-ic { color: var(--texte3); }
/* ancien achat de marchandises (hors du total) : gris comme une charge affectée */
.ch-mt.gris small { color: inherit; }
/* survol seulement avec une souris (sur iPhone la ligne touchée restait estompée) */
@media (hover: none) { .ch-l:hover { opacity: 1; } .ch-ech:hover { background: none; } }
/* Arrêter : rouge doux (K5, K8, K12) */
.btn-rouge.ch-doux { background: rgba(211,108,114,.12); color: var(--err-t); } .btn-rouge.ch-doux:hover { background: rgba(211,108,114,.18); }
/* fiches (K3, K5) : deux boutons pleine largeur */
.ch-fiche .ch-act > button { flex: 1; }
/* iPhone : croix de fermeture sur les fiches (K12) */
body.tel .pr-form.ch-fiche .feuille-x.flottant { display: flex; top: 56px; right: 16px; }
body.tel .ch-fiche .ch-ft { padding: 18px 60px 6px 16px; }
/* montant figé (charge affectée à un produit) */
.ch-form .pr-in:disabled { background: transparent; border-style: dashed; color: var(--texte3); cursor: not-allowed; }
/* Affecter : bouton désactivé quand le produit coché n'est pas dans la liste filtrée */
.ch-faff [data-ok]:disabled { opacity: .35; cursor: default; }
/* iPhone, Ajouter (K13) : « Joindre » sous le champ, lignes groupées façon iOS, valeur à droite */
.ch-joindre { display: flex; align-items: center; justify-content: center; gap: 6px; margin: -6px auto -2px; font-size: 15px; font-weight: 600; color: var(--accent); }
body.tel .ch-form .pr-grp { background: transparent; border: 0; padding: 0; gap: 0; }
body.tel .ch-form .pr-grp > .pr-mseg { height: 34px; margin-bottom: 14px; }
body.tel .ch-form .pr-2 { display: contents; }
body.tel .ch-form .ch-ln { flex-direction: row; align-items: center; gap: 12px; min-height: 46px; padding: 0 16px; background: #fff; }
body.tel .ch-form .ch-ln > span:first-child { flex: none; font-size: 16px; font-weight: 400; color: var(--texte); }
body.tel .ch-form .ch-ln1 { border-radius: 14px 14px 0 0; } body.tel .ch-form .ch-ln3 { border-radius: 0 0 14px 14px; margin-bottom: 14px; }
body.tel .ch-form .ch-ln2, body.tel .ch-form .ch-ln3 { box-shadow: inset 0 .5px 0 var(--filet2); }
body.tel .ch-form .ch-ln .pr-eur { flex: 1; min-width: 0; }
body.tel .ch-form .ch-ln .pr-in { flex: 1; height: 44px; border: 0; background: transparent; box-shadow: none; padding: 0; text-align: right; }
body.tel .ch-form .ch-ln .pr-eur .pr-in { padding-right: 18px; } body.tel .ch-form .ch-ln .pr-eur i { right: 0; font-size: 16px; color: var(--texte); font-weight: 400; }
body.tel .ch-form .ch-ln input[type="date"] { flex: none; width: auto; height: 34px; margin-left: auto; padding: 0 10px; border-radius: 8px; background: var(--remp2); text-align: center; }
body.tel .ch-form .ch-ln .pr-in:disabled { color: var(--texte3); }
body.tel .ch-form .ch-ln .pr-in:focus-visible { outline: 0; } body.tel .ch-form .ch-ln:focus-within > span:first-child { color: var(--accent); }
body.tel .ch-form .ch-ln .ch-rempli { border-radius: 8px; }
body.tel .ch-form .pr-grp > .pr-f:not(.ch-ln) + .pr-f:not(.ch-ln) { margin-top: 12px; }
body.tel .ch-form .pr-grp > .pr-f:not(.ch-ln) > span:first-child { margin: 0 4px 2px; font-size: 13px; }
body.tel .ch-form .pr-plats { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; } body.tel .ch-form .pr-plats::-webkit-scrollbar { display: none; }
body.tel .ch-form .pr-cats { margin: 0 -16px; padding: 0 16px; }
body.tel .ch-form .pr-plat, body.tel .ch-form .ch-autre { flex: none; }

/* 0.1.25 · coque */
/* Mac 1000–1199 px : « Demande à Amélia » réduit à la petite Amélia, bien ronde */
@media (max-width: 1199px) { .demande { width: 34px; padding: 0; justify-content: center; } }
/* notification d'erreur : pastille rouge (le bleu reste pour ce qui s'est bien passé) */
.toast.err .toast-ic { background: var(--err); }
/* connexion : les deux champs commencent au même endroit */
.cx-l > .sf { width: 18px; flex: none; }
/* feuille Plus : « Modifier » / « OK » sur la ligne du titre */
.plus-feuille .pl-mod { top: 4px; bottom: 12px; transform: none; display: flex; align-items: center; padding: 0; }
/* Mac : la carte profil est la page active quand on est dans Réglages */
.profil[aria-current] { background: #fff; box-shadow: 0 1px 4px rgba(36,38,22,.1), 0 0 0 1px rgba(98,103,63,.18); }
.profil[aria-current] .profil-t small { color: var(--accent); font-weight: 600; }
/* Réglages : titres de groupe façon iOS, touches espacées */
.reg .g-titre { text-transform: uppercase; letter-spacing: .4px; font-size: 11.5px; font-weight: 600; }
body.tel .reg .g-titre { font-size: 13px; margin-left: 16px; }
.reg .touches { gap: 10px; } .reg .touches .k { display: inline-flex; align-items: center; gap: 1px; }

/* 0.1.25 · Produits */
/* parcours de la fiche vendue : pastilles du même vert que le trait (charte #676D44) */
.pr-pe.ok i { background: #676D44; }
/* Mac 1000–1199 px : le nom garde la place, colonnes chiffrées à largeur fixe, sans le % de marge ; titre de fiche sur 2 lignes */
@media (max-width: 1199px) {
  .prd .pr-ins { width: 300px; }
  .pr-tbl:not(.pc-tbl) .pr-th, .pr-tbl:not(.pc-tbl) .pr-tr { grid-template-columns: minmax(0,1fr) 56px 80px 64px; gap: 10px; }
  .pr-tr .pr-pct { display: none; }
  .prd .pr-titre { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 17px; line-height: 21px; }
}
/* Nouvel achat (Mac) : le segment État garde sa largeur, le nom prend le reste */
body:not(.tel) .pr-form .pr-2:has(> .pr-f > .pr-mseg[data-seg="etat"]) { grid-template-columns: minmax(0,1fr) auto; }
/* iPhone : référence sous le titre de la feuille ; statut figé (vendu, démonté) */
.pr-navref { display: block; font-size: 12px; font-weight: 500; color: var(--texte2); line-height: 15px; }
.pr-fige { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--texte2); } body.tel .pr-fige { font-size: 16px; font-weight: 500; }
/* iPhone, Annuler la vente : feuille à la hauteur du contenu, action destructive en rouge */
body.tel .feuille.pr-form.pr-court { top: auto; }
.feuille.pr-court .pr-nav .ok.rouge { color: var(--err-t); }

/* 0.1.25 · Accueil + Amélia */
/* tout est fait : l'anneau plein reste, coche au vert de la charte */
.maint.fini { min-height: 262px; } .maint.fini .maint-sur > .sf { color: #676D44; }
.tel .maint.fini { min-height: 0; } .tel .maint.fini h2 { margin-top: 6px; }
/* en-têtes, J-n et liens : jamais coupés en deux */
.acc-grille .wh .lk, .grille2 .wh .lk { white-space: nowrap; flex: none; }
.acc-grille .n-l .n, .acc-grille .lv .mut, .acc-grille .chip { white-space: nowrap; }
.acc-grille .lv > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.maint h2 { overflow-wrap: break-word; }
/* remarque repliée (« Plus tard ») : un clic la rouvre */
.rem-revoir { width: 100%; text-align: left; border-radius: 12px; } .rem-revoir > div { flex: 1; min-width: 0; } .rem-revoir > .sf { color: var(--texte3); }
.rem-revoir:hover b { color: var(--accent); }
/* « à encaisser » : bleu de la charte (l'orange est hors charte, ce n'est pas un négatif) */
.chip.acc-enc { background: rgba(181,188,147,.18); color: var(--accent); }
/* Mac 1000–1199 px : deux colonnes (Maintenant sur toute la largeur, puis Ensuite et les cartes par deux) */
@media (max-width: 1199px) {
  .acc-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(240px, auto); grid-auto-rows: minmax(230px, auto); }
  .acc-grille .maint { grid-column: 1 / -1; }
  .acc-grille .ensuite { grid-column: 1; grid-row: auto; }
  .acc-grille .nx-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* 0.1.25 · Tableau de bord */
/* lignes de vente et d'en vente : un clic ouvre la fiche du produit (surbrillance façon iOS, séparateur en retrait) */
.ar-liste a.ar-l { margin: 0 -8px; padding: 0 8px; border-radius: 10px; color: inherit; text-decoration: none; cursor: pointer; transition: background-color .15s; }
.ar-liste a.ar-l + a.ar-l { border-top: 0; background-image: linear-gradient(var(--sep), var(--sep)); background-size: calc(100% - 16px) 1px; background-position: 8px 0; background-repeat: no-repeat; }
@media (hover: hover) { .ar-liste a.ar-l:hover { background-color: var(--remp1); } }
.ar-liste a.ar-l:active { background-color: var(--remp2); }
.ar-liste .wh .lk, .ar-graph-c .wh .lk { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 2px; }
/* anneau à 0 % : pas de point isolé */
.ar-an.zero .anneau-arc { visibility: hidden; }
.tel .ar-an small.pale { font-size: 10px; margin-top: 0; }
/* courbe : mois montré en haut à droite (iPhone), étiquettes de l'axe qui s'effacent, légende jamais collée */
.ar-graph-c .wh .ar-leg-m { margin-left: auto; font-size: 12px; }
.ar-ax { transition: fill .2s, opacity .2s; } .ar-ax.cache { opacity: 0; }
.ar-leg .op { flex: none; white-space: nowrap; }
.tel .ar-leg { flex-wrap: wrap; gap: 4px 12px; }
/* iPhone, haut : légende sur deux lignes s'il y a des cotisations ; vue Trésorerie sans barre */
.ar-rep-l { flex-wrap: wrap; gap: 4px 10px; } .ar-rep-l .op { flex: none; white-space: nowrap; } .ar-rep-l:first-child { margin-top: 0; }
@media (max-width: 389px) { .ar-rep { padding: 11px 10px; } .ar-rep-l { column-gap: 6px; } .ar-rep-l .op { font-size: 11.5px; gap: 5px; } }
.ar-barre i { min-width: 4px; }
/* page redessinée sans changement : les barres ne repoussent pas */
.calme .ar-barre i { animation: none !important; }
/* Mac : colonne de droite un peu plus large, comme la maquette O8 (« 356 € en moyenne » entier à côté de la mini-courbe) */
.ar-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr); }
/* Mac jusqu'à 1439 px : mini-courbe à côté du chiffre, la ligne du bas garde toute la largeur (« 25 h 30 passées » entier) */
@media (max-width: 1439px) { .mac .ar-t { position: relative; } .mac .ar-tp .spark { position: absolute; right: 13px; top: 34px; } }
/* Mac jusqu'à 1365 px : les 4 chiffres du grand bloc en 2 × 2 (le bloc grandit au besoin), légende de la courbe qui tient dans sa carte */
@media (max-width: 1365px) {
  .mac .ar-grille { grid-template-rows: minmax(250px, auto) minmax(250px, 1fr) minmax(250px, 1fr); }
  .mac .ar-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin-top: 18px; }
  .mac .ar-kpis .mk.droite { margin-left: 0; text-align: left; }
  .mac .ar-leg { gap: 16px; } .mac .ar-leg .ar-leg-m { display: none; }   /* le mois survolé reste en bleu sous l'axe */
}
/* Mac 1000–1199 px : deux colonnes ; grand bloc sur toute la largeur, chiffres en 2 × 2 ; cases à côté de « Où part l'argent » */
@media (max-width: 1199px) {
  .mac .ar-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: auto; grid-auto-flow: row dense; }
  .mac .ar-heros { grid-column: 1 / -1; min-height: 236px; }
  .mac .ar-kpis.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mac .ar-tuiles { grid-template-rows: minmax(118px, auto); }
  .mac .ar-graph-c { grid-column: 1 / -1; height: 300px; }
  .mac .ar-rem { grid-column: 1 / -1; }
}

/* 0.1.25 · Pièces */
/* Mac 1000–1199 px : boutons de la fiche sur deux lignes, colonne « Origine » masquée (elle est dans la fiche) */
@media (max-width: 1199px) {
  #pc-ins .pr-act { flex-wrap: wrap; } #pc-ins .pr-act > button { flex: 1 1 100%; }
  .pc-tbl .pr-th, .pc-tbl .pr-tr { grid-template-columns: minmax(0,2fr) minmax(0,.6fr) minmax(0,.35fr) minmax(0,.6fr); }
  .pc-tbl .pr-th > :nth-child(2), .pc-tbl .pr-tr > :nth-child(2) { display: none; }
}
/* Affecter : bouton grisé tant que rien n'est choisi */
.pc-aff [data-ok]:disabled { opacity: .35; cursor: default; } .pc-aff .btn-noir[data-ok]:disabled:hover { background: #1D1D1F; }
/* Modifier : état, date et plateforme en lecture seule ; « 2 utilisés » en gris normal */
.pc-lu { display: flex; align-items: center; height: 32px; padding: 0 10px; border-radius: 9px; background: var(--remp1); font-size: 13px; color: var(--texte2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-ut { font-size: inherit; font-weight: 500; color: var(--texte3); }
/* iPhone : feuille d'actions iOS (menu ⋯, confirmation Supprimer) : fond assombri au-dessus de la fiche, « Annuler » à part */
.feuille-fond.pc-as-fond { z-index: 52; background: rgba(0,10,20,.32); }
body.tel .feuille.pc-as { z-index: 53; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0 8px calc(8px + env(safe-area-inset-bottom)); }
body.tel .feuille.pc-as .feuille-poignee, body.tel .feuille.pc-as .feuille-x { display: none; }
body.tel .feuille.pc-as .feuille-corps { padding: 0; overflow: visible; }
.pc-as .pr-as { background: rgba(250,251,252,.97); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); }
.pc-as .pc-as-an button { font-weight: 600; }
.pc-as-t { padding: 13px 16px; text-align: center; font-size: 13px; line-height: 17px; color: var(--texte2); box-shadow: 0 .5px 0 var(--filet2); }
/* iPhone : fiche pleine hauteur (maquette Q10), lignes séparées par un filet, boutons et ⋯ en bas */
body.tel .feuille.pc-fiche { top: 50px; max-height: none; }
body.tel .feuille.pc-fiche .feuille-corps { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.feuille.pc-fiche .pr-ins.tel { flex: 1; min-height: 100%; }
.feuille.pc-fiche .pr-ins.tel .pr-fld { padding: 9px 0; font-size: 15px; } .feuille.pc-fiche .pr-ins.tel .pr-fld + .pr-fld { box-shadow: 0 -.5px 0 var(--filet2); }
.feuille.pc-fiche .pr-ins.tel .pr-act { margin-top: auto; align-items: center; }
.feuille.pc-fiche .pr-ins.tel .pr-act .btn-gris { background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.08); }
.feuille.pc-fiche .pr-ins.tel .pr-act .pr-ell { width: 50px; height: 50px; border-radius: 25px; margin: 0; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.08); }
/* iPhone : total sur sa propre ligne quand il y a trois filtres */
.pc-tot-l { margin: -6px 4px 12px; text-align: right; }
/* iPhone : boutons du bas de la fiche à la bonne taille (⋯ toujours visible, même à 375 px) */
.feuille.pc-fiche .pr-ins.tel .pr-act { gap: 8px; }
.feuille.pc-fiche .pr-ins.tel .pr-act .btn-noir, .feuille.pc-fiche .pr-ins.tel .pr-act .btn-gris { flex: 1 1 0; min-width: 0; padding: 0 10px; font-size: 15px; }
@media (max-width: 389px) { .feuille.pc-fiche .pr-ins.tel .pr-act .btn-noir, .feuille.pc-fiche .pr-ins.tel .pr-act .btn-gris { padding: 0 6px; font-size: 14px; } }
/* iPhone : formulaires en listes groupées (Ajouter, Modifier, Mettre en vente) */
.pc-ftel .pr-cap { font-size: 13px; margin: 0 4px 6px; }
body.tel .pc-ftel .pr-cats { margin: 0 -16px; padding: 0 16px; } .pc-ftel .pr-cat, .pc-ftel .pr-plat { height: 34px; padding: 0 13px; font-size: 15px; }
.pc-ftel > div > .pr-mseg { display: flex; height: 32px; margin-top: 10px; } .pc-ftel > div > .pr-mseg button { flex: 1; font-size: 14px; }
.pc-ftel .pr-lr .kk { white-space: nowrap; } .pc-ftel .pr-lr .gris { color: var(--texte2); }
.pc-suf { margin-left: 4px; font-weight: 500; }
.pc-datep { position: relative; display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 8px; background: var(--remp2); }
.pc-datep b { font-weight: 500; } .pc-datep input { position: absolute; inset: 0; width: 100%; opacity: 0; border: 0; }
.pc-ftel .pc-plats { flex-wrap: nowrap; overflow-x: auto; margin: 10px -16px 0; padding: 0 16px; scrollbar-width: none; } .pc-ftel .pc-plats::-webkit-scrollbar { display: none; }
/* iPhone : résumé en carte flottante (maquettes Q11, Q14, Q15) */
body.tel .feuille.pc-p .pr-shf { margin: 0 12px calc(10px + env(safe-area-inset-bottom)); padding: 10px 14px; border-top: 0; border-radius: 18px; box-shadow: 0 6px 24px rgba(19,20,7,.12); }
/* 0.1.25 · outils (Radar, Cote des prix, Convertisseur) */
/* Radar Mac 1000–1199 px : le curseur du rayon passe sous « Rayon main propre · 30 km » au lieu d'être écrasé */
@media (max-width: 1199px) { .rd-ray:not(.tel) { flex-wrap: wrap; gap: 4px 12px; padding: 10px 18px 12px; } .rd-ray:not(.tel) b { margin-left: auto; } .rd-ray:not(.tel) .ou-range { order: 3; flex-basis: 100%; } }
/* Radar iPhone (U5) : « Appliqués » sans pastille, sous-titre sur une ligne, lignes en semibold */
.rd.tel .rd-app { height: auto; padding: 0; background: none; gap: 4px; font-size: 13px; }
.rd.tel .rd-stt small { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd.tel .rd-row { font-size: 15px; } .rd.tel .rd-rn { font-weight: 600; }
.rd-pfs .rd-pft b { padding-right: 46px; }
.rd.tel .rd-pbs .g-titre { margin-bottom: 6px; } .rd.tel .rd-pbs .g-titre:not(:first-child) { margin-top: 18px; }
.rd-vch input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
@media (max-width: 389px) { .rd.tel .rd-stt small { font-size: 12.5px; } .rd-pfs .rd-pft b { font-size: 16px; } .rd.tel .rd-appt { display: none; } .rd.tel .rd-app .sf { width: 17px; height: 17px; } }
/* Cote Mac (U2) : menu et recherche juste après le titre ; colonnes alignées à gauche, « 130 – 150 € » compact ;
   la ligne grandit si les puces de version passent sur 2 lignes (1000 px) au lieu de chevaucher la suivante */
.tb-t:has(~ .tb-outils .ct-cat) { flex: 0 1 auto; } .tb-outils:has(.ct-cat) { flex: 1; min-width: 0; }
.ct:not(.tel) .ct-l { grid-template-columns: minmax(84px, 1fr) minmax(0, 2fr) minmax(108px, .9fr) minmax(120px, 1.2fr) minmax(76px, .9fr) minmax(40px, .5fr); height: auto; min-height: 40px; padding: 5px 0; }
.ct:not(.tel) .ct-l.ct-h > span { white-space: nowrap; }
.ct:not(.tel) .ct-l.ct-h { min-height: 32px; padding: 0; }
.ct:not(.tel) .ct-l.ed { padding: 5px 16px; }
.ct:not(.tel) .ct-ach, .ct:not(.tel) .ct-d, .ct:not(.tel) .ct-mg, .ct:not(.tel) .ct-nb { text-align: left; }
.ct:not(.tel) .ct-fr { justify-content: flex-start; } .ct:not(.tel) .ct-fr .ct-p { min-width: 0; }
/* Cote iPhone (U11) : nom sur 2 lignes au besoin (iPhone 11 Pro Max), en-têtes sur une ligne, ROI sans case */
.ct-l1 > .ct-nm { white-space: normal; }
.ct-l1 .ct-nm b { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 19px; }
.ct-h.tel span { white-space: nowrap; }
.ct-roib input { background: transparent; border-color: transparent; }
/* Convertisseur : feuille « Taux TapTapSend » (Mac U4, iPhone U14) */
.feuille.cv-f { width: 420px; overflow: hidden; }
.cv-f .feuille-corps { padding: 0; display: flex; flex-direction: column; }
.cv-ft { display: flex; align-items: center; gap: 12px; padding: 18px 60px 14px 22px; }
.cv-fic { width: 44px; height: 44px; border-radius: 13px; background: var(--g300); color: #636366; display: flex; align-items: center; justify-content: center; flex: none; }
.cv-ft h2 { font-size: 19px; line-height: 23px; font-weight: 700; letter-spacing: -0.3px; } .cv-ft small { display: block; font-size: 12.5px; font-weight: 600; color: var(--texte2); }
.cv-f .feuille-x.flottant { top: 25px; right: 18px; }
.cv-f .pr-grp { margin: 0 22px 18px; }
.cv-fin.secoue { animation: secoue .4s; }
.cv-fpied { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px 14px; border-top: .5px solid rgba(0,0,0,.08); background: #fff; }
body.tel .feuille.cv-f { min-height: 52vh; }
.cv-f.tel .feuille-corps { flex: 1; }
.cv-f.tel .cv-ft { padding: 8px 64px 14px 16px; }
.cv-f.tel .feuille-x.flottant { top: 48px; right: 16px; }
.cv-fl { font-size: 13px; font-weight: 600; color: var(--texte2); margin: 4px 22px 6px; }
.cv-f.tel .cv-fin { margin: 0 16px; } .cv-f.tel .cv-fin .pr-in { height: 54px; padding: 0 46px 0 14px; border-radius: 12px; background: #fff; font-size: 28px; letter-spacing: -0.5px; }
.cv-f.tel .cv-fin i { right: 14px; font-size: 22px; }
.cv-f.tel .cv-fin + .cv-fl { margin-top: 18px; }
.cv-frow { display: flex; align-items: center; justify-content: space-between; height: 46px; margin: 0 16px; padding: 0 14px; border-radius: 12px; background: #fff; font-size: 16px; } .cv-frow b { font-weight: 400; }
.cv-f.tel .cv-fpied { margin-top: auto; padding: 24px 16px calc(14px + env(safe-area-inset-bottom)); border: 0; background: none; }
.cv-f.tel .cv-fpied .btn-noir { flex: 1; height: 50px; border-radius: 25px; font-size: 16px; }

/* 0.1.25 · Aujourd'hui + À ranger */
.it.fixe .it-h { width: auto; min-width: 44px; white-space: nowrap; } .tel .it.fixe .it-h { min-width: 34px; }
.insp-act .btn-noir:disabled { opacity: .55; cursor: default; }
.pv.fixe { cursor: default; padding-right: 12px; } .pv.fixe:hover { background: var(--g200); }
.rg-carte { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.rg-carte.vers-droite { box-shadow: 0 14px 40px rgba(181,189,141,.35), inset 0 0 0 2px rgba(181,189,141,.8); }
.rond.plus-tard { color: var(--texte); }
@media (max-width: 1180px) { .rg-act { flex-wrap: nowrap; } .rg-act kbd { display: none; } }
@media (max-height: 720px) {
  .tel .rg-carte { padding-top: 16px; } .tel .rg-carte h2 { margin-top: 4px; } .tel .rg-prop { margin-top: 12px; } .tel .pr { min-height: 40px; }
  .rg-boutons { margin-top: 16px; gap: 18px; } .rond { width: 56px; height: 56px; border-radius: 28px; } .rond.grand { width: 68px; height: 68px; border-radius: 34px; }
}

/* 0.1.26 · Charges */
/* fiche d'un abonnement : ligne « Changer la fréquence » façon iOS */
.ch-frq { width: 100%; cursor: pointer; text-align: left; font-weight: 500; color: var(--texte); }
.ch-frq > svg:first-child { color: var(--accent); flex: none; }
.ch-frq:hover { background: rgba(98,103,63,.04); }
@media (hover: none) { .ch-frq:hover { background: none; } }
/* feuille « Changer la fréquence » : Changer grisé tant que la fréquence est la même */
.ch-frqf [data-ok]:disabled { opacity: .35; cursor: default; }
.ch-frqf .pr-grp > .pr-mseg { margin-bottom: 4px; } .feuille.ch-frqf { width: 500px; } body.tel .feuille.ch-frqf { width: 100%; }

/* 0.1.26 · Pièces */
.pc-acomp { color: var(--texte2); }

/* 0.1.26 · À ranger + étapes */
.rg-idees { margin-top: 6px; }
.rg-idees-l { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.rg-idee { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 8px 10px 12px; border-radius: 16px; background: var(--carte); border: .5px solid rgba(0,0,0,.06); box-shadow: var(--ombre); transition: transform .22s var(--ressort), opacity .2s; }
.rg-idee.part { transform: translateX(-24px); opacity: 0; }
.rg-idee-ic { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--bn50); color: var(--accent); }
.rg-idee .rg-q b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.rg-idee .rg-q small { margin-top: 1px; }
.rg-idee-x { flex: none; width: 28px; height: 28px; border-radius: 14px; display: grid; place-items: center; color: var(--texte3); transition: background .15s, color .15s; }
.rg-idee-x:hover { background: var(--remp2); color: var(--err-t); }
.tel .rg-idees { margin-top: 30px; }
.tel .rg-idees-l { display: block; background: var(--carte); border-radius: 18px; border: .5px solid rgba(0,0,0,.06); box-shadow: var(--ombre); overflow: hidden; }
.tel .rg-idee { border: 0; border-radius: 0; box-shadow: none; background: none; padding: 8px 4px 8px 14px; gap: 12px; }
.tel .rg-idee { position: relative; } .tel .rg-idee + .rg-idee::before { content: ''; position: absolute; left: 56px; right: 0; top: 0; height: .5px; background: var(--sep); }
.tel .rg-idee .rg-q b { font-size: 15px; line-height: 20px; font-weight: 500; }
.tel .rg-idee-ic { width: 30px; height: 30px; }
.tel .rg-idee-x { width: 40px; height: 40px; border-radius: 20px; }
@media (max-height: 720px) { .tel .rg-idees { margin-top: 22px; } }
.etape.fait i { background: var(--vert); border-color: var(--vert); }

/* =====================================================================
   0.1.27 · « Amélia agit » (maquettes OFFICIEL E1–E10, I1–I12) : cartes à valider,
   éléments libres (fiche, visuels), Aujourd'hui · À venir, Ce qu'Amélia a fait, Archives
   ===================================================================== */
/* ---------- cartes d'Amélia (Valider · Corriger · Non) ---------- */
.am-ag { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 520px; }
.agc { width: 100%; background: #fff; border-radius: 20px; border: .5px solid rgba(0,0,0,.08); box-shadow: 0 2px 12px rgba(27,29,15,.07); padding: 14px; display: flex; flex-direction: column; gap: 12px; animation: monte .4s var(--ressort) both; }
.agh { display: flex; align-items: center; gap: 11px; }
.agt { width: 40px; height: 40px; border-radius: 12px; background: rgba(181,188,147,.18); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.agn { flex: 1; min-width: 0; } .agn b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.2px; overflow-wrap: anywhere; } .agn small { display: block; font-size: 12.5px; color: var(--texte2); margin-top: 1px; }
.agk { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .3px; color: var(--accent); background: var(--accent-f); height: 22px; padding: 0 9px; border-radius: 11px; display: inline-flex; align-items: center; }
.agb { display: flex; flex-wrap: wrap; gap: 6px; }
.agp { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 15px; background: var(--g200); font-size: 13px; font-weight: 600; color: var(--texte); white-space: nowrap; cursor: default; }
.agp .sf { color: var(--texte3); }   /* 0.1.57 : pastille non cliquable = gris ; bleu nuit seulement si on la touche (.agp-ed) */
.agp.agp-ed .sf { color: var(--accent); }
.agp.agp-ed { background: #fff; box-shadow: inset 0 0 0 1px rgba(98,103,63,.3); cursor: pointer; } .agp.agp-ed .chv { color: var(--texte3); display: flex; }
.agp.agp-ed:hover { background: rgba(98,103,63,.06); }
.ag-titre { width: 100%; font-size: 16px; font-weight: 700; border: 0; border-bottom: 1.5px solid var(--accent); background: transparent; padding: 2px 0; outline: none; color: var(--texte); }
.aga { display: flex; gap: 8px; }
.agv { flex: 1; height: 40px; border-radius: 20px; background: #1D1D1F; color: #fff; font-size: 14.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 7px; transition: transform .18s var(--sortie), opacity .2s; }
.agv:active, .agg:active, .agre:active { transform: scale(.97); } .agv.attente { opacity: .55; }
.agg { height: 40px; padding: 0 16px; border-radius: 20px; background: var(--g200); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; color: var(--texte); transition: transform .18s var(--sortie), background .2s; }
.agg:hover { background: var(--g400); }
.agre { width: 40px; height: 40px; border-radius: 20px; background: var(--g200); display: flex; align-items: center; justify-content: center; flex: none; }
.agd { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; background: var(--g100); font-size: 13.5px; flex-wrap: wrap; }
.agd .l { color: var(--texte2); font-weight: 600; flex: 1; min-width: 0; }
.agd .old { color: var(--texte3); text-decoration: line-through; font-weight: 600; }
.agd .new { color: var(--texte); font-weight: 700; } .agd .new.pos { color: var(--ok-t); } .agd .new.neg { color: var(--err-t); }
.agd .tot { font-weight: 700; } .agd .fl { color: var(--texte3); display: flex; }
.ags { display: flex; height: 32px; border-radius: 16px; background: var(--remp2); padding: 2px; }
.ags button { flex: 1; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: rgba(29,29,31,.7); padding: 0 12px; transition: background .25s var(--ressort), box-shadow .25s; }
.ags button.on { background: #fff; color: var(--texte); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.ag-pj { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.ag-liste { display: flex; flex-wrap: wrap; gap: 5px; } .ag-liste span { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 8px; background: var(--g200); }
.agok { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 16px; background: #fff; border: .5px solid rgba(0,0,0,.06); animation: monte .35s var(--ressort) both; }
.agok .ck { width: 24px; height: 24px; border-radius: 12px; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.agok.non .ck { background: #C7CDD3; }
.agok .t { flex: 1; min-width: 0; font-size: 14px; } .agok .t b { font-weight: 600; } .agok .t small { display: block; font-size: 12px; color: var(--texte2); }
.agok .an { font-size: 13px; font-weight: 600; color: var(--accent); padding: 4px 6px; }
.agc .vi-cb { margin-top: -2px; }
.feuille.ag-date { width: 360px; } .ag-date-c { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 6px; }

/* ---------- fenêtre d'Amélia : « Ce qu'Amélia a fait », élément visé ---------- */
.feuille-x.am-hist { right: 90px; transition: opacity .3s, background .2s; }

.am-retour { display: none; align-items: center; gap: 6px; color: var(--accent); font-size: 15px; } .am-retour b { color: var(--texte); font-weight: 700; }
.am-journal { display: none; flex: 1; min-height: 0; overflow-y: auto; }
.amelia-feuille.am-j .am-fil, .amelia-feuille.am-j .am-barre, .amelia-feuille.am-j .am-tete-o, .amelia-feuille.am-j .am-tn { display: none; }
.amelia-feuille.am-j .am-journal { display: block; } .amelia-feuille.am-j .am-retour { display: flex; }
.amelia-feuille.am-j .am-hist { background: rgba(98,103,63,.14); color: var(--accent); }
.amelia-feuille.am-j.am-vide .am-tete { opacity: 1; transform: none; pointer-events: auto; } .amelia-feuille.am-j.am-vide { height: min(880px, calc(100vh - 48px)); }
.amelia-feuille.am-j.am-vide .am-hist { opacity: 1; pointer-events: auto; }
.hist { max-width: 680px; margin: 0 auto; padding: 18px 24px 30px; display: flex; flex-direction: column; gap: 18px; }
.hist-vide { display: flex; align-items: center; justify-content: center; padding: 60px 0; }
.hg { font-size: 12px; font-weight: 700; color: var(--texte2); margin: 0 6px 6px; }
.hl { background: #fff; border-radius: 18px; border: .5px solid rgba(0,0,0,.06); overflow: hidden; }
.hr { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
.hr + .hr { border-top: .5px solid var(--sep); }
.hr .ti { width: 34px; height: 34px; border-radius: 10px; background: rgba(181,188,147,.18); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.hr .tx { flex: 1; min-width: 0; } .hr .tx b { display: block; font-size: 14px; font-weight: 600; } .hr .tx small { display: block; font-size: 12px; color: var(--texte2); margin-top: 1px; }
.hr .vb { font-size: 11px; font-weight: 700; color: var(--texte2); margin-right: 5px; }
.hr .h { font-size: 12px; font-weight: 600; color: var(--texte3); font-variant-numeric: tabular-nums; }
.hr .an { height: 28px; padding: 0 12px; border-radius: 14px; background: var(--g200); font-size: 12.5px; font-weight: 600; flex: none; }
.hr.x .tx b { color: var(--texte3); text-decoration: line-through; }
body.tel .hist { padding: 14px 16px 30px; } body.tel .hr { gap: 10px; padding: 10px 12px; } body.tel .hr .h { display: none; }
.am-focus { max-width: 680px; margin: 0 auto; display: none; padding: 0 4px 8px; } .am-focus.vu { display: flex; }
.am-vise { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 11px; border-radius: 15px; background: var(--accent-f); color: var(--accent); font-size: 13px; font-weight: 600; max-width: 100%; }
.am-vise > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--texte); }
.am-vise button { width: 20px; height: 20px; border-radius: 10px; background: rgba(98,103,63,.14); display: flex; align-items: center; justify-content: center; flex: none; }

/* ---------- fiche d'un élément ---------- */
.el-insp { gap: 0; } .el-insp.av-insp, .insp.el-insp { width: clamp(330px, 32vw, 460px); }
.el-fiche { display: flex; flex-direction: column; gap: 16px; min-height: 100%; }
.el-t { display: flex; align-items: center; gap: 12px; }
.el-tl { width: 44px; height: 44px; border-radius: 13px; background: rgba(181,188,147,.18); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.el-tt { flex: 1; min-width: 0; } .el-tt h2 { margin: 0; font-size: 21px; line-height: 26px; font-weight: 700; letter-spacing: -.4px; overflow-wrap: anywhere; }
.el-ech { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; background: rgba(142,142,147,.14); color: var(--att-t); font-size: 12.5px; font-weight: 700; flex: none; white-space: nowrap; }
.el-bh { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--texte2); margin: 0 2px 7px; }
.el-bh span { margin-left: auto; font-weight: 600; }
.el-bl { border-radius: 16px; border: .5px solid rgba(0,0,0,.1); overflow: hidden; background: #fff; }
.el-tk { display: flex; align-items: flex-start; gap: 11px; padding: 11px 14px; }
.el-tk + .el-tk { border-top: .5px solid var(--sep); }
.el-c { width: 21px; height: 21px; border-radius: 11px; border: 1.5px solid var(--filet3); flex: none; margin-top: 1px; display: flex; align-items: center; justify-content: center; color: #fff; transition: background .2s, border-color .2s, transform .15s; }
button.el-c:hover { border-color: var(--accent); } button.el-c:active { transform: scale(.9); }
.el-tk.f .el-c { background: var(--ok); border-color: var(--ok); }
.el-x { flex: 1; min-width: 0; } .el-x b { display: block; font-size: 14px; font-weight: 600; } .el-x small { display: block; font-size: 12px; color: var(--texte2); margin-top: 1px; }
.el-tk.f .el-x b { color: var(--texte3); text-decoration: line-through; }
.el-grille { display: grid; grid-template-columns: 1fr 1fr; }
.el-grille .el-tk { border-top: .5px solid var(--sep); padding: 10px 12px; } .el-grille .el-tk:nth-child(-n+2) { border-top: 0; }
.el-grille .el-tk:nth-child(odd) { border-right: .5px solid var(--sep); }
.el-lieu { margin-top: 8px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--g100); }
.el-fiche > .el-lieu { margin-top: 0; }
.el-pi { width: 30px; height: 30px; border-radius: 9px; background: #fff; color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 0 0 .5px rgba(0,0,0,.08); }
.el-ad { flex: 1; min-width: 0; font-size: 12.5px; line-height: 17px; } .el-ad b { display: block; font-size: 13px; } .el-ad span { display: block; color: var(--texte2); }
.el-verif { display: inline-flex !important; align-items: center; gap: 4px; color: var(--att-t) !important; font-weight: 600; }
.el-choix { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.el-op { border-radius: 14px; border: .5px solid rgba(0,0,0,.1); padding: 12px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; background: #fff; text-align: left; transition: box-shadow .2s, background .2s; }
.el-op i { width: 20px; height: 20px; border-radius: 10px; border: 1.5px solid var(--filet3); flex: none; transition: border .2s; }
.el-op.on { box-shadow: inset 0 0 0 1.5px var(--accent); background: rgba(98,103,63,.05); } .el-op.on i { border: 6px solid var(--accent); }
.el-idees { display: flex; flex-wrap: wrap; gap: 6px; }
.el-idee { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; border: 1px dashed rgba(98,103,63,.4); color: var(--accent); font-size: 13px; font-weight: 600; background: rgba(98,103,63,.03); }
button.el-idee:hover { background: rgba(98,103,63,.08); }
.el-rangs { border-radius: 16px; border: .5px solid rgba(0,0,0,.1); overflow: hidden; }
.el-rg { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 0 14px; font-size: 13px; }
.el-rg + .el-rg { border-top: .5px solid var(--sep); }
.el-rg > span:first-child { color: var(--texte2); font-weight: 600; } .el-rg b { font-weight: 600; text-align: right; }
.el-ets { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.el-et { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; background: var(--g200); font-size: 12px; font-weight: 600; color: var(--texte2); }
.el-vl { display: flex; justify-content: space-between; padding: 9px 14px; font-size: 13px; } .el-vl + .el-vl { border-top: .5px solid var(--sep); } .el-vl span { color: var(--texte2); } .el-vl b { font-variant-numeric: tabular-nums; }
.el-fics { display: flex; flex-wrap: wrap; gap: 6px; }
.el-fic { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 10px; border-radius: 16px; background: var(--g200); font-size: 13px; font-weight: 600; max-width: 100%; }
.el-fic span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .el-fic .sf { color: var(--accent); }
.el-fic.aj { background: none; border: 1px dashed rgba(98,103,63,.4); color: var(--accent); cursor: pointer; }
.el-act { margin-top: auto; padding-top: 4px; display: flex; gap: 8px; } .el-act .btn-noir { flex: 1; }
.el-act .btn-noir:disabled { opacity: .45; }
.el-fiche.tel .el-act { padding-bottom: 6px; } .el-fiche.tel .el-act .btn-gris { background: #fff; }
.fiche-el .feuille-corps { padding-top: 6px; }

/* ---------- les visuels (une liste fixe, déjà codée) ---------- */
.vi { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 18px; background: var(--g50); position: relative; }
.vi-grand { display: flex; align-items: baseline; gap: 8px; } .vi-grand b { font-size: 30px; line-height: 34px; font-weight: 700; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.vi-grand b.att { color: var(--att-t); } .vi-grand b.pos { color: var(--ok-t); } .vi-grand b.neg { color: var(--err-t); }
.vi-grand span { font-size: 12.5px; color: var(--texte2); font-weight: 600; }
.vi-barre { height: 10px; border-radius: 5px; background: var(--remp2); overflow: hidden; }
.vi-barre i { display: block; height: 100%; border-radius: 5px; background: var(--vert); transition: width .8s var(--ressort); }
.vi-barre.bleu i { background: var(--b600); } .vi-barre.rouge i { background: var(--err); }
.vi-taches { display: flex; align-items: center; gap: 16px; } .vi-taches > div:last-child { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.vi-lab { font-size: 12.5px; color: var(--texte2); font-weight: 600; }
.vi-ora { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 10px; background: rgba(142,142,147,.14); color: var(--att-t); font-size: 11px; font-weight: 700; }
.vi-cb { position: relative; }
.vi-courbe { display: block; overflow: visible; } .vi-zero { stroke: var(--filet2); stroke-dasharray: 3 4; } .vi-trait { fill: none; stroke: var(--v600); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.vi-pt { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--v600); }
.vi-pt.neuf { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; background: #fff; box-shadow: inset 0 0 0 2.5px var(--v600); animation: pop-neuf .5s var(--rebond) both; }
@keyframes pop-neuf { from { transform: scale(0); } to { transform: none; } }   /* 0.1.32 : nom à part (« pop » est celle de la ligne cochée) */
.vi-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.vi-cal i { height: 28px; border-radius: 8px; background: var(--g300); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; font-style: normal; color: var(--texte2); font-variant-numeric: tabular-nums; }
.vi-cal i.f { background: var(--vert); color: #fff; } .vi-cal i.r { background: #fff; box-shadow: inset 0 0 0 1px var(--filet2); color: var(--texte3); }
.vi-cal i.a { box-shadow: inset 0 0 0 2px var(--accent); background: #fff; color: var(--accent); } .vi-cal i.x { background: transparent; color: var(--texte3); }
.vi-barres { display: flex; align-items: flex-end; gap: 8px; height: 70px; }
.vi-barres div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; justify-content: flex-end; height: 100%; }
.vi-barres i { display: block; width: 100%; border-radius: 6px; background: var(--b600); min-height: 2px; }
.vi-barres span { font-size: 11px; font-weight: 600; color: var(--texte2); }
.vi-l { display: flex; justify-content: space-between; font-size: 12.5px; } .vi-l span { color: var(--texte2); } .vi-l b { font-variant-numeric: tabular-nums; }
.vi-act { display: flex; gap: 8px; } .vi-act .btn-noir { flex: 1; }

/* ---------- Aujourd'hui · À venir ---------- */
.aj-vue button { min-width: 92px; }
.aj-vue-t { margin: 0 0 12px; height: 34px; } .aj-vue-t button { font-size: 13.5px; }
.it-prog { display: inline-block; width: 54px; height: 5px; border-radius: 3px; background: var(--remp3); overflow: hidden; margin-left: 6px; vertical-align: middle; }
.it-prog i { display: block; height: 100%; border-radius: 3px; background: var(--vert); }
.it-prog.l { margin: 0 6px 0 0; }
.it.av { width: 100%; text-align: left; font: inherit; color: inherit; height: 60px; gap: 12px; cursor: pointer; }
.it.av .it-t { flex: 1; min-width: 0; } .it.av .it-t b { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it.av .it-t small { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--texte2); margin-top: 2px; white-space: nowrap; overflow: hidden; }
.it.av .it-d { font-size: 12.5px; font-weight: 600; color: var(--texte2); white-space: nowrap; }
.it.av .av-chev { color: var(--texte3); display: flex; }
.it.av.sel { background: rgba(98,103,63,.06); }
.it.av:hover { background: var(--g50); } .it.av.sel:hover { background: rgba(98,103,63,.08); }
.av-vide { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 60px 0; color: var(--texte3); }
.av-m .auj-g { overflow-y: auto; }
.sug-rate { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 20px; background: #fff; border: .5px solid rgba(0,0,0,.06); box-shadow: var(--ombre); margin-bottom: 4px; }
.sug-rate .q { flex: 1; min-width: 0; font-size: 14px; } .sug-rate .q b { font-weight: 600; display: block; } .sug-rate .q small { display: block; font-size: 12.5px; color: var(--texte2); margin-top: 1px; }
.sr-act { display: flex; gap: 8px; flex: none; }
.sug-rate.tel { flex-wrap: wrap; margin-bottom: 12px; } .sug-rate.tel .sr-act { width: 100%; } .sug-rate.tel .sr-act button { flex: 1; }
@media (max-width: 1199px) { body.mac .sug-rate { flex-wrap: wrap; } body.mac .sug-rate .sr-act { width: 100%; } body.mac .sug-rate .sr-act button { flex: 1; } }

/* ---------- Réglages › Archives ---------- */
.arch { max-width: 900px; display: flex; flex-direction: column; gap: 14px; }
.arch-h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rch { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 12px; background: var(--remp2); color: var(--texte2); font-size: 14px; flex: 1; min-width: 200px; }
.rch input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 14px; color: var(--texte); }
.arch-l .sec { margin-top: 10px; }
.retour-h { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-size: 17px; padding: calc(env(safe-area-inset-top) + 10px) 0 0; }
body.tel .arch .chips-h { margin-bottom: 0; } body.tel .rch { min-width: 0; width: 100%; flex-basis: 100%; }

/* ---------- Réglages : photo recadrée, nom (0.1.28) ---------- */
.reg-av { cursor: pointer; flex: none; border-radius: 50%; transition: transform .2s var(--ressort); } .reg-av:active { transform: scale(.96); }
.reg-profil > div.reg-pb { flex: none; display: flex; gap: 8px; }
.tel .reg-profil { flex-wrap: wrap; } .tel .reg-profil > div.reg-pb { width: 100%; } .tel .reg-pb > * { flex: 1; justify-content: center; }
.reg-act { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.tel .reg-act > * { flex: 1; justify-content: center; }
.reg-nom { padding: 4px 22px 20px; } .tel .reg-nom { padding: 4px 4px 12px; }
.feuille.reg-nomf, .feuille.reg-recadf { width: 400px; } body.tel .feuille.reg-nomf, body.tel .feuille.reg-recadf { width: 100%; }
.recad { padding: 4px 22px 20px; display: flex; flex-direction: column; align-items: center; } .tel .recad { padding: 4px 4px 12px; }
.recad .reg-act { align-self: stretch; }
.recad-c { position: relative; width: min(300px, 100%); aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #111; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.recad-c.tient { cursor: grabbing; }
.recad-c img { position: absolute; left: 50%; top: 50%; max-width: none; pointer-events: none; will-change: transform; }
.recad-rond { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 600px rgba(0,0,0,.5); border: 1.5px solid rgba(255,255,255,.75); pointer-events: none; }
.recad-z { display: flex; align-items: center; gap: 12px; width: min(300px, 100%); margin-top: 16px; color: var(--texte2); }
.recad-z input { flex: 1; accent-color: var(--accent); }

/* ---------- Notifications (notifs.js, maquettes OFFICIEL N1–N11) ---------- */
.nt-gl { color: var(--texte); }
.nt-gl .gl-t b { font-weight: 600; }
.nt-gl.sel { background: rgba(98,103,63,.07); }
.nt-gl .ou-sw { margin-left: auto; }
.nt-v { font-size: 13px; color: var(--texte2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nt-gl > svg:last-child { color: var(--texte3); flex: none; }
.nt-ck { margin-left: auto; color: var(--accent); display: flex; }
.nt-test .gl-t b { color: var(--accent); }
.nt-g2 { margin-top: 14px; }
.nt-reg .carte.groupe-l + .g-titre { margin-top: 22px; }
/* Mac : deux colonnes de réglages + le détail à droite */
.nt-mac { position: relative; display: flex; gap: 20px; align-items: flex-start; }
.nt-cols { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; align-items: start; }
.nt-col > .g-titre:first-child { margin-top: 0; }
.nt-col > .carte.groupe-l:first-child + .g-titre { margin-top: 18px; }
.nt-panneau { width: 340px; flex: none; position: sticky; top: 0; background: var(--carte); border-radius: var(--r-carte); border: .5px solid rgba(0,0,0,.06); padding: 18px; display: flex; flex-direction: column; }
.nt-panneau .g-titre:first-of-type { margin-top: 16px; }
@media (max-width: 1199px) { .nt-cols { grid-template-columns: minmax(0, 1fr); } .nt-panneau { width: 300px; } }
.nt-dt { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.nt-dt h2 { font-size: 17px; font-weight: 700; letter-spacing: -.3px; margin: 0; }
.nt-tl { width: 40px; height: 40px; border-radius: 12px; background: rgba(181,188,147,.18); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.nt-dt .nt-tl { width: 36px; height: 36px; border-radius: 11px; }
/* pastilles (heures, jours, rappels) */
.nt-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.nt-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 16px; background: var(--remp2); font-size: 13.5px; font-weight: 600; color: var(--texte); white-space: nowrap; cursor: pointer; transition: background .2s, box-shadow .2s, transform .18s var(--sortie); }
.nt-chip:active { transform: scale(.96); }
.nt-chip.on { background: var(--accent-f); color: var(--accent); box-shadow: inset 0 0 0 1.5px rgba(98,103,63,.35); }
.nt-chip.add { background: var(--carte); box-shadow: inset 0 0 0 1px var(--filet2); color: var(--texte2); }
.nt-chip.add svg { color: var(--accent); }
.nt-chip input[type=time] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.nt-x { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-right: -5px; border-radius: 9px; color: rgba(98,103,63,.7); }
.nt-x:hover { background: rgba(98,103,63,.12); }
/* aperçu : une notification comme sur l'écran verrouillé */
.nt-apercu { border-radius: 18px; padding: 14px 12px; background: var(--g200); }
.nt-ban { display: flex; align-items: center; gap: 10px; padding: 11px 13px 11px 11px; border-radius: 22px; background: rgba(255,255,255,.7); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); box-shadow: 0 6px 18px rgba(46,49,34,.1); }
.nt-ban > div { flex: 1; min-width: 0; }
.nt-ap { width: 32px; height: 32px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.08); display: flex; align-items: center; justify-content: center; flex: none; }
.nt-l1 { display: flex; align-items: baseline; gap: 8px; }
.nt-l1 b { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-l1 time { font-size: 12px; color: var(--texte2); }
.nt-ban p { margin: 1px 0 0; font-size: 14px; line-height: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* feuilles : fiche d'un rendez-vous (Rappels), Fait · Plus tard, détail d'un réglage (iPhone) */
.nt-feuille .feuille-corps { padding: 26px 18px 22px; overflow-y: auto; display: block; }
body.tel .nt-feuille .feuille-corps { padding: 30px 16px calc(env(safe-area-inset-bottom) + 22px); }
.nt-tete { display: flex; align-items: center; gap: 13px; padding-right: 40px; }
.nt-tete .nt-tl { width: 48px; height: 48px; border-radius: 14px; }
.nt-tete h2 { margin: 0; font-size: 24px; line-height: 29px; font-weight: 700; letter-spacing: -.6px; }
.nt-tete .lab { margin: 2px 0 0; font-size: 14px; font-weight: 400; }
.nt-rangs { margin-top: 20px; }
.nt-rg { display: flex; align-items: center; min-height: 46px; padding: 0 16px; font-size: 15px; }
.nt-rg + .nt-rg { border-top: .5px solid var(--sep); }
.nt-rg span { color: var(--texte2); }
.nt-rg b, .nt-rg input { margin-left: auto; font-weight: 600; }
.nt-rg input { border: 0; background: var(--remp2); border-radius: 8px; height: 32px; padding: 0 8px; font: inherit; font-weight: 600; color: var(--texte); }
.nt-feuille .g-titre { margin-top: 22px; }
.nt-def { margin-left: 6px; font-weight: 600; color: var(--texte3); }
.nt-amelia { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; margin-top: 22px; color: var(--accent); font-size: 15px; font-weight: 600; }
.nt-fait { width: 100%; margin-top: 24px; height: 52px; border-radius: 26px; font-size: 17px; gap: 8px; }
.nt-tard { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.nt-tard .btn-gris { margin: 0; height: 50px; border-radius: 25px; font-size: 15px; }
.nt-autre { display: block; margin: 16px auto 0; font-size: 15px; font-weight: 600; color: var(--accent); }
.nt-autre-c .seg { justify-content: center; }
.nt-panneau .gl { min-height: 42px; padding-top: 8px; padding-bottom: 8px; }

/* ---------- 0.1.31 : tableau de bord « À faire », revue du soir, routines ---------- */
.ar-af { padding: 14px 18px 10px; display: flex; flex-direction: column; min-height: 0; }
.ar-af .wh { margin-bottom: 6px; } .ar-af .af-n { margin-left: auto; }
.af-l { display: flex; flex-direction: column; }
.af-r { display: grid; grid-template-columns: 30px 1fr auto; grid-template-rows: auto auto; column-gap: 11px; align-items: center; padding: 7px 0; border-top: .5px solid var(--sep, var(--filet)); color: inherit; text-decoration: none; }
.af-r:first-child { border-top: 0; }
.af-r .ar-ic { grid-row: 1 / 3; }
.af-r b { font-size: 13.5px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.af-r small { grid-column: 2; font-size: 12px; color: var(--texte2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.af-r > .sf:last-child { grid-column: 3; grid-row: 1 / 3; color: var(--texte3); }
.af-plus { align-self: flex-start; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--accent); padding: 4px 0; }
.af-vide { display: flex; align-items: center; gap: 7px; margin: 6px 0; font-size: 13.5px; color: var(--texte2); } .af-vide .sf { color: var(--ok); }
.feuille-af { padding: 0 4px; }
.tel .ar-af { padding: 10px 14px 6px; } .tel .af-r { padding: 9px 0; } .tel .af-r b { font-size: 15px; } .tel .af-r .ar-ic { width: 32px; height: 32px; }

.rt-titre input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; text-align: right; color: var(--texte); outline: none; }
.rt-act { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.rt-act .btn-noir, .rt-act .btn-gris { width: 100%; }
.rt-stop { color: var(--err); }
.rt-feuille .g-titre { margin-top: 18px; }
.rt-feuille .nt-rangs { margin-top: 0; }

/* ---------- revue du soir (0.1.31) ---------- */
.rv { --nuit1: #2D3108; --nuit2: #474C24; --nuit3: #62673F; }
.mac-rv { max-width: 1060px; margin: 0 auto; padding: 22px 4px 40px; }
.rv-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 6px; }
.rv-col { min-width: 0; }
.rv-heros { position: relative; display: flex; align-items: center; gap: 18px; padding: 24px 28px; border-radius: 26px; overflow: hidden; color: #fff;
  background: var(--carte); box-shadow: 0 10px 30px rgba(45,49,8,.18); }
.rv-etoiles i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.75); box-shadow: 0 0 6px rgba(255,255,255,.6); }
.rv-etoiles i:nth-child(1) { left: 46%; top: 18%; } .rv-etoiles i:nth-child(2) { left: 58%; top: 62%; width: 2px; height: 2px; } .rv-etoiles i:nth-child(3) { left: 70%; top: 24%; width: 2px; height: 2px; }
.rv-etoiles i:nth-child(4) { left: 34%; top: 78%; width: 2px; height: 2px; opacity: .6; } .rv-etoiles i:nth-child(5) { left: 64%; top: 86%; opacity: .5; } .rv-etoiles i:nth-child(6) { left: 52%; top: 40%; width: 2px; height: 2px; opacity: .5; }
.rv-h-txt { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.rv-sur { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: rgba(255,255,255,.72); }
.rv-gd { margin-top: 6px; font-size: 54px; line-height: 58px; font-weight: 700; letter-spacing: -1.8px; font-variant-numeric: tabular-nums; }
.rv-gd small { font-size: 24px; font-weight: 600; letter-spacing: -.5px; color: rgba(255,255,255,.7); }
.rv-ph { margin-top: 4px; font-size: 14.5px; font-weight: 500; color: rgba(255,255,255,.82); }
.rv-ok-p { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; height: 26px; padding: 0 11px; border-radius: 13px; background: rgba(255,255,255,.16); font-size: 12.5px; font-weight: 700; }
.rv-an { position: relative; }
.rv-heros .anneau svg circle:first-of-type { stroke: rgba(255,255,255,.16); }
.rv-pc { font-size: 26px; font-weight: 700; letter-spacing: -.6px; color: #fff; } .rv-pc small { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.7); margin-left: 1px; }
.rv .sec { margin-top: 22px; }
.rv-l .it { height: 60px; }
.rv-it.part { opacity: 0; transform: translateX(24px); }
.rv-b { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 15px; background: var(--remp2); font-size: 13px; font-weight: 600; color: var(--texte); cursor: pointer; transition: transform .18s var(--sortie), background .2s; }
.rv-b .sf { color: var(--texte2); } .rv-b:hover { background: var(--remp3); } .rv-b:active { transform: scale(.95); }
.rv-ck { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: transparent; box-shadow: inset 0 0 0 1.5px var(--filet3); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s, transform .18s var(--sortie); }
.rv-ck:hover, .rv-ck:focus-visible { color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); } .rv-ck:active { transform: scale(.9); background: var(--accent); color: #fff; }
.rv-vide { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.rv-vide b { display: block; font-size: 14.5px; } .rv-vide small { font-size: 12.5px; color: var(--texte2); }
.rv-vide-ic { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(103,109,68,.14); color: var(--ok-t); flex: none; }
.rv-vide.jour .rv-vide-ic { color: var(--texte3); }
.rv-faits { margin: 0 2px; } .rv-faits .chip { height: 28px; padding: 0 11px; border-radius: 14px; font-size: 12.5px; background: var(--carte); box-shadow: inset 0 0 0 .5px var(--filet2); } .rv-faits .chip > .sf { color: var(--ok-t); }
.rv-dm { padding: 6px 16px; }
.rv-dl { position: relative; display: grid; grid-template-columns: 54px 14px 1fr; align-items: center; min-height: 52px; }
.rv-dl + .rv-dl { border-top: .5px solid var(--sep); }
.rv-h { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); }
.rv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-f); }
.rv-dt { min-width: 0; padding-left: 6px; } .rv-dt b { display: block; font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-dt small { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--texte2); }
.rv-fin { width: 100%; margin-top: 22px; height: 48px; border-radius: 24px; font-size: 15px; background: #1D1D1F; }
.rv-fin.fait { background: var(--remp2); color: var(--texte2); }
.tel-rv .rv-heros { padding: 18px 18px 18px 20px; border-radius: 22px; } .tel-rv .rv-gd { font-size: 44px; line-height: 48px; } .tel-rv .rv-gd small { font-size: 20px; } .tel-rv .rv-pc { font-size: 20px; }
.tel-rv { padding-bottom: 110px; } .tel-rv .rv-b { padding: 0 10px; height: 32px; } .tel-rv .rv-ck { width: 32px; height: 32px; }
/* entrée dans Planning, le soir */
.rv-entree { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; margin-bottom: 14px; border-radius: 18px; overflow: hidden; color: #fff; text-decoration: none;
  background: var(--carte); box-shadow: 0 6px 18px rgba(45,49,8,.16); }
.rv-entree .rv-e-ic { width: 38px; height: 38px; border-radius: 12px; background: transparent; color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.rv-entree .rv-e-t { flex: 1; min-width: 0; } .rv-entree b { display: block; font-size: 15px; } .rv-entree small { font-size: 12.5px; color: rgba(255,255,255,.75); }
.rv-entree .rv-e-go { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: 15px; background: #fff; color: #2D3108; font-size: 13px; font-weight: 700; flex: none; }
/* ---------- routines (0.1.31) ---------- */
.rt-intro { margin: 0 4px 12px; font-size: 13.5px; color: var(--texte2); }
.rt-l { display: flex; flex-direction: column; gap: 10px; }
.rt-c { display: flex; align-items: center; gap: 13px; width: 100%; padding: 13px 14px; text-align: left; border-radius: 18px; transition: transform .18s var(--sortie); }
.rt-c:active { transform: scale(.985); } .rt-c > .sf:last-child { color: var(--texte3); flex: none; }
.rt-ct { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; } .rt-ct b { font-size: 15.5px; font-weight: 600; } .rt-ct small { font-size: 12.5px; color: var(--texte2); }
.rt-hs { display: flex; flex-wrap: wrap; gap: 5px; } .rt-hs i { font-style: normal; height: 22px; padding: 0 8px; border-radius: 11px; background: var(--accent-f); color: var(--accent); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; }
.rt-ajout { width: 100%; margin-top: 18px; }
.rt-tete { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; }
.rt-tete input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 18px; font-weight: 600; letter-spacing: -.3px; color: var(--texte); outline: none; }
.rt-hb { padding: 6px 14px; border-radius: 18px; }
.rt-hg { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 8px; padding: 9px 0; } .rt-hg + .rt-hg { border-top: .5px solid var(--sep); }
.rt-hn { font-size: 12.5px; font-weight: 700; color: var(--texte2); }
.rt-hg .nt-chip { height: 30px; padding: 0 10px; font-variant-numeric: tabular-nums; }
.rt-jours { display: flex; gap: 8px; }
.rt-j { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; background: var(--remp2); color: var(--texte2); cursor: pointer; transition: background .2s, color .2s, transform .18s var(--sortie); }
.rt-j.on { background: var(--accent); color: #fff; } .rt-j:active { transform: scale(.92); }
.rt-res { display: flex; align-items: center; gap: 8px; margin-top: 20px; padding: 11px 14px; border-radius: 14px; background: var(--accent-f); color: var(--accent); font-size: 13.5px; font-weight: 600; }
body.tel .rt-hg { grid-template-columns: 1fr; gap: 6px; } body.tel .rt-j { width: 42px; height: 42px; }
.d.ar-best { height: 24px; padding: 0 9px; font-size: 12px; background: var(--sp50); color: var(--ok-t); border: .5px solid rgba(103,109,68,.15); } .d.ar-best .sf { color: var(--ok); }
.ar-cur { transition: opacity .2s; }
.nt-cal { width: 38px; height: 40px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 .5px var(--filet2), 0 1px 2px rgba(0,0,0,.04); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; overflow: hidden; margin-right: 12px; }
.nt-cal small { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: var(--err-t); line-height: 12px; }
.nt-cal b { font-size: 17px; line-height: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nt-dans { margin-left: auto; flex: none; height: 24px; padding: 0 9px; border-radius: 12px; display: inline-flex; align-items: center; background: var(--remp2); font-size: 12px; font-weight: 700; color: var(--texte2); }
.nt-dans.proche { background: rgba(142,142,147,.15); color: var(--att-t); }
.nt-dates .gl { min-height: 58px; }
.tel-rv .rv-b { width: 32px; padding: 0; justify-content: center; }
.ar-pt { transition: cx .25s var(--sortie), cy .25s var(--sortie), opacity .2s; }


/* ============================================================
   Charte 2 (validée le 10 nov.) : posée par-dessus le reste de la feuille
   But : ne plus « faire vibe codé ». Les coins arrondis ne changent pas (choix de Thomas).
   1. Surfaces plates : plus de nuages de dégradé décoratifs (sauf la barre latérale du Mac). La couleur sert aux données (anneau, courbes).
   2. La hiérarchie vient du texte : titres en minuscules (pas de petites capitales espacées), gros chiffres.
   3. Moins de pastilles : une variation = texte coloré + flèche ; un compteur = chiffre gris. Pastille seulement pour un vrai état à traiter.
   4. Icônes nues dans les listes (gris), sans carré teinté derrière. Carrés de couleur seulement dans Réglages (comme sur iPhone).
   5. Pas de carte dans une carte : les sous-totaux sont séparés par des filets.
   7. Les cartes ressortent un peu plus (ombre plus marquée).
   8. Une seule façon d'arrondir les courbes (R.lisse dans app.js).
   6. Le mouvement répond à une action (cocher, changer de vue), pas au chargement de chaque carte.
   ============================================================ */

/* 1. surfaces plates (la barre latérale du Mac garde son dégradé : choix de Thomas) */
.maint, .tel .maint, .ar-heros, .tel .ar-heros, .pr-hv, .feuille .pr-ins.tel .pr-hv { background: var(--carte) !important; }
.maint::after { display: none !important; }
.maint-an-gd { background: transparent !important; box-shadow: none !important; }
.app.connexion { background: var(--fond) !important; }
.rv-heros { background: var(--carte) !important; color: var(--texte) !important; box-shadow: var(--ombre) !important; border: .5px solid rgba(0,0,0,.06); }
.rv-etoiles { display: none !important; }
.rv-sur { color: var(--texte2) !important; } .rv-sur .sf { color: var(--accent) !important; }
.rv-gd small, .rv-ph { color: var(--texte2) !important; }
.rv-heros .anneau svg circle:first-of-type { stroke: var(--filet) !important; }
.rv-pc { color: var(--texte) !important; } .rv-pc small { color: var(--texte2) !important; }
.rv-ok-p { background: rgba(103,109,68,.12) !important; color: var(--ok-t) !important; }
.rv-fin { background: #1D1D1F !important; }
.rv-entree { background: var(--carte) !important; color: var(--texte) !important; box-shadow: var(--ombre) !important; border: .5px solid rgba(0,0,0,.06); }
.rv-entree .rv-e-ic { background: transparent !important; color: var(--accent) !important; width: 24px !important; }
.rv-entree small { color: var(--texte2) !important; }
.rv-entree .rv-e-go { background: #1D1D1F !important; color: #fff !important; }

/* 2. titres en minuscules */
.maint-sur, .rv-sur, .pl-sh, .reg .g-titre, .am-nom { text-transform: none !important; letter-spacing: 0 !important; font-size: 13px !important; font-weight: 600 !important; }

/* 3. moins de pastilles */
.d, .d.up, .d.dn, .d.st, .d.ar-dl, .d.ar-best { background: none !important; border: 0 !important; padding: 0 !important; height: auto !important; font-weight: 600 !important; }
.d.st { color: var(--texte2) !important; }
.d.ar-best { color: var(--texte2) !important; } .d.ar-best .sf { color: var(--ok) !important; }
.ar-af .af-n, .d.wa.af-n { background: none !important; color: var(--texte2) !important; padding: 0 !important; }
.nt-dans { background: none !important; padding: 0 !important; } .nt-dans.proche { color: var(--att-t) !important; }
.rt-hs i { background: none !important; color: var(--accent) !important; padding: 0 6px 0 0 !important; }

/* 4. icônes nues dans les listes */
.ar-ic { background: none !important; color: var(--texte2) !important; width: 22px !important; }
.dom { background: none !important; color: var(--texte2) !important; width: 22px !important; }
.rv-ic { background: none !important; }

/* 5. pas de carte dans une carte */
.ar-kpis { background: none !important; border: 0 !important; border-top: .5px solid var(--sep) !important; border-radius: 0 !important; padding: 14px 0 0 !important; }

/* 6. pas d'apparition en cascade au chargement */
[data-anim] { animation: none !important; }

/* 3 bis. étiquettes d'information en texte (pas en pastille) */
.chips.bas .chip, .chip.acc-enc { background: none !important; padding: 0 !important; height: auto !important; color: var(--texte2) !important; font-weight: 500 !important; }
.chip.acc-enc { color: var(--att-t) !important; font-weight: 600 !important; }
.chips.bas { gap: 14px !important; }

/* 5 bis. les 4 chiffres du tableau de bord : une seule carte partagée par des filets, pas 4 cartes */
.ar-tuiles { gap: 0 !important; background: var(--carte); border-radius: var(--r-carte); border: .5px solid rgba(0,0,0,.06); overflow: hidden; }
.ar-t { border: 0 !important; border-radius: 0 !important; background: none !important; }
.ar-t { border-right: .5px solid var(--sep) !important; } .ar-t:last-child { border-right: 0 !important; }   /* 3 chiffres sur une ligne (À encaisser est dans « À faire ») */

/* 7. ombres un peu plus marquées : les cartes et les pastilles se détachent du fond clair */
:root { --ombre: 0 1px 2px rgba(27,29,15,.05), 0 4px 16px rgba(27,29,15,.07); }
.carte, .ar-tuiles, .ar-heros, .maint, .rv-heros, .rv-entree, .rt-c { box-shadow: var(--ombre) !important; }
.chip-f, .btn-blanc, .btn-gris, .nt-chip, .rv-b { box-shadow: 0 1px 2px rgba(27,29,15,.06), 0 2px 6px rgba(27,29,15,.05); }
.chip-f.on, .nt-chip.on { box-shadow: 0 2px 8px rgba(27,29,15,.14); }
.nt-chip.on { box-shadow: inset 0 0 0 1.5px rgba(98,103,63,.35), 0 2px 8px rgba(98,103,63,.12); }

/* ---------- Mise en page (10 nov.) : moins de cases côte à côte sur l'Accueil et le Tableau de bord ----------
   Mac (1200 px et plus) : « Ensuite » (Accueil) et « À faire » (Tableau de bord) sont le panneau de droite, comme la fiche
   d'un produit dans Produits. Le reste = une seule grande carte partagée par des filets fins. Sur l'Accueil, « Maintenant »
   reste une carte à part, au-dessus. Plus étroit : l'ancienne grille de cartes.
   iPhone : le haut (Maintenant, Résultat) est posé sur la page ; les 4 petites cartes de l'Accueil = une seule carte à 4 cases. */
@media (min-width: 1200px) {
  body:not(.tel) .page-accueil, body:not(.tel) .page-ar { padding-right: 396px !important;}
  body:not(.tel) .acc-grille .ensuite, body:not(.tel) .ar-grille .ar-af { position: fixed !important; top: 56px; right: 0; bottom: 0; width: 376px; z-index: 2; border-radius: 0 !important; box-shadow: none !important; border: 0 !important; border-left: .5px solid rgba(0,0,0,.08) !important; background: #fff !important; padding: 20px 22px !important; overflow-y: auto;}
  body:not(.tel) .acc-grille, body:not(.tel) .ar-grille { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-template-rows: none !important; grid-auto-rows: auto !important; gap: 1px !important; background: var(--filet); border-radius: var(--r-carte); overflow: hidden; box-shadow: var(--ombre); border: .5px solid rgba(0,0,0,.06); align-content: start; flex: none !important;}
  body:not(.tel) .acc-grille > *:not(.ensuite), body:not(.tel) .ar-grille > *:not(.ar-af) { border-radius: 0 !important; box-shadow: none !important; border: 0 !important; background: var(--carte) !important;}
  body:not(.tel) .acc-grille .maint { grid-column: 1 / -1 !important; grid-row: auto !important;}
  body:not(.tel) .acc-grille .w { grid-column: auto !important; grid-row: auto !important; min-height: 230px;}
  body:not(.tel) .acc-grille .rem { grid-column: 1 / -1 !important; grid-row: auto !important;}
  body:not(.tel) .ar-grille .ar-heros, body:not(.tel) .ar-grille .ar-graph-c { grid-column: 1 / -1 !important; grid-row: auto !important;}
  body:not(.tel) .ar-grille .ar-graph-c { height: 290px;}
  body:not(.tel) .ar-grille .ar-tuiles, body:not(.tel) .ar-grille .ar-ou, body:not(.tel) .ar-grille .ar-liste { grid-column: auto !important; grid-row: auto !important;}
  body:not(.tel) .ar-grille .ar-tuiles { background: var(--carte) !important;}
  body:not(.tel) .ensuite > .wh, body:not(.tel) .ar-af > .wh { font-size: 17px; margin-bottom: 10px;}
  body:not(.tel) .ar-grille .ar-tuiles { grid-column: 1 / -1 !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; grid-template-rows: auto !important;}
  body:not(.tel) .ar-grille .ar-t { border-bottom: 0 !important; border-right: .5px solid var(--sep) !important;}
  body:not(.tel) .ar-grille .ar-t:last-child { border-right: 0 !important;}
  body:not(.tel) .ar-grille .ar-ou { grid-column: 1 / -1 !important;}
  body:not(.tel) .acc-grille { background: none !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; overflow: visible !important; gap: 0 !important;}
  body:not(.tel) .acc-grille::before { content: ''; grid-column: 1 / -1; grid-row: 2 / 5; background: var(--carte); border-radius: var(--r-carte); box-shadow: var(--ombre); border: .5px solid rgba(0,0,0,.06);}
  body:not(.tel) .acc-grille .maint { grid-row: 1 !important; margin-bottom: 14px; border-radius: var(--r-carte) !important; box-shadow: var(--ombre) !important; border: .5px solid rgba(0,0,0,.06) !important;}
  body:not(.tel) .acc-grille > .w, body:not(.tel) .acc-grille > .rem { position: relative; z-index: 1; background: transparent !important;}
  body:not(.tel) .acc-grille > .w:nth-child(3) { grid-row: 2 !important; grid-column: 1 !important; border-right: .5px solid var(--sep) !important; border-bottom: .5px solid var(--sep) !important;}
  body:not(.tel) .acc-grille > .w:nth-child(4) { grid-row: 2 !important; grid-column: 2 !important; border-bottom: .5px solid var(--sep) !important;}
  body:not(.tel) .acc-grille > .w:nth-child(5) { grid-row: 3 !important; grid-column: 1 !important; border-right: .5px solid var(--sep) !important; border-bottom: .5px solid var(--sep) !important;}
  body:not(.tel) .acc-grille > .w:nth-child(6) { grid-row: 3 !important; grid-column: 2 !important; border-bottom: .5px solid var(--sep) !important;}
  body:not(.tel) .acc-grille > .rem { grid-row: 4 !important; grid-column: 1 / -1 !important;}
}
.tel .maint, .tel .ar-heros { background: transparent !important; box-shadow: none !important; border: 0 !important; padding-left: 2px !important; padding-right: 2px !important;}
.tel .ar-heros .ar-rep { background: transparent !important; box-shadow: none !important; border: 0 !important; padding-left: 0 !important; padding-right: 0 !important;}
.tel .grille2 { gap: 1px !important; background: var(--filet); border-radius: var(--r-carte); overflow: hidden; box-shadow: var(--ombre); border: .5px solid rgba(0,0,0,.06);}
.tel .grille2 > .carte { border-radius: 0 !important; box-shadow: none !important; border: 0 !important;}
.tel .ar-tuiles .spark { display: none; }   /* iPhone : 3 chiffres sur une ligne, pas la place pour la mini-courbe */
@media (max-width: 1199px) { body:not(.tel) .ar-tuiles .spark { display: none; } }   /* Mac étroit : pareil */

/* ============================================================
   0.1.32 · corrections du test du 10 nov. (bugs visuels)
   ============================================================ */
.pr-rg-c.droite span, .pr-rg-t.droite { transform: translateX(-100%); }
.pr-rg-c.gauche span, .pr-rg-t.gauche { transform: none; }
.pr-in.pr-err, .pr-eur .pr-in.pr-err { box-shadow: 0 0 0 1.5px var(--err, #D36C72) inset; }
.pr-roi { font-size: 12px; font-weight: 600; color: var(--ok-t); white-space: nowrap; }
.pr-roi.neg { color: var(--err-t); }
.pr-cat.fige { cursor: default; }

/* ---------- bugs visuels du test (10 nov.) ---------- */
/* notifications : toute la largeur utile (iPhone : 201 px sur 402 avant) */
.toasts { width: max-content; max-width: calc(100vw - 32px); }
.toast { max-width: 100%; }
/* ligne « Rappels » d'une fiche d'élément (le style manquait) */
.el-rap { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 2px; font-size: 14px; font-weight: 600; text-align: left; }
.el-rap > .sf:first-child { color: var(--texte2); flex: none; }
.el-rap > span { flex: none; }
.el-rap > b { flex: 1; min-width: 0; text-align: right; font-weight: 500; color: var(--texte2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.el-rap > .sf:last-child { color: var(--texte3); flex: none; }
/* trombone discret à côté des boutons d'une fiche */
.el-pj { width: 44px; padding: 0 !important; justify-content: center; flex: none; cursor: pointer; }
.el-fic.aj { width: 32px; padding: 0; justify-content: center; }
/* Revue du soir (Mac) : la page ne change plus de largeur quand on coche */
.mac-rv { width: 100%; }
/* textes coupés : « … » au lieu d'un mot coupé net */
.it-t small, .it.av .it-t small { display: block !important; text-overflow: ellipsis; }
.it-t small > .sf { display: inline-block; vertical-align: -1px; margin-right: 4px; }
/* Accueil Mac : « Amélia a remarqué » sans grand vide */
@media (min-width: 1200px) { body:not(.tel) .acc-grille .rem { min-height: 0 !important; } }
/* fiche d'archive dans une feuille Mac : pas de cadre d'inspecteur */
.feuille .insp.tel, .feuille .insp { width: auto; border: 0; background: transparent; }
/* barre du bas iPhone : on ne lit plus le texte qui défile dessous */
.tabbar { background: rgba(250,251,252,.88) !important; -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: .5px solid rgba(0,0,0,.08); }
/* « Plus tard » dans À ranger : gris, pas une coche verte */
.rg-li.tard { opacity: .75; } .rg-li.tard .gris { color: var(--texte2); }
/* À ranger, Mac étroit : la ligne « Ensuite » passe à la ligne au lieu de s'écraser */
@media (max-width: 1199px) { .rg .pr-n { display: none; } .rg .pv.fixe { white-space: nowrap; } }
/* Radar 320 px : le nom de la plateforme ne touche plus l'interrupteur */
.rd-pf { gap: 10px; } .rd-pf > span, .rd-pf > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* Amélia : une pastille longue ne fait plus déborder le fil */
.agp { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
/* Planning Mac vide : pas de grosse icône verte à droite */
.insp.vide { color: var(--texte3) !important; }
/* police des champs : jamais de police de repli */
textarea, select, input, button { font: inherit; }
/* iPhone : champs à 16 px (sinon Safari zoome la page quand on touche le champ) */
body.tel .am-champ textarea, body.tel .rch input, body.tel .pr-rech input, body.tel .pr-in, body.tel select, body.tel input[type="search"], body.tel input[type="text"] { font-size: 16px !important; }
/* Mac 1000–1199 px : titres et sous-titres ne sont plus coupés par la barre d'outils */
@media (min-width: 1000px) and (max-width: 1199px) {
  .seg button { white-space: nowrap; }
  #tb-titre small, .tb-sous { display: none; }
  .pr-ins .pr-tt h2, .pr-ins h2 { font-size: 19px; line-height: 23px; }
}
/* Tableau de bord iPhone : le texte de l'anneau ne touche plus le cercle */
body.tel .anneau small, body.tel .ar-anneau small { font-size: 10px; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
/* Nouvel achat iPhone : les catégories passent à la ligne (rien de caché hors écran) */
body.tel .pr-cats { flex-wrap: wrap; overflow: visible; }
/* paysage iPhone : marges de l'encoche */
@media (orientation: landscape) and (max-height: 500px) { body.tel #contenu, body.tel .tabbar { padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); } }
/* écran de connexion sur un écran court : on peut faire défiler */
.cx { max-height: 100dvh; overflow-y: auto; }
/* « Réessayer » : on voit que ça travaille */
.btn-noir.attente { opacity: .6; pointer-events: none; }
.btn-noir.attente .sf { animation: tourne 1s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
/* fiche de cote : étiquettes dans la règle */
.pr-rg { overflow: visible; }

/* ============================================================
   0.1.32 · Charte 2, la suite : ce que le premier passage avait oublié
   (cartes dans des cartes, pastilles, carrés teintés, cascades, dégradés, contrastes, cibles 44 px)
   ============================================================ */
:root { --texte2: #6C6C70; --texte3: #8A8A8E; --filet: rgba(60,60,67,.12); }   /* 0.1.53 : gris pleins ; le secondaire à 5,1:1 sur blanc, le tertiaire pour les icônes et les petites mentions */   /* contraste ≥ 4,5:1 sur blanc (avant .6 = 3,4:1) */
.amelia-feuille { background: var(--fond) !important; }
body.tel .feuille.plus-feuille { background: rgba(250,251,252,.97) !important; }
.pl-ic { color: var(--texte2) !important; }

/* 1. une carte au lieu de plusieurs : les petites cases deviennent des colonnes séparées par des filets */
.cf-quatre, .pr-tri, .pr-trio, .cv-kk { gap: 0 !important; }
.cf-quatre div, .pr-tri div, .pr-trio div, .cv-kk div,
.feuille .pr-ins.tel .pr-trio div, .feuille .pr-ins.tel .pr-tri div, .feuille .pr-ins.tel .pr-blk .pr-tri div, .cv.tel .cv-kk div { background: none !important; border-radius: 0 !important; box-shadow: none !important; padding: 6px 12px !important; }
.cf-quatre div:nth-child(even) { border-left: .5px solid var(--filet); }
.cf-quatre div:nth-child(n+3) { border-top: .5px solid var(--filet); }
.pr-tri div + div, .pr-trio div + div, .cv-kk div + div { border-left: .5px solid var(--filet); }
.pr-tri div:first-child, .pr-trio div:first-child, .cv-kk div:first-child, .cf-quatre div:nth-child(odd) { padding-left: 0 !important; }
.cf-2t { gap: 0 !important; border-top: .5px solid var(--filet); padding-top: 4px; }
.cf-tu, .cf.tel .cf-tu, .cf-tu.ora, .cf.tel .cf-tu.ora { background: none !important; box-shadow: none !important; border-radius: 0 !important; padding: 8px 12px 8px 0 !important; }
.cf-tu + .cf-tu { border-left: .5px solid var(--filet); padding-left: 12px !important; }
.rd-salons { display: flex; flex-direction: column; }
.rd-salon, .rd-sal3.tel .rd-salon { background: none !important; border: 0 !important; border-radius: 0 !important; padding: 10px 0 !important; }
.rd-salon + .rd-salon { border-top: .5px solid var(--filet) !important; }
.ct-kpis { background: #fff; border-radius: var(--r-carte); border: .5px solid rgba(0,0,0,.06); box-shadow: var(--ombre); gap: 0 !important; overflow: hidden; }
.ct-kk { gap: 0 !important; }
.ct-t, .ct.tel .ct-t { background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
.ct-kpis > .ct-t + .ct-kk, .ct-kk > .ct-t + .ct-t, .ct-kpis > .ct-t + .ct-t { border-left: .5px solid var(--filet) !important; }
.ch-tuiles { background: #fff; border-radius: var(--r-carte); border: .5px solid rgba(0,0,0,.06); box-shadow: var(--ombre); gap: 0 !important; overflow: hidden; }
.ch-tuiles .ch-t, .ch-tuiles .ch-t.carte { background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
.ch-tuiles .ch-t + .ch-t { border-top: .5px solid var(--filet); }
.ch.tel .ch-tuiles .ch-t + .ch-t { border-top: 0; border-left: .5px solid var(--filet); }
/* Amélia : les chiffres d'une réponse en une seule carte à filets ; les rangées « avant → après » en filets */
.am-chiffres { gap: 0 !important; background: #fff; border-radius: 16px; border: .5px solid rgba(0,0,0,.06); box-shadow: var(--ombre); overflow: hidden; }
.am-ch { background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
.am-ch + .am-ch { border-left: .5px solid var(--filet); }
body.tel .am-chiffres .am-ch:nth-child(odd) { border-left: 0; } body.tel .am-chiffres .am-ch:nth-child(n+3) { border-top: .5px solid var(--filet); }
.agd { background: none !important; border-radius: 0 !important; padding: 10px 0 !important; border-top: .5px solid var(--filet); }

/* 2. pastilles : seulement pour un vrai problème. Variation = texte coloré + flèche ; compteur = chiffre gris */
.ch-delta, .ch-delta.bon, .ch-delta.mal, .cv-ecart, .cv-ecart.neg, .cv-ecart.pos, .rd-app, .rd-app.ok { background: none !important; padding: 0 !important; height: auto !important; border-radius: 0 !important; }
.rd-badge { background: none !important; color: var(--texte2) !important; min-width: 0; padding: 0 !important; }
.agk { background: none !important; padding: 0 !important; height: auto !important; color: var(--texte2) !important; letter-spacing: 0 !important; font-weight: 600 !important; }
.am-range-o { color: var(--texte2) !important; }
.pr-st { background: none !important; padding: 0 !important; height: auto !important; color: var(--texte2) !important; }
.pr-st.att, .pr-st[style*="att-t"] { color: var(--att-t) !important; }
.cf-acomp { background: none !important; padding: 0 !important; color: var(--att-t) !important; }

/* 3. icônes nues et grises dans les listes (les carrés de couleur restent dans Réglages) */
.ou-ti, .ou-ti.bleu, .ou-ti.vert, .ou-ti.gris, .ou-ti.orange, .ch-ic, .ch-ic.bleu, .pr-ic, .rg-idee-ic, .el-tl, .agt, .hr .ti, .am-range-ic, .rv-vide-ic, .rv-vide.jour .rv-vide-ic, .cf-tp .sf, .cf-tops .sf {
  background: none !important; color: var(--texte2) !important; box-shadow: none !important; }
.ou-ti.rouge { background: none !important; color: var(--err-t) !important; }
.ou-ti.orange { color: var(--att-t) !important; }
.ch-ic, .pr-ic, .ou-ti, .rg-idee-ic, .am-range-ic, .hr .ti { width: 22px !important; }
.reg .ou-ti, .reg .ch-ic, .nt .ou-ti { width: 30px !important; }
.el-tl, .agt { width: 28px !important; height: 28px !important; }
.rd-ico.ok, .rd-ico.pause, .rd-ico.off { background: var(--g200) !important; }

/* 4. surfaces plates : plus de nuages de dégradé décoratifs */
.ch-sugg, .cf-brouillon, .cf-am { background: #fff !important; }
.rond.grand, .bientot-ic { box-shadow: none !important; }
.cf-bar i, .pr-rg-z { background: #676D44 !important; }
.cf-b i.ca { background: rgba(22,24,29,.22) !important; }
.ch-barres i.on { background: #16181D !important; }

/* 5. pas d'apparition en cascade : le mouvement répond à un geste */
.ch-barres i, .cf-b i, .ar-barre i, .pr-split i, .cf-bar i, .pr-rg-z, .cf-split i, .spark-trait, .ar-trait.anim { animation: none !important; transform: none; opacity: 1; stroke-dashoffset: 0 !important; }

/* 6. cibles tactiles de 44 px (iPhone) sans changer le dessin */
body.tel .rv-b, body.tel .rv-ck, body.tel .tel-rv .rv-b, body.tel .tel-rv .rv-ck { min-height: 44px; min-width: 44px; }
body.tel .lk, body.tel .pr-plus, body.tel .cf-obj, body.tel .retour-h, body.tel .seg button, body.tel .ags button, body.tel .pr-chip, body.tel .chip-f,
body.tel .pr-plusrond, body.tel .gt-av, body.tel .cv-crayon, body.tel .cv-perm, body.tel .am-pj, body.tel .btn-noir.petit, body.tel .agp, body.tel .agv, body.tel .agg, body.tel .agre { position: relative; }   /* jamais sur un élément déjà placé (absolute) */
body.tel .lk::after, body.tel .pr-plus::after, body.tel .cf-obj::after, body.tel .retour-h::after, body.tel .pl-mod::after, body.tel .seg button::after, body.tel .ags button::after, body.tel .pr-chip::after, body.tel .chip-f::after,
body.tel .pr-plusrond::after, body.tel .gt-av::after, body.tel .cv-crayon::after, body.tel .cv-perm::after, body.tel .feuille-x.flottant::after, body.tel .am-pj::after, body.tel .btn-noir.petit::after,
body.tel .agp::after, body.tel .agv::after, body.tel .agg::after, body.tel .agre::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
body.tel .ct-p { height: 36px !important; }
/* 7. lisibilité : la plus petite étiquette fait 11 px */
.o-nom { font-size: 10.5px; } .onglet { color: var(--texte2); }
.ch-barres span, .cf-l, .cf-v, .cf.tel .cf-v, .cf.tel .cf-l { font-size: 11px !important; color: var(--texte2); }

.avatar { background: #16181D !important; }

/* Convertisseur : le drapeau du pays en emoji (seule exception emoji de la charte, voulue par Thomas le 10 nov.) */
.cv-drap { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; flex: none; font-size: 22px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", var(--police); }
.cv-drap.grand { width: 34px; height: 34px; font-size: 27px; }

/* 0.1.34 · annonce écrite à la main (titre et description modifiables) */
textarea.pr-txt { display: block; width: 100%; box-sizing: border-box; border: 0; outline: 0; resize: none; color: var(--texte); font-size: 13px; line-height: 19px; transition: box-shadow .15s; }
textarea.pr-txt.gras { overflow: hidden; }
textarea.pr-txt.long { height: 52vh; max-height: 52vh; }
textarea.pr-txt:focus { box-shadow: 0 0 0 2px rgba(181,188,147,.55); background: #fff; }

/* 0.1.36 · choses à heure fixe dans la liste (Planning › Dans l'ordre, Accueil › Ensuite) : l'heure à droite, pas de poignée */
.it .it-hr { color: var(--texte); font-weight: 700; }
.poignee.off { visibility: hidden; }
.nx-d.nx-hr { color: var(--texte); display: inline-flex; align-items: center; gap: 4px; }
.nx-d.nx-hr svg { opacity: .45; }

/* 0.1.37 · Amélia calcule (calcul.js, repris d'Alyss) : une carte, des filets, une seule courbe arrondie */
.cal { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 540px; }
.cal-carte { background: #fff; border-radius: 16px; border: .5px solid rgba(0,0,0,.06); box-shadow: var(--ombre); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cal-kpi { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 12px; }
.cal-lab { font-size: 12px; font-weight: 600; color: var(--texte2); }
.cal-val { font-size: 26px; font-weight: 700; letter-spacing: -0.6px; line-height: 32px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cal-var { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 600; color: var(--texte2); white-space: nowrap; }
.cal-var.pos { color: var(--ok-t); } .cal-var.neg { color: var(--err-t); }
.cal-mini-b { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; } .cal-mini-b small { font-size: 11px; color: var(--texte3); }
.cal-mini path { fill: none; stroke: var(--texte); stroke-width: 2; stroke-linecap: round; } .cal-mini circle { fill: var(--texte); }
.cal-l2 { font-size: 12.5px; color: var(--texte2); line-height: 18px; }
.cal-liste { display: flex; flex-direction: column; }
.cal-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.cal-ligne + .cal-ligne { border-top: .5px solid var(--filet); }
.cal-ln { display: flex; flex-direction: column; gap: 1px; min-width: 0; } .cal-ln b { font-size: 14.5px; font-weight: 600; } .cal-ln small { font-size: 12px; color: var(--texte2); line-height: 16px; }
.cal-lv { font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; } .cal-lv.neg { color: var(--err-t); }
.cal-barres { display: flex; flex-direction: column; gap: 9px; }
.cal-barre { display: grid; grid-template-columns: minmax(64px, 32%) 1fr auto; align-items: center; gap: 10px; font-size: 13.5px; }
.cal-barre:has(.cal-var) { grid-template-columns: minmax(64px, 28%) 1fr auto 68px; }
.cal-barre > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-barre i { height: 8px; border-radius: 4px; background: var(--filet); overflow: hidden; }
.cal-barre em { display: block; height: 100%; border-radius: 4px; background: #16181D; } .cal-barre em.t1 { background: #8E8E93; } .cal-barre em.t2 { background: #D1D1D6; }
.cal-barre b { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.cal-courbe svg { width: 100%; height: 96px; display: block; } .cal-courbe path { fill: none; stroke: var(--texte); stroke-width: 2; vector-effect: non-scaling-stroke; }
.cal-axe { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--texte3); margin-top: 2px; }
.cal-cases.am-chiffres .am-ch b { font-size: 17px; line-height: 22px; }
.cal-plus { display: flex; gap: 16px; padding-left: 2px; } .cal-plus button { font-size: 12.5px; font-weight: 600; color: var(--texte2); } .cal-plus button.on { color: var(--accent); }
.cal-zone .cal-liste { background: #fff; border-radius: 16px; border: .5px solid rgba(0,0,0,.06); padding: 2px 14px; }
.cal-aide { font-size: 15px; line-height: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--texte); }
.cal-aide ol, .cal-aide ul { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.cal-aide code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; background: rgba(0,0,0,.05); padding: 1px 5px; border-radius: 5px; }
.cal-src { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 2px; } .cal-src a { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--accent); font-weight: 600; }
.am-note { font-size: 12px; color: var(--texte3); }
body.tel .cal-val { font-size: 24px; } body.tel .cal-barre:has(.cal-var) { grid-template-columns: minmax(56px, 30%) 1fr auto; } body.tel .cal-barre .cal-var { display: none; }
body.tel .cal-cases.am-chiffres { grid-template-columns: repeat(3, 1fr); } body.tel .cal-cases.am-chiffres.n2 { grid-template-columns: repeat(2, 1fr); }
body.tel .cal-cases .am-ch:nth-child(n+3) { border-top: 0; } body.tel .cal-cases .am-ch + .am-ch { border-left: .5px solid var(--filet); }
body.tel .cal-cases.am-chiffres .am-ch b { font-size: 15px; line-height: 20px; } body.tel .cal-barres + .cal-l2 { display: none; }

/* 0.1.38 · Radar « Salons en plus » : une liste (icône · nom · interrupteur) au lieu de 3 colonnes ; les lignes se partagent la hauteur de la carte (plus de vide dessous) ; filets entre les lignes seulement */
.rd-sal3, .rd-sal3.tel { display: flex !important; flex-direction: column; gap: 0 !important; flex: 1; }
.rd-salon, .rd-sal3.tel .rd-salon { flex: 1; flex-direction: row !important; align-items: center; gap: 12px !important; min-height: 44px; padding: 6px 0 !important; }
.rd-salon b, .rd-sal3.tel .rd-salon b { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; }
.rd-salon .ou-ti, .rd-sal3.tel .rd-salon .ou-ti { width: 28px; height: 28px; }
.rd-salons .rd-ct { margin-bottom: 2px; }
.rd-sal3.tel { padding: 0 14px; border-radius: 14px; overflow: hidden; }
.rd-sal3.tel .rd-salon { min-height: 46px; } .rd-sal3.tel .rd-salon b { font-size: 15px; }
/* Amélia : sans conversation, le bouton « Ce qu'Amélia a fait » prend la place du crayon (pas de trou à côté de la croix) */
.feuille-x.am-hist { transition: opacity .3s, background .2s, right .45s var(--ressort); }
.amelia-feuille.am-vide .am-hist { right: 52px; }
.rd-sal3.tel .rd-salon + .rd-salon { border-top: .5px solid var(--filet) !important; }

/* ===== 0.1.38 · audit iPhone (13 nov.) : Accueil, Planning, Revue, Réglages, Plus, fiches ===== */
.reg > .carte + .carte { margin-top: 20px; }
.reg > p.lab.centre { margin-top: 10px; }
body.tel .retour-h + .grand-titre { padding-top: 6px; }
body.tel .rv-pc small { display: inline; max-width: none; overflow: visible; font-size: 12px; }
.tel-rv { padding-bottom: 0; }
body.tel .rv-b, body.tel .rv-ck, body.tel .tel-rv .rv-b, body.tel .tel-rv .rv-ck { min-height: 0; min-width: 0; position: relative; }
body.tel .rv-b::after, body.tel .rv-ck::after { content: ''; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
.rv-b { box-shadow: none !important; }
.rv-vide { padding: 14px 12px; gap: 11px; } .rv-vide-ic { width: 22px !important; height: 22px; }
.it-t small b { display: inline; font-size: inherit; white-space: normal; overflow: visible; }
.el-fiche.tel .el-act > .large { flex: 1 1 auto; min-width: 0; padding: 0 12px; white-space: nowrap; }
.el-fiche.tel .el-act > .el-pj { flex: 0 0 42px; width: 42px; padding: 0 !important; }
.el-bh + .vi-barre { margin-bottom: 8px; }
.wh > .sf:first-child, .sec > .sf:first-child, .el-bh > .sf:first-child { width: 18px; }
.pl-dep svg { width: 11px; height: 7px; }
.pl-moi .avatar { width: 28px !important; height: 28px !important; margin: 0 -2px; font-size: 13px; }
.pile.av > .sec:first-child { margin-top: 6px; }
.pile > .sec { margin-bottom: 0; }
body.tel .chips-h { padding-right: 40px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.tabbar { height: calc(80px + env(safe-area-inset-bottom)); }
.tel .contenu { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.imprevu.flottant { bottom: calc(100px + env(safe-area-inset-bottom)); }
body.tel .feuille { background: var(--g50) !important; }
.vi.vi-taches > .vi-taches { flex-direction: row; align-items: center; }
body.tel .feuille.plus-feuille { background: var(--g50) !important; }
body.tel .toasts { top: calc(env(safe-area-inset-top) + 52px); }
@media (max-height: 700px) { body.tel .imprevu.flottant > span:not(.ami) { display: none; } body.tel .imprevu.flottant { left: auto; width: 50px; } }
.pl-apercu .m > .sf { height: 18px; width: 22px; }
.tel .pr { padding: 0; } .pv > .dom { width: 16px !important; height: 16px !important; }
.insp.tel .btn-gris { box-shadow: none; }

/* ===== 0.1.38 · audit iPhone : Pièces et Charges ===== */
.pr-fcorps > * { flex-shrink: 0; }
body.tel .feuille.pr-form { padding-bottom: 0; }
.feuille .pr-ins.tel .pr-blk .pr-tri div:first-child { padding-left: 0 !important; }
.ch.tel .ch-tuiles .ch-t + .ch-t { border-left: .5px solid var(--filet) !important; }
.ch.tel .ch-mrow .n { margin-top: 0; letter-spacing: normal; } .ch.tel .ch-mrow > b, .ch.tel .ch-mrow > .n, .ch.tel .ch-mrow > .m { line-height: 20px; }
.pr-rw .pr-ic, .pc-ch .pr-ic, .pc-af .pr-ic, .pr-vp .pr-ic { width: 30px !important; }
.pr-ic.gd { width: 40px !important; }
body.tel .feuille.pr-form:not(.pc-p) .pr-shf { margin: 0 12px calc(10px + env(safe-area-inset-bottom)); padding: 10px 14px; border-top: 0; border-radius: 18px; box-shadow: 0 6px 24px rgba(19,20,7,.12); }
body.tel .feuille.pr-form .pr-shf > .pr-esp { display: none; }
body.tel .feuille.pr-form:not(.pc-p) .pr-shf > span[data-sum] { display: contents; }
body.tel .ch-form .ch-ln .pr-in.ch-rempli { height: 32px; padding: 0 10px; }
body.tel .ch-form .ch-ln .pr-eur .pr-in.ch-rempli { padding-right: 28px; } body.tel .ch-form .ch-ln .pr-eur:has(.ch-rempli) i { right: 10px; }
.feuille .pr-ins.tel .pr-titre { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ch.tel .ch-st { margin: 6px 2px -4px; }
.pc-ftel .pr-lr .pr-in[name=prix] { flex: 0 1 auto; width: 8ch; }
.ch-q-in { text-overflow: ellipsis; }
.ch-form .am-pjs.vu { margin: -4px 0 0; }
.ch-fiche .ch-flds .pr-fld { padding: 9px 0; font-size: 15px; } .ch-fiche .ch-flds .pr-fld + .pr-fld { box-shadow: 0 -.5px 0 var(--filet2); }
body.tel .pr-shf:not(:has(.pr-sum, button)) { display: none; }
.pr-nav .ok.rouge { color: var(--err-t); }
.nw { white-space: nowrap; }
.el-ad .nw { display: inline; }

/* ===== 0.1.38 · audit iPhone : Chiffres et Outils ===== */
.cf-col.on .cf-l, .cf.tel .cf-col.on .cf-l { color: #fff !important; }
.cf-col.on .cf-v, .cf.tel .cf-col.on .cf-v { color: var(--accent) !important; }
.cf-v.neg, .cf.tel .cf-v.neg { color: var(--err-t) !important; }
.cf.tel .cf-col { padding-top: 11px; } .cf-pt { top: 3px; left: 50%; margin-left: -2.5px; }
.cf-rp { border-radius: 0; } .cf-rp + .cf-rp { box-shadow: none; border-top: .5px solid var(--filet); }
@media (hover: none) { .cf-rp.clic:hover { background: none; } }
.cf.tel .cf-2t .cf-tu + .cf-tu { padding-left: 12px !important; }
body.tel .feuille.pr-form.cf-petit { top: auto; }
.cf-topt > span:first-child { width: 20px; justify-content: center; flex: none; }
.ct-h.tel span:nth-child(3) { text-align: center; }
.ct-h.tel, .ct-l1 { grid-template-columns: minmax(0, 1fr) 58px 112px 64px; }
@media (max-width: 389px) { .ct-h.tel, .ct-l1 { grid-template-columns: minmax(0, 1fr) 56px 104px 60px; gap: 4px; } .ct.tel .ct-p { width: 48px; padding: 0 2px; } }
.cv.tel .cv-kk div:first-child { padding-left: 0 !important; }
body.tel .pr-eur.gros .pr-in { font-size: 24px !important; }
.cf-rpl { display: flex; flex-direction: column; min-width: 0; } .cf-rpl b { font-weight: 600; } .cf-rpl .d { margin-left: 0; font-size: 12px; }
.cf.tel .cf-urssaf .cf-2b button { background: var(--g200); box-shadow: none; }
body.tel .rd-pin::before { content: ''; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; transform: translate(-50%, -50%); }
body.tel .rd-poi::before { content: ''; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
body.tel .rd-retour { position: relative; } body.tel .rd-retour::after { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 44px; transform: translateY(-50%); }
.cf-fr { -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px); mask-image: linear-gradient(90deg, transparent, #000 14px); }
.cf.tel .cf-urssaf { padding: 14px; }
body.tel .ct-p:focus { box-shadow: none; }
@media (hover: none) { .ct-p:hover { background: transparent; } }
.cv.tel .cv-dev { width: 108px; gap: 6px; }
.cf.tel .cf-sec { margin: 6px 15px 0; } .cv.tel .cv-autres { padding: 14px 14px 6px; }
body.tel .cf-rxn small { white-space: normal; }
body.tel .cf-note-f textarea { resize: none; }
.rd-now { z-index: 0; } .rd-pin { z-index: 2; }
.rd-plist .rd-prod + .rd-prod { box-shadow: none; border-top: .5px solid var(--filet); }

/* ===== 0.1.38 · audit iPhone : Amélia, Tableau de bord, Produits ===== */
.agd .l { flex: 1 0 auto; white-space: nowrap; }
.agok .ck svg { position: static; width: auto; height: auto; }
.feuille .pr-ins.tel .pr-ell { margin-right: 0; position: absolute; top: 14px; right: 52px; }
.feuille .pr-ins.tel .pr-tri div:first-child, .feuille .pr-ins.tel .pr-trio div:first-child { padding-left: 0 !important; }
body.tel .anneau small { max-width: 54px; }
.am-ch + .am-ch { border-left: .5px solid var(--filet) !important; }
body.tel .am-chiffres .am-ch:nth-child(odd) { border-left: 0 !important; }
body.tel .am-chiffres .am-ch:nth-child(n+3) { border-top: .5px solid var(--filet) !important; }
body.tel .am-chiffres:not(.n1) .am-ch:last-child:nth-child(odd) { grid-column: 1 / -1; }
body.tel .amelia-feuille .feuille-x.flottant { top: 31px; }
body.tel .pc-dem:has(> span.pc-x:empty) { grid-template-columns: 34px minmax(0, 1fr) 40px 76px; } .pc-dem > span.pc-x:empty { display: none; }
body.tel .feuille.pr-annonce .pr-sht { margin-top: -18px; padding-top: 4px; }
.pr-actions .pr-as { margin-top: 18px; }
.pr-as button { position: relative; } .pr-as button > .sf:first-child:not(:only-child) { position: absolute; left: 18px; }
body.tel .feuille.pr-form { top: max(50px, calc(env(safe-area-inset-top) + 10px)); }
body.tel .el-lieu { flex-wrap: wrap; align-items: flex-start; } body.tel .el-lieu .btn-gris { margin-left: 46px; }
.tel .ar-heros .ar-leg { display: grid; grid-template-columns: 1fr 1fr; }
.pr-plus { margin-top: 14px; }
.amelia-feuille.am-j.am-vide .am-tete { border-color: var(--sep); }
.am-champ textarea { scroll-padding-top: 10px; }
.feuille .pr-ins.tel .pr-hv { border: 0; box-shadow: none; padding: 12px 14px; }

/* ===== 0.1.39 · fiche d'un rendez-vous (et des rappels) : même dessin que la fiche d'un élément (icône nue, tableau à filet, bords à 22 px) ===== */
.nt-feuille:not(.rt-feuille) .nt-tete { gap: 12px; }
.nt-feuille:not(.rt-feuille) .nt-tete .nt-tl { width: 28px !important; height: 28px; border-radius: 0; background: none !important; color: var(--texte2) !important; display: flex; align-items: center; justify-content: center; flex: none; }
.nt-feuille:not(.rt-feuille) .nt-tete h2 { font-size: 21px; line-height: 26px; letter-spacing: -.4px; }
.nt-feuille:not(.rt-feuille) .nt-tete .lab { font-size: 13px; }
.nt-feuille:not(.rt-feuille) .nt-rangs { margin-top: 16px; background: transparent !important; box-shadow: none !important; border: .5px solid rgba(0,0,0,.1); border-radius: 16px; }
.nt-feuille:not(.rt-feuille) .nt-rg { min-height: 40px; padding: 0 14px; font-size: 13px; }
.nt-feuille:not(.rt-feuille) .nt-rg span { font-weight: 600; }
body.tel .nt-feuille:not(.rt-feuille) .feuille-corps { padding-left: 22px; padding-right: 22px; }

/* ===== 0.1.39 · derniers points de l'audit iPhone ===== */
/* Stats : les 3 chiffres du haut en une seule carte à filets */
.cf-tuiles.tel { gap: 0; background: #fff; border-radius: var(--r-carte); border: .5px solid rgba(0,0,0,.06); box-shadow: var(--ombre); overflow: hidden; }
.cf-tuiles.tel .cf-t, .cf-tuiles.tel .cf-t.carte { background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
.cf-tuiles.tel .cf-t + .cf-t { border-left: .5px solid var(--filet) !important; }
/* Radar › Horaires : Début / Fin faciles à toucher */
body.tel .rd-sel select { height: 44px; padding-left: 64px; font-size: 16px; }
/* Routines : les 6 durées en 2 lignes de 3 */
.nt-chips.rt-durees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nt-chips.rt-durees > * { justify-content: center; }
/* menus (⋯, catégorie, Reçu…) : la poignée et le fond suffisent pour fermer, plus de croix qui dépasse */
body.tel .feuille.pr-actions .feuille-x { display: none; }
body.tel .pr-actions .pr-as { margin-top: 8px; }
/* Annonce pas encore générée : feuille compacte */
body.tel .feuille.pr-annonce:has(.pr-vide-an) { top: auto; }

/* 0.1.41 : menus du Mac, icône dans une case de largeur fixe (les textes restent alignés, ex. Piège / Astuce) */
.pr-menu .mn-ic { width: 18px; flex: none; display: flex; justify-content: center; }


/* ============================================================
   Charte 3 (validée le 13 nov., 0.1.43) : fond blanc partout, cadres seulement quand il y a plusieurs blocs
   1. Le fond de l'app devient blanc (#FFFFFF). La barre latérale du Mac garde son dégradé.
   2. Pages à plusieurs blocs (Accueil, tableaux de bord, Chiffres, Charges, Outils, Réglages) :
      les cartes restent, blanches avec l'ombre douce de la Charte 2.
   3. Un bouton-action seul (Revue du soir, Un imprévu ?) garde son cadre, même sur une page sans cadre.
   4. Pages à un seul sujet (listes et tableaux : Planning, Produits, Pièces, Cote des prix,
      Élèves, Paiements, Formation) : pas de cadre, le contenu est posé sur le fond, séparé par des filets.
   5. Les panneaux de côté (fiche à droite, Ensuite, À faire, liste d'À ranger) : gris très clair + filet, pour qu'on voie qu'ils sont à part.
   ============================================================ */
:root { --fond: #FFFFFF; }

/* 3. un seul sujet : pas de cadre */
.page-aujourdhui .carte, .page-ar-produits .carte, .page-ar-pieces .carte, .page-outil-cote .carte,
[class*="page-acc-eleves"] .carte, .page-acc-chiffrespaiements .carte, .page-acc-formation .carte,
.page-acc-formation .fp-c, .page-outil-cote .ct-kpis, .page-acc-chiffrespaiements .ak-ptuiles {
  background: transparent !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important;
}

/* les rangées de chiffres, sans cadre : un filet dessous les sépare de la liste */
.page-outil-cote .ct-kpis, .page-acc-chiffrespaiements .ak-ptuiles { border-bottom: .5px solid var(--sep) !important; }
.page-acc-formation .fp-c { border-top: .5px solid var(--sep) !important; padding-left: 0 !important; padding-right: 0 !important; }
/* À ranger garde ses cartes : chaque idée est une carte qu'on traite l'une après l'autre */

/* 5. panneaux de côté : gris très clair (comme l'inspecteur des apps Apple) + filet */
body:not(.tel) .insp, body:not(.tel) .pr-ins, body:not(.tel) .fo-pan, body:not(.tel) .rg-liste { background: var(--g100) !important; }
@media (min-width: 1200px) {
  body:not(.tel) .acc-grille .ensuite, body:not(.tel) .ar-grille .ar-af { background: var(--g100) !important; }
}

/* lignes des tableaux sans cadre : filets droits (les coins arrondis faisaient de petites cases) */
.page-ar-produits .pr-tr, .page-ar-pieces .pr-tr, [class*="page-acc-eleves"] .pr-tr, .page-acc-chiffrespaiements .pr-tr { border-radius: 0 !important; }


/* ============================================================
   0.1.44 · barre latérale : « Chiffres » (Achat-revente, Accompagnement) et « Finances » (Vie perso)
   se déplient comme « Outils » ; repliée avec la page dedans, la ligne du groupe est marquée
   ============================================================ */
.si.dep .chev { transform: rotate(-90deg); } .si.dep .chev.ouvert { transform: none; }
.si.dep.dedans { font-weight: 600; } .si.dep.dedans .sic { color: var(--accent); }

/* ===== 0.1.47 · Tableaux de bord du Mac en Charte 3 (Achat-revente et Accompagnement), validé par Thomas le 14 nov. :
   le haut (résultat + anneau) reste une carte avec son ombre ; tout le reste est posé sur le fond, séparé par des filets. ===== */
@media (min-width: 1200px) {
  body:not(.tel) .ar-grille:not(.ak-as) { background: transparent !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; overflow: visible !important; gap: 0 !important; }
  body:not(.tel) .ar-grille:not(.ak-as) > *:not(.ar-af) { background: transparent !important; }
  body:not(.tel) .ar-grille:not(.ak-as) .ar-heros { background: var(--carte) !important; box-shadow: var(--ombre) !important; border: .5px solid rgba(0,0,0,.06) !important; border-radius: var(--r-carte) !important; margin-bottom: 18px; }
  body:not(.tel) .ar-grille:not(.ak-as) .ar-tuiles { background: transparent !important; box-shadow: none !important; }
  body:not(.tel) .ar-grille:not(.ak-as) .ar-t:first-child { padding-left: 2px !important; }
  body:not(.tel) .ar-grille:not(.ak-as) > .ar-graph-c, body:not(.tel) .ar-grille:not(.ak-as) > .ar-ou, body:not(.tel) .ar-grille:not(.ak-as) > .ar-liste { border-top: .5px solid var(--sep) !important; padding-left: 2px !important; padding-right: 2px !important; }
  body:not(.tel) .ar-grille:not(.ak-as) > .ar-liste + .ar-liste { border-left: .5px solid var(--sep) !important; padding-left: 20px !important; }
}
/* 0.1.47 · Indy (compte pro) : une ligne grise, en bas d'« À faire » (Mac) ou à côté du sur-titre (iPhone) */
.indy-b { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 14px; padding: 10px 2px 0; border-top: .5px solid rgba(0,0,0,.08); font-size: 12.5px; color: var(--texte2); text-align: left; }
.indy-b b { font-weight: 600; color: var(--texte2); font-variant-numeric: tabular-nums; }
.indy-b small { margin-left: auto; font-size: 11.5px; } .indy-b small.att { color: var(--att-t); }
.indy-s { color: var(--texte3); font-weight: 500; font-variant-numeric: tabular-nums; } .indy-s.att { color: var(--att-t); }
.tel .gt-sur .indy-s { display: inline-block; padding: 8px 0; margin: -8px 0; }
.pro-f { display: flex; align-items: center; gap: 12px; padding: 4px 0 12px; } .pro-f .t { flex: 1; min-width: 0; } .pro-f .t b { display: block; font-size: 15px; } .pro-f .t small { font-size: 12.5px; color: var(--texte2); }
.pro-f .v { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pro-act { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; } .pro-act button { display: inline-flex; align-items: center; gap: 7px; }

/* ===== Fiche d'un produit vendu : une seule couleur (0.1.49, validé par Thomas le 14 nov.). Le vert reste pour le bénéfice et sa part de la barre ;
   plus de bleu ni de 2e et 3e vert : ROI en gris, coût de la barre en gris, étapes en gris foncé. Perte : rouge, comme avant. ===== */
.pr-roi { color: var(--texte2) !important; } .pr-roi.neg { color: var(--err-t) !important; }
.pr-split i:first-child { background: var(--remp3) !important; }
.pr-split i:last-child { background: var(--ok-t) !important; }
/* 0.1.52 : couleurs pleines (avant : transparentes, on voyait le trait passer à travers les ronds) */
.pr-pe.ok i { background: #7C7C81 !important; }
.pr-pe.ok::before { background: #C3C3C7 !important; }
.pr-pe::before { background: var(--g400); }
.pr-pe:not(.ok) i { background: #fff !important; box-shadow: inset 0 0 0 1.5px #C3C3C7; }
body:not(.tel) .pr-ins .pr-pe:not(.ok) i { background: var(--g100) !important; }

/* essai palette */
.si-pilule { background: rgba(255,255,255,.86) !important; box-shadow: 0 .5px 2px rgba(45,49,8,.10), 0 0 0 .5px rgba(45,49,8,.05) !important; } .si.on .sic { color: #474C24 !important; }

/* 0.1.53 · barre du haut : tout ce qui change la page est à droite, dans le même ordre (vue, période, mois, recherche, bouton) */
.tb-outils:has(.ct-cat) { justify-content: flex-end; }

/* ===== 0.1.53 · après l'audit des agents ===== */
/* Stats Mac : les 4 chiffres en une seule carte à filets (comme l'iPhone) */
.cf-tuiles:not(.tel) { gap: .5px; background: var(--filet); border-radius: var(--r-carte); border: .5px solid rgba(0,0,0,.06); box-shadow: var(--ombre); overflow: hidden; }
.cf-tuiles:not(.tel) .cf-t, .cf-tuiles:not(.tel) .cf-t.carte { background: #fff !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
/* barre des feuilles iPhone (Annuler / OK) : 44 px pour le doigt, sans changer le dessin */
.pr-nav button { min-height: 44px; padding: 0 8px; margin: 0 -8px; }
/* fiche d'un élément (Mac 1000 px) : les boutons du bas ne se coupent plus */
.el-act { flex-wrap: wrap; } .el-act > .large { flex: 1 1 0; min-width: 0; }
/* Notifications : panneau de côté gris, comme les autres panneaux */
.nt-panneau { background: var(--g100); border: 0; box-shadow: none; }
/* Revue du soir iPhone : Demain et Fait plus faciles à toucher, sans changer le dessin */
.tel-rv .rv-b, .tel-rv .rv-ck { position: relative; }
.tel-rv .rv-b::after, .tel-rv .rv-ck::after { content: ''; position: absolute; inset: -6px -4px; }
.tel-rv .rv-ck { margin-left: 6px; }
/* Amélia iPhone : micro / envoyer et croix d'un fichier joint à 44 px de zone tactile */
body.tel .am-micro { width: 44px; height: 44px; border-radius: 22px; }
.am-fic button { position: relative; } .am-fic button::after { content: ''; position: absolute; inset: -12px; }
/* rouge sur un fond qui n'est pas blanc (ligne choisie, panneau gris) : un cran plus foncé pour rester lisible (≥ 4,5:1) */
:root { --err-t2: #A7444D; }
.pr-tr.sel .rouge, .insp .rouge, .ak-panneau .rouge, [class*="panneau"] .rouge, .sel .rouge { color: var(--err-t2); }
/* Radar : les repères de la frise se touchent au doigt (zone de 44 px) */
.rd-pin::after { content: ''; position: absolute; inset: -17px; }
/* fiche d'une pièce (iPhone) : le « … » ne se pose plus sur « Mettre en vente » (la règle de la fiche produit ne la touche plus) */
.feuille.pc-fiche .pr-ins.tel .pr-ell { position: relative; top: auto; right: auto; margin-right: 40px; }
/* Cote des prix iPhone : 16 px dans les prix, sinon Safari agrandit la page à chaque toucher */
body.tel .ct-p { font-size: 16px; }
/* Recherche : on voit quand le champ est actif */
.pr-rech:focus-within { box-shadow: 0 0 0 2px var(--bn800); }
/* Questions des élèves, Mac sous 1200 px : les 3 chiffres sur toute la largeur, sans s'étirer en hauteur */
@media (max-width: 1199px) { .mac .ak-as .ar-tuiles, .mac .ak-grille .ar-tuiles { grid-column: 1 / -1; align-self: start; } }
/* Stats (Mac) : le menu de catégorie dans la barre du haut */
.tb-outils .cf-catb { margin: 0; } .tb-outils .cf-cat { height: 30px; box-shadow: none; }
/* Mac sous 1200 px : le titre de la page reste lisible quand la barre du haut est chargée (Registres) */
@media (max-width: 1199px) { .tb-t { min-width: 84px; } .tb-outils { min-width: 0; } .tb-outils .seg button, .tb-outils .pr-mseg button { padding-left: 9px; padding-right: 9px; } }
/* 0.1.55 · les dernières petites cibles iPhone (mesurées par l'audit) : zone de 44 px, dessin inchangé */
body.tel .pr-cat, body.tel .btn-gris.petit, body.tel .btn-blanc.petit, body.tel .pr-mseg button, body.tel .cf-bascule, body.tel .ct-vers button, body.tel .cv-per button { position: relative; }
body.tel .feuille-x:not(.flottant):not(.am-nouv):not(.am-hist), body.tel .pr-ell:not([style*=absolute]) { position: relative; }
body.tel .pr-cat::after, body.tel .btn-gris.petit::after, body.tel .btn-blanc.petit::after, body.tel .pr-mseg button::after, body.tel .cf-bascule::after,
body.tel .ct-vers button::after, body.tel .cv-per button::after, body.tel .feuille-x::after, body.tel .pr-ell::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
/* Planning (Mac) : les filtres collés à la liste qu'ils filtrent */
.sec.sec-f { display: flex; align-items: center; } .sec.sec-f .seg { margin-left: auto; text-transform: none; letter-spacing: 0; }
/* Archives : icônes nues en gris ; une tâche archivée n'a pas d'effet au survol */
.arch-ic { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: var(--texte2); flex: none; }
.it.av.fixe { cursor: default; } .it.av.fixe:hover { background: none; } .it.av.fixe:active { transform: none; }
/* Routine (feuille) : « Enregistrer » toujours visible, collé en bas */
.rt-act { position: sticky; bottom: 0; z-index: 2; background: #fff; padding-top: 10px; padding-bottom: 10px; box-shadow: 0 -.5px 0 var(--filet); }
/* Bilans iPhone : Résultat | Trésorerie sous le titre, comme le Tableau de bord */
.cf-tete .cf-mode { margin-top: 8px; }
/* Convertisseur : repères de valeur à droite ; au survol le gros chiffre suit le point et la date s'affiche dessous */
.cv-reps { position: absolute; right: 0; top: 0; bottom: 0; width: 13%; pointer-events: none; }
.cv-reps span { position: absolute; right: 0; transform: translateY(-50%); font-size: 11px; font-weight: 600; color: var(--texte3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cv-quand-s { margin-top: 2px; }
/* Radar : produit coupé = son niveau de négociation n'a plus d'effet, il est grisé */
.rd-seg button:disabled { opacity: .4; cursor: default; } .rd-seg button.on:disabled { background: transparent; box-shadow: none; }
.cv-fic { background: none; width: 28px; color: var(--texte2); }   /* icône nue (carrés de couleur : seulement dans Réglages) */
/* Accompagnement (0.1.55) : points des paiements sans anneau blanc sur le panneau gris ; filet en trop des feuilles en lecture ;
   « Pas encore d'élève » sans cadre ; « Publié » en gris (l'état normal n'est pas coloré) ; icônes des spécialisations dans l'échelle */
body:not(.tel) .pr-ins .ak-cr > i { box-shadow: 0 0 0 3px var(--g100); }
body:not(.tel) .pr-ins .ak-cr.att > i { box-shadow: inset 0 0 0 2px var(--att), 0 0 0 3px var(--g100); }
.ak-lect .cf-ln:first-child { border-top: 0; padding-top: 0; }
.ak-el-vide { background: none; box-shadow: none; border: 0; }
.fp-et.pub { color: var(--texte2); font-weight: 500; }
.spe-ic button { background: var(--remp2); color: var(--texte); }
.ak-an-gris svg circle:last-of-type, .ak-an-gris svg path { stroke: #C3C3C7 !important; }
.feuille:focus { outline: none; }   /* la feuille prend le focus à l'ouverture (lecteur d'écran, clavier) sans cadre visible */
/* 0.1.56 · bannière « Notifications coupées sur cet appareil » (iPhone remis sur l'écran d'accueil, autorisation perdue) */
.nt-coupe { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 24px); padding: 8px 8px 8px 14px; border-radius: 22px; background: #fff; box-shadow: 0 8px 28px rgba(27,29,15,.16), 0 0 0 .5px rgba(0,0,0,.08); font-size: 13.5px; font-weight: 600; }
.nt-coupe > .sf { color: var(--texte2); } .nt-coupe span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-coupe-x { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--texte2); position: relative; }
.nt-coupe-x::after { content: ''; position: absolute; inset: -6px; }
body:not(.tel) .nt-coupe { bottom: 24px; }

/* ---------- 0.1.57 · petits points des rapports ---------- */
/* idée d'Amélia sur une carte proposée (span, on ne la touche pas) : grise ; le bouton (fiche d'un élément) garde le bleu nuit */
span.el-idee { border-color: var(--filet3); color: var(--texte2); background: transparent; }
span.el-idee .sf { color: var(--texte3); }
/* adresse d'un lieu sur iPhone étroit : « Plans » passe dessous au lieu de couper l'adresse mot par mot */
@media (max-width: 400px) { body.tel .el-ad { flex: 1 1 calc(100% - 46px); } }

/* Tableau de bord Accompagnement, Mac sous 1200 px : « À faire » (ce qu'on doit traiter) juste après les 3 chiffres, avant la courbe */
@media (max-width: 1199px) {
  body:not(.tel) .ak-grille:not(.ak-as) > * { order: 3; }
  body:not(.tel) .ak-grille:not(.ak-as) > .ar-heros { order: 0; }
  body:not(.tel) .ak-grille:not(.ak-as) > .ar-tuiles { order: 1; }
  body:not(.tel) .ak-grille:not(.ak-as) > .ar-af { order: 2; grid-column: 1 / -1; }
  body:not(.tel) .ak-grille:not(.ak-as) > .ar-ou { grid-column: 1 / -1; }
}
/* Questions des élèves, Mac 1200 px et plus : comme les Tableaux de bord (0.1.47) : les 3 chiffres posés sur le fond,
   « À traiter » et « Échanges » séparés par des filets (plus de grande carte) ; le panneau de droite ne change pas */
@media (min-width: 1200px) {
  body:not(.tel) .ar-grille.ak-as { background: transparent !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; overflow: visible !important; }
  body:not(.tel) .ar-grille.ak-as > *:not(.ar-af) { background: transparent !important; box-shadow: none !important; border-radius: 0 !important; }
  body:not(.tel) .ar-grille.ak-as .ar-tuiles { background: transparent !important; box-shadow: none !important; border: 0 !important; }
  body:not(.tel) .ar-grille.ak-as .ar-t:first-child { padding-left: 2px !important; }
  body:not(.tel) .ar-grille.ak-as > .ar-ou { border: 0 !important; border-top: .5px solid var(--sep) !important; padding-left: 2px !important; padding-right: 2px !important; }
}
