:root {
  --navy: #1C4477;
  --navy-dark: #17375F;
  --navy-light: #24507F;
  --sky: #3A97D4;
  --ink: #0F1E33;
  --ink-2: #2B3A50;
  --muted: #4A5A70;
  --line: #E1E6EE;
  --line-2: #EEF1F5;
  --bg: #F3F5F8;
  --card: #FFFFFF;
  --red: #9B1C1C; --red-bg: #FDE8E8;
  --amber: #92400E; --amber-bg: #FEF3C7;
  --green: #166534; --green-bg: #DCFCE7;
  --blue: #1C4477; --blue-bg: #DBEAFE;
  --violet: #3730A3; --violet-bg: #E0E7FF;
  --grey-bg: #EEF1F5;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Inter, system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
a { color: var(--navy); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.petit { font-size: 13px; }
.gras { font-weight: 600; }

/* Boutons & champs */
button, .btn { font: inherit; font-size: 14px; font-weight: 600; min-height: 44px; padding: 10px 16px; border-radius: 10px; border: 1px solid #CDD5E0; background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
button:hover, .btn:hover { background: #F7F9FB; }
button:disabled { opacity: .55; cursor: not-allowed; }
.btn-primaire { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primaire:hover { background: var(--navy-dark); }
.btn-danger { color: var(--red); border-color: #F3B4B4; }
.btn-lien { border: 0; background: none; color: var(--navy); padding: 6px 4px; min-height: 36px; font-weight: 600; }
.btn-plein { width: 100%; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
input, select, textarea { font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid #CDD5E0; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid #93C5FD; outline-offset: 1px; }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--navy); flex: none; }
label.case { flex-direction: row; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: var(--ink); padding: 10px 0; }
.form { display: flex; flex-direction: column; gap: 14px; }
.erreur { color: var(--red); background: var(--red-bg); padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.info { color: var(--ink-2); background: var(--blue-bg); padding: 10px 12px; border-radius: 8px; font-size: 14px; }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.b-rouge { background: var(--red-bg); color: var(--red); }
.b-orange { background: var(--amber-bg); color: var(--amber); }
.b-vert { background: var(--green-bg); color: var(--green); }
.b-bleu { background: var(--blue-bg); color: var(--blue); }
.b-violet { background: var(--violet-bg); color: var(--violet); }
.b-gris { background: var(--grey-bg); color: var(--ink-2); }
.plaque { font-weight: 700; letter-spacing: .05em; padding: 3px 8px; border: 1.5px solid var(--ink); border-radius: 5px; background: #fff; color: var(--ink); text-decoration: none; white-space: nowrap; display: inline-block; }
.plaque-grande { font-size: 24px; padding: 4px 12px; border-width: 2px; }

/* Écrans d'accueil (connexion…) */
.ecran-centre { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.carte-auth { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; display: flex; flex-direction: column; gap: 18px; }
.carte-auth .logo { width: 210px; max-width: 70%; align-self: center; }
.surtitre { color: var(--sky); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }

/* Mise en page admin */
.coquille { display: flex; min-height: 100vh; }
.menu-fermer { display: none; }
.menu { width: 250px; flex: none; background: var(--navy-dark); color: #E6ECF5; padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; }
.menu .logo-boite { background: #fff; border-radius: 10px; padding: 10px 12px; display: flex; justify-content: center; }
.menu .logo-boite img { width: 100%; max-width: 180px; }
.menu nav { display: flex; flex-direction: column; gap: 2px; }
.menu nav a { display: block; padding: 10px 12px; border-radius: 8px; color: #D3DDEA; text-decoration: none; font-size: 14px; font-weight: 500; }
.menu nav a.actif { background: var(--navy-light); color: #fff; font-weight: 600; }
.menu nav a:hover { background: #1F4570; color: #fff; }
.menu .moi { margin-top: auto; border-top: 1px solid #2D4D75; padding-top: 12px; font-size: 13px; color: #C9D6E6; display: flex; flex-direction: column; gap: 6px; }
.menu .moi button { background: transparent; color: #fff; border-color: #3B5B83; min-height: 38px; }
.contenu { flex: 1; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.barre-mobile { display: none; }
.entete { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { padding: 5px 10px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }

.carte { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.grille-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
@media (max-width: 560px) { .grille-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .grille-kpi .kpi { padding: 14px; } .grille-kpi .kpi .val { font-size: 26px; } }
.kpi { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; grid-template-rows: auto auto 1fr; gap: 6px; box-shadow: 0 1px 2px rgba(15,30,51,.04); overflow: hidden; transition: transform .12s, box-shadow .12s; }
.kpi:active { transform: scale(.98); }
.kpi::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: transparent; }
.kpi.kpi-ok::after { background: #15803D; } .kpi.kpi-attention::after { background: #D97706; } .kpi.kpi-alerte::after { background: #B91C1C; }
.kpi-tete { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kpi-ico { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 16px; }
.kpi-titre { font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.kpi .val { font-size: 34px; font-weight: 750; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 4px; color: var(--navy-dark); }
.kpi-sous { font-size: 12.5px; color: var(--muted); line-height: 1.35; align-self: start; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kpi.kpi-large { grid-template-rows: auto auto auto 1fr; }
/* Tableau de bord en widgets */
.widgets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.widget { position: relative; min-width: 0; display: flex; flex-direction: column; }
.widget > .kpi, .widget > .carte { flex: 1; }
.widget.w-large { grid-column: span 2; }
.widget.w-bloc, .widgets > .vide { grid-column: 1 / -1; }
.kpi-detail { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.kpi-detail li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kpi-detail .point { flex: none; }
.barre-edition { position: sticky; top: calc(6px + env(safe-area-inset-top)); z-index: 5; display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; box-shadow: 0 6px 18px rgba(15,30,51,.12); background: #EEF4FF; border: 1px solid #C7D7F0; border-radius: var(--radius); }
.en-edition .widget > :first-child { pointer-events: none; animation: frisson .9s ease-in-out infinite; }
.en-edition .widget:nth-child(2n) > :first-child { animation-delay: -.45s; }
@keyframes frisson { 0%, 100% { transform: rotate(-.4deg); } 50% { transform: rotate(.4deg); } }
@media (prefers-reduced-motion: reduce) { .en-edition .widget > :first-child { animation: none; } }
.en-edition .widget > :first-child { outline: 2px dashed #9DB5D8; outline-offset: 2px; }
.en-edition .widget { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; cursor: grab; }
.widget.w-glisse { z-index: 20; cursor: grabbing; pointer-events: none; filter: drop-shadow(0 14px 24px rgba(15,30,51,.25)); }
.widget.w-glisse > :first-child { animation: none; }
.en-glisse .widget:not(.w-glisse) { transition: transform .15s; }
.w-coin { position: absolute; top: -8px; z-index: 3; width: 28px; height: 28px; min-height: 0; padding: 0; border-radius: 50%; font-size: 18px; font-weight: 700; line-height: 1; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(15,30,51,.2); }
.w-coin.w-retirer { left: -8px; background: #6B7280; color: #fff; border: 2px solid #fff; }
.w-coin.w-taille { right: -8px; background: #fff; color: var(--navy); border: 1px solid var(--line); font-size: 15px; }
.be-boutons { display: flex; gap: 8px; align-items: center; }
.be-boutons button { min-height: 38px; padding: 6px 12px; font-size: 14px; }
.w-ajout { padding: 14px; border: 2px dashed #9DB5D8; border-radius: var(--radius); gap: 10px; background: #fff; }
.w-ajout button { min-height: 36px; padding: 6px 12px; font-size: 13px; border-radius: 999px; }
@media (max-width: 860px) { .widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .widgets .kpi { padding: 14px; } .widgets .kpi .val { font-size: 30px; } }
@media (max-width: 860px) { .widget.w-large { grid-column: 1 / -1; } }
.deux-col { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.deux-col > * { flex: 1 1 380px; }
.ligne { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.ligne:last-child { border-bottom: 0; }
.ligne .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.point { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.alerte { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 8px; background: #F7F9FB; text-decoration: none; color: inherit; }
.alerte .point { margin-top: 5px; }
.vide { color: var(--muted); font-size: 14px; padding: 8px 0; }

.filtres { display: flex; flex-wrap: wrap; gap: 8px; }
.filtre { min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 0; background: var(--grey-bg); color: var(--ink-2); font-weight: 500; }
.filtre.on { background: var(--navy); color: #fff; font-weight: 600; }
.tableau-boite { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 8px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }

/* Fiche véhicule */
.fiche-tete { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.meta { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; color: var(--muted); }
.meta strong { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.section-titre { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.trait { display: flex; align-items: center; gap: 10px; }
.trait::before { content: ""; width: 4px; height: 22px; border-radius: 2px; background: var(--navy); }
.trait.vert::before { background: #0F766E; }
.resp { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--blue-bg); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }

/* Fenêtre (formulaires) */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 40px); }
dialog::backdrop { background: rgba(15, 30, 51, .45); }
dialog .dlg { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
dialog .dlg-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* App terrain (ambulanciers) */
.terrain { max-width: 520px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.terrain-tete { background: var(--navy-dark); color: #fff; padding: calc(18px + env(safe-area-inset-top)) 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.terrain-tete .haut { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.terrain-tete .logo-mini { background: #fff; border-radius: 8px; padding: 4px 6px; display: flex; }
.terrain-tete .logo-mini img { height: 28px; }
.terrain-tete select { background: #fff; }
.resp-bandeau { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--navy-light); font-size: 13px; }
.terrain-corps { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.tuile { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.tuile .ico { flex: none; width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.tuile .grow { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.bandeau-alerte { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--red-bg); color: #7F1D1D; font-size: 14px; }
.pied-fixe { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); display: flex; gap: 10px; }

.btn-sombre, .btn-sombre:hover { background: transparent; color: #fff; border-color: #3B5B83; }
.pastille { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: #DC2626; color: #fff; font-size: 12px; font-weight: 700; }
.menu nav a { display: flex; align-items: center; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 100; max-width: calc(100vw - 32px); }
#toast.visible { opacity: 1; }

/* Contrôle du matériel (parcours ludique) */
.ctrl-tete { background: #fff; padding: calc(16px + env(safe-area-inset-top)) 18px 12px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; position: sticky; top: 0; z-index: 5; }
.ctrl-barre { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.ctrl-barre > div { height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--sky), #15803D); transition: width .35s ease; }
.ctrl-pastilles { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.ctrl-pastille { flex: none; min-height: 38px; width: 38px; padding: 0; border-radius: 50%; font-size: 18px; background: var(--grey-bg); border: 2px solid transparent; }
.ctrl-pastille.on { border-color: var(--navy); background: var(--blue-bg); }
.ctrl-pastille.ok { background: var(--green-bg); }
.ctrl-pastille.ko { background: var(--red-bg); }
.ctrl-tout { min-height: 40px; border-radius: 999px; background: var(--green-bg); border-color: #86EFAC; color: var(--green); }
.ctrl-item { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 14px; background: #fff; border: 2px solid var(--line); transition: background .2s, border-color .2s; }
.ctrl-item.ok { background: #F0FDF4; border-color: #86EFAC; }
.ctrl-item.ko { background: #FEF2F2; border-color: #FCA5A5; }
.ctrl-choix { display: flex; gap: 8px; flex: none; }
.ctrl-choix button { width: 52px; min-height: 52px; padding: 0; border-radius: 14px; font-size: 22px; font-weight: 700; color: var(--muted); transition: transform .12s; }
.ctrl-choix button:active { transform: scale(.9); }
.ctrl-oui.on { background: #16A34A; border-color: #16A34A; color: #fff; }
.ctrl-non.on { background: #DC2626; border-color: #DC2626; color: #fff; }
.ctrl-score { width: 120px; height: 120px; border-radius: 50%; border: 8px solid #F59E0B; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ctrl-score strong { font-size: 40px; }
.ctrl-score span { color: var(--muted); font-size: 14px; }
.ctrl-score.parfait { border-color: #16A34A; animation: pop .5s ease; }
@keyframes pop { 0% { transform: scale(.6); } 70% { transform: scale(1.08); } 100% { transform: scale(1); } }
.confettis { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.confettis i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: tombe linear forwards; }
@keyframes tombe { to { top: 105vh; transform: rotate(720deg); opacity: .7; } }

@media (max-width: 860px) {
  .coquille { flex-direction: column; }
  .menu { display: flex; position: fixed; top: 0; bottom: 0; left: 0; z-index: 70; width: min(86vw, 330px); overflow-y: auto; -webkit-overflow-scrolling: touch; padding: calc(16px + env(safe-area-inset-top)) 14px calc(20px + env(safe-area-inset-bottom)); transform: translateX(-105%); transition: transform .25s ease; box-shadow: 8px 0 30px rgba(0,0,0,.25); visibility: hidden; }
  .menu.ouvert { transform: none; visibility: visible; }
  .menu-fond { position: fixed; inset: 0; z-index: 65; background: rgba(15,30,51,.45); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .menu-fond.ouvert { opacity: 1; pointer-events: auto; }
  .menu-fermer { display: grid !important; align-self: flex-end; place-items: center; width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%; background: rgba(255,255,255,.12); border: 0; color: #fff; font-size: 18px; position: relative; z-index: 2; flex: none; margin-bottom: -6px; }
  .menu .logo-boite { flex: none; }
  html.menu-ouvert, html.menu-ouvert body { overflow: hidden; }
  .barre-mobile { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--navy-dark); color: #fff; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; }
  .barre-mobile img { height: 30px; background: #fff; border-radius: 6px; padding: 3px 6px; }
  .barre-mobile button { background: transparent; color: #fff; border-color: #3B5B83; }
  .barre-mobile > div > .btn, .barre-mobile > div > button { padding: 10px 12px; }
  .barre-mobile .btn-tableau { gap: 6px; background: #fff; color: var(--navy-dark); border-color: #fff; }
  .barre-mobile .btn-tableau svg { stroke: var(--navy-dark); }
  .barre-mobile .btn-tableau.actif { background: rgba(255,255,255,.14); color: #fff; border-color: #3B5B83; }
  .barre-mobile .btn-tableau.actif svg { stroke: #fff; }
  .contenu { padding: 18px 16px; }
  h1 { font-size: 22px; }
}
@media (max-width: 440px) { .barre-mobile .txt-menu { display: none; } }
@media (max-width: 350px) { .barre-mobile .txt-tableau { font-size: 12px; } }

/* Photos de départ */
.vignettes-depart { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .vignettes-depart { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vignette { position: relative; display: block; padding: 0; min-height: 0; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--line-2); }
.vignette img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vignette span { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 8px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(15, 30, 51, .65); text-align: left; }
.vignette.vide-v { border-style: dashed; border-color: #94A3B8; background: #fff; }
.vignette.vide-v span { background: none; color: var(--muted); top: 50%; bottom: auto; transform: translateY(-50%); text-align: center; }

/* Signature au doigt */
.pad-boite { display: flex; flex-direction: column; gap: 6px; }
.pad-signature { width: 100%; height: 170px; border: 2px dashed #94A3B8; border-radius: 12px; background: #fff; touch-action: none; cursor: crosshair; display: block; }

/* Fiche de contrôle imprimable */
.fiche-page { background: var(--bg); min-height: 100vh; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.fiche-outils { display: flex; gap: 10px; flex-wrap: wrap; width: min(820px, 100%); }
.fiche { background: #fff; width: min(820px, 100%); padding: 28px; border-radius: 12px; box-shadow: 0 1px 3px rgba(15,30,51,.12); color: #000; font-size: 13px; }
.fiche-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 2px solid var(--navy); padding-bottom: 10px; margin-bottom: 12px; }
.fiche-tete h1 { font-size: 18px; text-transform: uppercase; }
.fiche-infos { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; font-size: 14px; }
.fiche-table { width: 100%; border-collapse: collapse; }
.fiche-table th, .fiche-table td { border: 1px solid #9AA6B8; padding: 4px 6px; }
.fiche-table th { background: #E8EEF6; font-size: 12px; text-transform: uppercase; }
.fiche-cat td { background: #F3F5F8; font-weight: 700; }
.fiche-manques { margin-top: 10px; color: #9B1C1C; }
.fiche-signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; border-top: 2px solid var(--navy); padding-top: 12px; }
.fiche-signatures p { margin: 0 0 4px; }
.fiche-sign { height: 80px; max-width: 240px; object-fit: contain; }
.fiche-sign.vide { display: flex; align-items: center; color: var(--muted); }
@media (max-width: 600px) { .fiche { padding: 14px; } .fiche-signatures { grid-template-columns: 1fr; } }
@media print {
  @page { size: A4; margin: 10mm; }
  body { background: #fff; }
  .fiche-outils, #toast { display: none !important; }
  .fiche-page { padding: 0; background: #fff; }
  .fiche { box-shadow: none; padding: 0; width: 100%; }
  .fiche-table tr, .fiche-signatures { break-inside: avoid; }
}

/* Fiche véhicule : suivi en haut, matériel replié */
details.repli { display: block; }
.repli-corps { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; }
details.repli > summary { list-style: none; display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 44px; }
details.repli > summary::-webkit-details-marker { display: none; }
.repli-fleche { margin-left: auto; flex: none; font-size: 26px; color: var(--navy); transition: transform .2s; line-height: 1; }
details.repli[open] > summary .repli-fleche { transform: rotate(90deg); }
details.repli[open] > summary { padding-bottom: 8px; border-bottom: 1px solid var(--line); }

/* Inventaire des stocks */
.stock-qte { display: flex; flex-direction: column; align-items: center; min-width: 56px; }
.stock-qte strong { font-size: 22px; line-height: 1.1; }
.stock-btn { min-width: 44px; min-height: 44px; padding: 0; font-size: 22px; font-weight: 700; }

/* Tableau de bord : bandeau d'accueil */
.bandeau-accueil { background: var(--navy-dark); color: #fff; border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.bandeau-accueil h1 { color: #fff; font-size: 24px; margin-top: 2px; }
.bandeau-date { font-size: 13px; color: #C9D6E6; }
.bandeau-pastilles { display: flex; gap: 8px; flex-wrap: wrap; }
.bandeau-pastille { background: rgba(255,255,255,.14); color: #fff; border: 1px solid transparent; border-radius: 999px; min-height: 36px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.bandeau-pastille:hover { background: rgba(255,255,255,.22); }
.bandeau-pastille.on { background: #fff; color: var(--navy-dark); }
.bandeau-detail { font-size: 13px; color: #DCE6F2; }
.bandeau-detail:empty { display: none; }
.bandeau-reglage { background: rgba(255,255,255,.12); border: 0; color: #fff; min-width: 44px; min-height: 44px; padding: 0; font-size: 20px; border-radius: 12px; }
.bandeau-reglage:hover { background: rgba(255,255,255,.22); }

/* Flotte en dossiers */
.soc-num { background: var(--navy-dark); color: #fff; font-weight: 700; border-radius: 8px; padding: 3px 9px; font-size: 15px; flex: none; }
.flotte-liste { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.flotte-ligne { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); min-height: 48px; }
.flotte-ligne:last-child { border-bottom: 0; }
.flotte-ligne:hover { background: #F7F9FB; }
.flotte-modele { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flotte-point { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.flotte-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.flotte-carte { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.flotte-carte:hover { border-color: #CDD5E0; }

/* ---------- Fiche véhicule : en-tête ---------- */
.fiche-hero { gap: 14px; }
.fiche-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.fiche-sous { font-size: 14px; color: var(--muted); margin: 0; }
.fiche-sous strong { color: var(--ink); font-weight: 600; }

.plaque-fr { display: inline-flex; align-items: stretch; height: 46px; border: 2px solid #1A1A1A; border-radius: 7px; background: #fff; overflow: hidden; box-shadow: 0 1px 0 rgba(15,30,51,.08), inset 0 0 0 1px #fff; }
.pf-bande { width: 30px; background: #0B3EA8; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 13px; font-weight: 700; line-height: 1; flex: none; }
.pf-etoiles { width: 17px; height: 17px; }
.pf-dep { font-size: 14px; }
.pf-blason { width: 13px; height: 9px; border-radius: 2px; background: linear-gradient(90deg, #fff 0 33%, #fff 33% 66%, #fff 66%); opacity: .9; }
.pf-num { padding: 0 12px; display: flex; align-items: center; font-size: 26px; font-weight: 800; letter-spacing: .06em; color: #111; font-variant-numeric: tabular-nums; white-space: nowrap; }

.info-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 720px) { .info-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.info-tuile { background: var(--bg); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.it-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.it-val { font-size: 16px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it-val.mono { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.it-sous { font-size: 12px; color: var(--muted); }
.info-tuile.manque .it-val { color: #9AA5B4; font-weight: 500; font-size: 14px; }

.docs-essentiels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.doc-tuile { min-height: 0; padding: 12px 6px 10px; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: center; }
.doc-tuile:active { transform: scale(.97); }
.dt-ic { width: 38px; height: 38px; border-radius: 50%; background: var(--blue-bg); display: flex; align-items: center; justify-content: center; }
.dt-lib { font-size: 12px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.dt-etat { font-size: 11px; font-weight: 500; color: var(--green); }
.doc-tuile.absent { border-style: dashed; background: var(--bg); }
.doc-tuile.absent .dt-ic { background: #fff; }
.doc-tuile.absent .dt-etat { color: var(--navy); font-weight: 600; }

.actions-mini { gap: 6px; padding-top: 4px; border-top: 1px solid var(--line-2); }
.actions-mini > button, .actions-mini > .btn { min-height: 36px; padding: 6px 12px; font-size: 13px; border-radius: 999px; }

/* ---------- Visionneuse plein écran ---------- */
dialog.visionneuse { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; background: #0B1220; color: #fff; display: flex; flex-direction: column; }
dialog.visionneuse:not([open]) { display: none; }
.vis-barre { display: flex; align-items: center; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) 14px 10px; }
.vis-btn { background: rgba(255,255,255,.12); border: 0; border-radius: 50%; width: 44px; height: 44px; padding: 0; }
.vis-corps { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 8px; overflow: auto; }
.vis-corps img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; touch-action: pinch-zoom; }
.vis-pdf { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.vis-actions { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; padding: 10px 14px calc(14px + env(safe-area-inset-bottom)); }
.vis-actions button:not(.btn-primaire) { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }

/* ---------- Mécanique ---------- */
.jauge { height: 10px; border-radius: 999px; background: #E8EDF4; overflow: hidden; }
.jauge > div { height: 100%; border-radius: 999px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.meca-ligne { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.meca-ligne.meca-afaire { border-color: #FCA5A5; background: #FFF7F7; }
.meca-ligne.meca-bientot { border-color: #FCD34D; background: #FFFCF2; }
.meca-actions { display: flex; flex-direction: column; gap: 4px; align-items: stretch; flex: none; }
.meca-actions .btn-primaire { min-height: 40px; padding: 8px 14px; }
@media (max-width: 560px) { .meca-ligne { flex-direction: column; align-items: stretch; } .meca-actions { flex-direction: row; justify-content: space-between; } }
.meca-score { flex-direction: row; align-items: center; gap: 18px; flex-wrap: wrap; }
.score-rond { --p: 0; --c: #15803D; width: 92px; height: 92px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), #E8EDF4 0); }
.score-rond span { width: 72px; height: 72px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 700; color: var(--c); }
.meca-choix { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.meca-choix select { min-height: 38px; font-size: 13px; }

/* ---------- Carnet d'entretien ---------- */
.carnet { min-height: 100vh; background: #E9EDF3; padding: calc(12px + env(safe-area-inset-top)) 12px 40px; }
.carnet-barre { max-width: 820px; margin: 0 auto 12px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.carnet-feuille { max-width: 820px; margin: 0 auto; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 40px rgba(15,30,51,.12); }
.carnet-couverture { background: linear-gradient(160deg, #17375F 0%, #1C4477 55%, #24569A 100%); color: #fff; padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 20px; }
.cc-haut { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cc-logo { height: 52px; background: #fff; border-radius: 10px; padding: 6px 10px; }
.cc-societe { display: flex; flex-direction: column; text-align: right; font-size: 13px; color: #C9D6E6; }
.cc-societe strong { color: #fff; font-size: 15px; }
.cc-sur { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: #9CC0FF; }
.cc-titre h1 { color: #fff; font-size: 30px; margin: 4px 0 0; }
.carnet-couverture .plaque-fr { align-self: flex-start; transform-origin: left; }
.cc-infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0; }
.cc-infos div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 10px 12px; }
.cc-infos dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #9CC0FF; }
.cc-infos dd { margin: 2px 0 0; font-weight: 600; word-break: break-word; }
.carnet-cles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.carnet-cles div { padding: 18px 14px; display: flex; flex-direction: column; gap: 2px; text-align: center; border-right: 1px solid var(--line); }
.carnet-cles div:last-child { border-right: 0; }
.carnet-cles strong { font-size: 20px; color: var(--navy-dark); }
.carnet-cles span { font-size: 12px; color: var(--muted); }
@media (max-width: 560px) { .carnet-cles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .carnet-cles div:nth-child(2) { border-right: 0; } .carnet-cles div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .carnet-couverture { padding: 22px 18px; } .cc-titre h1 { font-size: 24px; } }
.carnet-section { padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 560px) { .carnet-section { padding: 20px 16px; } }
.carnet-section h2 { font-size: 18px; color: var(--navy-dark); display: flex; align-items: center; gap: 10px; }
.carnet-section h2::before { content: ''; width: 4px; height: 20px; border-radius: 2px; background: #3A97D4; }
.carnet-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.carnet-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px; border-bottom: 2px solid var(--line); }
.carnet-table td { padding: 10px 8px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.carnet-etat { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--c); white-space: nowrap; }
.carnet-etat::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
@media (max-width: 560px) { .carnet-table thead { display: none; } .carnet-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); } .carnet-table td { border: 0; padding: 0; } .carnet-table td:nth-child(3), .carnet-table td:nth-child(2) { grid-column: 1; color: var(--muted); font-size: 13px; } .carnet-table td:nth-child(4) { grid-row: 1; grid-column: 2; } }
.carnet-annee h3 { font-size: 13px; letter-spacing: .1em; color: var(--muted); margin: 6px 0 10px; }
.carnet-frise { list-style: none; margin: 0; padding: 0 0 0 4px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.carnet-frise::before { content: ''; position: absolute; left: 96px; top: 6px; bottom: 6px; width: 2px; background: #D7E2F0; }
.carnet-frise li { display: grid; grid-template-columns: 84px 1fr; gap: 28px; position: relative; break-inside: avoid; }
.carnet-frise li::before { content: ''; position: absolute; left: 87px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #1C4477; box-shadow: 0 0 0 4px #fff; }
.cf-date { display: flex; flex-direction: column; text-align: right; font-size: 13px; }
.cf-date span { color: var(--muted); font-size: 12px; }
.cf-carte { background: #F7F9FC; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.cf-carte p { margin: 0; font-size: 14px; }
.cf-titre { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cf-cout { font-weight: 700; color: var(--navy-dark); white-space: nowrap; }
.cf-lib { color: var(--muted); }
.cf-details { color: var(--ink-2); }
.cf-pied { color: var(--muted); font-size: 12px !important; }
@media (max-width: 560px) { .carnet-frise::before { left: 6px; } .carnet-frise li { grid-template-columns: 1fr; gap: 6px; padding-left: 24px; } .carnet-frise li::before { left: 1px; } .cf-date { flex-direction: row; gap: 8px; text-align: left; } }
.carnet-pied { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 16px 28px; background: #F7F9FC; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff !important; }
  .no-print, #toast { display: none !important; }
  .carnet { background: #fff; padding: 0; }
  .carnet-feuille { box-shadow: none; border-radius: 0; max-width: none; }
  .carnet-couverture, .score-rond, .carnet-etat::before, .carnet-frise li::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .carnet-section h2 { break-after: avoid; }
}

/* ---------- Contrôles techniques (liste de la flotte) ---------- */
.ct-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
@media (max-width: 560px) { .ct-grille { grid-template-columns: 1fr; gap: 10px; } }
.ct-carte { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.ct-carte:active { transform: scale(.985); }
.ct-carte:hover { box-shadow: 0 6px 18px rgba(15,30,51,.08); }
.ct-carte.ct-depasse, .ct-carte.ct-urgent { border-color: #FCA5A5; background: #FFF7F7; }
.ct-carte.ct-prevoir { border-color: #FCD34D; background: #FFFCF2; }
.ct-haut, .ct-bas { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ct-milieu { display: flex; align-items: center; gap: 14px; }
.ct-jours { font-size: 28px; font-weight: 700; min-width: 84px; }
.ct-voir { color: var(--navy); font-weight: 600; }

/* ---------- Planning des équipages ---------- */
.planning-jour button { min-height: 40px; }
.planning-jour > div:first-child button { width: 44px; font-size: 22px; padding: 0; }
.equipage-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.equipage-grille label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; min-width: 0; }
.equipage-grille .eg-large { grid-column: 1 / -1; }
@media (max-width: 560px) { .equipage-grille { grid-template-columns: 1fr; } }
.equipage-doublon { border-color: #FCA5A5; }

/* ---------- Vue ambulancier : salut + ma journée ---------- */
.terrain-salut h1 { color: #fff; font-size: 26px; margin: 0; }
.terrain-salut span { color: #C9D6E6; font-size: 14px; }
.terrain-salut { display: flex; flex-direction: column; gap: 2px; }
.ma-journee { background: #fff; color: var(--ink); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.mj-haut { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mj-titre { font-weight: 700; font-size: 15px; }
.mj-heure { font-size: 26px; font-weight: 800; color: var(--navy-dark); font-variant-numeric: tabular-nums; }
.mj-lignes { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.mj-lignes > div { display: flex; gap: 10px; align-items: baseline; }
.mj-changer { align-self: flex-start; min-height: 32px; padding: 4px 12px; font-size: 13px; border-radius: 999px; }
.mj-demain { background: #F4F7FB; box-shadow: none; border: 1px solid var(--line); }
.mj-demain .mj-heure { font-size: 20px; }

.mj-valider { min-height: 52px; font-size: 16px; font-weight: 700; border-radius: 14px; background: #15803D; border-color: #15803D; color: #fff; }
.mj-valide { padding: 10px 12px; border-radius: 12px; background: #DCFCE7; color: #166534; font-weight: 700; font-size: 14px; text-align: center; }
.validations .score-rond { width: 76px; height: 76px; }
.validations .score-rond span { width: 60px; height: 60px; font-size: 17px; }
.mj-confirmer { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: #F0FDF4; border: 1px solid #BBF7D0; }

/* ---------- Équipe & comptes ---------- */
.comptes-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
@media (max-width: 560px) { .comptes-grille { grid-template-columns: 1fr; gap: 10px; } }
.compte { border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #fff; min-width: 0; }
.compte-attente { border-color: #FCD34D; background: #FFFCF2; }
.compte-tete { display: flex; align-items: center; gap: 10px; min-width: 0; }
.compte-avatar { width: 42px; height: 42px; flex: none; font-size: 14px; }
.compte-nom { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.compte-nom span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compte-infos { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 14px; }
.compte-infos a { color: var(--navy); font-weight: 600; text-decoration: none; }
.compte-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 10px; border-top: 1px solid var(--line-2); }
.compte-actions .btn, .compte-actions .btn-primaire { min-height: 38px; padding: 6px 12px; font-size: 14px; border-radius: 999px; }
.compte-desactiver { color: #9B1C1C; margin-left: auto; }

/* ---------- Tableaux en cartes sur téléphone ---------- */
@media (max-width: 640px) {
  .tableau-boite { overflow: visible; }
  .tableau-boite table, .tableau-boite tbody { display: block; width: 100%; }
  .tableau-boite thead { display: none; }
  .tableau-boite tr { display: flex; flex-direction: column; gap: 6px; padding: 12px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
  .tableau-boite td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0; border: 0; text-align: right; min-width: 0; white-space: normal !important; }
  .tableau-boite td::before { content: attr(data-label); flex: none; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; text-align: left; }
  .tableau-boite td:first-child { font-size: 15px; }
  .tableau-boite td:first-child::before { content: none; }
  .tableau-boite td[data-label=""]::before, .tableau-boite td:not([data-label])::before { content: none; }
  .tableau-boite td:empty { display: none; }
}

/* ---------- Bascule vue iPhone / ordinateur ---------- */
.bascule-vue { position: fixed; left: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60; width: 34px; height: 34px; min-height: 0; padding: 0; border-radius: 50%; font-size: 16px; line-height: 1; display: grid; place-items: center; background: rgba(255,255,255,.9); border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(15,30,51,.18); opacity: .75; }
.bascule-vue:hover, .bascule-vue:focus-visible { opacity: 1; }
@media print { .bascule-vue { display: none; } }
.cadre-page { margin: 0; min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, #17375F, #24569A); padding: 24px; }
.cadre-telephone { width: 390px; height: min(844px, calc(100vh - 48px)); border: 12px solid #0B1626; border-radius: 46px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.45); }

/* ---------- Widgets sociétés (tableau de bord) ---------- */
.soc-widgets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .soc-widgets { grid-template-columns: 1fr; gap: 10px; } }
.soc-widget { display: flex; flex-direction: column; gap: 14px; }
.soc-tete { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.soc-tete strong { font-size: 16px; }
.soc-tete .soc-num { flex: none; }
.soc-fleche { margin-left: auto; color: var(--navy); font-size: 22px; }
.soc-chiffres { display: flex; gap: 22px; flex-wrap: wrap; }
.soc-chiffres > div { display: flex; flex-direction: column; }
.soc-chiffres .val { margin-top: 0; font-size: 30px; }
.soc-plaques { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.soc-plaque { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 8px 10px 8px 14px; border-radius: 12px; background: #F6F8FB; border: 1px solid var(--line); color: inherit; text-decoration: none; min-width: 0; transition: transform .12s; }
.soc-plaque::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c); }
.soc-plaque:active { transform: scale(.97); }
.soc-plaque strong { font-size: 14px; letter-spacing: .04em; }
.soc-plaque span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.soc-sous-titre { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: -6px; }

.soc-widget { gap: 0; }
.soc-resume { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 12px; }
.soc-resume::-webkit-details-marker { display: none; }
.soc-fleche { transition: transform .2s; }
.soc-widget[open] .soc-fleche { transform: rotate(90deg); }
.soc-contenu { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line-2); }
.soc-sous-titre { margin-bottom: -4px; }
.soc-tete .soc-num { width: 50px; height: 50px; padding: 0; display: grid; place-items: center; border-radius: 15px; font-size: 19px; letter-spacing: .02em; background: linear-gradient(145deg, #3A7BD5 0%, #1C4477 55%, #17375F 100%); box-shadow: 0 6px 14px rgba(28,68,119,.28), inset 0 1px 0 rgba(255,255,255,.25); }

/* Signalement : appeler la régulation en premier */
.appel-regulation { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: #DC2626; color: #fff; box-shadow: 0 8px 20px rgba(220,38,38,.3); }
.ar-titre { font-size: 19px; font-weight: 800; line-height: 1.2; }
.ar-texte { font-size: 14.5px; line-height: 1.45; color: #FEE2E2; }
.ar-bouton { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 14px; text-align: center; min-height: 54px; border-radius: 14px; background: #fff; color: #B91C1C; font-size: 17px; font-weight: 800; text-decoration: none; }
.ar-bouton:active { transform: scale(.98); }
.ar-num { font-size: 15px; font-weight: 700; letter-spacing: .03em; opacity: .9; }

/* ---------- Vue ambulancier (test RH) : barre d'onglets ---------- */
.rh { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
.rh .pied-fixe { bottom: calc(66px + env(safe-area-inset-bottom)); }
.rh-onglets { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
.rh-onglets a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.rh-onglets a.actif { color: var(--navy); background: #EEF4FF; }
.rh-ico { font-size: 21px; line-height: 1; }
.rh-bandeau-test { margin: 0 16px 8px; padding: 8px 12px; border-radius: 10px; background: #F5F3FF; color: #5B21B6; font-size: 12px; text-align: center; }
.rh-jour { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.rh-jour.rh-auj { border: 2px solid var(--navy); background: #F4F8FF; }
.rh-jour.rh-passe { opacity: .55; }
.rh-date { width: 44px; flex: none; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.rh-date strong { font-size: 20px; color: var(--navy-dark); }
.rh-date span { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.rh-a-venir { gap: 10px; }
/* la petite bascule de vue ne doit pas cacher la barre d'onglets */
body:has(.rh-onglets) .bascule-vue { bottom: calc(80px + env(safe-area-inset-bottom)); }

/* Fiche salarié */
.fiche-salarie { max-width: 560px; }
.fiche-salarie h3 { margin: 6px 0 -2px; font-size: 15px; }
.fs-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fs-grille label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; min-width: 0; }
.fs-large { grid-column: 1 / -1; }
.fs-email { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: #F6F8FB; border: 1px solid var(--line); min-width: 0; }
.fs-email a { font-weight: 600; color: var(--navy); word-break: break-all; }
@media (max-width: 480px) { .fs-grille { grid-template-columns: 1fr; } }

/* Champ mot de passe avec œil */
.champ-mdp { position: relative; display: block; }
.champ-mdp input { width: 100%; padding-right: 52px; }
.oeil { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; min-height: 40px; padding: 0; border: 0; background: transparent; font-size: 20px; }

/* ---------- Demandes de congés ---------- */
.conge-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.conge-types button { min-height: 44px; border-radius: 10px; border: 1.5px solid #CBD5E1; background: #fff; font-weight: 500; text-align: left; padding: 8px 12px; }
.conge-types button.actif { border-color: #0F766E; background: #F0FDFA; color: #0F766E; font-weight: 700; box-shadow: inset 0 0 0 1px #0F766E; }
.conge-fiche { font-size: 14px; }
.conge-fiche .conge-bloc { font-size: 14px; text-transform: uppercase; background: #E8EEF6; padding: 6px 8px; margin: 14px 0 8px; border-left: 4px solid var(--navy); }
.conge-champ { display: flex; gap: 8px; align-items: baseline; border-bottom: 1px solid #9AA6B8; padding: 6px 0; min-height: 30px; flex: 1; }
.conge-champ span { white-space: nowrap; }
.conge-champ strong { font-weight: 600; white-space: pre-wrap; }
.conge-2col { display: flex; gap: 20px; }
.conge-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 12px; margin-bottom: 8px; }
.conge-grille span, .conge-fiche span:has(> .conge-case) { display: flex; align-items: center; gap: 6px; }
.conge-case { display: inline-flex; width: 16px; height: 16px; border: 1.5px solid #000; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.conge-signe { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-top: 8px; }
.conge-signe > div { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 600px) { .conge-grille { grid-template-columns: 1fr 1fr; } .conge-2col { flex-direction: column; gap: 0; } .conge-signe { grid-template-columns: 1fr; } }
@media print { .conge-fiche .conge-bloc { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

.menu-section { display: block; margin: 14px 0 4px; padding: 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8FA9C9; }
.menu nav .menu-section:first-of-type { margin-top: 8px; }

/* Comptes repliables */
.compte { padding: 0; gap: 0; }
.compte > .compte-tete { list-style: none; cursor: pointer; padding: 12px 14px; }
.compte > .compte-tete::-webkit-details-marker { display: none; }
.compte-fleche { color: var(--navy); font-size: 20px; transition: transform .2s; flex: none; }
.compte[open] .compte-fleche { transform: rotate(90deg); }
.compte-corps { display: flex; flex-direction: column; gap: 10px; padding: 0 14px 14px; }
.groupe-comptes .comptes-grille { margin-top: 4px; }
.bandeau-invite { margin-bottom: 12px; padding: 10px 14px; border-radius: 12px; background: #FFF4E5; color: #7C2D12; font-weight: 600; font-size: 14px; }

/* ---------- Équipe & comptes : version funky ---------- */
.avatar-funky { position: relative; flex: none; display: grid; place-items: center; border-radius: 30%; color: #fff; font-weight: 800; letter-spacing: .02em;
  background: linear-gradient(140deg, var(--a), var(--b)); box-shadow: 0 6px 14px color-mix(in srgb, var(--b) 35%, transparent), inset 0 1px 0 rgba(255,255,255,.35); text-shadow: 0 1px 2px rgba(0,0,0,.18); }
.af-emoji { position: absolute; right: -6px; bottom: -6px; width: 46%; height: 46%; min-width: 16px; min-height: 16px; display: grid; place-items: center; border-radius: 50%; background: #fff; font-size: max(10px, 0.8em); box-shadow: 0 2px 6px rgba(15,30,51,.2); text-shadow: none; }
.groupe-pile .avatar-funky { margin-right: -6px; border: 2px solid #fff; border-radius: 50%; box-shadow: none; }
.groupe-pile .af-emoji { display: none; }
.groupe-pile { display: flex; align-items: center; padding-left: 2px; }
.groupe-comptes > summary { display: flex; align-items: center; gap: 14px; }
.groupe-ico { flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: linear-gradient(140deg, var(--a), var(--b)); box-shadow: 0 6px 16px rgba(15,30,51,.12); }
.groupe-nb { font-size: 13px; font-weight: 800; color: var(--navy); background: #EEF4FF; border-radius: 999px; padding: 2px 9px; }
.role-pill { flex: none; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.role-super_admin { background: linear-gradient(90deg, #FDE68A, #FBCFE8); color: #7C2D12; }
.role-admin { background: linear-gradient(90deg, #BBF7D0, #BAE6FD); color: #0F4F4A; }
.role-ambulancier { background: #E0EAFF; color: #1C4477; }
.role-invite { background: linear-gradient(90deg, #FBCFE8, #DDD6FE); color: #6D28D9; }

/* =================== Charte graphique 2 (accueil ambulancier « profil ») =================== */
.c2 { background: #F4F6FA; min-height: 100vh; }
.c2-tete { position: relative; overflow: hidden; color: #fff; padding: calc(12px + env(safe-area-inset-top)) 20px 26px; border-radius: 0 0 32px 32px;
  background: radial-gradient(120% 90% at 100% 0%, #3A7BD5 0%, rgba(58,123,213,0) 55%), radial-gradient(90% 80% at 0% 100%, #6D5BD0 0%, rgba(109,91,208,0) 60%), linear-gradient(160deg, #0F2547 0%, #17375F 60%, #1C4477 100%);
  display: flex; flex-direction: column; gap: 18px; box-shadow: 0 18px 40px rgba(15,37,71,.25); }
.c2-tete::after { content: ''; position: absolute; right: -60px; top: 40px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 0 0 30px rgba(255,255,255,.03); pointer-events: none; }
.c2-barre { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.c2-logo { background: rgba(255,255,255,.95); border-radius: 12px; padding: 5px 8px; display: flex; }
.c2-logo img { height: 24px; }
.c2-rond { position: relative; display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; }
.c2-rond .pastille { position: absolute; top: -4px; right: -4px; }
.c2-horloge { display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; z-index: 1; }
.c2-heure { font-size: 64px; font-weight: 250; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.c2-date { font-size: 14px; color: #C9D8EE; letter-spacing: .02em; }
.c2-profil { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.c2-anneau { flex: none; padding: 3px; border-radius: 50%; background: conic-gradient(from 200deg, #FEDA75, #FA7E1E, #D62976, #962FBF, #4F5BD5, #FEDA75); }
.c2-anneau .c2-avatar { border: 3px solid #17375F; }
.c2-avatar { display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; background: linear-gradient(140deg, var(--a), var(--b)); flex: none; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.c2-identite { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.c2-identite strong { font-size: 21px; font-weight: 700; }
.c2-identite span { font-size: 14px; color: #C9D8EE; }
.c2-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 12px 6px; position: relative; z-index: 1; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.c2-stats > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.c2-stats > div + div { border-left: 1px solid rgba(255,255,255,.12); }
.c2-stats strong { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.c2-stats span { font-size: 11.5px; color: #B9CAE3; }
.c2-stats .c2-stat-plaque { font-size: 15px; letter-spacing: .04em; line-height: 1.6; }
.c2-corps { padding: 18px 16px calc(110px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; }
.c2-stories { display: flex; justify-content: space-between; gap: 8px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.c2-stories::-webkit-scrollbar { display: none; }
.c2-story { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); width: 62px; }
.c2-story-rond { position: relative; width: 60px; height: 60px; border-radius: 50%; padding: 3px; background: #D5DCE6; }
.c2-afaire .c2-story-rond { background: conic-gradient(from 200deg, #FEDA75, #FA7E1E, #D62976, #962FBF, #4F5BD5, #FEDA75); }
.c2-fait .c2-story-rond { background: linear-gradient(140deg, #34D399, #059669); }
.c2-story-in { width: 100%; height: 100%; border-radius: 50%; background: #fff; border: 3px solid #F4F6FA; display: grid; place-items: center; font-size: 26px; }
.c2-story-badge { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 800; color: #fff; background: #D62976; border: 2px solid #F4F6FA; border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.c2-fait .c2-story-badge { background: #059669; }
.c2-story-lib { font-size: 11.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.c2-rappels { display: flex; flex-direction: column; gap: 8px; }
.c2-rappel { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid #FCD9B6; color: #7C2D12; font-weight: 600; font-size: 14px; text-decoration: none; }
.c2-carte { background: #fff; border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 10px 30px rgba(15,37,71,.08); border: 1px solid #EEF1F6; }
.c2-demain { background: #FAFBFD; box-shadow: none; }
.c2-carte-tete { display: flex; justify-content: space-between; align-items: baseline; }
.c2-sur { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6B7A90; }
.c2-grosse-heure { font-size: 30px; font-weight: 800; color: #0F2547; font-variant-numeric: tabular-nums; }
.c2-demain .c2-grosse-heure { font-size: 22px; color: #3B4C66; }
.c2-lignes { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.c2-lignes > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.c2-ico { width: 28px; text-align: center; font-size: 18px; flex: none; }
.c2-plaque { display: inline-block; padding: 2px 8px; border-radius: 7px; border: 1.5px solid #0F2547; font-weight: 800; font-size: 13.5px; letter-spacing: .06em; color: #0F2547; background: #fff; }
.c2-note { color: #4A5A70; }
.c2-confirmer { min-height: 50px; border-radius: 16px; border: 0; color: #fff; font-weight: 700; font-size: 15px; background: linear-gradient(120deg, #10B981, #059669); box-shadow: 0 8px 18px rgba(5,150,105,.3); }
.c2-confirme { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: #DCFCE7; color: #166534; font-weight: 700; font-size: 13px; }
.c2-vide p { margin: 0; color: #4A5A70; }
.c2-lien { color: var(--navy); font-weight: 600; text-decoration: none; }
.charte-2 .rh-onglets { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 6px; border-radius: 22px; border: 1px solid rgba(15,37,71,.08); box-shadow: 0 12px 30px rgba(15,37,71,.15); }
.charte-2 .rh-onglets a.actif { background: linear-gradient(140deg, #1C4477, #3A7BD5); color: #fff; }
.charte-2 .rh-bandeau-test { margin-bottom: 90px; }
body:has(.charte-2) .bascule-vue { left: auto; right: 14px; bottom: calc(96px + env(safe-area-inset-bottom)); }
.c2-rappel-rouge { border-color: #FCA5A5; background: #FEF2F2; color: #9B1C1C; }

/* ---------- Règlement intérieur (version moderne) ---------- */
.ri { display: flex; flex-direction: column; gap: 12px; }
.ri-couverture { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 26px 18px 22px; border-radius: 24px; color: #fff;
  background: radial-gradient(110% 90% at 100% 0%, #3A7BD5 0%, rgba(58,123,213,0) 55%), linear-gradient(160deg, #0F2547, #1C4477); box-shadow: 0 14px 34px rgba(15,37,71,.22); }
.ri-logo { height: 46px; background: #fff; border-radius: 12px; padding: 6px 10px; margin-bottom: 6px; }
.ri-sur { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #9CC0FF; }
.ri-couverture h2 { color: #fff; font-size: 28px; margin: 0; }
.ri-version { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.14); }
.ri-sommaire-tete { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.ri-sommaire { display: flex; flex-direction: column; gap: 6px; }
.ri-sommaire button { display: flex; align-items: center; gap: 10px; justify-content: flex-start; text-align: left; min-height: 44px; padding: 8px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.ri-ch-num { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(140deg, #3A7BD5, #1C4477); color: #fff; font-size: 13px; font-weight: 800; }
.ri-chapitre { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; scroll-margin-top: 80px; }
.ri-chapitre > summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.ri-chapitre > summary::-webkit-details-marker { display: none; }
.ri-chapitre[open] > summary .repli-fleche { transform: rotate(90deg); }
.ri-ch-titre { flex: 1; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--navy-dark); }
.ri-corps { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }
.ri-intro h3 { margin: 0 0 6px; color: var(--navy-dark); }
.ri-chapitre p { margin: 0; font-size: 15px; line-height: 1.6; color: #22324A; }
.ri-article { display: flex; flex-direction: column; gap: 8px; padding: 12px 0 2px; border-top: 1px solid var(--line-2); }
.ri-article h4 { margin: 0; font-size: 15px; color: #1C4477; }
.ri-liste { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.55; }
.ri-cite-titre { font-weight: 700; font-style: italic; color: #4A5A70 !important; }
.ri-fin { background: #F6F8FB; border: 1px dashed #C7D3E3; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.ri-date { font-weight: 700; color: var(--navy-dark) !important; }
.ri-signature { border: 2px solid #1C4477; }
@media print { .ri-sommaire, .ri-sommaire-tete { display: none; } .ri-chapitre { break-inside: auto; border: 0; padding: 0; } .ri-couverture { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ---------- Salarié hors effectif ---------- */
.he-carte { text-align: center; align-items: center; }
.he-ico { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 40px;
  background: radial-gradient(circle at 30% 25%, #FFFFFF, #E8F0FB 60%, #D6E4F7); box-shadow: 0 10px 26px rgba(28,68,119,.16); animation: he-flotte 3.2s ease-in-out infinite; }
@keyframes he-flotte { 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .he-ico { animation: none; } }
.he-texte { font-size: 17px; font-weight: 600; color: var(--navy-dark); margin: 0; }
.he-merci { margin: 0; color: #4A5A70; }
.compte-sorti { opacity: .75; }

/* ---------- Onglets Tableau de bord / Mon profil ---------- */
.onglets-accueil { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #E9EEF5; align-self: flex-start; margin-bottom: 4px; }
.onglets-accueil a { padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: #3B4C66; text-decoration: none; white-space: nowrap; }
.onglets-accueil a.actif { background: #fff; color: var(--navy-dark); box-shadow: 0 2px 8px rgba(15,37,71,.12); }
.onglets-accueil.sur-sombre { background: rgba(255,255,255,.12); align-self: center; position: relative; z-index: 1; }
.onglets-accueil.sur-sombre a { color: #DCE6F4; }
.onglets-accueil.sur-sombre a.actif { background: #fff; color: #0F2547; }

/* ---------- Mon profil : un thème par métier ---------- */
.c2-profil-page .c2-corps { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.c2-anneau-theme { position: relative; }
.c2-couronne { position: absolute; top: -22px; left: 50%; transform: translateX(-50%) rotate(-8deg); font-size: 30px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.c2-insigne { position: absolute; right: -4px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.c2-metier { display: inline-flex; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff !important; font-weight: 600; font-size: 13px !important; }
.c2-theme-direction .c2-tete { background: radial-gradient(110% 80% at 100% 0%, rgba(212,160,23,.55) 0%, rgba(212,160,23,0) 55%), radial-gradient(80% 70% at 0% 100%, rgba(180,83,9,.35) 0%, rgba(180,83,9,0) 60%), linear-gradient(160deg, #14100A 0%, #241B0E 55%, #33260F 100%); }
.c2-theme-direction .c2-anneau-theme { background: conic-gradient(from 200deg, #FDE68A, #D4A017, #B45309, #FCD34D, #FDE68A); }
.c2-theme-direction .c2-anneau-theme .c2-avatar { border-color: #241B0E; }
.c2-theme-direction .c2-metier { background: linear-gradient(90deg, #D4A017, #B45309); }
.c2-theme-direction .c2-date, .c2-theme-direction .c2-identite span, .c2-theme-direction .c2-stats span { color: #E8D9B5; }
.c2-theme-regulation .c2-tete { background: radial-gradient(110% 80% at 100% 0%, rgba(20,184,166,.55) 0%, rgba(20,184,166,0) 55%), linear-gradient(160deg, #04201F 0%, #0B3B39 55%, #0F766E 100%); }
.c2-theme-regulation .c2-anneau-theme { background: conic-gradient(from 200deg, #99F6E4, #14B8A6, #0E7490, #5EEAD4, #99F6E4); }
.c2-theme-regulation .c2-anneau-theme .c2-avatar { border-color: #0B3B39; }
.c2-theme-auxiliaire .c2-tete { background: radial-gradient(110% 80% at 100% 0%, rgba(56,189,248,.55) 0%, rgba(56,189,248,0) 55%), linear-gradient(160deg, #082539 0%, #0C3B5C 55%, #0E7490 100%); }
.c2-theme-auxiliaire .c2-anneau-theme { background: conic-gradient(from 200deg, #BAE6FD, #38BDF8, #0284C7, #7DD3FC, #BAE6FD); }
.c2-theme-auxiliaire .c2-anneau-theme .c2-avatar { border-color: #0C3B5C; }
.c2-theme-administratif .c2-tete { background: radial-gradient(110% 80% at 100% 0%, rgba(167,139,250,.55) 0%, rgba(167,139,250,0) 55%), linear-gradient(160deg, #170B2E 0%, #2E1065 55%, #5B21B6 100%); }
.c2-theme-administratif .c2-anneau-theme { background: conic-gradient(from 200deg, #DDD6FE, #A78BFA, #DB2777, #C4B5FD, #DDD6FE); }
.c2-theme-administratif .c2-anneau-theme .c2-avatar { border-color: #2E1065; }
.c2-theme-mecanique .c2-tete { background: radial-gradient(110% 80% at 100% 0%, rgba(249,115,22,.5) 0%, rgba(249,115,22,0) 55%), linear-gradient(160deg, #1C1917 0%, #3B1D0E 55%, #7C2D12 100%); }
.c2-theme-mecanique .c2-anneau-theme { background: conic-gradient(from 200deg, #FED7AA, #F97316, #B91C1C, #FDBA74, #FED7AA); }
.c2-theme-mecanique .c2-anneau-theme .c2-avatar { border-color: #3B1D0E; }
.c2-theme-invite .c2-tete { background: radial-gradient(110% 80% at 100% 0%, rgba(244,114,182,.5) 0%, rgba(244,114,182,0) 55%), linear-gradient(160deg, #2A0A1F 0%, #4A1035 55%, #9D174D 100%); }
.c2-theme-invite .c2-anneau-theme { background: conic-gradient(from 200deg, #FBCFE8, #F472B6, #A855F7, #F9A8D4, #FBCFE8); }
.c2-theme-invite .c2-anneau-theme .c2-avatar { border-color: #4A1035; }

/* ---------- Mon profil : animations ---------- */
.c2-salut { position: relative; z-index: 1; text-align: center; font-size: 17px; font-weight: 600; margin-top: -8px; }
.c2-main { display: inline-block; transform-origin: 70% 70%; animation: c2-coucou 2.4s ease-in-out .4s 2; }
@keyframes c2-coucou { 0%,60%,100% { transform: rotate(0); } 10%,30% { transform: rotate(16deg); } 20%,40% { transform: rotate(-8deg); } 50% { transform: rotate(10deg); } }
.c2-profil-page .c2-tete > * { animation: c2-monte .6s cubic-bezier(.2,.8,.2,1) both; }
.c2-profil-page .c2-tete > :nth-child(2) { animation-delay: .05s; } .c2-profil-page .c2-tete > :nth-child(3) { animation-delay: .1s; }
.c2-profil-page .c2-tete > :nth-child(4) { animation-delay: .15s; } .c2-profil-page .c2-tete > :nth-child(5) { animation-delay: .22s; } .c2-profil-page .c2-tete > :nth-child(6) { animation-delay: .3s; }
.c2-profil-page .c2-corps > * { animation: c2-monte .6s cubic-bezier(.2,.8,.2,1) both; }
.c2-profil-page .c2-corps > :nth-child(2) { animation-delay: .38s; } .c2-profil-page .c2-corps > :nth-child(3) { animation-delay: .46s; }
.c2-profil-page .c2-corps > :nth-child(4) { animation-delay: .54s; } .c2-profil-page .c2-corps > :nth-child(5) { animation-delay: .62s; }
.c2-profil-page .c2-corps > :nth-child(1) { animation-delay: .32s; }
.c2-profil-page .c2-story { animation: c2-pop .5s cubic-bezier(.3,1.6,.5,1) both; }
.c2-profil-page .c2-story:nth-child(1) { animation-delay: .35s; } .c2-profil-page .c2-story:nth-child(2) { animation-delay: .42s; } .c2-profil-page .c2-story:nth-child(3) { animation-delay: .49s; }
.c2-profil-page .c2-story:nth-child(4) { animation-delay: .56s; } .c2-profil-page .c2-story:nth-child(5) { animation-delay: .63s; } .c2-profil-page .c2-story:nth-child(6) { animation-delay: .7s; }
@keyframes c2-monte { from { opacity: 0; transform: translateY(18px); } }
@keyframes c2-pop { from { opacity: 0; transform: scale(.6); } }
.c2-anneau-theme { background-size: 200% 200%; }
.c2-profil-page .c2-anneau-theme::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; background: inherit; filter: blur(14px); opacity: .45; z-index: -1; animation: c2-pulse 3s ease-in-out infinite; }
@keyframes c2-pulse { 50% { opacity: .15; transform: scale(.92); } }
.c2-couronne { animation: c2-couronne 3.5s ease-in-out infinite; }
@keyframes c2-couronne { 50% { transform: translateX(-50%) rotate(6deg) translateY(-3px); } }
.terrain-tete .onglets-accueil { margin: 6px 0 2px; }

/* Écran d'accueil animé */
.c2-bienvenue { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; color: #fff; text-align: center; overflow: hidden; cursor: pointer;
  background: radial-gradient(120% 80% at 50% 0%, #3A7BD5 0%, rgba(58,123,213,0) 60%), linear-gradient(170deg, #0B1C36, #17375F 60%, #1C4477); animation: bv-entree .4s ease both; }
.c2-bienvenue.c2-theme-direction { background: radial-gradient(120% 80% at 50% 0%, rgba(212,160,23,.6) 0%, rgba(212,160,23,0) 60%), linear-gradient(170deg, #0E0B06, #241B0E 60%, #3A2B10); }
.c2-bienvenue.c2-theme-regulation { background: radial-gradient(120% 80% at 50% 0%, rgba(20,184,166,.6) 0%, rgba(20,184,166,0) 60%), linear-gradient(170deg, #021514, #0B3B39 60%, #0F766E); }
.c2-bienvenue.c2-theme-auxiliaire { background: radial-gradient(120% 80% at 50% 0%, rgba(56,189,248,.6) 0%, rgba(56,189,248,0) 60%), linear-gradient(170deg, #051A29, #0C3B5C 60%, #0E7490); }
.c2-bienvenue.c2-theme-administratif { background: radial-gradient(120% 80% at 50% 0%, rgba(167,139,250,.6) 0%, rgba(167,139,250,0) 60%), linear-gradient(170deg, #10071F, #2E1065 60%, #5B21B6); }
.c2-bienvenue.c2-theme-mecanique { background: radial-gradient(120% 80% at 50% 0%, rgba(249,115,22,.55) 0%, rgba(249,115,22,0) 60%), linear-gradient(170deg, #120F0E, #3B1D0E 60%, #7C2D12); }
.c2-bienvenue.c2-theme-invite { background: radial-gradient(120% 80% at 50% 0%, rgba(244,114,182,.55) 0%, rgba(244,114,182,0) 60%), linear-gradient(170deg, #1C0715, #4A1035 60%, #9D174D); }
.c2-bienvenue.bv-sortie { animation: bv-sortie .65s cubic-bezier(.6,0,.4,1) forwards; }
@keyframes bv-entree { from { opacity: 0; } }
@keyframes bv-sortie { to { opacity: 0; transform: scale(1.08); filter: blur(6px); } }
.bv-halo { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255,255,255,.0), rgba(255,255,255,.14), rgba(255,255,255,0) 40%); animation: bv-tourne 6s linear infinite; pointer-events: none; }
@keyframes bv-tourne { to { transform: rotate(360deg); } }
.bv-particules i { position: absolute; bottom: -10px; left: var(--x); width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); animation: bv-monte var(--t) linear var(--d) infinite; }
@keyframes bv-monte { to { transform: translateY(-110vh); opacity: 0; } }
.bv-logo { margin-bottom: 18px; height: 40px; background: #fff; border-radius: 12px; padding: 6px 10px; animation: c2-monte .6s .1s both; position: relative; }
.bv-anneau { position: relative; padding: 4px; border-radius: 50%; animation: bv-avatar .9s cubic-bezier(.3,1.5,.5,1) .2s both; }
.c2-theme-dea .c2-anneau-theme { background: conic-gradient(from 200deg, #FEDA75, #FA7E1E, #D62976, #962FBF, #4F5BD5, #FEDA75); }
.bv-anneau .c2-avatar { border: 4px solid rgba(0,0,0,.35); }
.bv-anneau::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); animation: bv-onde 1.8s ease-out .6s infinite; }
@keyframes bv-onde { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
@keyframes bv-avatar { from { opacity: 0; transform: scale(.3) rotate(-30deg); } }
.bv-couronne { top: -30px; font-size: 40px; animation: bv-couronne .7s cubic-bezier(.3,1.6,.5,1) .9s both, c2-couronne 3.5s ease-in-out 1.6s infinite; }
@keyframes bv-couronne { from { opacity: 0; transform: translateX(-50%) translateY(-40px) rotate(-30deg); } }
.bv-titre { color: #fff; font-size: 34px; margin: 6px 0 0; position: relative; }
.bv-lettre, .bv-main { display: inline-block; animation: bv-lettre .5s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes bv-lettre { from { opacity: 0; transform: translateY(24px) scale(.6); filter: blur(4px); } }
.bv-main { animation: bv-lettre .5s both, c2-coucou 2s ease-in-out 1.6s 1; transform-origin: 70% 70%; }
.bv-sous { margin: 0; font-size: 16px; color: rgba(255,255,255,.82); max-width: 320px; animation: c2-monte .6s both; position: relative; }
.bv-tap { position: absolute; bottom: calc(28px + env(safe-area-inset-bottom)); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); animation: c2-monte .6s 1.6s both; }
@media (prefers-reduced-motion: reduce) {
  .c2-profil-page *, .c2-bienvenue, .c2-bienvenue * { animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}

/* ---------- Petit badge « Admin » (régulateurs, administratifs) ---------- */
.c2-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.c2-admin { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 7px; border-radius: 999px; font-size: 11.5px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #FDE68A !important; background: rgba(15,37,71,.35); border: 1px solid rgba(253,230,138,.45); box-shadow: inset 0 0 12px rgba(253,230,138,.12); }
.c2-admin::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); animation: c2-reflet 4.5s ease-in-out 1.2s infinite; }
@keyframes c2-reflet { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.c2-admin svg { color: #FDE68A; }
.tag-admin { display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px;
  color: #8A6100; background: linear-gradient(90deg, #FFF7DB, #FDECB3); border: 1px solid #F3D58A; }
@media (prefers-reduced-motion: reduce) { .c2-admin::after { animation: none; } }
.c2-superadmin { color: #1A1405 !important; background: linear-gradient(100deg, #FDE68A, #F5C542 45%, #D4A017); border-color: rgba(255,255,255,.55); box-shadow: 0 4px 14px rgba(212,160,23,.45); }
.c2-superadmin svg { color: #1A1405; }
.c2-superadmin svg path:last-child { stroke: #FDE68A; }

/* ---------- Sociétés 95 / 78 ---------- */
.soc-puce { display: inline-flex; margin-left: 8px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; vertical-align: 2px; }
.soc-95 { background: #E0EAFF; color: #1C4477; }
.soc-78 { background: #DCFCE7; color: #166534; }
.info-mad { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #FFFBEB; border: 1px solid #FCD34D; color: #78350F; font-size: 14px; line-height: 1.45; }
.ligne-soc td { background: #F1F5F9; font-weight: 800; color: var(--navy-dark); font-size: 13px; letter-spacing: .02em; }

/* ---------- Mes documents ---------- */
.doc-groupe { background: #fff; border: 1px solid #EEF1F6; border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 8px 24px rgba(15,37,71,.06); }
.doc-groupe-tete { display: flex; align-items: center; gap: 12px; }
.doc-groupe-tete h2 { margin: 0; font-size: 18px; }
.doc-groupe-tete span:not(.doc-groupe-ico) { font-size: 13px; color: var(--muted); }
.doc-groupe-tete > div { display: flex; flex-direction: column; gap: 2px; }
.doc-groupe-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(140deg, #22D3EE, #0E7490); box-shadow: 0 6px 14px rgba(14,116,144,.25); }
.doc-carte { display: grid; grid-template-columns: 44px 1fr; gap: 6px 12px; padding: 12px; border-radius: 16px; background: #F7FAFC; border: 1px solid #E6ECF3; }
.doc-ico { grid-row: span 2; width: 44px; height: 54px; border-radius: 10px; background: #fff; border: 1px solid #DCE4EE; display: grid; place-items: center; font-size: 22px; box-shadow: 0 2px 6px rgba(15,37,71,.06); position: relative; }
.doc-ico::after { content: 'PDF'; position: absolute; bottom: -6px; right: -6px; font-size: 9px; font-weight: 800; color: #fff; background: #DC2626; padding: 1px 4px; border-radius: 5px; }
.doc-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.doc-txt strong { font-size: 15px; color: var(--navy-dark); }
.doc-txt span { font-size: 13px; color: #4A5A70; line-height: 1.4; }
.doc-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.doc-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid #CBD5E1; background: #fff; color: var(--navy-dark); font-weight: 700; font-size: 13px; text-decoration: none; cursor: pointer; }
.doc-btn-plein { background: linear-gradient(120deg, #1C4477, #3A7BD5); color: #fff; border-color: transparent; }
.doc-mutuelle .doc-btn-plein { background: linear-gradient(120deg, #0E7490, #22D3EE); }
.doc-aide { margin: 0; font-size: 13.5px; color: #4A5A70; line-height: 1.5; }

/* ---------- Règlement intérieur façon carnet ---------- */
.ri-carnet .carnet-feuille { max-width: 820px; }
.ri-carnet .ri-chapitre { background: transparent; border: 0; border-radius: 0; border-top: 1px solid var(--line); padding: 18px 28px; }
@media (max-width: 560px) { .ri-carnet .ri-chapitre { padding: 16px; } }
.ri-carnet .ri-chapitre > summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.ri-carnet .ri-chapitre > summary h2 { flex: 1; margin: 0; font-size: 17px; }
.ri-carnet .ri-chapitre > summary h2::before { display: none; }
.ri-carnet .ri-intro h2::before { display: block; }
.ri-nb { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ri-carnet .ri-corps { padding-top: 14px; }
.ri-som .ri-sommaire { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.ri-signatures { border-top: 1px solid var(--line); background: linear-gradient(180deg, #F7F9FC, #fff); }
.ri-sig-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.ri-sig { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.ri-sig-sur { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #3A97D4; font-weight: 800; }
.ri-sig-zone { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 110px; padding: 6px 4px; border-bottom: 1.5px dashed #C7D3E3; }
.ri-sig-img { max-height: 90px; max-width: 60%; object-fit: contain; }
.ri-tampons { display: flex; margin-left: auto; }
.ri-tampons svg + svg { margin-left: -26px; }
.ri-sig-attente { padding: 18px 12px; border-radius: 12px; background: #FFFBEB; color: #78350F; font-weight: 600; font-size: 14px; }
.ri-carnet .ri-signature { display: flex; flex-direction: column; gap: 10px; }
@media print { .ri-som { display: none; } .ri-carnet .ri-chapitre .ri-corps { display: flex !important; } .ri-carnet .repli-fleche { display: none; } }
.ri-sig-zone { flex-wrap: wrap; }
.ri-sig-img { max-width: 100%; }
.ri-tampons svg { width: 92px; height: 92px; }
.ri-tampons svg + svg { margin-left: -18px; }
.ri-carnet .ri-signature { border: 0; padding: 0; }

/* ---------- Ma semaine + météo (discret) ---------- */
.terrain-date { display: inline-flex; align-items: baseline; gap: 8px; }
.terrain-heure { font-variant-numeric: tabular-nums; font-weight: 300; letter-spacing: .02em; opacity: .75; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.25); }
.sem { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 18px; background: #fff; border: 1px solid #EEF1F6; }
.sem-sombre { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); color: #fff; }
.sem-demain { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.sem-statut { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.sem-travail { background: rgba(16,185,129,.16); color: #047857; }
.sem-repos { background: rgba(148,163,184,.2); color: #475569; }
.sem-sombre .sem-travail { background: rgba(52,211,153,.18); color: #A7F3D0; }
.sem-sombre .sem-repos { background: rgba(255,255,255,.12); color: #DCE6F4; }
.sem-meteo { display: inline-flex; gap: 10px; font-size: 12.5px; color: #4A5A70; }
.sem-sombre .sem-meteo { color: #C9D8EE; }
.sem-meteo strong { font-weight: 700; color: inherit; }
.sem-astuce { font-size: 12.5px; color: #6B7A90; margin-top: -4px; }
.sem-sombre .sem-astuce { color: #B9CAE3; }
.sem-jours { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.sem-jours li { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 0 5px; border-radius: 12px; }
.sem-l { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; opacity: .7; }
.sem-n { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sem-p { font-size: 9.5px; font-weight: 600; opacity: .8; }
.sem-t { background: linear-gradient(160deg, #E0ECFF, #F1F6FF); color: #1C4477; }
.sem-r { color: #94A3B8; }
.sem-sombre .sem-t { background: rgba(255,255,255,.16); color: #fff; }
.sem-sombre .sem-r { color: rgba(255,255,255,.45); }
.sem-auj { box-shadow: inset 0 0 0 1.5px #3A7BD5; }
.sem-sombre .sem-auj { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }

/* ---------- Pôle RH : règlement en tête + documents avec résumé ---------- */
.rh-ri { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 22px; color: #fff;
  background: radial-gradient(110% 90% at 100% 0%, #3A7BD5 0%, rgba(58,123,213,0) 55%), linear-gradient(160deg, #0F2547, #1C4477); box-shadow: 0 14px 34px rgba(15,37,71,.2); }
.rh-ri-tete { display: flex; align-items: center; gap: 12px; }
.rh-ri-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: rgba(255,255,255,.14); }
.rh-ri-sur { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #FCA5A5; font-weight: 800; }
.rh-ri h2 { color: #fff; margin: 2px 0 0; font-size: 21px; }
.rh-ri-barre { height: 8px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden; }
.rh-ri-barre span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #34D399, #10B981); }
.rh-ri-chiffre { font-size: 14px; color: #DCE6F4; }
.rh-ri-chiffre strong { color: #fff; font-size: 16px; }
.rh-ri .rh-ri-btn { background: #fff; color: #0F2547; border-color: #fff; }
.rh-ri .rh-ri-btn2 { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.rh-ri-lien { background: none; border: 0; color: #9CC0FF; font-size: 13px; font-weight: 600; padding: 6px 4px; text-decoration: none; cursor: pointer; }
.rhd-groupe { display: flex; flex-direction: column; gap: 8px; }
.rhd-cat { margin: 10px 0 0; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.rhd-nb { font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: #EEF2F7; color: #4A5A70; }
.rhd { border-radius: 16px; background: #F7FAFC; border: 1px solid #E6ECF3; }
.rhd > summary { list-style: none; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px; cursor: pointer; }
.rhd > summary::-webkit-details-marker { display: none; }
.rhd[open] > summary .repli-fleche { transform: rotate(90deg); }
.rhd .doc-ico { grid-row: auto; }
.rhd-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rhd-txt strong { font-size: 15px; color: var(--navy-dark); line-height: 1.3; }
.rhd-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rhd-corps { display: flex; flex-direction: column; gap: 10px; padding: 0 14px 14px 68px; }
.rhd-corps p { margin: 0; font-size: 14px; line-height: 1.5; color: #22324A; }
@media (max-width: 480px) { .rhd-corps { padding-left: 14px; } }
.rhd-meta .soc-puce:not(.soc-95):not(.soc-78) { background: #EEF2F7; color: #334155; }
.ri-dir-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }

.c2-demain-ligne { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 8px; margin-top: -8px; font-size: 12.5px; color: #DCE6F4; }
.c2-dl-sur { text-transform: uppercase; letter-spacing: .12em; font-size: 10.5px; font-weight: 800; opacity: .7; }
.c2-dl-statut { padding: 2px 9px; border-radius: 999px; font-weight: 700; }
.c2-dl-statut.travail { background: rgba(52,211,153,.2); color: #A7F3D0; }
.c2-dl-statut.repos { background: rgba(255,255,255,.14); color: #fff; }
.c2-dl-meteo { padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.08); font-variant-numeric: tabular-nums; }
.c2-dl-astuce { flex-basis: 100%; text-align: center; font-size: 12px; opacity: .8; }
.sem-titre { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6B7A90; }
.c2-apercu { position: relative; z-index: 1; align-self: center; padding: 6px 14px; border-radius: 999px; background: #FDE68A; color: #78350F; font-weight: 700; font-size: 13px; text-decoration: none; }

/* ---------- Installer l'application ---------- */
.inst-rappel-bloc { display: flex; flex-direction: column; gap: 4px; }
.inst-rappel { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; text-decoration: none; color: #fff;
  background: linear-gradient(120deg, #1C4477, #3A7BD5); box-shadow: 0 10px 24px rgba(28,68,119,.25); }
.inst-rappel strong { display: block; font-size: 15px; }
.inst-rappel span span, .inst-rappel .grow > span { display: block; font-size: 12.5px; color: #DCE6F4; }
.inst-rappel-ico { font-size: 26px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.15); flex: none; }
.inst-rappel-fleche { font-size: 24px; opacity: .8; }
.inst-plus-tard { align-self: flex-end; background: none; border: 0; color: #6B7A90; font-size: 12.5px; padding: 2px 6px; min-height: 0; }
.inst-tete { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: #fff; padding: calc(16px + env(safe-area-inset-top)) 20px 26px; border-radius: 0 0 28px 28px;
  background: radial-gradient(120% 90% at 100% 0%, #3A7BD5 0%, rgba(58,123,213,0) 55%), linear-gradient(160deg, #0F2547, #1C4477); }
.inst-tete h1 { color: #fff; margin: 0; font-size: 24px; }
.inst-tete p { margin: 0; color: #DCE6F4; max-width: 420px; }
.inst-retour { align-self: flex-start; color: #fff; text-decoration: none; font-weight: 600; }
.inst-icone { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 8px 20px rgba(0,0,0,.3); background: #fff; }
.inst-carte { background: #fff; border: 1px solid #EEF1F6; border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 8px 24px rgba(15,37,71,.06); }
.inst-carte h2 { margin: 0; font-size: 18px; }
.inst-onglets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.inst-onglet { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid #DCE4EE; background: #F7FAFC; text-align: left; min-height: 0; font-weight: 700; color: var(--navy-dark); }
.inst-onglet .inst-os { font-size: 12px; color: #6B7A90; font-weight: 600; }
.inst-onglet.actif { border-color: #3A7BD5; background: #EAF2FF; box-shadow: 0 0 0 3px rgba(58,123,213,.15); }
.inst-etapes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.inst-etapes li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.inst-num { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(140deg, #3A7BD5, #1C4477); }
.inst-etapes strong { font-size: 15px; color: var(--navy-dark); }
.inst-etapes p { margin: 2px 0 0; font-size: 14px; color: #4A5A70; line-height: 1.45; }
.inst-direct { min-height: 50px; border-radius: 16px; border: 0; color: #fff; font-weight: 800; font-size: 16px; background: linear-gradient(120deg, #10B981, #059669); }

.inst-rappel { position: relative; overflow: hidden; animation: inst-lueur 2.4s ease-in-out infinite; }
.inst-rappel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); animation: c2-reflet 3.2s ease-in-out .8s infinite; }
.inst-rappel-ico { animation: c2-coucou 2.4s ease-in-out 1s infinite; }
@keyframes inst-lueur { 50% { box-shadow: 0 10px 30px rgba(58,123,213,.55), 0 0 0 4px rgba(58,123,213,.18); } }
@media (prefers-reduced-motion: reduce) { .inst-rappel, .inst-rappel::after, .inst-rappel-ico { animation: none; } }

/* Illustrations de téléphone */
.inst-etape-corps { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.mq-tel { flex: none; position: relative; width: 112px; height: 200px; border-radius: 20px; border: 4px solid #0F172A; background: #F8FAFC; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 8px 18px rgba(15,37,71,.18); }
.mq-encoche { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 36px; height: 8px; border-radius: 6px; background: #0F172A; z-index: 2; }
.mq-page { flex: 1; position: relative; padding: 18px 8px 6px; display: flex; flex-direction: column; }
.mq-site { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.mq-site img { width: 30px; height: 30px; border-radius: 8px; }
.mq-site span { font-size: 6.5px; color: #64748B; }
.mq-site i { display: block; width: 86%; height: 6px; border-radius: 4px; background: #E2E8F0; }
.mq-site i.court { width: 55%; }
.mq-barre-bas, .mq-barre-haut { display: flex; justify-content: space-around; align-items: center; gap: 4px; background: #E9EEF5; font-size: 12px; color: #1E3A8A; padding: 6px 4px; }
.mq-barre-haut { padding-top: 16px; justify-content: space-between; font-size: 8px; }
.mq-barre-haut strong { font-size: 8px; color: #0F172A; }
.mq-url { flex: 1; font-size: 6.5px; color: #475569; background: #fff; border-radius: 6px; padding: 3px 4px; overflow: hidden; white-space: nowrap; }
.mq-cible { position: relative; animation: mq-pulse 1.6s ease-in-out infinite; }
.mq-rond { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #FDE68A; box-shadow: 0 0 0 3px #F59E0B; }
.mq-texte { font-weight: 800; color: #1D4ED8; background: #FDE68A; border-radius: 6px; padding: 2px 4px; box-shadow: 0 0 0 2px #F59E0B; }
@keyframes mq-pulse { 50% { transform: scale(1.12); } }
.mq-feuille { margin-top: auto; background: #fff; border-radius: 10px 10px 0 0; box-shadow: 0 -4px 10px rgba(0,0,0,.08); padding: 4px; display: flex; flex-direction: column; gap: 2px; }
.mq-ligne { display: flex; gap: 6px; align-items: center; font-size: 7.5px; color: #0F172A; padding: 5px 4px; border-radius: 6px; }
.mq-ligne.mq-cible { background: #FEF3C7; box-shadow: inset 0 0 0 1.5px #F59E0B; font-weight: 800; animation: none; }
.mq-ajout { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 8px; font-weight: 700; }
.mq-ajout img { width: 40px; height: 40px; border-radius: 10px; }
.mq-accueil { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding-top: 6px; }
.mq-accueil i { display: block; aspect-ratio: 1; border-radius: 6px; background: linear-gradient(140deg, #CBD5E1, #94A3B8); }
.mq-app { display: flex; flex-direction: column; align-items: center; gap: 2px; animation: mq-pulse 1.6s ease-in-out infinite; }
.mq-app img { width: 100%; aspect-ratio: 1; border-radius: 6px; box-shadow: 0 0 0 2px #F59E0B; }
.mq-app b { font-size: 5px; white-space: nowrap; }
@media (max-width: 380px) { .mq-tel { width: 92px; height: 168px; } }
@media (prefers-reduced-motion: reduce) { .mq-cible, .mq-app { animation: none; } }
.inst-etape-corps > div:first-child { flex: 1; min-width: 0; }

/* Barre du haut (téléphone) : Profil | Tableau, même taille, + retour */
@media (max-width: 900px) {
  .barre-mobile .barre-duo { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); }
  .barre-mobile .barre-duo a { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 82px; padding: 8px 10px; border-radius: 11px; color: #fff; font-weight: 700; font-size: 13.5px; text-decoration: none; }
  .barre-mobile .barre-duo a svg { stroke: currentColor; }
  .barre-mobile .barre-duo a.actif { background: #fff; color: var(--navy-dark); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
  .barre-mobile .barre-retour { width: 42px; height: 42px; min-height: 0; padding: 0; border-radius: 12px; font-size: 28px; line-height: 1; display: grid; place-items: center; background: rgba(255,255,255,.12) !important; border: 1px solid rgba(255,255,255,.16) !important; }
}
@media (max-width: 370px) { .barre-mobile .barre-duo a { min-width: 0; padding: 8px 8px; font-size: 12.5px; } }

/* Pôle RH : DUERP + effectifs */
.rh-duerp { background: radial-gradient(110% 90% at 100% 0%, #F59E0B 0%, rgba(245,158,11,0) 50%), linear-gradient(160deg, #3B1D0E, #7C2D12); box-shadow: 0 14px 34px rgba(124,45,18,.22); }
.rh-duerp .rh-ri-sur { color: #FDE68A; }
.rh-duerp .rh-ri-btn { color: #7C2D12; }
.rh-widgets .kpi-large { grid-column: 1 / -1; }
.eff-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.eff-bulle { border-radius: 18px; padding: 12px; color: #fff; background: linear-gradient(150deg, var(--a), var(--b)); box-shadow: 0 8px 18px rgba(15,37,71,.18); display: flex; flex-direction: column; gap: 8px; }
.eff-tete { display: flex; align-items: center; gap: 10px; }
.eff-soc { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 16px; background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.5); }
.eff-tete strong { display: block; font-size: 24px; line-height: 1; }
.eff-tete span:not(.eff-soc) { font-size: 12px; opacity: .85; }
.eff-bulle ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.eff-bulle li { display: flex; justify-content: space-between; gap: 6px; font-size: 12.5px; padding: 4px 8px; border-radius: 8px; background: rgba(255,255,255,.12); }
.eff-bulle li b { font-variant-numeric: tabular-nums; }

/* Profil : heure discrète, demain au-dessus des chiffres */
.c2-horloge-discrete .c2-horloge { flex-direction: row; justify-content: center; align-items: baseline; gap: 10px; }
.c2-horloge-discrete .c2-heure { font-size: 30px; font-weight: 300; letter-spacing: .01em; opacity: .95; }
.c2-horloge-discrete .c2-date { font-size: 14px; }
.c2-demain-ligne { margin-top: -6px; justify-content: flex-start; }
/* Barre du haut sur ordinateur aussi : pas de doublon */
@media (min-width: 901px) { .barre-duo { display: none; } }

/* Ma semaine : version plus élégante */
.sem-jours { gap: 6px; }
.sem-jours li { position: relative; padding: 8px 0 7px; border-radius: 14px; gap: 3px; }
.sem-t { background: linear-gradient(170deg, #3A7BD5, #1C4477); color: #fff; box-shadow: 0 6px 14px rgba(28,68,119,.25); }
.sem-t .sem-l, .sem-t .sem-p { opacity: .85; }
.sem-r { background: #F4F6FA; color: #9AA7BA; }
.sem-r .sem-p { font-weight: 500; }
.sem-auj { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #3A7BD5; }
.sem-t.sem-auj { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #F59E0B, 0 6px 14px rgba(28,68,119,.25); }
.sem-auj::after { content: ''; position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: #3A7BD5; }
.sem-sombre .sem-t { background: rgba(255,255,255,.92); color: #0F2547; box-shadow: none; }
.sem-sombre .sem-r { background: rgba(255,255,255,.06); color: rgba(255,255,255,.5); }
.sem-titre { display: flex; justify-content: space-between; }

.c2-demain-ligne.centre { justify-content: center; }
/* Heure + date : 3 styles */
.hd { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-variant-numeric: tabular-nums; }
.hd-sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.hd-a { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 13px; }
.hd-a .hd-h { font-weight: 800; }
.hd-a .hd-d { opacity: .85; }
.hd-b { position: relative; z-index: 1; align-self: center; margin-top: -6px; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.hd-b .hd-h { font-weight: 800; }
.hd-c { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; gap: 6px; }
.hd-c .hd-h { font-weight: 800; }
@media (max-width: 380px) { .hd-a .hd-d { display: none; } .hd-a .hd-sep { display: none; } }
.hd { white-space: nowrap; }

/* Pôle RH : barre d'actions, carte mutuelle, contrats repliés */
.rh-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rh-action { min-height: 48px; border-radius: 14px; font-weight: 700; font-size: 14px; background: #fff; color: var(--navy-dark); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(15,30,51,.04); }
.rh-action-plein { background: linear-gradient(120deg, #1C4477, #3A7BD5); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(28,68,119,.22); }
.rh-mut { background: radial-gradient(110% 90% at 100% 0%, #22D3EE 0%, rgba(34,211,238,0) 50%), linear-gradient(160deg, #053B45, #0E7490); box-shadow: 0 14px 34px rgba(14,116,144,.22); }
.rh-mut .rh-ri-sur { color: #A5F3FC; }
.rh-mut .rh-ri-btn { color: #0E7490; }
.rh-mut-docs, .rh-mut-demandes { display: flex; flex-direction: column; gap: 6px; }
.rh-mut-doc { border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); }
.rh-mut-doc > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; }
.rh-mut-doc > summary::-webkit-details-marker { display: none; }
.rh-mut-doc[open] > summary .repli-fleche { transform: rotate(90deg); }
.rh-mut-doc strong { display: block; font-size: 14px; color: #fff; }
.rh-mut-doc summary span span { display: block; font-size: 12px; color: #BAE6FD; }
.rh-mut-ico { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.92); display: grid; place-items: center; font-size: 18px; flex: none; }
.rh-mut-corps { display: flex; flex-direction: column; gap: 8px; padding: 0 12px 12px 56px; }
.rh-mut-corps p { margin: 0; font-size: 13.5px; color: #E0F2FE; line-height: 1.45; }
.rh-mut-dem { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.95); color: var(--ink); }
.rh-mut-dem strong { display: block; font-size: 14px; }
.rh-mut-dem .grow span { font-size: 12px; color: var(--muted); }
.rh-mut-dem .rh-ri-lien { color: #9B1C1C; }
.rh-contrats > summary { display: flex; align-items: center; gap: 12px; }
.rh-contrats-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: #F5F3FF; flex: none; }

.rh-mut-dossier { border-radius: 16px; background: rgba(0,0,0,.14); border: 1px solid rgba(255,255,255,.16); }
.rh-mut-dossier > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px; cursor: pointer; }
.rh-mut-dossier > summary::-webkit-details-marker { display: none; }
.rh-mut-dossier[open] > summary .repli-fleche { transform: rotate(90deg); }
.rh-mut-dossier strong { display: block; font-size: 15px; color: #fff; }
.rh-mut-dossier summary span span { display: block; font-size: 12px; color: #BAE6FD; }
.rh-mut-contenu { display: flex; flex-direction: column; gap: 6px; padding: 0 10px 10px; }
.rh-mut-ajout { min-height: 42px; border-radius: 12px; border: 1.5px dashed rgba(255,255,255,.5); background: transparent; color: #fff; font-weight: 700; font-size: 13.5px; }

/* ---------- DUERP moderne ---------- */
.du-couverture { background: linear-gradient(160deg, #3B1D0E 0%, #7C2D12 55%, #B45309 100%); }
.du-couverture .cc-sur { color: #FDE68A; }
.du-couverture .cc-infos dt { color: #FDE68A; }
.du-unite h2 { gap: 10px; }
.du-unite h2::before { display: none; }
.du-risque { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.du-risque > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px; cursor: pointer; }
.du-risque > summary::-webkit-details-marker { display: none; }
.du-risque[open] > summary .repli-fleche { transform: rotate(90deg); }
.du-risque-titre { flex: 1; font-weight: 700; color: var(--navy-dark); }
.du-prio { flex: none; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.du-corps { display: flex; flex-direction: column; gap: 12px; padding: 0 14px 14px; }
.du-ligne { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: #F7F9FC; border: 1px solid #E6ECF3; }
.du-pastilles { display: flex; flex-wrap: wrap; gap: 6px; }
.du-pastille { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 4px 3px 10px; border-radius: 999px; background: #fff; border: 1px solid #E2E8F0; color: #4A5A70; }
.du-pastille b { padding: 2px 8px; border-radius: 999px; color: #fff; background: var(--c); font-variant-numeric: tabular-nums; }
.du-bloc { display: flex; flex-direction: column; gap: 6px; }
.du-bloc p { margin: 0; font-size: 14.5px; line-height: 1.55; color: #22324A; }
.du-lib { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #6B7A90; }
.du-conseq .du-lib { color: #B91C1C; }
.du-deja .du-lib { color: #047857; }
.du-aprendre .du-lib { color: #1D4ED8; }
.du-obs { padding: 10px; border-radius: 10px; background: #FFFBEB; }
.du-penib { display: flex; flex-direction: column; gap: 8px; }
@media print { .du-risque > summary .repli-fleche { display: none; } }

/* ---------- Page DUERP (direction) ---------- */
.dp-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.dp-carte { background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid #EEF1F6; box-shadow: 0 10px 30px rgba(15,37,71,.08); display: flex; flex-direction: column; }
.dp-tete { display: flex; align-items: center; gap: 12px; padding: 16px 18px; color: #fff; background: linear-gradient(140deg, var(--a), var(--b)); }
.dp-tete h2 { margin: 0; color: #fff; font-size: 18px; }
.dp-tete span:not(.dp-soc):not(.dp-annee) { font-size: 12.5px; opacity: .85; }
.dp-tete > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.dp-soc { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.55); flex: none; }
.dp-annee { font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.18); }
.dp-corps { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.dp-statut { display: flex; align-items: center; gap: 16px; }
.dp-anneau { --p: 0; flex: none; width: 92px; height: 92px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(closest-side, #fff 78%, transparent 79% 100%), conic-gradient(#10B981 calc(var(--p) * 1%), #E8EDF3 0); }
.dp-anneau strong { font-size: 22px; color: var(--navy-dark); font-variant-numeric: tabular-nums; line-height: 1; }
.dp-anneau span { font-size: 11.5px; color: var(--muted); }
.dp-infos { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: #22324A; }
.dp-ligne { display: flex; gap: 6px; align-items: flex-start; }
.dp-ligne small { color: var(--muted); }
.dp-alerte { color: #92400E; }
.dp-personnes { display: flex; flex-wrap: wrap; gap: 6px; }
.dp-pers { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: #FEF3C7; color: #78350F; font-size: 13px; font-weight: 600; }
.dp-pers.fait { background: #DCFCE7; color: #166534; }
.dp-ini { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; background: #fff; }
.dp-etat { font-size: 12px; }
.dp-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 14px; border-radius: 12px; border: 1px solid #CBD5E1; background: #fff; color: var(--navy-dark); font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; }
.dp-btn-plein { background: linear-gradient(120deg, #1C4477, #3A7BD5); color: #fff; border-color: transparent; }
.dp-lien-rouge { background: none; border: 0; color: #9B1C1C; font-weight: 600; font-size: 13px; min-height: 0; }
.dp-vide { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: #FFFBEB; color: #78350F; }
.dp-vide .dp-btn { align-self: flex-start; }
.dp-archives { border-top: 1px solid var(--line); padding-top: 10px; }
.dp-archives summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: #4A5A70; }
.dp-arch { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; }
.dp-arch a { margin-left: auto; }

/* Mes documents : tuiles et mutuelle repliable */
.doc-lien { flex-direction: row; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.doc-lien h2 { margin: 0; font-size: 17px; }
.doc-lien .grow { display: flex; flex-direction: column; gap: 2px; }
.doc-lien .grow span { font-size: 13px; color: var(--muted); }
.doc-etat { flex: none; font-size: 12.5px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: #DCFCE7; color: #166534; }
.doc-etat.a-faire { background: #FEE2E2; color: #B91C1C; }
.doc-lien.a-faire { border-color: #FCA5A5; box-shadow: 0 8px 24px rgba(185,28,28,.1); }
.doc-pli { padding: 0; }
.doc-pli > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px; cursor: pointer; }
.doc-pli > summary::-webkit-details-marker { display: none; }
.doc-pli > summary h2 { margin: 0; font-size: 17px; }
.doc-pli > summary .grow { display: flex; flex-direction: column; gap: 2px; }
.doc-pli > summary .grow span { font-size: 13px; color: var(--muted); }
.doc-pli[open] > summary .repli-fleche { transform: rotate(90deg); }
.doc-pli-corps { display: flex; flex-direction: column; gap: 12px; padding: 0 16px 16px; }
.doc-grise { opacity: .55; filter: grayscale(1); }
.doc-grise h2 { margin: 0; font-size: 17px; }
.c2-resp { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); color: #fff !important; font-size: 12.5px !important; }
.c2-resp b { letter-spacing: .05em; }

/* CSE */
.cse-soc { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: #F7FAFC; border: 1px solid #E6ECF3; }
.cse-soc-tete { display: flex; justify-content: space-between; align-items: center; }
.cse-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cse-pers { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid #E6ECF3; }
.cse-role { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #047857; }
.cse-carte { gap: 10px; }
.cse-ligne { border-radius: 16px; background: #F7FAFC; border: 1px solid #E6ECF3; }
.cse-ligne > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; }
.cse-ligne > summary::-webkit-details-marker { display: none; }
.cse-ligne strong { display: block; font-size: 15px; }
.cse-ligne summary .grow span { font-size: 12.5px; color: var(--muted); }
.cse-contacter { font-size: 12.5px; font-weight: 800; color: #047857; padding: 5px 10px; border-radius: 999px; background: #DCFCE7; }
.cse-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; }
.cse-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; border-radius: 12px; border: 1px solid #CBD5E1; background: #fff; color: var(--navy-dark); font-weight: 700; font-size: 13.5px; text-decoration: none; }

.fs-doc { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; background: #F7FAFC; border: 1px dashed #CBD5E1; }
.qf-ligne { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: #F7FAFC; border: 1px solid #E6ECF3; }
.qf-ico { font-size: 22px; }
.qf-ligne .grow { display: flex; flex-direction: column; gap: 2px; min-width: 160px; }
.qf-ligne strong { font-size: 15px; color: var(--navy-dark); }
.qf-ligne .grow span { font-size: 12.5px; color: var(--muted); }

/* Invité : accueil tout en douceur */
.bv-coeurs i { width: auto; height: auto; background: none; font-size: calc(22px * var(--s, 1)); font-style: normal; animation-name: bv-coeur; }
@keyframes bv-coeur { 0% { transform: translateY(0) rotate(0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translateY(-55vh) translateX(18px) rotate(12deg); } 100% { transform: translateY(-110vh) translateX(-12px) rotate(-8deg); opacity: 0; } }
.c2-bienvenue.c2-theme-invite .bv-anneau::after { border-color: rgba(251,207,232,.6); }
.c2-bienvenue.c2-theme-invite .bv-titre { text-shadow: 0 4px 24px rgba(244,114,182,.5); }

/* ---------- Fiche véhicule façon profil ---------- */
.vh-hero { border-radius: 26px; overflow: hidden; background: #fff; border: 1px solid #EEF1F6; box-shadow: 0 14px 34px rgba(15,37,71,.12); }
.vh-cover { position: relative; overflow: hidden; color: #fff; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 14px;
  background: radial-gradient(120% 90% at 100% 0%, #3A7BD5 0%, rgba(58,123,213,0) 55%), linear-gradient(160deg, #0F2547 0%, #17375F 60%, #1C4477 100%); }
.vh-soc-78 .vh-cover { background: radial-gradient(120% 90% at 100% 0%, #10B981 0%, rgba(16,185,129,0) 55%), linear-gradient(160deg, #052E2B 0%, #0B3B39 60%, #0F766E 100%); }
.vh-cover::after { content: ''; position: absolute; right: -70px; top: -40px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 0 0 30px rgba(255,255,255,.03); pointer-events: none; }
.vh-haut { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.vh-haut .plaque-fr { box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.vh-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.vh-titre { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.vh-titre h1 { color: #fff; margin: 0; font-size: 24px; }
.vh-titre span { color: #C9D8EE; font-size: 14px; }
.vh-resp { position: relative; z-index: 1; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); font-size: 13px; }
.vh-resp-av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: #fff; color: #0F2547; }
.vh-stats { position: relative; z-index: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 12px 4px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.vh-stat { display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; }
.vh-stat + .vh-stat { border-left: 1px solid rgba(255,255,255,.12); }
.vh-stat strong { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vh-stat span { font-size: 11.5px; color: #B9CAE3; }
.vh-stat small { font-size: 10.5px; color: #93A8C6; }
.vh-corps { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.vh-infos { display: flex; flex-direction: column; gap: 8px; }
.vh-info { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #F7FAFC; border: 1px solid #E6ECF3; }
.vh-info-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; font-size: 18px; box-shadow: 0 1px 3px rgba(15,37,71,.08); flex: none; }
.vh-info .grow { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.vh-info-lib { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #6B7A90; }
.vh-info-val { font-size: 16px; font-weight: 700; color: var(--navy-dark); word-break: break-all; }
.vh-info.manque .vh-info-val { color: #94A3B8; font-weight: 500; }
.vh-info-sous { font-size: 12.5px; color: var(--muted); }
.vh-copier { min-height: 32px; padding: 4px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 700; background: #fff; border: 1px solid #CBD5E1; color: var(--navy-dark); }
.vh-sec { display: flex; flex-direction: column; gap: 8px; }
.vh-sec-lib { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #6B7A90; }
.vh-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.vh-act { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px; border-radius: 14px; background: #fff; border: 1px solid #E2E8F0; color: var(--navy-dark); font-weight: 700; font-size: 14px; text-decoration: none; text-align: left; box-shadow: 0 1px 2px rgba(15,30,51,.04); }
.vh-act-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #F1F5F9; font-size: 16px; flex: none; }
.vh-act.danger { color: #9B1C1C; border-color: #FECACA; }
.vh-act.danger .vh-act-ico { background: #FEF2F2; }
.vh-vin { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; letter-spacing: .02em; }

/* Fiche véhicule : responsable compact + grands dossiers */
.vh-resp-ligne { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #fff; border: 1px solid #EEF1F6; box-shadow: 0 1px 2px rgba(15,30,51,.04); }
.vh-resp-ligne .grow { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.vh-resp-ligne strong { font-size: 15.5px; color: var(--navy-dark); }
.vh-resp-av2 { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(140deg, #3A7BD5, #1C4477); flex: none; }
.vh-mini { min-height: 36px; padding: 6px 14px; border-radius: 12px; font-weight: 700; font-size: 13.5px; background: #fff; border: 1px solid #CBD5E1; color: var(--navy-dark); }
.vh-poles { display: flex; flex-direction: column; gap: 12px; }
.vh-pole { border-radius: 22px; background: #fff; border: 1px solid #EEF1F6; box-shadow: 0 8px 24px rgba(15,37,71,.06); }
.vh-pole > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.vh-pole > summary::-webkit-details-marker { display: none; }
.vh-pole[open] > summary .repli-fleche { transform: rotate(90deg); }
.vh-pole > summary .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vh-pole > summary strong { font-size: 17px; color: var(--navy-dark); }
.vh-pole > summary .grow span { font-size: 12.5px; color: var(--muted); }
.vh-pole-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(140deg, var(--a), var(--b)); box-shadow: 0 6px 14px rgba(15,37,71,.18); flex: none; }
.vh-pole-nb { font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: #EEF2F7; color: #4A5A70; }
.vh-pole-corps { display: flex; flex-direction: column; gap: 8px; padding: 0 12px 12px; }
.vh-pole-corps > .carte, .vh-pole-corps > details.carte { box-shadow: none; border-radius: 16px; background: #F7FAFC; border: 1px solid #E6ECF3; padding: 12px 14px; }
.vh-pole-corps > details.carte > summary h3, .vh-pole-corps .carte h3 { font-size: 15px; }

/* En un coup d'œil */
.ec { gap: 12px; }
.ec-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 420px) { .ec-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ec-bulle { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 18px; text-decoration: none; color: #0F2547; background: #F4F6FA; border: 1px solid #E6ECF3; overflow: hidden; transition: transform .12s; }
.ec-bulle:active { transform: scale(.97); }
.ec-bulle strong { font-size: 24px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ec-bulle span:last-child { font-size: 12px; color: #4A5A70; line-height: 1.3; }
.ec-ico { position: absolute; top: 10px; right: 10px; font-size: 18px; opacity: .9; }
.ec-rouge { background: linear-gradient(150deg, #FEE2E2, #FFF1F2); border-color: #FECACA; } .ec-rouge strong { color: #B91C1C; }
.ec-orange { background: linear-gradient(150deg, #FEF3C7, #FFFBEB); border-color: #FDE68A; } .ec-orange strong { color: #B45309; }
.ec-violet { background: linear-gradient(150deg, #EDE9FE, #F5F3FF); border-color: #DDD6FE; } .ec-violet strong { color: #6D28D9; }
.ec-vert { background: linear-gradient(150deg, #DCFCE7, #F0FDF4); border-color: #BBF7D0; } .ec-vert strong { color: #047857; }
.ec-bleu { background: linear-gradient(150deg, #E0EAFF, #F1F6FF); border-color: #C7D7F5; } .ec-bleu strong { color: #1C4477; }
.ec-calme strong { color: #94A3B8; }

/* Fiche véhicule v3 : fiche technique compacte, documents « wallet », actions rondes */
.vh-spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 18px; background: #F7FAFC; border: 1px solid #E6ECF3; overflow: hidden; }
.vh-spec-c { display: flex; flex-direction: column; gap: 1px; padding: 10px 14px; text-align: left; background: none; border: 0; border-radius: 0; min-height: 0; color: inherit; }
.vh-spec-c + .vh-spec-c { border-left: 1px solid #E6ECF3; }
.vh-spec-c span { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #6B7A90; }
.vh-spec-c strong { font-size: 16px; color: var(--navy-dark); font-variant-numeric: tabular-nums; }
.vh-spec-c small { font-size: 11.5px; color: var(--muted); }
.vh-spec-c.manque strong { color: #94A3B8; font-weight: 600; }
.vh-spec-vin { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid #E6ECF3; cursor: pointer; }
.vh-spec-vin em { font-style: normal; text-transform: none; letter-spacing: 0; color: #3A7BD5; margin-left: 6px; font-weight: 700; }
.vh-spec-vin strong { font-size: 14.5px; letter-spacing: .04em; }
.vh-hero .docs-essentiels { gap: 8px; }
.vh-hero .doc-tuile { border-radius: 18px; padding: 12px 6px; gap: 6px; background: linear-gradient(170deg, #fff, #F4F7FB); border: 1px solid #E6ECF3; box-shadow: 0 4px 12px rgba(15,37,71,.05); position: relative; }
.vh-hero .doc-tuile .dt-ic { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(140deg, #3A7BD5, #1C4477); box-shadow: 0 6px 14px rgba(28,68,119,.25); }
.vh-hero .doc-tuile .dt-ic svg { stroke: #fff; }
.vh-hero .doc-tuile .dt-lib { font-size: 12px; font-weight: 700; line-height: 1.2; }
.vh-hero .doc-tuile .dt-etat { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #DCFCE7; color: #166534; }
.vh-hero .doc-tuile.absent .dt-ic { background: #E2E8F0; box-shadow: none; }
.vh-hero .doc-tuile.absent .dt-ic svg { stroke: #64748B; }
.vh-hero .doc-tuile.absent .dt-etat { background: #F1F5F9; color: #475569; }
.vh-hero .doc-tuile.absent { border-style: dashed; }
.vh-actions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.vh-act { flex-direction: column; justify-content: flex-start; align-items: center; gap: 6px; min-height: 0; padding: 4px 0; border: 0; background: none; box-shadow: none; font-size: 11.5px; font-weight: 700; text-align: center; color: var(--navy-dark); }
.vh-act-ico { width: 48px; height: 48px; border-radius: 50%; font-size: 21px; background: #fff; border: 1px solid #E2E8F0; box-shadow: 0 4px 12px rgba(15,37,71,.08); }
.vh-act:active .vh-act-ico { transform: scale(.94); }
.vh-vendu { align-self: center; min-height: 0; padding: 4px 8px; background: none; border: 0; color: #B91C1C; font-size: 12.5px; font-weight: 600; opacity: .8; }
.vh-spec-vin { align-items: flex-start; text-align: left; }
.vh-hero .doc-tuile .dt-etat { white-space: nowrap; font-size: 10.5px; padding: 2px 6px; }
.vh-hero .doc-tuile { min-width: 0; }
.vh-hero .doc-tuile .dt-lib { min-height: 2.4em; display: flex; align-items: center; justify-content: center; }
.vh-cover .vh-titre h1 { font-size: 26px; letter-spacing: -.01em; }
.vh-cover .vh-badges .badge { backdrop-filter: blur(6px); }

/* Bulles personnalisables */
.ec-grille .widget { position: relative; display: flex; }
.ec-grille .widget > .ec-bulle { flex: 1; }
.ec-moins { display: none; position: absolute; top: -7px; left: -7px; width: 24px; height: 24px; min-height: 0; padding: 0; border-radius: 50%; border: 2px solid #fff; background: #64748B; color: #fff; font-weight: 900; font-size: 15px; line-height: 1; z-index: 3; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.en-edition .ec-moins { display: grid; place-items: center; }
.ec-plus { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 92px; border-radius: 18px; border: 2px dashed #CBD5E1; background: transparent; color: #3A7BD5; font-weight: 800; }
.ec-plus span { font-size: 26px; line-height: 1; }
.ec-plus small { font-size: 12px; color: #64748B; }
.en-edition .ec-plus { display: flex; }
.ec-edit { min-height: 30px; min-width: 34px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; background: #F1F5F9; border: 1px solid #E2E8F0; color: var(--navy-dark); }
.ec-edit.actif { background: linear-gradient(120deg, #1C4477, #3A7BD5); color: #fff; border-color: transparent; }
.ec-aide { display: none; margin: 0; font-size: 12px; color: var(--muted); text-align: center; }
.ec:has(.en-edition) .ec-aide { display: block; }
.ec-catalogue { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ec-cat { min-height: 52px; border-radius: 14px; background: #F7FAFC; border: 1px solid #E2E8F0; font-weight: 700; font-size: 13.5px; text-align: left; padding: 8px 12px; color: var(--navy-dark); }

/* « Ma journée » dans la nouvelle charte */
.jr { background: #F4F6FA; min-height: 100vh; }
.jr .terrain-tete { position: relative; overflow: hidden; border-radius: 0 0 32px 32px; gap: 16px; padding-bottom: 24px; box-shadow: 0 18px 40px rgba(15,37,71,.25);
  background: radial-gradient(120% 90% at 100% 0%, #3A7BD5 0%, rgba(58,123,213,0) 55%), radial-gradient(90% 80% at 0% 100%, #6D5BD0 0%, rgba(109,91,208,0) 60%), linear-gradient(160deg, #0F2547 0%, #17375F 60%, #1C4477 100%); }
.jr .terrain-tete::after { content: ''; position: absolute; right: -60px; top: 40px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 0 0 30px rgba(255,255,255,.03); pointer-events: none; }
.jr .terrain-tete > * { position: relative; z-index: 1; }
.jr-retour { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.jr-retour:first-child { font-size: 15px; }
.jr .terrain-tete .btn-sombre { border-radius: 999px; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); }
.jr .terrain-salut h1 { font-size: 28px; }
.jr .terrain-tete select { border-radius: 14px; border: 0; min-height: 50px; font-weight: 600; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.jr .resp-bandeau { border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.jr .ma-journee { border-radius: 22px; box-shadow: 0 10px 30px rgba(15,37,71,.2); }
.jr .terrain-corps { padding: 18px 16px 40px; gap: 12px; }
.jr .terrain-corps > h2 { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #6B7A90; margin: 4px 2px 0; }
.jr .tuile { border-radius: 20px; border: 1px solid #EEF1F6; box-shadow: 0 8px 22px rgba(15,37,71,.06); padding: 14px 16px; }
.jr .tuile .ico { border-radius: 14px; }
.jr .plaque.plaque-grande { border-radius: 10px; }
.c2-vues { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; font-size: 14px; }

/* Raccourcis personnalisables */
.rc-zone { position: relative; }
.rc-edit { position: absolute; top: -14px; right: 0; z-index: 2; }
.c2-stories-edit { justify-content: flex-start; gap: 10px; }
.c2-stories-edit .rc-w { position: relative; flex: none; }
.c2-stories-edit .ec-moins { top: -2px; left: 2px; }
.rc-plus { display: none; flex: none; flex-direction: column; align-items: center; gap: 6px; width: 62px; background: none; border: 0; min-height: 0; padding: 0; color: var(--ink); }
.rc-plus .c2-story-rond { background: none; border: 2px dashed #CBD5E1; padding: 0; }
.rc-plus .c2-story-in { border: 0; background: transparent; color: #3A7BD5; font-size: 26px; font-weight: 800; }
.en-edition .rc-plus { display: flex; }
.en-edition .rc-w .c2-story { pointer-events: none; }
.c2-stories-edit.en-edition .rc-w > :first-child { outline: none; animation-duration: .7s; }
.c2-stories-edit.en-edition .rc-w:nth-child(2n) > :first-child { animation-name: rc-frisson; }
@keyframes rc-frisson { 0%, 100% { transform: rotate(1.5deg); } 50% { transform: rotate(-1.5deg); } }
.c2-stories-edit.en-edition .rc-w > :first-child { animation-name: rc-frisson2; }
@keyframes rc-frisson2 { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
.rc-tete { display: flex; align-items: center; justify-content: space-between; margin: 4px 4px 2px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A94A6; }
.rc-zone .rc-edit { position: static; width: auto; min-height: 0; height: 26px; padding: 0 10px; font-size: 12px; border-radius: 99px; }
/* Chiffres clés du profil admin */
.c2-stats > a.c2-stat-lien { color: inherit; text-decoration: none; display: flex; flex-direction: column; align-items: center; }
.c2-stats > a.c2-stat-lien + * , .c2-stats > * + a.c2-stat-lien { border-left: 1px solid rgba(255,255,255,.12); }
.c2-stats > a > div { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.c2-stat-plus { font-size: .62em; font-weight: 700; opacity: .75; }
.c2-stats strong.c2-stat-alerte { color: #FFB4A8; }

/* Raccourcis : 6 ronds qui tiennent dans la largeur */
.c2-stories.c2-stories-edit { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; overflow: visible; padding: 8px 0 6px; }
.c2-stories-edit .rc-w { min-width: 0; display: flex; justify-content: center; }
.c2-stories-edit.en-edition .rc-w { touch-action: none; }
.c2-stories-edit .c2-story, .c2-stories-edit .rc-plus { width: 100%; max-width: 60px; gap: 5px; }
.c2-stories-edit .c2-story-rond { width: 50px; height: 50px; padding: 2.5px; }
.c2-stories-edit .c2-story-in { font-size: 21px; border-width: 2.5px; }
.c2-stories-edit .c2-story-lib { font-size: 10px; letter-spacing: -.15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.c2-stories-edit .c2-story-badge { font-size: 9.5px; padding: 0 5px; }
.c2-stories-edit .ec-moins { top: -6px; left: 50%; margin-left: -30px; width: 20px; height: 20px; font-size: 14px; }
.rc-zone .rc-edit { height: 30px; width: 40px; padding: 0; font-size: 14px; }
.rc-zone .rc-edit.actif { width: auto; padding: 0 12px; }
/* Chiffres du bandeau : menu déroulant */
.c2-stats-zone { position: relative; z-index: 1; }
.cs-bascule { display: flex; align-items: center; gap: 6px; margin: 8px auto 0; background: none; border: 0; min-height: 0; padding: 4px 10px; color: rgba(255,255,255,.55); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; border-radius: 99px; }
.cs-bascule:active { background: rgba(255,255,255,.08); }
.cs-chevron { font-size: 14px; line-height: 1; transform: translateY(-2px); transition: transform .25s; }
.cs-bascule.ouvert { color: rgba(255,255,255,.85); }
.cs-bascule.ouvert .cs-chevron { transform: rotate(180deg) translateY(-1px); }
.cs-panneau { margin-top: 6px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 12px 12px 6px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: cs-deroule .28s ease-out; }
.cs-panneau[hidden] { display: none; }
@keyframes cs-deroule { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cs-titre { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); margin: 0 4px 8px; }
.cs-ligne { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-top: 1px solid rgba(255,255,255,.08); }
.cs-ligne:first-of-type { border-top: 0; }
.cs-place { width: 70px; flex: none; font-size: 12px; color: #B9CAE3; }
.cs-select { position: relative; flex: 1; min-width: 0; }
.cs-select::after { content: '⌄'; position: absolute; right: 12px; top: 50%; transform: translateY(-62%); color: rgba(255,255,255,.7); pointer-events: none; font-size: 15px; }
.cs-select select { width: 100%; appearance: none; -webkit-appearance: none; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 9px 32px 9px 12px; font: inherit; font-size: 14px; font-weight: 600; min-height: 0; }
.cs-select select option { color: #0F172A; }
.c2-stats-zone .cs-bascule { width: auto; background: none; color: rgba(255,255,255,.55); box-shadow: none; border: 0; }
.c2-stats-zone .cs-bascule.ouvert { color: rgba(255,255,255,.85); }
.cs-panneau label.cs-ligne { flex-direction: row; align-items: center; text-align: left; margin: 0; font-weight: 400; }
.cs-panneau .cs-select select { margin: 0; box-shadow: none; }
.ec-bulle strong.ec-long { font-size: 20px; padding-right: 26px; }
.rc-aide { display: none; margin: 4px 0 0; font-size: 11.5px; color: var(--muted); text-align: center; }
.rc-zone:has(.en-edition) .rc-aide { display: block; }
.rc-catalogue { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-height: 55vh; overflow-y: auto; padding: 2px; }
.rc-cat { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 0; padding: 12px 4px 10px; border-radius: 16px; background: #F7FAFC; border: 1px solid #E2E8F0; color: var(--navy-dark); font-size: 12px; font-weight: 700; }
.rc-cat:active { transform: scale(.96); }
.rc-cat-ico { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid #D5DCE6; display: grid; place-items: center; font-size: 21px; }
/* Ma journée : même style que le profil */
.mj-carte { gap: 10px; }
.mj-compte { font-size: 12px; font-weight: 800; color: #B45309; background: #FEF3C7; border-radius: 999px; padding: 3px 10px; }
.mj-compte.ok { color: #047857; background: #DCFCE7; }
.mj-liste { display: flex; flex-direction: column; }
.mj-mission { display: flex; align-items: center; gap: 12px; padding: 10px 0; text-decoration: none; color: var(--ink); border-top: 1px solid #EEF1F6; }
.mj-liste .mj-mission:first-child { border-top: 0; padding-top: 2px; }
.mj-mission:active { opacity: .7; }
.mj-rond { flex: none; width: 52px; height: 52px; padding: 2.5px; }
.mj-rond .c2-story-in { font-size: 22px; border-width: 2.5px; }
.mj-urgent .mj-rond, .mj-afaire .mj-rond { background: conic-gradient(from 200deg, #FEDA75, #FA7E1E, #D62976, #962FBF, #4F5BD5, #FEDA75); }
.mj-fait .mj-rond { background: linear-gradient(140deg, #34D399, #059669); }
.mj-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mj-texte strong { font-size: 15px; font-weight: 700; color: #0F2547; }
.mj-texte span { font-size: 12.5px; color: #64748B; line-height: 1.35; }
.mj-urgent .mj-texte span { color: #B91C1C; font-weight: 600; }
.mj-etat { flex: none; font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 4px 10px; background: #F1F5F9; color: #475569; }
.mj-urgent .mj-etat { background: #FEE2E2; color: #B91C1C; }
.mj-afaire .mj-etat { background: #FEF3C7; color: #B45309; }
.mj-fait .mj-etat { background: #DCFCE7; color: #047857; }
.mj-fleche { flex: none; color: #94A3B8; font-size: 20px; }
.mj-raccourcis { display: flex; justify-content: space-around; gap: 2px; overflow: visible; padding: 2px 0 0; }
.mj-raccourcis .c2-story { width: 60px; gap: 5px; }
.mj-raccourcis .c2-story-rond { width: 50px; height: 50px; padding: 2.5px; }
.mj-raccourcis .c2-story-in { font-size: 21px; border-width: 2.5px; }
.mj-raccourcis .c2-story-lib { font-size: 10.5px; }
/* Raccourcis du profil salarié : 6 ronds tiennent dans la largeur */
.c2-profil-page .c2-stories:not(.c2-stories-edit) { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; overflow: visible; }
.c2-profil-page .c2-stories:not(.c2-stories-edit) .c2-story { width: 100%; gap: 5px; }
.c2-profil-page .c2-stories:not(.c2-stories-edit) .c2-story-rond { width: 50px; height: 50px; padding: 2.5px; }
.c2-profil-page .c2-stories:not(.c2-stories-edit) .c2-story-in { font-size: 21px; border-width: 2.5px; }
.c2-profil-page .c2-stories:not(.c2-stories-edit) .c2-story-lib { font-size: 10px; letter-spacing: -.15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
/* Page Alertes à traiter (style du profil) */
.al-page { background: #F4F6FA; min-height: 100vh; }
.al-entete .c2-barre { display: flex; justify-content: space-between; align-items: center; }
.al-entete .jr-retour { font-size: 14px; }
.al-titre { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.al-gros { font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #fff; }
.al-sous { display: flex; flex-direction: column; gap: 4px; }
.al-sous strong { font-size: 22px; font-weight: 800; }
.al-sous span { font-size: 13px; color: rgba(255,255,255,.7); }
.al-puces { display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; }
.al-puce { font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); color: #fff; }
.al-puce.urgent { background: rgba(239,68,68,.25); border-color: rgba(252,165,165,.45); }
.al-carte { padding: 14px 16px; gap: 6px; }
.al-carte > summary { list-style: none; cursor: pointer; }
.al-carte > summary::-webkit-details-marker { display: none; }
.al-tete { display: flex; align-items: center; gap: 12px; }
.al-rond { flex: none; width: 50px; height: 50px; padding: 2.5px; }
.al-rond .c2-story-in { font-size: 21px; border-width: 2.5px; }
.al-r-urgent { background: conic-gradient(from 200deg, #FEDA75, #FA7E1E, #D62976, #962FBF, #4F5BD5, #FEDA75); }
.al-r-afaire { background: linear-gradient(140deg, #FCD34D, #F59E0B); }
.al-nb { flex: none; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: #FEF3C7; color: #B45309; }
.al-nb.urgent { background: #DC2626; color: #fff; }
.al-nb.info { background: #E0EAFF; color: #1C4477; }
.al-fleche { flex: none; color: #94A3B8; font-size: 20px; transition: transform .2s; }
.al-carte[open] .al-fleche { transform: rotate(90deg); }
.al-liste { display: flex; flex-direction: column; margin-top: 6px; }
.al-ligne { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid #EEF1F6; text-decoration: none; color: var(--ink); }
.al-ligne:active { opacity: .7; }
.al-point { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; margin-left: 6px; margin-right: 2px; box-shadow: 0 0 0 4px #F1F5F9; }
.al-urgent .al-point { background: #DC2626; box-shadow: 0 0 0 4px #FEE2E2; }
.al-afaire .al-point { background: #F59E0B; box-shadow: 0 0 0 4px #FEF3C7; }
.al-fait .al-point { background: #10B981; box-shadow: 0 0 0 4px #DCFCE7; }
.al-ligne .mj-texte strong { font-size: 14px; }
.al-urgent .mj-texte span { color: #B91C1C; }
/* Bouton menu du profil (3 traits) */
.c2-menu { width: 40px; padding: 0; border: 0; min-height: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; cursor: pointer; }
.c2-menu span { display: block; width: 17px; height: 2px; border-radius: 2px; background: #fff; }
.c2-menu span:nth-child(2) { width: 12px; margin-left: 5px; }
/* Menu bleu ouvert par-dessus le profil (toutes tailles d'écran) */
.menu.menu-flottant { display: flex; position: fixed; top: 0; bottom: 0; left: 0; z-index: 70; width: min(86vw, 330px); overflow-y: auto; -webkit-overflow-scrolling: touch; padding: calc(16px + env(safe-area-inset-top)) 14px calc(20px + env(safe-area-inset-bottom)); transform: translateX(-105%); transition: transform .25s ease; box-shadow: 8px 0 30px rgba(0,0,0,.25); }
.menu.menu-flottant.ouvert { transform: none; }
.menu.menu-flottant .menu-fermer { display: grid; align-self: flex-end; place-items: center; width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%; background: rgba(255,255,255,.12); border: 0; color: #fff; font-size: 18px; flex: none; margin-bottom: -6px; }
.menu.menu-flottant .logo-boite { flex: none; }
.menu-fond.flottant { position: fixed; inset: 0; z-index: 65; background: rgba(15,30,51,.45); opacity: 0; pointer-events: none; transition: opacity .25s; }
.menu-fond.flottant.ouvert { opacity: 1; pointer-events: auto; }
html.menu-ouvert, html.menu-ouvert body { overflow: hidden; }
/* Barre des pages admin : un seul bouton « Mon profil » */
.barre-profil { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); color: #fff; font-weight: 700; font-size: 13.5px; text-decoration: none; }
.rh-mut-justif { display: inline-block; margin-top: 4px; font-size: 12.5px; font-weight: 700; color: #0E7490; text-decoration: none; }
.rh-mut-alerte { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 16px; background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; font-size: 13px; }
.rh-mut-alerte strong { font-size: 14px; }
.doc-groupe.doc-mutuelle.a-faire { border: 2px solid #F59E0B; background: #FFFBEB; }
/* Petite pastille complémentaire dans une bulle (ex. mulets prêts) */
.ec-bulle span:has(+ .ec-extra) { font-size: 12px; color: #4A5A70; line-height: 1.3; }
.ec-extra { align-self: flex-start; margin-top: 4px; font-style: normal; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.75); border: 1px solid rgba(4,120,87,.18); color: #047857; white-space: nowrap; }
.ec-orange .ec-extra { color: #B45309; border-color: rgba(180,83,9,.2); }
/* Tableau détaillé : style du profil */
.tb-titre { display: flex; flex-direction: column; gap: 2px; position: relative; z-index: 1; }
.tb-titre span { font-size: 13px; color: rgba(255,255,255,.7); }
.tb-titre strong { font-size: 30px; font-weight: 800; letter-spacing: -.01em; }
.tb-perso { width: 40px; padding: 0; border: 0; min-height: 0; font-size: 16px; }
.tb-corps { gap: 14px; }
.tb-page .widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .tb-page .widgets { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tb-page .kpi { border-radius: 22px; border: 1px solid #EEF1F6; box-shadow: 0 10px 26px rgba(15,37,71,.07); padding: 14px; gap: 4px; }
.tb-page .kpi::after { display: none; }
.tb-page .kpi-ico { width: 34px; height: 34px; border-radius: 50%; background: #fff !important; border: 2px solid #E2E8F0; font-size: 16px; }
.tb-page .kpi.kpi-attention .kpi-ico { border-color: #F59E0B; }
.tb-page .kpi.kpi-alerte .kpi-ico { border: 0; padding: 2px; background: conic-gradient(from 200deg, #FEDA75, #FA7E1E, #D62976, #962FBF, #4F5BD5, #FEDA75) !important; box-shadow: inset 0 0 0 2px #fff; }
.tb-page .kpi.kpi-ok .kpi-ico { border-color: #10B981; }
.tb-page .kpi.kpi-attention { background: linear-gradient(150deg, #FFFBEB, #fff 60%); }
.tb-page .kpi.kpi-alerte { background: linear-gradient(150deg, #FEF2F2, #fff 60%); }
.tb-page .kpi.kpi-ok { background: linear-gradient(150deg, #F0FDF4, #fff 60%); }
.tb-page .kpi-titre { font-size: 12.5px; font-weight: 700; color: #475569; }
.tb-page .kpi .val { font-size: 30px; font-weight: 800; }
.tb-alertes { flex-direction: row; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.tb-al-puces { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.tb-al-puces em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #FEF3C7; color: #B45309; }
.tb-al-puces em.urgent { background: #FEE2E2; color: #B91C1C; }
.tb-page .barre-edition { border-radius: 18px; }
.mj-absent { align-self: center; font-size: 13px; font-weight: 600; color: #475569; text-decoration: none; padding: 6px 12px; }
/* Bouton vue iPhone / ordinateur : direction et admins uniquement */
html:not(.vue-bascule-ok) .bascule-vue { display: none !important; }
/* ===== Pages admin dans le style du profil (coquille) ===== */
.c2-coquille { background: #F4F6FA; min-height: 100vh; }
.cq-colonne { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cq-tete { gap: 14px; padding-bottom: 22px; }
.cq-tete .c2-barre { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cq-retour { width: 40px; padding: 0; border: 0; min-height: 0; font-size: 24px; line-height: 1; font-weight: 600; }
.cq-tete .jr-retour { font-size: 14px; }
.cq-tete .tb-titre strong { font-size: 26px; }
.c2-coquille .contenu { padding: 18px 16px calc(40px + env(safe-area-inset-bottom)); gap: 14px; }
@media (min-width: 861px) { .c2-coquille .contenu { padding: 24px 28px 40px; } .cq-tete { border-radius: 0 0 32px 32px; } }
.c2-coquille .carte { border-radius: 22px; border: 1px solid #EEF1F6; box-shadow: 0 10px 26px rgba(15,37,71,.07); }
.c2-coquille .kpi { border-radius: 22px; border: 1px solid #EEF1F6; box-shadow: 0 10px 26px rgba(15,37,71,.07); }
.c2-coquille .kpi::after { display: none; }
.c2-coquille .kpi-ico { border-radius: 50%; background: #fff !important; border: 2px solid #E2E8F0; }
.c2-coquille #t-flotte { display: none; }
.c2-coquille .section-titre { justify-content: flex-end; }
.c2-coquille .filtres .filtre { border-radius: 999px; }
.c2-coquille .btn-primaire { border-radius: 999px; }
.c2-coquille .soc-num { border-radius: 14px; background: linear-gradient(140deg, #3A7BD5, #1C4477); }
/* Véhicules : cartes et lignes */
.c2-coquille .flotte-carte { border-radius: 18px; border: 1px solid #EEF1F6; background: #fff; box-shadow: 0 6px 16px rgba(15,37,71,.05); }
.c2-coquille .flotte-carte:active, .c2-coquille .flotte-ligne:active { transform: scale(.98); }
.c2-coquille .flotte-ligne { border-radius: 16px; }
.c2-coquille .badge { border-radius: 999px; }
.c2-coquille .barre-mobile { display: none !important; }
.cq-tete .c2-rond { background: rgba(255,255,255,.12) !important; border: 0 !important; color: #fff !important; box-shadow: none !important; }
.cq-tete .tb-titre span { font-size: 12.5px; line-height: 1.35; }
.c2-coquille .entete:empty { display: none; }

/* ===== Une seule DA : la couleur du profil suit sur toutes les pages ===== */
:root { --tete-bg: radial-gradient(120% 90% at 100% 0%, #3A7BD5 0%, rgba(58,123,213,0) 55%), radial-gradient(90% 80% at 0% 100%, #6D5BD0 0%, rgba(109,91,208,0) 60%), linear-gradient(160deg, #0F2547 0%, #17375F 60%, #1C4477 100%); }
html[data-theme="direction"] { --tete-bg: radial-gradient(110% 80% at 100% 0%, rgba(212,160,23,.55) 0%, rgba(212,160,23,0) 55%), radial-gradient(80% 70% at 0% 100%, rgba(180,83,9,.35) 0%, rgba(180,83,9,0) 60%), linear-gradient(160deg, #14100A 0%, #241B0E 55%, #33260F 100%); }
html[data-theme="regulation"] { --tete-bg: radial-gradient(110% 80% at 100% 0%, rgba(20,184,166,.55) 0%, rgba(20,184,166,0) 55%), linear-gradient(160deg, #04201F 0%, #0B3B39 55%, #0F766E 100%); }
html[data-theme="auxiliaire"] { --tete-bg: radial-gradient(110% 80% at 100% 0%, rgba(56,189,248,.55) 0%, rgba(56,189,248,0) 55%), linear-gradient(160deg, #082539 0%, #0C3B5C 55%, #0E7490 100%); }
html[data-theme="administratif"] { --tete-bg: radial-gradient(110% 80% at 100% 0%, rgba(167,139,250,.55) 0%, rgba(167,139,250,0) 55%), linear-gradient(160deg, #170B2E 0%, #2E1065 55%, #5B21B6 100%); }
html[data-theme="mecanique"] { --tete-bg: radial-gradient(110% 80% at 100% 0%, rgba(249,115,22,.5) 0%, rgba(249,115,22,0) 55%), linear-gradient(160deg, #1C1917 0%, #3B1D0E 55%, #7C2D12 100%); }
html[data-theme="invite"] { --tete-bg: radial-gradient(110% 80% at 100% 0%, rgba(244,114,182,.5) 0%, rgba(244,114,182,0) 55%), linear-gradient(160deg, #2A0A1F 0%, #4A1035 55%, #9D174D 100%); }
html[data-theme] .c2-tete, html[data-theme] .terrain-tete { background: var(--tete-bg) !important; }
.terrain-tete { border-radius: 0 0 32px 32px; box-shadow: 0 18px 40px rgba(15,37,71,.25); position: relative; overflow: hidden; }
.terrain { background: #F4F6FA; }
.terrain-corps .carte, .terrain .carte { border-radius: 22px; border: 1px solid #EEF1F6; box-shadow: 0 10px 26px rgba(15,37,71,.07); }
.terrain .tuile { border-radius: 20px; border: 1px solid #EEF1F6; box-shadow: 0 8px 22px rgba(15,37,71,.06); }
.terrain .btn-primaire, .terrain .btn-plein { border-radius: 999px; }
/* En-têtes des formulaires terrain (désinfection, signalement…) */
.terrain .tete-formulaire { background: var(--tete-bg); color: #fff; border: 0 !important; border-radius: 0 0 32px 32px; box-shadow: 0 18px 40px rgba(15,37,71,.25); }
.terrain .tete-formulaire .btn-lien { color: #fff; background: rgba(255,255,255,.14); border-radius: 999px; padding: 6px 14px !important; text-decoration: none; font-weight: 700; }
.terrain .tete-formulaire .muted { color: rgba(255,255,255,.75); }
/* Menu latéral aux couleurs du profil */
html[data-theme] .menu { background: var(--tete-bg); background-attachment: local; }
html[data-theme] .menu nav a { color: rgba(255,255,255,.86); border-radius: 12px; }
html[data-theme] .menu nav a.actif { background: rgba(255,255,255,.18); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
html[data-theme] .menu nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
html[data-theme] .menu .menu-section { color: rgba(255,255,255,.6); }
html[data-theme] .menu .moi { border-top-color: rgba(255,255,255,.16); color: rgba(255,255,255,.75); }
html[data-theme] .menu .moi button { border-color: rgba(255,255,255,.25); border-radius: 999px; }
html[data-theme] .menu .logo-boite { border-radius: 18px; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
/* Tous les en-têtes des pages salariés : couleur du profil */
html[data-theme] .terrain > header:not(.c2-tete):not(.carnet-couverture), html[data-theme] .terrain .ctrl-tete, html[data-theme] .inst-tete {
  background: var(--tete-bg) !important; color: #fff; border: 0 !important; border-radius: 0 0 32px 32px; box-shadow: 0 18px 40px rgba(15,37,71,.22); }
html[data-theme] .terrain > header:not(.c2-tete):not(.carnet-couverture) h1, html[data-theme] .terrain .ctrl-tete h1, html[data-theme] .inst-tete h1 { color: #fff; }
html[data-theme] .terrain > header:not(.c2-tete):not(.carnet-couverture) .muted, html[data-theme] .terrain > header:not(.c2-tete) .petit, html[data-theme] .terrain .ctrl-tete .muted { color: rgba(255,255,255,.78) !important; }
html[data-theme] .terrain > header:not(.c2-tete):not(.carnet-couverture) > a.btn-lien, html[data-theme] .inst-tete .inst-retour, html[data-theme] .terrain .ctrl-tete a.btn-lien {
  align-self: flex-start; color: #fff !important; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 6px 14px !important; text-decoration: none; font-weight: 700; font-size: 14px; }
/* Couleur d'accent de chaque profil (boutons, onglets, pastilles) : plus de bleu partout */
:root { --accent: #1C4477; --accent-2: #3A7BD5; --accent-doux: #E0EAFF; --accent-txt: #1C4477; }
html[data-theme="direction"] { --accent: #6B4A12; --accent-2: #C98A1B; --accent-doux: #FBF0D9; --accent-txt: #7A5410; }
html[data-theme="regulation"] { --accent: #0B5E57; --accent-2: #14B8A6; --accent-doux: #D5F5F0; --accent-txt: #0F766E; }
html[data-theme="administratif"] { --accent: #4C1D95; --accent-2: #8B5CF6; --accent-doux: #EDE9FE; --accent-txt: #5B21B6; }
html[data-theme="mecanique"] { --accent: #7C2D12; --accent-2: #F97316; --accent-doux: #FFEDD5; --accent-txt: #9A3412; }
html[data-theme="invite"] { --accent: #831843; --accent-2: #EC4899; --accent-doux: #FCE7F3; --accent-txt: #9D174D; }
html[data-theme="auxiliaire"] { --accent: #0C4A6E; --accent-2: #38BDF8; --accent-doux: #E0F2FE; --accent-txt: #0E7490; }
.c2-coquille .btn-primaire, .terrain .btn-primaire, .tb-page .btn-primaire { background: linear-gradient(140deg, var(--accent-2), var(--accent)) !important; border-color: transparent !important; color: #fff; }
.c2-coquille .filtre { background: #fff; border: 1px solid #E6EAF0; color: #475569; }
.c2-coquille .filtre.on { background: var(--accent-doux); border-color: transparent; color: var(--accent-txt); font-weight: 700; }
.c2-coquille .soc-num { background: linear-gradient(140deg, var(--accent-2), var(--accent)); border-radius: 14px; padding: 6px 11px; }
.c2-coquille .repli-fleche { color: var(--accent-txt); }
.c2-coquille .btn-lien, .c2-coquille .c2-lien { color: var(--accent-txt); }
/* Véhicules : dossiers et lignes */
.vl-dossier > summary .grow h3 { font-size: 17px; }
.vl-liste { display: flex; flex-direction: column; }
.vl-item { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid #EEF1F6; text-decoration: none; color: var(--ink); }
.vl-liste .vl-item:first-child { border-top: 0; }
.vl-item:active { opacity: .7; }
.vl-rond { flex: none; width: 48px; height: 48px; padding: 2.5px; background: #E2E8F0; }
.vl-rond .c2-story-in { font-size: 20px; border-width: 2.5px; }
.vl-bleu .vl-rond { background: linear-gradient(140deg, var(--accent-2), var(--accent)); }
.vl-vert .vl-rond { background: linear-gradient(140deg, #34D399, #059669); }
.vl-orange .vl-rond { background: linear-gradient(140deg, #FCD34D, #F59E0B); }
.vl-violet .vl-rond { background: linear-gradient(140deg, #C4B5FD, #7C3AED); }
.vl-rouge .vl-rond { background: conic-gradient(from 200deg, #FEDA75, #FA7E1E, #D62976, #962FBF, #4F5BD5, #FEDA75); }
.vl-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vl-haut { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vl-plaque { font-size: 13px; padding: 2px 8px; border-width: 1.5px; }
.vl-txt strong { font-size: 14.5px; font-weight: 700; color: #0F2547; }
.vl-txt > span:last-child { font-size: 12px; color: #64748B; }
.vl-orange .vl-txt > span:last-child { color: #B45309; }
/* Fiche véhicule aux couleurs du profil */
html[data-theme] .vh-cover { background: var(--tete-bg) !important; }
html[data-theme] .vh-hero .doc-tuile:not(.absent) .dt-ic { background: linear-gradient(140deg, var(--accent-2), var(--accent)); box-shadow: 0 6px 14px rgba(0,0,0,.18); }
html[data-theme] .vh-spec-vin em { color: var(--accent-txt); }
html[data-theme] .vh-spec-c strong { color: #1E293B; }
html[data-theme] .vh-act { color: var(--accent-txt); }
html[data-theme] .vh-act-ico { border-color: var(--accent-doux); box-shadow: 0 4px 12px rgba(15,37,71,.08), inset 0 0 0 2px var(--accent-doux); }
html[data-theme] .vh-pole > summary strong { color: #1E293B; }
html[data-theme] .vh-pole-nb { background: var(--accent-doux); color: var(--accent-txt); }
html[data-theme] .badge.b-bleu { background: var(--accent-doux); color: var(--accent-txt); }
/* Contrôle mensuel du matériel */
.ct-resume { flex-direction: row; align-items: center; gap: 16px; }
.ct-anneau { flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent-2) calc(var(--p) * 1%), #EEF1F6 0); position: relative; }
.ct-anneau::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.ct-anneau strong { position: relative; font-size: 17px; font-weight: 800; color: var(--accent-txt); }
.ct-aide { font-size: 11.5px !important; color: #94A3B8 !important; margin-top: 2px; }
.ct-item { align-items: center; }
.ct-item .vl-txt > span { font-size: 12px; color: #64748B; }
.ct-charge { color: #334155 !important; font-weight: 600; }
.ct-rouge { color: #B91C1C !important; }
.ct-etat { font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.ct-vert { background: #DCFCE7; color: #047857; } .ct-orange { background: #FEF3C7; color: #B45309; } .ct-rouge.ct-etat { background: #FEE2E2; }
.ct-gris { background: #F1F5F9; color: #64748B; }
.ct-btn { flex: none; min-height: 34px !important; padding: 6px 12px !important; font-size: 12.5px; }
.vl-gris .vl-rond { background: #E2E8F0; }
.c2-coquille .entete .actions .filtre { min-height: 34px; }
/* Cartes règlement / DUERP aux couleurs du profil */
html[data-theme] .dp-tete { background: var(--tete-bg) !important; }
html[data-theme] .dp-btn-plein { background: linear-gradient(120deg, var(--accent), var(--accent-2)); }
html[data-theme] .dp-anneau { background: radial-gradient(closest-side, #fff 78%, transparent 79% 100%), conic-gradient(var(--accent-2) calc(var(--p) * 1%), #EEF1F6 0) !important; }
html[data-theme] .dp-anneau strong { color: var(--accent-txt); }
html[data-theme] .dp-pers.fait .dp-ini { background: linear-gradient(140deg, #34D399, #059669); }
/* Profil salarié : 2 raccourcis centrés */
.c2-profil-page .c2-stories:not(.c2-stories-edit):has(> .c2-story:nth-child(2):last-child) { display: flex; justify-content: center; gap: 28px; }
.c2-profil-page .c2-stories:not(.c2-stories-edit):has(> .c2-story:nth-child(2):last-child) .c2-story { width: 64px; }
.axa-liste { display: flex; flex-direction: column; gap: 8px; }
.axa-carte { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid #E6ECF3; }
.axa-ico { font-size: 20px; }
.axa-carte div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: #334155; }
.axa-carte strong { font-size: 14px; color: #0F2547; }
.axa-carte a { font-weight: 700; font-size: 12.5px; color: var(--accent-txt); text-decoration: none; margin-top: 2px; }
/* Raccourcis salariés : centrés quel que soit leur nombre */
.c2-profil-page .c2-stories:not(.c2-stories-edit) { display: flex !important; justify-content: space-evenly; gap: 2px; }
.c2-profil-page .c2-stories:not(.c2-stories-edit) .c2-story { width: 56px !important; flex: none; }
/* Photos de départ (admin) */
.pd-v { border-top: 1px solid #EEF1F6; }
.vl-liste .pd-v:first-child { border-top: 0; }
.pd-v > summary { list-style: none; cursor: pointer; border-top: 0; }
.pd-v > summary::-webkit-details-marker { display: none; }
.pd-v[open] .pd-fleche { transform: rotate(90deg); }
.pd-fleche { transition: transform .2s; }
.pd-barre { display: flex !important; gap: 4px; margin-top: 3px; }
.pd-barre i { width: 18px; height: 5px; border-radius: 3px; background: #E2E8F0; }
.pd-barre i.ok { background: linear-gradient(90deg, #34D399, #059669); }
.pd-corps { padding: 2px 0 12px; display: flex; flex-direction: column; gap: 8px; }
.pd-vignettes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pd-vig { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; padding: 0; min-height: 0; border: 0; background: #F1F5F9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.pd-vig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd-vig > span:last-child { position: relative; z-index: 1; font-size: 10.5px; font-weight: 700; color: #475569; }
.pd-vig:not(.vide) > span:last-child { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 4px 4px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.pd-vig.vide { border: 1.5px dashed #CBD5E1; }
.pd-vig.vide > span:first-child { font-size: 18px; opacity: .45; }
.pd-histo { align-self: flex-start; font-size: 12.5px; font-weight: 700; color: var(--accent-txt); text-decoration: none; }
.pd-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; align-items: center; }
.pd-nav .filtre, .pd-date { min-height: 32px !important; padding: 4px 12px; font-size: 13px; border-radius: 999px; }
.pd-date { width: auto; border: 1px solid #E6EAF0; background: #fff; }
/* Tout est fait : la bulle s'illumine en vert */
.ec-bulle.ec-fete { background: linear-gradient(150deg, #BBF7D0, #ECFDF5); border-color: #6EE7B7; animation: ec-fete-pulse 2.6s ease-in-out infinite; }
.ec-bulle.ec-fete strong { color: #047857; }
.ec-bulle.ec-fete::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent); animation: ec-fete-reflet 3.2s ease-in-out infinite; pointer-events: none; }
.ec-bulle.ec-fete .ec-ico { animation: ec-fete-saut 3.2s ease-in-out infinite; }
@keyframes ec-fete-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.0); } 50% { box-shadow: 0 0 0 6px rgba(16,185,129,.18); } }
@keyframes ec-fete-reflet { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }
@keyframes ec-fete-saut { 0%, 70%, 100% { transform: none; } 78% { transform: translateY(-4px) rotate(-8deg); } 86% { transform: translateY(0) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .ec-bulle.ec-fete, .ec-bulle.ec-fete::after, .ec-bulle.ec-fete .ec-ico { animation: none; } }
.c2-stats strong.c2-stat-ok { color: #6EE7B7; }
/* ===== Menu : 3 tuiles + pôles repliables (tient sur un écran) ===== */
.menu .logo-boite { padding: 8px 12px; }
.menu .logo-boite img { max-width: 140px; }
.mn { display: flex; flex-direction: column; gap: 8px; }
.mn-tuiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 4px; }
.menu nav .mn-tuile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 4px; border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); text-align: center; color: #fff; }
.mn-tuile .mn-ico { font-size: 22px; width: auto; height: auto; background: none; }
.mn-tuile .mn-lib { font-size: 11.5px; font-weight: 700; line-height: 1.2; }
.menu nav .mn-tuile.actif { background: rgba(255,255,255,.24); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.mn-pole { border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.mn-pole > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; color: #fff; }
.mn-pole > summary::-webkit-details-marker { display: none; }
.mn-pole-ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.14); font-size: 16px; flex: none; }
.mn-pole-lib { flex: 1; font-weight: 700; font-size: 14.5px; letter-spacing: .01em; }
.mn-pole-nb { font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: rgba(255,255,255,.14); color: rgba(255,255,255,.85); }
.mn-pole-fleche { color: rgba(255,255,255,.6); font-size: 18px; transition: transform .2s; }
.mn-pole[open] { background: rgba(255,255,255,.1); }
.mn-pole[open] .mn-pole-fleche { transform: rotate(90deg); }
.mn-pole-corps { display: flex; flex-direction: column; gap: 1px; padding: 0 6px 8px; }
.menu nav .mn-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; font-size: 13.5px; }
.mn-item .mn-ico { font-size: 15px; width: 22px; text-align: center; flex: none; }
.menu .moi { gap: 4px; padding-top: 10px; }
/* Menu : tuiles plus fines, effet verre, espacements homogènes */
.mn { gap: 8px; }
.mn-tuiles { gap: 8px; margin-bottom: 0; }
.menu nav .mn-tuile { gap: 6px; padding: 10px 4px 9px; border-radius: 18px; min-height: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .15s, background .2s; }
.menu nav .mn-tuile:active { transform: scale(.96); }
.mn-tuile .mn-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.mn-tuile .mn-lib { font-size: 11px; font-weight: 600; letter-spacing: .01em; color: rgba(255,255,255,.92); }
.menu nav .mn-tuile.actif { background: linear-gradient(160deg, rgba(255,255,255,.26), rgba(255,255,255,.1)); border-color: rgba(255,255,255,.28); }
.menu nav .mn-tuile.actif .mn-ico { background: rgba(255,255,255,.95); }
.mn-pole { border-radius: 18px; background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.mn-pole > summary { padding: 8px 12px 8px 8px; gap: 12px; }
.mn-pole-ico { width: 34px; height: 34px; border-radius: 50%; font-size: 16px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.mn-pole-lib { font-size: 14px; font-weight: 600; }
.mn-pole-nb { background: none; padding: 0; font-weight: 600; color: rgba(255,255,255,.5); }
.mn-pole-fleche { font-size: 16px; }
.menu nav .mn-item { padding: 7px 10px 7px 12px; font-size: 13.5px; color: rgba(255,255,255,.85); }
.mn-tuiles { margin-bottom: 2px; } .menu nav .mn-tuile { padding: 11px 4px; }
/* Menu : barre segmentée fine en haut, bloc centré verticalement (pas de grand vide) */
.mn-tuiles { display: flex; gap: 0; padding: 4px; border-radius: 999px; margin-bottom: 6px;
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.menu nav .mn-tuile { flex: 1; flex-direction: row; gap: 6px; padding: 8px 6px !important; border-radius: 999px; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.mn-tuile .mn-ico { width: auto; height: auto; background: none !important; box-shadow: none; font-size: 15px; }
.mn-tuile .mn-lib { font-size: 12.5px; font-weight: 600; }
.menu nav .mn-tuile.actif { background: rgba(255,255,255,.2); border: 0; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.menu.menu-flottant, .coquille .menu { gap: 14px; }
.menu .mn { margin: auto 0; gap: 10px; }
.menu .moi { margin-top: 0; }
.mn-pole > summary { padding: 10px 12px 10px 10px; }
/* ===== Menu : carte joueur, tons du profil ===== */
.mn-marque { display: flex; align-items: center; gap: 10px; margin-top: -40px; padding-right: 52px; }
.mn-marque img { height: 30px; background: #fff; border-radius: 9px; padding: 4px 7px; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.mn-marque span { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.menu .mn-joueur { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 22px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 10px 26px rgba(0,0,0,.18); position: relative; overflow: hidden; }
.mn-joueur::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, var(--accent-2), transparent 70%); opacity: .35; pointer-events: none; }
.mn-anneau { position: relative; flex: none; width: 54px; height: 54px; border-radius: 50%; padding: 2.5px;
  background: conic-gradient(from 200deg, var(--accent-2), #fff, var(--accent-2), var(--accent), var(--accent-2)); animation: mn-tourne 8s linear infinite; }
.mn-avatar { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(140deg, var(--accent), var(--accent-2)); border: 2.5px solid rgba(0,0,0,.25); font-weight: 800; font-size: 17px; color: #fff; animation: mn-tourne 8s linear infinite reverse; }
.mn-insigne { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 12px; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
@keyframes mn-tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mn-anneau, .mn-avatar { animation: none; } }
.mn-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mn-id strong { font-size: 16px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-role { align-self: flex-start; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.16); color: rgba(255,255,255,.9); }
.mn-statut { position: absolute; top: 10px; right: 12px; display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; color: rgba(255,255,255,.65); }
.mn-statut i { width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 3px rgba(52,211,153,.25); }
/* Pôles : icônes en anneau dégradé comme les stories */
.mn-pole-ico { background: linear-gradient(140deg, rgba(255,255,255,.22), rgba(255,255,255,.06)) !important; }
.mn-pole[open] .mn-pole-ico { background: linear-gradient(140deg, var(--accent-2), var(--accent)) !important; box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.mn-pied { border-top: 0 !important; padding-top: 0 !important; margin-top: 4px !important; }
.mn-pied button { min-height: 40px !important; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.14) !important; color: rgba(255,255,255,.8) !important; }
.menu .mn { margin: 0; flex: 1; gap: 10px; }
.mn-pole > summary { padding: 13px 14px 13px 12px; }
.mn-pole-ico { width: 40px; height: 40px; font-size: 18px; }
.mn-pole-lib { font-size: 15px; }
.mn-pied { margin-top: auto !important; }
.menu nav .mn-tuile { white-space: nowrap; }
/* Alertes en onglets quand il y en a beaucoup */
.al-onglets { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px 2px; }
.al-onglets::-webkit-scrollbar { display: none; }
.al-onglets .al-puce { flex: none; min-height: 0; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700; transition: background .2s, color .2s; }
.al-onglets .al-puce.on { background: #fff; color: #0F2547; border-color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.al-onglets .al-puce.urgent.on { color: #B91C1C; }
/* Bandeau de migration (ancienne icône Angel Flotte) */
.migration { position: fixed; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 90; }
.migration-carte { display: grid; grid-template-columns: 48px 1fr; gap: 10px 12px; padding: 14px; border-radius: 22px; color: #fff; background: linear-gradient(140deg, #1C4477, #0F2547); box-shadow: 0 18px 40px rgba(15,37,71,.4); }
.migration-carte img { width: 48px; height: 48px; border-radius: 12px; }
.migration-carte div { display: flex; flex-direction: column; gap: 3px; }
.migration-carte strong { font-size: 15px; }
.migration-carte span { font-size: 12.5px; color: rgba(255,255,255,.8); line-height: 1.4; }
.migration-carte a { grid-column: 1 / -1; text-align: center; padding: 11px; border-radius: 999px; background: #fff; color: #0F2547; font-weight: 800; text-decoration: none; }
