/* ==========================================================================
   Secour IT : bureau interactif (one-page)
   --------------------------------------------------------------------------
   Sommaire
     1. Polices
     2. Variables
     3. Base
     4. Scène : page, bureau, bouton de contact
     5. Barre de menu
     6. Dock
     7. Fenêtres (chrome macOS : barre de titre, feux, ombres, états)
     8. Phases de l'animation (splash, apparition du bureau, bouton de contact)
     9. Messagerie
    10. Navigateur
    11. Application de gestion (CRM)
    12. Radio (bouton de la barre de menu, lecteur)
    13. Réseau (Wi-Fi), batterie, réglages, onglets du bas, modales
    14. Page de mentions légales
    15. Thème sombre
    16. prefers-reduced-motion

   Une seule couleur d'accent : le bleu du logo (--accent).
   ========================================================================== */


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


/* 2. VARIABLES -------------------------------------------------------------- */
:root {
  /* Surfaces et texte (contrastes WCAG : ink 17,9 · ink-2 7,6 · ink-3 5,8) */
  --page: #f7f9fc;
  --surface: #ffffff;
  --bg-soft: #f6f8fb;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #5b6678;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;

  /* Accent unique : le bleu du logo */
  --accent: #1a6ada;
  --accent-hover: #1558b8;
  --accent-ink: #0f4aa0;
  --accent-soft: #eaf2fd;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Mouvement : --ease pour l'interface, --ease-mac pour les fenêtres
     (démarrage vif, arrivée très douce, comme macOS) */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-mac: cubic-bezier(0.32, 0.72, 0, 1);

  /* Géométrie du bureau */
  --menubar-h: 1.75rem;
  --dock-clear: 6.25rem;       /* zone réservée au dock sous les fenêtres */
  --desk-radius: clamp(12px, 1.6vw, 22px);

  /* Ombres de fenêtre : un filet de 0,5 px + trois couches (contact, proche, lointaine) */
  --win-shadow:
    0 0 0 0.5px rgb(15 23 42 / 0.2),
    0 2px 4px rgb(15 23 42 / 0.06),
    0 12px 24px -6px rgb(15 23 42 / 0.16),
    0 36px 72px -16px rgb(15 23 42 / 0.32);
  --win-shadow-inactive:
    0 0 0 0.5px rgb(15 23 42 / 0.16),
    0 6px 14px -6px rgb(15 23 42 / 0.12),
    0 22px 44px -14px rgb(15 23 42 / 0.2);
}


/* 3. BASE ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;                 /* jamais de scroll horizontal */
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
a { color: var(--accent-ink); text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.75rem 1rem; background: var(--ink); color: #fff;
  border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.9rem; padding: 0.7rem 1.4rem;
  border: 1px solid transparent; border-radius: 14px;
  font: inherit; font-size: 0.9375rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 2px rgb(26 106 218 / 0.35), 0 8px 20px -8px rgb(26 106 218 / 0.55), inset 0 1px 0 rgb(255 255 255 / 0.16);
}
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--lg { min-height: 3.25rem; padding: 0.85rem 1.75rem; font-size: 1rem; border-radius: 16px; }


/* 4. SCÈNE ------------------------------------------------------------------
   Une seule page de la hauteur de l'écran : le bureau prend toute la place
   disponible, le bouton de contact et le lien légal sont dessous.            */
.stage {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: clamp(0.5rem, 2vw, 1.5rem) clamp(0.5rem, 2.5vw, 2rem) 0;
}

/* Le bureau, sur toute la largeur disponible */
.stage__main {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  max-width: 95rem;
  margin-inline: auto;
  display: flex;
}

.desk {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 28rem;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--desk-radius);
  background: #dfe9f8;              /* couleur de repli pendant le chargement du fond */
  box-shadow:
    0 0 0 1px rgb(15 23 42 / 0.06),
    0 24px 48px -24px rgb(15 23 42 / 0.28),
    0 60px 120px -48px rgb(15 23 42 / 0.32);
}

/* Le fond d'écran est tiré au hasard à chaque visite par le script du <head>
   (index.html), qui pose --wp. Sans lui : le dégradé d'origine. */
.desk__wallpaper {
  position: absolute; inset: 0; z-index: -1;
  background: var(--wp, url("../img/wallpaper.webp")) center / cover no-repeat;
  user-select: none;
}

/* Zone où vivent les fenêtres : entre la barre de menu et le dock */
.desk__windows {
  position: absolute;
  inset: var(--menubar-h) 0 var(--dock-clear) 0;
  z-index: 10;
}

/* Pied de page, aligné sur les bords du bureau : « Services » en bas à gauche, « À propos » en bas à droite,
   au centre le bouton de contact avec « Mentions légales » dessous. */
.stage__foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 0.75rem 1rem;
  width: 100%; max-width: 95rem; margin-inline: auto;
  padding: 0.9rem 0 1rem;
}
.foot__left { justify-self: start; margin-top: 0.4rem; }
.foot__right { justify-self: end; margin-top: 0.4rem; }
.foot__center { display: grid; justify-items: center; gap: 0.55rem; }
/* « Passer l'animation » et « Contactez-moi » partagent la même place : l'un laisse la place à l'autre */
.foot__slot { display: grid; }
.foot__slot > * { grid-area: 1 / 1; justify-self: center; }
.legal-link { color: var(--ink-3); font-size: 0.8125rem; text-underline-offset: 0.2em; }
.legal-link:hover { color: var(--accent-ink); }

.tab {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0.5rem 1.15rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink-2); font: inherit; font-size: 0.9375rem; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tab:hover { background: var(--bg-soft); border-color: var(--line-strong); color: var(--ink); }

/* Petit écran : le contact d'abord, puis Services et À propos côte à côte */
@media (max-width: 639.98px) {
  .stage__foot { grid-template-columns: 1fr 1fr; grid-template-areas: "center center" "left right"; }
  .foot__center { grid-area: center; }
  .foot__left { grid-area: left; justify-self: stretch; margin-top: 0; }
  .foot__right { grid-area: right; justify-self: stretch; margin-top: 0; }
}


