/* ==========================================================================
   BI_Soft&Dev — Feuille de style principale
   Charte : #0D1B3D · #7B1FA2 · #2457B2 · #F3F5F8 · #FFFFFF — Montserrat / Inter
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-var.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --navy-950: #050b1f;
  --navy-900: #0d1b3d;
  --navy-850: #111f47;
  --navy-800: #152652;
  --navy-700: #1d3166;
  --blue-700: #1c4590;
  --blue-600: #2457b2;
  --blue-500: #2f6bd8;
  --blue-400: #5a8ff0;
  --cyan-400: #3db8ff;
  --violet-700: #62178a;
  --violet-600: #7b1fa2;
  --violet-500: #9333c9;
  --violet-400: #b06ef0;
  --green-500: #1fa855;
  --wa: #25d366;
  --red-500: #d64545;
  --amber-500: #d98a0b;

  --ink: #0f1830;
  --text: #2c3550;
  --muted: #5d6680;
  --subtle: #8a93a8;
  --line: #e2e7f0;
  --line-strong: #cfd6e3;
  --bg: #ffffff;
  --bg-soft: #f3f5f8;
  --bg-softer: #f8f9fb;

  --grad: linear-gradient(120deg, #2457b2 0%, #4a36c0 52%, #7b1fa2 100%);
  --grad-text: linear-gradient(100deg, #5a8ff0 0%, #b06ef0 100%);
  --grad-dark: radial-gradient(1200px 600px at 85% -10%, rgba(123, 31, 162, 0.45), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(36, 87, 178, 0.5), transparent 60%), #0a1633;

  --font-head: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 61, 0.06), 0 1px 3px rgba(13, 27, 61, 0.05);
  --shadow: 0 6px 24px -8px rgba(13, 27, 61, 0.18), 0 2px 6px rgba(13, 27, 61, 0.05);
  --shadow-lg: 0 24px 60px -20px rgba(13, 27, 61, 0.35);
  --ring: 0 0 0 3px rgba(47, 107, 216, 0.28);

  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.55rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--violet-600); }
strong { color: var(--ink); font-weight: 650; }
small { font-size: 0.85em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: rgba(123, 31, 162, 0.2); }

:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: -0.22em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container-narrow { max-width: 820px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.gradient-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.brand-name { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.brand-amp { color: var(--violet-500); }

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--blue-600);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.78em 1.4em; min-height: 46px;
  font: 600 0.95rem/1.2 var(--font-head); letter-spacing: 0.005em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid transparent; border-radius: 10px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s, color 0.18s, border-color 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); background-size: 140% 100%; background-position: 0 0; box-shadow: 0 8px 22px -10px rgba(91, 44, 184, 0.75); }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 12px 28px -10px rgba(91, 44, 184, 0.85); }
.btn-dark { --btn-bg: var(--navy-900); }
.btn-dark:hover { --btn-bg: var(--navy-800); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--blue-600); --btn-fg: var(--blue-600); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--navy-900); }
.btn-ghost-light { --btn-bg: rgba(255, 255, 255, 0.06); --btn-fg: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost-light:hover { --btn-bg: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.5); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--text); }
.btn-ghost:hover { --btn-bg: var(--bg-soft); --btn-fg: var(--ink); }
.btn-whatsapp { --btn-bg: var(--wa); --btn-fg: #06331a; }
.btn-whatsapp:hover { --btn-bg: #1ebe5b; }
.btn-danger { --btn-bg: #fff; --btn-fg: var(--red-500); border-color: #f1c9c9; }
.btn-danger:hover { --btn-bg: var(--red-500); --btn-fg: #fff; }
.btn-sm { min-height: 36px; padding: 0.5em 0.95em; font-size: 0.85rem; border-radius: 8px; }
.btn-lg { min-height: 54px; padding: 0.95em 1.7em; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 0; width: 40px; min-height: 40px; }
.btn .icon { width: 1.15em; height: 1.15em; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 600; font-family: var(--font-head); font-size: 0.93rem; }
.link-arrow .icon { transition: transform 0.2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Barre supérieure & en-tête ---------- */
.topbar { background: var(--navy-950); color: #b9c3de; font-size: 0.82rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a { color: #d4dbef; display: inline-flex; align-items: center; gap: 0.45em; }
.topbar a:hover { color: #fff; }
.topbar-list { display: flex; gap: 22px; align-items: center; margin: 0; padding: 0; list-style: none; }
.topbar .icon { width: 1.05em; height: 1.05em; opacity: 0.8; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 22, 51, 0.82);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled { background: rgba(8, 17, 40, 0.94); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; flex-shrink: 0; }
.logo:hover { color: #fff; }
.logo img { width: 46px; height: 46px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text .brand-name { font-size: 1.32rem; color: #fff; }
.logo-text small { font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: #9fabcc; font-weight: 600; margin-top: 4px; font-family: var(--font-head); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  position: relative; display: inline-flex; align-items: center; gap: 0.4em;
  padding: 10px 14px; border-radius: 8px;
  color: #d2d9ee; font: 500 0.93rem/1 var(--font-head);
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.main-nav a.is-active { color: #fff; }
.main-nav a.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--grad); }
.main-nav .nav-roc { color: #fff; }
.main-nav .nav-roc .tag { font-size: 0.62rem; padding: 3px 6px; border-radius: 6px; background: rgba(176, 110, 240, 0.22); color: #e3ccff; font-weight: 700; letter-spacing: 0.04em; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; margin-right: -8px; cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }

.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #fff; font: 600 0.85rem var(--font-head); border: 1px solid rgba(255, 255, 255, 0.12); }
.user-chip:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
.avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; font: 700 0.8rem var(--font-head); flex-shrink: 0; }

/* Menu mobile */
.mobile-nav { display: none; }
@media (max-width: 1060px) {
  .topbar-hide-md { display: none !important; }
  .main-nav, .header-actions .btn-contact { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header-actions { margin-left: 0; }
  .mobile-nav {
    display: block; position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none;
  }
  .mobile-nav.is-open { visibility: visible; pointer-events: auto; }
  .mobile-nav-backdrop { position: absolute; inset: 0; background: rgba(3, 8, 22, 0.6); opacity: 0; transition: opacity 0.25s; }
  .mobile-nav.is-open .mobile-nav-backdrop { opacity: 1; }
  .mobile-nav-panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 380px);
    background: var(--navy-900); color: #fff; padding: 20px 22px 28px;
    transform: translateX(100%); transition: transform 0.3s var(--ease);
    display: flex; flex-direction: column; overflow-y: auto;
  }
  .mobile-nav.is-open .mobile-nav-panel { transform: none; }
  .mobile-nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
  .mobile-nav-head button { background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; }
  .mobile-nav ul { list-style: none; margin: 0; padding: 0; }
  .mobile-nav li a { display: flex; align-items: center; gap: 12px; padding: 14px 6px; color: #e3e8f6; font: 600 1.05rem var(--font-head); border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
  .mobile-nav li a .icon { color: var(--violet-400); }
  .mobile-nav li a.is-active { color: #fff; }
  .mobile-nav-foot { margin-top: auto; padding-top: 22px; display: grid; gap: 10px; }
  .mobile-nav-foot .contact-line { display: flex; align-items: center; gap: 10px; color: #b9c3de; font-size: 0.9rem; }
}
@media (max-width: 520px) {
  :root { --header-h: 66px; }
  .logo img { width: 40px; height: 40px; }
  .logo-text .brand-name { font-size: 1.14rem; }
  .logo-text small { font-size: 0.5rem; letter-spacing: 0.14em; }
  .topbar { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); position: relative; }
.section-sm { padding-block: clamp(44px, 6vw, 72px); }
.section-muted { background: var(--bg-soft); }
.section-dark { background: var(--grad-dark); color: #c5cde4; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4, .section-dark strong { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.08rem; color: var(--muted); }
.section-dark .section-head p { color: #aeb8d6; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 0.76rem/1 var(--font-head); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--violet-600); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }
.section-dark .eyebrow { color: var(--violet-400); }
.lead { font-size: 1.14rem; color: var(--muted); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Motif circuit */
.bg-grid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--grad-dark); color: #c5cde4; padding-block: clamp(56px, 8vw, 104px) clamp(120px, 12vw, 168px); }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #b8c2de; max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); color: #dce3f5; font-size: 0.85rem; margin-bottom: 26px; }
.hero-badge .dot { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); }
.hero-badge .dot .icon { width: 13px; height: 13px; color: #fff; }
.motto { display: flex; flex-wrap: wrap; gap: 0.2em 0.9em; font: 800 0.95rem/1.2 var(--font-head); letter-spacing: 0.24em; text-transform: uppercase; margin-top: 38px; }
.motto span:nth-child(1) { color: #fff; }
.motto span:nth-child(2) { color: var(--violet-400); }
.motto span:nth-child(3) { color: var(--cyan-400); }
.hero-visual { position: relative; aspect-ratio: 1 / 0.92; max-width: 560px; margin-inline: auto; width: 100%; }
.hero-visual > svg { width: 100%; height: 100%; overflow: visible; }
.hv-flow { stroke-dasharray: 6 8; animation: flow 2.8s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -56; } }
.hv-pulse { transform-origin: center; transform-box: fill-box; animation: pulse 3.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.35; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.06); } }
.hv-float { animation: float 6s ease-in-out infinite; }
.hv-float.d2 { animation-delay: -2s; }
.hv-float.d3 { animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; order: -1; margin-bottom: -10px; }
}
@media (max-width: 520px) { .hero-visual { max-width: 320px; } }

/* Piliers (chevauchent le héros) */
.pillars { position: relative; z-index: 2; margin-top: clamp(-120px, -9vw, -80px); }
.pillars-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); }
.pillar { padding: 34px 32px; position: relative; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; background: var(--grad); box-shadow: 0 10px 22px -12px rgba(91, 44, 184, 0.8); }
.pillar-icon .icon { width: 26px; height: 26px; }
.pillar-kicker { font: 800 0.72rem var(--font-head); letter-spacing: 0.22em; text-transform: uppercase; }
.pillar:nth-child(1) .pillar-kicker { color: var(--blue-600); }
.pillar:nth-child(2) .pillar-kicker { color: var(--violet-600); }
.pillar:nth-child(3) .pillar-kicker { color: #1c8fd6; }
.pillar h3 { margin: 6px 0 10px; font-size: 1.15rem; }
.pillar p { color: var(--muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 860px) {
  .pillars-card { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--line); }
  .pillar { padding: 26px 24px; display: grid; grid-template-columns: 54px 1fr; gap: 0 18px; }
  .pillar-icon { grid-row: span 3; margin: 0; }
}

/* ---------- Cartes ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.card-hover { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d3dbea; }

.service-card { display: flex; flex-direction: column; height: 100%; position: relative; overflow: hidden; }
.service-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.service-card:hover::after { transform: scaleX(1); }
.icon-tile { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 20px; background: linear-gradient(135deg, rgba(36, 87, 178, 0.1), rgba(123, 31, 162, 0.12)); color: var(--blue-600); }
.icon-tile .icon { width: 25px; height: 25px; }
.icon-tile.violet { color: var(--violet-600); }
.icon-tile.cyan { color: #1c8fd6; }
.service-card h3 { font-size: 1.14rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.95rem; }
.service-card .link-arrow { margin-top: auto; padding-top: 8px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--text); font-size: 0.76rem; font-weight: 600; border: 1px solid var(--line); }

.check-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list li::before { content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: rgba(36, 87, 178, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232457b2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.section-dark .check-list li::before, .auth-aside .check-list li::before, .hero .check-list li::before { background-color: rgba(176, 110, 240, 0.18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d7b8ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* ---------- Produits ---------- */
.product-card { display: grid; grid-template-columns: 170px 1fr; gap: 32px; align-items: start; padding: 32px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.product-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent, var(--blue-600)); }
.product-logo { width: 170px; height: 170px; border-radius: 26px; background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; padding: 18px; }
.product-logo img { width: 100%; height: 100%; object-fit: contain; }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.product-card h3 { font-size: 1.6rem; margin-bottom: 4px; }
.product-tagline { font-size: 1.05rem; color: var(--muted); margin-bottom: 14px; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: center; }
.product-url { font-size: 0.82rem; color: var(--subtle); display: inline-flex; align-items: center; gap: 6px; word-break: break-all; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 700 0.7rem var(--font-head); letter-spacing: 0.06em; text-transform: uppercase; background: rgba(123, 31, 162, 0.1); color: var(--violet-600); }
.badge-blue { background: rgba(36, 87, 178, 0.1); color: var(--blue-600); }
.badge-green { background: rgba(31, 168, 85, 0.12); color: #13773b; }
.badge-gray { background: var(--bg-soft); color: var(--muted); }
.badge-red { background: rgba(214, 69, 69, 0.1); color: #b33030; }
.section-dark .product-card { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); box-shadow: none; }
.section-dark .product-card h3 { color: #fff; }
.section-dark .product-tagline, .section-dark .product-card p { color: #b8c2de; }
.section-dark .product-logo { background: #fff; border-color: transparent; }
.section-dark .product-url { color: #8f9bbd; }
@media (max-width: 700px) {
  .product-card { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
  .product-logo { width: 110px; height: 110px; border-radius: 20px; }
}

/* ---------- Démarche ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step-num { font: 800 0.8rem var(--font-head); letter-spacing: 0.14em; color: var(--violet-600); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.step-num::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: 0.93rem; margin: 0; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Valeurs ---------- */
.value { text-align: left; }
.value .icon-tile { margin-bottom: 16px; }
.value h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.value p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------- Bloc ROC (accueil) ---------- */
.roc-teaser { display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: center; }
.phone-mock { width: 100%; max-width: 330px; margin-inline: auto; border-radius: 40px; padding: 12px; background: #0b1430; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.phone-screen { border-radius: 30px; background: var(--bg-soft); overflow: hidden; padding: 18px 16px 20px; color: var(--text); font-size: 0.8rem; }
.phone-screen .ps-title { font: 700 0.95rem var(--font-head); color: var(--ink); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.ps-chips { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.ps-chip { padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 0.72rem; }
.ps-chip.on { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.ps-field { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; margin-bottom: 8px; display: grid; grid-template-columns: 26px 1fr; gap: 9px; align-items: start; }
.ps-field b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--grad); color: #fff; font: 800 0.75rem var(--font-head); }
.ps-field span { display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--subtle); font-weight: 700; }
.ps-field em { font-style: normal; color: var(--ink); font-size: 0.76rem; line-height: 1.35; display: block; }
.ps-copy { margin-top: 10px; width: 100%; border-radius: 12px; padding: 11px; background: var(--grad); color: #fff; font: 700 0.82rem var(--font-head); display: flex; align-items: center; justify-content: center; gap: 8px; }
@media (max-width: 900px) { .roc-teaser { grid-template-columns: 1fr; } }

/* ---------- Bandeau CTA ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--grad); color: #eef1fb; padding: clamp(36px, 5vw, 60px); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 50px solid rgba(255, 255, 255, 0.07); }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { margin: 0; color: #e0e4f7; font-size: 1.05rem; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- En-tête de page intérieure ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--grad-dark); color: #b8c2de; padding-block: clamp(48px, 7vw, 88px); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
.page-hero p { font-size: 1.1rem; max-width: 680px; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.82rem; margin-bottom: 18px; color: #8f9bbd; }
.breadcrumb a { color: #b8c2de; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: 0.5; }

/* ---------- Service (page détaillée) ---------- */
.service-block { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px); padding-block: 48px; border-top: 1px solid var(--line); }
.service-block:first-child { border-top: 0; padding-top: 0; }
.service-block-head .icon-tile { width: 60px; height: 60px; }
.service-block-head .pillar-kicker { display: block; margin-bottom: 8px; color: var(--violet-600); }
.service-block-head h2 { font-size: 1.6rem; }
.service-block-body .lead { margin-bottom: 20px; }
.service-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.service-cols h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--subtle); margin-bottom: 14px; }
@media (max-width: 860px) { .service-block { grid-template-columns: 1fr; } .service-cols { grid-template-columns: 1fr; } }

/* ---------- Formulaires ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.form-grid .form-group { margin-bottom: 0; }
label, .label { font: 600 0.88rem var(--font-head); color: var(--ink); }
label .req { color: var(--violet-600); }
.input, input:not([type]), input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; font: 400 1rem/1.5 var(--font-body); color: var(--ink);
  padding: 12px 14px; min-height: 48px;
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s; appearance: none; -webkit-appearance: none;
}
textarea { min-height: 120px; resize: vertical; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6680' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--blue-500); box-shadow: var(--ring); }
input::placeholder, textarea::placeholder { color: #9aa3b6; }
.is-invalid { border-color: var(--red-500) !important; }
.form-hint { font-size: 0.82rem; color: var(--muted); }
.form-error { font-size: 0.82rem; color: var(--red-500); font-weight: 500; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font: 400 0.92rem var(--font-body); color: var(--text); cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue-600); flex-shrink: 0; }
.input-wrap { position: relative; }
.input-wrap .toggle-pass { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); padding: 8px; cursor: pointer; border-radius: 8px; }
.input-wrap .toggle-pass:hover { color: var(--ink); background: var(--bg-soft); }
.input-wrap input { padding-right: 48px; }

/* ---------- Alertes & toasts ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 0.93rem; margin-bottom: 18px; border: 1px solid; }
.alert .icon { margin-top: 2px; }
.alert-success { background: #edfaf2; border-color: #bfe8cf; color: #14532d; }
.alert-error { background: #fdf0f0; border-color: #f1c9c9; color: #7f1d1d; }
.alert-info { background: #eef4fe; border-color: #c9dbfa; color: #1c3d7a; }
.alert-warning { background: #fff8eb; border-color: #f3dcae; color: #7a4a06; }
.flash-stack { position: fixed; top: calc(var(--header-h) + 12px); right: 16px; left: auto; z-index: 300; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.flash-stack .alert { box-shadow: var(--shadow); margin: 0; animation: slideIn 0.35s var(--ease); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 400; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--navy-900); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; font: 600 0.9rem var(--font-head); transition: opacity 0.25s, transform 0.25s var(--ease); width: max-content; max-width: calc(100vw - 32px); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast .icon { color: #7ee2a3; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--text); transition: border-color 0.2s, box-shadow 0.2s; }
a.contact-card:hover { border-color: #c9d3e6; box-shadow: var(--shadow); color: var(--text); }
.contact-card .icon-tile { margin: 0; width: 46px; height: 46px; }
.contact-card strong { display: block; font-family: var(--font-head); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--subtle); margin-bottom: 2px; }
.contact-card span { font-weight: 600; color: var(--ink); word-break: break-word; }
.contact-card.wa .icon-tile { background: rgba(37, 211, 102, 0.14); color: #128c47; }
.contact-stack { display: grid; gap: 14px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy-950); color: #9aa6c7; font-size: 0.93rem; padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.site-footer h4 { color: #fff; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #c1cae3; }
.site-footer a:hover { color: #fff; }
.footer-brand p { margin: 18px 0; max-width: 320px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--violet-400); margin-top: 3px; }
.footer-motto { font: 800 0.74rem var(--font-head); letter-spacing: 0.2em; text-transform: uppercase; display: flex; flex-wrap: wrap; gap: 0.3em 0.9em; }
.footer-motto span:nth-child(2) { color: var(--violet-400); }
.footer-motto span:nth-child(3) { color: var(--cyan-400); }
.footer-motto span:nth-child(1) { color: #fff; }
.socials { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.socials a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.8rem; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 0.84rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bar { height: 4px; background: var(--grad); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Bouton WhatsApp flottant */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 150; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 18px 0 16px; border-radius: 999px; background: var(--wa); color: #06331a; font: 700 0.92rem var(--font-head); box-shadow: 0 14px 30px -10px rgba(18, 140, 71, 0.6); transition: transform 0.2s var(--ease); }
.wa-float:hover { color: #06331a; transform: translateY(-2px); }
.wa-float .icon { width: 26px; height: 26px; }
@media (max-width: 640px) { .wa-float { width: 56px; padding: 0; justify-content: center; } .wa-float span { display: none; } }
body.has-bottom-bar .wa-float { display: none; }

/* ---------- Page d'authentification ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { background: var(--grad-dark); color: #b8c2de; padding: clamp(40px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-aside h2 { color: #fff; }
.auth-aside .check-list { margin-top: 24px; }
.auth-aside .check-list li { color: #d0d7ec; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: clamp(32px, 5vw, 64px) 20px; background: var(--bg-soft); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 1.85rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 28px; }
.auth-card .card { padding: 30px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.9rem; margin-top: 18px; }
.auth-divider { text-align: center; color: var(--subtle); font-size: 0.85rem; margin: 22px 0 0; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-aside { display: none; } }

/* ---------- Pages légales / prose ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.placeholder { background: #fff8eb; border: 1px dashed #e7c27a; padding: 1px 6px; border-radius: 4px; color: #7a4a06; font-size: 0.9em; }

/* ---------- Erreur ---------- */
.error-page { text-align: center; padding-block: clamp(80px, 12vw, 140px); }
.error-code { font: 800 clamp(5rem, 14vw, 9rem)/1 var(--font-head); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }

/* ---------- Tableaux & éléments d'interface ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font: 700 0.74rem var(--font-head); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); background: var(--bg-softer); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tr.is-unread td { font-weight: 600; color: var(--ink); }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.empty-state { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty-state .icon-tile { margin: 0 auto 16px; width: 64px; height: 64px; }
.empty-state h3 { margin-bottom: 6px; }
.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--text); font-weight: 600; font-size: 0.88rem; }
.pagination .is-current { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

/* ---------- Coque applicative (Espace équipe, Administration) ---------- */
body.app-body { background: var(--bg-soft); }
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.app-sidebar { background: var(--navy-900); color: #b9c3de; padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.app-sidebar .logo { padding: 4px 8px 18px; }
.app-sidebar .logo img { width: 38px; height: 38px; }
.app-sidebar .logo-text .brand-name { font-size: 1.1rem; }
.app-nav-label { font: 700 0.68rem var(--font-head); letter-spacing: 0.18em; text-transform: uppercase; color: #6f7ca3; padding: 14px 12px 6px; }
.app-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #c7cfe6; font: 500 0.92rem var(--font-head); }
.app-nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.app-nav a.is-active { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: inset 3px 0 0 var(--violet-400); }
.app-nav a .count { margin-left: auto; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--grad); color: #fff; }
.app-sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.app-user { display: flex; align-items: center; gap: 10px; padding: 8px; color: #fff; font-size: 0.85rem; }
.app-user small { display: block; color: #8f9bbd; font-size: 0.75rem; word-break: break-all; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-topbar { display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; min-height: 68px; }
.app-topbar h1 { font-size: 1.25rem; margin: 0; }
.app-topbar .spacer { flex: 1; }
.app-content { padding: 28px; flex: 1; }
.app-menu-btn { display: none; background: none; border: 0; padding: 6px; color: var(--ink); cursor: pointer; }
.stat-card { padding: 22px; }
.stat-card .stat-value { font: 800 2rem/1 var(--font-head); color: var(--ink); margin: 10px 0 4px; }
.stat-card .stat-label { color: var(--muted); font-size: 0.88rem; }
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 300; transform: translateX(-100%); transition: transform 0.28s var(--ease); }
  .app-shell.nav-open .app-sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .app-shell.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(3, 8, 22, 0.5); z-index: 250; }
  .app-menu-btn { display: inline-flex; }
  .app-topbar { padding: 12px 16px; }
  .app-content { padding: 18px 14px; }
}

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .topbar, .site-footer, .wa-float, .mobile-nav { display: none !important; }
}
@media (max-width: 520px) { .flash-stack { left: 16px; right: 16px; max-width: none; } }

/* Administration */
.admin-split { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.admin-split-form { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 900px) { .admin-split, .admin-split-form { grid-template-columns: minmax(0, 1fr); } }
.msg-detail dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 16px; margin: 0 0 18px; font-size: 0.92rem; }
.msg-detail dt { color: var(--muted); }
.msg-detail dd { margin: 0; font-weight: 600; color: var(--ink); word-break: break-word; }
.msg-body { white-space: pre-wrap; background: var(--bg-soft); border-radius: 12px; padding: 18px; border: 1px solid var(--line); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar form { margin: 0; }
.toolbar .grow { flex: 1; min-width: 200px; }
@media (max-width: 560px) { .msg-detail dl { grid-template-columns: 1fr; gap: 2px; } .msg-detail dd { margin-bottom: 8px; } }
