/* Rivage — feuille de style, d'après la charte graphique Rivage.
   Bleu Abysse #0B3D40 (encre, aplats), Vert Rivage #4E9F8F (accent), Sable #D9C9A7 (secondaire),
   Blanc cassé #F8F5ED (fond). Logotype en serif à fort contraste, signature en géométrique espacée.
   Registre « luxe éditorial » : papier crème, cartes à double cadre, pilules, une seule entrée animée. */

:root {
  --abysse: #0B3D40;
  --vert: #4E9F8F;
  --sable: #D9C9A7;
  --blanc: #F8F5ED;

  --brume: #EFE9DC;        /* fond de scène */
  --sol: #F8F5ED;          /* fond de l'application */
  --papier: #FFFDF8;       /* cœur des cartes */
  --papier-2: #F2EDE2;     /* coque des cartes, champs secondaires */
  --coque: rgba(11, 61, 64, .035);
  --ardoise: #0B3D40;      /* encre principale */
  --ardoise-2: #3E5F61;
  --gris: #6B7C7A;
  --ligne: rgba(11, 61, 64, .14);
  --ligne-2: rgba(11, 61, 64, .08);
  --bronze: #2E7667;       /* accent pour le texte : Vert Rivage assombri pour le contraste */
  --bronze-fond: #4E9F8F;  /* Vert Rivage */
  --bronze-lav: #E4EFEB;
  --sable-fond: #D9C9A7;
  --sable-lav: #F1EADA;
  --sable-txt: #7A6440;
  --mer: #0B3D40;
  --mer-lav: #E3ECEB;
  --ok: #2E7667;  --ok-lav: #E4EFEB;
  --veille: #94651B; --veille-lav: #F5ECD8;
  --alerte: #A3412E; --alerte-lav: #F6E4DE;
  --btn: #0B3D40; --btn-txt: #F8F5ED;
  --bezel: #0A2426;
 
  --ombre-tel: 0 60px 120px -50px rgba(11, 61, 64, .55), 0 18px 40px -20px rgba(11, 61, 64, .3);
  --ombre-douce: 0 1px 1px rgba(11, 61, 64, .03), 0 12px 32px -16px rgba(11, 61, 64, .16);
  --ombre-feuille: 0 -30px 60px -30px rgba(11, 61, 64, .4);
  --reflet: inset 0 1px 0 rgba(255, 255, 255, .7);
  --ressort: cubic-bezier(.32, .72, 0, 1);
  --sous-onglets: 86px;   /* les barres collées en bas restent au-dessus des onglets flottants */
  --f-titre: 'DM Serif Display', 'Didot', Georgia, serif;
  --f-texte: 'Jost', 'Futura', system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --brume: #051B1D; --sol: #072A2D; --papier: #0D3A3E; --papier-2: #0A3135; --coque: rgba(248, 245, 237, .035);
  --ardoise: #F8F5ED; --ardoise-2: #C5D3CF; --gris: #8FA8A3; --ligne: rgba(248, 245, 237, .14); --ligne-2: rgba(248, 245, 237, .08);
  --bronze: #7CCBB9; --bronze-fond: #4E9F8F; --bronze-lav: #123F3F; --sable-lav: #2B3A33; --sable-txt: #D9C9A7;
  --mer: #D9C9A7; --mer-lav: #11403F;
  --ok: #7CCBB9; --ok-lav: #123F3F; --veille: #E2B76A; --veille-lav: #2E3324; --alerte: #EE9884; --alerte-lav: #3A2622;
  --btn: #D9C9A7; --btn-txt: #0B3D40;
  --bezel: #020D0E; --logo-r: #F8F5ED;
  --ombre-tel: 0 60px 120px -50px rgba(0, 0, 0, .9), 0 18px 40px -20px rgba(0, 0, 0, .6);
  --ombre-douce: 0 1px 1px rgba(0, 0, 0, .2), 0 14px 34px -18px rgba(0, 0, 0, .7);
  --ombre-feuille: 0 -30px 60px -30px rgba(0, 0, 0, .8);
  --reflet: inset 0 1px 0 rgba(255, 255, 255, .06);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brume: #051B1D; --sol: #072A2D; --papier: #0D3A3E; --papier-2: #0A3135; --coque: rgba(248, 245, 237, .035);
    --ardoise: #F8F5ED; --ardoise-2: #C5D3CF; --gris: #8FA8A3; --ligne: rgba(248, 245, 237, .14); --ligne-2: rgba(248, 245, 237, .08);
    --bronze: #7CCBB9; --bronze-fond: #4E9F8F; --bronze-lav: #123F3F; --sable-lav: #2B3A33; --sable-txt: #D9C9A7;
    --mer: #D9C9A7; --mer-lav: #11403F;
    --ok: #7CCBB9; --ok-lav: #123F3F; --veille: #E2B76A; --veille-lav: #2E3324; --alerte: #EE9884; --alerte-lav: #3A2622;
    --btn: #D9C9A7; --btn-txt: #0B3D40;
    --bezel: #020D0E; --logo-r: #F8F5ED;
    --ombre-tel: 0 60px 120px -50px rgba(0, 0, 0, .9), 0 18px 40px -20px rgba(0, 0, 0, .6);
    --ombre-douce: 0 1px 1px rgba(0, 0, 0, .2), 0 14px 34px -18px rgba(0, 0, 0, .7);
    --ombre-feuille: 0 -30px 60px -30px rgba(0, 0, 0, .8);
    --reflet: inset 0 1px 0 rgba(255, 255, 255, .06);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--brume); color: var(--ardoise);
  font: 400 15px/1.5 var(--f-texte); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* Grain papier, très léger, fixe et sans interaction */
body::before { content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: .03; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; letter-spacing: inherit; }
input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bronze-fond); outline-offset: 2px; border-radius: 8px; }
.ico { flex: none; display: block; }
h1, h2, h3, p { margin: 0; }

