/* SNEKKER · Chantiers. Refonte du 05/11/2026 (Paul) : barre latérale en dégradé bleu nuit vers bleu électrique,
   fond clair neutre, cartes blanches, une seule famille de bleus (SNEKKER #224D73 → électrique #2563EB),
   rouge / orange / vert réservés aux états. Mouvements lents et souples, jamais brusques. Manrope. */

@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('/fonts/manrope-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bleu: 34 77 115;           /* #224D73, la couleur de SNEKKER */
  --bleu-fonce: 22 52 82;
  --elec: 37 99 235;           /* #2563EB, le bleu électrique du dégradé */
  --accent: 34 77 115;         /* texte et icônes d'accent */
  --encre: 16 24 40;
  --encre-2: 71 84 103;
  --gris: 102 112 133;
  --filet: 230 234 240;
  --toile: 244 246 250;
  --carte: 255 255 255;
  --creux: 241 244 248;        /* fond des petites zones dans une carte */
  --rouge: 217 45 32;
  --orange: 194 86 4;
  --ambre: 247 144 9;
  --vert: 3 140 80;
  --degrade: linear-gradient(165deg, #0E2742 0%, #1B4369 38%, #224D73 58%, #2160D8 100%);
  --degrade-heros: linear-gradient(118deg, #102C4A 0%, #224D73 42%, #2563EB 100%);
  --ombre: 0 1px 2px rgba(16,24,40,.04), 0 0 0 1px rgb(var(--filet));
  --ombre-haute: 0 0 0 1px rgb(var(--filet)), 0 22px 44px -22px rgba(16,24,40,.32);
  --doux: cubic-bezier(.16,1,.3,1);
  --ressort: cubic-bezier(.34,1.4,.64,1);
}

[x-cloak] { display: none !important; }
* { box-sizing: border-box; }
/* Taille de base : suit le plus petit de la largeur et de la hauteur. Sur un écran Windows mis à l'échelle (125 à 150 %),
   la fenêtre est moins haute qu'on croit : tout doit tenir sans être zoomé (Paul, 05/11). */
html { font-size: clamp(14.5px, min(0.88vw, 1.85vh), 17px); -webkit-text-size-adjust: 100%; }
html, body { height: 100%; margin: 0; }
body { font-family: 'Manrope', system-ui, -apple-system, sans-serif; background: rgb(var(--toile)); color: rgb(var(--encre)); letter-spacing: -0.008em;
  font-size: .9375rem; line-height: 1.5; overflow: hidden; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }


/* ================================ Cadre ================================ */
.app { display: flex; height: 100vh; height: 100dvh; }
.rail { width: 14.5rem; flex-shrink: 0; position: relative; z-index: 40; }
.side { position: absolute; top: 1rem; bottom: 1rem; left: 1rem; width: 12.75rem; border-radius: 1.5rem; background: var(--degrade); color: #fff;
  display: flex; flex-direction: column; overflow: hidden; isolation: isolate; box-shadow: 0 24px 48px -26px rgba(14,39,66,.85); }
.side::before { content: ''; position: absolute; inset: auto -30% -18% -30%; height: 55%; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 60% at 60% 70%, rgba(96,165,250,.38), transparent 70%); }
.side::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.side-logo { display: flex; align-items: center; padding: 1.2rem 1.2rem 0; height: 3.8rem; }
.side-logo img { height: 2.15rem; width: auto; }
.side nav { position: relative; flex: 1; margin-top: 1.2rem; padding: 0 .7rem; display: flex; flex-direction: column; gap: .1rem; }
.nav-ind { position: absolute; left: .7rem; right: .7rem; top: 0; height: 0; border-radius: .95rem; background: #fff; z-index: 0; pointer-events: none;
  box-shadow: 0 12px 26px -14px rgba(0,0,0,.55);
  transition: top .65s var(--doux), height .65s var(--doux), opacity .3s ease; }
.nav-btn { position: relative; z-index: 1; display: flex; align-items: center; gap: .85rem; width: 100%; border-radius: .85rem; padding: .6rem .85rem;
  font-size: .95rem; font-weight: 500; color: rgba(255,255,255,.78); transition: color .5s ease, background-color .35s ease; }
.nav-btn:hover { color: #fff; }
.nav-btn .ic { display: inline-flex; transition: transform .55s var(--ressort); }
.nav-btn:hover .ic { transform: scale(1.12) rotate(-6deg); }
.nav-btn.actif { color: rgb(34 77 115); font-weight: 600; background: #fff; }
nav.ind-pret .nav-btn.actif { background: transparent; }
.nav-compte { margin-left: auto; min-width: 1.6rem; height: 1.6rem; padding: 0 .4rem; border-radius: .55rem; display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; background: rgba(255,255,255,.16); color: #fff; transition: background-color .5s ease, color .5s ease; }
.nav-btn.actif .nav-compte { background: rgb(var(--rouge) / .1); color: rgb(var(--rouge)); }
.side .survol { background: rgba(255,255,255,.09); border-radius: .95rem; }

/* Profil en bas : photo, nom, flèche ; le menu s'ouvre vers le haut */
.profil { position: relative; padding: .7rem; }
.profil-btn { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .55rem .65rem .55rem .55rem; border-radius: 1.05rem; color: #fff;
  background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); transition: background-color .35s ease; }
.profil-btn:hover, .profil-btn[aria-expanded="true"] { background: rgba(255,255,255,.15); }
.av-moi { width: 2.35rem; height: 2.35rem; border-radius: 999px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FFFFFF, #D6E4F7); color: rgb(34 77 115); font-weight: 700; font-size: .85rem; letter-spacing: .02em;
  box-shadow: 0 0 0 2px rgba(255,255,255,.35); overflow: hidden; }
.av-moi img { width: 100%; height: 100%; object-fit: cover; }
.profil-nom { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; font-weight: 700; font-size: .95rem; text-align: left; }
.profil-nom > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profil-nom .nom { font-weight: 500; font-size: .88rem; color: rgba(255,255,255,.8); }
.profil-btn:focus-visible, .nav-btn:focus-visible { outline: 2px solid rgba(255,255,255,.7); outline-offset: 2px; }
.profil-btn:focus:not(:focus-visible) { outline: none; }
.profil-chev { display: inline-flex; transition: transform .45s var(--doux); opacity: .85; }
.profil-btn[aria-expanded="true"] .profil-chev { transform: rotate(180deg); }
.profil-menu { position: absolute; left: .8rem; right: .8rem; bottom: calc(100% - .3rem); background: rgb(var(--carte)); color: rgb(var(--encre)); border-radius: 1.05rem; padding: .35rem;
  box-shadow: 0 0 0 1px rgb(var(--filet)), 0 24px 48px -16px rgba(0,0,0,.45); z-index: 5; transform-origin: 50% 100%; }
.pm-in { transition: opacity .3s ease, transform .45s var(--doux); }
.pm-out { transition: opacity .18s ease, transform .2s ease; }
.pm-depart { opacity: 0; transform: translateY(8px) scale(.97); }
.pm-el { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .7rem .75rem; border-radius: .75rem; font-weight: 500; transition: background-color .25s ease; }
.pm-el:hover { background: rgb(var(--creux)); }
.pm-el .ic { color: rgb(var(--encre-2)); display: inline-flex; }
.pm-el .interrupteur { margin-left: auto; }
.pm-sep { height: 1px; background: rgb(var(--filet)); margin: .3rem .4rem; }
.pm-el.sortie { color: rgb(var(--rouge)); } .pm-el.sortie .ic { color: rgb(var(--rouge)); }

main { flex: 1; min-width: 0; overflow-y: auto; scrollbar-gutter: stable; padding: 1rem 1.75rem 3rem 1.25rem; }
main::-webkit-scrollbar { width: 10px; }
main::-webkit-scrollbar-thumb { background: rgb(var(--gris) / .35); border-radius: 999px; border: 3px solid rgb(var(--toile)); }
.page { max-width: 118rem; margin: 0 auto; }
.tete-mobile { display: none; }

/* Changement d'écran : l'écran se pose doucement, puis ses cartes une à une */
.ecran { animation: vue .3s var(--doux) both; }
@keyframes vue { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.ecran .carte, .ecran .colonne, .ecran .jour-col { animation: carte .34s var(--doux) both; }
.ecran .grille > :nth-child(2), .ecran .colonnes > :nth-child(2) { animation-delay: .03s; }
.ecran .grille > :nth-child(3), .ecran .colonnes > :nth-child(3) { animation-delay: .06s; }
@keyframes carte { from { opacity: 0; transform: translateY(16px) scale(.99); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ================================ En-tête de page ================================ */
/* Même hauteur pour le titre et les outils : leur haut tombe pile sur le haut de la barre latérale. */
.entete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; min-height: 2.9rem; margin-bottom: 1.25rem; }
.titre { font-size: 1.85rem; font-weight: 700; letter-spacing: -0.03em; line-height: 2.9rem; display: flex; align-items: center; gap: .7rem; }
.outils { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }

/* ================================ Cartes ================================ */
.carte { background: rgb(var(--carte)); border-radius: 1.25rem; box-shadow: var(--ombre); }
.carte-tete { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.15rem 1.4rem .5rem; }
.carte-titre { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.015em; }
.grille { display: grid; gap: 1rem; }
.g2 { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.pile { display: flex; flex-direction: column; gap: 1rem; }
.mt { margin-top: 1rem; }
.compteur { min-width: 1.75rem; height: 1.75rem; padding: 0 .55rem; border-radius: .6rem; background: rgb(var(--bleu) / .1); color: rgb(var(--accent)); font-size: .85rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.vide { padding: 2rem 1.4rem; text-align: center; color: rgb(var(--encre-2)); }
.vide .grand { font-size: 1.05rem; color: rgb(var(--encre)); font-weight: 600; }

/* ================================ Boutons, pastilles, champs ================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border-radius: 999px; padding: .6rem 1.15rem; font-size: .9rem; font-weight: 600;
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease, transform .2s ease; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-plein { background: linear-gradient(135deg, rgb(var(--bleu)), rgb(var(--elec))); color: #fff; box-shadow: 0 8px 18px -10px rgb(var(--elec) / .8); }
.btn-plein:hover { box-shadow: 0 12px 24px -10px rgb(var(--elec) / .9); filter: brightness(1.06); }
.btn-doux { background: rgb(var(--creux)); color: rgb(var(--encre)); }
.btn-doux:hover { background: rgb(var(--filet)); }
.btn-trait { background: rgb(var(--carte)); color: rgb(var(--encre)); box-shadow: inset 0 0 0 1px rgb(var(--filet)); }
.btn-trait:hover { box-shadow: inset 0 0 0 1px rgb(var(--accent) / .45); color: rgb(var(--accent)); }
.btn-lien { color: rgb(var(--accent)); font-weight: 600; padding: .35rem .2rem; }
.btn-lien:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn-petit { padding: .4rem .85rem; font-size: .84rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-outlook { background: #0F6CBD; color: #fff; }
.btn-outlook:hover { background: #115EA3; }

.badge { display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; padding: .2rem .65rem; font-size: .8rem; font-weight: 600; white-space: nowrap; line-height: 1.35; }
.badge.rouge { background: rgb(var(--rouge) / .1); color: rgb(var(--rouge)); }
.badge.orange { background: rgb(var(--ambre) / .16); color: rgb(var(--orange)); }
.badge.vert { background: rgb(var(--vert) / .12); color: rgb(var(--vert)); }
.badge.bleu { background: rgb(var(--bleu) / .1); color: rgb(var(--accent)); }
.badge.gris { background: rgb(var(--creux)); color: rgb(var(--encre-2)); }
.badge.plein-rouge { background: rgb(var(--rouge)); color: #fff; }

.seg { display: inline-flex; background: rgb(var(--carte)); border-radius: 999px; padding: .25rem; gap: .1rem; position: relative; box-shadow: var(--ombre); height: 2.9rem; align-items: center; }
.seg button { position: relative; z-index: 1; height: 100%; padding: 0 1.05rem; border-radius: 999px; font-size: .9rem; font-weight: 600; color: rgb(var(--encre-2)); transition: color .45s ease; white-space: nowrap; }
.seg button:hover { color: rgb(var(--encre)); }
.seg button.actif { color: #fff; }
.seg .seg-ind { position: absolute; top: .25rem; bottom: .25rem; border-radius: 999px; background: linear-gradient(135deg, rgb(var(--bleu)), rgb(var(--elec))); z-index: 0;
  box-shadow: 0 8px 18px -10px rgb(var(--elec) / .8); transition: left .55s var(--doux), width .55s var(--doux); }
.seg > .survol { border-radius: 999px; background: rgb(var(--creux)); }

.inp { width: 100%; background: rgb(var(--carte)); border: 1px solid rgb(var(--filet)); border-radius: .8rem; padding: .65rem .85rem; font-size: .92rem; outline: none;
  transition: box-shadow .2s, border-color .2s; }
.inp:focus { border-color: rgb(var(--accent)); box-shadow: 0 0 0 3px rgb(var(--accent) / .16); }
.lbl { display: block; font-size: .85rem; font-weight: 600; color: rgb(var(--encre-2)); margin-bottom: .35rem; }
.recherche { position: relative; }
.recherche > span:first-child { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: rgb(var(--accent)); display: inline-flex; pointer-events: none; }
.recherche .inp { height: 2.9rem; padding-left: 2.6rem; border-radius: 999px; border: 0; box-shadow: var(--ombre); }
.recherche .inp:focus { box-shadow: 0 0 0 2px rgb(var(--accent) / .5); }
.interrupteur { width: 2.7rem; height: 1.55rem; border-radius: 999px; background: rgb(var(--gris) / .35); position: relative; transition: background-color .35s ease; flex-shrink: 0; }
.interrupteur::after { content: ''; position: absolute; top: .175rem; left: .175rem; width: 1.2rem; height: 1.2rem; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .45s var(--ressort); }
.interrupteur.on { background: linear-gradient(135deg, rgb(var(--bleu)), rgb(var(--elec))); }
.interrupteur.on::after { transform: translateX(1.15rem); }
.puce-x { width: 2rem; height: 2rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: rgb(var(--encre-2)); transition: background-color .2s, color .2s; flex-shrink: 0; }
.puce-x:hover { background: rgb(var(--creux)); color: rgb(var(--encre)); }
.ch-fleche { color: rgb(var(--gris)); display: inline-flex; transition: transform .45s var(--doux), color .3s ease; }

/* Une étiquette de métier : on reconnaît d'un coup d'œil ossature, prise de cotes, portes, huisseries */
.metier { display: inline-flex; align-items: center; gap: .4rem; border-radius: .55rem; padding: .22rem .55rem .22rem .4rem; font-size: .82rem; font-weight: 600;
  background: rgb(var(--bleu) / .08); color: rgb(var(--accent)); white-space: nowrap; }
.metier svg { width: 15px; height: 15px; }
.metier.rouge { background: rgb(var(--rouge) / .09); color: rgb(var(--rouge)); }
.metier.orange { background: rgb(var(--ambre) / .15); color: rgb(var(--orange)); }

/* La source : le compte rendu et sa page (pièce juridique, 48 h pour contester) */
.source { display: inline-flex; align-items: center; gap: .45rem; margin-top: .6rem; padding: .32rem .75rem .32rem .55rem; border-radius: 999px; font-size: .84rem; font-weight: 600;
  background: rgb(var(--creux)); color: rgb(var(--encre-2)); transition: background-color .3s ease, color .3s ease, transform .3s var(--doux); }
.source:hover { background: rgb(var(--bleu) / .1); color: rgb(var(--accent)); transform: translateX(2px); }

/* ================================ Aujourd'hui ================================ */
.heros { position: relative; overflow: hidden; isolation: isolate; border-radius: 1.5rem; padding: 1.7rem 1.9rem 1.6rem; color: #fff; background: var(--degrade-heros);
  box-shadow: 0 24px 48px -28px rgb(var(--elec) / .9); animation: carte .9s var(--doux) both; }
.heros-fond { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.heros-fond i { position: absolute; border-radius: 999px; will-change: transform; background: rgba(255,255,255,.055); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.16); }
.heros-fond i:nth-child(1) { width: 24rem; height: 24rem; right: -5rem; top: -12rem; animation: derive1 24s ease-in-out infinite alternate; }
.heros-fond i:nth-child(2) { width: 15rem; height: 15rem; right: 10rem; bottom: -10rem; background: rgba(255,255,255,.04); animation: derive2 28s ease-in-out infinite alternate; }
.heros-fond i:nth-child(3) { width: 9rem; height: 9rem; left: 38%; top: -5.5rem; background: rgba(255,255,255,.035); animation: derive3 32s ease-in-out infinite alternate; }
.heros-fond svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; opacity: .1; }
.heros-fond svg path { animation: vague 16s ease-in-out infinite alternate; }
.heros-fond svg path + path { animation-duration: 21s; animation-direction: alternate-reverse; }
@keyframes derive1 { to { transform: translate(-7rem, 4rem) scale(1.08); } }
@keyframes derive2 { to { transform: translate(-6rem, -2rem) scale(1.1); } }
@keyframes derive3 { to { transform: translate(5rem, 2rem) scale(1.15); } }
@keyframes vague { to { transform: translateX(-4%); } }
.heros-haut { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.heros-titre { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.heros-date { margin-top: .3rem; color: rgba(255,255,255,.82); font-size: 1rem; font-weight: 500; }
.heros-badge { background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); border-radius: 999px; padding: .35rem .9rem; font-size: .84rem; font-weight: 600; white-space: nowrap; }
.salut { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.12em; transform-origin: 70% 75%; animation: salut 1.6s ease-in-out .45s 2; }
@keyframes salut { 0% { transform: rotate(0); } 10% { transform: rotate(16deg); } 20% { transform: rotate(-8deg); } 30% { transform: rotate(16deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(12deg); } 60%, 100% { transform: rotate(0); } }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin-top: 1.6rem; }
.kpi { position: relative; text-align: left; border-radius: 1.15rem; padding: 1rem 1.1rem 1.05rem; color: #fff; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  backdrop-filter: blur(6px); transition: background-color .5s var(--doux), color .5s var(--doux), transform .6s var(--doux), box-shadow .6s var(--doux); }
.kpi .n { display: block; font-size: 2.3rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; transition: transform .6s var(--ressort); transform-origin: left bottom; }
.kpi .l { display: block; margin-top: .5rem; font-size: .92rem; font-weight: 600; color: rgba(255,255,255,.85); transition: color .5s ease; }
.kpi-ic { position: absolute; top: .9rem; right: .9rem; width: 2.25rem; height: 2.25rem; border-radius: .75rem; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.15); color: #fff; transition: transform .6s var(--ressort), background .5s ease, color .5s ease; }
.kpi:hover { background: #fff; color: rgb(34 77 115); transform: translateY(-5px); box-shadow: 0 22px 40px -18px rgba(5,20,45,.6); }
.kpi:hover .l { color: rgb(71 84 103); }
.kpi:hover .n { transform: scale(1.06); }
.kpi:hover .kpi-ic { background: linear-gradient(135deg, #224D73, #2563EB); color: #fff; transform: scale(1.1) rotate(-8deg); }
.kpi.alerte { background: #fff; color: rgb(var(--rouge)); box-shadow: none; }
.kpi.alerte .l { color: rgb(var(--rouge) / .85); }
.kpi.alerte .kpi-ic { background: rgb(var(--rouge) / .1); color: rgb(var(--rouge)); }
.kpi.alerte:hover { background: rgb(var(--rouge)); color: #fff; }
.kpi.alerte:hover .l { color: rgba(255,255,255,.9); }
.kpi.alerte:hover .kpi-ic { background: rgba(255,255,255,.2); color: #fff; }

/* À décider aujourd'hui */
.decisions { padding: .2rem 0 .5rem; }
.decision { display: grid; grid-template-columns: 4.1rem minmax(0, 1fr) auto; gap: 1.05rem; align-items: start; padding: 1.05rem 1.4rem; border-top: 1px solid rgb(var(--filet));
  max-height: 40rem; transition: background-color .3s ease, opacity .45s ease .3s, max-height .5s var(--doux) .35s, padding .5s ease .35s, transform .5s var(--doux) .3s; }
.decision:first-child { border-top: 0; }
.decision:hover { background: rgb(var(--creux) / .55); }
.decision.fini { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateX(18px); overflow: hidden; }
.vignette { position: relative; width: 4.1rem; height: 4.1rem; border-radius: 1rem; overflow: hidden; display: block; flex-shrink: 0; }
.vignette img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--doux); }
.decision:hover .vignette img, .ch-el:hover .vignette img { transform: scale(1.07); }
.vignette.petite { width: 3.2rem; height: 3.2rem; border-radius: .85rem; }
.decision-titre { font-size: 1.06rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
.decision-titre::first-letter { text-transform: uppercase; }
.decision-ch { margin-top: .15rem; font-size: .92rem; color: rgb(var(--encre-2)); font-weight: 500; }
.decision-etat { display: flex; align-items: flex-start; gap: .55rem; margin-top: .55rem; font-size: .92rem; line-height: 1.45; }
.decision-etat .badge { margin-top: .05rem; }
.decision-tir { margin-top: .4rem; font-size: .92rem; color: rgb(var(--encre)); }
.decision-tir b { font-weight: 700; }
.decision-droite { display: flex; flex-direction: column; align-items: flex-end; gap: .7rem; }
.coche-rond { width: 2.5rem; height: 2.5rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: rgb(var(--gris));
  transition: background-color .3s ease, transform .25s ease, color .3s ease; }
.coche-rond:hover { background: rgb(var(--vert) / .1); color: rgb(var(--vert)); }
.coche-rond:active { transform: scale(.9); }
.coche-rond svg { overflow: visible; }
.coche-rond .cr-cercle { fill: transparent; stroke: currentColor; stroke-width: 1.6; transition: fill .4s ease, stroke .4s ease; }
.coche-rond .cr-check { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .45s var(--doux); }
.coche-rond:hover .cr-check { stroke-dashoffset: 0; opacity: .6; }
.coche-rond.on { color: #fff; }
.coche-rond.on .cr-cercle { fill: rgb(var(--vert)); stroke: rgb(var(--vert)); }
.coche-rond.on .cr-check { stroke-dashoffset: 0; opacity: 1; transition-delay: .12s; }

/* Les prochains passages (colonne de droite) */
.agenda { padding: .3rem .8rem .9rem; }
.ag-el { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; gap: .9rem; align-items: center; width: 100%; padding: .7rem .6rem; border-radius: 1rem;
  transition: background-color .3s ease, transform .5s var(--doux); animation: carte .8s var(--doux) both; animation-delay: calc(var(--k, 0) * 60ms + .15s); }
.ag-el:hover { background: rgb(var(--creux)); transform: translateX(3px); }
.ag-date { width: 3.2rem; height: 3.4rem; border-radius: .9rem; background: rgb(var(--creux)); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.ag-date .j { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: rgb(var(--accent)); }
.ag-date .n { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ag-el.rouge .ag-date { background: rgb(var(--rouge) / .09); } .ag-el.rouge .ag-date .j { color: rgb(var(--rouge)); }
.ag-el.orange .ag-date { background: rgb(var(--ambre) / .14); } .ag-el.orange .ag-date .j { color: rgb(var(--orange)); }
.ag-txt { min-width: 0; display: flex; flex-direction: column; }
.ag-txt .d { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-txt .ch { font-size: .87rem; color: rgb(var(--encre-2)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-plus { display: flex; justify-content: center; padding: .3rem 0 .2rem; }

/* ================================ Planning ================================ */
.semaine-grille { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .9rem; align-items: start; }
.jour-col { background: rgb(var(--carte)); border-radius: 1.25rem; box-shadow: var(--ombre); padding: .8rem .7rem .85rem; animation-delay: calc(var(--j, 0) * 70ms) !important; }
.jour-tete { display: flex; align-items: center; gap: .55rem; padding: .15rem .45rem .75rem; }
.jour-tete .jn { font-size: .95rem; color: rgb(var(--encre-2)); font-weight: 600; }
.jour-tete .jd { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.jour-tete .compteur { margin-left: auto; }
.jour-col.auj .jour-tete .jd { color: #fff; background: linear-gradient(135deg, rgb(var(--bleu)), rgb(var(--elec))); border-radius: .75rem; min-width: 2.2rem; height: 2.2rem;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.jour-col.passe { opacity: .55; }
.jour-liste { display: flex; flex-direction: column; gap: .55rem; }
.jour-vide { padding: 1rem .45rem; font-size: .9rem; color: rgb(var(--encre-2)); }
.pcarte { display: flex; flex-direction: column; gap: .45rem; width: 100%; text-align: left; padding: .65rem; border-radius: 1rem; background: rgb(var(--creux) / .7);
  box-shadow: inset 3px 0 0 transparent; transition: background-color .35s ease, transform .55s var(--doux), box-shadow .45s ease;
  animation: carte .8s var(--doux) both; animation-delay: calc(var(--j, 0) * 70ms + var(--k, 0) * 40ms); }
.pcarte:hover { background: rgb(var(--carte)); transform: translateY(-3px); box-shadow: 0 0 0 1px rgb(var(--filet)), 0 16px 28px -16px rgba(16,24,40,.35); }
.pcarte-ch { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.pcarte-ch img { width: 1.7rem; height: 1.7rem; border-radius: .5rem; object-fit: cover; flex-shrink: 0; }
.pcarte .d { font-size: .92rem; font-weight: 700; line-height: 1.3; }
.pcarte .ch { font-size: .86rem; color: rgb(var(--encre-2)); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcarte-pied { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; font-size: .84rem; font-weight: 600; }
.pcarte-pied .quand { color: rgb(var(--encre)); font-variant-numeric: tabular-nums; }
.pcarte-motif { font-size: .84rem; line-height: 1.35; color: rgb(var(--rouge)); font-weight: 500; }
.pcarte.rouge { background: rgb(var(--rouge) / .06); box-shadow: inset 3px 0 0 rgb(var(--rouge)); }
.pcarte.orange { background: rgb(var(--ambre) / .08); box-shadow: inset 3px 0 0 rgb(var(--ambre)); }
.pcarte.orange .pcarte-motif { color: rgb(var(--orange)); }

/* ================================ Commandes ================================ */
.colonnes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.colonne { background: rgb(var(--carte) / .6); border-radius: 1.35rem; padding: .85rem; box-shadow: var(--ombre); }
.colonne-tete { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.05rem; padding: .25rem .35rem .85rem; }
.colonne-tete .pt { width: .65rem; height: .65rem; border-radius: 999px; }
.colonne-tete .pt.orange { background: rgb(var(--ambre)); } .colonne-tete .pt.bleu { background: rgb(var(--elec)); } .colonne-tete .pt.vert { background: rgb(var(--vert)); }
.colonne-tete .compteur { margin-left: auto; }
.cmd-carte { background: rgb(var(--carte)); border-radius: 1.1rem; overflow: hidden; box-shadow: var(--ombre); margin-bottom: .85rem;
  transition: transform .6s var(--doux), box-shadow .5s ease; animation: carte .8s var(--doux) both; animation-delay: calc(var(--k, 0) * 60ms + .1s); }
.cmd-carte:hover { transform: translateY(-4px); box-shadow: var(--ombre-haute); }
.cmd-photo { position: relative; height: 9.5rem; overflow: hidden; }
.cmd-photo img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; transition: transform .9s var(--doux); }
.cmd-carte:hover .cmd-photo img { transform: scale(1.05); }
.cmd-photo .badge { position: absolute; top: .7rem; left: .7rem; background: #fff; color: #161614; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.cmd-photo .badge.rouge { background: rgb(var(--rouge)); color: #fff; } .cmd-photo .badge.orange { background: rgb(var(--ambre)); color: #fff; } .cmd-photo .badge.vert { background: rgb(var(--vert)); color: #fff; }
.cmd-corps { padding: .9rem 1rem 1rem; }
.cmd-titre { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.cmd-ch { color: rgb(var(--encre-2)); font-size: .9rem; font-weight: 500; margin-top: .15rem; }
.cmd-ligne { color: rgb(var(--encre)); font-size: .9rem; margin-top: .45rem; }
.cmd-oui-non { display: flex; flex-direction: column; align-items: stretch; gap: .35rem; margin-top: .85rem; }
.cmd-oui-non .btn-lien { align-self: center; color: rgb(var(--encre-2)); font-size: .9rem; }
.colonne-vide { text-align: center; color: rgb(var(--encre-2)); font-size: .92rem; padding: 1.5rem .5rem; }

/* ================================ Comptes rendus ================================ */
.crl { display: flex; flex-direction: column; }
.crl-tete, .crl-el { display: grid; grid-template-columns: minmax(14rem, 1.1fr) 9.5rem minmax(0, 2fr) 1.5rem; gap: 1.2rem; align-items: center; }
.crl-tete { padding: .9rem 1.4rem .6rem; font-size: .85rem; font-weight: 600; color: rgb(var(--encre-2)); border-bottom: 1px solid rgb(var(--filet)); }
.crl-el { width: 100%; text-align: left; padding: .85rem 1.4rem; border-bottom: 1px solid rgb(var(--filet)); transition: background-color .3s ease;
  animation: carte .7s var(--doux) both; animation-delay: calc(min(var(--k, 0), 12) * 35ms); }
.crl-el:last-child { border-bottom: 0; }
.crl-el:hover { background: rgb(var(--creux) / .6); }
.crl-el:hover .ch-fleche { color: rgb(var(--accent)); transform: translateX(3px); }
.crl-ch { display: flex; gap: .85rem; align-items: center; min-width: 0; }
.crl-ch img { width: 2.9rem; height: 2.9rem; border-radius: .8rem; object-fit: cover; flex-shrink: 0; }
.crl-ch > span { display: flex; flex-direction: column; min-width: 0; }
.crl-ch .d { font-weight: 700; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crl-ch .ch { font-size: .87rem; color: rgb(var(--encre-2)); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crl-reu { display: flex; flex-direction: column; font-size: .92rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.crl-reu span:last-child { font-weight: 500; color: rgb(var(--encre-2)); font-size: .87rem; }
.crl-pts { display: flex; flex-wrap: wrap; gap: .4rem; min-width: 0; }
.crl-extrait { font-size: .92rem; line-height: 1.5; color: rgb(var(--encre)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
mark { background: rgb(var(--ambre) / .28); color: inherit; border-radius: .2rem; padding: 0 .12rem; }

/* Liseuse : le compte rendu comme sur une liseuse */
.liseuse-voile { position: fixed; inset: 0; z-index: 90; background: rgba(8,16,30,.5); backdrop-filter: blur(10px); display: flex; justify-content: center; padding: 1.2rem; }
.liseuse { width: min(84rem, 100%); background: rgb(var(--carte)); border-radius: 1.5rem; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 50px 120px -30px rgba(0,0,0,.55); animation: liseuse .7s var(--doux) both; }
@keyframes liseuse { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.liseuse-tete { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.3rem; border-bottom: 1px solid rgb(var(--filet)); }
.liseuse-tete img { width: 3rem; height: 3rem; border-radius: .85rem; object-fit: cover; }
.liseuse-titre { flex: 1; min-width: 0; }
.liseuse-titre .d { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.015em; }
.liseuse-titre .ch { font-size: .92rem; color: rgb(var(--encre-2)); font-weight: 500; }
.liseuse-corps { flex: 1; min-height: 0; display: grid; grid-template-columns: 19rem minmax(0, 1fr); }
.liseuse-points { border-right: 1px solid rgb(var(--filet)); padding: 1rem .8rem; overflow-y: auto; display: flex; flex-direction: column; gap: .35rem; }
.lp-titre { font-size: .85rem; font-weight: 700; color: rgb(var(--encre-2)); padding: .2rem .6rem .5rem; }
.lp { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; text-align: left; padding: .7rem .75rem; border-radius: .9rem; transition: background-color .3s ease, transform .4s var(--doux); }
.lp:hover, .lp.actif { background: rgb(var(--creux)); }
.lp:hover { transform: translateX(2px); }
.lp .t { font-size: .92rem; font-weight: 600; line-height: 1.35; }
.lp .p { font-size: .84rem; color: rgb(var(--encre-2)); font-weight: 500; }
.liseuse-pages { overflow-y: auto; padding: 2.2rem 2rem 3rem; display: flex; flex-direction: column; align-items: center; gap: 1.6rem; background: #ECEAE4; scroll-behavior: smooth; }
.feuille { width: min(46rem, 100%); background: #FFFDF8; color: #22262E; border-radius: .35rem; padding: 3rem 3.6rem 3.4rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 18px 40px -22px rgba(30,25,15,.35); font-family: 'Iowan Old Style', 'Charter', 'Georgia', 'Times New Roman', serif;
  font-size: 1.06rem; line-height: 1.8; hyphens: auto; animation: carte .8s var(--doux) both; }
.feuille-n { font-family: 'Manrope', sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8A7F6A; margin-bottom: 1.3rem; }
.feuille mark { padding: .08rem .18rem; border-radius: .25rem; background: rgb(var(--ambre) / .26); box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: box-shadow .4s ease; }
.feuille mark.m-rouge { background: rgba(217,45,32,.14); }
.feuille mark.m-bleu { background: rgba(37,99,235,.14); }
.feuille mark.eclat { animation: eclat 1.6s ease; }
@keyframes eclat { 0%, 100% { box-shadow: 0 0 0 0 rgba(247,144,9,0); } 30% { box-shadow: 0 0 0 6px rgba(247,144,9,.35); } }

/* ================================ Chantiers ================================ */
.ecran-plein { display: flex; flex-direction: column; height: calc(100dvh - 4rem); }
.ch-grille { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(23rem, 1fr); gap: 1rem; }
.carte-geo { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.carte-geo-tete { position: absolute; top: 0; left: 0; right: 0; z-index: 5; padding: .9rem; pointer-events: none; display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.carte-geo-tete > * { pointer-events: auto; }
.carte-geo-tete .seg { height: 2.6rem; background: rgb(var(--carte) / .94); backdrop-filter: blur(8px); box-shadow: 0 0 0 1px rgb(var(--filet)), 0 10px 24px -12px rgba(16,24,40,.3); }
.legende { margin-left: auto; display: flex; gap: 1rem; font-size: .85rem; font-weight: 600; color: rgb(var(--encre-2)); background: rgb(var(--carte) / .94); backdrop-filter: blur(8px);
  border-radius: 999px; padding: .5rem .95rem; box-shadow: 0 0 0 1px rgb(var(--filet)); }
.legende i { display: inline-block; width: .6rem; height: .6rem; border-radius: 999px; margin-right: .4rem; vertical-align: middle; }
.legende i.rouge { background: rgb(var(--rouge)); } .legende i.orange { background: rgb(var(--ambre)); } .legende i.bleu { background: rgb(var(--elec)); }
.geo { flex: 1; min-height: 0; width: 100%; background: #CFE6F4; }
.geo .maplibregl-ctrl-group { border-radius: .85rem; overflow: hidden; box-shadow: 0 0 0 1px rgb(var(--filet)), 0 10px 24px -12px rgba(16,24,40,.3) !important; }
.geo .maplibregl-ctrl-attrib { font-size: .66rem; border-radius: .5rem 0 0 0; }
.hors-carte { position: absolute; left: .9rem; top: 4rem; display: flex; gap: .4rem; flex-wrap: wrap; z-index: 5; }
.hors-carte button { background: rgb(var(--carte)); box-shadow: 0 0 0 1px rgb(var(--filet)); border-radius: 999px; padding: .35rem .8rem; font-size: .84rem; font-weight: 600; color: rgb(var(--encre-2)); }
.hors-carte button.actif { background: rgb(var(--bleu)); color: #fff; box-shadow: none; }
.ch-liste { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.ch-liste .carte-tete { justify-content: flex-start; }
.ch-liste .carte-tete .puce-x { margin-left: auto; }
.ch-defile { flex: 1; min-height: 0; overflow-y: auto; padding: .2rem .7rem .8rem; }
.ch-el { display: flex; align-items: center; gap: .85rem; width: 100%; text-align: left; padding: .65rem; border-radius: 1rem;
  transition: background-color .3s ease, transform .5s var(--doux); }
.ch-el:hover { background: rgb(var(--creux)); transform: translateX(3px); }
.ch-el:hover .ch-fleche { color: rgb(var(--accent)); transform: translateX(2px); }
.ch-el .vignette::after { content: ''; position: absolute; top: .35rem; left: .35rem; width: .7rem; height: .7rem; border-radius: 999px; box-shadow: 0 0 0 2px #fff; background: transparent; }
.ch-el .vignette.urgent::after { background: rgb(var(--rouge)); } .ch-el .vignette.attention::after { background: rgb(var(--ambre)); }
.ch-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ch-txt .d { font-weight: 700; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-txt .ch { font-size: .87rem; color: rgb(var(--encre-2)); font-weight: 500; }
.ch-proch { display: flex; gap: .5rem; align-items: baseline; font-size: .87rem; color: rgb(var(--encre)); margin-top: .2rem; min-width: 0; }
.ch-proch span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-proch b { font-weight: 700; white-space: nowrap; color: rgb(var(--accent)); }
.ch-proch.rouge b { color: rgb(var(--rouge)); } .ch-proch.orange b { color: rgb(var(--orange)); }

/* Fiche chantier */
.retour { display: inline-flex; align-items: center; gap: .4rem; height: 2.9rem; padding: 0 1.1rem 0 .85rem; border-radius: 999px; background: rgb(var(--carte)); box-shadow: var(--ombre);
  font-weight: 600; font-size: .92rem; color: rgb(var(--encre-2)); transition: color .3s ease, transform .4s var(--doux); }
.retour:hover { color: rgb(var(--accent)); transform: translateX(-2px); }
.fiche-tete { display: grid; grid-template-columns: minmax(16rem, 26rem) minmax(0, 1fr); gap: 1.6rem; padding: 1rem; align-items: stretch; margin-bottom: 1rem; }
.fiche-photo { position: relative; border-radius: 1rem; overflow: hidden; min-height: 14rem; }
.fiche-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: banniere 1.6s var(--doux) both; }
@keyframes banniere { from { transform: scale(1.06); } to { transform: scale(1); } }
.fiche-info { display: flex; flex-direction: column; justify-content: center; padding: .6rem .6rem .6rem 0; min-width: 0; }
.fiche-info h1 { font-size: 1.85rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.fiche-ville { margin-top: .35rem; font-size: 1.02rem; font-weight: 500; color: rgb(var(--encre-2)); }
.fiche-faits { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .8rem 1.4rem; margin-top: 1.3rem; }
.fait-l { font-size: .85rem; font-weight: 600; color: rgb(var(--encre-2)); }
.fait-v { font-size: .98rem; font-weight: 600; margin-top: .1rem; }
.fiche-charge { display: flex; align-items: center; gap: .7rem; }
.fiche-charge .av { width: 2.5rem; height: 2.5rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .85rem;
  background: linear-gradient(135deg, rgb(var(--bleu)), rgb(var(--elec))); flex-shrink: 0; }
.g-fiche { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.passages { padding: .4rem 1.4rem 1.2rem; }
.passage { display: flex; gap: 1rem; }
.passage-rail { position: relative; display: flex; flex-direction: column; align-items: center; width: 2.2rem; flex-shrink: 0; }
.passage-rail::after { content: ''; position: absolute; top: 2.4rem; bottom: .1rem; width: 2px; border-radius: 2px; background: rgb(var(--filet)); }
.passage:last-child .passage-rail::after { display: none; }
.passage-n { width: 2.2rem; height: 2.2rem; border-radius: .75rem; display: inline-flex; align-items: center; justify-content: center; background: rgb(var(--bleu) / .1); color: rgb(var(--accent));
  position: relative; z-index: 1; transition: transform .55s var(--ressort); }
.passage:hover .passage-n { transform: scale(1.1) rotate(-6deg); }
.passage.fait .passage-n { background: rgb(var(--vert) / .12); color: rgb(var(--vert)); }
.passage.prochain .passage-n { background: linear-gradient(135deg, rgb(var(--bleu)), rgb(var(--elec))); color: #fff; box-shadow: 0 8px 18px -8px rgb(var(--elec) / .8); }
.passage.prochain.rouge .passage-n { background: rgb(var(--rouge)); box-shadow: 0 8px 18px -8px rgb(var(--rouge) / .7); }
.passage.prochain.orange .passage-n { background: rgb(var(--ambre)); box-shadow: 0 8px 18px -8px rgb(var(--ambre) / .7); }
.passage-corps { flex: 1; min-width: 0; padding: .2rem 0 1.25rem; }
.passage.fait .passage-corps { opacity: .62; }
.passage-tete { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.passage-titre { font-weight: 700; font-size: 1rem; }
.passage-quand { margin-top: .25rem; font-size: .92rem; color: rgb(var(--encre)); }
.passage-quand b { font-weight: 700; }
.ligne { display: flex; align-items: flex-start; gap: .85rem; padding: .9rem 1.4rem; border-top: 1px solid rgb(var(--filet)); transition: background-color .25s ease; }
.ligne:first-of-type { border-top: 0; }
.ligne.cliquable { cursor: pointer; align-items: center; }
.ligne.cliquable:hover { background: rgb(var(--creux) / .6); }
.ligne.cliquable:hover .ch-fleche { color: rgb(var(--accent)); transform: translateX(3px); }
.l-titre { font-weight: 600; font-size: .97rem; }
.l-meta { color: rgb(var(--encre-2)); font-size: .9rem; margin-top: .1rem; }
.tuile-ic { width: 2.4rem; height: 2.4rem; border-radius: .8rem; display: inline-flex; align-items: center; justify-content: center; background: rgb(var(--bleu) / .09); color: rgb(var(--accent)); flex-shrink: 0; }

/* ================================ Réglages ================================ */
.reg-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: stretch; }
.mail-matin { display: grid; grid-template-columns: minmax(14rem, 1fr) minmax(0, 41rem); gap: 1.4rem; align-items: start; }
.mail-matin .mail-matin-tete { flex-direction: column; align-items: flex-start; justify-content: flex-start; }
.mail-matin .apercu-cadre { margin-top: 0; }
@media (max-width: 1100px) { .mail-matin { grid-template-columns: minmax(0, 1fr); } }
.outlook { display: flex; align-items: center; gap: 1.2rem; padding: 1.4rem 1.5rem; flex-wrap: wrap; }
.outlook-logo { width: 3.4rem; height: 3.4rem; object-fit: contain; }
.outlook-corps { flex: 1; min-width: 12rem; }
.outlook-titre { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.015em; }
.outlook-etat { margin-top: .3rem; color: rgb(var(--encre-2)); font-size: .95rem; font-weight: 500; display: flex; align-items: center; flex-wrap: wrap; gap: .1rem .6rem; }
.etat-pt { display: inline-block; width: .6rem; height: .6rem; border-radius: 999px; margin-right: .2rem; }
.etat-pt.on { background: rgb(var(--vert)); } .etat-pt.off { background: rgb(var(--gris) / .5); } .etat-pt.ko { background: rgb(var(--rouge)); }
.tuile-reglage { display: flex; align-items: center; gap: 1.1rem; padding: 1.25rem 1.5rem; width: 100%; text-align: left; transition: transform .6s var(--doux), box-shadow .5s ease; }
.tuile-reglage:hover { transform: translateY(-3px); box-shadow: var(--ombre-haute); }
.icone-degrade { width: 3.2rem; height: 3.2rem; border-radius: 1rem; display: inline-flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, rgb(var(--bleu)), rgb(var(--elec))); box-shadow: 0 10px 20px -10px rgb(var(--elec) / .8); flex-shrink: 0; }
.tuile-reglage-txt { flex: 1; min-width: 0; }
.tuile-reglage-txt .t { display: block; font-size: 1.12rem; font-weight: 700; }
.tuile-reglage-txt .m { display: block; color: rgb(var(--encre-2)); font-size: .95rem; font-weight: 500; margin-top: .15rem; }
.mail-matin { padding: 1.3rem 1.4rem 1.4rem; }
.mail-matin-tete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.apercu-cadre { margin-top: 1.1rem; border-radius: 1.1rem; overflow: hidden; box-shadow: 0 0 0 1px rgb(var(--filet)); background: #F2F4F7; }
.apercu-entete { display: flex; align-items: center; gap: .85rem; padding: .9rem 1.1rem; background: rgb(var(--carte)); border-bottom: 1px solid rgb(var(--filet)); }
.apercu-entete .av-moi { box-shadow: none; background: linear-gradient(135deg, #224D73, #2563EB); color: #fff; }
.apercu-entete .g { flex: 1; min-width: 0; }
.apercu-entete .de { font-weight: 700; font-size: .95rem; }
.apercu-entete .objet { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apercu-entete .h { font-size: .9rem; font-weight: 600; color: rgb(var(--encre-2)); }
.apercu-mail { display: block; width: 100%; height: 34rem; border: 0; background: #F2F4F7; }
.reg-ligne { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.4rem; border-top: 1px solid rgb(var(--filet)); }
.reg-ligne:first-of-type { border-top: 0; }
.reg-ligne .g { min-width: 0; }
.reg-ligne .t { font-weight: 600; }
.reg-ligne .m { color: rgb(var(--encre-2)); font-size: .9rem; margin-top: .1rem; overflow-wrap: anywhere; }
.actions { display: flex; gap: .45rem; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.avatar { width: 2.2rem; height: 2.2rem; border-radius: 999px; background: rgb(var(--bleu) / .1); color: rgb(var(--accent)); display: inline-flex;
  align-items: center; justify-content: center; font-size: .85rem; font-weight: 700; flex-shrink: 0; }
.lien-copie { font-size: .85rem; background: rgb(var(--creux)); border-radius: .7rem; padding: .6rem .75rem; overflow-wrap: anywhere; margin-top: .6rem; }
.carte-corps { padding: .4rem 1.4rem 1.2rem; }
.delais { max-width: 30rem; padding: 1.3rem 1.4rem; }
.delai-ligne { display: flex; align-items: center; gap: .9rem; padding: .75rem 0; border-top: 1px solid rgb(var(--filet)); }
.delai-ligne .tuile-ic { width: 2.5rem; height: 2.5rem; }
.delai-nom { flex: 1; font-weight: 600; }
.pas { display: inline-flex; align-items: center; gap: .4rem; background: rgb(var(--creux)); border-radius: 999px; padding: .2rem; }
.pas button { width: 2rem; height: 2rem; border-radius: 999px; font-size: 1.05rem; color: rgb(var(--encre-2)); transition: background-color .2s ease; }
.pas button:hover { background: rgb(var(--carte)); color: rgb(var(--encre)); }
.pas span { min-width: 3.8rem; text-align: center; font-size: .9rem; }
.pas b { font-size: 1.02rem; font-weight: 700; }

/* ================================ Connexion ================================ */
.porte { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 1.5rem 1rem; overflow-y: auto; background: var(--degrade-heros); position: relative; isolation: isolate; }
.porte .heros-fond { z-index: -1; }
.porte-carte { width: 100%; max-width: 25rem; background: rgb(var(--carte)); border-radius: 1.5rem; padding: 2.3rem 2.1rem 2.1rem;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); animation: carte .9s var(--doux) both; }
.porte-logo { height: 3.2rem; display: block; margin: 0 auto 1.6rem; }
.porte h1 { font-size: 1.4rem; font-weight: 700; text-align: center; letter-spacing: -0.02em; }
.porte .erreur { color: rgb(var(--rouge)); font-size: .9rem; margin-top: .8rem; text-align: center; }
.porte .sous { text-align: center; color: rgb(var(--encre-2)); margin-top: .3rem; }

/* ================================ Menus, fenêtres, notification ================================ */
.glisse-box { position: relative; }
.survol { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: .75rem; background: rgb(var(--creux)); z-index: 0; pointer-events: none; opacity: 0;
  transition: transform .45s var(--doux), width .45s var(--doux), height .45s var(--doux), opacity .3s ease; }
.survol.on { opacity: 1; }
.glisse-box > button, .glisse-box > a { position: relative; z-index: 1; }
.dd-btn { display: inline-flex; align-items: center; gap: .55rem; height: 2.9rem; padding: 0 .95rem 0 1.15rem; border-radius: 999px; background: rgb(var(--carte));
  box-shadow: var(--ombre); font-size: .92rem; font-weight: 600; white-space: nowrap; transition: box-shadow .3s ease, transform .2s ease; }
.dd-btn:hover:not(:disabled) { box-shadow: 0 0 0 1px rgb(var(--accent) / .4), 0 8px 18px -10px rgb(var(--elec) / .5); }
.dd-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px rgb(var(--accent)); }
.dd-btn:disabled { opacity: .5; cursor: default; }
.dd-btn .dd-chev { color: rgb(var(--encre-2)); display: inline-flex; transition: transform .45s var(--doux); }
.dd-btn[aria-expanded="true"] .dd-chev { transform: rotate(180deg); }
.dd-btn .dd-ic { color: rgb(var(--accent)); display: inline-flex; }
.dd-av { width: 1.6rem; height: 1.6rem; border-radius: 999px; color: #fff; font-size: .66rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dd-btn .dd-av { margin-left: -.55rem; }
.dd-menu { position: fixed; z-index: 120; overflow-y: auto; background: rgb(var(--carte)); border-radius: 1rem; padding: .35rem; outline: none; box-shadow: 0 0 0 1px rgb(var(--filet)), 0 22px 44px -14px rgba(16,24,40,.28); }
.dd-in { transition: opacity .25s ease, transform .4s var(--doux); }
.dd-out { transition: opacity .15s ease, transform .15s ease; }
.dd-depart { opacity: 0; transform: translateY(-6px) scale(.97); }
.dd-menu.vers-haut.dd-depart { transform: translateY(6px) scale(.97); }
.dd-opt { display: flex; align-items: center; gap: .65rem; width: 100%; text-align: left; padding: .6rem .75rem; border-radius: .7rem; font-size: .92rem; font-weight: 500; white-space: nowrap; }
.dd-opt.courant:not(:hover) { background: rgb(var(--creux)); }
.dd-opt.choisi { color: rgb(var(--accent)); font-weight: 700; }
.dd-opt .dd-l { flex: 1; }
.dd-opt .dd-coche { color: rgb(var(--accent)); display: inline-flex; }
.bascule { display: inline-flex; align-items: center; gap: .5rem; height: 2.9rem; padding: 0 1.1rem; border-radius: 999px; background: rgb(var(--carte)); box-shadow: var(--ombre);
  font-size: .92rem; font-weight: 600; color: rgb(var(--encre-2)); transition: all .35s ease; }
.bascule .pt { width: .6rem; height: .6rem; border-radius: 999px; background: rgb(var(--rouge)); transition: transform .5s var(--ressort); }
.bascule:hover .pt { transform: scale(1.35); }
.bascule.on { background: rgb(var(--rouge) / .08); box-shadow: 0 0 0 1px rgb(var(--rouge) / .35); color: rgb(var(--rouge)); }
.voile { position: fixed; inset: 0; background: rgba(8,16,30,.4); backdrop-filter: blur(4px); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; animation: vue .35s ease both; }
.dialogue { max-width: 26rem; width: 100%; padding: 1.4rem; animation: carte .5s var(--doux) both; }
.dialogue p { font-size: 1rem; margin-bottom: 1.2rem; }
.toast { position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%); background: #101828; color: #fff; padding: .7rem 1.2rem; border-radius: 999px;
  font-size: .92rem; font-weight: 500; z-index: 100; box-shadow: 0 14px 34px -10px rgba(0,0,0,.45); display: flex; align-items: center; gap: .8rem; max-width: calc(100vw - 2rem); }
.toast button { color: #9EC5FF; font-weight: 700; }
.barre-bas { display: none; }

/* ================================ Écrans moyens et téléphone ================================ */
@media (max-width: 1200px) {
  .g2, .g-fiche, .reg-grille { grid-template-columns: minmax(0, 1fr); }
  .semaine-grille { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
  .crl-tete, .crl-el { grid-template-columns: minmax(12rem, 1fr) 8rem minmax(0, 1.4fr) 1.2rem; }
  .liseuse-corps { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .liseuse-points { border-right: 0; border-bottom: 1px solid rgb(var(--filet)); flex-direction: row; overflow-x: auto; max-height: 8.5rem; }
  .lp-titre { display: none; }
  .lp { min-width: 15rem; }
}
@media (max-width: 1100px) {
  .colonnes { grid-template-columns: minmax(0, 1fr); }
  .ch-grille { grid-template-columns: minmax(0, 1fr); grid-template-rows: 26rem auto; }
  .ecran-plein { height: auto; }
  .ch-liste { overflow: visible; } .ch-defile { overflow: visible; }
}
@media (max-width: 760px) {
  .rail { display: none; }
  main { padding: 0 1rem 6.5rem; }
  .tete-mobile { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 30; margin: 0 -1rem 1rem; padding: .8rem 1rem;
    background: var(--degrade); color: #fff; border-radius: 0 0 1.2rem 1.2rem; }
  .tete-mobile img { height: 2rem; }
  .tete-mobile .profil-btn { width: auto; padding: .3rem .5rem .3rem .3rem; }
  .tete-mobile .profil-nom { display: none; }
  .tete-mobile .profil-menu { position: fixed; top: 4.2rem; right: 1rem; left: auto; bottom: auto; width: 15rem; transform-origin: 100% 0; }
  .titre { font-size: 1.5rem; line-height: 2.4rem; }
  .entete { margin-bottom: 1rem; }
  .entete .outils { width: 100%; flex: 1 1 100% !important; }
  .entete .outils .recherche { width: 100% !important; }
  .entete .outils .seg { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .recherche { flex: 1 1 100%; } .recherche .inp { width: 100% !important; }
  .heros { padding: 1.35rem 1.2rem; border-radius: 1.25rem; }
  .heros-titre { font-size: 1.5rem; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .kpi .n { font-size: 1.8rem; }
  .kpi-ic { width: 1.9rem; height: 1.9rem; top: .7rem; right: .7rem; }
  .decision { grid-template-columns: 3.4rem minmax(0, 1fr); padding: 1rem; gap: .8rem; }
  .decision-droite { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; padding-left: 4.2rem; }
  .vignette { width: 3.4rem; height: 3.4rem; }
  .semaine-grille { grid-template-columns: minmax(0, 1fr); }
  .jour-col.passe { display: none; }
  .crl-tete { display: none; }
  .crl-el { grid-template-columns: minmax(0, 1fr) 1.2rem; gap: .5rem .8rem; padding: .9rem 1rem; }
  .crl-reu { display: none; }
  .crl-pts, .crl-extrait { grid-column: 1 / 2; }
  .crl-el .ch-fleche { grid-row: 1; grid-column: 2; }
  .liseuse-voile { padding: 0; } .liseuse { border-radius: 0; }
  .feuille { padding: 1.6rem 1.3rem; font-size: 1rem; }
  .liseuse-pages { padding: 1.2rem .8rem 2rem; }
  .ch-grille { grid-template-rows: 21rem auto; }
  .legende { display: none; }
  .fiche-tete { grid-template-columns: minmax(0, 1fr); padding: .8rem; gap: 1rem; }
  .fiche-photo { min-height: 12rem; }
  .fiche-info { padding: 0 .4rem .4rem; }
  .fiche-info h1 { font-size: 1.45rem; }
  .reg-ligne { flex-wrap: wrap; padding: .9rem 1rem; }
  .apercu-mail { height: 30rem; }
  .barre-bas { display: flex; position: fixed; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom)); background: rgb(var(--carte));
    border-radius: 1.3rem; box-shadow: 0 0 0 1px rgb(var(--filet)), 0 14px 34px -12px rgba(16,24,40,.35); z-index: 50; justify-content: space-around; padding: .35rem; }
  .barre-bas button { display: flex; flex-direction: column; align-items: center; gap: .15rem; font-size: .7rem; font-weight: 600; color: rgb(var(--encre-2)); padding: .45rem .3rem; border-radius: .9rem; flex: 1;
    transition: color .35s ease, background-color .35s ease; }
  .barre-bas button.actif { color: #fff; background: linear-gradient(135deg, rgb(var(--bleu)), rgb(var(--elec))); }
}

/* ================================ 05/11 (2) : moins « IA » ================================ */
.etat { display: inline-flex; align-items: center; gap: .3rem; font-size: .88rem; font-weight: 700; white-space: nowrap; line-height: 1.3; }
.etat svg { width: 15px; height: 15px; stroke-width: 2.2; }
.etat.rouge { color: rgb(var(--rouge)); } .etat.orange { color: rgb(var(--orange)); } .etat.vert { color: rgb(var(--vert)); }
.etat.bleu { color: rgb(var(--accent)); } .etat.gris { color: rgb(var(--encre-2)); }
.decision-etat { align-items: baseline; }
.decision-etat .etat { flex-shrink: 0; transform: translateY(.1rem); }
.quand-txt { font-size: .92rem; font-weight: 700; color: rgb(var(--encre)); white-space: nowrap; text-align: right; }
.quand-txt.urgent { color: rgb(var(--rouge)); } .quand-txt.attention { color: rgb(var(--orange)); }
.source { background: none; padding: 0; margin-top: .55rem; border-radius: 0; color: rgb(var(--accent)); font-size: .9rem; font-weight: 600; }
.source:hover { background: none; text-decoration: underline; text-underline-offset: 3px; transform: none; }
.ag-date { height: 3.9rem; }
.ag-date .m { font-size: .74rem; font-weight: 600; color: rgb(var(--encre-2)); }
.ag-el .etat { justify-self: end; }
/* Planning en couleurs : chaque passage prend la couleur de son état */
.pcarte { background: rgb(var(--elec) / .06); box-shadow: inset 4px 0 0 rgb(var(--elec) / .55); }
.pcarte.vert { background: rgb(var(--vert) / .08); box-shadow: inset 4px 0 0 rgb(var(--vert)); }
.pcarte.rouge { background: rgb(var(--rouge) / .08); box-shadow: inset 4px 0 0 rgb(var(--rouge)); }
.pcarte.orange { background: rgb(var(--ambre) / .11); box-shadow: inset 4px 0 0 rgb(var(--ambre)); }
.pcarte:hover { background: rgb(var(--carte)); }
.pcarte.vert:hover { box-shadow: inset 4px 0 0 rgb(var(--vert)), 0 0 0 1px rgb(var(--filet)), 0 16px 28px -16px rgba(16,24,40,.35); }
.pcarte.rouge:hover { box-shadow: inset 4px 0 0 rgb(var(--rouge)), 0 0 0 1px rgb(var(--filet)), 0 16px 28px -16px rgba(16,24,40,.35); }
.pcarte.orange:hover { box-shadow: inset 4px 0 0 rgb(var(--ambre)), 0 0 0 1px rgb(var(--filet)), 0 16px 28px -16px rgba(16,24,40,.35); }
.pcarte.bleu:hover { box-shadow: inset 4px 0 0 rgb(var(--elec)), 0 0 0 1px rgb(var(--filet)), 0 16px 28px -16px rgba(16,24,40,.35); }
.pcarte { padding-left: .85rem; }
.jour-col.auj { box-shadow: 0 0 0 2px rgb(var(--elec) / .55), 0 18px 34px -22px rgb(var(--elec) / .7); }
.jour-tete .jn { color: rgb(var(--encre)); }
/* Étiquette sur la photo d'une commande : rectangle net, date en clair */
.cmd-photo .badge { border-radius: .45rem; padding: .3rem .6rem; font-size: .82rem; }
/* Comptes rendus : seul le tableau défile */
.crl-carte { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.crl-carte .crl { flex: 1; min-height: 0; }
.crl-defile { flex: 1; min-height: 0; overflow-y: auto; }
/* Liseuse : dans le bleu de la plateforme, pages blanches, rien d'inutile */
.liseuse-corps { grid-template-columns: minmax(0, 1fr); }
.liseuse-pages { background: var(--degrade-heros); padding: 2.4rem 2rem 3rem; gap: 1.2rem; }
.feuille { width: min(56rem, 100%); background: #FFFFFF; color: #101828; border-radius: 1rem; padding: 2.6rem 3.2rem;
  font-family: 'Manrope', system-ui, sans-serif; font-size: 1.05rem; line-height: 1.8; box-shadow: 0 24px 50px -24px rgba(5,20,45,.55); }
.feuille mark, .feuille mark.m-bleu, .feuille mark.m-orange { background: rgba(37,99,235,.13); box-shadow: inset 0 -2px 0 rgba(37,99,235,.55); border-radius: .2rem; }
.feuille mark.m-rouge { background: rgba(217,45,32,.1); box-shadow: inset 0 -2px 0 rgba(217,45,32,.6); }
.feuille mark.eclat { animation: eclat2 1.6s ease; }
@keyframes eclat2 { 0%, 100% { outline: 0 solid rgba(37,99,235,0); } 30% { outline: 6px solid rgba(37,99,235,.25); } }
.liseuse-nav { display: flex; gap: .2rem; }
@media (max-width: 760px) { .feuille { padding: 1.5rem 1.2rem; } .liseuse-pages { padding: 1rem .7rem 2rem; } }

/* ================================ 05/11 (3) : plus vivant, plus net ================================ */
/* Barre latérale : la même taille sur tous les écrans (en pixels, plus en rem), logo centré,
   fond qui bouge doucement et halo lumineux qui suit l'onglet choisi (Paul, 05/11). */
.rail { width: 236px; }
.side { top: 16px; bottom: 16px; left: 16px; width: 212px; border-radius: 24px; }
.side::before { display: none; }
.side-fond { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; border-radius: inherit; }
.side-fond i { position: absolute; border-radius: 999px; filter: blur(2px); will-change: transform; }
.side-fond i:nth-child(1) { width: 320px; height: 320px; left: -140px; top: -120px; background: radial-gradient(circle, rgba(56,128,255,.28), transparent 65%); animation: sf1 19s ease-in-out infinite alternate; }
.side-fond i:nth-child(2) { width: 280px; height: 280px; right: -150px; top: 38%; background: radial-gradient(circle, rgba(120,190,255,.22), transparent 65%); animation: sf2 23s ease-in-out infinite alternate; }
.side-fond i:nth-child(3) { width: 360px; height: 360px; left: -120px; bottom: -200px; background: radial-gradient(circle, rgba(37,99,235,.45), transparent 65%); animation: sf3 27s ease-in-out infinite alternate; }
@keyframes sf1 { to { transform: translate(90px, 140px) scale(1.15); } }
@keyframes sf2 { to { transform: translate(-110px, -90px) scale(.9); } }
@keyframes sf3 { to { transform: translate(120px, -70px) scale(1.1); } }
.side-halo { position: absolute; left: 50%; top: 0; width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 999px; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(125,185,255,.55) 0%, rgba(59,130,246,.25) 32%, transparent 68%);
  transition: top 1s var(--doux), opacity .5s ease; }
.side-halo::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: respire 4.5s ease-in-out infinite; opacity: .6; }
@keyframes respire { 0%, 100% { transform: scale(.85); } 50% { transform: scale(1.12); } }
.side-logo { justify-content: center; padding: 22px 0 0; height: 66px; }
.side-logo img { height: 34px; }
.side nav { margin-top: 22px; padding: 0 11px; gap: 2px; }
.nav-ind { left: 11px; right: 11px; border-radius: 15px; }
.nav-btn { gap: 13px; border-radius: 14px; padding: 10px 14px; font-size: 15px; }
.nav-compte { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 8px; font-size: 12.5px; }
.profil { padding: 11px; }
.profil-btn { gap: 11px; padding: 9px 10px 9px 9px; border-radius: 17px; }
.av-moi { width: 38px; height: 38px; font-size: 13.5px; }
.profil-nom { font-size: 15px; } .profil-nom .nom { font-size: 13.5px; }
.profil-menu { left: 12px; right: 12px; border-radius: 17px; padding: 6px; }
.pm-el { font-size: 15px; padding: 11px 12px; border-radius: 12px; }
main { padding-top: 16px; }

/* États : un encart plein, mot et icône en blanc (vert prêt, rouge bloqué, orange à confirmer...) */
.etat { gap: .32rem; padding: .22rem .55rem .22rem .45rem; border-radius: .45rem; color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .005em; }
.etat svg { width: 14px; height: 14px; stroke-width: 2.4; }
.etat.rouge { background: #D92D20; color: #fff; } .etat.orange { background: #E8710A; color: #fff; } .etat.vert { background: #079455; color: #fff; }
.etat.bleu { background: #2563EB; color: #fff; } .etat.gris { background: #98A2B3; color: #fff; }

/* Tuile de date façon page de calendrier : bandeau de couleur, le jour en gros */
.ag-date { height: auto; padding: 0 0 .35rem; overflow: hidden; background: rgb(var(--carte)); box-shadow: 0 0 0 1px rgb(var(--filet)), 0 6px 14px -10px rgba(16,24,40,.35); --t: #2563EB; }
.ag-date .j, .ag-date .cap { display: block; width: 100%; text-align: center; background: var(--t); color: #fff !important; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .18rem 0; margin-bottom: .2rem; }
.ag-date .n { font-size: 1.3rem; line-height: 1.1; }
.ag-date .m { line-height: 1.1; }
.ag-date.vert { --t: #079455; } .ag-date.orange { --t: #E8710A; } .ag-date.rouge { --t: #D92D20; } .ag-date.bleu { --t: #2563EB; }
.ag-el.rouge .ag-date, .ag-el.orange .ag-date { background: rgb(var(--carte)); }
.ag-date.grande { width: 3.7rem; border-radius: .9rem; }
.ag-date.grande .n { font-size: 1.55rem; }

/* À décider aujourd'hui : l'état en haut, la date en tuile, le compte rendu en une icône */
.decision { grid-template-columns: 4.1rem minmax(0, 1fr) auto; }
.decision .etat { margin-bottom: .45rem; }
.decision-droite { flex-direction: row; align-items: center; gap: .9rem; }
.decision-actions { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.motif { display: flex; align-items: center; gap: .55rem; margin-top: .55rem; font-size: .9rem; font-weight: 500; color: rgb(var(--encre)); line-height: 1.35; }
.motif-ic { width: 1.75rem; height: 1.75rem; border-radius: .55rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgb(var(--elec) / .1); color: #2563EB; }
.motif-ic.rouge { background: rgb(var(--rouge) / .1); color: #D92D20; } .motif-ic.orange { background: rgb(var(--ambre) / .16); color: #C4520A; } .motif-ic.vert { background: rgb(var(--vert) / .12); color: #079455; }
.motif-ic.gris { background: rgb(var(--creux)); color: rgb(var(--encre-2)); }
.cr-lien { width: 2.5rem; height: 2.5rem; border-radius: .8rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: rgb(var(--elec) / .1); color: #2563EB; transition: background .35s ease, color .35s ease, transform .45s var(--ressort), box-shadow .35s ease; }
.cr-lien:hover { background: linear-gradient(135deg, #224D73, #2563EB); color: #fff; transform: translateY(-2px) rotate(-4deg); box-shadow: 0 10px 18px -10px rgb(var(--elec) / .9); }
.cr-lien.petit { width: 2.1rem; height: 2.1rem; border-radius: .65rem; }
.passage-tete .cr-lien { margin-left: auto; }

/* Pictogrammes en couleur (fiche chantier, commandes, réglages) */
.pictos { width: 2.6rem; height: 2.6rem; border-radius: .85rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff;
  background: linear-gradient(135deg, #224D73, #2563EB); box-shadow: 0 8px 16px -10px rgba(16,24,40,.5); font-weight: 700; font-size: .88rem; letter-spacing: .02em; }
.pictos.petit { width: 1.9rem; height: 1.9rem; border-radius: .6rem; box-shadow: none; }
.p-lot { background: linear-gradient(135deg, #8A5A2B, #D29A5C); }
.p-archi { background: linear-gradient(135deg, #6D28D9, #A78BFA); }
.p-moa { background: linear-gradient(135deg, #0E7490, #2DD4BF); }
.p-charge { background: linear-gradient(135deg, #224D73, #2563EB); }
.p-cr { background: linear-gradient(135deg, #224D73, #2563EB); }
.p-rouge { background: linear-gradient(135deg, #B42318, #F04438); }
.p-orange { background: linear-gradient(135deg, #C4320A, #F79009); }
.fiche-faits { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem 1.4rem; }
.fait { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.fait .fait-v { margin-top: 0; }
.passage:not(.fait) .passage-n { color: #fff; box-shadow: 0 8px 16px -10px rgba(16,24,40,.55); }
.passage.prochain .passage-n { box-shadow: 0 0 0 3px rgb(var(--carte)), 0 0 0 5px rgb(var(--elec) / .55); }
.ligne .pictos { width: 2.4rem; height: 2.4rem; }

/* Commandes : la famille en couleur, la pose et le délai du fournisseur réglable */
.cmd-haut { display: flex; align-items: flex-start; gap: .75rem; }
.cmd-infos { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
.info { display: inline-flex; align-items: center; gap: .4rem; font-size: .86rem; font-weight: 500; background: rgb(var(--creux)); border-radius: .6rem; padding: .3rem .55rem; white-space: nowrap; }
.info b { font-weight: 700; }
.info-ic { display: inline-flex; color: #2563EB; }
.info.delai { padding-right: .25rem; }
.pas.mini { background: rgb(var(--carte)); gap: .15rem; padding: .1rem; margin-left: .15rem; }
.pas.mini button { width: 1.5rem; height: 1.5rem; font-size: .95rem; line-height: 1; }
.pas.mini b { font-size: .86rem; min-width: 3.2rem; text-align: center; }

/* Réglages : Outlook en connecteur bleu */
.connecteur { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 1.5rem 1.7rem 1.6rem;
  background: linear-gradient(118deg, #082850 0%, #0B4A93 40%, #0F6CBD 70%, #2B88D8 100%); box-shadow: 0 30px 60px -32px rgba(15,108,189,.9); }
.cx-fond { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cx-fond i { position: absolute; border-radius: 999px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12); }
.cx-fond i:nth-child(1) { width: 26rem; height: 26rem; right: -8rem; top: -15rem; animation: derive1 26s ease-in-out infinite alternate; }
.cx-fond i:nth-child(2) { width: 16rem; height: 16rem; left: 30%; bottom: -11rem; animation: derive2 30s ease-in-out infinite alternate; }
.cx-haut { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.cx-titre { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.cx-etat { display: flex; align-items: center; gap: .5rem; margin-top: .2rem; font-size: .95rem; font-weight: 600; color: rgba(255,255,255,.85); }
.cx-pt { width: .6rem; height: .6rem; border-radius: 999px; background: rgba(255,255,255,.45); position: relative; }
.c-ok .cx-pt { background: #4ADE80; } .c-ok .cx-pt::after { content: ''; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid #4ADE80; animation: onde 2.2s ease-out infinite; }
.c-reco .cx-pt { background: #FF8A80; } .c-en_cours .cx-pt { background: #FCD34D; animation: clin .8s ease-in-out infinite alternate; }
@keyframes onde { from { transform: scale(.6); opacity: 1; } to { transform: scale(2); opacity: 0; } }
@keyframes clin { to { opacity: .3; } }
.btn-prise { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: .7rem; padding: .5rem 1.35rem .5rem .5rem; border-radius: 999px; background: #fff; color: #0B4A93;
  font-weight: 700; font-size: .98rem; box-shadow: 0 14px 30px -14px rgba(0,0,0,.6); transition: transform .5s var(--ressort), box-shadow .4s ease; }
.btn-prise::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(15,108,189,.18), transparent); animation: reflet 3.6s ease-in-out infinite; }
@keyframes reflet { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.btn-prise:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 36px -14px rgba(0,0,0,.65), 0 0 0 4px rgba(255,255,255,.18); }
.bp-ic { width: 2.4rem; height: 2.4rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #0B4A93, #2B88D8); transition: transform .6s var(--ressort); }
.btn-prise:hover .bp-ic { transform: rotate(90deg); }
.btn-prise:disabled { cursor: progress; }
.btn-prise:disabled .bp-ic { animation: secousse .5s ease-in-out infinite alternate; }
@keyframes secousse { from { transform: rotate(80deg); } to { transform: rotate(100deg); } }
.btn-verre { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; color: #fff;
  background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); transition: background .3s ease; }
.btn-verre:hover { background: rgba(255,255,255,.24); }
.btn-verre:disabled { opacity: .7; }
.tourne { display: inline-flex; animation: tourne 1s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
/* La prise : SNEKKER à gauche, Outlook à droite, la fiche qui entre dans la prise, puis le courant qui passe */
.prise { display: flex; align-items: center; margin: 1.5rem 0 1.4rem; }
.bout { width: 4.2rem; height: 4.2rem; border-radius: 1.15rem; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 14px 28px -14px rgba(0,0,0,.6); position: relative; transition: box-shadow .6s ease; }
.bout img { width: 2.5rem; height: 2.5rem; object-fit: contain; }
.c-ok .bout { box-shadow: 0 14px 28px -14px rgba(0,0,0,.6), 0 0 0 4px rgba(255,255,255,.2), 0 0 28px rgba(125,190,255,.7); }
.cable { position: relative; flex: 1; height: 44px; margin: 0 .5rem; }
.fil { position: absolute; top: 20px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.35); transition: background .6s ease, box-shadow .6s ease; }
.fil.g { left: 0; right: calc(50% + 34px); } .fil.d { left: calc(50% + 34px); right: 0; }
.c-ok .fil { background: #fff; box-shadow: 0 0 12px rgba(150,205,255,.9); }
.male { position: absolute; top: 10px; left: calc(50% - 34px); width: 22px; height: 24px; background: #fff; border-radius: 7px 4px 4px 7px; z-index: 2;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.5); animation: approche 2.6s ease-in-out infinite; transition: transform .8s var(--ressort); }
.male i { position: absolute; right: -9px; width: 10px; height: 4px; border-radius: 2px; background: #fff; }
.male i:first-child { top: 5px; } .male i:last-child { bottom: 5px; }
.btn-prise:hover ~ * .male, .connecteur:has(.btn-prise:hover) .male { animation: none; transform: translateX(10px); }
.femelle { position: absolute; top: 8px; left: calc(50% + 6px); width: 28px; height: 28px; border-radius: 8px; border: 2.5px solid rgba(255,255,255,.85); background: rgba(255,255,255,.08); z-index: 1; }
.femelle i { position: absolute; left: 2px; width: 9px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.55); }
.femelle i:first-child { top: 5px; } .femelle i:last-child { bottom: 5px; }
@keyframes approche { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
.c-en_cours .male, .c-ok .male { animation: none; transform: translateX(20px); }
.c-ok .femelle { border-color: #fff; background: rgba(255,255,255,.2); }
.eclair { position: absolute; top: 17px; left: calc(50% + 4px); width: 10px; height: 10px; border-radius: 999px; background: #fff; opacity: 0; z-index: 3; pointer-events: none; }
.c-en_cours .eclair { animation: eclair 1s ease-out .55s infinite; }
@keyframes eclair { 0% { transform: scale(.4); opacity: 1; box-shadow: 0 0 0 0 rgba(255,255,255,.8); } 100% { transform: scale(3.2); opacity: 0; box-shadow: 0 0 30px 10px rgba(150,205,255,0); } }
.flux { position: absolute; left: 0; right: 0; top: 18px; height: 8px; pointer-events: none; z-index: 4; }
.flux i { position: absolute; top: 0; width: 8px; height: 8px; border-radius: 999px; background: #fff; box-shadow: 0 0 10px 2px rgba(150,205,255,.95); opacity: 0; left: 100%; }
.c-ok .flux i { animation: flux 3s linear infinite; }
.c-ok .flux i:nth-child(2) { animation-delay: .6s; } .c-ok .flux i:nth-child(3) { animation-delay: 1.2s; } .c-ok .flux i:nth-child(4) { animation-delay: 1.8s; } .c-ok .flux i:nth-child(5) { animation-delay: 2.4s; }
@keyframes flux { 0% { left: 100%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 0; opacity: 0; } }
.cx-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.cx-tuile { display: flex; align-items: center; gap: .75rem; min-width: 0; padding: .85rem 1rem; border-radius: 1rem; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  backdrop-filter: blur(6px); animation: carte .8s var(--doux) both; }
.cx-tuile > div { min-width: 0; }
.cx-ic { width: 2.3rem; height: 2.3rem; border-radius: .75rem; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.16); flex-shrink: 0; }
.cx-tuile .l { font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.75); }
.cx-tuile .v { font-size: .97rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Mail du matin : réglages et contenu à gauche, le mail à droite */
.mail-matin { grid-template-columns: minmax(17rem, 23rem) minmax(0, 1fr); gap: 1.6rem; padding: 1.4rem; align-items: stretch; }
.mm-reglages { display: flex; flex-direction: column; }
.mm-tete { display: flex; align-items: center; gap: .8rem; padding-bottom: .9rem; }
.mm-ligne { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .75rem 0; border-top: 1px solid rgb(var(--filet)); }
.mm-l { font-size: .88rem; font-weight: 600; color: rgb(var(--encre-2)); }
.mm-v { font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; text-align: right; }
.mm-jours { display: flex; gap: .3rem; }
.mm-jours i { font-style: normal; width: 1.85rem; height: 1.85rem; border-radius: .55rem; display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, #224D73, #2563EB); }
.mm-dedans { margin-top: auto; padding: 1rem 1.05rem .7rem; border-radius: 1rem; background: rgb(var(--creux)); }
.mm-chiffre { display: flex; align-items: center; gap: .7rem; padding: .4rem 0; font-weight: 600; font-size: .92rem; }
.mm-chiffre b { margin-left: auto; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.apercu-cadre { transition: opacity .5s ease, filter .5s ease; }
.apercu-cadre.eteint { opacity: .45; filter: grayscale(.7); }
@media (max-width: 1100px) { .mail-matin { grid-template-columns: minmax(0, 1fr); } .cx-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Délais fournisseurs */
.delais-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; padding: .5rem 1.4rem 1.4rem; }
.delai-tuile { display: flex; align-items: center; gap: .9rem; padding: .95rem 1rem; border-radius: 1.05rem; background: rgb(var(--creux)); min-width: 0; }
.dt-corps { flex: 1; min-width: 0; }
.dt-nom { font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-barre { height: 6px; border-radius: 999px; background: rgb(var(--filet)); margin-top: .45rem; overflow: hidden; }
.dt-barre span { display: block; height: 100%; border-radius: inherit; transition: width .7s var(--doux); }
.delai-tuile .pas { background: rgb(var(--carte)); }
@media (max-width: 1200px) { .delais-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .delais-grille, .cx-grille { grid-template-columns: minmax(0, 1fr); padding-left: 1rem; padding-right: 1rem; }
  .cx-grille { padding: 0; }
  .connecteur { padding: 1.2rem; }
  .decision-droite { padding-left: 0; grid-column: 2; justify-content: flex-start; }
  .decision-actions { flex-direction: row; }
  .bout { width: 3.4rem; height: 3.4rem; } .bout img { width: 2rem; height: 2rem; }
}
/* Réglages : à gauche le mail du matin et les délais, à droite le mail tel qu'il arrive */
.reg-deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1rem; align-items: start; }
.mail-matin { display: block; }
.mm-dedans { margin-top: .9rem; }
.delais-grille { grid-template-columns: minmax(0, 1fr); gap: .55rem; }
.apercu-carte { padding: .9rem; }
.apercu-carte .apercu-cadre { margin-top: 0; }
@media (max-width: 1100px) { .reg-deux { grid-template-columns: minmax(0, 1fr); } }
.reg-deux { grid-template-columns: minmax(20rem, 25rem) minmax(0, 1fr); }
/* Ce qu'il faut faire, en un verbe, dans la couleur de l'état */
.faire { display: flex; align-items: center; gap: .3rem; margin-top: .5rem; font-size: .95rem; font-weight: 700; color: #2563EB; }
.faire svg { stroke-width: 2.6; }
.faire.rouge { color: #D92D20; } .faire.orange { color: #C4520A; } .faire.vert { color: #079455; }

/* Même rendu sur tous les écrans (Paul, 05/11) : tout suit la taille de l'écran, barre latérale comprise.
   Base 15 px pour un écran de 1440 × 800 (le rendu validé par Paul), qui grandit ou rétrécit en gardant les proportions.
   Sur le 27 pouces de Clément (2560 px), la barre en pixels fixes paraissait fine et perdue : elle repasse en rem. */
html { font-size: clamp(14px, min(1.042vw, 1.875vh), 22px); }
.rail { width: 15.75rem; }
.side { top: 1.07rem; bottom: 1.07rem; left: 1.07rem; width: 14.13rem; border-radius: 1.6rem; }
.side-halo { width: 20rem; height: 20rem; margin: -10rem 0 0 -10rem; }
.side-logo { padding: 1.47rem 0 0; height: 4.4rem; }
.side-logo img { height: 2.27rem; }
.side nav { margin-top: 1.47rem; padding: 0 .73rem; gap: .13rem; }
.nav-ind { left: .73rem; right: .73rem; border-radius: 1rem; }
.nav-btn { gap: .87rem; border-radius: .93rem; padding: .67rem .93rem; font-size: 1rem; }
.nav-btn .ic svg { width: 1.33rem; height: 1.33rem; }
.nav-compte { min-width: 1.6rem; height: 1.6rem; padding: 0 .4rem; border-radius: .53rem; font-size: .83rem; }
.profil { padding: .73rem; }
.profil-btn { gap: .73rem; padding: .6rem .67rem .6rem .6rem; border-radius: 1.13rem; }
.av-moi { width: 2.53rem; height: 2.53rem; font-size: .9rem; }
.profil-nom { font-size: 1rem; } .profil-nom .nom { font-size: .9rem; }
.profil-menu { left: .8rem; right: .8rem; border-radius: 1.13rem; padding: .4rem; }
.pm-el { font-size: 1rem; padding: .73rem .8rem; border-radius: .8rem; }
main { padding-top: 1.07rem; }

/* Commandes : oui ou non, comme Antoine l'a demandé au R1 */
.cmd-oui-non { flex-direction: row; }
.cmd-oui-non .btn { flex: 1; }
.btn-non { background: rgb(var(--creux)); color: rgb(var(--encre)); }
.btn-non:hover { background: rgb(var(--rouge) / .1); color: rgb(var(--rouge)); }

/* « Pas juste » : discret, mais toujours là */
.pas-juste { display: inline-flex; align-items: center; gap: .35rem; margin-top: .6rem; padding: .25rem .6rem .25rem .45rem; border-radius: .5rem; font-size: .84rem; font-weight: 600;
  color: rgb(var(--encre-2)); transition: background-color .3s ease, color .3s ease; }
.pas-juste:hover, .pas-juste[aria-expanded="true"] { background: rgb(var(--rouge) / .08); color: rgb(var(--rouge)); }
.passage-corps .pas-juste { margin-top: .4rem; }

/* Gagné cette semaine */
.gains { padding: 1.2rem 1.4rem 1.3rem; }
.gains-haut { position: relative; display: flex; align-items: center; gap: .9rem; }
.gains-ic { width: 3.1rem; height: 3.1rem; border-radius: 1rem; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, #047857, #34D399); box-shadow: 0 10px 20px -10px rgba(4,120,87,.8); }
.gains-l { font-size: .9rem; font-weight: 600; color: rgb(var(--encre-2)); }
.gains-n { font-size: 2rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; color: #047857; font-variant-numeric: tabular-nums; }
.bulle-i { margin-left: auto; align-self: flex-start; color: rgb(var(--gris)); display: inline-flex; cursor: help; }
.bulle { position: absolute; right: 0; top: 1.8rem; z-index: 10; width: 16rem; padding: .6rem .8rem; border-radius: .7rem; background: #101828; color: #fff; font-size: .82rem; font-weight: 500; line-height: 1.4;
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .25s ease, transform .35s var(--doux); }
.bulle-i:hover + .bulle, .bulle-i:focus + .bulle { opacity: 1; transform: none; }
.gains-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: 1.1rem; }
.gain { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .65rem; align-items: center; padding: .75rem .8rem; border-radius: .95rem; background: rgb(var(--creux)); }
.gain .pictos { grid-row: 1 / 3; }
.gain b { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.gain span:last-child { font-size: .8rem; font-weight: 600; color: rgb(var(--encre-2)); line-height: 1.3; }

/* ================= Paiement et factures (09/11/2026) ================= */
.pai-heros { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: 1.9rem 2rem 1.8rem; }
.pai-titre { font-size: 1.05rem; font-weight: 600; color: rgba(255,255,255,.88); }
.pai-montant { display: flex; align-items: baseline; gap: .6rem; margin-top: .15rem; }
.pai-montant span { font-size: 3.9rem; font-weight: 400; letter-spacing: -0.045em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pai-montant small { font-size: 1.15rem; font-weight: 400; color: #fff; }
.pai-sans { margin-top: .35rem; font-size: 1rem; font-weight: 500; color: rgba(255,255,255,.88); }
.pai-jauge { flex: 0 1 25rem; min-width: 15rem; padding: 1rem 1.1rem 1.1rem; border-radius: 1.1rem; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); backdrop-filter: blur(6px); }
.pai-jauge-haut { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 1.75rem; }
.pai-regle { font-weight: 700; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.pai-coche { width: 1.75rem; height: 1.75rem; border-radius: 999px; background: #fff; color: #079455; display: inline-flex; align-items: center; justify-content: center; animation: pai-pose .7s var(--ressort) both; }
.pai-barres { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin-top: .7rem; }
.pai-barres i { position: relative; display: block; height: .55rem; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.22); }
.pai-barres i::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--doux); }
.pai-barres i.on::after { transform: scaleX(1); }
.pai-jauge.merci { animation: pai-lueur 1.6s var(--doux) both; }
@keyframes pai-pose { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pai-lueur { 0% { box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 0 0 0 rgba(255,255,255,.5); } 100% { box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 0 0 26px rgba(255,255,255,0); } }

.pai-alerte { display: flex; align-items: center; gap: .7rem; padding: .85rem 1.1rem; margin-top: 1rem; font-weight: 600; }
.pai-grille { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1rem; align-items: stretch; }
.pai-etapes { display: flex; flex-direction: column; padding-bottom: 1rem; }
.pai-etape { flex: 1; display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: .9rem; padding: .85rem 1.4rem 0; }
.pai-rail { position: relative; display: flex; justify-content: center; }
.pai-etape:not(:last-of-type) .pai-rail::before { content: ''; position: absolute; top: 3rem; bottom: -1.7rem; left: calc(50% - 1px); width: 2px; background: rgb(var(--filet)); }
.pai-etape.actif:not(:last-of-type) .pai-rail::before { background: linear-gradient(180deg, #079455, rgb(var(--elec))); }
.pai-num { width: 3rem; height: 3rem; border-radius: 1rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, rgb(var(--bleu)), rgb(var(--elec))); box-shadow: 0 10px 20px -12px rgb(var(--elec) / .9); }
.pai-num.actif { background: linear-gradient(135deg, #067647, #17B26A); box-shadow: 0 10px 20px -12px rgba(7,148,85,.9); }
.pai-num.probleme { background: linear-gradient(135deg, #B42318, #F04438); }
.pai-corps { padding-bottom: 1rem; min-width: 0; }
.pai-ligne { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.pai-nom { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.015em; }
.pai-euros { font-size: .98rem; font-weight: 500; }
.pai-euros b { font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.pai-payer { width: 100%; margin-top: .85rem; padding: .85rem 1.2rem; font-size: 1rem; }
.pai-payer:disabled { cursor: default; opacity: .75; box-shadow: none; }
.pai-prochain { display: flex; align-items: center; gap: .75rem; margin-top: .7rem; font-weight: 600; }
.pai-note { display: flex; align-items: center; gap: .55rem; margin: auto 1.4rem 0; padding-top: .9rem; border-top: 1px solid rgb(var(--filet)); font-weight: 500; font-size: .92rem; }
.pai-note svg { color: rgb(var(--accent)); }

.pai-fiche { display: flex; flex-direction: column; }
.pai-champs { display: grid; grid-template-columns: minmax(0, 8rem) minmax(0, 1fr); gap: .75rem; padding: .5rem 1.4rem 0; }
.pai-champs .plein { grid-column: 1 / -1; }
.pai-err { margin: .75rem 1.4rem 0; }
.pai-fiche-pied { display: flex; justify-content: flex-end; margin-top: auto; padding: 1rem 1.4rem 1.2rem; }

.pai-factures { padding-bottom: .5rem; }
.fac { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto 7rem; align-items: center; gap: 1.1rem; padding: .8rem 1.4rem; border-top: 1px solid rgb(var(--filet)); transition: background .35s var(--doux), transform .35s var(--doux); animation: carte .8s var(--doux) both; animation-delay: calc(var(--k, 0) * 45ms); }
.carte-tete + .fac, template + .fac { border-top: 0; }
.fac:hover { background: rgb(var(--creux) / .7); }
.fac-num { font-weight: 700; font-size: 1.02rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fac-per { font-size: .94rem; font-weight: 500; }
.fac-montant { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fac-actions { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; }
.fac-pdf { width: 2.6rem; height: 2.6rem; border-radius: .85rem; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, rgb(var(--bleu)), rgb(var(--elec))); box-shadow: 0 8px 16px -10px rgb(var(--elec) / .9); transition: transform .3s var(--ressort); }
.fac-pdf:hover { transform: translateY(-2px); }
.fac-vide { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1.4rem 1.4rem 2.2rem; text-align: center; }
.fac-vide .grand { font-size: 1.05rem; font-weight: 600; }
.fac-fantome { position: relative; width: 6rem; height: 7.6rem; padding: 1rem .8rem; border-radius: .8rem; background: rgb(var(--carte)); box-shadow: 0 0 0 1px rgb(var(--filet)), 0 22px 34px -22px rgba(16,24,40,.4); display: flex; flex-direction: column; gap: .45rem; transform: rotate(-4deg); }
.fac-fantome i { display: block; height: .4rem; border-radius: 999px; background: rgb(var(--bleu) / .14); }
.fac-fantome i:first-child { width: 58%; background: linear-gradient(90deg, rgb(var(--bleu)), rgb(var(--elec))); }
.fac-fantome b { position: absolute; right: .8rem; bottom: .9rem; width: 1.9rem; height: .7rem; border-radius: .25rem; background: #079455; }

@media (max-width: 1100px) { .pai-grille { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .pai-heros { padding: 1.4rem 1.25rem; } .pai-montant span { font-size: 3.1rem; } .pai-jauge { flex: 1 1 100%; }
  .pai-etape { padding-left: 1rem; padding-right: 1rem; } .pai-note { margin-left: 1rem; margin-right: 1rem; }
  .pai-champs { padding-left: 1rem; padding-right: 1rem; }
  .fac { grid-template-columns: auto minmax(0, 1fr) auto; gap: .35rem .8rem; padding: .85rem 1rem; }
  .fac .ag-date { grid-row: 1 / 3; }
  .fac-montant { grid-column: 3; grid-row: 1; text-align: right; }
  .fac .etat { grid-column: 2; grid-row: 2; justify-self: start; }
  .fac-actions { grid-column: 3; grid-row: 2; }
}
.pai-err { color: rgb(var(--rouge)); font-weight: 600; }

/* ================= Page de connexion (09/11/2026) : la vraie réalisation SNEKKER, le dégradé de la barre, le formulaire au calme ================= */
.porte { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(27rem, 1fr); align-items: stretch; justify-content: normal; height: 100vh; height: 100dvh; min-height: 0; padding: 1rem; overflow-y: auto; background: rgb(var(--toile)); }
.porte-scene { position: relative; isolation: isolate; overflow: hidden; border-radius: 1.5rem; padding: 2rem 2.2rem 2rem; color: #fff; display: flex; flex-direction: column; justify-content: space-between; min-height: 0; box-shadow: 0 30px 60px -34px rgba(14,39,66,.7); animation: porte-scene 1.1s var(--doux) both; }
.porte-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 42%; z-index: -3; animation: porte-photo 26s ease-out both; }
.porte-voile { position: absolute; inset: 0; z-index: -2; background: linear-gradient(200deg, rgba(14,39,66,.1) 0%, rgba(20,52,88,.42) 38%, rgba(16,44,74,.9) 74%, #0E2742 100%), linear-gradient(90deg, rgba(33,96,216,.34), rgba(33,96,216,0) 60%); }
.porte-scene .heros-fond i { background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.1); }
.porte-marque { height: 3rem; width: auto; align-self: flex-start; animation: porte-monte .9s var(--doux) .1s both; }

.porte-apercu { position: absolute; top: 2rem; right: 2.2rem; width: min(25rem, 58%); animation: porte-monte 1.1s var(--doux) .45s both; }
.pa-carte { background: rgb(var(--carte)); color: rgb(var(--encre)); border-radius: 1.25rem; padding: 1rem 1.15rem 1.15rem; box-shadow: 0 34px 60px -26px rgba(5,18,36,.75), 0 0 0 1px rgba(255,255,255,.12); }
.pa-tete { font-weight: 700; font-size: 1rem; letter-spacing: -0.015em; margin-bottom: .75rem; }
.pa-ligne { display: flex; gap: .9rem; align-items: flex-start; }
.pa-txt { min-width: 0; }
.pa-titre { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.015em; margin-top: .35rem; }
.pa-motif { font-size: .9rem; font-weight: 500; line-height: 1.35; }
.pa-mail { display: flex; align-items: center; gap: .75rem; width: 76%; margin: -.55rem -1.1rem 0 auto; position: relative; background: rgb(var(--carte)); color: rgb(var(--encre)); border-radius: 1.1rem; padding: .75rem .9rem; box-shadow: 0 26px 44px -22px rgba(5,18,36,.8), 0 0 0 1px rgba(255,255,255,.12); transform: translateY(.9rem); animation: porte-monte 1.1s var(--doux) .7s both; }
.pa-mail .pa-titre { margin-top: 0; }

.porte-accroche { font-size: clamp(2.2rem, 3.3vw, 3.3rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.07; max-width: 17em; text-wrap: balance; animation: porte-monte 1s var(--doux) .25s both; }
.porte-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin-top: 1.5rem; animation: porte-monte 1s var(--doux) .55s both; }
.porte-chiffres > div { padding: .85rem 1rem; border-radius: 1rem; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.porte-chiffres b { display: block; font-size: 1.95rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.porte-chiffres span { display: block; font-size: .94rem; font-weight: 500; line-height: 1.3; margin-top: .1rem; }

.porte-cote { display: flex; align-items: center; justify-content: center; padding: 2rem 1.5rem; min-width: 0; }
.porte-form { width: 100%; max-width: 25rem; animation: porte-monte 1s var(--doux) .2s both; }
.porte .porte-logo { height: 2.7rem; width: auto; margin: 0 0 2.6rem; }
.porte h1.porte-bonjour { text-align: left; font-size: 2.65rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1.12; display: flex; align-items: center; gap: .55rem; min-height: 3rem; animation: porte-bonjour .7s var(--doux) both; }
.porte-bonjour .salut { width: 1em; height: 1em; }
.porte-sous { margin-top: .4rem; font-size: 1.08rem; font-weight: 500; color: rgb(var(--encre)); overflow-wrap: anywhere; min-height: 1.6rem; }
.porte-sous b { font-weight: 700; }
.porte-champ { margin-top: 1.2rem; }
.porte-sous + .porte-champ { margin-top: 2rem; }
.porte-champ label { display: block; font-size: .95rem; font-weight: 600; margin-bottom: .45rem; }
.pc-inp { position: relative; display: flex; align-items: center; height: 3.5rem; border-radius: 1rem; background: rgb(var(--carte)); box-shadow: inset 0 0 0 1px rgb(var(--filet)), 0 1px 2px rgba(16,24,40,.05); transition: box-shadow .35s var(--doux); }
.pc-inp:hover { box-shadow: inset 0 0 0 1px rgb(var(--accent) / .4), 0 1px 2px rgba(16,24,40,.05); }
.pc-inp:focus-within { box-shadow: inset 0 0 0 1.5px rgb(var(--elec)), 0 0 0 4px rgb(var(--elec) / .14); }
.pc-inp > span { position: absolute; left: 1rem; display: inline-flex; color: rgb(var(--accent)); pointer-events: none; }
.pc-inp input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 3rem; font-size: 1.05rem; font-weight: 500; border-radius: inherit; }
.pc-inp input:-webkit-autofill { -webkit-text-fill-color: rgb(var(--encre)); -webkit-box-shadow: 0 0 0 40px rgb(var(--carte)) inset; caret-color: rgb(var(--encre)); }
.pc-oeil { position: absolute; right: .55rem; width: 2.4rem; height: 2.4rem; border-radius: .7rem; display: inline-flex; align-items: center; justify-content: center; color: rgb(var(--accent)); transition: background .3s var(--doux); }
.pc-oeil:hover { background: rgb(var(--creux)); }
.porte-entrer { position: relative; overflow: hidden; width: 100%; height: 3.6rem; margin-top: 1.6rem; display: flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 1rem; color: #fff; font-size: 1.08rem; font-weight: 600; text-align: center; background: linear-gradient(118deg, #102C4A 0%, #224D73 42%, #2563EB 100%); background-size: 160% 100%; box-shadow: 0 18px 30px -16px rgb(var(--elec) / .85); transition: background-position .8s var(--doux), box-shadow .45s var(--doux), transform .25s var(--doux); }
.porte-entrer:hover { background-position: 90% 0; box-shadow: 0 24px 36px -16px rgb(var(--elec) / .95); }
.porte-entrer:active { transform: scale(.985); }
.porte-entrer:disabled { opacity: .75; cursor: default; }
.porte-entrer span:last-child { display: inline-flex; transition: transform .45s var(--ressort); }
.porte-entrer:hover span:last-child { transform: translateX(4px); }
.porte .erreur { text-align: left; font-weight: 600; font-size: .95rem; }
@keyframes porte-scene { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@keyframes porte-photo { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes porte-monte { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } }
@keyframes porte-bonjour { from { opacity: 0; transform: translateY(10px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
@media (max-width: 1100px) { .porte-apercu { display: none; } }
@media (max-width: 900px) {
  .porte { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; padding: .75rem; height: 100dvh; }
  .porte-scene { padding: 1.3rem 1.3rem 1.4rem; gap: 2.4rem; }
  .porte-marque { height: 2.4rem; }
  .porte-accroche { font-size: 1.85rem; }
  .porte-chiffres { display: none; }
  .porte-cote { padding: 1.6rem .6rem 2rem; }
  .porte .porte-logo { display: none; }
  .porte h1.porte-bonjour { font-size: 2.15rem; }
}

/* ================= Barre latérale collée à gauche, réductible (09/11/2026) ================= */
.rail { --side-l: 14.6rem; --side-r: 4.75rem; width: var(--side-l); transition: width .34s var(--doux); }
.rail.reduite { width: var(--side-r); }
.side { top: 0; bottom: 0; left: 0; width: var(--side-l); border-radius: 0; box-shadow: none; transition: width .34s var(--doux), box-shadow .34s var(--doux); }
.side::after { box-shadow: none; }
.rail.reduite .side { width: var(--side-r); }
.rail.reduite.deplie .side { width: var(--side-l); box-shadow: 22px 0 46px -24px rgba(14,39,66,.6); }

.side-logo { position: relative; }
.side-logo img { position: absolute; left: 50%; transform: translateX(-50%); transition: opacity .25s var(--doux); }
.sl-petit { width: 2.4rem; height: 2.4rem !important; border-radius: .65rem; background: #fff; opacity: 0; }
.rail.reduite:not(.deplie) .sl-grand { opacity: 0; }
.rail.reduite:not(.deplie) .sl-petit { opacity: 1; }
.side-epingle { position: absolute; z-index: 3; top: .85rem; right: .6rem; width: 1.9rem; height: 1.9rem; border-radius: .6rem; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: rgba(255,255,255,.1); transition: background-color .3s ease, opacity .25s var(--doux); }
.side-epingle:hover { background: rgba(255,255,255,.24); }
.side-epingle:focus-visible { outline: 2px solid rgba(255,255,255,.7); outline-offset: 2px; }
.rail.reduite:not(.deplie) .side-epingle { opacity: 0; pointer-events: none; }

.nav-btn { white-space: nowrap; overflow: hidden; }
.nav-btn > span:not(.ic):not(.nav-compte) { transition: opacity .22s var(--doux); }
.rail.reduite:not(.deplie) .nav-btn > span:not(.ic):not(.nav-compte) { opacity: 0; }
.rail.reduite:not(.deplie) .nav-compte { position: absolute; top: .22rem; right: .22rem; min-width: 1.15rem; height: 1.15rem; padding: 0 .2rem; border-radius: .38rem; font-size: .68rem; }

.profil-btn { white-space: nowrap; overflow: hidden; transition: background-color .35s ease, padding .34s var(--doux); }
.profil-nom, .profil-chev { transition: opacity .22s var(--doux); }
.rail.reduite:not(.deplie) .profil-btn { padding-left: .37rem; padding-right: .37rem; background: transparent; box-shadow: none; }
.rail.reduite:not(.deplie) .profil-nom, .rail.reduite:not(.deplie) .profil-chev { opacity: 0; }