/* 5. BARRE DE MENU ---------------------------------------------------------- */
.menubar {
  position: absolute; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; gap: 1.1rem;
  height: var(--menubar-h);
  padding-inline: 0.9rem;
  background: rgb(255 255 255 / 0.58);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid rgb(15 23 42 / 0.06);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  user-select: none;
  white-space: nowrap;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .menubar { background: rgb(255 255 255 / 0.9); }
}
.menubar__logo {
  box-sizing: content-box;
  width: auto; height: 0.95rem; aspect-ratio: 800 / 85; flex: none;
  padding: 0.2rem 0.45rem;
}
/* Compressible : sur un petit écran le nom s'abrège plutôt que de faire déborder la barre */
.menubar__app { flex: 0 1 auto; min-width: 0; overflow: hidden; font-weight: 700; text-overflow: ellipsis; }
.menubar__menus { display: none; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.menubar__status { display: flex; align-items: center; flex: none; gap: 0.8rem; }
.menubar__status .icon { width: 1.05rem; height: 1.05rem; stroke-width: 1.9; }
.menubar__clock { display: flex; gap: 0.35rem; font-variant-numeric: tabular-nums; }
.menubar__date { display: none; }
@media (min-width: 860px) { .menubar__date { display: inline; } }
/* Les menus décoratifs n'apparaissent que si la barre a la place de tout afficher : titre de la radio et horloge d'abord */
@media (min-width: 1280px) { .menubar__menus { display: flex; } }
@media (max-width: 759.98px) { .menubar__app { display: none; } }


/* 6. DOCK ------------------------------------------------------------------- */
.dock {
  position: absolute; left: 50%; bottom: 0.7rem; z-index: 40;
  display: flex; align-items: flex-end; gap: 0.5rem;
  padding: 0.4rem;
  transform: translateX(-50%);
  border-radius: 1.4rem;
  background: rgb(255 255 255 / 0.46);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgb(255 255 255 / 0.75);
  box-shadow: 0 14px 32px -12px rgb(15 23 42 / 0.4), inset 0 0 0 0.5px rgb(15 23 42 / 0.1);
  user-select: none;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .dock { background: rgb(255 255 255 / 0.85); }
}

/* Chaque icône a une taille = repos × --s. --s est posée par js/dockfx.js (effet de loupe,
   une valeur PROPRE à chaque icône) ; sans JavaScript elle vaut 1. Le dock, centré, s'élargit
   donc quand les icônes grossissent. Le bouton porte l'infobulle et le point de statut ;
   la tuile à l'intérieur remplit le bouton. */
.dock { --dock-size: 3.25rem; }
.dock__item {
  position: relative;
  display: block;
  flex: none;
  width: calc(var(--dock-size) * var(--s, 1));
  height: calc(var(--dock-size) * var(--s, 1));
  padding: 0; border: 0; background: none;
  cursor: pointer;
}
span.dock__item { cursor: default; }
.dock__tile {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  border-radius: 26%;
  background: linear-gradient(180deg, #ffffff, #eaeff6);
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.2), inset 0 0 0 0.5px rgb(15 23 42 / 0.12);
  color: var(--accent);
}
.dock__tile .icon { width: 49%; height: 49%; }
.dock__item--accent .dock__tile { color: var(--accent); }

/* Point « application ouverte » sous l'icône */
.dock__item.is-running::after {
  content: "";
  position: absolute; bottom: -0.3rem; left: 50%;
  width: 0.25rem; height: 0.25rem; margin-left: -0.125rem;
  border-radius: 50%; background: var(--ink-2);
}

/* Pastille de notification (ex. messages non lus) sur l'icône du dock */
.dock__badge {
  position: absolute; top: -0.22rem; right: -0.22rem; z-index: 2;
  display: grid; place-items: center;
  min-width: 1.05rem; height: 1.05rem; padding: 0 0.22rem;
  background: var(--accent); color: #fff;
  border: 2px solid #fff; border-radius: 999px;
  font-size: 0.6875rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 3px rgb(15 23 42 / 0.35);
  pointer-events: none;
}

/* Infobulle : suit l'icône survolée (elle grandit avec le bouton) */
.dock__item::before {
  content: attr(data-label);
  position: absolute; bottom: calc(100% + 0.6rem); left: 50%;
  padding: 0.25rem 0.65rem;
  background: rgb(30 41 59 / 0.92); border-radius: 0.5rem;
  color: #fff; font-size: 0.75rem; font-weight: 500; line-height: 1.3;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translate(-50%, 4px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.dock__item:focus-visible { outline-offset: 4px; border-radius: 0.85rem; }
.dock__item:focus-visible::before { opacity: 1; transform: translate(-50%, 0); }
@media (hover: hover) and (pointer: fine) {
  .dock__item:hover::before { opacity: 1; transform: translate(-50%, 0); }
}

.dock__sep { align-self: center; width: 1px; height: 2.6rem; background: rgb(15 23 42 / 0.18); }

/* Rebond au lancement d'une application */
@keyframes dock-bounce {
  0%, 100% { transform: translateY(0); }
  28% { transform: translateY(-1.1rem); }
  52% { transform: translateY(0); }
  72% { transform: translateY(-0.55rem); }
}
.dock__tile.is-launching { animation: dock-bounce 0.9s var(--ease) 1; }

/* Mobile : dock simplifié, pas de loupe. Fichiers et Agenda se masquent seulement sur les plus petits écrans. */
@media (max-width: 767.98px) {
  :root { --dock-clear: 5.25rem; }
  .dock { --dock-size: 2.75rem; gap: 0.35rem; bottom: 0.6rem; }
  .dock__item--extra, .dock__sep { display: none; }
  .dock__item::before { display: none; }
}
@media (max-width: 359.98px) { .dock__item--mid { display: none; } }


/* 7. FENÊTRES --------------------------------------------------------------- */
.window {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--w); height: var(--h);
  display: flex; flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border-radius: 0.8rem;
  box-shadow: var(--win-shadow-inactive);
  transform-origin: 50% 50%;
  transition:
    left 0.55s var(--ease-mac), top 0.55s var(--ease-mac),
    width 0.55s var(--ease-mac), height 0.55s var(--ease-mac),
    opacity 0.32s var(--ease), transform 0.55s var(--ease-mac),
    box-shadow 0.3s var(--ease), border-radius 0.3s var(--ease);
}
.window.is-active { box-shadow: var(--win-shadow); }

/* Position et taille par défaut (en % de la zone de fenêtres) */
.window--chat    { --x: 17%; --y: 7%;  --w: 66%; --h: 86%; container: chatwin / inline-size; }
.window--browser { --x: 6%;  --y: 5%;  --w: 88%; --h: 90%; }
@media (max-width: 767.98px) {
  /* Mobile : la fenêtre occupe l'écran presque entier */
  .window--chat, .window--browser { --x: 0.5rem; --y: 0.5rem; --w: calc(100% - 1rem); --h: calc(100% - 0.75rem); }
}

/* Plein écran (bouton vert) : toute la zone de fenêtres */
.window.is-zoomed { --x: 0%; --y: 0%; --w: 100%; --h: 100%; border-radius: 0; }

/* Fermée : s'efface en rétrécissant légèrement */
.window.is-closed {
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: scale(0.94) translateY(0.75rem);
  transition:
    opacity 0.25s var(--ease), transform 0.3s var(--ease),
    visibility 0s linear 0.3s;
}
/* Réduite : file vers son icône du dock (--mx / --my posées par le JS) */
.window.is-minimized {
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate(var(--mx, 0), var(--my, 0)) scale(0.1);
  transition:
    opacity 0.4s var(--ease) 0.1s, transform 0.55s var(--ease-mac),
    visibility 0s linear 0.55s;
}

/* Barre de titre */
.window__bar {
  position: relative;
  display: flex; align-items: center; gap: 0.5rem;
  height: 2.6rem; flex: none;
  padding-inline: 0.5rem 0.9rem;
  background: linear-gradient(180deg, #fbfcfe, #f0f3f8);
  border-bottom: 1px solid var(--line);
  user-select: none;
}
.window__title {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding-inline: 6rem;
  color: var(--ink-3); font-size: 0.8125rem; font-weight: 600;
  pointer-events: none;
}
.window.is-active .window__title { color: var(--ink-2); }

/* Les trois feux : gris quand la fenêtre est inactive, colorés au survol.
   Le bouton fait 24 px (cible tactile WCAG 2.2) ; le disque visible de 14 px est
   dessiné par ::after. */
.traffic { position: relative; z-index: 2; display: flex; }
.traffic__btn {
  position: relative;
  display: grid; place-items: center;
  width: 1.5rem; height: 1.5rem;
  padding: 0; border: 0; background: none;
  color: rgb(15 23 42 / 0.62);
  cursor: default;
}
.traffic__btn::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 0.875rem; height: 0.875rem; margin: -0.4375rem 0 0 -0.4375rem;
  border-radius: 50%;
  background: #d5dae2;
  box-shadow: inset 0 0 0 0.5px rgb(15 23 42 / 0.18);
  transition: background-color 0.15s var(--ease);
}
.traffic__btn .icon { position: relative; z-index: 1; width: 0.58rem; height: 0.58rem; stroke-width: 3; opacity: 0; transition: opacity 0.12s; }
.window.is-active .traffic__btn--close::after, .traffic:hover .traffic__btn--close::after { background: #ff5f57; }
.window.is-active .traffic__btn--min::after,   .traffic:hover .traffic__btn--min::after   { background: #febc2e; }
.window.is-active .traffic__btn--zoom::after,  .traffic:hover .traffic__btn--zoom::after  { background: #28c840; }
.traffic:hover .icon, .traffic__btn:focus-visible .icon { opacity: 1; }
.traffic__btn:focus-visible { outline-offset: -2px; border-radius: 50%; }

.window__body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }


/* 8. PHASES DE L'ANIMATION ---------------------------------------------------
   La timeline (js/timeline.js) écrit la phase dans <html data-phase="…"> :
   splash → desk → chat → transition → crm → cta. Sans data-phase (JavaScript
   absent ou en échec), tout est simplement visible.                          */

/* Splash : le logo au centre sur fond clair */
.splash { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; }
html[data-phase="splash"] .splash, html[data-phase="desk"] .splash { display: grid; }
.splash__veil { position: absolute; inset: 0; background: var(--page); transition: opacity 0.9s var(--ease); }
.splash.is-leaving { pointer-events: none; }
.splash.is-leaving .splash__veil { opacity: 0; }
.splash__inner { position: relative; display: grid; justify-items: center; gap: 1.1rem; text-align: center; }
.splash__tagline {
  color: var(--ink-2); font-size: clamp(1rem, 2.6vw, 1.4rem); font-weight: 500; letter-spacing: -0.01em;
  transition: opacity 0.5s var(--ease);
}
.splash.is-leaving .splash__tagline { opacity: 0; }
.splash__logo {
  box-sizing: content-box;
  position: relative;
  width: min(72vw, 24rem); height: auto;
  padding: clamp(0.55rem, 2.2vw, 0.95rem) clamp(1rem, 3.2vw, 1.7rem);
  background-color: #e6ecf5;
  border-radius: clamp(0.8rem, 2.6vw, 1.2rem);
  box-shadow: 0 18px 44px -22px rgb(15 23 42 / 0.35), inset 0 0 0 1px rgb(15 23 42 / 0.06);
  transform-origin: 50% 50%;
  animation: splash-in 0.9s var(--ease) both;
}
@keyframes splash-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }

/* Le bureau apparaît en fondu, le dock monte depuis le bas */
.desk { transition: opacity 0.9s var(--ease); }
html[data-phase="splash"] .desk { opacity: 0; }
.dock { transition: opacity 0.7s var(--ease) 0.2s, transform 0.9s var(--ease-mac) 0.2s; }
html[data-phase="splash"] .dock { opacity: 0; transform: translate(-50%, 1.5rem); }

/* Le logo de la barre de menu reste invisible jusqu'à l'arrivée du logo du splash */
html[data-phase="splash"] .menubar__logo,
html[data-phase="desk"] .menubar__logo:not(.is-landed) { opacity: 0; }

/* Bouton « Contactez-moi » : fondu à l'arrivée du CRM */
html[data-phase]:not([data-phase="cta"]) #contact-cta {
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, visibility 0s linear 0.3s;
}
html[data-phase="cta"] #contact-cta {
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease),
    background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

/* Bouton « Passer l'animation » : sous le bureau (jamais posé sur l'écran), visible
   dès le début, retiré à la fin. */