/* ───────────────────────── Marque ───────────────────────── */
.mark { display: block; flex: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ardoise); }
.logo-txt { display: grid; gap: 3px; }
.logo-n { font: 400 27px/1 var(--f-titre); letter-spacing: -.005em; }
.logo-t { font-size: 10px; letter-spacing: .2em; color: var(--ardoise-2); white-space: nowrap; }
.logo-t i { font-style: normal; color: var(--sable-fond); padding: 0 .2em; }

/* ───────────────────────── Scène ───────────────────────── */
.stage { display: grid; grid-template-columns: 300px minmax(0, 1fr) 340px; height: 100vh; }
.rail, .notes { overflow-y: auto; padding: 30px 24px 24px; background: var(--sol); }
.rail { border-right: 1px solid var(--ligne-2); display: flex; flex-direction: column; }
.notes { border-left: 1px solid var(--ligne-2); }
.center { display: grid; place-items: center; padding: 24px; overflow: auto; position: relative;
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--sable-fond) 22%, transparent), transparent 60%), var(--brume); }

.brand { margin-bottom: 20px; }
.rail-intro { font-size: 13.5px; color: var(--ardoise-2); line-height: 1.6; margin-bottom: 24px; }
.rail-h { font: 500 11px/1.2 var(--f-texte); letter-spacing: .2em; text-transform: uppercase; color: var(--gris); margin: 4px 0 12px; }
.whos { display: grid; gap: 3px; margin-bottom: 24px; }
.who { display: flex; gap: 11px; align-items: center; padding: 8px 10px; border-radius: 16px; width: 100%; transition: background .4s var(--ressort); }
.who:hover { background: var(--papier-2); }
.who.is-on { background: var(--abysse); color: var(--blanc); }
.who.is-on .who-r { color: inherit; opacity: .7; }
.who.is-on .who-av { background: var(--sable-fond); color: var(--abysse); }
.who-av { width: 36px; height: 36px; border-radius: 50%; background: var(--sable-lav); color: var(--sable-txt); display: grid; place-items: center; font: 400 15px/1 var(--f-titre); flex: none; }
.who-av--lg { width: 46px; height: 46px; font-size: 19px; }
.who-txt { display: grid; min-width: 0; }
.who-n { font-weight: 500; font-size: 14px; line-height: 1.25; }
.who-r { font-size: 12px; color: var(--gris); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paths { display: grid; gap: 1px; margin-bottom: 18px; }
.path { padding: 7px 12px; border-radius: 999px; font-size: 14px; color: var(--ardoise-2); transition: background .4s var(--ressort); }
.path:hover { background: var(--papier-2); color: var(--ardoise); }
.path.is-on { color: var(--ardoise); font-weight: 500; background: var(--sable-lav); }
.rail-foot { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--ligne-2); }
.ghost { display: inline-flex; gap: 7px; align-items: center; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--papier-2); }
.ghost:hover { background: var(--sable-lav); }

.notes-who { display: flex; gap: 12px; align-items: center; }
.notes-n { font-weight: 500; }
.notes-r { font-size: 13px; color: var(--gris); }
.notes-profil { font-size: 13.5px; color: var(--ardoise-2); margin: 12px 0 26px; padding-bottom: 22px; border-bottom: 1px solid var(--ligne-2); }
.notes-t { font: 400 28px/1.08 var(--f-titre); margin-bottom: 12px; }
.notes-p { font-size: 14px; color: var(--ardoise-2); line-height: 1.65; }
.rg { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.rg li { display: grid; grid-template-columns: 54px 1fr; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--ardoise-2); }
.rg b { font-weight: 500; letter-spacing: .04em; color: var(--bronze); }
.demo { margin-top: 26px; padding: 6px; border-radius: 22px; background: var(--coque); box-shadow: 0 0 0 1px var(--ligne-2); }
.demo > * { margin-left: 12px; margin-right: 12px; }
.demo-t { font: 500 11px/1 var(--f-texte); letter-spacing: .2em; text-transform: uppercase; color: var(--gris); margin: 12px 12px 10px; }
.demo .seg { background: var(--papier); }
.demo-txt { font-size: 12.5px; color: var(--gris); margin: 8px 12px 12px; }
.demo .btn { margin-top: 8px; }

