/* Mise en page : bandeaux pleine largeur, contenu centré à 1180px ; une démo de standard vivante ouvre la page,
   puis le parcours d'un appel, les offres, le simulateur et le contact. Pétrole profond + ambre « ligne active ». */
:root {
  /* Charte GRD Télécom : bleu nuit #091F26, bleu pétrole #143D48, orange doré #FFB43F (accent),
     turquoise #35D0C3, blanc glacé #E5F0EF. */
  --bg: #091f26; --bg-2: #0e2b34; --surface: #143d48; --line: rgb(229 240 239 / 0.12);
  --fg: #e5f0ef; --muted: #9db8b2; --accent: #ffb43f; --accent-ink: #2a1a00; --teal: #35d0c3; --red: #ff6b5a;
  --shadow: 0 18px 50px rgb(0 0 0 / 0.35);
  --display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}
/* Thème sombre imposé à tous (décision du propriétaire, novembre 2026) : le réglage clair de l'appareil
   n'est plus suivi et le bouton de thème est masqué. Le thème clair reste défini ci-dessous (inutilisé). */
:root[data-theme="light"] {
  --bg: #f3f7f5; --bg-2: #e7efec; --surface: #ffffff; --line: rgb(11 31 38 / 0.12);
  --fg: #0b1f26; --muted: #4b6a66; --accent: #e08a00; --accent-ink: #ffffff; --teal: #0f9e8e; --red: #d94b3a;
  --shadow: 0 18px 40px rgb(11 31 38 / 0.12); color-scheme: light; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 500 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band { padding-block: clamp(56px, 8vw, 104px); }
.band-alt { background: var(--bg-2); }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
.eyebrow { font: 600 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.lead { font-size: 18px; color: var(--muted); max-width: 62ch; }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font: 800 15px var(--body); text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-primary { color: var(--accent-ink); background: var(--accent); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn-ghost { color: var(--fg); background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--teal); }
.btn svg { width: 18px; height: 18px; }

/* En-tête */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 17px var(--display); letter-spacing: 0.02em; }
.brand-mark { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); }
.brand-mark svg { width: 20px; height: 20px; }
.brand-mark::after { content: ""; position: absolute; inset: -4px; border-radius: 15px; border: 2px solid var(--accent); opacity: 0; animation: ring 2.6s ease-out infinite; }
.brand small { display: block; font: 600 10px var(--mono); letter-spacing: 0.18em; color: var(--muted); }
.brand .logo { display: block; height: 44px; width: auto; max-width: 100%; }
/* Logo : jaune et blanc sur fond sombre (par défaut), jaune et foncé sur fond clair */
.logo-clair { display: none !important; }
:root[data-theme="light"] .logo-clair { display: block !important; }
:root[data-theme="light"] .logo-sombre { display: none !important; }
footer .brand .logo { height: 36px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 14.5px; color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--fg); background: var(--line); }
.top .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--line); color: var(--fg); cursor: pointer; }
@keyframes ring { 0% { transform: scale(.85); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }

/* Héros */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 80px) clamp(48px, 7vw, 96px); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--teal) 22%, transparent), transparent 65%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(34px, 5.6vw, 64px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 600 13px var(--mono); color: var(--muted); }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }

/* Démo de standard virtuel */
.demo { position: relative; display: grid; gap: 14px; padding: 18px; border-radius: 26px; background: linear-gradient(160deg, color-mix(in srgb, var(--surface) 92%, var(--teal)), var(--surface)); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); min-width: 0; }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 600 12px var(--mono); color: var(--muted); }
.demo-head b { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); }
.led { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.demo[data-state="ringing"] .led { background: var(--accent); animation: blink .6s steps(2) infinite; }
.demo[data-state="menu"] .led, .demo[data-state="queue"] .led, .demo[data-state="connected"] .led { background: var(--teal); box-shadow: 0 0 10px var(--teal); }
@keyframes blink { 50% { opacity: .2; } }
.demo-screen { display: grid; gap: 8px; padding: 16px; border-radius: 18px; background: color-mix(in srgb, var(--bg) 70%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.demo-screen strong { font: 700 15px var(--display); }
.demo-screen p { min-height: 3.2em; color: var(--muted); font-size: 14.5px; }
#wave { width: 100%; height: 64px; display: block; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.key { display: grid; place-content: center; justify-items: center; height: 52px; border: 0; border-radius: 14px; font: 700 20px var(--display); color: var(--fg); background: color-mix(in srgb, var(--bg) 55%, transparent); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: transform .12s, background .2s; }
.key small { font: 600 8.5px var(--mono); letter-spacing: .14em; color: var(--muted); }
.key:hover { background: color-mix(in srgb, var(--teal) 16%, transparent); }
.key:active, .key.hit { transform: scale(.95); background: color-mix(in srgb, var(--accent) 30%, transparent); }
.demo-call { display: grid; gap: 8px; align-content: start; }
.demo-call .btn { justify-content: center; width: 100%; }
.btn-hang { color: #fff; background: var(--red); }
.sip { height: 168px; overflow: auto; padding: 10px 12px; border-radius: 14px; font: 400 11.5px/1.55 var(--mono); color: var(--muted); background: color-mix(in srgb, var(--bg) 80%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.sip div { white-space: pre-wrap; overflow-wrap: anywhere; }
.sip .req { color: var(--teal); }
.sip .ok { color: var(--accent); }
.demo-note { font: 600 11px var(--mono); color: var(--muted); }

/* Bandeau technique */
.ticker { border-block: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.ticker-track { display: flex; gap: 48px; width: max-content; padding-block: 16px; font: 600 13px var(--mono); letter-spacing: .08em; color: var(--muted); animation: slide 40s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.ticker-track span::before { content: "◆"; color: var(--accent); font-size: 9px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Offres */
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.offer { position: relative; display: grid; gap: 18px; align-content: start; padding: clamp(22px, 3vw, 34px); border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.offer::after { content: ""; position: absolute; inset: auto -60px -60px auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tint) 30%, transparent), transparent 70%); }
.offer-perso { --tint: var(--teal); }
.offer-pro { --tint: var(--accent); }
.offer-tag { justify-self: start; padding: 6px 12px; border-radius: 999px; font: 700 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--tint); background: color-mix(in srgb, var(--tint) 14%, transparent); }
.offer h3 { font-size: clamp(22px, 2.4vw, 28px); }
.ticks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--muted); }
.ticks li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 6px; background: color-mix(in srgb, var(--tint, var(--teal)) 22%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2335d0c3' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.ticks strong { color: var(--fg); }

/* Parcours d'un appel */
.flow { overflow-x: auto; padding: 8px 0 4px; }
.flow svg { display: block; min-width: 760px; width: 100%; height: auto; }
.flow .node rect { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.flow .node text { fill: var(--fg); font: 700 15px var(--display); }
.flow .node .sub { fill: var(--muted); font: 600 11px var(--mono); }
.flow .wire { stroke: var(--line); stroke-width: 2.5; fill: none; }
.flow .pulse { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }
.flow-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.flow-legend div { display: grid; gap: 6px; }
.flow-legend b { font: 700 14px var(--display); }
.flow-legend p { font-size: 14px; color: var(--muted); }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.step::before { counter-increment: s; content: "Étape " counter(s); font: 700 12px var(--mono); letter-spacing: .1em; color: var(--accent); }
.step p { color: var(--muted); font-size: 14.5px; }
.step .delay { font: 600 12px var(--mono); color: var(--teal); }

/* Fonctionnalités */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 20px; border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.feature:hover { border-color: color-mix(in srgb, var(--teal) 55%, transparent); transform: translateY(-3px); }
.feature-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--teal); background: color-mix(in srgb, var(--teal) 14%, transparent); }
.feature-ico svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); font-size: 14.5px; }
.feature code { font: 600 12px var(--mono); color: var(--accent); }

/* Simulateur et tarifs */
.sim { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 22px; align-items: start; }
.sim-form { display: grid; gap: 20px; padding: clamp(20px, 3vw, 30px); border-radius: 26px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; font: 800 14px var(--body); color: var(--muted); background: transparent; cursor: pointer; }
.seg button[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); }
.field { display: grid; gap: 8px; }
.field label, .field .label { font-weight: 800; font-size: 14px; }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input { flex: 1; accent-color: var(--accent); }
.range-row output { min-width: 3ch; font: 700 22px var(--display); font-variant-numeric: tabular-nums; }
.opts { display: grid; gap: 10px; }
.opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); cursor: pointer; }
.opt input { width: 18px; height: 18px; accent-color: var(--accent); }
.opt span small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.opt em { font: 600 13px var(--mono); font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.total { position: sticky; top: 92px; display: grid; gap: 14px; padding: clamp(22px, 3vw, 30px); border-radius: 26px; color: var(--accent-ink); background: var(--accent); box-shadow: var(--shadow); }
.total .eyebrow { color: inherit; opacity: .75; }
.total-price { font: 800 clamp(40px, 6vw, 58px)/1 var(--display); font-variant-numeric: tabular-nums; }
.total-price small { font-size: .32em; font-weight: 700; }
.total ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.total li { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.total .btn { justify-content: center; color: var(--fg); background: var(--bg); }
.total .fine { font-size: 12.5px; opacity: .8; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.plan { display: grid; gap: 14px; align-content: start; padding: 26px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.plan.featured { box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); }
.plan-price { font: 800 34px/1 var(--display); font-variant-numeric: tabular-nums; }
.plan-price small { font: 600 13px var(--body); color: var(--muted); }
.plan .btn { justify-content: center; }
.plan-badge { justify-self: start; padding: 4px 10px; border-radius: 999px; font: 700 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px; font: 700 16px var(--display); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 22px/1 var(--mono); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); max-width: 70ch; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.contact-aside { display: grid; gap: 18px; }
.contact-aside .card { display: grid; gap: 6px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); }
.contact-aside .card b { font: 700 14px var(--display); }
.contact-aside .card span { color: var(--muted); font-size: 14.5px; }
form { display: grid; gap: 14px; padding: clamp(20px, 3vw, 30px); border-radius: 26px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
form label { display: grid; gap: 6px; font-weight: 800; font-size: 14px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], input[type="number"], select, textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 0; border-radius: 12px; font: 500 15px var(--body); color: var(--fg); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--teal); }
.form-msg { padding: 14px 16px; border-radius: 14px; font-size: 14.5px; background: color-mix(in srgb, var(--teal) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 45%, transparent); }
.form-msg pre { margin: 10px 0 0; padding: 10px; border-radius: 10px; font: 400 12.5px/1.5 var(--mono); white-space: pre-wrap; background: var(--bg-2); }

/* Pied de page */
footer { padding-block: 40px calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--fg); }

@media (max-width: 980px) {
  .hero .wrap, .sim, .contact { grid-template-columns: 1fr; }
  .steps, .flow-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .total { position: static; }
}
@media (max-width: 760px) {
  .nav, .top .btn { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .top[data-open] .nav { display: grid; position: absolute; top: 100%; left: 0; right: 0; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); background: var(--bg); border-bottom: 1px solid var(--line); }
  .offers, .features, .plans, .steps, .flow-legend, .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 460px) { .demo-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ── Ajouts multipage ───────────────────────────────────────────────────────────────────── */
.nav a[aria-current="page"] { color: var(--fg); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.mock-note { font: 600 11.5px var(--mono); text-align: center; padding: 6px 16px; color: var(--muted); background: var(--bg-2); border-bottom: 1px solid var(--line); }
.page-hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 92px) clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; right: -180px; top: -220px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 65%); pointer-events: none; animation: float 12s ease-in-out infinite; }
.page-hero .wrap { position: relative; display: grid; gap: 16px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; max-width: 18ch; }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.crumbs { font: 600 12px var(--mono); color: var(--muted); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--fg); }
@keyframes float { 50% { transform: translate(-40px, 30px) scale(1.08); } }

/* Apparition au défilement (seulement si JS actif et mouvement autorisé) */
.js-anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js-anim .reveal.in { opacity: 1; transform: none; }
.js-anim .reveal-d1 { transition-delay: .08s; } .js-anim .reveal-d2 { transition-delay: .16s; } .js-anim .reveal-d3 { transition-delay: .24s; }

/* Chiffres */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { display: grid; gap: 4px; padding: 22px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.stat b { font: 800 clamp(30px, 4vw, 44px)/1 var(--display); color: var(--accent); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 14px; }

/* Cartes génériques et grilles */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.card { display: grid; gap: 12px; align-content: start; padding: 24px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s, box-shadow .25s; }
a.card { text-decoration: none; }
a.card:hover, .card.hover:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 55%, transparent), var(--shadow); }
.card p { color: var(--muted); font-size: 14.5px; }
.more { font-weight: 800; color: var(--accent); text-decoration: none; font-size: 14.5px; }
.more::after { content: " →"; transition: margin .2s; } .more:hover::after { margin-left: 4px; }
.row-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.row-head .section-head { margin: 0; }

/* Actualités */
.news-card { overflow: hidden; padding: 0; cursor: pointer; text-align: left; border: 0; font: inherit; color: inherit; }
.news-cover { position: relative; height: 150px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 70%, var(--bg)), color-mix(in srgb, var(--c) 25%, var(--bg))); }
.news-cover svg { width: 64px; height: 64px; color: #fff; opacity: .9; transition: transform .4s; }
.news-card:hover .news-cover svg { transform: scale(1.12) rotate(-6deg); }
.news-cover::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 22px, rgb(255 255 255 / .06) 22px 23px); }
.news-body { display: grid; gap: 10px; padding: 20px 22px 24px; }
.news-meta { display: flex; flex-wrap: wrap; gap: 10px; font: 600 12px var(--mono); color: var(--muted); }
.chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font: 700 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--teal); background: color-mix(in srgb, var(--teal) 14%, transparent); }
.chip.amber { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; font: 800 14px var(--body); color: var(--muted); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: background .2s, color .2s; }
.filters button[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); box-shadow: none; }
.search { flex: 1 1 220px; max-width: 320px; min-height: 40px !important; border-radius: 999px !important; }
dialog { width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 26px; color: var(--fg); background: var(--surface); box-shadow: var(--shadow); }
dialog::backdrop { background: rgb(0 0 0 / .55); backdrop-filter: blur(4px); }
dialog[open] { animation: pop .3s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.dlg-body { display: grid; gap: 14px; padding: 26px clamp(20px, 4vw, 34px) 30px; }
.dlg-body p { color: var(--muted); }
.dlg-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 12px; font-size: 22px; color: #fff; background: rgb(0 0 0 / .3); cursor: pointer; }

/* Réalisations */
.case { position: relative; overflow: hidden; }
.case-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.case-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: var(--accent-ink); background: var(--accent); }
.case-ico svg { width: 26px; height: 26px; }
.case dl { display: grid; gap: 10px; margin: 0; }
.case dt { font: 700 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.case dd { margin: 0; color: var(--muted); font-size: 14.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 4px 9px; border-radius: 8px; font: 600 11.5px var(--mono); color: var(--fg); background: var(--bg-2); }
.case[hidden] { display: none; }

/* À propos */
.values .card h3 { display: flex; align-items: center; gap: 10px; }
.timeline { position: relative; display: grid; gap: 22px; margin: 0; padding: 0 0 0 30px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), var(--teal)); }
.timeline li { position: relative; display: grid; gap: 4px; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 3px var(--accent); }
.timeline b { font: 700 16px var(--display); }
.timeline span { color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.orbit { position: relative; aspect-ratio: 1; max-width: 420px; width: 100%; justify-self: center; }
/* Sur téléphone, les étiquettes qui tournent dépassaient du cercle : on laisse une marge autour. */
@media (max-width: 600px) { .orbit { width: calc(100% - 72px); margin-block: 24px; } }
.orbit .ring { position: absolute; inset: var(--i); border-radius: 50%; border: 1.5px dashed var(--line); animation: spin var(--d) linear infinite; }
.orbit .ring span { position: absolute; top: -18px; left: 50%; translate: -50% 0; padding: 6px 10px; border-radius: 10px; font: 700 12px var(--mono); white-space: nowrap; color: var(--fg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); animation: spin var(--d) linear infinite reverse; }
.orbit .core { position: absolute; inset: 36%; display: grid; place-items: center; border-radius: 50%; text-align: center; font: 800 15px/1.2 var(--display); color: var(--accent-ink); background: var(--accent); box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 50%, transparent); }
@keyframes spin { to { rotate: 360deg; } }

/* CTA */
.cta { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: 30px; color: var(--accent-ink); background: var(--accent); }
.cta h2 { max-width: 22ch; } .cta p { opacity: .85; margin-top: 10px; }
.cta .btn { color: var(--fg); background: var(--bg); }
.cta::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgb(255 255 255 / .12); animation: float 9s ease-in-out infinite; }

/* Simulateur de devis par étapes */
.wizard { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 22px; align-items: start; }
.wz { display: grid; gap: 22px; padding: clamp(20px, 3vw, 32px); border-radius: 26px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.wz-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: w; }
.wz-steps li { display: grid; gap: 6px; font: 700 11.5px var(--mono); color: var(--muted); counter-increment: w; }
.wz-steps li::before { content: ""; height: 5px; border-radius: 5px; background: var(--line); transition: background .3s; }
.wz-steps li[data-done]::before, .wz-steps li[aria-current="step"]::before { background: var(--accent); }
.wz-steps li[aria-current="step"] { color: var(--fg); }
.wz-panel { display: grid; gap: 18px; animation: slidein .35s ease; }
.wz-panel[hidden] { display: none; }
.wz-panel h2 { font-size: clamp(22px, 2.6vw, 28px); }
@keyframes slidein { from { opacity: 0; transform: translateX(24px); } }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice { position: relative; display: grid; gap: 6px; padding: 18px; border-radius: 18px; background: var(--bg-2); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: box-shadow .2s, transform .2s; }
.choice:hover { transform: translateY(-2px); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { box-shadow: inset 0 0 0 2px var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg-2)); }
.choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice b { font: 700 16px var(--display); } .choice small { color: var(--muted); font-size: 13.5px; } .choice em { font: 600 12.5px var(--mono); font-style: normal; color: var(--accent); }
.wz-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.recap { display: grid; gap: 4px; margin: 0; padding: 16px; border-radius: 16px; background: var(--bg-2); font-size: 14.5px; }
.recap div { display: flex; justify-content: space-between; gap: 12px; }
.recap dt { color: var(--muted); } .recap dd { margin: 0; font-weight: 700; text-align: right; }
.total .sub { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid rgb(0 0 0 / .15); font-weight: 800; font-variant-numeric: tabular-nums; }
.bump { animation: bump .35s ease; } @keyframes bump { 40% { transform: scale(1.06); } }

@media (max-width: 980px) {
  .stats, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .wizard, .cta { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .grid-3, .grid-2, .choices { grid-template-columns: 1fr; }
  .wz-steps li { font-size: 0; }
}
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }
@media print { .top, footer, .mock-note, .wz-nav, .page-hero::before { display: none !important; } body { background: #fff; color: #000; } }
[hidden] { display: none !important; }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); overflow-wrap: break-word; hyphens: manual; }
.total-price small { white-space: nowrap; }

/* ── Navigation : menu replié plus tôt (8 entrées) ─────────────────────────────────────────── */
@media (min-width: 1181px) { .nav-devis { display: none; } }
@media (max-width: 1180px) {
  .nav, .top .btn { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .top[data-open] .nav { display: grid; position: absolute; top: 100%; left: 0; right: 0; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); background: var(--bg); border-bottom: 1px solid var(--line); }
}