.skip-anim {
  /* Au-dessus de l'écran de démarrage (z-index 90), sinon il est incliquable pendant le splash */
  position: relative; z-index: 95;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0.5rem 1.1rem;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 12px;
  color: var(--ink-2); font: inherit; font-size: 0.9375rem; font-weight: 600; line-height: 1.2;
  cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.skip-anim:hover { background: var(--bg-soft); color: var(--ink); }
html:not([data-phase]) .skip-anim, html[data-phase="cta"] .skip-anim { display: none; }

/* Saut de l'animation : toutes les transitions et animations sont coupées un instant */
html.no-motion *, html.no-motion *::before, html.no-motion *::after {
  transition: none !important; animation: none !important;
}


/* 9. MESSAGERIE -------------------------------------------------------------- */
.chat { display: grid; grid-template-columns: 14.5rem minmax(0, 1fr); }
@container chatwin (max-width: 40rem) {
  .chat { grid-template-columns: minmax(0, 1fr); }
  .chat__side { display: none; }
}

/* Colonne de gauche : espace de travail, groupes, messages privés (décorative) */
.chat__side { min-height: 0; overflow: hidden; padding: 0.85rem 0.55rem; background: #f4f6fb; border-right: 1px solid var(--line); font-size: 0.875rem; user-select: none; }
.chat__workspace { margin: 0 0.5rem 0.9rem; color: var(--ink); font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.01em; }
.chat__section + .chat__section { margin-top: 1rem; }
.chat__section-title { margin: 0 0.5rem 0.3rem; color: var(--ink-3); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; }
.chat__list { display: grid; gap: 0.1rem; margin: 0; padding: 0; list-style: none; }
.chat__item { display: flex; align-items: center; gap: 0.55rem; padding: 0.32rem 0.5rem; border-radius: 0.5rem; color: var(--ink-2); font-weight: 500; }
.chat__item.has-unread .chat__item-name { color: var(--ink); font-weight: 700; }
.chat__item.is-active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; }
.chat__item.is-active .chat__item-name { color: var(--accent-ink); }
.chat__hash { width: 1.5rem; text-align: center; color: var(--ink-3); font-weight: 600; }
.chat__item.is-active .chat__hash { color: var(--accent-ink); }
.chat__item-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__badge { min-width: 1.25rem; padding: 0.05rem 0.4rem; background: var(--accent); border-radius: 999px; color: #fff; font-size: 0.75rem; font-weight: 700; line-height: 1.4; text-align: center; }

/* Avatars : photo, ou initiales sur pastille */
.avatar { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 50%; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar--xs { width: 1.5rem; height: 1.5rem; font-size: 0.75rem; }
.avatar--md { width: 2.25rem; height: 2.25rem; font-size: 0.8125rem; }
.avatar--spacer { visibility: hidden; }
.presence { position: absolute; right: -0.1rem; bottom: -0.1rem; width: 0.55rem; height: 0.55rem; border: 2px solid #f4f6fb; border-radius: 50%; background: #8896a8; box-sizing: content-box; }
.presence--online { background: #15803d; }
.presence--away { background: #a16207; }

/* Zone principale */
.chat__main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; }
.chat__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex: none; height: 3.25rem; padding-inline: 1.1rem; border-bottom: 1px solid var(--line); }
.chat__title { display: flex; align-items: baseline; gap: 0.35rem; font-size: 1rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.chat__title .chat__hash { width: auto; color: var(--ink-3); }
.chat__count { color: var(--ink-3); font-size: 0.75rem; line-height: 1.3; }
.chat__members { display: flex; }
.chat__members .avatar { margin-left: -0.45rem; border: 2px solid #fff; box-sizing: content-box; }
.chat__members .avatar:first-child { margin-left: 0; }

.chat__log {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 0.6rem;
  padding: 1rem 1.1rem 0.4rem;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.chat__day { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.2rem; color: var(--ink-3); font-size: 0.75rem; font-weight: 600; }
.chat__day::before, .chat__day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.chat__narration { align-self: center; padding: 0.25rem 0.8rem; background: #f4f6fb; border-radius: 999px; color: var(--ink-3); font-size: 0.8125rem; font-style: italic; animation: msg-in 0.4s var(--ease) both; }

.msg { display: flex; align-items: flex-end; gap: 0.6rem; max-width: min(34rem, 88%); animation: msg-in 0.4s var(--ease) both; }
.msg--other { align-self: flex-start; }
.msg--me { align-self: flex-end; flex-direction: row-reverse; }
.msg.is-cont { margin-top: -0.35rem; }
.msg__col { display: grid; gap: 0.2rem; min-width: 0; }
.msg--me .msg__col { justify-items: end; }
.msg__meta { display: flex; align-items: baseline; gap: 0.5rem; color: var(--ink-3); font-size: 0.75rem; line-height: 1.2; }
.msg--me .msg__meta { flex-direction: row-reverse; }
.msg__name { color: var(--ink); font-weight: 650; }
.msg.is-cont .msg__meta { display: none; }
.msg__bubble { padding: 0.55rem 0.9rem; border-radius: 1.1rem; font-size: 0.9375rem; line-height: 1.45; overflow-wrap: anywhere; }
.msg--other .msg__bubble { background: #eff2f8; border-bottom-left-radius: 0.35rem; color: var(--ink); }
.msg--me .msg__bubble { background: var(--accent); border-bottom-right-radius: 0.35rem; color: #fff; }
/* Réactions : pastille « émoji + nombre », comme dans Slack. Celle de l'utilisateur (« me ») est teintée. */
.msg__reactions { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.1rem; }
.msg--me .msg__reactions { justify-content: flex-end; }
.reaction {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.1rem 0.55rem 0.1rem 0.45rem;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--ink-2); font-size: 0.8125rem; font-weight: 600; line-height: 1.5;
  animation: reaction-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.reaction.is-mine { background: var(--accent-soft); border-color: rgb(26 106 218 / 0.4); color: var(--accent-ink); }
.reaction__emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 1rem; line-height: 1.3; }
@keyframes reaction-pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
.mention { font-weight: 650; }
.msg--other .mention { color: var(--accent-ink); }

/* « est en train d'écrire… » : trois points dans la bulle */
.msg.is-typing .msg__bubble { display: flex; align-items: center; gap: 0.28rem; min-height: 2.15rem; padding-block: 0.6rem; }
.dots { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--ink-3); animation: dot 1.1s var(--ease) infinite; }
.msg--me .dots { background: rgb(255 255 255 / 0.9); }
.dots:nth-child(2) { animation-delay: 0.15s; }
.dots:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-0.28rem); opacity: 1; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(0.6rem) scale(0.98); } to { opacity: 1; transform: none; } }

.chat__typing { flex: none; display: flex; align-items: center; height: 1.6rem; padding-inline: 1.1rem; color: var(--ink-3); font-size: 0.75rem; opacity: 0; transition: opacity 0.2s var(--ease); }
.chat__typing.is-on { opacity: 1; }
.chat__composer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex: none; margin: 0 1.1rem 1rem; padding: 0.55rem 0.55rem 0.55rem 1rem; border: 1px solid var(--line-strong); border-radius: 0.95rem; color: var(--ink-3); font-size: 0.9375rem; user-select: none; }
.chat__composer-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__send { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 0.65rem; background: var(--accent-soft); color: var(--accent-ink); }
.chat__send .icon { width: 1rem; height: 1rem; }


/* 10. NAVIGATEUR ------------------------------------------------------------- */
.browser__bar { gap: 0.9rem; }
.browser__nav { position: relative; z-index: 2; display: none; gap: 0.25rem; }
@media (min-width: 768px) { .browser__nav { display: flex; } }
.browser__btn { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; padding: 0; border: 0; border-radius: 0.45rem; background: none; color: var(--ink-3); }
.browser__btn[disabled] { opacity: 0.4; }
.browser__btn .icon { width: 1.05rem; height: 1.05rem; }
.address {
  position: relative; z-index: 1;
  flex: 1; max-width: 34rem; margin-inline: auto;
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  height: 1.75rem; padding-inline: 0.75rem;
  background: #e8ecf3; border-radius: 0.5rem;
  color: var(--ink-2); font-size: 0.8125rem; line-height: 1;
  overflow: hidden; white-space: nowrap;
}
.address .icon { width: 0.8rem; height: 0.8rem; stroke-width: 2.2; color: var(--ink-3); }

/* La page du navigateur : barre de chargement, puis le CRM apparaît en fondu */
.browser__view { position: relative; background: #fff; }
.loadbar { position: absolute; inset: 0 0 auto 0; z-index: 3; height: 2px; opacity: 0; }
.loadbar span { display: block; width: 0; height: 100%; background: var(--accent); }
.browser__view.is-loading .loadbar { opacity: 1; }
.browser__view.is-loading .loadbar span { width: 92%; transition: width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.browser__view.is-ready .loadbar { opacity: 0; transition: opacity 0.4s var(--ease) 0.2s; }
.browser__view.is-ready .loadbar span { width: 100%; transition: width 0.25s var(--ease); }
.browser__page {
  flex: 1; min-height: 0; display: flex;
  container: crm / inline-size;
  opacity: 0; visibility: hidden; transform: translateY(0.5rem);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0s linear 0.6s;
}
.browser__view.is-ready .browser__page { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }


/* 11. APPLICATION DE GESTION (CRM) -------------------------------------------
   Thème clair par défaut ; le thème sombre reprend l'allure de la démo d'origine.
   La mise en page suit la largeur de la fenêtre (container queries), pas celle de
   l'écran : le CRM passe en onglets du bas dès que la fenêtre est étroite.      */
.crm {
  --c-bg: #f6f8fb; --c-surface: #ffffff; --c-side: #ffffff;
  --c-ink: #0f172a; --c-ink2: #475569; --c-ink3: #5b6678;
  --c-line: #e2e8f0; --c-hover: #f1f5fa; --c-field: #8896a8; --c-off: #8896a8;
  --c-accent: #1a6ada; --c-accent-ink: #0f4aa0; --c-accent-soft: #eaf2fd;
  --t-ok: #166534; --t-warn: #92580a; --t-danger: #b42318; --t-accent: #0f4aa0;
  --b-ok: #e7f6ec; --b-warn: #fdf3e0; --b-danger: #fdecea; --b-info: #eaf2fd; --b-neutral: #eef1f6;
  --t-info: #0f4aa0; --t-neutral: #475569;

  display: grid; grid-template-columns: 13.5rem minmax(0, 1fr);
  flex: 1; min-width: 0; height: 100%;
  background: var(--c-bg); color: var(--c-ink2);
  font-size: 0.875rem; line-height: 1.45;
}
.crm[data-theme="dark"] {
  --c-bg: #0b1220; --c-surface: #111a2e; --c-side: #0e1626;
  --c-ink: #e6ebf5; --c-ink2: #b0bacd; --c-ink3: #93a0b8;
  --c-line: #243149; --c-hover: #18233b; --c-field: #6b7a94; --c-off: #56627a;
  --c-accent: #5b9bf5; --c-accent-ink: #a4c8fb; --c-accent-soft: rgb(91 155 245 / 0.16);
  --t-ok: #6ee7a0; --t-warn: #f5c26b; --t-danger: #ff9a91; --t-accent: #a4c8fb;
  --b-ok: rgb(34 197 94 / 0.15); --b-warn: rgb(245 158 11 / 0.15); --b-danger: rgb(239 68 68 / 0.16);
  --b-info: rgb(91 155 245 / 0.16); --b-neutral: rgb(148 163 184 / 0.14);
  --t-info: #a4c8fb; --t-neutral: #b0bacd;
}
.crm h2, .crm h3, .crm h4 { color: var(--c-ink); }
.crm button { font-family: inherit; }

.crm__side { display: flex; flex-direction: column; padding: 0.9rem 0.6rem; background: var(--c-side); border-right: 1px solid var(--c-line); }
.crm__brand { padding: 0.2rem 0.5rem 1rem; }
.crm__logo { display: inline-grid; place-items: center; height: 2rem; padding-inline: 0.8rem; border: 1px dashed var(--c-field); border-radius: 0.55rem; color: var(--c-ink3); font-size: 0.75rem; font-weight: 600; }
.crm__nav { display: grid; gap: 0.15rem; }
.crm__navitem { display: flex; align-items: center; gap: 0.65rem; padding: 0.55rem 0.7rem; border: 0; border-radius: 0.6rem; background: none; color: var(--c-ink2); font-size: 0.875rem; font-weight: 550; text-align: left; cursor: pointer; transition: background-color 0.15s var(--ease), color 0.15s var(--ease); }
.crm__navitem:hover { background: var(--c-hover); color: var(--c-ink); }
.crm__navitem.is-active { background: var(--c-accent-soft); color: var(--c-accent-ink); font-weight: 650; }
.crm__navitem .icon { width: 1.15rem; height: 1.15rem; }

.crm__main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.crm__top { display: flex; align-items: center; justify-content: space-between; flex: none; height: 2.9rem; padding-inline: 1.15rem; background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.crm__crumb { color: var(--c-ink3); font-size: 0.8125rem; font-weight: 550; }
.crm__top-actions { display: flex; align-items: center; gap: 0.7rem; }
.crm__iconbtn { display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 0.55rem; background: none; color: var(--c-ink2); cursor: pointer; }
.crm__iconbtn:hover { background: var(--c-hover); color: var(--c-ink); }
.crm__iconbtn .icon { width: 1.1rem; height: 1.1rem; }
.crm__user { display: flex; align-items: center; gap: 0.5rem; color: var(--c-ink); font-weight: 600; }
.crm__avatar { display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: 50%; background: var(--c-accent-soft); color: var(--c-accent-ink); font-size: 0.75rem; font-weight: 700; }

.crm__content { flex: 1; min-height: 0; overflow: auto; padding: 1.1rem 1.25rem 1.5rem; }
.crm__panel { animation: crm-in 0.35s var(--ease) both; }
@keyframes crm-in { from { opacity: 0; transform: translateY(0.4rem); } to { opacity: 1; transform: none; } }
.crm__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.7rem; margin-bottom: 1rem; }
.crm__head h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.crm__head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.crm__sub { color: var(--c-ink3); font-size: 0.8125rem; }

.cbtn { display: inline-flex; align-items: center; gap: 0.4rem; height: 2.15rem; padding-inline: 0.95rem; border: 1px solid transparent; border-radius: 0.6rem; font-size: 0.8125rem; font-weight: 650; line-height: 1; cursor: pointer; white-space: nowrap; transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease); }
.cbtn .icon { width: 0.95rem; height: 0.95rem; stroke-width: 2.2; }
.cbtn--primary { background: #1a6ada; color: #fff; }
.cbtn--primary:hover { background: #1558b8; }
.cbtn--secondary { background: var(--c-surface); border-color: var(--c-line); color: var(--c-ink); }
.cbtn--secondary:hover { background: var(--c-hover); }

.cbadge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 650; line-height: 1.4; white-space: nowrap; }
.cbadge--ok { background: var(--b-ok); color: var(--t-ok); }
.cbadge--warn { background: var(--b-warn); color: var(--t-warn); }
.cbadge--danger { background: var(--b-danger); color: var(--t-danger); }
.cbadge--info { background: var(--b-info); color: var(--t-info); }
.cbadge--neutral { background: var(--b-neutral); color: var(--t-neutral); }
.tone-ok { color: var(--t-ok); } .tone-warn { color: var(--t-warn); } .tone-danger { color: var(--t-danger); }
.tone-accent { color: var(--t-accent); } .tone-ink { color: var(--c-ink); }
.muted { color: var(--c-ink3); }

/* Tableau de bord */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
@container crm (min-width: 46rem) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { display: grid; gap: 0.1rem; padding: 0.9rem 1rem; text-align: left; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 0.9rem; color: var(--c-ink2); cursor: pointer; transition: transform 0.2s var(--ease), border-color 0.2s var(--ease); }
.kpi:hover { transform: translateY(-2px); border-color: var(--c-accent); }
.kpi__label { color: var(--c-ink3); font-size: 0.8125rem; }
.kpi__value { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.kpi__note { color: var(--c-ink3); font-size: 0.75rem; }
.dash { display: grid; gap: 0.7rem; margin-top: 0.7rem; }
@container crm (min-width: 46rem) { .dash { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.panel { min-width: 0; padding: 1rem; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 0.9rem; }
.panel h3 { margin-bottom: 0.8rem; font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.01em; }
.chart { width: 100%; height: auto; }
.bar rect { fill: var(--c-accent); opacity: 0.38; transition: opacity 0.2s var(--ease); transform-box: fill-box; transform-origin: bottom; animation: bar-grow 0.7s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.bar.is-last rect { opacity: 1; }
.bar:hover rect { opacity: 0.85; }
.bar text { fill: var(--c-ink2); font-size: 9px; font-weight: 650; animation: crm-in 0.5s var(--ease) 0.5s both; }
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.chart__labels { display: grid; grid-template-columns: repeat(6, 1fr); margin: 0.2rem 0 0; padding: 0; list-style: none; color: var(--c-ink3); font-size: 0.75rem; text-align: center; }
.activity { display: grid; gap: 0.1rem; margin: 0; padding: 0; list-style: none; }
.act { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr) auto; align-items: center; gap: 0.5rem; width: 100%; padding: 0.55rem 0.5rem; border: 0; border-radius: 0.55rem; background: none; color: var(--c-ink2); text-align: left; cursor: pointer; }
.act:hover { background: var(--c-hover); }
.act__label { color: var(--c-ink3); }
.act__who { overflow: hidden; color: var(--c-ink); font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.act__go { width: 1rem; height: 1rem; color: var(--c-ink3); }

/* Recherche, filtres, tableaux */
.search { display: flex; align-items: center; gap: 0.45rem; height: 2.15rem; padding-inline: 0.7rem; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 0.6rem; color: var(--c-ink3); }
.search .icon { width: 1rem; height: 1rem; }
.search input { width: 11rem; min-width: 0; border: 0; outline: 0; background: none; color: var(--c-ink); font: inherit; }
.search input::placeholder { color: var(--c-ink3); opacity: 1; }
.search:focus-within { border-color: var(--c-accent); box-shadow: 0 0 0 2px var(--c-accent-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.chip { padding: 0.3rem 0.8rem; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 999px; color: var(--c-ink2); font-size: 0.8125rem; font-weight: 600; cursor: pointer; transition: background-color 0.15s var(--ease); }
.chip:hover { background: var(--c-hover); }
.chip[aria-pressed="true"] { background: var(--c-accent-soft); border-color: transparent; color: var(--c-accent-ink); }

.tblwrap { overflow: hidden; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 0.9rem; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { padding: 0.65rem 0.9rem; text-align: left; }
.tbl__sort { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0; border: 0; background: none; color: var(--c-ink3); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; }
.tbl__sort:hover { color: var(--c-ink); }
.tbl__arrow { width: 0.85rem; height: 0.85rem; opacity: 0.35; transition: transform 0.2s var(--ease), opacity 0.2s; }
.tbl__arrow.is-on { opacity: 1; }
.tbl__arrow.is-up { transform: rotate(180deg); }
.tbl td { padding: 0.7rem 0.9rem; }
.tbl tbody tr { border-top: 1px solid var(--c-line); cursor: pointer; transition: background-color 0.15s var(--ease); }
.tbl tbody tr:hover { background: var(--c-hover); }
.tbl__name, .tbl__mono { white-space: nowrap; }
.tbl__mono { font-variant-numeric: tabular-nums; }
.tbl__amount { color: var(--c-ink); font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl__empty { padding: 1.6rem 1rem !important; color: var(--c-ink3); text-align: center; cursor: default; }
.linkcell { padding: 0; border: 0; background: none; color: var(--c-ink); font-size: inherit; font-weight: 650; text-align: left; cursor: pointer; }
.linkcell:hover { color: var(--c-accent-ink); text-decoration: underline; }
@container crm (max-width: 42rem) { .hide-sm { display: none; } }

/* Devis */
.split { display: grid; gap: 0.7rem; }
@container crm (min-width: 46rem) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.dlist { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.dcard { display: grid; gap: 0.2rem; width: 100%; padding: 0.8rem 0.95rem; text-align: left; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 0.85rem; color: var(--c-ink2); cursor: pointer; transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.dcard:hover { border-color: var(--c-field); }
.dcard.is-selected { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); }
.dcard__top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.dcard__ref { color: var(--c-ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.dcard__client { color: var(--c-ink); font-weight: 650; }
.dcard__bottom { display: flex; justify-content: space-between; color: var(--c-ink3); font-size: 0.8125rem; }
.dcard__bottom strong { color: var(--c-ink); }
.preview { position: sticky; top: 0; }
.preview__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.6rem; }
.preview__head h3 { margin: 0; font-size: 0.9375rem; }
.preview__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1rem; }
.lines { margin: 0; }
.lines > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--c-line); }
.lines dt { color: var(--c-ink2); }
.lines dd { margin: 0; color: var(--c-ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lines .lines__total { border-bottom: 0; }
.lines__total dt, .lines__total dd { color: var(--c-ink); font-size: 1rem; font-weight: 700; }

/* Factures */
.sumrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin-bottom: 0.8rem; }
.sum { display: grid; gap: 0.1rem; padding: 0.8rem 0.9rem; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 0.85rem; }
.sum__label { color: var(--c-ink3); font-size: 0.75rem; }
.sum__value { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* Paramètres */
.rows { overflow: hidden; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 0.9rem; }
.row { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.1rem; border-top: 1px solid var(--c-line); }
.row:first-child { border-top: 0; }
.row__label { flex: 1; color: var(--c-ink); font-weight: 600; }
.row__value { color: var(--c-ink2); }
.seg { display: inline-flex; padding: 0.2rem; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 0.7rem; }
.seg button { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.8rem; border: 0; border-radius: 0.5rem; background: none; color: var(--c-ink2); font-size: 0.8125rem; font-weight: 600; cursor: pointer; }
.seg button .icon { width: 0.95rem; height: 0.95rem; }
.seg button[aria-checked="true"] { background: var(--c-surface); color: var(--c-ink); box-shadow: 0 1px 3px rgb(0 0 0 / 0.18); }
.switch { position: relative; flex: none; width: 2.6rem; height: 1.5rem; padding: 0; border: 0; border-radius: 999px; background: var(--c-off); cursor: pointer; transition: background-color 0.2s var(--ease); }
.switch[aria-checked="true"] { background: #1a6ada; }
.switch__knob { position: absolute; top: 0.2rem; left: 0.2rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #fff; transition: transform 0.2s var(--ease); }
.switch[aria-checked="true"] .switch__knob { transform: translateX(1.1rem); }

/* Tiroir de détail */
.crm__scrim { position: absolute; inset: 0; z-index: 5; background: rgb(15 23 42 / 0.2); opacity: 0; transition: opacity 0.3s var(--ease); }
.crm__scrim.is-open { opacity: 1; }
.crm__drawer { position: absolute; inset: 0 0 0 auto; z-index: 6; width: min(24rem, 100%); overflow: auto; padding: 1.1rem 1.25rem 1.4rem; background: var(--c-surface); border-left: 1px solid var(--c-line); box-shadow: -14px 0 32px -18px rgb(15 23 42 / 0.4); transform: translateX(100%); transition: transform 0.35s var(--ease-mac); }
.crm__drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.drawer__head h3 { font-size: 1.125rem; letter-spacing: -0.015em; }
.facts { display: grid; margin: 1rem 0 0; }
.facts > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--c-line); }
.facts dt { color: var(--c-ink3); }
.facts dd { margin: 0; color: var(--c-ink); font-weight: 550; text-align: right; }
.crm__drawer h4 { margin: 1.2rem 0 0.4rem; color: var(--c-ink3); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; }
.rel { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.rel button { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; width: 100%; padding: 0.55rem 0.75rem; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 0.6rem; color: var(--c-ink); font-size: 0.8125rem; font-weight: 600; cursor: pointer; }
.rel button:hover { border-color: var(--c-field); }
.dform { display: grid; gap: 0.9rem; margin-top: 0.5rem; }
.field { display: grid; gap: 0.3rem; }
.dform label { color: var(--c-ink); font-size: 0.8125rem; font-weight: 600; }
.dform input { height: 2.4rem; padding-inline: 0.8rem; background: var(--c-surface); border: 1px solid var(--c-field); border-radius: 0.6rem; color: var(--c-ink); font: inherit; }
.field__error { color: var(--t-danger); font-size: 0.8125rem; font-weight: 600; }

.crm__toast { position: absolute; left: 50%; bottom: 1rem; z-index: 8; max-width: calc(100% - 2rem); padding: 0.6rem 1rem; background: var(--c-ink); border-radius: 0.7rem; color: var(--c-surface); font-size: 0.8125rem; font-weight: 600; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, 0.6rem); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
.crm__toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Fenêtre étroite (téléphone) : navigation par onglets en bas */
@container crm (max-width: 40rem) {
  .crm { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .crm__side { order: 2; padding: 0.3rem 0.35rem; border-right: 0; border-top: 1px solid var(--c-line); }
  .crm__brand { display: none; }
  .crm__nav { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.1rem; }
  .crm__navitem { flex-direction: column; justify-content: flex-start; gap: 0.2rem; padding: 0.4rem 0.15rem; font-size: 0.75rem; line-height: 1.15; text-align: center; }
  .crm__content { padding: 0.9rem 0.9rem 1.2rem; }
  .crm__crumb { display: none; }
  .search input { width: 7.5rem; }
  .sumrow { gap: 0.4rem; }
  .sum { padding: 0.65rem 0.6rem; }
  .sum__value { font-size: 1.0625rem; }
  .act { grid-template-columns: minmax(0, 1fr) auto; }
  .act__label { grid-column: 1 / -1; }
  .row { flex-wrap: wrap; }
}


/* 12. RADIO -------------------------------------------------------------------
   Le son est coupé tant que le visiteur n'a pas cliqué : rien n'est téléchargé
   avant le premier clic (voir js/radio.js). Le bouton de la barre de menu bascule
   lecture / pause ; la fenêtre « Radio » (dock) donne les commandes complètes.  */
.icon--fill { fill: currentColor; stroke-linejoin: round; }

/* Égaliseur : décoratif (il ne réagit pas au son), animé seulement pendant la lecture */
.eq { display: none; align-items: flex-end; gap: 2px; height: 0.9rem; }
.eq i { width: 3px; height: 100%; background: currentColor; border-radius: 1px; transform: scaleY(0.25); transform-origin: bottom; }
.is-playing .eq { display: inline-flex; }
.is-playing .eq i { animation: eq 0.9s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -0.35s !important; }
.eq i:nth-child(3) { animation-delay: -0.7s !important; }
.eq i:nth-child(4) { animation-delay: -0.15s !important; }
.eq i:nth-child(5) { animation-delay: -0.5s !important; }
@keyframes eq { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }

/* Bouton radio dans la barre de menu : [titre du morceau] [haut-parleur / égaliseur].
   Le titre rétrécit avec des points de suspension plutôt que de faire déborder la barre. */
.menubar__radio {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.5rem;
  flex: 0 1 auto; min-width: 1.75rem; max-width: 19rem; height: 1.5rem;
  margin-left: auto; padding: 0 0.45rem;
  border: 0; border-radius: 0.4rem; background: none;
  color: var(--ink); font: inherit; cursor: pointer;
  transition: background-color 0.15s var(--ease);
}
.menubar__radio > .icon, .menubar__radio > .eq { flex: none; }
.menubar__now { display: none; min-width: 0; overflow: hidden; font-size: 0.8125rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 760px) { .menubar__now { display: block; } }
.menubar__radio:hover { background: rgb(15 23 42 / 0.08); }
.menubar__radio > .icon { width: 1.05rem; height: 1.05rem; stroke-width: 1.9; }
.menubar__radio.is-playing { color: var(--accent-ink); }
.menubar__radio.is-playing .icon--muted { display: none; }
.menubar__radio .eq { height: 0.8rem; }
/* Invitation discrète : un anneau qui pulse trois fois, une fois l'animation terminée */
.menubar__radio.is-hinting::after {
  content: ""; position: absolute; inset: -1px; border-radius: 0.45rem;
  box-shadow: 0 0 0 0 rgb(26 106 218 / 0.55);
  animation: radio-hint 1.6s var(--ease) 3;
  pointer-events: none;
}
@keyframes radio-hint { from { box-shadow: 0 0 0 0 rgb(26 106 218 / 0.55); } to { box-shadow: 0 0 0 0.6rem rgb(26 106 218 / 0); } }

/* Annonce du titre en cours */
.radio-toast {
  position: absolute; top: calc(100% + 0.5rem); right: 0.75rem; z-index: 5;
  max-width: min(22rem, calc(100% - 1.5rem)); padding: 0.45rem 0.85rem;
  background: rgb(30 41 59 / 0.92); border-radius: 0.65rem;
  color: #fff; font-size: 0.8125rem; font-weight: 500; line-height: 1.3;
  opacity: 0; transform: translateY(-0.35rem); pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.radio-toast.is-on { opacity: 1; transform: none; }
@media (min-width: 600px) {
  .radio-toast { top: auto; right: auto; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.radio-toast strong { font-weight: 650; }

/* Fenêtre du lecteur : petite, en haut à droite du bureau */
.window--radio { --w: 21rem; --h: 29rem; --x: calc(100% - var(--w) - 1.25rem); --y: 1rem; }
@media (max-width: 767.98px) {
  .window--radio { --x: 0.5rem; --y: 0.5rem; --w: calc(100% - 1rem); --h: min(29rem, calc(100% - 0.75rem)); }
}
.traffic__btn.is-disabled::after { background: #d5dae2 !important; }
.radio { gap: 0.9rem; padding: 1.1rem 1.25rem 1rem; overflow: auto; background: #fff; }
.radio__art {
  position: relative; flex: none; display: grid; place-items: end center; overflow: hidden;
  aspect-ratio: 16 / 8; padding-bottom: 1rem; border-radius: 0.9rem; color: #fff;
  background:
    radial-gradient(60% 90% at 85% 0%, rgb(255 255 255 / 0.35), transparent 60%),
    linear-gradient(135deg, #1a6ada 0%, #4d9bea 55%, #9fd0f2 100%);
}
.radio__art .eq { display: inline-flex; height: 3rem; gap: 5px; }
.radio__art .eq i { width: 7px; border-radius: 3px; background: rgb(255 255 255 / 0.9); }
@media (max-height: 640px) { .radio__art { display: none; } }
.radio__info { display: grid; gap: 0.15rem; min-width: 0; }
.radio__station { color: var(--accent-ink); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; }
.radio__title { overflow: hidden; color: var(--ink); font-size: 1.125rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.radio__artist { overflow: hidden; color: var(--ink-2); font-size: 0.875rem; text-overflow: ellipsis; white-space: nowrap; }
.radio__progress { flex: none; height: 4px; overflow: hidden; border-radius: 99px; background: var(--line); }
.radio__progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width 0.25s linear; }
.radio__time { display: flex; justify-content: space-between; margin-top: -0.55rem; color: var(--ink-3); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.radio__controls { display: flex; align-items: center; gap: 0.75rem; }
.radio__play, .radio__btn { display: grid; place-items: center; flex: none; padding: 0; border: 0; cursor: pointer; transition: background-color 0.15s var(--ease), transform 0.15s var(--ease); }
.radio__play { width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 6px 16px -6px rgb(26 106 218 / 0.7); }
.radio__play:hover { background: var(--accent-hover); }
.radio__play:active { transform: scale(0.96); }
.radio__play .icon { width: 1.35rem; height: 1.35rem; }
.radio__btn { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: none; color: var(--ink-2); }
.radio__btn:hover { background: var(--bg-soft, #f6f8fb); color: var(--ink); }
.radio__btn .icon { width: 1.2rem; height: 1.2rem; }
.radio__volume { display: flex; align-items: center; flex: 1; gap: 0.25rem; min-width: 0; margin-left: auto; }
.radio__volume input { flex: 1; min-width: 3rem; height: 1.5rem; accent-color: var(--accent); cursor: pointer; }
.radio__note { color: var(--ink-3); font-size: 0.75rem; line-height: 1.4; }
.radio__note a { color: var(--accent-ink); }

/* Petits écrans : on masque seulement ce qui n'est pas indispensable à la barre de menu */
/* On masque le conteneur (et non la seule icône), sinon il garde sa largeur */
@media (max-width: 419.98px) { .menubar__pct { display: none; } }
@media (max-width: 359.98px) { .menubar__pop { display: none; } }
@media (max-width: 479.98px) {
  .menubar__logo { height: 0.85rem; }
  /* La loupe prend de la place : on resserre la barre (les boutons gardent leur zone de clic de 28 px) */
  .menubar { gap: 0.5rem; padding-inline: 0.5rem; }
  .menubar__status { gap: 0.1rem; }
  .menubar__clock { margin-left: 0.3rem; }
}


/* 13. RÉSEAU, BATTERIE, RÉGLAGES, ONGLETS, MODALES ---------------------------- */

/* Bouton d'icône de la barre de menu (Wi-Fi) + infobulle */
.menubar__pop { position: relative; }
.menubar__ico {
  display: inline-grid; place-items: center;
  width: 1.75rem; height: 1.5rem; padding: 0; border: 0; border-radius: 0.4rem; background: none;
  color: var(--ink); cursor: pointer; transition: background-color 0.15s var(--ease);
}
button.menubar__ico:hover { background: rgb(15 23 42 / 0.08); }
.menubar__ico--static { cursor: default; }
.pop {
  position: absolute; top: calc(100% + 0.55rem); right: -0.4rem; z-index: 60; width: 15rem;
  padding: 0.7rem 0.85rem;
  background: rgb(255 255 255 / 0.96);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid var(--line); border-radius: 0.8rem;
  box-shadow: 0 16px 34px -16px rgb(15 23 42 / 0.45);
  color: var(--ink); font-size: 0.8125rem;
  animation: pop-in 0.18s var(--ease) both;
}
.pop[hidden] { display: none; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-0.3rem); } to { opacity: 1; transform: none; } }
.pop__title { margin-bottom: 0.45rem; color: var(--ink-3); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; }
.pop__row { display: flex; align-items: center; gap: 0.5rem; }
.pop__dot { width: 0.5rem; height: 0.5rem; flex: none; border-radius: 50%; background: #16a34a; }
.pop__name { font-weight: 600; }
.pop__meta { margin-left: auto; color: var(--ink-3); font-size: 0.75rem; }
.pop__sub { margin-top: 0.4rem; color: var(--ink-3); font-size: 0.75rem; }

/* Batterie */
.menubar__battery { display: inline-flex; align-items: center; gap: 0.3rem; }
.menubar__pct { font-size: 0.75rem; font-variant-numeric: tabular-nums; }

/* Fenêtre Réglages */
.window--settings { --w: 22rem; --h: 14rem; --x: calc(50% - 11rem); --y: 14%; }
@media (max-width: 767.98px) {
  .window--settings { --x: 0.5rem; --y: 0.5rem; --w: calc(100% - 1rem); --h: min(14rem, calc(100% - 0.75rem)); }
}
.settings { gap: 1rem; padding: 1.15rem 1.25rem; overflow: auto; background: var(--surface); }
.settings__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.settings__label { color: var(--ink); font-weight: 650; }
.settings__hint { color: var(--ink-3); font-size: 0.8125rem; }
.settings__note { padding-top: 0.9rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.75rem; line-height: 1.45; }

/* Sélecteur de thème (indépendant de celui du CRM, qui a ses propres couleurs) */
.themepick { display: inline-flex; flex: none; padding: 0.2rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 0.7rem; }
.themepick button {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.75rem; border: 0; border-radius: 0.5rem; background: none;
  color: var(--ink-2); font-size: 0.8125rem; font-weight: 600; cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.themepick button .icon { width: 1rem; height: 1rem; }
.themepick button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / 0.18); }

/* Modales (élément <dialog> natif : Échap et piège du focus gérés par le navigateur) */
.modal { padding: 0; border: 0; background: none; color: var(--ink-2); }
.modal[open] { display: grid; place-items: center; padding: 1rem; }
.modal::backdrop { background: rgb(15 23 42 / 0.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal__box {
  width: min(38rem, 100%); max-height: min(86vh, 46rem);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 1.1rem;
  box-shadow: 0 30px 70px -24px rgb(15 23 42 / 0.5);
  animation: modal-in 0.28s var(--ease) both;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(0.6rem) scale(0.985); } to { opacity: 1; transform: none; } }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); }
.modal__head h2 { font-size: 1.25rem; letter-spacing: -0.02em; }
.modal__close { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 0; border-radius: 0.6rem; background: none; color: var(--ink-3); cursor: pointer; }
.modal__close:hover { background: var(--bg-soft); color: var(--ink); }
.modal__close .icon { width: 1.1rem; height: 1.1rem; }
.modal__body { padding: 1.1rem 1.15rem 1.4rem; overflow: auto; }
.modal__body h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1.3rem; font-size: 1.0625rem; }
.modal__body > p { line-height: 1.65; }
.modal__body > p + p { margin-top: 0.75rem; }
.modal__tag { padding: 0.15rem 0.5rem; background: var(--accent-soft); border-radius: 999px; color: var(--accent-ink); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
/* Portrait de « À propos » (image ovale détourée) : à droite, le texte s'enroule autour */
.about__photo { float: right; width: 8.5rem; margin: 0.15rem 0 0.85rem 1.15rem; }
.about__photo img { display: block; width: 100%; height: auto; }
@media (max-width: 30rem) { .about__photo { float: none; width: 7rem; margin: 0 auto 0.9rem; } }
.modal__foot { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.9375rem; }
.modal__body .checklist { display: grid; gap: 0.55rem; margin: 0.7rem 0 0; padding: 0; list-style: none; }
.modal__body .checklist li { display: flex; align-items: flex-start; gap: 0.6rem; }
.modal__body .checklist .icon { width: 1.05rem; height: 1.05rem; margin-top: 0.2em; flex: none; color: var(--accent); stroke-width: 2.4; }


/* Fenêtres Fichiers et Agenda : position et taille (en % de la zone de fenêtres) */
.window--files { --w: 25rem; --h: 25rem; --x: 6%; --y: 8%; }
.window--agenda { --x: 8%; --y: 4%; --w: 84%; --h: 92%; }
.window--trash { --w: 27rem; --h: 23rem; --x: 12%; --y: 12%; }
@media (max-width: 767.98px) {
  .window--files, .window--agenda, .window--trash { --x: 0.5rem; --y: 0.5rem; --w: calc(100% - 1rem); --h: calc(100% - 0.75rem); }
}

/* Popup « Mentions légales » : le contenu de mentions-legales.html, sans la mise en page de la page */
.legal--modal { max-width: none; margin: 0; padding: 0; }
.legal--modal h2 { margin-top: 1.6rem; font-size: 1.125rem; }
.legal--modal h2:first-child, .legal--modal > .legal__date + h2 { margin-top: 1.1rem; }
.legal--modal .legal__date { margin-top: 0; }

/* Formulaire de contact (popup « Contactez-moi ») */
.cform { display: grid; gap: 0.95rem; margin-top: 1.1rem; }
.cform__row { display: grid; gap: 0.95rem; }
@media (min-width: 520px) { .cform__row { grid-template-columns: 1fr 1fr; } }
.cfield { display: grid; gap: 0.35rem; }
.cfield label { color: var(--ink); font-size: 0.875rem; font-weight: 600; }
.cfield input, .cfield select, .cfield textarea {
  width: 100%; min-height: 2.9rem; padding: 0.7rem 0.9rem;
  background: var(--surface); border: 1px solid #8896a8; border-radius: 12px;
  color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.4;
}
.cfield textarea { min-height: 7.5rem; resize: vertical; }
.cfield input::placeholder, .cfield textarea::placeholder { color: var(--ink-3); opacity: 1; }
.cfield input:focus-visible, .cfield select:focus-visible, .cfield textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.cform__status { padding: 0.75rem 0.95rem; border-radius: 12px; font-size: 0.9375rem; font-weight: 550; line-height: 1.45; }
.cform__status:empty { display: none; }
.cform__status--ok { background: #e7f6ec; color: #166534; }
.cform__status--error { background: #fdecea; color: #b42318; }
.cform__status--info { background: var(--accent-soft); color: var(--accent-ink); }
.cform__status a { color: inherit; font-weight: 700; }
.cform__submit { justify-self: start; }
.cform__note { color: var(--ink-3); font-size: 0.8125rem; }
.contact-list { display: grid; gap: 0.9rem; margin: 1.5rem 0 0; padding: 1.15rem 0 0; border-top: 1px solid var(--line); list-style: none; }
.contact-list li { display: flex; align-items: flex-start; gap: 0.8rem; color: var(--ink-2); }
.contact-list .icon { width: 1.2rem; height: 1.2rem; margin-top: 0.15rem; flex: none; color: var(--accent); }
.contact-list small { display: block; color: var(--ink-3); font-size: 0.75rem; }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--accent); text-decoration: underline; }

/* Fichiers : arborescence */
.files { gap: 0.2rem; padding: 0.85rem 0.8rem 0.9rem; overflow: auto; background: var(--surface); }
.files__crumb { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.35rem; padding: 0.1rem 0.5rem 0.6rem; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 0.8125rem; font-weight: 600; }
.files__crumb .icon { width: 1rem; height: 1rem; }
.tree, .tree [role="group"] { margin: 0; padding: 0; list-style: none; }
.tree__row {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.6rem 0.5rem calc(0.6rem + var(--level, 0) * 1.4rem);
  border-radius: 0.65rem; color: var(--ink); font-size: 0.9375rem; font-weight: 500; cursor: pointer; user-select: none;
  transition: background-color 0.15s var(--ease);
}
.tree__row:hover { background: var(--bg-soft); }
.tree__item:focus-visible { outline: none; }
.tree__item:focus-visible > .tree__row { outline: 2px solid var(--accent); outline-offset: -2px; }
.tree__item.is-selected > .tree__row { background: var(--accent-soft); color: var(--accent-ink); }
.tree__row .icon { width: 1.15rem; height: 1.15rem; flex: none; }
.tree__item--folder > .tree__row .icon:nth-of-type(2) { color: var(--accent); }
.tree__item--file > .tree__row .icon { color: var(--ink-3); }
.tree__caret { width: 0.85rem; height: 0.85rem; color: var(--ink-3); transition: transform 0.2s var(--ease); }
.tree__caret--none { display: inline-block; }
.tree__item[aria-expanded="true"] > .tree__row .tree__caret { transform: rotate(90deg); }
.files__hint { margin-top: auto; padding: 0.7rem 0.5rem 0; color: var(--ink-3); font-size: 0.8125rem; }

/* Corbeille : la liste de ce que Secour IT remplace */
.trash { gap: 0.2rem; padding: 0.85rem 0.8rem 0.9rem; overflow: auto; background: var(--surface); }
.trash__crumb { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.35rem; padding: 0.1rem 0.5rem 0.6rem; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 0.8125rem; font-weight: 600; }
.trash__crumb .icon { width: 1rem; height: 1rem; }
.trash__list { display: grid; gap: 0.2rem; margin: 0; padding: 0; list-style: none; }
.trash__item { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.6rem 0.55rem; border-radius: 0.55rem; }
.trash__item:hover { background: var(--bg-soft); }
.trash__item .icon { width: 1.15rem; height: 1.15rem; margin-top: 0.1rem; flex: none; color: var(--ink-3); }
.trash__text { min-width: 0; }
.trash__name { color: var(--ink); font-size: 0.875rem; font-weight: 600; line-height: 1.35; }
.trash__note { margin-top: 0.15rem; color: var(--ink-3); font-size: 0.8125rem; line-height: 1.4; }
.trash__hint { margin-top: auto; padding: 0.8rem 0.5rem 0; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.8125rem; line-height: 1.5; }
.trash__hint strong { color: var(--ink-2); font-weight: 600; }
.trash__hint a { color: var(--accent-ink); font-weight: 600; white-space: nowrap; }

/* Agenda : semaine en cours */
.agenda { --hour-h: 3.5rem; --gutter: 3rem; container: agenda / inline-size; background: var(--surface); }
.agenda__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); }
.agenda__nav { display: flex; align-items: center; gap: 0.3rem; }
.agenda__btn { display: grid; place-items: center; min-width: 2.25rem; height: 2.25rem; padding: 0 0.7rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 0.6rem; color: var(--ink-2); font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.agenda__btn:hover { background: var(--bg-soft); color: var(--ink); }
.agenda__btn .icon { width: 1.1rem; height: 1.1rem; }
.agenda__title { color: var(--ink); font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.agenda__scroll { flex: 1; min-height: 0; overflow: auto; position: relative; }
.agenda__grid { display: flex; flex-direction: column; height: 100%; }
.agenda__head { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: var(--gutter) repeat(7, minmax(0, 1fr)); background: var(--surface); border-bottom: 1px solid var(--line); }
.agenda__dayh { display: grid; justify-items: center; gap: 0.1rem; padding: 0.4rem 0; color: var(--ink-3); font-size: 0.8125rem; }
.agenda__dow { text-transform: capitalize; }
.agenda__dom { display: grid; place-items: center; width: 1.95rem; height: 1.95rem; border-radius: 50%; color: var(--ink); font-size: 1rem; font-weight: 700; }
.agenda__dayh.is-today .agenda__dom { background: var(--accent); color: #fff; }
/* La grille s'adapte à la hauteur de la fenêtre : les 11 heures tiennent sans défilement.
   (Repli en rem sur les navigateurs sans unités de conteneur : la fenêtre défile alors.) */
.agenda__body { display: grid; grid-template-columns: var(--gutter) repeat(7, minmax(0, 1fr)); flex: 1; min-height: 0; container-type: size; --hour-h: 3.5rem; --hour-h: calc(100cqh / var(--hours)); }
.agenda__hours { display: grid; grid-template-rows: repeat(var(--hours), var(--hour-h)); overflow: hidden; }
.agenda__hours span { padding-right: 0.55rem; color: var(--ink-3); font-size: 0.75rem; font-variant-numeric: tabular-nums; text-align: right; transform: translateY(0.45em); }
.agenda__col {
  position: relative; height: calc(var(--hours) * var(--hour-h));
  border-left: 1px solid var(--line);
  background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 100% var(--hour-h);
}
.agenda__col.is-today { background-color: var(--accent-soft); }
.evt {
  position: absolute; left: 3px; right: 3px;
  top: calc(var(--start) * var(--hour-h)); height: calc(var(--len) * var(--hour-h) - 2px);
  display: flex; flex-direction: column; gap: 0.1rem; overflow: hidden;
  padding: 0.3rem 0.45rem; text-align: left;
  background: var(--accent-soft); border: 0; border-left: 3px solid var(--accent); border-radius: 0.5rem;
  color: var(--accent-ink); font: inherit; font-size: 0.75rem; line-height: 1.25; cursor: pointer;
  transition: box-shadow 0.15s var(--ease);
}
.agenda__col.is-today .evt { background: var(--surface); }
.evt--perso { background: var(--bg-soft); border-left-color: var(--ink-3); color: var(--ink-2); }
.evt:hover { box-shadow: 0 2px 8px rgb(15 23 42 / 0.18); }
.evt.is-selected { outline: 2px solid var(--accent); outline-offset: 1px; }
.evt__time { font-weight: 700; font-variant-numeric: tabular-nums; }
.evt__title { font-weight: 650; }
.evt--short .evt__place { display: none; }
.agenda__now { position: absolute; left: 0; right: 0; z-index: 2; top: calc(var(--start) * var(--hour-h)); height: 2px; background: var(--accent); pointer-events: none; }
.agenda__now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.agenda__now[hidden] { display: none; }
.agenda__detail { flex: none; padding: 0.7rem 1rem; background: var(--bg-soft); border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.875rem; line-height: 1.45; }
.agenda__detail strong { color: var(--ink); }
/* Fenêtre étroite : on passe à une liste jour par jour */
@container agenda (max-width: 46rem) {
  .agenda__head, .agenda__hours { display: none; }
  .agenda__body { display: block; flex: none; min-height: auto; container-type: normal; }
  .agenda__col { display: grid; gap: 0.4rem; height: auto; padding: 0.7rem 1rem 0.85rem; border-left: 0; border-top: 1px solid var(--line); background-image: none; }
  .agenda__col::before { content: attr(data-label); color: var(--ink); font-size: 0.9375rem; font-weight: 700; }
  .agenda__col.is-today::before { color: var(--accent-ink); }
  .agenda__col:not(:has(.evt)) { display: none; }
  .evt { position: static; height: auto; min-height: 2.75rem; }
  .agenda__now { display: none; }
}

/* Recherche */
dialog.spot { width: 100%; height: 100%; max-width: none; max-height: none; padding: 0; border: 0; background: transparent; }
dialog.spot[open] { display: block; }
.spot::backdrop { background: rgb(15 23 42 / 0.38); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.spot__box {
  width: min(40rem, calc(100% - 1.5rem)); margin: min(13vh, 7rem) auto 0; overflow: hidden;
  background: rgb(255 255 255 / 0.97);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line); border-radius: 1.1rem;
  box-shadow: 0 30px 70px -24px rgb(15 23 42 / 0.55);
  animation: modal-in 0.22s var(--ease) both;
}
.spot__field { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line); }
.spot__field .icon { width: 1.3rem; height: 1.3rem; flex: none; color: var(--ink-3); }
.spot__field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 1.125rem; }
.spot__field input::placeholder { color: var(--ink-3); opacity: 1; }
.spot__close { padding: 0.25rem 0.55rem; background: var(--bg-soft); border: 1px solid var(--line-strong); border-radius: 0.45rem; color: var(--ink-3); font: inherit; font-size: 0.75rem; font-weight: 600; cursor: pointer; }
.spot__results { max-height: min(55vh, 26rem); overflow: auto; padding: 0.4rem; }
.spot__group { padding: 0.65rem 0.7rem 0.25rem; color: var(--ink-3); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; }
.spot__opt { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.7rem; border-radius: 0.7rem; cursor: pointer; }
.spot__opt.is-active { background: var(--accent-soft); }
.spot__ico { display: grid; place-items: center; width: 2rem; height: 2rem; flex: none; background: var(--bg-soft); border-radius: 0.55rem; color: var(--accent-ink); }
.spot__ico .icon { width: 1.05rem; height: 1.05rem; }
.spot__opt.is-active .spot__ico { background: var(--surface); }
.spot__txt { display: grid; min-width: 0; }
.spot__title, .spot__sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spot__title { color: var(--ink); font-weight: 600; }
.spot__sub { color: var(--ink-3); font-size: 0.8125rem; }
.spot mark { padding: 0 0.05em; background: rgb(26 106 218 / 0.18); border-radius: 0.2rem; color: inherit; }
.spot__hint { padding: 0.6rem 1.1rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.8125rem; }


/* 14. MENTIONS LÉGALES ------------------------------------------------------- */
.legal { max-width: 46rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.legal__back { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 2rem; font-size: 0.9375rem; font-weight: 600; text-decoration: none; }
.legal__back .icon { width: 1rem; height: 1rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; letter-spacing: -0.035em; }
.legal h2 { margin-top: 2.25rem; font-size: 1.25rem; letter-spacing: -0.02em; }
.legal p, .legal ul { margin-top: 0.75rem; }
.legal ul { padding-left: 1.25rem; }
.legal__date { margin-top: 0.75rem; color: var(--ink-3); font-size: 0.875rem; }
.legal address { margin-top: 0.75rem; font-style: normal; }


/* 16. MOUVEMENT RÉDUIT ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .eq i { animation: none !important; transform: scaleY(0.6); }
}

/* 15. THÈME SOMBRE ------------------------------------------------------------
   Activé par <html data-theme="dark"> (js/theme.js, bouton des Réglages).
   Le choix est mémorisé (localStorage) et repris sur la page des mentions légales. */

:root[data-theme="dark"] {
  --page: #0b1220;
  --surface: #111a2e;
  --bg-soft: #18223a;
  --ink: #e6ebf5;
  --ink-2: #b0bacd;
  --ink-3: #93a0b8;
  --line: #243149;
  --line-strong: #3a4a66;
  /* Assez sombre pour que le texte blanc dessus garde un contraste de 5,2:1
     (le bleu clair sert au texte : --accent-ink). */
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-ink: #a4c8fb;
  --accent-soft: rgb(91 155 245 / 0.16);
}

/* Bureau */
:root[data-theme="dark"] .desk { background: #0b1220; }
:root[data-theme="dark"] .menubar {
  background: rgb(16 22 36 / 0.62);
  border-bottom-color: rgb(255 255 255 / 0.08);
}
:root[data-theme="dark"] .splash__logo {
  background-color: #1c2740;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.4), inset 0 0 0 1px rgb(255 255 255 / 0.07);
}
:root[data-theme="dark"] button.menubar__ico:hover,
:root[data-theme="dark"] .menubar__radio:hover { background: rgb(255 255 255 / 0.1); }
:root[data-theme="dark"] .pop { background: rgb(24 32 48 / 0.97); border-color: var(--line); }

/* Dock */
:root[data-theme="dark"] .dock {
  background: rgb(22 30 46 / 0.5);
  border-color: rgb(255 255 255 / 0.12);
  box-shadow: 0 14px 32px -12px rgb(0 0 0 / 0.6), inset 0 0 0 0.5px rgb(255 255 255 / 0.06);
}
:root[data-theme="dark"] .dock__tile {
  background: linear-gradient(180deg, #2b3a58, #1b2540);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.5), inset 0 0 0 0.5px rgb(255 255 255 / 0.08);
  color: var(--accent-ink);
}
:root[data-theme="dark"] .dock__item.is-running::after { background: #c7d2e5; }
:root[data-theme="dark"] .dock__sep { background: rgb(255 255 255 / 0.16); }

/* Fenêtres */
:root[data-theme="dark"] .window__bar { background: linear-gradient(180deg, #1b2540, #141d31); border-bottom-color: var(--line); }
:root[data-theme="dark"] .traffic__btn::after { background: #3a4a66; box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.3); }
:root[data-theme="dark"] .address { background: #1c2740; color: var(--ink-2); }
:root[data-theme="dark"] .window__placeholder {
  background-image: radial-gradient(rgb(255 255 255 / 0.06) 1px, transparent 1px);
}

/* Messagerie */
:root[data-theme="dark"] .chat__side { background: #0e1626; }
:root[data-theme="dark"] .chat__main, :root[data-theme="dark"] .browser__view, :root[data-theme="dark"] .radio { background: var(--surface); }
:root[data-theme="dark"] .chat__item.is-active { background: var(--accent-soft); }
:root[data-theme="dark"] .chat__narration { background: #18223a; }
:root[data-theme="dark"] .msg--other .msg__bubble { background: #1b2540; color: var(--ink); }
:root[data-theme="dark"] .reaction { background: #1b2540; border-color: var(--line-strong); }
:root[data-theme="dark"] .chat__composer { border-color: var(--line-strong); }
:root[data-theme="dark"] .presence { border-color: #0e1626; }
:root[data-theme="dark"] .chat__members .avatar { border-color: var(--surface); }
:root[data-theme="dark"] .chat__badge { color: #fff; }

/* Radio, réglages, onglets */
:root[data-theme="dark"] .radio__btn:hover { background: var(--bg-soft); }
:root[data-theme="dark"] .skip-anim { border-color: var(--line-strong); }
:root[data-theme="dark"] .skip-anim:hover { background: var(--bg-soft); color: var(--ink); }

/* Page des mentions légales */
:root[data-theme="dark"] body { background: var(--page); color: var(--ink-2); }
:root[data-theme="dark"] .legal h1, :root[data-theme="dark"] .legal h2 { color: var(--ink); }

/* Pied de page, formulaire, fichiers, agenda, recherche */
:root[data-theme="dark"] .cform__status--ok { background: rgb(34 197 94 / 0.15); color: #6ee7a0; }
:root[data-theme="dark"] .cform__status--error { background: rgb(239 68 68 / 0.16); color: #ff9a91; }
:root[data-theme="dark"] .cfield input, :root[data-theme="dark"] .cfield select, :root[data-theme="dark"] .cfield textarea { border-color: #6b7a94; }
:root[data-theme="dark"] .agenda__col.is-today .evt { background: var(--surface); }
:root[data-theme="dark"] .spot__box { background: rgb(17 26 46 / 0.97); }
:root[data-theme="dark"] .spot mark { background: rgb(91 155 245 / 0.28); color: var(--ink); }
:root[data-theme="dark"] .evt:hover { box-shadow: 0 2px 10px rgb(0 0 0 / 0.5); }


/* 17. TÉLÉPHONE ET TACTILE ---------------------------------------------------
   Confort sur mobile : cibles tactiles plus grandes, zones sûres (encoche,
   barre d'accueil), fenêtres et popups en feuille basse, barre de menu adaptée. */

/* Pas de délai de 300 ms ni de zoom au double-appui sur les commandes */
.dock__item, .traffic__btn, .menubar__ico, .menubar__radio, .tab, .btn,
.modal__close, .agenda__btn, .evt, .themepick button, .spot__close,
.tree__row, .chat__send, .cbtn, .chip, .crm__navitem, .act, .agenda__nav {
  touch-action: manipulation;
}
.dock__item, .menubar__ico, .menubar__radio, .traffic__btn, .spot__close { -webkit-tap-highlight-color: transparent; }

/* Zones sûres : rien d'important sous l'encoche ni sous la barre d'accueil */
@supports (padding: env(safe-area-inset-left)) {
  .stage {
    padding-top: max(clamp(0.5rem, 2vw, 1.5rem), env(safe-area-inset-top));
    padding-left: max(clamp(0.5rem, 2.5vw, 2rem), env(safe-area-inset-left));
    padding-right: max(clamp(0.5rem, 2.5vw, 2rem), env(safe-area-inset-right));
  }
  .stage__foot { padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
  .dock { bottom: max(0.6rem, env(safe-area-inset-bottom)); }
  .spot__box { margin-top: max(min(13vh, 7rem), env(safe-area-inset-top)); }
}

.spot__close-x { display: none; }

@media (max-width: 767.98px) {
  /* Barre de menu : plus haute, avec des cibles tactiles d'environ 40 px */
  :root { --menubar-h: 2.6rem; }
  .menubar { gap: 0.5rem; padding-inline: 0.55rem; }
  .menubar__logo { height: 0.72rem; }
  .menubar__radio { height: 2.4rem; min-width: 2.4rem; max-width: 11rem; padding: 0 0.5rem; }
  .menubar__ico { width: 2.4rem; height: 2.4rem; }
  .menubar__status { gap: 0.1rem; }
  .menubar__clock { margin-left: 0.35rem; }

  /* Feux de fenêtre : zone tactile de 40 px (le disque visible reste petit) */
  .window__bar { height: 2.8rem; padding-inline: 0.4rem 0.9rem; }
  .traffic { margin-left: -0.3rem; }
  .traffic__btn { width: 2.5rem; height: 2.5rem; }

  /* Popups : feuille en bas de l'écran, plus faciles à atteindre au pouce */
  .modal[open] {
    width: 100%; height: 100%; max-width: none; max-height: none; margin: 0;
    place-items: end center;
    padding: 0.6rem; padding-bottom: max(0.6rem, env(safe-area-inset-bottom));
  }
  .modal__box { width: 100%; max-height: min(90vh, 46rem); max-height: min(92dvh, 46rem); }
  .cfield textarea { min-height: 5.5rem; }

  /* Recherche : bouton de fermeture en croix, plus grand */
  .spot__box { width: calc(100% - 1rem); }
  .spot__results { max-height: min(58vh, 26rem); max-height: min(60dvh, 26rem); }
  .spot__close { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; }
  .spot__close-txt { display: none; }
  .spot__close-x { display: block; width: 1.15rem; height: 1.15rem; }
}

/* Le dock accueille la Corbeille dès qu'il y a la place (téléphones d'au moins 375 px) */
@media (min-width: 375px) and (max-width: 767.98px) {
  .dock__item--extra { display: block; }
  .dock { gap: 0.3rem; }
}

@media (max-width: 359.98px) {
  :root { --menubar-h: 2.4rem; }
  .menubar { gap: 0.35rem; }
  .menubar__logo { height: 0.62rem; }
  .menubar__radio { height: 2.1rem; min-width: 2.1rem; }
  .menubar__ico { width: 2.1rem; height: 2.1rem; }
  .menubar__status { gap: 0; }
  .menubar__clock { margin-left: 0.2rem; }
  .dock { --dock-size: 2.6rem; }
}

/* Écrans bas (téléphone en paysage) : bureau compact, quitte à faire défiler la page
   plutôt que d'écraser les fenêtres. */
@media (max-height: 600px) {
  :root { --dock-clear: 4.5rem; }
  .desk { min-height: 22rem; }
  .stage { padding-top: 0.4rem; }
  .stage__foot { padding-top: 0.5rem; padding-bottom: 0.6rem; gap: 0.4rem 0.75rem; }
  .tab { min-height: 2.5rem; }
  .btn--lg { min-height: 2.9rem; }
  .dock { --dock-size: 2.4rem; bottom: 0.5rem; }
}