/* ───────────────────────── Téléphone ───────────────────────── */
.phone { width: 404px; height: 862px; max-height: calc(100vh - 48px); padding: 11px; border-radius: 62px; background: linear-gradient(150deg, #1D4A4D, var(--bezel) 40%); box-shadow: var(--ombre-tel), inset 0 0 0 1.5px rgba(255, 255, 255, .1); flex: none; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 51px; overflow: hidden; background: var(--sol); isolation: isolate; }
.status { position: absolute; z-index: 30; top: 0; left: 0; right: 0; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 36px; font-weight: 500; font-size: 15px; color: var(--ardoise); fill: currentColor; transition: background .5s var(--ressort), color .5s var(--ressort); }
.status-r { display: flex; gap: 7px; align-items: center; }
.island { position: absolute; left: 50%; top: 11px; width: 120px; height: 34px; margin-left: -60px; background: #000; border-radius: 20px; }
.screen--hero .status { color: #fff; }
.screen--hero.is-scrolled .status { color: var(--ardoise); background: color-mix(in srgb, var(--sol) 90%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.urlbar { position: absolute; z-index: 30; top: 50px; left: 14px; right: 14px; height: 32px; border-radius: 999px; background: var(--papier-2); display: flex; gap: 6px; align-items: center; justify-content: center; font-size: 12.5px; color: var(--ardoise-2); }
.view { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: 50px 0 104px; scrollbar-width: none; overscroll-behavior: contain; }
.view::-webkit-scrollbar { display: none; }
.phone--web .view { padding-top: 88px; }
.screen--hero .view { padding-top: 0; }
.enter-push { animation: push .5s var(--ressort); }
.enter-pop { animation: pop .45s var(--ressort); }
@keyframes push { from { transform: translateX(32px); opacity: 0; } }
@keyframes pop { from { transform: translateX(-32px); opacity: 0; } }
/* L'unique entrée orchestrée : à l'ouverture d'un onglet, les blocs montent en douceur */
.reveal > * { animation: rise .9s var(--ressort) both; }
.reveal > *:nth-child(2) { animation-delay: .06s; } .reveal > *:nth-child(3) { animation-delay: .12s; }
.reveal > *:nth-child(4) { animation-delay: .18s; } .reveal > *:nth-child(n+5) { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } }

/* Barre d'onglets flottante, la clé au centre */
.tabs { position: absolute; z-index: 25; left: 12px; right: 12px; bottom: 14px; height: 70px; padding: 0 6px; display: flex; align-items: center; border-radius: 28px;
  background: color-mix(in srgb, var(--papier) 82%, transparent); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 0 0 1px var(--ligne-2), 0 20px 40px -18px rgba(11, 61, 64, .35), var(--reflet); }
.tab { flex: 1; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 500; letter-spacing: .04em; color: var(--gris); position: relative; border-radius: 20px; text-align: center; transition: color .4s var(--ressort); }
.tab.is-on { color: var(--ardoise); }
.tab.is-on .ico { stroke-width: 1.8; }
.tab--key { flex: 0 0 66px; }
.tab--key .tab-key { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--abysse); color: var(--blanc); box-shadow: 0 10px 22px -8px rgba(11, 61, 64, .6), inset 0 1px 0 rgba(255, 255, 255, .15); transition: transform .5s var(--ressort); }
:root[data-theme="dark"] .tab--key .tab-key { background: var(--sable-fond); color: var(--abysse); }
.tab--key:active .tab-key { transform: scale(.94); }
.tab--key span:not(.tab-key) { display: none; }
.badge { position: absolute; top: 6px; left: calc(50% + 5px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--alerte); color: #fff; font-size: 10.5px; font-weight: 600; display: grid; place-items: center; letter-spacing: 0; }

/* En-tête de marque des écrans racine */
.brandbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 18px 0 20px;
  background: color-mix(in srgb, var(--sol) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.brandbar .logo-n { font-size: 25px; }
.brandbar--over { position: absolute; top: 50px; left: 0; right: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }
.brandbar--over .logo { color: #fff; }
.bb-right { display: flex; gap: 8px; align-items: center; }
.bb-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--papier-2); position: relative; }
.bb-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sable-fond); color: var(--abysse); font: 400 16px/1 var(--f-titre); }
.brandbar--over .bb-av { background: rgba(248, 245, 237, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(248, 245, 237, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.page-head { padding: 6px 20px 4px; }
.page-h { font: 400 38px/1.02 var(--f-titre); letter-spacing: -.01em; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; background: var(--sable-lav); color: var(--sable-txt); }

/* ───────────────────────── Bureau (back-office) ───────────────────────── */
.desk { width: min(1180px, 100%); height: min(820px, calc(100vh - 48px)); border-radius: 22px; background: var(--sol); box-shadow: var(--ombre-tel), 0 0 0 1px var(--ligne-2); overflow: hidden; display: flex; flex-direction: column; }
.desk-bar { height: 42px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 16px; background: var(--papier-2); border-bottom: 1px solid var(--ligne-2); }
.desk-dots { display: flex; gap: 6px; }
.desk-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--ligne); }
.desk-url { margin: 0 auto; display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--gris); padding: 4px 16px; border-radius: 999px; background: var(--papier); }
.desk-body { position: relative; inset: auto; flex: 1; overflow-y: auto; padding: 0; container-type: inline-size; }

/* ───────────────────────── Blocs communs ───────────────────────── */
.pad { padding: 0 18px; }
.top { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 54px; padding: 0 10px; background: color-mix(in srgb, var(--sol) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.top-title { font: 400 19px/1.2 var(--f-titre); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; position: relative; }
.top-btn:hover { background: var(--papier-2); }
.h-page { font: 400 34px/1.05 var(--f-titre); letter-spacing: -.01em; margin: 8px 0 6px; }
.lede { color: var(--ardoise-2); font-size: 14.5px; line-height: 1.6; }
.sect { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 0 12px; }
.sect-t { font: 400 22px/1.15 var(--f-titre); letter-spacing: -.005em; }
.sect a, .sect button.lnk { font-size: 13.5px; }
.lnk { color: var(--bronze); font-weight: 500; }
.muted { color: var(--gris); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }

.lockup { display: grid; gap: 6px; }
.lockup-bat { font: 500 11px/1 var(--f-texte); letter-spacing: .26em; text-transform: uppercase; opacity: .92; }
.lockup-nom { font: 400 46px/.98 var(--f-titre); letter-spacing: -.01em; }
.lockup--sm .lockup-nom { font-size: 30px; }

/* Double cadre : une coque teintée, un cœur clair aux rayons concentriques */
.card { background: var(--papier); border-radius: 24px; box-shadow: 0 0 0 1px var(--ligne-2), 0 0 0 6px var(--coque), var(--ombre-douce), var(--reflet); }
.card + .card { margin-top: 18px; }
.card-pad { padding: 18px; }
.list { background: var(--papier); border-radius: 24px; overflow: hidden; box-shadow: 0 0 0 1px var(--ligne-2), var(--ombre-douce); }
.row { display: flex; gap: 13px; align-items: center; width: 100%; padding: 14px 16px; min-height: 60px; text-align: left; transition: background .4s var(--ressort); }
.list .row + .row { box-shadow: inset 0 1px 0 var(--ligne-2); }
button.row:hover { background: var(--papier-2); }
.row-ico { width: 40px; height: 40px; border-radius: 14px; background: var(--papier-2); display: grid; place-items: center; flex: none; color: var(--ardoise); }
.row-ico--bronze { background: var(--bronze-lav); color: var(--bronze); }
.row-ico--ok { background: var(--ok-lav); color: var(--ok); }
.row-ico--veille { background: var(--veille-lav); color: var(--veille); }
.row-ico--alerte { background: var(--alerte-lav); color: var(--alerte); }
.row-ico--mer { background: var(--sable-lav); color: var(--sable-txt); }
.row-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.row-t { font-weight: 500; font-size: 15px; line-height: 1.3; }
.row-s { font-size: 13px; color: var(--gris); line-height: 1.45; }
.row-end { text-align: right; font-size: 14px; font-weight: 500; flex: none; display: grid; justify-items: end; gap: 3px; }
.row-chev { color: var(--gris); opacity: .6; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 500; letter-spacing: .03em; white-space: nowrap; line-height: 1.45; }
.pill--neutre { background: var(--papier-2); color: var(--ardoise-2); }
.pill--ok { background: var(--ok-lav); color: var(--ok); }
.pill--veille { background: var(--veille-lav); color: var(--veille); }
.pill--alerte { background: var(--alerte-lav); color: var(--alerte); }
.pill--bronze { background: var(--sable-lav); color: var(--sable-txt); }
.pill--mer { background: var(--mer-lav); color: var(--ardoise); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; flex: none; }

.note { display: flex; gap: 11px; padding: 14px 16px; border-radius: 20px; font-size: 13.5px; line-height: 1.55; }
.note .ico { margin-top: 1px; }
.note p { color: var(--ardoise); }
.note--info { background: var(--mer-lav); color: var(--ardoise-2); }
.note--ok { background: var(--ok-lav); color: var(--ok); }
.note--veille { background: var(--veille-lav); color: var(--veille); }
.note--alerte { background: var(--alerte-lav); color: var(--alerte); }
.sap { font-size: 12.5px; color: var(--ok); font-weight: 500; }

/* Boutons pilule, avec icône de fin logée dans son propre cercle */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px; border-radius: 999px; font-weight: 500; font-size: 15.5px; letter-spacing: .02em; background: var(--btn); color: var(--btn-txt); transition: transform .5s var(--ressort), opacity .3s; box-shadow: 0 14px 28px -16px rgba(11, 61, 64, .7), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .35; cursor: not-allowed; box-shadow: none; }
.btn--block { width: 100%; }
.btn--ghost { background: var(--papier); color: var(--ardoise); box-shadow: 0 0 0 1px var(--ligne); }
.btn--bronze { background: var(--bronze-fond); color: #fff; }
.btn--alerte { background: var(--alerte); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; box-shadow: none; }
.btn--ghost.btn--sm { box-shadow: 0 0 0 1px var(--ligne); }
.btn .btn-i { width: 34px; height: 34px; margin-right: -14px; margin-left: auto; border-radius: 50%; display: grid; place-items: center; background: rgba(248, 245, 237, .14); transition: transform .5s var(--ressort); }
:root[data-theme="dark"] .btn .btn-i { background: rgba(11, 61, 64, .12); }
.btn:hover .btn-i { transform: translateX(3px); }
.btn:has(.btn-i) { justify-content: space-between; padding-left: 26px; }
.btns { display: grid; gap: 10px; }
.btns-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.foot { position: sticky; bottom: var(--sous-onglets); padding: 16px 18px 6px; background: linear-gradient(to top, var(--sol) 72%, transparent); z-index: 5; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--papier); box-shadow: 0 0 0 1px var(--ligne); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; transition: background .4s var(--ressort), color .4s var(--ressort); }
.chip.is-on { background: var(--abysse); color: var(--blanc); box-shadow: none; }
:root[data-theme="dark"] .chip.is-on { background: var(--sable-fond); color: var(--abysse); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 4px; border-radius: 999px; background: var(--papier-2); }
.seg button { min-height: 38px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ardoise-2); text-align: center; padding: 0 6px; transition: background .45s var(--ressort), color .45s var(--ressort); }
.seg button.is-on { background: var(--papier); color: var(--ardoise); box-shadow: 0 4px 12px -6px rgba(11, 61, 64, .3), 0 0 0 1px var(--ligne-2); }
.demo .seg button.is-on { background: var(--abysse); color: var(--blanc); }

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > span { font-size: 13.5px; font-weight: 500; }
.input { width: 100%; min-height: 50px; padding: 13px 16px; border-radius: 18px; border: 0; box-shadow: 0 0 0 1px var(--ligne); background: var(--papier); font-size: 15px; resize: vertical; }
.input:focus { outline: none; box-shadow: 0 0 0 2px var(--bronze-fond); }
textarea.input { min-height: 100px; line-height: 1.55; }

.kv { display: grid; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; box-shadow: inset 0 -1px 0 var(--ligne-2); font-size: 14.5px; }
.kv > div:last-child { box-shadow: none; }
.kv .k { color: var(--ardoise-2); }
.kv .v { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kv .tot { font: 400 20px/1.2 var(--f-titre); color: var(--ardoise); }
.kv .moins { color: var(--ardoise-2); }

.stepper { display: inline-flex; align-items: center; border-radius: 999px; background: var(--papier); box-shadow: 0 0 0 1px var(--ligne); }
.stepper button { width: 42px; height: 42px; display: grid; place-items: center; }
.stepper span { min-width: 28px; text-align: center; font: 400 19px/1 var(--f-titre); font-variant-numeric: tabular-nums; }

.photo { position: relative; overflow: hidden; border-radius: 24px; background: var(--papier-2); box-shadow: 0 0 0 6px var(--coque); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ───────────────────────── Accueil ───────────────────────── */
.hero { position: relative; height: 460px; color: #fff; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 61, 64, .62) 0%, rgba(11, 61, 64, 0) 26%, rgba(11, 61, 64, 0) 42%, rgba(7, 42, 45, .9) 100%); }
.hero-in { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 44px; }
.hero-hello { font-size: 15px; opacity: .9; margin-bottom: 12px; font-weight: 400; }
.hero .lockup-nom { font-size: 50px; }
.hero-when { display: flex; gap: 8px; align-items: center; margin-top: 14px; font-size: 14px; font-weight: 400; letter-spacing: .02em; opacity: .95; }

.prep { margin: -26px 14px 0; position: relative; z-index: 4; padding: 18px 18px 4px; }
.prep-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.prep-h b { font: 400 21px/1.2 var(--f-titre); }
.prep-bar { height: 3px; border-radius: 3px; background: var(--ligne-2); overflow: hidden; margin-bottom: 6px; }
.prep-bar i { display: block; height: 100%; background: var(--bronze-fond); border-radius: 3px; transition: transform .9s var(--ressort); }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; font-size: 14px; }
.steps li + li { box-shadow: inset 0 1px 0 var(--ligne-2); }
.steps .h { font-size: 13px; color: var(--gris); font-variant-numeric: tabular-nums; }
.tick { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ligne); display: grid; place-items: center; color: #fff; }
.tick--fait { background: var(--bronze-fond); box-shadow: none; }
.tick--encours { box-shadow: inset 0 0 0 1.5px var(--bronze-fond); position: relative; }
.tick--encours::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--bronze-fond); animation: pulse 1.8s var(--ressort) infinite; }
.steps li.is-prevu span:nth-child(2) { color: var(--ardoise-2); }
@keyframes pulse { 50% { opacity: .3; transform: scale(.7); } }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.q { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 16px 14px; border-radius: 24px; background: var(--papier); box-shadow: 0 0 0 1px var(--ligne-2), var(--ombre-douce); font-size: 15px; font-weight: 500; line-height: 1.25; transition: transform .5s var(--ressort); }
.q:active { transform: scale(.97); }
.q-i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bronze-lav); color: var(--bronze); }
.q small { display: block; font-weight: 400; color: var(--gris); font-size: 12px; margin-top: 3px; line-height: 1.35; }

.sugg { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 6px 18px 10px; scrollbar-width: none; }
.sugg::-webkit-scrollbar { display: none; }
.sg { scroll-snap-align: start; text-align: left; padding: 18px; border-radius: 24px; background: var(--papier); box-shadow: 0 0 0 1px var(--ligne-2), 0 0 0 6px var(--coque), var(--ombre-douce); display: grid; gap: 6px; align-content: start; }
.sg-ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--sable-lav); color: var(--sable-txt); margin-bottom: 6px; }
.sg-t { font: 400 20px/1.15 var(--f-titre); }
.sg-s { font-size: 13px; color: var(--gris); line-height: 1.5; }
.sg-p { font-size: 14px; font-weight: 500; margin-top: 6px; }