/* ── Studio audio ──────────────────────────────────────────────────────────────────────────── */
.studio { display: grid; gap: 10px; padding: 20px; border-radius: 26px; background: linear-gradient(160deg, color-mix(in srgb, var(--surface) 90%, var(--accent)), var(--surface)); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.studio-head { display: flex; justify-content: space-between; align-items: center; font: 600 12px var(--mono); color: var(--muted); }
.studio-head b { display: inline-flex; gap: 8px; align-items: center; color: var(--fg); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.studio[data-playing] .rec-dot { animation: blink .8s steps(2) infinite; }
.track { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: color-mix(in srgb, var(--bg) 55%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.track[data-on] { box-shadow: inset 0 0 0 2px var(--accent); }
.track button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--accent-ink); background: var(--accent); cursor: pointer; }
.track button svg { width: 18px; height: 18px; }
.track b { display: block; font: 700 14.5px var(--display); }
.track small { color: var(--muted); font-size: 12.5px; }
.bars { display: flex; align-items: center; gap: 2px; height: 30px; }
.bars i { width: 3px; height: var(--h); border-radius: 2px; background: color-mix(in srgb, var(--teal) 70%, transparent); transform-origin: center; }
.track[data-on] .bars i { animation: eq .9s ease-in-out infinite alternate; animation-delay: var(--dl); background: var(--accent); }
@keyframes eq { from { transform: scaleY(.3); } to { transform: scaleY(1.15); } }
.formats { display: flex; flex-wrap: wrap; gap: 8px; }
.formats span { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 10px; font: 600 12px var(--mono); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.formats span b { color: var(--accent); }

/* ── Présentation : téléphone IP + SVI + identification ────────────────────────────────────── */
.show { display: grid; gap: 18px; padding: clamp(16px, 2.5vw, 26px); border-radius: 30px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.show-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.show-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.show-steps button { display: grid; gap: 6px; width: 100%; padding: 0; border: 0; text-align: left; font: 700 11.5px var(--mono); color: var(--muted); background: none; cursor: pointer; }
.show-steps button::before { content: ""; height: 5px; border-radius: 5px; background: var(--line); }
.show-steps button[data-done]::before { background: color-mix(in srgb, var(--accent) 60%, transparent); }
.show-steps button[aria-current="step"]::before { background: var(--accent); }
.show-steps button[aria-current="step"] { color: var(--fg); }
.show-stage { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.show-caption { display: grid; gap: 6px; padding: 16px 18px; border-radius: 18px; background: var(--bg-2); }
.show-caption b { font: 700 18px var(--display); }
.show-caption p { color: var(--muted); }
.show-ctrl { display: flex; gap: 8px; }
.show-ctrl button { min-height: 42px; padding: 0 14px; border: 0; border-radius: 12px; font: 800 14px var(--body); color: var(--fg); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.show-ctrl button.primary { color: var(--accent-ink); background: var(--accent); box-shadow: none; }

/* Téléphone IP de bureau */
.ipphone { position: relative; display: grid; gap: 12px; align-content: start; padding: 18px 16px 20px; border-radius: 26px 26px 34px 34px; background: linear-gradient(180deg, #1d2a30, #10181c); color: #e9f2ef; box-shadow: 0 20px 40px rgb(0 0 0 / .35), inset 0 1px 0 rgb(255 255 255 / .08); }
.ip-top { display: flex; justify-content: space-between; align-items: center; font: 700 11px var(--mono); letter-spacing: .12em; color: #8fa8a3; }
.ip-led { width: 12px; height: 12px; border-radius: 50%; background: #34444a; }
.ipphone[data-led="ring"] .ip-led { background: #ffb43f; box-shadow: 0 0 12px #ffb43f; animation: blink .5s steps(2) infinite; }
.ipphone[data-led="on"] .ip-led { background: #35d0c3; box-shadow: 0 0 12px #35d0c3; }
.ipphone[data-led="ring"] { animation: shake .5s ease-in-out infinite; }
@keyframes shake { 25% { transform: rotate(-.8deg); } 75% { transform: rotate(.8deg); } }
.ip-screen { display: grid; gap: 4px; min-height: 118px; padding: 12px 14px; border-radius: 10px; font: 600 12.5px/1.4 var(--mono); color: #0b1f26; background: linear-gradient(180deg, #cfeee6, #a9dccf); box-shadow: inset 0 2px 8px rgb(0 0 0 / .25); }
.ip-screen .l1 { display: flex; justify-content: space-between; font-size: 10.5px; opacity: .7; }
.ip-screen .l2 { font: 800 15px var(--display); }
.ip-screen .l3 { font-size: 12px; }
.ip-soft { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ip-soft span { padding: 5px 0; border-radius: 6px; text-align: center; font: 700 9.5px var(--mono); color: #8fa8a3; background: #24343a; }
.ip-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ip-keys span { display: grid; place-items: center; height: 30px; border-radius: 8px; font: 800 14px var(--display); background: #24343a; transition: background .15s, transform .15s; }
.ip-keys span.hit { background: #ffb43f; color: #2a1a00; transform: scale(.92); }
.ip-model { text-align: center; font: 700 10px var(--mono); letter-spacing: .2em; color: #5c7672; }

/* SVI */
.svi { display: grid; gap: 12px; align-content: start; padding: 18px; border-radius: 22px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.svi-title { display: flex; justify-content: space-between; align-items: center; font: 700 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.svi-title button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 10px; font: 800 12.5px var(--body); color: var(--accent-ink); background: var(--accent); cursor: pointer; }
.bubble { position: relative; padding: 16px 18px; border-radius: 18px 18px 18px 4px; font-size: 15.5px; line-height: 1.55; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); animation: pop .35s ease; }
.bubble.key { justify-self: end; border-radius: 18px 18px 4px 18px; font: 800 15px var(--display); color: var(--accent-ink); background: var(--accent); box-shadow: none; }
.svi-route { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.svi-route li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 12px; font-size: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, background .2s; }
.svi-route li[data-on] { box-shadow: inset 0 0 0 2px var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.svi-route kbd { font: 800 13px var(--mono); color: var(--accent); }

/* Fiche client */
.crm { display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: 22px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.crm-search { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font: 600 12.5px var(--mono); background: var(--surface); }
.crm-search .spin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--accent); animation: spin .7s linear infinite; }
.crm-search .ok { color: var(--teal); font-weight: 800; }
.crm-card { display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); animation: pop .4s ease; }
.crm-who { display: flex; align-items: center; gap: 12px; }
.avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font: 800 16px var(--display); color: var(--accent-ink); background: var(--accent); }
.crm-who b { display: block; font: 700 16px var(--display); }
.crm-who small { color: var(--muted); font: 600 12px var(--mono); }
.crm-card dl { display: grid; gap: 6px; margin: 0; font-size: 13.5px; }
.crm-card dl div { display: flex; justify-content: space-between; gap: 10px; }
.crm-card dt { color: var(--muted); } .crm-card dd { margin: 0; font-weight: 700; text-align: right; }
.crm-empty { display: grid; place-items: center; min-height: 160px; padding: 16px; border-radius: 18px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); font-size: 14px; }

.devices .card { text-align: left; }
.device-art { display: grid; place-items: center; height: 120px; border-radius: 16px; background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--teal) 25%, transparent), transparent 70%), var(--bg-2); }
.device-art svg { width: 70px; height: 70px; color: var(--teal); transition: transform .4s; }
.card:hover .device-art svg { transform: translateY(-6px) rotate(-4deg); }
.possible { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.possible div { display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.possible div:hover { border-color: var(--accent); transform: translateY(-2px); }
.possible b { font: 700 15px var(--display); } .possible span { color: var(--muted); font-size: 14px; }
.big-claim { font: 800 clamp(34px, 6vw, 72px)/1.05 var(--display); background: linear-gradient(90deg, var(--accent), var(--teal), var(--accent)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: -200% 0; } }

@media (max-width: 980px) { .show-stage { grid-template-columns: 1fr 1fr; } .show-stage .crm { grid-column: 1 / -1; } }
@media (max-width: 640px) { .show-stage { grid-template-columns: 1fr; } .show-steps button { font-size: 0; } }

/* ── V3 : animations globales ──────────────────────────────────────────────────────────────── */
body { animation: pagein .5s ease both; }
@keyframes pagein { from { opacity: 0; } }
.progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 70; height: 3px; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--teal), var(--accent)); pointer-events: none; }
.to-top { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 55; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; color: var(--accent-ink); background: var(--accent); box-shadow: var(--shadow); cursor: pointer; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.rotate { display: inline-block; min-width: 1ch; }
.rotate::after { content: ""; display: inline-block; width: .08em; height: .9em; margin-left: .06em; vertical-align: -.08em; background: currentColor; animation: blink 1s steps(2) infinite; }
.tilt { transform-style: preserve-3d; transition: transform .25s ease, box-shadow .25s; }
.timeline::before { transform-origin: top; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.js-anim .timeline.reveal::before { transform: scaleY(0); }
.js-anim .timeline.reveal.in::before { transform: none; }
.plan.featured { position: relative; isolation: isolate; }
.plan.featured::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 26px; background: conic-gradient(from var(--a, 0deg), var(--accent), var(--teal), var(--accent)); animation: turn 6s linear infinite; }
.plan.featured::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 24px; background: var(--surface); }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes turn { to { --a: 360deg; } }
.sim-tag { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 999px; font: 700 11.5px var(--mono); color: var(--muted); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.sim-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); animation: blink 1.6s steps(2) infinite; }

/* ── Tableau de bord en direct (accueil) ───────────────────────────────────────────────────── */
.live { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; }
.live-main { display: grid; gap: 16px; padding: clamp(18px, 2.5vw, 26px); border-radius: 26px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { display: grid; gap: 2px; padding: 14px; border-radius: 16px; background: var(--bg-2); }
.kpi span { font: 600 11.5px var(--mono); color: var(--muted); }
.kpi b { font: 800 28px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.kpi small { font: 600 11.5px var(--mono); color: var(--muted); }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.chart-head b { font: 700 15px var(--display); } .chart-head span { font: 600 12px var(--mono); color: var(--muted); }
.chart { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: 6px; height: 170px; padding-bottom: 22px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0 36px, color-mix(in srgb, var(--line) 60%, transparent) 36px 37px); background-position: 0 -22px; }
.bar { position: relative; height: var(--h); min-height: 4px; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--teal) 75%, transparent); transition: height .8s cubic-bezier(.2,.7,.2,1), background .2s; cursor: default; }
.bar.now { background: var(--accent); }
.bar:hover, .bar:focus-visible { background: color-mix(in srgb, var(--teal) 100%, var(--fg) 10%); }
.bar::after { content: attr(data-h); position: absolute; left: 50%; bottom: -20px; translate: -50% 0; font: 600 10.5px var(--mono); color: var(--muted); white-space: nowrap; }
.tip { position: absolute; z-index: 5; padding: 8px 10px; border-radius: 10px; font: 600 12px/1.4 var(--mono); color: var(--fg); background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); pointer-events: none; white-space: nowrap; translate: -50% calc(-100% - 8px); }
.feed { display: grid; gap: 8px; align-content: start; max-height: 420px; overflow: hidden; padding: clamp(18px, 2.5vw, 22px); border-radius: 26px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }
.feed-item { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; padding: 10px 12px; border-radius: 14px; background: var(--bg-2); animation: feedin .45s ease; }
.feed-item i { grid-row: span 2; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--teal); }
.feed-item.wait i { background: var(--accent); } .feed-item.lost i { background: var(--muted); }
.feed-item b { font-size: 14px; } .feed-item small { font: 600 11.5px var(--mono); color: var(--muted); }
@keyframes feedin { from { opacity: 0; transform: translateY(-12px); } }

/* ── Simulateur de file d'attente (services) ───────────────────────────────────────────────── */
.queue { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.queue-viz { display: grid; gap: 16px; padding: clamp(18px, 2.5vw, 26px); border-radius: 26px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.lane { display: grid; gap: 8px; }
.lane > span { font: 700 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dots { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; }
.dots i { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); animation: pop .3s ease; }
.seats { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 6px; }
.seats i { display: grid; place-items: center; height: 34px; border-radius: 10px; font: 700 10px var(--mono); color: var(--muted); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); transition: background .4s, color .4s; }
.seats i.busy { color: var(--accent-ink); background: var(--teal); box-shadow: none; }
.q-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.q-results div { display: grid; gap: 2px; padding: 14px; border-radius: 16px; background: var(--bg-2); }
.q-results b { font: 800 24px var(--display); font-variant-numeric: tabular-nums; }
.q-results span { font-size: 12.5px; color: var(--muted); }
.meter { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--w); border-radius: 8px; background: var(--teal); transition: width .6s ease, background .3s; }
.meter i.warn { background: var(--accent); } .meter i.bad { background: var(--red); }
.advice { padding: 14px 16px; border-radius: 14px; font-size: 14.5px; background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }

/* ── Composer un menu vocal (présentation) ─────────────────────────────────────────────────── */
.builder { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: background .2s, box-shadow .2s; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label:has(input:checked) { color: var(--accent-ink); background: var(--accent); box-shadow: none; }
.chips label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.tree { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.tree-root { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; color: var(--accent-ink); background: var(--accent); font: 700 15px var(--display); }
.tree-branch { position: relative; display: grid; gap: 8px; margin: 0 0 0 22px; padding: 14px 0 0 22px; list-style: none; border-left: 2px solid var(--line); }
.tree-branch li { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); animation: feedin .35s ease both; animation-delay: calc(var(--n) * 60ms); }
.tree-branch li::before { content: ""; position: absolute; left: -24px; top: 50%; width: 22px; border-top: 2px solid var(--line); }
.tree-branch kbd { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 9px; font: 800 13px var(--mono); color: var(--accent-ink); background: var(--teal); }
.tree-branch li.special kbd { background: var(--muted); }
.script { padding: 16px 18px; border-radius: 16px; font: 500 14.5px/1.6 var(--body); background: var(--bg-2); white-space: pre-wrap; }

/* Mini-parcours sur les réalisations */
.mini-flow { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mini-flow li { padding: 5px 9px; border-radius: 8px; font: 600 11.5px var(--mono); color: var(--muted); background: var(--bg-2); animation: lit 4s infinite; animation-delay: calc(var(--n) * 1s); }
.case:not(:hover) .mini-flow li { animation-play-state: paused; }
@keyframes lit { 0%, 20% { color: var(--accent-ink); background: var(--accent); } 25%, 100% { color: var(--muted); background: var(--bg-2); } }

@media (max-width: 980px) { .live, .queue, .builder { grid-template-columns: 1fr; } .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .q-results { grid-template-columns: 1fr; } .chart { gap: 3px; } .bar::after { font-size: 9px; } .bar:nth-child(even)::after { content: none; } }
@media (prefers-reduced-motion: reduce) { .progress { display: none; } }
#live-chart { margin-top: 44px; }
.to-top { bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 16px)); }

/* ── Maintenance ───────────────────────────────────────────────────────────────────────────── */
@media (min-width: 1181px) { .nav-home { display: none; } }
.monitor { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; }
.board { display: grid; gap: 12px; padding: clamp(18px, 2.5vw, 24px); border-radius: 26px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.board-head b { display: inline-flex; align-items: center; gap: 10px; font: 700 16px var(--display); }
.board-head small { font: 600 12px var(--mono); color: var(--muted); }
.overall { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font: 700 12.5px var(--mono); color: var(--teal); background: color-mix(in srgb, var(--teal) 14%, transparent); transition: color .3s, background .3s; }
.overall.warn { color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.svc-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.svc-row { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); transition: box-shadow .3s; }
.svc-row i { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 color-mix(in srgb, var(--teal) 60%, transparent); animation: ping 2.4s ease-out infinite; }
.svc-row.warn { box-shadow: inset 0 0 0 1.5px var(--accent); } .svc-row.warn i { background: var(--accent); animation: blink .6s steps(2) infinite; }
.svc-row b { font-size: 14px; font-weight: 700; } .svc-row span, .svc-row em { font: 600 12px var(--mono); font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--teal) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.spark-wrap { position: relative; }
.spark { display: block; width: 100%; height: 90px; overflow: visible; }
.spark .area { fill: color-mix(in srgb, var(--teal) 18%, transparent); }
.spark .line { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark .thr { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 4 4; }
.spark .dot { fill: var(--teal); stroke: var(--surface); stroke-width: 2; }
.spark .hl { stroke: var(--muted); stroke-width: 1; }
.log { display: grid; gap: 8px; align-content: start; padding: clamp(18px, 2.5vw, 22px); border-radius: 26px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); max-height: 470px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.log h3 { font-size: 15px; margin-bottom: 4px; }
.bill { display: inline-flex; align-items: center; gap: 10px; }
.bill .seg { margin: 0; }
.save { padding: 4px 10px; border-radius: 999px; font: 700 12px var(--mono); color: var(--teal); background: color-mix(in srgb, var(--teal) 14%, transparent); }
.plan .was { font: 600 13px var(--mono); color: var(--muted); text-decoration: line-through; min-height: 1.2em; }
.plan.free .plan-price { color: var(--teal); }
.compare-wrap { overflow-x: auto; margin-top: 32px; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 12px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font: 700 14px var(--display); background: var(--bg-2); }
.compare tbody tr { transition: background .2s; } .compare tbody tr:hover { background: color-mix(in srgb, var(--teal) 6%, transparent); }
.compare .y { color: var(--teal); font-weight: 800; } .compare .n { color: var(--muted); }
.compare td:nth-child(4), .compare th:nth-child(4) { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.cov { display: grid; gap: 16px; padding: clamp(18px, 2.5vw, 26px); border-radius: 26px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.cov-ctrl { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.cov-ctrl .field { gap: 6px; }
.cov-grid { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 3px; font: 600 10.5px var(--mono); color: var(--muted); }
.cov-grid .c { aspect-ratio: 1; min-height: 10px; border-radius: 3px; background: color-mix(in srgb, var(--teal) 12%, transparent); transition: background .35s ease; transition-delay: calc(var(--n) * 2ms); }
.cov-grid .c.m { background: var(--teal); } .cov-grid .c.a { background: var(--accent); } .cov-grid .c.o { background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.cov-grid .h { text-align: center; } .cov-grid .d { align-self: center; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; }
.cov-sum { display: flex; flex-wrap: wrap; gap: 10px; }
.cov-sum div { flex: 1 1 160px; display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); }
.cov-sum b { font: 800 22px var(--display); font-variant-numeric: tabular-nums; } .cov-sum span { font-size: 12.5px; color: var(--muted); }
.astreinte { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.astr-card { position: relative; overflow: hidden; display: grid; gap: 12px; align-content: start; padding: 26px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.astr-card.night { color: #e9f2ef; background: linear-gradient(160deg, #10232b, #0b1a20); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); }
.astr-card.night p, .astr-card.night .ticks li { color: #9db8b2; } .astr-card.night .ticks strong { color: #e9f2ef; }
.astr-card.night::after { content: ""; position: absolute; right: 26px; top: 22px; width: 54px; height: 54px; border-radius: 50%; box-shadow: -12px 8px 0 0 #ffb43f; transform: rotate(-20deg); opacity: .9; }
.stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; animation: blink 2.4s steps(2) infinite; animation-delay: var(--d); }
.disabled { opacity: .45; pointer-events: none; }
@media (max-width: 980px) { .monitor, .astreinte { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cov-grid { grid-template-columns: 26px repeat(24, minmax(0, 1fr)); gap: 2px; } .cov-grid .h:nth-child(odd):not(:first-child) { visibility: hidden; } }
#offres-maintenance .plan { display: flex; flex-direction: column; gap: 14px; }
#offres-maintenance .plan .btn { margin-top: auto; }
#offres-maintenance .plan .plan-badge { align-self: flex-start; }

/* ── V5 : en-tête à menus déroulants ───────────────────────────────────────────────────────── */
.nav { align-items: center; }
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 10px; font: 700 14.5px var(--body); color: var(--muted); background: none; cursor: pointer; }
.dd-btn::after { content: ""; width: 7px; height: 7px; margin-top: -3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.dd-btn:hover, .dd.cur > .dd-btn { color: var(--fg); background: var(--line); }
.dd.cur > .dd-btn { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.dd-panel { position: absolute; top: calc(100% + 8px); left: -8px; z-index: 60; display: grid; gap: 2px; min-width: 290px; padding: 8px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.dd-panel::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.dd:hover > .dd-panel, .dd:focus-within > .dd-panel, .dd[data-open] > .dd-panel { opacity: 1; visibility: visible; transform: none; }
.dd:hover > .dd-btn::after, .dd[data-open] > .dd-btn::after { transform: rotate(225deg); margin-top: 3px; }
.nav .dd-panel a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; color: var(--fg); }
.nav .dd-panel a small { font-weight: 500; font-size: 12.5px; color: var(--muted); }
.nav .dd-panel a:hover, .nav .dd-panel a[aria-current="page"] { background: color-mix(in srgb, var(--teal) 10%, transparent); }
.nav-mobile { display: none !important; }
.theme-btn { display: none !important; } /* bouton clair / sombre retiré : thème sombre pour tous */
.top .btn-ghost { box-shadow: inset 0 0 0 1.5px var(--line); }
@media (max-width: 1180px) {
  .menu-btn { margin-left: auto; }
  .top[data-open] .nav { max-height: calc(100dvh - 80px); overflow: auto; gap: 4px; }
  .dd-btn { width: 100%; justify-content: space-between; padding: 12px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); pointer-events: none; }
  .dd-btn::after { display: none; }
  .dd-panel { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; padding: 0 0 8px; box-shadow: none; background: none; }
  .nav-mobile { display: block !important; }
}

/* Pied de page riche */
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.foot h4 { margin: 0 0 12px; font: 700 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg); }
.foot ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.foot p { color: var(--muted); font-size: 14px; max-width: 36ch; }
.news-form { display: flex; gap: 8px; margin-top: 14px; max-width: 360px; }
.news-form input { flex: 1; min-height: 42px !important; }
.news-form .btn { min-height: 42px; padding: 0 16px; }
footer .wrap.foot-bottom { padding-top: 20px; }
.linkbtn { padding: 0; border: 0; font: inherit; color: inherit; background: none; cursor: pointer; }
.linkbtn:hover { color: var(--fg); }

/* Bandeau cookies et rappel */
.cookie { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 80; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; max-width: 920px; margin: 0 auto; padding: 18px 20px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); animation: feedin .4s ease; }
.cookie p { font-size: 14px; color: var(--muted); } .cookie b { color: var(--fg); }
.cookie .row { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.cookie-prefs { display: grid; gap: 8px; grid-column: 1 / -1; }
.callback-fab { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 16px)); z-index: 55; display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 18px 0 8px; border: 0; border-radius: 999px; font: 800 14.5px var(--body); color: var(--fg); background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); cursor: pointer; transition: transform .2s; }
.callback-fab:hover { transform: translateY(-2px); }
.callback-fab span.ic { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--accent-ink); background: var(--accent); }
.callback-fab span.ic::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent); animation: ring 2.4s ease-out infinite; }
.callback-fab svg { width: 18px; height: 18px; }
@media (max-width: 520px) { .callback-fab .lbl { display: none; } .callback-fab { padding: 0 7px; } .cookie { grid-template-columns: 1fr; } }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.slots label { display: grid; place-items: center; min-height: 42px; padding: 0 10px; border-radius: 12px; font-weight: 700; font-size: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; text-align: center; }
.slots input { position: absolute; opacity: 0; pointer-events: none; }
.slots label:has(input:checked) { color: var(--accent-ink); background: var(--accent); box-shadow: none; }
.slots label:has(input:disabled) { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.slots label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.toast { position: fixed; left: 50%; bottom: 90px; z-index: 90; translate: -50% 0; padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 14.5px; color: var(--accent-ink); background: var(--teal); box-shadow: var(--shadow); animation: feedin .3s ease; max-width: calc(100vw - 32px); }

/* Accès rapides (accueil) */
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quick a { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; font-weight: 800; font-size: 14.5px; text-decoration: none; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s, box-shadow .2s; }
.quick a:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--teal); }
.quick small { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); }
@media (max-width: 980px) { .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .quick, .foot { grid-template-columns: 1fr; } }

/* ── Espace client (démo) ──────────────────────────────────────────────────────────────────── */
.app { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 640px; border-radius: 28px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.app-side { display: grid; align-content: start; gap: 4px; padding: 18px 12px; background: var(--bg-2); border-right: 1px solid var(--line); }
.app-side .who { display: flex; align-items: center; gap: 10px; padding: 8px 10px 16px; }
.app-side .who b { display: block; font: 700 14px var(--display); } .app-side .who small { font: 600 11.5px var(--mono); color: var(--muted); }
.app-tab { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: 12px; font: 700 14px var(--body); color: var(--muted); background: none; cursor: pointer; text-align: left; }
.app-tab svg { width: 18px; height: 18px; flex: none; }
.app-tab:hover { color: var(--fg); background: var(--line); }
.app-tab[aria-selected="true"] { color: var(--accent-ink); background: var(--accent); }
.app-tab .cnt { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; font: 700 11px var(--mono); text-align: center; color: #fff; background: var(--red); }
.app-main { display: grid; align-content: start; gap: 18px; padding: clamp(18px, 3vw, 30px); min-width: 0; }
.app-main h2 { font-size: 24px; }
.app-panel { display: grid; gap: 16px; animation: slidein .3s ease; }
.app-panel[hidden] { display: none; }
.tbl-wrap { overflow-x: auto; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.tbl { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl thead th { font: 700 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); }
.tbl tr:last-child td { border-bottom: 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font: 700 11.5px var(--mono); color: var(--teal); background: color-mix(in srgb, var(--teal) 14%, transparent); }
.badge.amber { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.badge.grey { color: var(--muted); background: var(--bg-2); }
.badge.red { color: var(--red); background: color-mix(in srgb, var(--red) 14%, transparent); }
.sys-box.sys-bad { box-shadow: inset 0 0 0 1.5px var(--red); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; }
.switch input { position: absolute; opacity: 0; }
.switch i { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--line); transition: background .2s; flex: none; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .2s; }
.switch input:checked + i { background: var(--teal); } .switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 3px solid var(--accent); outline-offset: 2px; }
.vm { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--bg-2); }
.vm.unread { box-shadow: inset 3px 0 0 var(--accent); }
.vm button.play { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; color: var(--accent-ink); background: var(--accent); cursor: pointer; }
.vm p { font-size: 14px; color: var(--muted); } .vm b { font-size: 14.5px; }
.hours { display: grid; gap: 8px; }
.hour-row { display: grid; grid-template-columns: 110px auto 1fr; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--bg-2); }
.hour-row input[type="time"] { min-height: 38px; padding: 4px 8px; border: 0; border-radius: 10px; font: 600 14px var(--mono); color: var(--fg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.hour-row .times { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.hour-row.off .times { opacity: .35; pointer-events: none; }
.login { display: grid; place-items: center; min-height: 560px; padding: 24px; border-radius: 28px; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--teal) 20%, transparent), transparent 60%), var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.login form { width: min(400px, 100%); }
@media (max-width: 860px) { .app { grid-template-columns: 1fr; } .app-side { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); } .app-side .who { display: none; } .hour-row { grid-template-columns: 1fr auto; } .hour-row .times { grid-column: 1 / -1; } }

/* ── Assistance ────────────────────────────────────────────────────────────────────────────── */
.kb-search { position: relative; max-width: 640px; }
.kb-search input { min-height: 56px !important; padding-left: 50px !important; border-radius: 999px !important; font-size: 16px !important; box-shadow: var(--shadow), inset 0 0 0 1px var(--line) !important; background: var(--surface) !important; }
.kb-search svg { position: absolute; left: 18px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--muted); }
.kb { display: grid; gap: 10px; }
.kb details { border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.kb summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; font-weight: 800; }
.kb summary::-webkit-details-marker { display: none; }
.kb summary .chip { margin-left: auto; flex: none; }
.kb ol { margin: 0; padding: 0 22px 18px 40px; color: var(--muted); display: grid; gap: 6px; font-size: 14.5px; }
.kb mark { color: inherit; background: color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 3px; }
.checks { display: grid; gap: 8px; }
.check { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); }
.check .st { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 800; background: var(--line); color: var(--muted); }
.check.ok .st { color: var(--accent-ink); background: var(--teal); } .check.ko .st { color: #fff; background: var(--red); } .check.wait .st { background: var(--accent); color: var(--accent-ink); }
.check.run .st { border: 3px solid var(--line); border-top-color: var(--accent); background: none; animation: spin .8s linear infinite; }
.check b { font-size: 14.5px; } .check small { display: block; font-size: 13px; color: var(--muted); }
.check .btn { min-height: 36px; padding: 0 12px; font-size: 13px; }
.level { width: 120px; height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.level i { display: block; height: 100%; width: 0; background: var(--teal); transition: width .08s; }
.uptime { display: grid; grid-template-columns: repeat(90, minmax(0, 1fr)); gap: 2px; height: 28px; }
.uptime i { border-radius: 2px; background: var(--teal); } .uptime i.w { background: var(--accent); }
.status-row { display: grid; gap: 8px; padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.status-row header { display: flex; justify-content: space-between; gap: 10px; font-weight: 800; font-size: 14.5px; }
.status-row header span { font: 600 12px var(--mono); color: var(--teal); }
.gloss { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; margin: 0; }
.gloss div { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); }
.gloss dt { font: 800 14px var(--mono); color: var(--accent); } .gloss dd { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

/* Rendez-vous */
.booking { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.days label { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.days label small { font: 700 11px var(--mono); text-transform: uppercase; color: var(--muted); } .days label b { font: 800 20px var(--display); }
.days input { position: absolute; opacity: 0; pointer-events: none; }
.days label:has(input:checked) { color: var(--accent-ink); background: var(--accent); box-shadow: none; } .days label:has(input:checked) small { color: inherit; }
.days label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 860px) { .booking { grid-template-columns: 1fr; } }

/* Économies */
.save-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 22px; align-items: center; }
.hbars { display: grid; gap: 14px; }
.hbar { display: grid; gap: 6px; } .hbar span { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.hbar div { height: 18px; border-radius: 0 6px 6px 0; background: var(--line); overflow: hidden; }
.hbar i { display: block; height: 100%; width: var(--w); border-radius: 0 6px 6px 0; background: var(--muted); transition: width .7s cubic-bezier(.2,.7,.2,1); }
.hbar.grd i { background: var(--teal); }
.save-big { font: 800 clamp(30px, 4.5vw, 48px)/1 var(--display); color: var(--teal); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .save-wrap { grid-template-columns: 1fr; } }

/* Pages légales */
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: start; }
.legal nav { position: sticky; top: 96px; display: grid; gap: 4px; }
.legal nav a { padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; }
.legal nav a:hover { color: var(--fg); background: var(--line); }
.legal article { display: grid; gap: 14px; max-width: 75ch; }
.legal article h2 { font-size: 22px; margin-top: 18px; scroll-margin-top: 96px; }
.legal article p, .legal article li { color: var(--muted); }
.legal mark { padding: 0 4px; border-radius: 4px; color: var(--fg); background: color-mix(in srgb, var(--accent) 28%, transparent); }
.legal .note { padding: 14px 16px; border-radius: 14px; font-size: 14px; background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .legal nav { position: static; grid-auto-flow: column; overflow-x: auto; } }
.rotate { display: inline; }
/* Titre de l'accueil : le mot animé a sa propre ligne, ajustée pour ne jamais passer sur deux lignes
   (la hauteur du titre ne bouge plus pendant l'animation). */
.rotate-line { display: block; white-space: nowrap; }
.rotate-line .rotate { display: inline-block; }
/* Titre de l'accueil : le texte jaune défile en continu sur sa ligne, sous « Votre standard
   téléphonique » (hauteur du titre fixe ; animation arrêtée si l'appareil demande moins de mouvement). */
.title-scroll { display: block; overflow: hidden; color: var(--accent); white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 92%, transparent); }
.title-scroll-track { display: inline-flex; width: max-content; animation: title-scroll 16s linear infinite; }
.title-scroll-track span::after { content: "·"; margin: 0 .4em; opacity: .55; }
.title-scroll:hover .title-scroll-track { animation-play-state: paused; }
@keyframes title-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .title-scroll-track { animation: none; } .title-scroll { -webkit-mask-image: none; mask-image: none; } }
@media (max-width: 420px) { .brand { font-size: 15px; gap: 8px; } .brand-mark { width: 34px; height: 34px; } .brand .logo { height: 32px; } .theme-btn { width: 40px; height: 40px; } }

/* ── Système de tickets ────────────────────────────────────────────────────────────────────── */
.tk-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 16px; align-items: start; }
.tk-list { display: grid; gap: 8px; }
.tk-item { display: grid; gap: 6px; width: 100%; padding: 14px; border: 0; border-radius: 16px; text-align: left; font: inherit; color: inherit; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .2s, transform .2s; }
.tk-item:hover { transform: translateY(-2px); }
.tk-item[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
.tk-item .top-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 700 12px var(--mono); color: var(--muted); }
.tk-item b { font-size: 14.5px; }
.tk-item .unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.tk-detail { display: grid; gap: 14px; padding: clamp(16px, 2.5vw, 22px); border-radius: 20px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.tk-head { display: grid; gap: 8px; }
.tk-head h3 { font-size: 20px; }
.tk-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.st-nouveau { color: #7d8cff !important; background: color-mix(in srgb, #7d8cff 16%, transparent) !important; }
.st-pris { color: var(--accent) !important; background: color-mix(in srgb, var(--accent) 16%, transparent) !important; }
.st-attente { color: #e0559b !important; background: color-mix(in srgb, #e0559b 16%, transparent) !important; }
.st-resolu, .st-clos { color: var(--teal) !important; background: color-mix(in srgb, var(--teal) 16%, transparent) !important; }
.pr-Urgente { color: #fff !important; background: var(--red) !important; } .pr-Haute { color: var(--red) !important; background: color-mix(in srgb, var(--red) 14%, transparent) !important; }
.stepper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.stepper li { display: grid; gap: 6px; font: 700 11.5px var(--mono); color: var(--muted); }
.stepper li::before { content: ""; height: 6px; border-radius: 6px; background: var(--line); transition: background .4s; }
.stepper li.done::before { background: var(--teal); } .stepper li.now::before { background: var(--accent); animation: blink 1.2s steps(2) infinite; } .stepper li.now, .stepper li.done { color: var(--fg); }
.sla { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--surface); font-size: 13.5px; }
.sla b { font-weight: 800; } .sla.late { box-shadow: inset 0 0 0 1.5px var(--red); } .sla.late b { color: var(--red); } .sla.ok b { color: var(--teal); }
.sla .meter i.bad { background: var(--red); }
.thread { display: grid; gap: 10px; max-height: 420px; overflow: auto; padding: 4px; }
.msg { display: grid; gap: 4px; max-width: 86%; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; animation: feedin .3s ease; }
.msg.me { justify-self: end; border-radius: 16px 16px 4px 16px; background: color-mix(in srgb, var(--teal) 14%, var(--surface)); }
.msg.note { justify-self: stretch; max-width: none; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.msg small { font: 600 11.5px var(--mono); color: var(--muted); }
.msg .att { display: inline-flex; gap: 6px; align-items: center; justify-self: start; padding: 4px 8px; border-radius: 8px; font: 600 12px var(--mono); background: var(--bg-2); }
.sys { justify-self: center; padding: 4px 10px; border-radius: 999px; font: 600 11.5px var(--mono); color: var(--muted); background: var(--surface); text-align: center; }
.reply { display: grid; gap: 8px; }
.reply textarea { min-height: 80px; }
.reply .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.reply input[type="file"] { font-size: 13px; color: var(--muted); max-width: 100%; }
.stars { display: inline-flex; gap: 4px; }
.stars button { width: 40px; height: 40px; border: 0; border-radius: 10px; font-size: 22px; line-height: 1; color: var(--line); background: var(--surface); cursor: pointer; transition: transform .15s, color .15s; }
.stars button.on { color: var(--accent); } .stars button:hover { transform: scale(1.12); }
.tk-empty { display: grid; place-items: center; min-height: 260px; padding: 20px; border-radius: 20px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); }
@media (max-width: 900px) { .tk-layout { grid-template-columns: 1fr; } }

/* Console technicien */
.console-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.console-bar .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.console-bar select, .console-bar input { min-height: 40px !important; width: auto !important; }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.col { display: grid; align-content: start; gap: 8px; min-height: 360px; padding: 12px; border-radius: 20px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, background .2s; }
.col.over { box-shadow: inset 0 0 0 2px var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--bg-2)); }
.col h3 { display: flex; justify-content: space-between; align-items: center; font: 700 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 2px 4px 6px; }
.col h3 span { min-width: 24px; padding: 2px 8px; border-radius: 999px; text-align: center; color: var(--fg); background: var(--surface); }
.kcard { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); cursor: grab; transition: transform .15s, box-shadow .15s; text-align: left; font: inherit; color: inherit; border: 0; width: 100%; }
.kcard:hover { box-shadow: inset 0 0 0 1.5px var(--teal); }
.kcard.dragging { opacity: .5; transform: rotate(2deg); }
.kcard.late { box-shadow: inset 3px 0 0 var(--red), inset 0 0 0 1px var(--line); }
.kcard .top-row { display: flex; justify-content: space-between; gap: 6px; font: 700 11.5px var(--mono); color: var(--muted); }
.kcard b { font-size: 14px; line-height: 1.35; }
.kcard .foot-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.kcard .mini { width: 26px; height: 26px; font-size: 10px; }
.tk-dialog { width: min(820px, calc(100vw - 24px)); }
.tk-dialog .dlg-body { padding-top: 22px; }
.tech-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.tech-actions label { display: grid; gap: 4px; font-size: 13px; font-weight: 800; }
input[type="search"] { width: 100%; min-height: 46px; padding: 10px 14px; border: 0; border-radius: 12px; font: 500 15px var(--body); color: var(--fg); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
input[type="search"]:focus { outline: none; box-shadow: inset 0 0 0 2px var(--teal); }
form.reply, form.news-form { padding: 0; background: none; box-shadow: none; border-radius: 0; }
.tk-dialog .tk-head .top-row { padding-right: 48px; }
input[type="file"]::file-selector-button { margin-right: 10px; padding: 6px 12px; border: 0; border-radius: 10px; font: 700 13px var(--body); color: var(--fg); background: var(--line); cursor: pointer; }
.card > .chip, .card > .badge, .plan > .chip { justify-self: start; }

/* ── Espace membre et menu administrateur ──────────────────────────────────────────────────── */
.member-box { width: min(460px, 100%); }
.login .member-box form { width: auto; }
.member-box form, .adm-form { display: grid; gap: 16px; }
.member-box .filters { margin: 0; }
.member-box .filters button { flex: 1; }
.adm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.adm-head .filters { margin: 0; }
.tbl td small { color: var(--muted); }
.tbl td { vertical-align: top; }
.tbl .code { font: 700 15px var(--mono); letter-spacing: .08em; white-space: nowrap; }
.tbl .acts { display: flex; flex-wrap: wrap; gap: 6px; }
.tbl .acts .btn { min-height: 34px; padding: 0 12px; font-size: 13px; }
.tbl select { min-width: 140px; min-height: 36px; padding: 4px 10px; font-size: 13.5px; }
.tbl .btn { white-space: nowrap; min-height: 34px; padding: 0 12px; font-size: 13px; }
.tbl a { color: var(--teal); text-decoration: none; overflow-wrap: anywhere; }
.tbl a:hover { text-decoration: underline; }
a.app-tab { text-decoration: none; }
.tbl details summary { cursor: pointer; font-weight: 700; color: var(--teal); }
.tbl details p { margin: 6px 0 0; max-width: 46ch; white-space: pre-wrap; }
.pw-box { display: grid; gap: 6px; }
.pw-box b { font: 800 22px var(--mono); letter-spacing: .06em; }
.member-code { font: 800 30px var(--mono); letter-spacing: .12em; color: var(--accent); }
.hint { font-size: 13px; color: var(--muted); }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check-line input { margin-top: 4px; accent-color: var(--accent); }

/* ── Menu de navigation : sous-menus avec carte photo ─────────────────────────────────────── */
.dd-links { display: grid; gap: 2px; align-content: start; }
.dd-panel.has-feature { grid-template-columns: minmax(250px, 1fr) 230px; gap: 10px; min-width: 540px; }
.dd-right .dd-panel { left: auto; right: -8px; }
.nav .dd-feature { display: grid; grid-template-rows: 128px auto; padding: 0; overflow: hidden; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--fg); transition: transform .2s, box-shadow .2s; }
.nav .dd-feature:hover { transform: translateY(-2px); background: var(--bg-2); box-shadow: inset 0 0 0 1.5px var(--teal); }
.dd-feature img, .dd-feature-ph { width: 100%; height: 128px; object-fit: cover; display: block; background: linear-gradient(135deg, var(--teal), var(--accent)); }
.dd-feature-body { display: grid; gap: 4px; padding: 12px 14px 14px; }
.dd-feature-body b { font: 700 14.5px/1.25 var(--display); }
.dd-feature-body small { font-weight: 500; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.dd-feature-body .more { font-size: 13px; margin-top: 2px; }
@media (max-width: 1180px) {
  .dd-panel.has-feature { grid-template-columns: 1fr; min-width: 0; gap: 8px; }
  .nav .dd-feature { grid-template-rows: none; grid-template-columns: 96px minmax(0, 1fr); align-items: center; }
  .dd-feature img, .dd-feature-ph { height: 100%; min-height: 84px; }
  .dd-feature-body { padding: 10px 12px; }
}

/* ── Page de maintenance ──────────────────────────────────────────────────────────────────── */
.maint-body { min-height: 100dvh; }
.maint { --mc: var(--accent); position: relative; display: grid; place-items: center; min-height: 100dvh; padding: 32px 16px; overflow: hidden; background: radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--mc) 22%, transparent), transparent 55%), radial-gradient(circle at 90% 90%, color-mix(in srgb, var(--teal) 18%, transparent), transparent 50%), var(--bg); }
.maint-bg i { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .45; background: var(--mc); animation: mfloat 14s ease-in-out infinite alternate; }
.maint-bg i:nth-child(1) { width: 320px; height: 320px; top: -80px; left: -60px; }
.maint-bg i:nth-child(2) { width: 260px; height: 260px; bottom: -60px; right: -40px; background: var(--teal); animation-duration: 18s; }
.maint-bg i:nth-child(3) { width: 180px; height: 180px; top: 40%; right: 20%; opacity: .25; animation-duration: 22s; }
@keyframes mfloat { to { transform: translate(40px, 30px) scale(1.12); } }
.maint-card { position: relative; display: grid; justify-items: center; gap: 14px; width: min(680px, 100%); padding: clamp(26px, 5vw, 48px); border-radius: 32px; text-align: center; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(16px); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.maint-brand { display: flex; align-items: center; gap: 10px; font: 800 15px var(--display); }
.maint-brand small { display: block; font: 600 11px var(--mono); letter-spacing: .2em; color: var(--muted); }
.maint-icon { display: grid; place-items: center; width: 84px; height: 84px; margin-top: 8px; border-radius: 26px; color: #0f1d22; background: var(--mc); box-shadow: 0 16px 40px color-mix(in srgb, var(--mc) 45%, transparent); animation: mpulse 3s ease-in-out infinite; }
.maint-icon svg { width: 42px; height: 42px; }
@keyframes mpulse { 50% { transform: translateY(-6px) rotate(-3deg); } }
.maint-badge { margin: 0; padding: 5px 12px; border-radius: 999px; font: 700 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg); background: color-mix(in srgb, var(--mc) 22%, transparent); }
.maint h1 { margin: 0; font-size: clamp(28px, 5vw, 42px); line-height: 1.1; }
.maint-msg { margin: 0; max-width: 52ch; font-size: 17px; color: var(--muted); }
.maint-count { display: grid; gap: 10px; width: 100%; margin-top: 6px; }
.maint-cd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.maint-cd div { display: grid; gap: 2px; padding: 14px 6px; border-radius: 18px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.maint-cd b { font: 800 clamp(30px, 7vw, 46px)/1 var(--display); font-variant-numeric: tabular-nums; color: var(--fg); }
.maint-cd span { font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.maint-count.done b { color: var(--teal); }
.maint-end { margin: 0; font: 600 13px var(--mono); color: var(--muted); }
.maint-end::first-letter { text-transform: uppercase; }
.maint-soon { margin: 0; font-weight: 800; color: var(--teal); }
.maint-tips { display: grid; gap: 8px; width: 100%; margin: 6px 0 0; padding: 16px 18px; border-radius: 18px; list-style: none; text-align: left; font-size: 14.5px; background: color-mix(in srgb, var(--mc) 8%, transparent); }
.maint-tips li { position: relative; padding-left: 26px; }
.maint-tips li::before { content: "✓"; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 800; color: #0f1d22; background: var(--mc); }
.maint-tips:empty { display: none; }
.maint-foot { margin: 4px 0 0; font: 600 12.5px var(--mono); color: var(--muted); }
.maint-preview { margin: 0; padding: 6px 12px; border-radius: 10px; font: 700 12px var(--mono); color: #0f1d22; background: var(--accent); }
.maint-staff a { color: inherit; font-weight: 800; }
@media (max-width: 460px) { .maint-cd { gap: 6px; } .maint-cd div { padding: 10px 2px; border-radius: 14px; } }

/* ── Console : réponses du support, réponses rapides, liste, tickets en attente ───────────── */
.msg.support { background: color-mix(in srgb, var(--teal) 16%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 45%, transparent), inset 3px 0 0 var(--teal); }
.msg.support.admin { background: color-mix(in srgb, #7d8cff 18%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #7d8cff 50%, transparent), inset 3px 0 0 #7d8cff; }
.msg .who-tag { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 999px; font: 700 10.5px var(--mono); letter-spacing: .04em; color: #0f1d22; background: var(--teal); }
.msg.admin .who-tag { background: #7d8cff; color: #fff; }
.reply select[data-qr] { width: auto; min-height: 38px; max-width: 100%; padding: 6px 10px; font-size: 13.5px; }
.kcard.waiting { box-shadow: inset 0 0 0 1.5px var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.kcard.waiting.late { box-shadow: inset 3px 0 0 var(--red), inset 0 0 0 1.5px var(--accent); }
.cs-tbl tbody tr { cursor: pointer; }
.cs-tbl tbody tr:hover, .cs-tbl tbody tr:focus-visible { background: color-mix(in srgb, var(--teal) 8%, transparent); outline: none; }
.cs-tbl tbody tr.waiting { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.late-txt { color: var(--red) !important; font-weight: 700; }
#cs-list { margin-top: 4px; }

/* ── Articles : styles d'annonce et contenu mis en forme ─────────────────────────────────── */
.news-card[data-style] .news-cover, .news-cover[style*="--c2"] { background: linear-gradient(135deg, var(--c), var(--c2, var(--c))); }
.news-cover.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-cover.has-img::after { background: linear-gradient(180deg, transparent 55%, rgb(0 0 0 / .35)); }
.art-ribbon { position: absolute; z-index: 1; top: 14px; left: 14px; padding: 5px 11px; border-radius: 999px; font: 800 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #0f1d22; background: #fff; box-shadow: 0 6px 18px rgb(0 0 0 / .18); }
[data-style="incident"] > .art-ribbon, [data-style="securite"] > .art-ribbon { color: #fff; background: #d6453a; }
[data-style="promo"] > .art-ribbon { color: #fff; background: #c2367f; }
.art-body { display: grid; gap: 14px; font-size: 16px; line-height: 1.7; color: var(--fg); }
.art-body > * { margin: 0; }
.art-body p { color: var(--muted); }
.art-body h2 { font-size: 22px; margin-top: 8px; color: var(--fg); }
.art-body h3 { font-size: 18px; color: var(--fg); }
.art-body h4 { font-size: 16px; color: var(--fg); }
.art-body ul, .art-body ol { display: grid; gap: 6px; padding-left: 22px; color: var(--muted); }
.art-body li::marker { color: var(--teal); font-weight: 800; }
.art-body strong, .art-body b { color: var(--fg); }
.art-body a { color: var(--teal); font-weight: 700; }
.art-body blockquote, .art-body .art-quote { padding: 14px 18px; border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0; font-size: 17px; font-style: italic; color: var(--fg); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.art-body hr { width: 100%; height: 1px; border: 0; background: var(--line); }
.art-body figure { display: grid; gap: 6px; }
.art-body img { width: 100%; height: auto; border-radius: 16px; }
.art-body figcaption { font: 600 12.5px var(--mono); text-align: center; color: var(--muted); }
.art-body .art-center { text-align: center; }
.art-body .art-right { text-align: right; }
.art-body .art-lead { font-size: 18.5px; line-height: 1.6; color: var(--fg); }
.art-body .art-small { font-size: 13px; }
.art-body .art-callout { display: grid; gap: 8px; padding: 16px 18px; border-radius: 16px; background: var(--bg-2); box-shadow: inset 4px 0 0 var(--teal); }
.art-body .art-callout > * { margin: 0; }
.art-body .art-callout p, .art-body .art-callout li { color: var(--fg); }
.art-body .art-info { background: color-mix(in srgb, #7d8cff 12%, transparent); box-shadow: inset 4px 0 0 #7d8cff; }
.art-body .art-success { background: color-mix(in srgb, var(--teal) 13%, transparent); box-shadow: inset 4px 0 0 var(--teal); }
.art-body .art-warn { background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: inset 4px 0 0 var(--accent); }
.art-body .art-danger { background: color-mix(in srgb, var(--red) 12%, transparent); box-shadow: inset 4px 0 0 var(--red); }
.art-body .art-btn, .art-body .art-btn-ghost { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 800; text-decoration: none; color: var(--accent-ink); background: var(--accent); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.art-body .art-btn-ghost { color: var(--fg); background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.art-body ol.art-steps { counter-reset: st; list-style: none; padding: 0; gap: 10px; }
.art-body ol.art-steps > li { counter-increment: st; position: relative; padding: 12px 14px 12px 54px; border-radius: 14px; background: var(--bg-2); }
.art-body ol.art-steps > li::before { content: counter(st); position: absolute; left: 12px; top: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 800 14px var(--display); color: var(--accent-ink); background: var(--accent); }
.art-body .art-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.art-body .art-col { display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: var(--bg-2); }
.art-body .art-col span { font-size: 14px; color: var(--muted); }
.art-body .art-kpi strong { font: 800 30px/1.1 var(--display); color: var(--fg); }
.art-body p.art-kpi { font: 800 34px/1.1 var(--display); }
.art-body .art-highlight, .art-body mark { padding: 0 4px; border-radius: 4px; color: inherit; background: color-mix(in srgb, var(--accent) 30%, transparent); }
.art-body .art-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font: 700 12px var(--mono); background: var(--bg-2); }

/* ── Menu administrateur : tableau de bord, éditeur, médiathèque, menu, maintenance ───────── */
.adm-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.adm-kpis .kpi { border: 0; font: inherit; text-align: left; color: inherit; text-decoration: none; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.adm-kpis .kpi:hover { box-shadow: inset 0 0 0 1.5px var(--teal); transform: translateY(-1px); }
.adm-mini { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.adm-mini li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 14px; }
.adm-mini b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-mini small { color: var(--muted); font: 600 11.5px var(--mono); }
.status-row header .linkbtn, .status-row header .more { font: 700 12.5px var(--body); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tpl-card { display: grid; gap: 6px; align-content: start; padding: 0 0 14px; overflow: hidden; border: 0; border-radius: 18px; font: inherit; text-align: left; color: var(--fg); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.tpl-card:hover, .tpl-card:focus-visible { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--teal); outline: none; }
.tpl-card b, .tpl-card small { padding: 0 14px; } .tpl-card small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.tpl-cover { position: relative; display: grid; place-items: center; height: 96px; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--c), var(--c2, var(--c))); }
.tpl-cover svg { width: 40px; height: 40px; }
.tpl-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tpl-cover .art-ribbon { top: 10px; left: 10px; font-size: 9.5px; padding: 3px 8px; }
.ed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.ed-main { display: grid; gap: 10px; min-width: 0; }
.ed-title { font: 800 22px var(--display) !important; min-height: 54px !important; }
.ed-toolbar { position: sticky; top: 76px; z-index: 5; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 8px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.ed-toolbar button { min-width: 36px; min-height: 36px; padding: 0 9px; border: 0; border-radius: 9px; font: 700 13.5px var(--body); color: var(--fg); background: var(--bg-2); cursor: pointer; }
.ed-toolbar button:hover { background: color-mix(in srgb, var(--teal) 18%, var(--bg-2)); }
.ed-toolbar select { width: auto !important; min-height: 36px !important; padding: 4px 8px !important; font-size: 13.5px !important; }
.ed-sep { width: 1px; height: 24px; margin: 0 3px; background: var(--line); }
.ed-area { min-height: 420px; padding: 22px clamp(16px, 3vw, 28px); border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); outline: none; }
.ed-area:focus { box-shadow: inset 0 0 0 2px var(--teal); }
.ed-status { margin: 0; font: 600 12.5px var(--mono); color: var(--muted); }
.ed-side { position: sticky; top: 76px; gap: 14px; padding: 18px; }
.ed-cover { height: 120px; border-radius: 14px; }
.ed-preview { display: grid; gap: 14px; margin-top: 10px; padding-top: 18px; border-top: 1px dashed var(--line); }
.ed-prev-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.ed-prev-card .news-card { width: 100%; }
.ed-prev-art { overflow: hidden; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.media-item { display: grid; gap: 6px; align-content: start; margin: 0; padding: 0 0 10px; overflow: hidden; border: 0; border-radius: 16px; font: inherit; text-align: left; color: var(--fg); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
button.media-item { cursor: pointer; } button.media-item:hover { box-shadow: inset 0 0 0 2px var(--teal); }
.media-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
.media-item figcaption, .media-item small, .media-item .acts { padding: 0 10px; }
.media-item figcaption { display: grid; gap: 2px; } .media-item figcaption b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.media-item small { font: 600 11px var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-item .acts .btn { min-height: 32px; padding: 0 10px; font-size: 12.5px; }
.drop-zone { padding: 22px; border-radius: 16px; text-align: center; font-size: 14px; color: var(--muted); border: 2px dashed var(--line); transition: border-color .15s, background .15s; }
.drop-zone.over { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 8%, transparent); }
#adm-pick .media-grid { max-height: 55vh; overflow: auto; padding: 2px; }
.menu-ed { display: grid; gap: 12px; }
.menu-item { gap: 12px; padding: 16px; }
.menu-links { display: grid; gap: 8px; }
.menu-link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.menu-link .acts { flex-wrap: nowrap; }
.menu-item .acts .btn, .menu-link .acts .btn, .qr-item .acts .btn { min-height: 36px; padding: 0 12px; font-size: 13px; }
.menu-feature { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 14px; padding: 12px; border-radius: 14px; background: var(--bg-2); }
.menu-feature-img { display: grid; place-items: center; min-height: 120px; overflow: hidden; border-radius: 12px; font-size: 13px; color: var(--muted); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.menu-feature-img img { width: 100%; height: 100%; object-fit: cover; }
.menu-prev { padding: 14px; border-radius: 18px; background: var(--bg-2); overflow-x: auto; }
.nav.menu-preview { display: grid !important; position: static !important; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; align-items: start; margin: 0; padding: 0 !important; border: 0 !important; background: none !important; max-height: none !important; }
.nav.menu-preview > a { align-self: start; justify-self: start; display: block !important; color: var(--fg); background: var(--surface); }
.nav.menu-preview > .nav-mobile { display: none !important; }
.nav.menu-preview .dd-btn { pointer-events: none; color: var(--teal); text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; }
.nav.menu-preview .dd-btn::after { display: none; }
.nav.menu-preview .dd-panel { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; grid-template-columns: 1fr; }
.scn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.scn-card { position: relative; display: grid; gap: 8px; justify-items: start; padding: 12px; border-radius: 14px; font-size: 13.5px; cursor: pointer; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.scn-card input { position: absolute; opacity: 0; }
.scn-card:has(input:checked) { box-shadow: inset 0 0 0 2px var(--mc); background: color-mix(in srgb, var(--mc) 12%, var(--bg-2)); }
.scn-card:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.scn-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #0f1d22; background: var(--mc); }
.scn-ico svg { width: 20px; height: 20px; }
.maint-switch { padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.qr-list { display: grid; gap: 10px; }
.qr-item { gap: 10px; padding: 14px; }
.qr-item textarea { min-height: 90px; }
.qr-item .acts { justify-content: flex-end; }
input[type="datetime-local"] { width: 100%; min-height: 46px; padding: 10px 14px; border: 0; border-radius: 12px; font: 500 15px var(--body); color: var(--fg); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 1100px) { .ed-layout, .ed-prev-grid { grid-template-columns: 1fr; } .ed-side { position: static; } }
@media (max-width: 760px) { .adm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .menu-link { grid-template-columns: 1fr; } .menu-feature { grid-template-columns: 1fr; } .ed-toolbar { top: 64px; } }
.msg > span:not(.att) { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ── État des services ────────────────────────────────────────────────────────────────────── */
.status-banner { --sc: var(--teal); display: flex; gap: 14px; align-items: center; padding: 18px 20px; margin-bottom: 18px; border-radius: 20px; background: color-mix(in srgb, var(--sc) 14%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sc) 40%, transparent); }
.status-banner b { display: block; font: 800 19px/1.3 var(--display); } .status-banner small { color: var(--muted); font: 600 12px var(--mono); }
.status-banner .dot, .st-svc .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; background: var(--sc); box-shadow: 0 0 0 5px color-mix(in srgb, var(--sc) 22%, transparent); }
[data-st="degrade"] { --sc: var(--accent); } [data-st="panne"] { --sc: var(--red); } [data-st="maintenance"] { --sc: #7d8cff; } [data-st="ok"] { --sc: var(--teal); }
.status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.st-svc { --sc: var(--teal); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.st-svc b { display: block; } .st-svc small { color: var(--muted); font-size: 13px; }
.st-lbl { font: 700 12px var(--mono); color: var(--sc); }
.st-h { margin: 30px 0 12px; font-size: 22px; }
.st-incidents { display: grid; gap: 10px; }
.st-inc { --sc: var(--accent); display: grid; gap: 6px; padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: inset 4px 0 0 var(--sc), inset 0 0 0 1px var(--line); }
.st-inc[data-st="resolu"] { --sc: var(--teal); }
.st-inc header { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.st-inc small { color: var(--muted); font: 600 12px var(--mono); } .st-inc p { margin: 0; color: var(--muted); white-space: pre-wrap; }

.side-group { display: block; margin: 12px 12px 2px; font: 700 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) { .side-group { display: none; } }

/* ── Admin : configuration, rendez-vous, newsletter, état des services, RIO ──────────────── */
.cfg-card h3 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.secret-line { display: flex; flex-wrap: wrap; gap: 8px; } .secret-line input { flex: 1; min-width: 220px; }
.copyable { cursor: copy; padding: 2px 6px; border-radius: 6px; background: var(--bg-2); word-break: break-all; }
.google-btn { gap: 10px; } .g-logo { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 800 13px var(--body); color: #fff; background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); }
.hours-grid { display: grid; gap: 8px; } .hours-grid label { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 14px; }
input[type="number"], input[type="date"], input[type="time"] { width: 100%; min-height: 46px; padding: 10px 14px; border: 0; border-radius: 12px; font: 500 15px var(--body); color: var(--fg); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.rdv-day { display: grid; gap: 8px; } .rdv-day h3 { margin: 10px 0 0; font-size: 16px; text-transform: capitalize; }
.rdv-card { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 14px; padding: 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 4px 0 0 var(--teal), inset 0 0 0 1px var(--line); }
.rdv-card[data-st2="demande"] { box-shadow: inset 4px 0 0 var(--accent), inset 0 0 0 1px var(--line); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.rdv-card[data-st2="annule"], .rdv-card[data-st2="termine"] { opacity: .65; box-shadow: inset 4px 0 0 var(--line), inset 0 0 0 1px var(--line); }
.rdv-time b { display: block; font: 800 18px var(--display); white-space: nowrap; } .rdv-time small { color: var(--muted); font: 600 12px var(--mono); }
.rdv-main { display: grid; gap: 6px; min-width: 0; } .rdv-main header { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .rdv-main > small { color: var(--muted); } .rdv-main p { margin: 0; white-space: pre-wrap; color: var(--muted); font-size: 14px; }
.rdv-main details textarea { min-height: 70px; margin: 6px 0; } .rdv-main details summary { cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--teal); }
.rdv-main .acts .btn { min-height: 34px; padding: 0 12px; font-size: 13px; }
.rdv-move { display: flex; flex-wrap: wrap; gap: 8px; } .rdv-move input { width: auto; flex: 1; min-width: 140px; }
.st-row { display: grid; grid-template-columns: minmax(0, 1.3fr) 170px minmax(0, 1.5fr) auto; gap: 8px; align-items: center; }
.inc-row { --sc: var(--accent); display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 4px 0 0 var(--sc); }
.inc-row[data-st="ok"] { --sc: var(--teal); }
.rio-res { display: grid; gap: 10px; padding: 18px; border-radius: 18px; background: color-mix(in srgb, var(--red) 10%, var(--surface)); box-shadow: inset 4px 0 0 var(--red), inset 0 0 0 1px var(--line); }
.rio-res[data-ok="1"] { background: color-mix(in srgb, var(--teal) 12%, var(--surface)); box-shadow: inset 4px 0 0 var(--teal), inset 0 0 0 1px var(--line); }
.rio-res > b { font: 800 19px var(--display); } .rio-res ul { margin: 0; padding-left: 20px; }
.rio-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin: 0; } .rio-dl div { padding: 10px 12px; border-radius: 12px; background: var(--surface); } .rio-dl dt { font: 600 11.5px var(--mono); color: var(--muted); } .rio-dl dd { margin: 2px 0 0; font: 800 17px var(--mono); }
@media (max-width: 760px) { .st-row { grid-template-columns: 1fr; } .rdv-card { grid-template-columns: 1fr; } .hours-grid label { grid-template-columns: 1fr; } }

/* Connexion : « Se souvenir de moi » et « Mot de passe oublié ? », volontairement discrets */
.login-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: -4px; font-size: 13.5px; }
.remember { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; user-select: none; }
.remember input { appearance: none; width: 16px; height: 16px; margin: 0; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--bg-2); display: grid; place-items: center; cursor: pointer; transition: background .15s, box-shadow .15s; }
.remember input::after { content: ""; width: 8px; height: 5px; border: solid var(--accent-ink); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .15s; }
.remember input:checked { background: var(--teal); box-shadow: none; }
.remember input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.remember input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.remember:hover { color: var(--fg); }
.link-btn { padding: 0; border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; cursor: pointer; justify-self: start; }
.link-btn:hover, .link-btn:focus-visible { color: var(--teal); text-decoration-color: currentColor; }
.forgot-form { display: grid; gap: 16px; }

/* Bandeau d'inscription à la lettre d'information (au-dessus du pied de page) */
.newsband { padding-block: 0 clamp(48px, 7vw, 88px); }
.newsband-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(22px, 4vw, 48px); align-items: center; padding: clamp(26px, 4vw, 48px); border-radius: 30px; background: radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--teal) 26%, transparent), transparent 55%), radial-gradient(circle at 0% 100%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 50%), var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.newsband-card::before { content: ""; position: absolute; right: -36px; top: -36px; width: 150px; height: 150px; border-radius: 50%; border: 22px solid color-mix(in srgb, var(--teal) 22%, transparent); animation: float 10s ease-in-out infinite; }
.newsband h2 { max-width: 20ch; }
.newsband .lead { margin-top: 10px; max-width: 52ch; }
.newsband-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.newsband-points li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font: 600 12.5px var(--body); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.newsband-points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.newsband form.news-form { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; max-width: none; margin: 0; padding: 8px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -24px rgb(0 0 0 / .45); }
.newsband form.news-form input { min-height: 52px !important; background: transparent; box-shadow: none; font-size: 16px; }
.newsband form.news-form .btn { min-height: 52px; padding: 0 22px; }
.newsband .fine { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.newsband .fine a { color: inherit; }
.news-ok { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 18px; font-weight: 700; background: color-mix(in srgb, var(--teal) 16%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 40%, transparent); }
.news-ok::before { content: "✓"; display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; color: var(--accent-ink); background: var(--teal); }
@media (max-width: 820px) { .newsband-card { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .newsband form.news-form { grid-template-columns: 1fr; } }
.tpl-list { border-top: 1px solid var(--line); padding-top: 12px; }
.tpl-list summary { cursor: pointer; font-weight: 700; }
.tpl-list ul { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.tpl-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 12px; background: var(--bg-2); }
.tpl-list li span { display: grid; min-width: 0; } .tpl-list li small { color: var(--muted); overflow-wrap: anywhere; }
.tpl-list li .btn { min-height: 36px; padding: 0 14px; flex: none; }

/* Page Suivi : deux cartes de même hauteur, le suivi s'affiche en dessous sur toute la largeur */
.tk-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.tk-card { display: grid; align-content: start; gap: 16px; padding: clamp(22px, 3vw, 32px); }
.tk-card h2 { font-size: clamp(22px, 2.4vw, 28px); }
.tk-card > .btn, .tk-card .hero-actions { justify-self: start; }
.tk-card-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--accent-ink); background: var(--accent); }
.tk-card-ico svg { width: 22px; height: 22px; }
.tk-card-member { background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--teal) 18%, transparent), transparent 55%), var(--surface); }
.tk-card-member .tk-card-ico { color: var(--bg); background: var(--teal); }
.tk-perks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; }
.tk-perks li { display: flex; gap: 10px; align-items: baseline; }
.tk-perks li::before { content: "✓"; flex: none; font-weight: 800; color: var(--teal); }
.tk-urgent { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
#tk-track-pane { margin-top: 20px; }
@media (max-width: 860px) { .tk-top { grid-template-columns: 1fr; } }
.anchor { display: block; scroll-margin-top: 96px; }

/* ── Administration : écrans à onglets (Système › Mises à jour, Documents) ───────────────── */
.sys-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 16px; }
.sys-head h2 { margin: 2px 0 0; } .sys-head .eyebrow { margin: 0; }
.sys-refresh { margin: 0; font: 600 12px var(--mono); color: var(--muted); }
.sys-tabs { margin: 14px 0; flex-wrap: wrap; }
.sys-kpis { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin-bottom: 12px; }
.sys-kpis .kpi b { font-size: 22px; overflow-wrap: anywhere; }
.sys-kpis .kpi small { line-height: 1.45; overflow-wrap: anywhere; }
.kpi.sys-new, .sys-box.sys-new { box-shadow: inset 0 0 0 1.5px var(--accent); }
.kpi.sys-bad { box-shadow: inset 0 0 0 1.5px var(--red); }
.sys-alert { margin: 12px 0; padding: 12px 16px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); line-height: 1.55; }
.sys-alert p { margin: 4px 0 0; }
.sys-alert.ok { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 55%, transparent); background: color-mix(in srgb, var(--teal) 10%, transparent); }
.sys-alert.warn { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.sys-alert.bad { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 55%, transparent); background: color-mix(in srgb, var(--red) 10%, transparent); }
.sys-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.sys-box { display: grid; gap: 6px; padding: 16px 18px; border-radius: 18px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.sys-box h3, .sys-box p { margin: 0; } .sys-box .pre { white-space: pre-line; }
.sys-dep-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: flex-start; }
.sys-dep-head h3 { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .sys-dep-head p { margin: 4px 0 0; }
.sys-progress { height: 10px; border-radius: 999px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; margin: 14px 0 4px; }
.sys-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--accent)); transition: width .4s; }
.sys-steps { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 6px; }
.sys-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--bg-2); }
.sys-steps li p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.sys-steps .ico { font-weight: 800; text-align: center; }
.sys-steps .s-ok .ico { color: var(--teal); } .sys-steps .s-echec { box-shadow: inset 0 0 0 1px var(--red); } .sys-steps .s-echec .ico { color: var(--red); }
.sys-steps .s-en_cours { box-shadow: inset 0 0 0 1.5px var(--accent); } .sys-steps .s-en_cours .ico { color: var(--accent); }
.sys-steps .s-ignore { opacity: .55; }
.sys-logs { max-height: 380px; overflow: auto; margin: 6px 0; padding: 12px 14px; border-radius: 14px; background: #06161b; color: #cfe5e1; font: 12.5px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.sys-logs .l-warn { color: #ffcf7a; } .sys-logs .l-error { color: #ff8b7d; }
.sys-notes { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.sys-notes li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 8px 12px; border-radius: 12px; background: var(--bg-2); }
.sys-notes li.unread { box-shadow: inset 3px 0 0 var(--accent); } .sys-notes li.k-echec, .sys-notes li.k-intervention { box-shadow: inset 3px 0 0 var(--red); }
.sys-notes time { font: 600 12px var(--mono); color: var(--muted); } .sys-notes small { color: var(--muted); flex-basis: 100%; }
.sys-fieldset { display: grid; gap: 8px; border: 1px dashed var(--line); border-radius: 14px; padding: 12px 14px; }
.sys-fieldset legend { padding: 0 6px; font-weight: 700; }
@media (max-width: 560px) { .sys-kpis .kpi b { font-size: 19px; } }
.sig-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; } .sig-filters input[type="search"] { flex: 1 1 240px; } .sig-filters select { width: auto; }
.sig-help { line-height: 1.7; } .sig-help code, .tk-dialog code { overflow-wrap: anywhere; }
.sig-tform { margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--bg-2); }
/* Gestion documentaire */
.doc-meta { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 6px 14px; margin: 12px 0; }
.doc-meta dt { font-weight: 700; color: var(--muted); } .doc-meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.doc-picks { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 8px; }
@media (max-width: 560px) { .doc-meta { grid-template-columns: 1fr; } .doc-meta dt { margin-top: 6px; } }

/* ── Administration › Supervision ─────────────────────────────────────────────────────── */
.sup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 14px 0 20px; }
.sup-card { display: grid; gap: 8px; align-content: start; padding: 16px 18px; border-radius: 18px; }
.sup-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sup-card h3 { margin: 0; font-size: 15px; }
.sup-card.s-panne { box-shadow: inset 0 0 0 1.5px var(--red); }
.sup-card.s-degrade { box-shadow: inset 0 0 0 1.5px var(--accent); }
.sup-card details summary { cursor: pointer; color: var(--muted); font-weight: 700; font-size: 13.5px; }
.sup-dl { display: grid; gap: 6px; margin: 8px 0 0; }
.sup-dl div { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 8px; font-size: 13.5px; }
.sup-dl dt { color: var(--muted); } .sup-dl dd { margin: 0; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; gap: 4px; }
.sup-inc { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 8px; }
.sup-inc li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.sup-inc li.open { box-shadow: inset 0 0 0 1.5px var(--red); }
.sup-inc-meta { display: grid; gap: 6px; justify-items: end; align-content: start; }
.sup-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
@media (max-width: 560px) { .sup-dl div { grid-template-columns: 1fr; } .sup-inc-meta { justify-items: start; } }
.maint-brand .logo { height: 44px; width: auto; max-width: 100%; }

/* Double authentification obligatoire des membres (assets/double-auth.js) */
.da-form { display: grid; gap: 14px; }
.da-choices { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.da-choice { display: grid; gap: 6px; text-align: left; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; font: inherit; cursor: pointer; }
.da-choice:hover:not(:disabled), .da-choice:focus-visible { border-color: var(--accent); }
.da-choice:disabled { opacity: .55; cursor: not-allowed; }
.da-choice span { font-size: 14px; color: var(--muted); }
.da-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin: 0; padding-left: 24px; }
.da-codes code { font-size: 17px; letter-spacing: .04em; }
@media (max-width: 420px) { .da-codes { grid-template-columns: 1fr; } }
.da-form .sec-steps { padding-left: 18px; display: grid; gap: 10px; line-height: 1.6; }
.da-form .sec-key code { font-size: 1.1rem; letter-spacing: 1px; overflow-wrap: anywhere; }

/* Système › Déploiements : ronds d'état façon GitHub (assets/systeme.js) */
.st-ring { --c: var(--muted); display: inline-block; flex: none; width: 18px; height: 18px; border-radius: 50%; vertical-align: -4px; box-sizing: border-box; border: 2px solid var(--c); position: relative; }
.st-ring.r-ok { --c: #1f9d55; background: var(--c); } .st-ring.r-bad { --c: var(--red); background: var(--c); } .st-ring.r-warn { --c: #f08c00; background: var(--c); }
.st-ring.r-ok::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.st-ring.r-bad::before, .st-ring.r-bad::after { content: ""; position: absolute; left: 6px; top: 2.5px; width: 2px; height: 9px; background: #fff; transform: rotate(45deg); }
.st-ring.r-bad::after { transform: rotate(-45deg); }
.st-ring.r-warn::after { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 800 11px/1 var(--body); }
.st-ring.r-run { --c: #f08c00; border-color: color-mix(in srgb, var(--c) 25%, transparent); border-top-color: var(--c); border-right-color: var(--c); animation: ring-spin .9s linear infinite; }
.st-ring.r-wait { --c: #f08c00; border-style: dotted; } .st-ring.r-skip { border-style: dashed; opacity: .5; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .st-ring.r-run { animation-duration: 3s; } }
.sys-steps .ico { display: grid; place-items: center; padding-top: 2px; }
.gh-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; padding: 16px 18px; border-radius: 18px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.gh-top h3, .gh-top p { margin: 0; } .gh-top p { margin-top: 4px; }
.gh-deploy { min-width: 160px; display: inline-flex; gap: 8px; align-items: center; justify-content: center; }
.gh-deploy .st-ring { width: 16px; height: 16px; }
.gh-run { margin: 14px 0; padding: 16px 18px; border-radius: 18px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 12px; }
.gh-run.s-en_cours { box-shadow: inset 0 0 0 1.5px #f08c00; } .gh-run.s-reussi { box-shadow: inset 0 0 0 1.5px #1f9d55; } .gh-run.s-echec, .gh-run.s-interrompu { box-shadow: inset 0 0 0 1.5px var(--red); } .gh-run.s-retour_arriere { box-shadow: inset 0 0 0 1.5px #f08c00; }
.gh-run-head { display: flex; gap: 12px; align-items: center; } .gh-run-head > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.gh-run-head small { color: var(--muted); overflow-wrap: anywhere; } .gh-run-head > .st-ring { width: 26px; height: 26px; } .gh-run-head > .st-ring.r-ok::after { left: 8px; top: 4px; width: 5px; height: 10px; }
.gh-run-head > .st-ring.r-bad::before, .gh-run-head > .st-ring.r-bad::after { left: 10px; top: 5px; height: 12px; }
.gh-chain { list-style: none; margin: 0; padding: 4px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 12px 4px; }
.gh-chain li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 12px; line-height: 1.3; color: var(--muted); }
.gh-chain li .st-ring { width: 24px; height: 24px; background-clip: padding-box; z-index: 1; }
.gh-chain li .st-ring.r-ok::after { left: 7.5px; top: 3.5px; width: 5px; height: 10px; } .gh-chain li .st-ring.r-bad::before, .gh-chain li .st-ring.r-bad::after { left: 9px; top: 4px; height: 12px; }
.gh-chain li .st-ring.r-todo, .gh-chain li .st-ring.r-wait, .gh-chain li .st-ring.r-run { background-color: var(--bg-2); }
.gh-chain li:not(:last-child)::before { content: ""; position: absolute; top: 11px; left: calc(50% + 14px); right: calc(-50% + 14px); height: 2px; background: var(--line); }
.gh-chain li.c-ok:not(:last-child)::before { background: #1f9d55; }
.gh-chain li.c-en_cours, .gh-chain li.c-echec { color: var(--fg); font-weight: 700; }
.gh-now { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gh-list { list-style: none; margin: 8px 0; padding: 0; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.gh-list li + li { border-top: 1px solid var(--line); }
.gh-list button { width: 100%; display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.gh-list button:hover, .gh-list button:focus-visible { background: var(--bg-2); }
.gh-list .gh-txt { flex: 1; min-width: 0; display: grid; gap: 2px; } .gh-list small { color: var(--muted); overflow-wrap: anywhere; }
.gh-when { text-align: right; flex: none; font-family: var(--mono); font-size: 12px; }
.gh-legend { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .gh-chain { grid-template-columns: repeat(4, 1fr); } .gh-chain li:nth-child(4n)::before { display: none; } .gh-when { display: none; } .gh-deploy { width: 100%; } }

/* ── En-tête « logo au centre » (version 5 choisie) : rubriques à gauche et à droite du logo ───── */
.top .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 18px; }
.top .nav-l { margin: 0; justify-self: end; } /* les rubriques partent du logo, vers la gauche… */
.top .brand { justify-self: center; }
.top .brand .logo { transform: translateY(11%); } /* le logo (pastille + points) paraissait trop haut */
.top-r { display: flex; align-items: center; gap: 10px; justify-self: stretch; min-width: 0; }
.top-r .nav-r { margin: 0 auto 0 0; } /* …et vers la droite ; « Espace client » reste au bord */
@media (max-width: 1180px) {
  .top .wrap { display: flex; flex-wrap: wrap; gap: 8px 12px; }
  .top .brand { order: -1; margin-right: auto; }
  .top-r { display: contents; }
  .top .menu-btn { order: 0; margin-left: 0; }
  .top[data-open] .wrap { max-height: 100dvh; overflow: auto; padding-bottom: 14px; }
  .top[data-open] .nav-l, .top[data-open] .nav-r { position: static; order: 1; flex-basis: 100%; display: grid; gap: 4px; padding: 0; max-height: none; overflow: visible; border: 0; background: none; }
  .top[data-open] .nav-l { padding-top: 6px; border-top: 1px solid var(--line); }
}

/* ── Notifications du site (assets/notifications.js) : cartes empilées façon téléphone ─────────── */
.gn-stack { position: fixed; z-index: 90; top: calc(84px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); width: min(400px, calc(100vw - 32px)); display: grid; pointer-events: none; }
.gn-card { --i: 0; grid-area: 1 / 1; position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 40px 14px 14px; border-radius: 26px; background: var(--surface); color: var(--fg); box-shadow: 0 18px 40px rgb(0 0 0 / .4), inset 0 0 0 1px var(--line); pointer-events: auto; z-index: calc(10 - var(--i));
  transform: translateY(calc(var(--i) * 16px)) scale(calc(1 - var(--i) * .06)); transform-origin: 50% 100%; opacity: 0; transition: transform .28s ease, opacity .28s ease; }
.gn-card.in { opacity: calc(1 - var(--i) * .25); }
.gn-card.out { opacity: 0 !important; transform: translateX(40px); }
.gn-card:nth-last-child(n + 4) { display: none; }
.gn-stack:not(.open) .gn-card:not(:last-child) > * { visibility: hidden; }
.gn-stack:not(.open) .gn-card:not(:last-child) { background: color-mix(in srgb, var(--surface) 70%, #000); }
.gn-stack.open { gap: 10px; }
.gn-stack.open .gn-card { grid-area: auto; transform: none; opacity: 1; }
.gn-card.gn-link { cursor: pointer; } .gn-card.gn-link:hover { box-shadow: 0 18px 40px rgb(0 0 0 / .4), inset 0 0 0 1.5px var(--teal); }
.gn-ava { position: relative; width: 52px; height: 52px; }
.gn-ava img { display: block; width: 52px; height: 52px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); }
.gn-badge { position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 3px var(--surface); }
.gn-badge svg { width: 14px; height: 14px; }
.gn-head { display: flex; align-items: baseline; gap: 10px; }
.gn-head b { flex: 1; min-width: 0; font: 700 16px/1.3 var(--display); overflow-wrap: anywhere; }
.gn-head time { flex: none; font-size: 13px; color: var(--muted); }
.gn-txt p { margin: 3px 0 0; font-size: 14.5px; line-height: 1.45; color: color-mix(in srgb, var(--fg) 88%, transparent); }
.gn-act { display: flex; gap: 8px; margin-top: 10px; }
.gn-act button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; font: 700 13.5px var(--body); color: var(--fg); background: var(--line); cursor: pointer; }
.gn-act .gn-pri { background: var(--accent); color: var(--accent-ink); }
.gn-x { position: absolute; top: 8px; right: 10px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.gn-x:hover { color: var(--fg); background: var(--line); }
@media (max-width: 560px) { .gn-stack { top: calc(76px + env(safe-area-inset-top, 0px)); left: 12px; right: 12px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .gn-card { transition: none; } }
.na-prev { padding: 22px 16px; border-radius: 18px; background: radial-gradient(500px 200px at 70% 0%, rgb(53 208 195 / .14), transparent), var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.gn-card.gn-preview { opacity: 1; transform: none; pointer-events: none; padding-right: 18px; }

/* ── Bandeaux d'information en haut du site ──────────────────────────────────────────────────── */
.bandeaux { display: grid; gap: 6px; padding: 8px max(10px, env(safe-area-inset-right, 0px)) 6px max(10px, env(safe-area-inset-left, 0px)); background: var(--bg); }
.bandeau { --c: var(--teal); border-radius: 14px; background: color-mix(in srgb, var(--c) 14%, var(--bg-2)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent); transition: opacity .25s, transform .25s; }
.bandeau.out { opacity: 0; transform: translateY(-6px); }
.bandeau .wrap { display: flex; align-items: center; gap: 12px; min-height: 48px; padding-top: 6px; padding-bottom: 6px; }
.bandeau p { flex: 1; min-width: 0; margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--fg); }
.bandeau p b { color: var(--c); margin-right: 2px; }
.b-ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); }
.b-ico svg { width: 18px; height: 18px; }
.b-btn { flex: none; padding: 7px 14px; border-radius: 999px; font: 800 13px var(--body); text-decoration: none; color: #0b1f26; background: var(--c); white-space: nowrap; }
.b-btn:hover { filter: brightness(1.08); }
.b-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.b-x:hover { color: var(--fg); background: var(--line); }
.b-info { --c: #4fb3ff; } .b-actualite { --c: var(--accent); } .b-maintenance { --c: #b69cff; }
.b-attention { --c: #ffd24a; } .b-succes { --c: #4ade80; } .b-promo { --c: #ff6fa8; }
@media (max-width: 640px) { .bandeau .wrap { flex-wrap: wrap; gap: 8px 10px; padding-left: 10px; padding-right: 6px; } .bandeau p { flex-basis: calc(100% - 90px); font-size: 14px; } .b-btn { margin-left: 44px; } .b-x { position: relative; order: 2; } }

.ba-prev { padding: 10px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 14px; }
.ba-prev .bandeaux { padding: 0; background: none; }
.ba-item { display: grid; gap: 10px; margin-bottom: 12px; }

/* ── Chat en direct (assets/chat.js) : bas droite, style « prestige » ─────────────────────────── */
.has-chat .to-top { bottom: max(96px, calc(env(safe-area-inset-bottom, 0px) + 96px)); }
.gc { position: fixed; z-index: 85; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); font-family: var(--body); }
.gc-fab { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border: 0; border-radius: 50%; color: var(--accent-ink); cursor: pointer; background: radial-gradient(circle at 30% 25%, #ffd27a, var(--accent) 55%, #e08a00); box-shadow: 0 14px 34px rgb(255 180 63 / .38), inset 0 -3px 0 rgb(0 0 0 / .12); transition: transform .25s cubic-bezier(.2, 1.4, .4, 1); }
.gc-fab::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: gc-ring 3s ease-out infinite; }
@keyframes gc-ring { 0% { opacity: .7; transform: scale(.9); } 70%, 100% { opacity: 0; transform: scale(1.25); } }
.gc-fab:hover { transform: scale(1.07) rotate(-4deg); }
.gc-fab svg { width: 28px; height: 28px; }
.gc.is-open .gc-fab { transform: scale(.9); } .gc.is-open .gc-fab::before { animation: none; }
.gc-dot { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font: 800 12px var(--body); color: #fff; background: var(--red); box-shadow: 0 0 0 3px var(--bg); }
.gc-hello { position: absolute; right: 0; bottom: 78px; width: min(300px, calc(100vw - 40px)); display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 14px 34px 14px 14px; border-radius: 20px 20px 6px 20px; background: var(--surface); color: var(--fg); box-shadow: 0 18px 40px rgb(0 0 0 / .4), inset 0 0 0 1px var(--line); cursor: pointer; animation: gc-pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.gc-hello img { border-radius: 50%; background: var(--bg); }
.gc-hello p { margin: 0; font-size: 14.5px; line-height: 1.45; }
.gc-hello-x { position: absolute; top: 6px; right: 8px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 18px; cursor: pointer; }
@keyframes gc-pop { from { opacity: 0; transform: translateY(10px) scale(.95); } }
.gc-panel { position: absolute; right: 0; bottom: 78px; width: min(390px, calc(100vw - 32px)); height: min(620px, calc(100dvh - 120px)); display: grid; grid-template-rows: auto 1fr auto auto auto auto; overflow: hidden; border-radius: 26px; background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, #000), var(--bg)); box-shadow: 0 30px 70px rgb(0 0 0 / .55), inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, var(--line)); animation: gc-pop .35s cubic-bezier(.2, 1.2, .4, 1); }
.gc-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px; background: linear-gradient(120deg, color-mix(in srgb, var(--teal) 30%, var(--surface)), var(--surface) 60%, color-mix(in srgb, var(--accent) 22%, var(--surface))); border-bottom: 1px solid var(--line); }
.gc-head > div { flex: 1; min-width: 0; display: grid; }
.gc-head b { font: 800 16px var(--display); } .gc-head small { color: var(--muted); font-size: 12.5px; }
.gc-ava { position: relative; flex: none; } .gc-ava img { display: block; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 60%, transparent); }
.gc-ava i { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px var(--surface); }
.gc-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--line); color: var(--fg); font-size: 22px; line-height: 1; cursor: pointer; }
.gc-body { overflow-y: auto; padding: 16px 14px 8px; overscroll-behavior: contain; scroll-behavior: smooth; }
.gc-msgs { display: grid; gap: 10px; }
.gc-m { display: grid; gap: 3px; max-width: 86%; animation: gc-in .3s ease both; }
@keyframes gc-in { from { opacity: 0; transform: translateY(6px); } }
.gc-who { font: 700 11.5px var(--body); color: var(--muted); } .gc-who em { font-style: normal; font-weight: 600; opacity: .75; }
.gc-b { padding: 10px 13px; border-radius: 18px 18px 18px 6px; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; background: color-mix(in srgb, var(--fg) 7%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.gc-b a { color: var(--accent); }
.gc-equipe .gc-b { background: color-mix(in srgb, var(--teal) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 40%, transparent); }
.gc-visiteur { justify-self: end; justify-items: end; } .gc-visiteur .gc-b { border-radius: 18px 18px 6px 18px; color: var(--accent-ink); background: linear-gradient(135deg, #ffcc66, var(--accent)); box-shadow: none; }
.gc-m time { font-size: 11px; color: var(--muted); }
.gc-more { display: block; margin-top: 6px; font-weight: 800; text-decoration: none; }
.gc-chips { display: flex; flex-wrap: wrap; gap: 6px; } .gc-chips small { flex-basis: 100%; color: var(--muted); font-size: 12px; }
.gc-chips button, .gc-sugg button, .gc-faq-list button { text-align: left; padding: 8px 12px; border: 0; border-radius: 14px; font: 600 13.5px var(--body); color: var(--fg); background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); cursor: pointer; transition: background .2s; }
.gc-chips button:hover, .gc-sugg button:hover, .gc-faq-list button:hover { background: color-mix(in srgb, var(--accent) 24%, transparent); }
.gc-typing { display: flex; gap: 4px; width: fit-content; margin-top: 10px; padding: 12px 14px; border-radius: 18px; background: color-mix(in srgb, var(--fg) 7%, transparent); }
.gc-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: gc-dot 1.2s infinite; } .gc-typing span:nth-child(2) { animation-delay: .15s; } .gc-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes gc-dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.gc-sugg { display: grid; gap: 6px; padding: 8px 14px 0; } .gc-sugg button { display: flex; gap: 8px; align-items: center; } .gc-sugg svg { width: 14px; height: 14px; flex: none; color: var(--accent); }
.gc-faq { max-height: 240px; overflow: auto; padding: 10px 14px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent); }
.gc-faq input { width: 100%; padding: 9px 12px; border: 0; border-radius: 12px; font: 600 14px var(--body); color: var(--fg); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.gc-faq-list { display: grid; gap: 6px; margin-top: 8px; } .gc-faq-list h5 { margin: 8px 0 0; font: 800 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); } .gc-faq-list p { color: var(--muted); font-size: 13px; }
.gc-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); }
.gc-form textarea { flex: 1; min-height: 42px; max-height: 120px; resize: none; padding: 10px 12px; border: 0; border-radius: 16px; font: 500 14.5px/1.4 var(--body); color: var(--fg); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.gc-form textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.gc-faq-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border: 0; border-radius: 14px; font: 800 12.5px var(--body); color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); cursor: pointer; }
.gc-faq-btn svg { width: 16px; height: 16px; } .gc-faq-btn[aria-expanded="true"] { color: var(--accent-ink); background: var(--accent); }
.gc-send { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; color: var(--accent-ink); background: var(--accent); cursor: pointer; } .gc-send svg { width: 18px; height: 18px; }
.gc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; padding: 0 14px 12px; font-size: 11.5px; color: var(--muted); }
.gc-human { padding: 6px 10px; border: 0; border-radius: 999px; font: 700 12.5px var(--body); color: var(--fg); background: var(--line); cursor: pointer; } .gc-human:hover { background: color-mix(in srgb, var(--teal) 25%, transparent); }
@media (max-width: 560px) { .gc-faq-btn span { display: none; } .gc-panel { position: fixed; right: 8px; left: 8px; width: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 86px); height: calc(100dvh - 110px); } }
@media (prefers-reduced-motion: reduce) { .gc-fab::before, .gc-m, .gc-panel, .gc-hello { animation: none; } }
/* Console du support › Chat en direct (assets/chat-equipe.js) */
.chat-band { padding-top: 0; }
.ce-top h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.ce-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; font: 800 12px var(--body); color: #fff; background: var(--red); }
.ce { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 14px; margin-top: 12px; min-height: 520px; }
.ce-list { display: grid; align-content: start; gap: 6px; max-height: 640px; overflow: auto; padding: 4px; border-radius: 18px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.ce-item { position: relative; display: grid; gap: 3px; text-align: left; padding: 10px 12px; border: 0; border-radius: 14px; color: var(--fg); background: none; font: inherit; cursor: pointer; }
.ce-item:hover { background: var(--line); } .ce-item.on { background: color-mix(in srgb, var(--accent) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent); }
.ce-item.closed { opacity: .6; } .ce-item small { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; } .ce-item time { font-size: 11.5px; color: var(--muted); }
.ce-item .ce-n { position: absolute; top: 10px; right: 10px; }
.ce-view { display: grid; grid-template-rows: auto 1fr auto auto; min-height: 520px; border-radius: 18px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.ce-view > .hint { padding: 20px; }
.ce-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); } .ce-head div { display: grid; } .ce-head small { color: var(--muted); }
.ce-msgs { display: grid; align-content: start; gap: 10px; padding: 14px; overflow: auto; max-height: 460px; }
.ce-msgs .ce-right { justify-self: end; justify-items: end; } .ce-msgs .ce-left .gc-b { background: color-mix(in srgb, var(--accent) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); color: var(--fg); }
.ce-msgs .gc-auto .gc-b { opacity: .85; font-size: 13.5px; }
.ce-replies { max-height: 260px; overflow: auto; padding: 10px 14px; border-top: 1px solid var(--line); }
.ce-replies input { width: 100%; padding: 9px 12px; border: 0; border-radius: 12px; color: var(--fg); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font: 600 14px var(--body); }
.ce-rlist { display: grid; gap: 6px; margin-top: 8px; } .ce-rlist h5 { margin: 8px 0 0; font: 800 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.ce-rlist button { display: grid; gap: 2px; text-align: left; padding: 8px 10px; border: 0; border-radius: 12px; color: var(--fg); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font: inherit; cursor: pointer; }
.ce-rlist button:hover { box-shadow: inset 0 0 0 1.5px var(--accent); } .ce-rlist small { color: var(--muted); font-size: 12.5px; } .ce-rlist mark { background: color-mix(in srgb, var(--teal) 25%, transparent); color: var(--fg); border-radius: 4px; padding: 0 2px; }
.ce-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); }
.ce-form textarea { flex: 1; resize: vertical; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 14px; color: var(--fg); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font: 500 14.5px/1.4 var(--body); }
@media (max-width: 860px) { .ce { grid-template-columns: 1fr; } .ce-list { max-height: 260px; } }
/* Administration › Chat */
.ca-search { width: 100%; margin: 6px 0 10px; padding: 9px 12px; border: 0; border-radius: 12px; color: var(--fg); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font: 600 14px var(--body); }
.ca-faq { display: grid; gap: 8px; } .ca-q { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.ca-q b { display: block; margin-top: 4px; } .ca-q p { margin: 4px 0; color: var(--muted); font-size: 14px; } .ca-q.off { opacity: .6; }
.ca-faq-form { padding: 14px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--accent); margin-bottom: 10px; }
.ca-replies { display: grid; gap: 8px; } .ca-r { display: grid; grid-template-columns: 140px 200px 1fr auto; gap: 8px; align-items: start; }
.ca-r input, .ca-r textarea { padding: 8px 10px; border: 0; border-radius: 10px; color: var(--fg); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font: 500 13.5px var(--body); }
@media (max-width: 860px) { .ca-r { grid-template-columns: 1fr 1fr auto; } .ca-r textarea { grid-column: 1 / -1; } }

/* ── Espace client : présentation à gauche, identification à droite ─────────────────────────── */
.ec-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.ec-split > #login { position: sticky; top: 96px; }
.ec-split:has(> #login[hidden]) { display: none; }
.ec-intro { display: grid; gap: 14px; }
.ec-band { padding-top: clamp(28px, 5vw, 56px); }
.ec-intro .crumbs { margin: 0; } .ec-intro .eyebrow { margin: 0; } .ec-intro h1 { margin: 0; font: 800 clamp(28px, 3.6vw, 46px)/1.08 var(--display); } .ec-intro h1 em { font-style: normal; color: var(--accent); }
.ec-lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.ec-points { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ec-points li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.ec-points span { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-size: 19px; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.ec-points b { display: block; font-size: 15px; } .ec-points small { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.ec-illu { width: 100%; height: auto; max-width: 520px; justify-self: center; }
.ec-split #login { width: 100%; }
.ec-split #login .member-box, .ec-split #login .sim-form { box-shadow: 0 24px 60px rgb(0 0 0 / .35), inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, var(--line)); }
@media (max-width: 900px) { .ec-split { grid-template-columns: 1fr; } .ec-split #login { order: -1; } .ec-points { grid-template-columns: 1fr; } }

/* ── Téléphone GRD (bas gauche) : notifications + application « Être rappelé » ──────────────────── */
.callback-fab { display: none !important; }
.phn { position: fixed; z-index: 86; left: max(16px, env(safe-area-inset-left, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); font-family: var(--body); }
.phn-mini { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border: 0; border-radius: 22px; color: var(--fg); cursor: pointer; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); box-shadow: 0 14px 34px rgb(0 0 0 / .4), inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, var(--line)); transition: transform .2s; }
.phn-mini:hover { transform: translateY(-2px); }
.phn-mini-dev { position: relative; display: grid; place-items: center; width: 34px; height: 56px; border-radius: 10px; background: #050f13; box-shadow: inset 0 0 0 2px #2a4650; overflow: hidden; }
.phn-mini-dev i { position: absolute; top: 4px; left: 50%; width: 10px; height: 3px; margin-left: -5px; border-radius: 3px; background: #2a4650; }
.phn-mini-ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #052e1a; background: #34d399; box-shadow: 0 0 0 0 rgb(52 211 153 / .6); animation: phn-pulse 2.4s infinite; }
.phn-mini-ic svg { width: 14px; height: 14px; }
@keyframes phn-pulse { 0% { box-shadow: 0 0 0 0 rgb(52 211 153 / .55); } 70%, 100% { box-shadow: 0 0 0 10px rgb(52 211 153 / 0); } }
.phn-lbl { display: grid; text-align: left; line-height: 1.15; } .phn-lbl b { font-size: 14.5px; } .phn-lbl small { font-size: 12px; color: var(--muted); }
.phn-badge { position: absolute; top: -6px; left: 26px; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; font: 800 12px var(--body); color: #fff; background: var(--red); box-shadow: 0 0 0 3px var(--bg); }
.phn.buzz .phn-mini-dev { animation: phn-buzz .5s 2; }
@keyframes phn-buzz { 0%, 100% { transform: none; } 20% { transform: rotate(-9deg); } 40% { transform: rotate(8deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }
.phn-peek { position: absolute; left: 0; bottom: 78px; width: min(290px, calc(100vw - 32px)); display: grid; gap: 2px; padding: 12px 14px; border-radius: 18px; background: var(--surface); box-shadow: 0 18px 40px rgb(0 0 0 / .45), inset 0 0 0 1px var(--line); cursor: pointer; animation: gc-pop .4s cubic-bezier(.2, 1.4, .4, 1); }
.phn-peek b { font: 700 14px var(--display); } .phn-peek span { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.phn-dev { position: absolute; left: 0; bottom: 78px; animation: phn-up .4s cubic-bezier(.2, 1.15, .4, 1); }
@keyframes phn-up { from { opacity: 0; transform: translateY(24px) scale(.94); transform-origin: 0 100%; } }
.phn-frame { position: relative; width: 300px; height: min(610px, calc(100dvh - 120px)); padding: 10px; border-radius: 48px; background: linear-gradient(145deg, #2b4049, #0a1a20 40%, #13262d); box-shadow: 0 40px 80px rgb(0 0 0 / .6), inset 0 0 0 2px rgb(255 255 255 / .08), 0 0 0 1px #000; display: grid; grid-template-rows: 1fr auto; }
.phn-island { position: absolute; z-index: 3; top: 20px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #000; }
.phn-status { position: absolute; z-index: 2; top: 22px; left: 34px; right: 30px; display: flex; justify-content: space-between; align-items: center; font: 700 13px var(--body); color: #fff; }
.phn-status span { display: flex; gap: 6px; align-items: center; } .phn-status .sig { width: 16px; height: 10px; background: linear-gradient(90deg, #fff 0 22%, transparent 22% 26%, #fff 26% 48%, transparent 48% 52%, #fff 52% 74%, transparent 74% 78%, #fff 78%); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.phn-status .bat { position: relative; width: 22px; height: 11px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px #fff; } .phn-status .bat::after { content: ""; position: absolute; inset: 2.5px 6px 2.5px 2.5px; border-radius: 1px; background: #34d399; }
.phn-screen { position: relative; overflow: hidden; border-radius: 38px 38px 0 0; background: radial-gradient(260px 200px at 20% 10%, rgb(53 208 195 / .45), transparent 70%), radial-gradient(260px 240px at 90% 70%, rgb(255 180 63 / .38), transparent 70%), linear-gradient(170deg, #0e3540, #071a20 70%); }
.phn-lock { height: 100%; overflow-y: auto; padding: 58px 12px 12px; display: grid; align-content: start; gap: 10px; scrollbar-width: none; }
.phn-clock { display: grid; justify-items: center; margin: 6px 0 10px; color: #fff; text-shadow: 0 2px 16px rgb(0 0 0 / .35); }
.phn-clock b { font: 700 54px/1 var(--display); letter-spacing: -.02em; } .phn-clock small { margin-top: 4px; font-weight: 600; font-size: 14px; text-transform: capitalize; opacity: .9; }
.phn-list { display: grid; gap: 8px; }
.phn-n { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 11px 30px 11px 11px; border-radius: 20px; color: #fff; background: rgb(255 255 255 / .14); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); animation: gc-in .35s ease both; }
.phn-n.link { cursor: pointer; } .phn-n.link:hover { background: rgb(255 255 255 / .2); }
.phn-n-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; overflow: hidden; color: #052e1a; background: #34d399; } .phn-n-ic img { width: 34px; height: 34px; } .phn-n-ic svg { width: 18px; height: 18px; }
.phn-n-head { display: flex; gap: 8px; align-items: baseline; } .phn-n-head b { flex: 1; min-width: 0; font-size: 13.5px; } .phn-n-head time { flex: none; font-size: 11.5px; opacity: .7; }
.phn-n p { margin: 2px 0 0; font-size: 13px; line-height: 1.4; opacity: .92; overflow-wrap: anywhere; }
.phn-n-act { display: flex; gap: 6px; margin-top: 8px; } .phn-n-act button { padding: 6px 12px; border: 0; border-radius: 999px; font: 800 12.5px var(--body); color: #fff; background: rgb(255 255 255 / .18); cursor: pointer; } .phn-n-act .pri { color: var(--accent-ink); background: var(--accent); }
.phn-n-x { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border: 0; border-radius: 50%; color: #fff; background: rgb(0 0 0 / .25); font-size: 15px; line-height: 1; cursor: pointer; opacity: .75; }
.phn-empty { margin: 30px 0 0; text-align: center; color: rgb(255 255 255 / .6); font-size: 14px; }
.phn-clear { justify-self: center; padding: 6px 14px; border: 0; border-radius: 999px; font: 700 12.5px var(--body); color: #fff; background: rgb(255 255 255 / .14); cursor: pointer; }
.phn-app { height: 100%; overflow-y: auto; padding: 56px 14px 14px; background: linear-gradient(180deg, #0e2b34, #071a20); color: var(--fg); }
.phn-app header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .phn-app header b { font: 800 18px var(--display); }
.phn-back { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; color: var(--fg); background: var(--line); cursor: pointer; } .phn-back svg { width: 18px; height: 18px; }
.phn-form { display: grid; gap: 10px; } .phn-form p { margin: 0; font-size: 14px; color: var(--muted); }
.phn-form input, .phn-form select { width: 100%; }
.phn-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .phn-slots input { position: absolute; opacity: 0; }
.phn-slots span { display: grid; place-items: center; min-height: 40px; padding: 4px 6px; border-radius: 12px; text-align: center; font: 700 12.5px var(--body); background: var(--bg-2); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.phn-slots input:checked + span { color: var(--accent-ink); background: var(--accent); box-shadow: none; } .phn-slots input:focus-visible + span { outline: 2px solid var(--teal); }
.phn-msg { color: #ffb4a9 !important; }
.phn-dock { display: flex; justify-content: space-around; padding: 10px 8px 22px; border-radius: 0 0 38px 38px; background: rgb(255 255 255 / .1); backdrop-filter: blur(14px); }
.phn-dock button { display: grid; justify-items: center; gap: 4px; border: 0; background: none; color: #fff; font: 700 11px var(--body); cursor: pointer; }
.phn-dock button svg { box-sizing: content-box; width: 22px; height: 22px; padding: 11px; border-radius: 15px; transition: transform .2s; } .phn-dock button:hover svg { transform: translateY(-2px); }
.phn-dock .a-call svg { color: #052e1a; background: #34d399; } .phn-dock .a-notif svg { color: var(--accent-ink); background: var(--accent); } .phn-dock .a-chat svg { color: #fff; background: #3b82f6; }
.phn-home { position: absolute; bottom: 14px; left: 50%; width: 110px; height: 5px; margin-left: -55px; padding: 0; border: 0; border-radius: 3px; background: rgb(255 255 255 / .75); cursor: pointer; }
@media (max-width: 560px) { .phn-lbl small { display: none; } .phn-mini { padding-right: 12px; } .phn-frame { width: min(300px, calc(100vw - 32px)); } }
@media (prefers-reduced-motion: reduce) { .phn-mini-ic, .phn.buzz .phn-mini-dev, .phn-dev, .phn-n { animation: none; } }
/* QR code de la double authentification (assets/qrcode.js) : toujours noir sur blanc pour être lisible */
.qr-setup { display: flex; flex-wrap: wrap; gap: 16px 22px; align-items: center; }
.qr-setup .sec-steps { flex: 1 1 260px; margin: 0; }
.qr-box { flex: none; padding: 10px; border-radius: 14px; background: #fff; line-height: 0; box-shadow: 0 0 0 1px var(--line); }
.qr-box .qr-code { display: block; width: 200px; height: 200px; }
.qr-alt { font-size: 14px; } .qr-alt summary { cursor: pointer; color: var(--muted); }
.qr-alt p { margin: 6px 0 0; }
@media (max-width: 420px) { .qr-setup { justify-content: center; } .qr-box .qr-code { width: 180px; height: 180px; } }

/* Espace client : sélecteur « Je suis » Client / Support client / Admin */
.role-pick { display: grid; gap: 6px; margin-bottom: 14px; }
.role-pick .seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.role-pick .seg button { min-height: 42px; padding: 8px 6px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: 700 14px var(--body); cursor: pointer; }
.role-pick .seg button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); }
.role-pick .seg button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
#m-2fa, .da-form, #sec-setup { scroll-margin-top: 96px; }

/* ── Ma sécurité (équipe) ────────────────────────────────────────────────────────────────────── */
.se-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding: 20px 22px; margin-bottom: 16px; border-radius: 22px; background: linear-gradient(120deg, color-mix(in srgb, var(--teal) 16%, var(--bg-2)), var(--bg-2) 55%, color-mix(in srgb, var(--accent) 12%, var(--bg-2))); box-shadow: inset 0 0 0 1px var(--line); }
.se-ava { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; font: 800 22px var(--display); color: var(--accent-ink); background: linear-gradient(135deg, #ffcc66, var(--accent)); box-shadow: 0 12px 28px rgb(255 180 63 / .3); }
.se-who { flex: 1; min-width: 200px; } .se-who h2 { margin: 0; font: 800 clamp(22px, 3vw, 30px)/1.1 var(--display); } .se-who p { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.se-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.se-mfa-head { display: flex; gap: 14px; align-items: flex-start; } .se-mfa-head h3 { margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .se-mfa-head .hint { margin: 0; }
.se-shield { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.se-mfa.on .se-shield { color: #34d399; background: color-mix(in srgb, #34d399 15%, transparent); animation: se-pulse 3s ease-in-out infinite; }
.se-shield svg { width: 30px; height: 30px; }
@keyframes se-pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, #34d399 10%, transparent); } }
.se-facts { list-style: none; margin: 16px 0 10px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.se-facts li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.se-facts span { font-size: 12px; color: var(--muted); } .se-facts b { font-size: 14px; } .se-facts li.low { box-shadow: inset 0 0 0 1.5px var(--accent); }
.se-more { margin-top: 10px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.se-more summary { cursor: pointer; padding: 12px 14px; font-weight: 700; } .se-more[open] summary { border-bottom: 1px solid var(--line); }
.se-more .sim-form { padding: 14px; box-shadow: none; background: none; }
.se-devices { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.se-devices li { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.se-devices li.cur { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--teal) 60%, transparent); }
.se-devices li > div { flex: 1; min-width: 0; } .se-devices p { margin: 4px 0; display: flex; gap: 6px; flex-wrap: wrap; } .se-devices small { color: var(--muted); font-size: 12.5px; }
.se-dev-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--teal); background: color-mix(in srgb, var(--teal) 14%, transparent); } .se-dev-ico svg { width: 22px; height: 22px; }
.se-codes { max-width: 720px; margin: 0 auto; display: grid; justify-items: center; gap: 14px; padding: clamp(22px, 4vw, 36px); text-align: center; border-radius: 26px; background: var(--bg-2); box-shadow: 0 24px 60px rgb(0 0 0 / .35), inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 35%, var(--line)); }
.se-codes h2 { margin: 0; font: 800 clamp(22px, 3vw, 30px) var(--display); } .se-codes p { margin: 0; max-width: 560px; color: var(--muted); line-height: 1.55; }
.se-codes-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; color: #34d399; background: color-mix(in srgb, #34d399 15%, transparent); } .se-codes-ico svg { width: 34px; height: 34px; }
.se-code-grid { list-style: none; counter-reset: c; margin: 6px 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.se-code-grid li { counter-increment: c; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.se-code-grid li::before { content: counter(c, decimal-leading-zero); font: 700 12px var(--mono); color: var(--muted); }
.se-code-grid code { font: 700 18px var(--mono); letter-spacing: .06em; color: var(--fg); }
.se-kept { justify-content: center; font-weight: 700; }
@media (max-width: 900px) { .se-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .se-facts { grid-template-columns: 1fr; } .se-code-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .se-mfa.on .se-shield { animation: none; } }

/* ── Services › Particuliers : illustration vivante (votre numéro sonne sur chaque appareil) ───── */
.orbit-live .ring { animation-direction: var(--dir, normal); border-color: color-mix(in srgb, var(--teal) 28%, transparent); }
/* Chaque étiquette tourne en sens inverse de son cercle (reste lisible) et sonne à son tour (cycle de 6 s). */
.orbit-live .ring span.dev { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 9px; font-size: 12.5px; box-shadow: inset 0 0 0 1px var(--line), 0 10px 24px rgb(0 0 0 / .35);
  animation: spin var(--d) linear infinite reverse, dev-flash 6s steps(1, end) infinite; animation-delay: 0s, calc(var(--k) * 2s); }
.orbit-live .ring[style*="reverse"] span.dev { animation: spin var(--d) linear infinite, dev-flash 6s steps(1, end) infinite; animation-delay: 0s, calc(var(--k) * 2s); }
.orbit-live .dev svg { width: 16px; height: 16px; color: currentColor; }
.orbit-live .dev em { display: none; }
.orbit-live .dev::after { content: ""; position: absolute; inset: -4px; border-radius: 14px; border: 2px solid var(--accent); opacity: 0; animation: dev-ring 6s ease-out infinite; animation-delay: calc(var(--k) * 2s); }
@keyframes dev-flash { 0% { background: var(--accent); color: var(--accent-ink); } 33.3% { background: var(--surface); color: var(--fg); } }
@keyframes dev-ring { 0%, 33%, 100% { opacity: 0; transform: scale(1); } 4% { opacity: 1; } 30% { opacity: 0; transform: scale(1.25); } }
.orbit-live .core { box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 45%, transparent); animation: core-beat 2s ease-in-out infinite; }
.orbit-live .core-ic { display: grid; place-items: center; margin-bottom: 4px; } .orbit-live .core-ic svg { width: 22px; height: 22px; animation: core-shake 2s ease-in-out infinite; }
@keyframes core-beat { 50% { transform: scale(1.05); } }
@keyframes core-shake { 0%, 60%, 100% { transform: none; } 65% { transform: rotate(-14deg); } 72% { transform: rotate(12deg); } 79% { transform: rotate(-8deg); } 86% { transform: rotate(5deg); } }
.orbit-live .wave { position: absolute; inset: 36%; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 70%, transparent); animation: wave-out 3s ease-out infinite; animation-delay: calc(var(--w, 0) * 1s); pointer-events: none; }
@keyframes wave-out { from { transform: scale(1); opacity: .8; } to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .orbit-live .wave, .orbit-live .core, .orbit-live .core-ic svg, .orbit-live .dev::after { animation: none; } .orbit-live .ring span.dev { animation: none; } }
@media (max-width: 600px) { .orbit-live .core { font-size: 12.5px; inset: 33%; } .orbit-live .core-ic { margin-bottom: 2px; } .orbit-live .core-ic svg { width: 18px; height: 18px; } .orbit-live .wave { inset: 33%; } }

/* ── Menu : typographie Sora, icône par rubrique, rubrique active en pastille lumineuse ────────── */
:root { --nav-font: "Sora", "Manrope", system-ui, sans-serif; }
.top .nav > a, .top .nav .dd-btn, .top .nav-btn { display: inline-flex; align-items: center; gap: 8px; position: relative; padding: 9px 14px; border-radius: 12px; font: 600 14px/1 var(--nav-font); letter-spacing: .01em; color: var(--muted); transition: color .2s, background .2s, box-shadow .2s, transform .2s; }
.top .nav .nav-ico, .top .nav-btn .nav-ico { flex: none; width: 17px; height: 17px; opacity: .85; transition: transform .25s cubic-bezier(.2, 1.4, .4, 1), color .2s; }
.top .nav > a:hover, .top .nav .dd-btn:hover, .top .nav .dd[data-open] > .dd-btn { color: var(--fg); background: color-mix(in srgb, var(--fg) 7%, transparent); }
.top .nav > a:hover .nav-ico, .top .nav .dd-btn:hover .nav-ico, .top .nav .dd[data-open] > .dd-btn .nav-ico { color: var(--teal); transform: translateY(-1px) scale(1.12); opacity: 1; }
/* Rubrique de la page en cours : dégradé discret, liseré ambre et petit trait lumineux dessous. */
.top .nav > a[aria-current="page"], .top .nav .dd.cur > .dd-btn { color: var(--fg); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--teal) 10%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 6px 18px color-mix(in srgb, var(--accent) 14%, transparent); }
.top .nav > a[aria-current="page"] .nav-ico, .top .nav .dd.cur > .dd-btn .nav-ico { color: var(--accent); opacity: 1; }
.top .nav > a[aria-current="page"]::after, .top .nav .dd.cur > .dd-btn::before { content: ""; position: absolute; left: 50%; bottom: -7px; width: 18px; height: 3px; margin-left: -9px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.top .nav .dd-btn::after { margin-left: 2px; }
.top .nav-btn { color: var(--fg); padding: 0 18px; white-space: nowrap; } .top .nav-btn .nav-ico { color: var(--teal); }
@media (max-width: 1180px) { .top .nav-btn { display: none; } }
/* Sous-menus : chaque lien a sa vignette d'icône. */
.nav .dd-panel a.dd-item { display: flex; align-items: center; gap: 12px; }
.dd-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 22%, transparent); transition: transform .25s cubic-bezier(.2, 1.4, .4, 1), background .2s, color .2s; }
.dd-ico .nav-ico { width: 19px; height: 19px; }
.dd-txt { display: grid; gap: 2px; min-width: 0; } .dd-txt b { font: 600 14px/1.25 var(--nav-font); }
.nav .dd-panel a.dd-item:hover .dd-ico, .nav .dd-panel a.dd-item[aria-current="page"] .dd-ico { color: var(--accent-ink); background: var(--accent); box-shadow: none; transform: scale(1.06) rotate(-4deg); }
@media (max-width: 1180px) {
  .top .nav > a, .top .nav .dd-btn { width: 100%; padding: 12px; }
  .top .nav > a[aria-current="page"]::after, .top .nav .dd.cur > .dd-btn::before { display: none; }
  .top .nav .dd-btn { color: var(--teal); font: 700 12.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; background: none !important; box-shadow: none !important; }
  .top .nav .dd-btn .nav-ico { display: none; }
}

/* ── Téléphone GRD : miniature = vrai petit smartphone (même dessin que le grand) ──────────────── */
.phn-mini { padding: 0; gap: 0; border-radius: 22px; background: none; box-shadow: none; backdrop-filter: none; }
.phn-mini:hover { transform: translateY(-3px) rotate(-2deg); }
.phn-mini-dev { position: relative; display: block; width: 82px; height: 164px; padding: 4px; border-radius: 20px; overflow: visible; background: linear-gradient(145deg, #2b4049, #0a1a20 40%, #13262d); box-shadow: 0 16px 34px rgb(0 0 0 / .5), inset 0 0 0 1.5px rgb(255 255 255 / .08), 0 0 0 1px #000; }
.phn-mini-dev::before { content: ""; position: absolute; inset: 4px; border-radius: 16px; background: radial-gradient(70px 60px at 20% 10%, rgb(53 208 195 / .5), transparent 70%), radial-gradient(70px 70px at 90% 70%, rgb(255 180 63 / .42), transparent 70%), linear-gradient(170deg, #0e3540, #071a20 70%); }
.phn-mini-dev > span { position: absolute; z-index: 1; }
.pm-island { top: 8px; left: 50%; width: 24px; height: 7px; margin-left: -12px; border-radius: 6px; background: #000; }
.pm-status { top: 8px; left: 9px; right: 8px; display: flex; justify-content: flex-end; align-items: center; gap: 3px; color: #fff; }
.pm-status b { margin-right: auto; font: 800 6.5px/1 var(--body); letter-spacing: .04em; }
.pm-status .sig { width: 7px; height: 5px; background: #fff; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.pm-status .bat { width: 9px; height: 5px; border-radius: 1.5px; box-shadow: inset 0 0 0 1px #fff; background: linear-gradient(90deg, #34d399 70%, transparent 70%); }
.pm-clock { top: 26px; left: 0; right: 0; text-align: center; font: 700 19px/1 var(--display); color: #fff; letter-spacing: -.02em; }
.pm-date { top: 48px; left: 0; right: 0; text-align: center; font: 600 7px/1 var(--body); color: rgb(255 255 255 / .85); text-transform: capitalize; }
.pm-notes { top: 62px; left: 9px; right: 9px; display: grid; gap: 4px; }
.pm-notes i { display: block; height: 15px; border-radius: 6px; background: rgb(255 255 255 / .16); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
.pm-notes i::before { content: ""; display: block; width: 9px; height: 9px; margin: 3px; border-radius: 3px; background: #34d399; }
.pm-notes i + i::before { background: var(--accent); }
.pm-dock { bottom: 14px; left: 8px; right: 8px; display: flex; justify-content: space-around; padding: 4px 0; border-radius: 8px; background: rgb(255 255 255 / .1); }
.pm-dock i { width: 12px; height: 12px; border-radius: 4px; } .pm-dock .c1 { background: #34d399; } .pm-dock .c2 { background: var(--accent); } .pm-dock .c3 { background: #3b82f6; }
.pm-home { bottom: 7px; left: 50%; width: 30px; height: 2.5px; margin-left: -15px; border-radius: 2px; background: rgb(255 255 255 / .75); }
.phn-mini .phn-badge { top: -6px; left: auto; right: -6px; }
.phn-mini-ic, .phn-lbl { display: none !important; }
/* Ouvert : le grand téléphone prend la place de la miniature, en grandissant depuis le même coin. */
.phn .phn-dev { bottom: 0; transform-origin: 0 100%; animation: phn-grow .38s cubic-bezier(.2, 1.1, .35, 1); }
@keyframes phn-grow { from { opacity: .4; transform: scale(.27); } }
.phn.open .phn-mini { opacity: 0; pointer-events: none; }
.phn-peek { bottom: 176px; }
.phn-status .carrier { font: 800 12px var(--body); letter-spacing: .04em; margin-right: 2px; }
@media (max-width: 560px) { .phn-mini-dev { width: 66px; height: 132px; } .pm-clock { top: 22px; font-size: 15px; } .pm-date { top: 40px; } .pm-notes { top: 52px; } .pm-notes i { height: 12px; } .pm-notes i::before { width: 7px; height: 7px; margin: 2.5px; } .phn-peek { bottom: 144px; } }
@media (prefers-reduced-motion: reduce) { .phn .phn-dev { animation: none; } }
/* Démo de l'accueil : écran du composeur et réglages de la voix */
.demo-dial { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, #000 22%, var(--bg-2)); box-shadow: inset 0 0 0 1px var(--line); }
.dial-lbl { font: 700 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
#demo-dial { flex: 1; min-width: 0; font: 700 20px/1 var(--mono); letter-spacing: .06em; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dial-del, .dial-voice { flex: none; height: 32px; padding: 0 10px; border: 0; border-radius: 10px; font: 700 13px var(--body); color: var(--fg); background: var(--line); cursor: pointer; }
.dial-voice[aria-expanded="true"] { color: var(--accent-ink); background: var(--accent); }
.voice-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 14px; align-items: end; margin-top: 8px; padding: 12px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.voice-panel input[type="range"] { width: 100%; accent-color: var(--accent); }
.voice-panel .hint { grid-column: 1 / -1; margin: 0; font-size: 12.5px; }

/* ── Calendrier de l'entreprise (Administration › Rendez-vous), style agenda ─────────────────── */
.rel-client { --rel: #34a853; } .rel-prospect { --rel: #4f8df5; } .rel-demarchage { --rel: #f29900; }
.cal { display: grid; gap: 12px; }
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cal-bar .btn { padding: 9px 16px; }
.cal-create { border-radius: 16px; }
.cal-nav { display: inline-flex; gap: 2px; }
.cal-nav button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--fg); font: 700 22px/1 var(--body); cursor: pointer; }
.cal-nav button:hover { background: var(--line); }
.cal-title { margin: 0; font: 600 20px var(--body); text-transform: capitalize; flex: 1 1 auto; }
.cal-views { display: inline-flex; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); overflow: hidden; }
.cal-views button { padding: 8px 14px; border: 0; background: transparent; color: var(--muted); font: 700 13.5px var(--body); cursor: pointer; }
.cal-views button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--fg); }
.cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13.5px; color: var(--muted); }
.cal-legend label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.cal-legend i, .cal-rel i, .cal-sheet header i, .cal-prow i, .cal-ev i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: var(--rel, var(--muted)); flex: none; }
.cal-hint { margin-left: auto; font-size: 12.5px; }
/* Semaine / jour */
.cal-grid { border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); background: color-mix(in srgb, var(--surface) 55%, transparent); overflow: hidden; }
.cal-ghead, .cal-gbody { display: grid; grid-template-columns: 52px repeat(var(--cols), minmax(0, 1fr)); }
.cal-ghead { border-bottom: 1px solid var(--line); }
.cal-dh { display: grid; justify-items: center; gap: 2px; padding: 8px 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.cal-dh small { font: 700 11px var(--body); text-transform: uppercase; letter-spacing: .06em; }
.cal-dh b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font: 600 20px var(--body); color: var(--fg); }
.cal-dh.today small { color: var(--accent); } .cal-dh.today b { background: var(--accent); color: var(--accent-ink); }
.cal-gbody { max-height: 620px; overflow-y: auto; position: relative; }
.cal-hours span { display: block; height: var(--row); padding-right: 8px; text-align: right; font: 600 11px var(--mono); color: var(--muted); transform: translateY(-7px); }
.cal-hours span:first-child { visibility: hidden; }
.cal-col { position: relative; border-left: 1px solid var(--line); }
.cal-col.today { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.cal-slot { height: var(--row); border-top: 1px solid var(--line); cursor: pointer; }
.cal-slot:hover { background: color-mix(in srgb, var(--fg) 5%, transparent); }
.cal-block { position: absolute; display: grid; align-content: start; gap: 1px; padding: 3px 7px; border: 0; border-radius: 8px; overflow: hidden; text-align: left; cursor: pointer; background: var(--rel); color: #fff; font: 600 12.5px/1.25 var(--body); box-shadow: 0 1px 3px rgb(0 0 0 / .3); z-index: 1; }
.cal-block b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-block small { font-size: 11.5px; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-block:hover { filter: brightness(1.08); z-index: 2; }
.st-demande.cal-block, .st-demande.cal-ev { background: repeating-linear-gradient(135deg, var(--rel) 0 8px, color-mix(in srgb, var(--rel) 70%, #fff) 8px 16px); }
.st-annule.cal-block, .st-annule.cal-ev, .st-annule.cal-prow { opacity: .5; text-decoration: line-through; }
.st-termine.cal-block { background: color-mix(in srgb, var(--rel) 55%, var(--bg)); }
.cal-now { position: absolute; left: 0; right: 0; height: 2px; background: #ea4335; z-index: 3; pointer-events: none; }
.cal-now::before { content: ""; position: absolute; left: -6px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: #ea4335; }
/* Mois */
.cal-month { border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.cal-mhead, .cal-mbody { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-mhead span { padding: 8px 0; text-align: center; font: 700 11px var(--body); text-transform: uppercase; color: var(--muted); }
.cal-cell { display: grid; align-content: start; gap: 2px; min-height: 108px; padding: 4px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); cursor: pointer; min-width: 0; }
.cal-cell:nth-child(7n + 1) { border-left: 0; }
.cal-cell.out { background: color-mix(in srgb, var(--bg) 50%, transparent); } .cal-cell.out .cal-num { color: var(--muted); }
.cal-num { justify-self: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--fg); font: 600 13px var(--body); cursor: pointer; }
.cal-num:hover { background: var(--line); }
.cal-cell.today .cal-num { background: var(--accent); color: var(--accent-ink); }
.cal-ev { display: flex; align-items: center; gap: 5px; width: 100%; padding: 2px 6px; border: 0; border-radius: 6px; background: color-mix(in srgb, var(--rel) 20%, transparent); color: var(--fg); font: 500 12px/1.4 var(--body); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cal-ev i { width: 8px; height: 8px; border-radius: 50%; }
.cal-ev:hover { background: color-mix(in srgb, var(--rel) 35%, transparent); }
.cal-more { border: 0; background: none; color: var(--muted); font: 700 12px var(--body); text-align: left; padding: 2px 6px; cursor: pointer; }
/* Planning */
.cal-plan { display: grid; gap: 4px; }
.cal-plan section { display: grid; grid-template-columns: 170px 1fr; gap: 4px 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.cal-plan h4 { margin: 0; font: 500 13px var(--body); color: var(--muted); text-transform: capitalize; grid-row: span 20; }
.cal-plan h4 b { font: 600 22px var(--body); color: var(--fg); margin-right: 6px; }
.cal-prow { display: grid; grid-template-columns: 12px 130px 1fr; align-items: start; gap: 10px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--fg); text-align: left; cursor: pointer; font: 500 14px var(--body); }
.cal-prow:hover { background: var(--line); }
.cal-prow i { margin-top: 4px; border-radius: 50%; }
.cal-prow .t { color: var(--muted); font-size: 13px; }
.cal-prow small { display: block; color: var(--muted); font-size: 12.5px; }
/* Fiche */
.cal-dialog { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgb(0 0 0 / .45); }
.cal-dialog[hidden] { display: none; }
.cal-sheet { width: min(640px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; border-radius: 22px; background: var(--bg-2); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.cal-sheet header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 16px 20px; background: var(--bg-2); border-bottom: 3px solid var(--rel, var(--line)); }
.cal-sheet header h3 { margin: 0; flex: 1; font-size: 18px; }
.cal-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--line); color: var(--fg); font-size: 22px; cursor: pointer; }
.cal-form { margin: 0; border-radius: 0; box-shadow: none; background: none; }
.cal-rel { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-rel label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; font-weight: 700; }
.cal-rel input { position: absolute; opacity: 0; pointer-events: none; }
.cal-rel label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--rel); background: color-mix(in srgb, var(--rel) 16%, transparent); }
.cal-rel label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.cal-found { display: grid; gap: 4px; }
.cal-pick { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; padding: 8px 12px; border: 0; border-radius: 10px; background: var(--line); color: var(--fg); text-align: left; cursor: pointer; }
.cal-pick small { grid-column: 2; color: var(--muted); }
.cal-pick:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.cal-visio { display: flex; flex-wrap: wrap; gap: 8px; } .cal-visio input { flex: 1 1 240px; } .cal-visio .btn { padding: 9px 14px; }
.cal-msg p { margin: 4px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--line); white-space: pre-wrap; }
.cal-del { color: var(--red); }
@media (max-width: 760px) {
  .cal-title { flex-basis: 100%; order: 3; font-size: 17px; }
  .cal-hint { display: none; }
  .cal-ghead, .cal-gbody { grid-template-columns: 40px repeat(var(--cols), minmax(0, 1fr)); }
  .cal-dh b { width: 28px; height: 28px; font-size: 15px; }
  .cal-block small { display: none; }
  .cal-cell { min-height: 72px; } .cal-ev b { display: none; }
  .cal-plan section { grid-template-columns: 1fr; } .cal-plan h4 { grid-row: auto; }
  .cal-prow { grid-template-columns: 12px 1fr; } .cal-prow .t { grid-column: 2; }
}
/* Page « Mon rendez-vous » (lien reçu par e-mail) */
.rc-card { padding: 18px 20px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 8%, transparent); box-shadow: inset 4px 0 0 var(--accent); }
.rc-card h3 { margin: 4px 0 10px; text-transform: capitalize; }
.rc-card p { margin: 6px 0; }
.rc-days { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-cancel, .rc-danger.btn-primary { color: var(--red); } .rc-danger.btn-primary { background: var(--red); color: #fff; box-shadow: none; }
.cal-block.short { display: flex; align-items: center; gap: 6px; padding-block: 0; }
.cal-block.short b { flex: 0 1 auto; min-width: 0; } .cal-block.short small { flex: 1 1 0; min-width: 0; }
.cal-block.short small + small { display: none; }
/* ── Agenda plein écran pour la tablette (agenda.html) — cible : tablette 11" (≈ 1280 × 800) ──────── */
.ag-page { margin: 0; height: 100dvh; overflow: hidden; background: radial-gradient(1200px 700px at 85% -10%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%), var(--bg); color: var(--fg); -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
.ag-shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; height: 100dvh; padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); box-sizing: border-box; }
.ag-side { display: flex; flex-direction: column; gap: 14px; min-height: 0; padding: 18px 16px; border-radius: 24px; background: color-mix(in srgb, var(--surface) 60%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.ag-logo { width: 190px; height: auto; align-self: center; }
.ag-clock { display: grid; justify-items: center; gap: 2px; }
.ag-clock b { font: 700 64px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ag-clock span { font: 600 16px var(--body); color: var(--muted); text-transform: capitalize; }
.ag-new { min-height: 56px; font-size: 17px; border-radius: 18px; }
.ag-today { display: flex; flex-direction: column; gap: 8px; min-height: 0; flex: 1; }
.ag-today h2 { margin: 0; font: 700 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
#ag-list { display: grid; align-content: start; gap: 8px; overflow-y: auto; min-height: 0; padding-right: 2px; }
.ag-item { position: relative; display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 10px; min-height: 60px; padding: 8px 12px 8px 14px; border: 0; border-radius: 16px; background: color-mix(in srgb, var(--rel) 16%, var(--bg-2)); color: var(--fg); text-align: left; cursor: pointer; box-shadow: inset 4px 0 0 var(--rel); }
.ag-item .t { font: 700 17px var(--mono); }
.ag-item .w b { display: block; font: 700 15px/1.25 var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-item .w small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-item em { position: absolute; top: 6px; right: 8px; padding: 2px 8px; border-radius: 999px; background: #ea4335; color: #fff; font: 700 10.5px var(--body); font-style: normal; text-transform: uppercase; }
.ag-item.live { box-shadow: inset 4px 0 0 var(--rel), 0 0 0 2px var(--rel); }
.ag-item.past { opacity: .55; }
.ag-empty { margin: 0; color: var(--muted); font-size: 15px; }
.ag-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ag-tool { display: grid; justify-items: center; gap: 4px; min-height: 64px; padding: 8px 4px; border: 0; border-radius: 16px; background: var(--line); color: var(--fg); text-decoration: none; text-align: center; cursor: pointer; font: inherit; }
.ag-tool span { font-size: 22px; line-height: 1; }
.ag-tool b { font: 700 11.5px/1.2 var(--body); }
.ag-tool[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 26%, transparent); }
.ag-sync { margin: 0; text-align: center; font: 600 11.5px var(--mono); color: var(--muted); }
.ag-main { min-width: 0; min-height: 0; display: grid; }
.ag-cal[hidden] { display: none; }
.ag-login { display: grid; place-items: center; }
.ag-login-form { width: min(440px, 100%); }
.ag-login-logo { width: 200px; height: auto; }
/* Calendrier en mode tablette : grandes cibles pour le doigt, grille sans défilement */
.cal-tablet { gap: 10px; }
.cal-tablet .cal-bar { gap: 8px; }
.cal-tablet .cal-create { display: none; }
.cal-tablet .cal-bar .btn { min-height: 48px; padding: 10px 18px; font-size: 15px; }
.cal-tablet .cal-nav button { width: 48px; height: 48px; font-size: 28px; }
.cal-tablet .cal-title { font-size: 22px; }
.cal-tablet .cal-views button { min-height: 48px; padding: 10px 18px; font-size: 15px; }
.cal-tablet .cal-legend { font-size: 14.5px; gap: 6px 18px; }
.cal-tablet .cal-legend input { width: 22px; height: 22px; }
.cal-tablet .cal-hint { display: none; }
.cal-tablet .cal-gbody { max-height: none; overflow: hidden; }
.cal-tablet .cal-dh { padding: 6px 0; }
.cal-tablet .cal-dh b { width: 40px; height: 40px; font-size: 21px; }
.cal-tablet .cal-block { border-radius: 10px; padding: 5px 9px; font-size: 14px; }
.cal-tablet .cal-block small { font-size: 12.5px; }
.cal-tablet .cal-month { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.cal-tablet .cal-mbody { grid-template-rows: repeat(6, minmax(0, 1fr)); min-height: 0; }
.cal-tablet .cal-cell { min-height: 0; overflow: hidden; }
.cal-tablet .cal-ev { min-height: 26px; font-size: 13px; }
.cal-tablet .cal-plan { overflow-y: auto; }
.cal-tablet .cal-prow { min-height: 56px; font-size: 15.5px; }
.cal-tablet ~ .cal-dialog .cal-sheet, .cal-tablet + .cal-dialog .cal-sheet { width: min(820px, 100%); }
.ag-page .cal-dialog input:not([type="checkbox"]):not([type="radio"]), .ag-page .cal-dialog select, .ag-page .cal-dialog textarea { min-height: 52px; font-size: 16.5px; }
.ag-page .cal-dialog .check-line input { width: 24px; height: 24px; }
.ag-page .cal-dialog .btn { min-height: 52px; }
/* Emoji et couleur (fiche rendez-vous) */
.cal-look { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 12px; }
.cal-emo-cur { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--rel, var(--accent)) 22%, transparent); font-size: 28px; }
.cal-deco { border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); padding: 10px 12px; }
.cal-deco summary { cursor: pointer; font-weight: 700; }
.cal-deco[open] summary { margin-bottom: 10px; }
.cal-emojis { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cal-emo { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--line); font-size: 22px; line-height: 1; cursor: pointer; color: var(--fg); }
.cal-emo.on { box-shadow: 0 0 0 2px var(--accent); background: color-mix(in srgb, var(--accent) 20%, transparent); }
.cal-emojis input { width: 110px !important; min-height: 44px !important; flex: 0 0 auto; text-align: center; font-size: 20px; }
.cal-colors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.cal-sw { position: relative; cursor: pointer; }
.cal-sw input { position: absolute; opacity: 0; pointer-events: none; }
.cal-sw span { display: block; width: 40px; height: 40px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .15); }
.cal-sw input:checked + span { box-shadow: 0 0 0 3px var(--bg-2), 0 0 0 5px var(--fg); }
.cal-sw input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 4px; }
.cal-sw-auto span { width: auto; height: 40px; padding: 0 14px; display: grid; place-items: center; border-radius: 999px; background: var(--line); font: 700 13px var(--body); }
/* Tablette en portrait (≈ 800 × 1280) : bandeau en haut, calendrier dessous */
@media (orientation: portrait) and (max-width: 1100px) {
  .ag-shell { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .ag-side { display: grid; grid-template-columns: auto auto 1fr; grid-template-areas: "logo clock tools" "new new new" "today today today"; align-items: center; gap: 10px 16px; padding: 12px 14px; }
  .ag-logo { width: 150px; }
  .ag-clock { grid-area: clock; justify-items: start; } .ag-clock b { font-size: 44px; }
  .ag-tools { grid-area: tools; justify-self: end; grid-template-columns: repeat(3, 84px); }
  .ag-new { grid-area: new; }
  .ag-today { grid-area: today; } #ag-list { grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); overflow-x: auto; overflow-y: hidden; }
  .ag-sync { display: none; }
}
/* Petit écran (téléphone) : la page reste utilisable */
@media (max-width: 700px) {
  .ag-page { overflow: auto; height: auto; }
  .ag-shell { height: auto; }
  .ag-side { grid-template-columns: 1fr; grid-template-areas: "logo" "clock" "new" "today" "tools"; }
  .ag-tools { justify-self: stretch; grid-template-columns: repeat(3, 1fr); }
}
.ag-h1 { margin: 0; display: grid; justify-items: center; line-height: 0; } @media (orientation: portrait) and (max-width: 1100px) { .ag-h1 { grid-area: logo; } } @media (max-width: 700px) { .ag-h1 { grid-area: logo; } }
.ag-item .w { min-width: 0; }
.cal-block { grid-auto-rows: max-content; }
/* ── Code à 6 chiffres en 6 cases (double authentification, e-mail) ───────────────────────────── */
.da-code { position: relative; }
.da-back { justify-self: start; width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: var(--line); color: var(--fg); font-size: 20px; cursor: pointer; }
.da-code .eyebrow { margin-top: 0; }
.da-code > h3 { font-size: clamp(24px, 4vw, 30px); margin: 0; }
.c6-field { gap: 10px; }
.c6 { display: grid; grid-template-columns: repeat(6, minmax(0, 56px)); gap: 10px; }
.c6-d { width: 100% !important; height: 60px; min-height: 60px !important; padding: 0 !important; text-align: center; font: 600 24px var(--body) !important; border-radius: 10px !important; background: #000 !important; color: #fff !important; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fg) 30%, transparent) !important; caret-color: var(--accent); }
.c6-d:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent) !important; }
.c6-d.on { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fg) 55%, transparent) !important; }
.c6.bad { animation: c6-shake .35s; } .c6.bad .c6-d { box-shadow: inset 0 0 0 2px var(--red) !important; }
@keyframes c6-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.c6-toggle, .da-resend .linkbtn, .da-code .linkbtn { justify-self: start; padding: 0; border: 0; background: none; color: var(--accent); font: 700 14px var(--body); cursor: pointer; text-decoration: underline; }
.da-resend { margin: 0; }
.da-go { width: 100%; max-width: 420px; justify-self: center; min-height: 52px; border-radius: 999px; }
@media (max-width: 420px) { .c6 { gap: 6px; } .c6-d { height: 52px; min-height: 54px !important; font-size: 21px !important; } }
@media (prefers-reduced-motion: reduce) { .c6.bad { animation: none; } }
/* ── Téléphone GRD : style Samsung Galaxy S Ultra (bords droits, caméra « poinçon », notifications empilées) ── */
.phn-mini-dev { border-radius: 9px; background: linear-gradient(180deg, #5b6068, #2b2e33 30%, #1a1c1f 70%, #4a4e55); box-shadow: 0 14px 34px rgb(0 0 0 / .45), inset 0 0 0 1px rgb(255 255 255 / .18); }
.phn-mini-dev::before { border-radius: 6px; background: radial-gradient(70px 70px at 80% 0%, rgb(255 180 63 / .45), transparent 70%), radial-gradient(80px 80px at 0% 100%, rgb(53 208 195 / .4), transparent 70%), linear-gradient(170deg, #0c2830, #050d10); }
.pm-island { top: 7px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #000; box-shadow: 0 0 0 1px rgb(255 255 255 / .12); }
.pm-status { top: 7px; left: 8px; right: 7px; }
.pm-status b { font-size: 7px; }
.pm-clock { top: 24px; font: 300 22px/1 var(--body); letter-spacing: 0; }
.pm-date { top: 48px; }
.pm-notes i { border-radius: 7px; background: rgb(255 255 255 / .22); }
.pm-notes i + i { width: 90%; justify-self: center; opacity: .75; }
.pm-dock { border-radius: 9px; }
.pm-home { width: 22px; }
.phn-frame { border-radius: 30px; padding: 7px; background: linear-gradient(180deg, #62676f, #2c2f34 18%, #1b1d20 82%, #555960); box-shadow: 0 30px 70px rgb(0 0 0 / .55), inset 0 0 0 1px rgb(255 255 255 / .2), inset 0 0 0 3px #111; }
.phn-frame::before, .phn-frame::after { content: ""; position: absolute; right: -3px; width: 3px; border-radius: 0 2px 2px 0; background: #4a4e55; }
.phn-frame::before { top: 110px; height: 56px; } .phn-frame::after { top: 182px; height: 34px; }
.phn-island { top: 17px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: #000; box-shadow: 0 0 0 2px rgb(255 255 255 / .06); }
.phn-screen { border-radius: 24px 24px 0 0; background: radial-gradient(240px 220px at 90% 0%, rgb(255 180 63 / .38), transparent 70%), radial-gradient(260px 240px at 0% 100%, rgb(53 208 195 / .35), transparent 70%), linear-gradient(170deg, #0c2830, #04090b); }
.phn-dock { border-radius: 0 0 24px 24px; }
.phn-status { top: 16px; left: 24px; right: 22px; font: 600 12px var(--body); }
.phn-status .carrier { font: 700 12.5px var(--body); letter-spacing: .02em; }
.phn-status span { gap: 5px; }
.phn-status .pct { font: 600 11px var(--body); font-style: normal; }
.phn-status .wifi { width: 13px; height: 10px; background: #fff; clip-path: polygon(50% 100%, 0 30%, 15% 15%, 50% 0, 85% 15%, 100% 30%); }
.phn-clock { margin: 14px 0 16px; }
.phn-clock b { font: 300 64px/1 var(--body); letter-spacing: -.01em; }
.phn-clock small { font-weight: 500; }
.phn-n { border-radius: 24px; background: rgb(255 255 255 / .16); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 6px 20px rgb(0 0 0 / .2); }
.phn-n-ic { border-radius: 50%; }
/* Pile : la plus récente devant, deux autres visibles en dessous, réduites */
.phn-list.stack { gap: 0; padding-bottom: 18px; }
.phn-list.stack .phn-n { grid-area: 1 / 1; align-self: stretch; transform-origin: 50% 100%; transition: transform .25s, opacity .25s; cursor: pointer; }
.phn-list.stack .phn-n:nth-child(1) { z-index: 3; }
.phn-list.stack .phn-n:nth-child(2) { z-index: 2; transform: translateY(9px) scale(.94); opacity: .75; }
.phn-list.stack .phn-n:nth-child(3) { z-index: 1; transform: translateY(18px) scale(.88); opacity: .5; }
.phn-list.stack .phn-n:nth-child(n+4) { display: none; }
.phn-list.stack .phn-n:nth-child(n+2) > * { display: none; }
.phn-list.stack .phn-n:nth-child(n+2) { background: rgb(255 255 255 / .12); }
.phn-acts { display: flex; justify-content: center; gap: 8px; }
.phn-more { padding: 6px 14px; border: 0; border-radius: 999px; font: 700 12.5px var(--body); color: #fff; background: rgb(255 255 255 / .14); cursor: pointer; }
/* Démo d'appel : message studio ou IA */
.demo-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 14px; background: color-mix(in srgb, var(--bg) 55%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.demo-mode label { position: relative; cursor: pointer; }
.demo-mode input { position: absolute; opacity: 0; pointer-events: none; }
.demo-mode span { display: grid; place-items: center; min-height: 40px; padding: 6px 8px; border-radius: 10px; text-align: center; font: 700 12.5px/1.25 var(--body); color: var(--muted); transition: background .2s, color .2s; }
.demo-mode input:checked + span { background: var(--accent); color: var(--accent-ink); }
.demo-mode input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.demo-mode-note { margin: -6px 2px 0; font-size: 12.5px; color: var(--muted); }
/* Administration › Démo d'appel (voix) */
.dv-mode { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.dv-slots { display: grid; gap: 10px; }
.dv-slot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.dv-slot.on { box-shadow: inset 4px 0 0 var(--teal), inset 0 0 0 1px var(--line); }
.dv-slot b { display: block; } .dv-slot small { display: block; color: var(--muted); margin-top: 2px; }
.dv-slot audio { width: 100%; max-width: 420px; height: 36px; margin-top: 8px; }
.dv-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.dv-up { cursor: pointer; }
@media (max-width: 640px) { .dv-slot { grid-template-columns: 1fr; } .dv-acts { justify-content: flex-start; } }
.phn-mini-dev > span i { position: static; top: auto; left: auto; margin: 0; }
.pm-notes i { width: 100%; }
.dv-texts { display: grid; gap: 12px; }
.dv-text textarea { min-height: 64px; }
.dv-tacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.dv-tacts .btn { padding: 7px 14px; font-size: 13.5px; }
.dv-text .badge { font-style: normal; margin-left: 6px; }