.ann { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 15px 18px; text-align: left; width: 100%; }
.ann-t { font-weight: 500; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.ann-s { grid-column: 1 / -1; font-size: 13.5px; color: var(--ardoise-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ann + .ann { box-shadow: inset 0 1px 0 var(--ligne-2); }

.event { display: block; border-radius: 26px; overflow: hidden; text-align: left; width: 100%; background: var(--papier); box-shadow: 0 0 0 1px var(--ligne-2), 0 0 0 6px var(--coque), var(--ombre-douce); }
.event img { width: 100%; aspect-ratio: 482 / 314; object-fit: cover; }
.event-in { padding: 16px 18px 18px; }
.event-t { font: 400 20px/1.2 var(--f-titre); }
.event-s { font-size: 13.5px; color: var(--ardoise-2); margin-top: 6px; line-height: 1.55; }

/* ───────────────────────── Catalogue ───────────────────────── */
.search { display: flex; gap: 10px; align-items: center; min-height: 50px; padding: 0 18px; border-radius: 999px; background: var(--papier); box-shadow: 0 0 0 1px var(--ligne-2), var(--ombre-douce); color: var(--gris); }
.search input { flex: 1; border: 0; background: none; outline: none; min-height: 46px; color: var(--ardoise); }
.fams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 6px; }
.fam { display: grid; justify-items: center; gap: 7px; padding: 6px 2px; font-size: 11.5px; font-weight: 500; text-align: center; line-height: 1.3; color: var(--ardoise-2); }
.fam span:first-child { width: 54px; height: 54px; border-radius: 50%; background: var(--papier); box-shadow: 0 0 0 1px var(--ligne-2), var(--ombre-douce); display: grid; place-items: center; color: var(--ardoise); transition: background .45s var(--ressort), color .45s var(--ressort); }
.fam.is-on span:first-child { background: var(--abysse); color: var(--blanc); }
:root[data-theme="dark"] .fam.is-on span:first-child { background: var(--sable-fond); color: var(--abysse); }
.fam.is-on { color: var(--ardoise); }
.svc { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; padding: 15px 18px; width: 100%; text-align: left; transition: background .4s var(--ressort); }
.svc:hover { background: var(--papier-2); }
.svc + .svc { box-shadow: inset 0 1px 0 var(--ligne-2); }
.svc-t { font-weight: 500; font-size: 15px; line-height: 1.3; }
.svc-p { font-weight: 500; font-size: 14.5px; text-align: right; white-space: nowrap; }
.svc-s { font-size: 13px; color: var(--gris); }
.svc-x { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.svc.is-off .svc-t, .svc.is-off .svc-p { color: var(--gris); }

.detail-head { padding: 6px 20px 0; }
.detail-fam { display: inline-flex; gap: 7px; align-items: center; padding: 5px 12px; border-radius: 999px; background: var(--sable-lav); color: var(--sable-txt); font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.detail-fam .ico { width: 15px; height: 15px; }
.detail-t { font: 400 40px/1.02 var(--f-titre); letter-spacing: -.01em; margin: 14px 0 12px; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { min-height: 46px; border-radius: 999px; background: var(--papier); box-shadow: 0 0 0 1px var(--ligne); font-size: 14px; font-weight: 500; text-align: center; font-variant-numeric: tabular-nums; transition: background .4s var(--ressort), color .4s var(--ressort); }
.slot.is-on { background: var(--abysse); color: var(--blanc); box-shadow: none; }
:root[data-theme="dark"] .slot.is-on, :root[data-theme="dark"] .day.is-on { background: var(--sable-fond); color: var(--abysse); }
.slot.is-off { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.day { display: grid; justify-items: center; gap: 2px; padding: 10px 0; border-radius: 22px; background: var(--papier); box-shadow: 0 0 0 1px var(--ligne); transition: background .4s var(--ressort); }
.day b { font: 400 24px/1 var(--f-titre); font-variant-numeric: tabular-nums; }
.day small { font-size: 11.5px; color: var(--gris); letter-spacing: .06em; }
.day.is-on { background: var(--abysse); color: var(--blanc); box-shadow: none; }
.day.is-on small { color: inherit; opacity: .75; }

/* ───────────────────────── Messages ───────────────────────── */
.thread { padding: 8px 14px 16px; display: grid; gap: 8px; }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 22px; font-size: 14.5px; line-height: 1.5; }
.msg-meta { font-size: 11.5px; color: var(--gris); margin: 6px 6px 0; }
.msg--moi { justify-self: end; background: var(--abysse); color: var(--blanc); border-bottom-right-radius: 8px; }
:root[data-theme="dark"] .msg--moi { background: var(--sable-fond); color: var(--abysse); }
.msg--conc { justify-self: start; background: var(--papier); box-shadow: 0 0 0 1px var(--ligne-2); border-bottom-left-radius: 8px; }
.msg-who { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); margin-bottom: 4px; }
.msg-tr { margin-top: 8px; padding-top: 8px; box-shadow: inset 0 1px 0 var(--ligne-2); font-size: 12.5px; color: var(--gris); display: flex; gap: 6px; }
.mcard { justify-self: stretch; padding: 16px; border-radius: 24px; background: var(--papier); box-shadow: 0 0 0 1px var(--ligne-2), 0 0 0 6px var(--coque), var(--ombre-douce); display: grid; gap: 4px; margin: 6px 0; }
.mcard-k { display: flex; gap: 7px; align-items: center; font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); }
.mcard-k .ico { width: 15px; height: 15px; }
.mcard-t { font: 400 19px/1.2 var(--f-titre); margin-top: 4px; }
.mcard-s { font-size: 13.5px; color: var(--ardoise-2); }
.mcard .btns-2 { margin-top: 10px; }
.composer { position: sticky; bottom: var(--sous-onglets); display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px 12px; background: var(--sol); }
.composer textarea { flex: 1; min-height: 46px; max-height: 110px; padding: 12px 16px; border-radius: 24px; border: 0; box-shadow: 0 0 0 1px var(--ligne); background: var(--papier); resize: none; font-size: 15px; line-height: 1.4; }
.composer .send { width: 46px; height: 46px; border-radius: 50%; background: var(--btn); color: var(--btn-txt); display: grid; place-items: center; flex: none; }
.hours { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12.5px; color: var(--gris); padding: 4px 18px 8px; text-align: center; }
.typing { justify-self: start; display: flex; gap: 4px; padding: 13px 15px; border-radius: 22px; background: var(--papier); box-shadow: 0 0 0 1px var(--ligne-2); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--gris); animation: pulse 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }

/* ───────────────────────── Clés ───────────────────────── */
.keyhero { display: grid; justify-items: center; text-align: center; padding: 14px 18px 8px; }
.keybtn { position: relative; width: 200px; height: 200px; border-radius: 50%; display: grid; place-items: center; color: var(--blanc); background: radial-gradient(circle at 35% 25%, #175458, var(--abysse) 65%); margin: 22px 0 22px; transition: transform .5s var(--ressort), background .5s var(--ressort);
  box-shadow: 0 0 0 10px var(--coque), 0 0 0 11px var(--ligne-2), 0 30px 50px -24px rgba(11, 61, 64, .7), inset 0 1px 0 rgba(255, 255, 255, .15); }
:root[data-theme="dark"] .keybtn { background: radial-gradient(circle at 35% 25%, #E8DCC2, var(--sable-fond) 65%); color: var(--abysse); }
.keybtn:active { transform: scale(.96); }
.keybtn-in { display: grid; justify-items: center; gap: 10px; font-weight: 500; font-size: 16px; letter-spacing: .06em; }
.keybtn.is-busy::after { content: ''; position: absolute; inset: -11px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--bronze-fond); animation: spin 1s linear infinite; }
.keybtn.is-ok { background: radial-gradient(circle at 35% 25%, #62B3A2, var(--bronze-fond) 70%); color: #fff; }
.keybtn.is-ko { background: var(--alerte); color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.keytarget { font: 400 30px/1.05 var(--f-titre); }
.keysub { font-size: 13.5px; color: var(--gris); margin-top: 6px; letter-spacing: .02em; }
.acc { display: flex; gap: 12px; align-items: center; padding: 13px 16px; }
.acc + .acc { box-shadow: inset 0 1px 0 var(--ligne-2); }
.acc .row-main { min-width: 0; }
.open-mini { min-height: 38px; padding: 0 14px; border-radius: 999px; font-weight: 500; font-size: 13.5px; background: var(--papier-2); display: inline-flex; gap: 6px; align-items: center; transition: background .4s var(--ressort); }
.open-mini.is-ok { background: var(--ok-lav); color: var(--ok); }
.code { font: 400 36px/1 var(--f-titre); letter-spacing: .16em; font-variant-numeric: tabular-nums; }
.code-box { display: grid; justify-items: center; gap: 8px; padding: 22px; border-radius: 24px; background: var(--papier); box-shadow: 0 0 0 1px var(--ligne-2), 0 0 0 6px var(--coque); text-align: center; }

/* ───────────────────────── Mobilité ───────────────────────── */
.veh { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 17px 18px; width: 100%; text-align: left; transition: background .4s var(--ressort); }
button.veh:hover { background: var(--papier-2); }
.veh + .veh { box-shadow: inset 0 1px 0 var(--ligne-2); }
.veh-n { font: 400 20px/1.2 var(--f-titre); }
.veh-s { font-size: 13px; color: var(--gris); }
.veh-p { text-align: right; font-weight: 500; }
.batt { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ardoise-2); margin-top: 8px; }
.batt-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--ligne-2); overflow: hidden; }
.batt-bar i { display: block; height: 100%; border-radius: 4px; background: var(--bronze-fond); }
.batt-bar i.low { background: var(--veille); }
.veh.is-off .veh-n { color: var(--gris); }
.carviz { position: relative; height: 150px; border-radius: 24px; background: linear-gradient(180deg, var(--papier), var(--papier-2)); box-shadow: 0 0 0 1px var(--ligne-2), 0 0 0 6px var(--coque); overflow: hidden; display: grid; place-items: center; }
.carviz svg { width: 80%; height: auto; color: var(--ardoise); }
.carviz-place { position: absolute; top: 14px; left: 16px; font-size: 10.5px; font-weight: 500; letter-spacing: .22em; color: var(--sable-txt); padding: 4px 10px; border-radius: 999px; background: var(--sable-lav); }
.big-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bs { padding: 16px 14px; border-radius: 22px; background: var(--papier); box-shadow: 0 0 0 1px var(--ligne-2), var(--ombre-douce); }
.bs b { display: block; font: 400 32px/1 var(--f-titre); font-variant-numeric: tabular-nums; font-weight: 400; }
.bs span { font-size: 12.5px; color: var(--gris); display: block; margin-top: 6px; }
.edl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shot { position: relative; aspect-ratio: 1; border-radius: 22px; box-shadow: inset 0 0 0 1.5px var(--ligne); background: var(--papier); display: grid; place-items: center; align-content: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--gris); text-align: center; padding: 6px; overflow: hidden; transition: background .5s var(--ressort); }
.shot.is-done { box-shadow: none; color: var(--blanc); background: linear-gradient(160deg, #3E6E70, var(--abysse)); }
.shot.is-done::after { content: attr(data-t); position: absolute; left: 10px; bottom: 7px; font-size: 10.5px; opacity: .8; }
.checks { display: grid; }
.chk { display: flex; gap: 13px; align-items: center; padding: 14px 16px; width: 100%; text-align: left; font-size: 14.5px; }
.chk + .chk { box-shadow: inset 0 1px 0 var(--ligne-2); }
.box { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ligne); display: grid; place-items: center; color: transparent; flex: none; transition: background .4s var(--ressort); }
.chk.is-on .box { background: var(--bronze-fond); box-shadow: none; color: #fff; }
.chk.is-ko .box { box-shadow: inset 0 0 0 1.5px var(--alerte); color: var(--alerte); }

/* ───────────────────────── Propriétaire investisseur ───────────────────────── */
.kpi { padding: 20px; }
.kpi-v { font: 400 50px/1 var(--f-titre); font-variant-numeric: tabular-nums; letter-spacing: -.015em; margin-top: 6px; }
.kpi-l { font-size: 13.5px; color: var(--gris); margin-top: 8px; line-height: 1.5; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpis .bs b { font-size: 28px; }
.spark { width: 100%; height: 64px; margin-top: 14px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-h { font-size: 11px; color: var(--gris); text-align: center; padding: 4px 0; font-weight: 500; letter-spacing: .1em; }
.cd { aspect-ratio: 1 / 1.1; border-radius: 14px; font-size: 14px; font-weight: 500; display: grid; place-items: center; position: relative; font-variant-numeric: tabular-nums; background: var(--papier); box-shadow: 0 0 0 1px var(--ligne-2); transition: background .4s var(--ressort); }
.cd--vide { background: none; box-shadow: none; }
:root { --resa: #0B3D40; }
:root[data-theme="dark"] { --resa: #2F6A6E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --resa: #2F6A6E; } }
.cd--resa { background: var(--resa); color: var(--blanc); box-shadow: none; }
.cd--proprio { background: var(--sable-fond); color: var(--abysse); box-shadow: none; }
.cd--maint { background: repeating-linear-gradient(135deg, var(--papier-2) 0 5px, var(--ligne) 5px 6px); }
.cd--sel { box-shadow: 0 0 0 2px var(--bronze-fond); }
.cd small { position: absolute; bottom: 3px; font-size: 9.5px; font-weight: 400; opacity: .75; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; color: var(--ardoise-2); }
.legend span { display: inline-flex; gap: 7px; align-items: center; }
.legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 1px var(--ligne); }
.bar-split { display: flex; height: 10px; border-radius: 999px; overflow: hidden; margin: 16px 0 12px; gap: 2px; }
.bar-split i { display: block; height: 100%; }
.range { width: 100%; accent-color: var(--abysse); height: 32px; }
.fourchette { font: 400 42px/1.05 var(--f-titre); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.feu { display: flex; gap: 13px; align-items: center; padding: 14px 16px; }
.feu + .feu { box-shadow: inset 0 1px 0 var(--ligne-2); }
.feu-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 4px var(--coque); }

/* ───────────────────────── Voyageur ───────────────────────── */
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--papier-2); }
.lang button { text-align: center; min-width: 36px; min-height: 30px; border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--gris); }
.lang button.is-on { background: var(--abysse); color: var(--blanc); }
.ghero { position: relative; height: 270px; margin: 4px 14px 0; border-radius: 30px; overflow: hidden; color: #fff; box-shadow: 0 0 0 6px var(--coque), var(--ombre-douce); }
.ghero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ghero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(7, 42, 45, .85)); }
.ghero-in { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px; }

/* ───────────────────────── Concierge ───────────────────────── */
.offline-bar { display: flex; gap: 10px; align-items: center; padding: 11px 16px; margin: 0 14px 10px; border-radius: 999px; background: var(--veille-lav); color: var(--veille); font-size: 13.5px; font-weight: 500; }
.offline-bar span { color: var(--ardoise); }
.task { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; width: 100%; text-align: left; transition: background .4s var(--ressort); }
button.task:hover { background: var(--papier-2); }
.task + .task { box-shadow: inset 0 1px 0 var(--ligne-2); }
.task-h { font: 400 19px/1 var(--f-titre); font-variant-numeric: tabular-nums; }
.task.is-fait .task-h, .task.is-fait .row-t { color: var(--gris); }
.task.is-fait .row-t { text-decoration: line-through; text-decoration-color: var(--ligne); }
.timer { font: 400 40px/1 var(--f-titre); font-variant-numeric: tabular-nums; }

/* ───────────────────────── Back-office ───────────────────────── */
.bo { padding: 28px 32px 42px; }
.bo-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; }
.bo-h { font: 400 42px/1.02 var(--f-titre); letter-spacing: -.01em; margin-top: 10px; }
.bo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 22px; }
.bo-k { padding: 16px 18px; border-radius: 22px; background: var(--papier); box-shadow: 0 0 0 1px var(--ligne-2), 0 0 0 5px var(--coque), var(--ombre-douce); }
.bo-k b { display: block; font: 400 36px/1 var(--f-titre); font-variant-numeric: tabular-nums; }
.bo-k span { font-size: 12.5px; color: var(--gris); display: block; margin-top: 8px; line-height: 1.4; }
.bo-k.is-alerte b { color: var(--alerte); }
.bo-cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; align-items: start; }
.bo-panel { background: var(--papier); border-radius: 24px; overflow: hidden; box-shadow: 0 0 0 1px var(--ligne-2), var(--ombre-douce); }
.bo-panel + .bo-panel { margin-top: 18px; }
.bo-ph { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; box-shadow: inset 0 -1px 0 var(--ligne-2); }
.bo-ph h2 { font: 400 21px/1.2 var(--f-titre); }
.bo-tbl { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.bo-tbl th { text-align: left; font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gris); padding: 12px 20px; box-shadow: inset 0 -1px 0 var(--ligne-2); }
.bo-tbl th:first-child { width: 96px; }
.bo-tbl th:nth-child(3) { width: 150px; }
.bo-tbl th:nth-child(4) { width: 120px; }
.bo-tbl td { padding: 13px 20px; box-shadow: inset 0 -1px 0 var(--ligne-2); vertical-align: middle; }
.bo-tbl tr:last-child td { box-shadow: none; }
.bo-timer { font-variant-numeric: tabular-nums; font-weight: 500; }
.bo-timer.is-late { color: var(--alerte); }
.bo-reply { display: flex; gap: 8px; padding: 14px 20px 18px; background: var(--papier-2); }
.bo-reply input { flex: 1; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 0; box-shadow: 0 0 0 1px var(--ligne); background: var(--papier); }
.bo .list { box-shadow: none; border-radius: 0; }
@container (max-width: 980px) {
  .bo { padding: 22px 22px 34px; }
  .bo-grid { grid-template-columns: repeat(3, 1fr); }
  .bo-cols { grid-template-columns: 1fr; }
}
@container (max-width: 560px) {
  .bo-grid { grid-template-columns: repeat(2, 1fr); }
  .bo-head { flex-direction: column; align-items: flex-start; }
  .bo-tbl th:nth-child(3), .bo-tbl td:nth-child(3) { display: none; }
}

/* ───────────────────────── Feuilles et toasts ───────────────────────── */
.sheet-wrap { position: absolute; inset: 0; z-index: 60; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(7, 42, 45, .45); opacity: 0; transition: opacity .4s var(--ressort); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86%; overflow-y: auto; background: var(--sol); border-radius: 34px 34px 0 0; padding: 10px 20px 30px; transform: translateY(100%); transition: transform .6s var(--ressort); box-shadow: var(--ombre-feuille); }
.sheet-wrap.in .sheet-scrim { opacity: 1; }
.sheet-wrap.in .sheet { transform: none; }
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--ligne); margin: 2px auto 16px; }
.sheet-t { font: 400 30px/1.08 var(--f-titre); margin-bottom: 8px; }
.desk .sheet-wrap { position: fixed; display: grid; place-items: center; }
.desk .sheet { position: relative; max-width: 480px; width: 100%; border-radius: 28px; transform: translateY(20px); opacity: 0; transition: transform .5s var(--ressort), opacity .5s var(--ressort); }
.desk .sheet-wrap.in .sheet { transform: none; opacity: 1; }

.toasts { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { display: flex; gap: 10px; align-items: center; padding: 13px 20px; border-radius: 999px; background: var(--abysse); color: var(--blanc); font-size: 14px; font-weight: 500; box-shadow: 0 20px 44px -18px rgba(7, 42, 45, .7); transform: translateY(16px); opacity: 0; transition: transform .6s var(--ressort), opacity .6s var(--ressort); max-width: 92vw; }
.toast.in { transform: none; opacity: 1; }
.toast .ico { color: #7CCBB9; }
.toast--alerte .ico { color: #EE9884; }

.mobile-bar { display: none; }

/* ───────────────────────── Adaptatif ───────────────────────── */
@media (max-width: 1240px) { .stage { grid-template-columns: 270px minmax(0, 1fr); } .notes { display: none; } }
@media (max-width: 860px) {
  .stage { grid-template-columns: 1fr; height: auto; min-height: 100vh; }
  .rail { position: fixed; z-index: 80; inset: 0 auto 0 0; width: min(330px, 88vw); transform: translateX(-102%); transition: transform .5s var(--ressort); box-shadow: 20px 0 60px -20px rgba(0, 0, 0, .4); }
  body.drawer-open .rail { transform: none; }
  body.drawer-open::after { content: ''; position: fixed; inset: 0; z-index: 70; background: rgba(7, 42, 45, .4); }
  .mobile-bar { display: flex; position: fixed; z-index: 50; top: 12px; left: 50%; transform: translateX(-50%); gap: 8px; align-items: center; padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--abysse); color: var(--blanc); font-size: 13px; font-weight: 500; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
  .mobile-bar button { min-height: 32px; padding: 0 14px; border-radius: 999px; background: var(--sable-fond); color: var(--abysse); font-weight: 500; font-size: 13px; }
  .center { padding: 64px 16px 24px; min-height: 100vh; }
  .desk { height: auto; min-height: 80vh; }
}
@media (max-width: 520px) {
  .center { padding: 0; display: block; }
  .phone { width: 100%; height: 100dvh; max-height: none; padding: 0; border-radius: 0; box-shadow: none; background: none; }
  .screen { border-radius: 0; }
  .island { display: none; }
  .mobile-bar { top: auto; bottom: 100px; left: auto; right: 12px; transform: none; padding: 4px; }
  .mobile-bar .mb-who { display: none; }
  .desk { border-radius: 0; min-height: 100dvh; box-shadow: none; }
  .desk-bar { display: none; }
  body:has(.desk) .mobile-bar { bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
