/* ==========================================================================
   RMTG — Design System (clair uniquement)
   RM Technologies Group · RM Networks · RM TechCare
   Palette issue des logos : rouge engrenage, violet puce, anthracite.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Marque */
  --red-50:  #fef2f2;
  --red-100: #fde3e3;
  --red-200: #fbcaca;
  --red-400: #ef6b6b;
  --red-500: #e03c3c;
  --red-600: #c92f2f;
  --red-700: #a82626;

  --violet-50:  #f5f2fb;
  --violet-100: #ebe4f7;
  --violet-200: #d6c9ef;
  --violet-400: #8a6bc9;
  --violet-500: #5f3aa6;
  --violet-600: #4b2a86;
  --violet-700: #3b206b;
  --violet-900: #23133f;

  /* Neutres */
  --ink-900: #1d1b29;
  --ink-800: #2b2838;
  --ink-700: #3f3b4f;
  --ink-600: #57536a;
  --ink-500: #716d84;
  --ink-400: #9a97aa;
  --ink-300: #c4c2cf;
  --ink-200: #e3e2ea;
  --ink-100: #efeef4;
  --ink-50:  #f7f7fa;
  --white:   #ffffff;

  /* États */
  --success: #13a36b;
  --success-bg: #e8f8f1;
  --warning: #c77a06;
  --warning-bg: #fff6e5;
  --danger:  #d92d3a;
  --danger-bg: #fdecee;
  --info:    #2f6fd6;
  --info-bg: #eaf2fd;

  /* Sémantique */
  --bg: var(--white);
  --bg-soft: var(--ink-50);
  --surface: var(--white);
  --text: var(--ink-900);
  --text-2: var(--ink-600);
  --text-3: var(--ink-500);
  --border: var(--ink-200);
  --border-strong: var(--ink-300);
  --primary: var(--red-500);
  --primary-hover: var(--red-600);
  --accent: var(--violet-600);

  --grad-brand: linear-gradient(135deg, var(--red-500) 0%, var(--violet-600) 100%);
  --grad-brand-soft: linear-gradient(135deg, var(--red-50) 0%, var(--violet-50) 100%);

  /* Alias de compatibilité & composants */
  --stroke: var(--border);
  --stroke-color: var(--border);
  --card: var(--white);
  --card-2: var(--bg-soft);
  --surface: var(--white);
  --bg-0: var(--bg-soft);
  --bg-1: var(--bg-soft);
  --bg-2: var(--ink-100);
  --bg-subtle: var(--bg-soft);
  --muted: var(--text-2);
  --text-muted: var(--text-2);
  --shadow: 0 4px 16px rgba(29, 27, 41, .06);
  --primary-2: var(--violet-600);
  --red: var(--red-500);
  --violet: var(--violet-600);
  --emerald-500: var(--success);
  --emerald-600: #0f8b59;
  --color-white: #ffffff;

  /* Typo */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Rayons, ombres, espaces */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  --sh-xs: 0 1px 2px rgba(29, 27, 41, .06);
  --sh-sm: 0 2px 8px rgba(29, 27, 41, .06), 0 1px 2px rgba(29, 27, 41, .04);
  --sh-md: 0 8px 24px rgba(29, 27, 41, .08), 0 2px 6px rgba(29, 27, 41, .04);
  --sh-lg: 0 20px 48px rgba(29, 27, 41, .12), 0 4px 12px rgba(29, 27, 41, .05);
  --sh-brand: 0 10px 30px rgba(224, 60, 60, .22);
  --sh-violet: 0 10px 30px rgba(75, 42, 134, .20);

  --container: min(1640px, 94vw);
  --container-wide: min(1840px, 97vw);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); color-scheme: light; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100vw;
}
main { flex: 1 0 auto; }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--primary); }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(95, 58, 166, .35); outline-offset: 2px; border-radius: 6px; }

::selection { background: var(--violet-100); color: var(--violet-900); }

/* ---------- 3. Barre de scroll aux couleurs RMTG ---------- */
html, * { scrollbar-width: thin; scrollbar-color: var(--violet-500) var(--ink-100); }
::-webkit-scrollbar, *::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, *::-webkit-scrollbar-track { background: var(--ink-50); border-left: 1px solid var(--ink-100); }
::-webkit-scrollbar-thumb, *::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--red-500) 0%, var(--violet-600) 100%);
  border-radius: var(--r-full);
  border: 2px solid var(--white);
}
::-webkit-scrollbar-thumb:hover, *::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--red-600) 0%, var(--violet-700) 100%); }
::-webkit-scrollbar-corner, *::-webkit-scrollbar-corner { background: var(--ink-50); }
/* Zones internes scrollables : plus fines */
.scroll-thin { scrollbar-width: thin; }
.scroll-thin::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll-thin::-webkit-scrollbar-track { background: transparent; border: 0; }
.scroll-thin::-webkit-scrollbar-thumb { border-width: 2px; border-color: var(--white); }

/* Barre de progression de lecture */
.read-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1001;
  background: var(--grad-brand); transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}

/* ---------- 4. Typographie ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; color: var(--text-2); }
strong { color: var(--text); font-weight: 650; }
small { font-size: .85em; }
code, kbd { font-family: var(--font-mono); font-size: .88em; background: var(--ink-100); padding: .12em .4em; border-radius: var(--r-xs); color: var(--violet-700); }

.text-gradient { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
  padding: .4rem .85rem; border-radius: var(--r-full);
  background: var(--violet-50); border: 1px solid var(--violet-100);
}
.eyebrow--red { color: var(--red-600); background: var(--red-50); border-color: var(--red-100); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); line-height: 1.65; }
.muted { color: var(--text-3); }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .78rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.fw-bold { font-weight: 700; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--font-mono); }

/* ---------- 5. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 3.5vw, 48px); }
.container--narrow { max-width: 1120px; }
.container--wide { max-width: var(--container-wide); }
.container--fluid { width: 100%; max-width: 100%; padding: 0 clamp(20px, 4vw, 64px); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(36px, 5vw, 64px) 0; }
.section--soft { background: var(--bg-soft); }
.section--brand { background: var(--grad-brand-soft); }
.section-head { max-width: 980px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head p { font-size: 1.12rem; max-width: 820px; margin-left: auto; margin-right: auto; }
.section-head--left { margin-left: 0; text-align: left; }

.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)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
@media (max-width: 1024px) { .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; } }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.wrap { flex-wrap: wrap; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2.5rem; }
.w-full { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- 6. Boutons ---------- */
.btn {
  --btn-bg: var(--white); --btn-fg: var(--text); --btn-bd: var(--border);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .78rem 1.35rem; min-height: 46px;
  font-weight: 650; font-size: .95rem; line-height: 1;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-bd); border-radius: var(--r-full);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--sh-sm); color: var(--btn-fg); border-color: var(--border-strong); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn.is-disabled { opacity: .55; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary { --btn-bg: var(--red-600, #c92f2f); --btn-fg: #fff; --btn-bd: var(--red-600, #c92f2f); }
.btn-primary:hover { --btn-bg: var(--red-700, #a82626); border-color: var(--red-700, #a82626); box-shadow: var(--sh-brand); }
.btn-brand { --btn-fg: #fff; --btn-bd: transparent; background: var(--grad-brand); }
.btn-brand:hover { box-shadow: var(--sh-violet); border-color: transparent; filter: saturate(1.1); }
.btn-violet { --btn-bg: var(--violet-600); --btn-fg: #fff; --btn-bd: var(--violet-600); }
.btn-violet:hover { --btn-bg: var(--violet-700); border-color: var(--violet-700); box-shadow: var(--sh-violet); }
.btn-dark { --btn-bg: var(--ink-900); --btn-fg: #fff; --btn-bd: var(--ink-900); }
.btn-dark:hover { --btn-bg: var(--ink-800); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--accent); --btn-bd: var(--violet-200); }
.btn-outline:hover { --btn-bg: var(--violet-50); border-color: var(--violet-400); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--text-2); }
.btn-ghost:hover { --btn-bg: var(--ink-100); box-shadow: none; border-color: transparent; color: var(--text); }
.btn-danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-bd: var(--danger); }
.btn-danger:hover { filter: brightness(.95); }
.btn-danger-soft { --btn-bg: var(--danger-bg); --btn-fg: var(--danger); --btn-bd: #f8c9ce; }
.btn-success { --btn-bg: var(--success); --btn-fg: #fff; --btn-bd: var(--success); }
.btn-secondary { --btn-bg: var(--bg-soft); --btn-fg: var(--text); --btn-bd: var(--border-strong); }
.btn-secondary:hover { --btn-bg: var(--ink-100); border-color: var(--ink-400); color: var(--text); }
.btn-sm, .btn-small { padding: .5rem .9rem; min-height: 36px; font-size: .85rem; }
.btn-xs { padding: .32rem .7rem; min-height: 28px; font-size: .78rem; }
.btn-lg { padding: 1rem 1.75rem; min-height: 54px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: var(--r-full); }

/* ---------- 7. Badges & pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .65rem; border-radius: var(--r-full);
  font-size: .75rem; font-weight: 650; line-height: 1.2; white-space: nowrap;
  background: var(--ink-100); color: var(--ink-700); border: 1px solid transparent;
}
.badge-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-red, .badge--red { background: var(--red-50); color: var(--red-600); border-color: var(--red-100); }
.badge-violet, .badge--violet { background: var(--violet-50); color: var(--violet-600); border-color: var(--violet-100); }
.badge-success, .badge--success, .badge-green, .badge--green { background: var(--success-bg); color: #0d7a50; border-color: #c3ecd9; }
.badge-warning, .badge--warning, .badge-orange, .badge--orange { background: var(--warning-bg); color: #935a03; border-color: #fbe2b4; }
.badge-danger, .badge--danger { background: var(--danger-bg); color: var(--danger); border-color: #f8c9ce; }
.badge-info, .badge--info, .badge-blue, .badge--blue { background: var(--info-bg); color: var(--info); border-color: #c9dcf7; }
.badge-neutral, .badge--neutral, .badge-gray, .badge--gray { background: var(--ink-100); color: var(--ink-700); border-color: var(--ink-200); }
.badge-brand, .badge--brand { background: var(--grad-brand); color: #fff; }

/* Pastille "en ligne" pulsée */
.live-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--success); opacity: .5; animation: pulse 2s var(--ease) infinite; }
.live-dot--warning { background: var(--warning); } .live-dot--warning::after { border-color: var(--warning); }
.live-dot--danger { background: var(--danger); } .live-dot--danger::after { border-color: var(--danger); }
@keyframes pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* Segmented control / tabs pilules */
.segmented { display: inline-flex; gap: 4px; padding: 5px; background: var(--ink-100); border-radius: var(--r-full); flex-wrap: wrap; }
.segmented button, .segmented a {
  border: 0; background: transparent; color: var(--text-2);
  padding: .55rem 1.1rem; border-radius: var(--r-full); font-weight: 600; font-size: .9rem;
  display: inline-flex; align-items: center; gap: .45rem; transition: all .18s var(--ease); text-decoration: none;
}
.segmented button:hover, .segmented a:hover { color: var(--text); }
.segmented .is-active { background: var(--white); color: var(--text); box-shadow: var(--sh-sm); }
.segmented .is-active .badge { background: var(--red-500); color: #fff; }

.chip-group { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .55rem 1rem .55rem .6rem; border-radius: var(--r-full);
  background: var(--white); border: 1px solid var(--border); color: var(--text);
  font-weight: 600; font-size: .92rem; cursor: pointer; transition: all .18s var(--ease);
}
.chip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.chip:hover { border-color: var(--violet-200); box-shadow: var(--sh-sm); }
.chip.is-active { border-color: var(--violet-600); background: var(--violet-50); color: var(--violet-700); box-shadow: 0 0 0 3px rgba(75, 42, 134, .1); }

/* ---------- 8. Cartes ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--sh-xs);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--ink-300); }
.card--flat { box-shadow: none; }
.card--soft { background: var(--bg-soft); border-color: transparent; box-shadow: none; }
.card--pad-sm { padding: 20px; }
.card--pad-0 { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.card-head h2, .card-head h3 { margin: 0; font-size: 1.12rem; }
.card-foot { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); display: flex; gap: .75rem; justify-content: flex-end; flex-wrap: wrap; }
.card-section { padding: 20px 24px; border-bottom: 1px solid var(--border); }
.card-section:last-child { border-bottom: 0; }

.icon-tile {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--violet-50); color: var(--violet-600); margin-bottom: 1.1rem;
}
.icon-tile svg { width: 26px; height: 26px; }
.icon-tile--red { background: var(--red-50); color: var(--red-500); }
.icon-tile--brand { background: var(--grad-brand); color: #fff; }
.icon-tile--sm { width: 40px; height: 40px; border-radius: 11px; margin: 0; }
.icon-tile--sm svg { width: 20px; height: 20px; }
.icon-tile img { width: 34px; height: 34px; object-fit: contain; }

.feature-card h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.feature-card p { font-size: .95rem; margin: 0; }

/* Carte de marque (accueil) */
.brand-card { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 34px; }
.brand-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-brand); }
.brand-card__logo { height: 64px; width: auto; object-fit: contain; margin-bottom: 1.25rem; align-self: flex-start; }
.brand-card ul { margin: 1rem 0 1.75rem; }
.brand-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- 9. Listes ---------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.check-list li { position: relative; padding-left: 1.85rem; color: var(--text-2); font-size: .95rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--success-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313a36b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.check-list--violet li::before { background-color: var(--violet-50); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b2a86' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .62rem 0; border-bottom: 1px dashed var(--border); font-size: .92rem; color: var(--text-2); }
.spec-list li:last-child { border-bottom: 0; }
.spec-list li strong { color: var(--text); font-weight: 650; text-align: right; }

.dl-grid { display: grid; grid-template-columns: minmax(140px, auto) 1fr; gap: .6rem 1.5rem; margin: 0; }
.dl-grid dt { color: var(--text-3); font-size: .88rem; }
.dl-grid dd { margin: 0; color: var(--text); font-weight: 550; word-break: break-word; }

/* ---------- 10. Tarifs ---------- */
.pricing-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 30px 26px; box-shadow: var(--sh-xs);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.price-card.is-featured { border: 2px solid var(--violet-600); box-shadow: var(--sh-violet); }
.price-card__ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad-brand); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  padding: .35rem .9rem; border-radius: var(--r-full); white-space: nowrap; box-shadow: var(--sh-sm);
}
.price-card__head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.price-card__head img { width: 46px; height: 46px; object-fit: contain; border-radius: 12px; }
.price-card__name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin: 0; color: var(--text); }
.price-card__tag { font-size: .82rem; color: var(--text-3); margin: 0; }
.price-card__price { display: flex; align-items: baseline; gap: .3rem; margin: .5rem 0 .25rem; }
.price-card__amount { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; letter-spacing: -.03em; color: var(--text); line-height: 1; }
.price-card__period { color: var(--text-3); font-size: .92rem; font-weight: 500; }
.price-card__old { color: var(--text-3); text-decoration: line-through; font-size: .95rem; margin-right: .35rem; }
.price-card__note { font-size: .8rem; color: var(--success); font-weight: 600; min-height: 1.3em; margin-bottom: 1rem; }
.price-card .spec-list { margin-bottom: 1.25rem; }
.price-card .check-list { margin-bottom: 1.5rem; }
.price-card__cta { margin-top: auto; }

/* Comparatif */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-xs); }
.compare { min-width: 720px; font-size: .92rem; }
.compare th, .compare td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--border); color: var(--text-2); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--text); font-weight: 550; }
.compare thead th { background: var(--bg-soft); color: var(--text); font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.compare thead th.is-featured { background: var(--violet-50); color: var(--violet-700); }
.compare td.is-featured { background: rgba(245, 242, 251, .5); color: var(--text); font-weight: 600; }
.compare tr.group td { background: var(--ink-50); color: var(--accent); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; text-align: left; }
.compare tbody tr:last-child td { border-bottom: 0; }
.yes { color: var(--success); font-weight: 700; }
.no { color: var(--ink-300); }

/* ---------- 11. Formulaires ---------- */
.form-grid { display: grid; gap: 18px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }
.form-group, .form-field-group, .field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.15rem; }
.label, .form-label, .field-label, label { font-size: .88rem; font-weight: 600; color: var(--text); display: block; margin-bottom: .35rem; }
.label .req, .form-label .req, .field-label .req, .req { color: var(--danger); font-weight: 700; }
.hint { font-size: .8rem; color: var(--text-3); }

.input, .select, .textarea,
.form-control, .field-input, .field-select, .field-textarea,
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="tel"], input[type="search"],
input[type="url"], input[type="date"], input[type="time"],
select, textarea {
  width: 100%;
  box-sizing: border-box;
  padding: .75rem 1rem;
  min-height: 48px;
  background-color: var(--white) !important;
  color: var(--text) !important;
  border: 1.5px solid var(--border-strong) !important;
  border-radius: var(--r-sm);
  font-size: .95rem;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease);
}
.input::placeholder, .textarea::placeholder,
.form-control::placeholder, .field-input::placeholder, .field-textarea::placeholder,
input::placeholder, textarea::placeholder {
  color: var(--ink-400) !important;
  opacity: 1;
}
.input:hover, .select:hover, .textarea:hover,
.form-control:hover, .field-input:hover, .field-select:hover, .field-textarea:hover,
input[type="text"]:hover, input[type="email"]:hover, input[type="password"]:hover,
input[type="number"]:hover, input[type="tel"]:hover, input[type="search"]:hover,
input[type="url"]:hover, input[type="date"]:hover, input[type="time"]:hover,
select:hover, textarea:hover {
  border-color: var(--ink-500) !important;
}
.input:focus, .select:focus, .textarea:focus,
.form-control:focus, .field-input:focus, .field-select:focus, .field-textarea:focus,
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus,
input[type="number"]:focus, input[type="tel"]:focus, input[type="search"]:focus,
input[type="url"]:focus, input[type="date"]:focus, input[type="time"]:focus,
select:focus, textarea:focus {
  outline: none;
  border-color: var(--violet-500) !important;
  box-shadow: 0 0 0 4px rgba(95, 58, 166, .14) !important;
  background-color: var(--white) !important;
}
.input[readonly], .form-control[readonly], input[readonly],
.input:disabled, .form-control:disabled, input:disabled, textarea:disabled, select:disabled {
  background-color: var(--bg-soft) !important;
  color: var(--text-2) !important;
  cursor: not-allowed;
  opacity: 0.8;
}
.input.is-invalid, .select.is-invalid, .textarea.is-invalid,
.form-control.is-invalid, .is-invalid {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 4px rgba(217, 45, 58, .12) !important;
}
.textarea, .field-textarea, textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.select, .field-select, select {
  appearance: none; -webkit-appearance: none;
  padding-right: 2.6rem; cursor: pointer;
  background-color: var(--white) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23716d84' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-position: right 1rem center !important;
  background-repeat: no-repeat !important;
  background-size: 16px !important;
}
input[type="checkbox"], input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  accent-color: var(--primary) !important;
  cursor: pointer;
  flex-shrink: 0;
}
.input-sm { min-height: 36px; padding: .45rem .75rem; font-size: .88rem; }
.input-group { display: flex; gap: 8px; }
.input-group .input, .input-group .form-control { flex: 1; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-400); pointer-events: none; }
.input-icon .input, .input-icon .form-control { padding-left: 2.7rem; }
.field-error { color: var(--danger); font-size: .82rem; font-weight: 550; }

.check { display: inline-flex; align-items: flex-start; gap: .65rem; cursor: pointer; font-size: .92rem; color: var(--text-2); }
.check input { appearance: none; width: 20px; height: 20px; flex-shrink: 0; margin: .1rem 0 0; border: 1.5px solid var(--border-strong); border-radius: 6px; background: var(--white); display: grid; place-items: center; transition: all .15s var(--ease); cursor: pointer; }
.check input[type="radio"] { border-radius: 50%; }
.check input:checked { background: var(--violet-600); border-color: var(--violet-600); }
.check input:checked::after { content: ""; width: 10px; height: 10px; background: #fff; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
.check input[type="radio"]:checked::after { clip-path: none; border-radius: 50%; width: 8px; height: 8px; }

.switch { position: relative; display: inline-flex; align-items: center; gap: .75rem; cursor: pointer; font-weight: 600; font-size: .92rem; }
.switch input { appearance: none; width: 44px; height: 24px; border-radius: var(--r-full); background: var(--ink-300); position: relative; cursor: pointer; transition: background .2s var(--ease); margin: 0; flex-shrink: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--sh-xs); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--violet-600); }
.switch input:checked::after { transform: translateX(20px); }

/* Révéler mot de passe */
.secret-field { position: relative; }
.secret-field .input { padding-right: 3rem; font-family: var(--font-mono); font-size: .88rem; }
.secret-field button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--text-3); width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; }
.secret-field button:hover { background: var(--ink-100); color: var(--text); }
.secret-field svg { width: 18px; height: 18px; }

/* ---------- 12. Alertes & toasts ---------- */
.alert { display: flex; gap: .85rem; align-items: flex-start; padding: 14px 18px; border-radius: var(--r-md); border: 1px solid; font-size: .93rem; margin-bottom: 1.25rem; }
.alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.alert p { margin: 0; color: inherit; }
.alert ul { margin: .35rem 0 0; padding-left: 1.1rem; }
.alert-success, .alert--success, .form-success { background: var(--success-bg) !important; border-color: #c3ecd9 !important; color: #0d7a50 !important; font-weight: 550; }
.alert-danger, .alert--danger, .alert-error, .form-errors { background: var(--danger-bg) !important; border-color: #f8c9ce !important; color: #b0202c !important; font-weight: 550; }
.alert-warning, .alert--warning { background: var(--warning-bg) !important; border-color: #fbe2b4 !important; color: #935a03 !important; font-weight: 550; }
.alert-info, .alert--info { background: var(--info-bg) !important; border-color: #c9dcf7 !important; color: #1f56ad !important; font-weight: 550; }

.form-success, .form-errors {
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 1px solid;
  font-size: .93rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.form-card, .erp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--sh-sm);
}

.toast-stack { position: fixed; top: calc(var(--header-h) + 14px); right: 18px; z-index: 1200; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 36px)); }
.toast {
  display: flex; gap: .8rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--violet-600);
  border-radius: var(--r-md); padding: 14px 16px; box-shadow: var(--sh-lg);
  animation: toast-in .35s var(--ease) both;
}
.toast--success { border-left-color: var(--success); }
.toast--danger { border-left-color: var(--danger); }
.toast--warning { border-left-color: var(--warning); }
.toast__title { font-weight: 700; font-size: .9rem; color: var(--text); margin: 0 0 2px; }
.toast__msg { font-size: .84rem; color: var(--text-2); margin: 0; }
.toast__close { margin-left: auto; border: 0; background: transparent; color: var(--text-3); font-size: 1.1rem; line-height: 1; padding: 2px 4px; border-radius: 6px; }
.toast__close:hover { background: var(--ink-100); color: var(--text); }
.toast.is-leaving { animation: toast-out .25s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }

/* ---------- 13. Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--white); }
.table { font-size: .9rem; min-width: 640px; }
.table th { text-align: left; padding: 12px 16px; background: var(--bg-soft); color: var(--text-3); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s var(--ease); }
.table tbody tr:hover { background: #fbfafd; }
.table td strong, .table .cell-main { color: var(--text); font-weight: 600; }
.table .cell-sub { display: block; font-size: .8rem; color: var(--text-3); }
.table-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- 14. Stats / KPI ---------- */
.stat { padding: 22px 24px; }
.stat__label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: .55rem; display: flex; align-items: center; gap: .5rem; }
.stat__value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--text); line-height: 1.1; letter-spacing: -.02em; }
.stat__meta { font-size: .82rem; color: var(--text-3); margin-top: .35rem; }
.stat__meta.up { color: var(--success); }
.stat__meta.warn { color: var(--warning); }

.meter { height: 8px; background: var(--ink-100); border-radius: var(--r-full); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--grad-brand); border-radius: inherit; transition: width .6s var(--ease); }
.meter--success > span { background: var(--success); }
.meter--warning > span { background: var(--warning); }
.meter--danger > span { background: var(--danger); }

/* ---------- 15. Empty state ---------- */
.empty { text-align: center; padding: 48px 24px; color: var(--text-3); }
.empty svg { width: 48px; height: 48px; margin: 0 auto 1rem; color: var(--ink-300); }
.empty h3 { color: var(--text); font-size: 1.1rem; margin-bottom: .35rem; }
.empty p { max-width: 420px; margin: 0 auto 1.25rem; }

/* ---------- 16. Accordéon (FAQ) ---------- */
.accordion { display: grid; gap: 12px; }
.accordion details { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.accordion details[open] { border-color: var(--violet-200); box-shadow: var(--sh-sm); }
.accordion summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 650; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--violet-600); transition: transform .2s var(--ease); line-height: 1; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 22px 20px; color: var(--text-2); }
.accordion .acc-body p:last-child { margin-bottom: 0; }

/* ---------- 17. Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 1300; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(29, 27, 41, .45); backdrop-filter: blur(4px); }
.modal.is-open { display: flex; animation: fade .2s var(--ease); }
.modal__box { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh-lg); width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 28px; animation: pop .25s var(--ease); }
.modal__box h3 { margin-bottom: .5rem; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ---------- 18. Header ---------- */
.announce { background: var(--violet-900); color: #fff; font-size: .86rem; }
.announce .container { display: flex; align-items: center; justify-content: center; gap: .75rem; min-height: 40px; padding-top: 6px; padding-bottom: 6px; text-align: center; flex-wrap: wrap; }
.announce p { margin: 0; color: #fff; }
.announce a { color: #fff; text-decoration: underline; font-weight: 600; }
.announce--warning { background: #8a5300; }
.announce--danger { background: var(--red-700); }
.announce--success { background: #0d6b47; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 20px rgba(29, 27, 41, .05); }
.site-header .container { max-width: var(--container-wide); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--text); text-decoration: none; flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.25; }
.brand__name small { display: block; margin-top: 3px; font-family: var(--font-sans); font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link, .nav__trigger {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem .95rem; border-radius: var(--r-full); border: 0; background: transparent;
  color: var(--text-2); font-weight: 600; font-size: .93rem; text-decoration: none; transition: all .15s var(--ease);
}
.nav__link:hover, .nav__trigger:hover, .nav__item.is-open .nav__trigger { background: var(--ink-100); color: var(--text); }
.nav__link.is-active { color: var(--violet-700); background: var(--violet-50); }
.nav__trigger svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.nav__item { position: relative; }
.nav__item.is-open .nav__trigger svg { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px);
  width: 380px; padding: 10px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); opacity: 0; visibility: hidden; transition: all .18s var(--ease);
}
.mega::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__head { display: flex; align-items: center; gap: .6rem; padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.mega__head img { height: 30px; width: auto; }
.mega__head span { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.mega__link { display: flex; gap: .85rem; align-items: flex-start; padding: 11px 12px; border-radius: var(--r-md); color: var(--text); text-decoration: none; transition: background .15s var(--ease); }
.mega__link:hover { background: var(--bg-soft); color: var(--text); }
.mega__link.is-active { background: var(--violet-50); }
.mega__link .icon-tile--sm { background: var(--violet-50); }
.mega__link:hover .icon-tile--sm { background: var(--white); }
.mega__title { font-weight: 650; font-size: .92rem; line-height: 1.3; display: block; }
.mega__desc { font-size: .8rem; color: var(--text-3); line-height: 1.4; display: block; margin-top: 2px; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.status-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .85rem; border-radius: var(--r-full); background: var(--success-bg); color: #0d7a50; font-size: .8rem; font-weight: 650; text-decoration: none; }
.status-pill:hover { color: #0d7a50; filter: brightness(.97); }

.cart-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: var(--r-full); background: var(--bg-soft, #f8fafc); border: 1px solid var(--border); color: var(--text-2); font-size: .8rem; font-weight: 650; text-decoration: none; transition: all .15s ease; }
.cart-pill:hover { color: var(--text); border-color: var(--violet-400, #a78bfa); background: #ffffff; }
.cart-pill.has-items { background: #f5f3ff; border-color: #a78bfa; color: #4c1d95; }
.cart-badge { background: #7c3aed; color: #ffffff; border-radius: 999px; font-size: .68rem; font-weight: 800; padding: 1px 6px; min-width: 16px; text-align: center; }

.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--white); color: var(--text-2); display: grid; place-items: center; transition: all .15s var(--ease); }
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); box-shadow: var(--sh-xs); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .count { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: var(--r-full); background: var(--red-500); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--white); }

.user-btn { display: inline-flex; align-items: center; gap: .6rem; padding: 4px 12px 4px 4px; border-radius: var(--r-full); border: 1px solid var(--border); background: var(--white); color: var(--text); font-weight: 600; font-size: .9rem; transition: all .15s var(--ease); flex-shrink: 0; white-space: nowrap; }
.user-btn:hover { border-color: var(--border-strong); box-shadow: var(--sh-xs); }
.user-btn svg { width: 14px; height: 14px; color: var(--text-3); flex-shrink: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .88rem; flex-shrink: 0; }
.avatar--lg { width: 46px; height: 46px; font-size: 1.05rem; }
.avatar--xl { width: 72px; height: 72px; font-size: 1.6rem; }

.dropdown { position: relative; }
.dropdown__panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 300px; z-index: 50;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s var(--ease); overflow: hidden;
}
.dropdown.is-open .dropdown__panel { opacity: 1; visibility: visible; transform: none; }
.dropdown__head { padding: 16px; display: flex; gap: .8rem; align-items: center; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.dropdown__head strong { display: block; font-size: .95rem; line-height: 1.25; }
.dropdown__head span { font-size: .8rem; color: var(--text-3); word-break: break-all; }
.dropdown__section { padding: 6px; }
.dropdown__section + .dropdown__section { border-top: 1px solid var(--border); }
.dropdown__label { padding: 8px 12px 4px; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.dropdown__item { display: flex; align-items: center; gap: .7rem; width: 100%; padding: 9px 12px; border: 0; background: transparent; border-radius: var(--r-sm); color: var(--text-2); font-size: .9rem; font-weight: 550; text-decoration: none; text-align: left; }
.dropdown__item:hover { background: var(--bg-soft); color: var(--text); }
.dropdown__item svg { width: 17px; height: 17px; color: var(--text-3); }
.dropdown__item--danger { color: var(--danger); }
.dropdown__item--danger svg { color: var(--danger); }
.dropdown__item--danger:hover { background: var(--danger-bg); color: var(--danger); }

.notif-list { max-height: 340px; overflow-y: auto; }
.notif-item { display: flex; gap: .75rem; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; text-decoration: none; color: inherit; }
.notif-item:hover { background: var(--bg-soft); }
.notif-item:last-child { border-bottom: 0; }
.notif-item__title { font-weight: 650; font-size: .86rem; color: var(--text); margin: 0 0 2px; }
.notif-item__msg { font-size: .8rem; color: var(--text-2); margin: 0; line-height: 1.4; }
.notif-item__date { font-size: .72rem; color: var(--text-3); margin-top: 4px; }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--white); margin-left: auto; place-items: center; }
.burger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1280px) {
  .site-header__inner { gap: 14px; }
  .nav { gap: 2px; }
  .nav__link, .nav__trigger { padding: .5rem .7rem; font-size: .88rem; }
  .brand__name small { display: none; }
}

@media (max-width: 1140px) {
  .status-pill { display: none; }
}

@media (max-width: 1040px) {
  .header-actions .user-btn__name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 960px) {
  .burger { display: grid; }
  .site-header__inner { gap: 12px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 999;
    flex-direction: column; align-items: stretch; gap: 4px; margin: 0;
    padding: 16px 20px 32px; background: var(--white); overflow-y: auto;
    transform: translateX(100%); visibility: hidden; pointer-events: none;
    transition: transform .3s var(--ease), visibility .3s;
  }
  .nav-open .nav { transform: none; visibility: visible; pointer-events: auto; }
  .nav-open { overflow: hidden; }
  .nav__link, .nav__trigger { width: 100%; justify-content: space-between; padding: .9rem 1rem; font-size: 1rem; border-radius: var(--r-md); }
  .mega { position: static; transform: none; width: auto; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 8px 8px; display: none; }
  .nav__item.is-open .mega { display: block; transform: none; }
  .mega__head { display: none; }
  .header-actions { margin-left: 0; }
  .header-actions .user-btn__name { display: none; }
  .dropdown__panel { position: fixed; top: calc(var(--header-h) + 6px); right: 12px; left: 12px; width: auto; }
}

/* ---------- 19. Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 380px at 85% 10%, rgba(224, 60, 60, .10), transparent 70%),
    radial-gradient(700px 460px at 10% 0%, rgba(75, 42, 134, .10), transparent 70%),
    linear-gradient(180deg, #fbfaff 0%, #fff 100%);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { margin: 1.1rem 0 1.1rem; }
.hero .lead { max-width: 760px; margin-bottom: 2rem; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__trust { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 2.5rem; }
.hero__trust div { display: flex; flex-direction: column; }
.hero__trust strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.hero__trust span { font-size: .82rem; color: var(--text-3); }
.hero__visual { position: relative; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; gap: 40px; } }

.page-hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); text-align: center; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(700px 300px at 50% 0%, rgba(75, 42, 134, .09), transparent 70%), linear-gradient(180deg, #fbfaff, #fff);
}
.page-hero h1 { margin: 1rem auto .9rem; max-width: 1100px; }
.page-hero .lead { max-width: 920px; margin: 0 auto; }
.page-hero__logo { height: 84px; width: auto; margin: 0 auto 1rem; }

/* Fenêtre "console" décorative claire */
.window { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-lg); overflow: hidden; }
.window__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.window__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--ink-300); }
.window__bar i:nth-child(1) { background: #ff6b6b; } .window__bar i:nth-child(2) { background: #ffc145; } .window__bar i:nth-child(3) { background: #3ccf8e; }
.window__bar span { margin-left: 10px; font-size: .78rem; color: var(--text-3); font-weight: 600; }
.window__body { padding: 20px; }

/* ---------- 20. Logo strip / steps / CTA ---------- */
.steps { counter-reset: step; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; padding-top: 3.2rem; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 1.08rem; }
.step p { font-size: .94rem; margin: 0; }

.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(36px, 6vw, 64px); background: var(--grad-brand); color: #fff; text-align: center; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 240px at 80% 0%, rgba(255,255,255,.18), transparent 70%); pointer-events: none; }
.cta-band h2 { color: #fff; margin-bottom: .6rem; }
.cta-band p { color: rgba(255, 255, 255, .88); max-width: 620px; margin: 0 auto 1.75rem; font-size: 1.08rem; }
.cta-band .btn { --btn-bg: #fff; --btn-fg: var(--violet-700); --btn-bd: #fff; position: relative; z-index: 1; }
.cta-band .btn-outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.55); }
.cta-band .btn-outline-light:hover { --btn-bg: rgba(255,255,255,.12); color: #fff; }

.team-card { text-align: center; }
.team-card .avatar--xl { margin: 0 auto 1rem; }
.team-card h3 { margin-bottom: .2rem; }
.team-card .role { color: var(--accent); font-weight: 600; font-size: .9rem; margin-bottom: .8rem; }

/* ---------- 21. Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); margin-top: auto; padding-top: 64px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; padding-bottom: 48px; }
.footer-brand p { font-size: .9rem; margin: 1rem 0 1.25rem; max-width: 320px; }
.footer-col h4 { font-family: var(--font-sans); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-col a { color: var(--text-2); font-size: .9rem; }
.footer-col a:hover { color: var(--primary); }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1px solid var(--border); color: var(--text-2); transition: all .15s var(--ease); }
.socials a:hover { color: var(--violet-600); border-color: var(--violet-200); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; font-size: .84rem; color: var(--text-3); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom a { color: var(--text-3); }
.footer-bottom a:hover { color: var(--text); }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 22. App shell (espace client & admin) ---------- */
.app-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 32px; padding: 32px 0 64px; align-items: start; }
.app-side { position: sticky; top: calc(var(--header-h) + 20px); }
.app-side__card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 10px; box-shadow: var(--sh-xs); }
.app-side__user { display: flex; gap: .75rem; align-items: center; padding: 12px 12px 16px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.app-side__user strong { display: block; font-size: .92rem; line-height: 1.25; }
.app-side__user span { font-size: .76rem; color: var(--text-3); }
.side-label { padding: 12px 12px 6px; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.side-link { display: flex; align-items: center; gap: .7rem; padding: 10px 12px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 550; font-size: .92rem; text-decoration: none; transition: all .12s var(--ease); }
.side-link svg { width: 18px; height: 18px; color: var(--text-3); flex-shrink: 0; }
.side-link:hover { background: var(--bg-soft); color: var(--text); }
.side-link.is-active { background: var(--violet-50); color: var(--violet-700); font-weight: 650; }
.side-link.is-active svg { color: var(--violet-600); }
.side-link .badge { margin-left: auto; }
.app-main { min-width: 0; }
.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.app-head h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 .25rem; }
.app-head p { margin: 0; }
.app-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.app-body { display: grid; gap: 24px; }
@media (max-width: 1024px) {
  .app-shell { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
  .app-side { position: static; }
  .app-side__card { display: flex; gap: 4px; overflow-x: auto; padding: 6px; }
  .app-side__user, .side-label { display: none; }
  .side-link { white-space: nowrap; flex-shrink: 0; }
}

/* Auth */
.auth-wrap { display: grid; place-items: center; padding: clamp(40px, 7vw, 88px) 20px; position: relative; overflow: hidden; }
.auth-wrap::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 400px at 20% 10%, rgba(75,42,134,.08), transparent 70%), radial-gradient(500px 360px at 85% 90%, rgba(224,60,60,.07), transparent 70%), var(--bg-soft); }
.auth-card { width: min(460px, 100%); background: var(--white); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 40px 36px; box-shadow: var(--sh-lg); }
.auth-card__logo { width: 64px; height: 64px; margin: 0 auto 1.25rem; }
.auth-card h1 { font-size: 1.7rem; text-align: center; margin-bottom: .35rem; }
.auth-card form { display: grid; gap: 16px; }
.auth-card form > div { display: flex; flex-direction: column; gap: 6px; }
.auth-card form > div:has(input[type="checkbox"]),
.auth-card form .form-check,
.form-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
}
.auth-foot { text-align: center; margin-top: 1.5rem; font-size: .92rem; color: var(--text-2); }
.divider-text { display: flex; align-items: center; gap: 1rem; color: var(--text-3); font-size: .82rem; margin: .5rem 0; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Chat support */
.chat { display: flex; flex-direction: column; height: min(620px, 70vh); }
.chat__messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; background: var(--bg-soft); }
.bubble { max-width: 78%; padding: 12px 16px; border-radius: 16px; font-size: .93rem; line-height: 1.5; box-shadow: var(--sh-xs); white-space: pre-wrap; word-wrap: break-word; }
.bubble--me { align-self: flex-end; background: var(--violet-600); color: #fff; border-bottom-right-radius: 4px; }
.bubble--them { align-self: flex-start; background: var(--white); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.bubble__meta { display: block; font-size: .72rem; margin-top: 6px; opacity: .75; }
.chat__form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--border); background: var(--white); }
.chat__form .textarea { min-height: 46px; height: 46px; resize: none; }
.thread-link { display: block; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--white); color: var(--text); text-decoration: none; transition: all .15s var(--ease); }
.thread-link:hover { border-color: var(--violet-200); color: var(--text); }
.thread-link.is-active { border-color: var(--violet-600); background: var(--violet-50); }
.thread-link__top { display: flex; justify-content: space-between; gap: .5rem; align-items: center; margin-bottom: 4px; }
.thread-link__title { font-weight: 650; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Service card (client) */
.service-card { display: flex; flex-direction: column; gap: 1rem; }
.service-card__top { display: flex; gap: 1rem; align-items: center; }
.service-card__top img { width: 48px; height: 48px; object-fit: contain; border-radius: 12px; background: var(--bg-soft); padding: 6px; }
.service-card__name { font-weight: 700; font-size: 1.02rem; margin: 0; color: var(--text); }
.service-card__meta { font-size: .82rem; color: var(--text-3); margin: 0; }

/* Console (lecture logs) — claire */
.console { background: var(--ink-50); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; font-family: var(--font-mono); font-size: .82rem; line-height: 1.6; color: var(--ink-800); max-height: 360px; overflow: auto; white-space: pre-wrap; }

/* Facture */
.invoice { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); box-shadow: var(--sh-sm); }
.invoice__head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 2px solid var(--ink-900); margin-bottom: 24px; }
.invoice__head img { width: 56px; height: 56px; }
.invoice table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 10px 0; border-bottom: 1px solid var(--border); }
.invoice table td { padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.invoice .totals { margin-left: auto; width: min(320px, 100%); margin-top: 20px; }
.invoice .totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.invoice .totals .grand { border-top: 2px solid var(--ink-900); margin-top: 6px; padding-top: 12px; font-weight: 700; font-size: 1.15rem; }
@media print {
  .site-header, .site-footer, .announce, .no-print, .app-side, .read-progress, .toast-stack { display: none !important; }
  body { background: #fff; }
  .app-shell { display: block; padding: 0; }
  .invoice { border: 0; box-shadow: none; padding: 0; }
}

/* Prose (pages légales) */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.prose h2:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: 1.75rem; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: .35rem; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); }
.toc a { display: block; padding: 6px 12px; border-left: 2px solid var(--border); color: var(--text-2); font-size: .88rem; }
.toc a:hover { color: var(--accent); border-left-color: var(--violet-400); }

/* ---------- 23. Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Spinner */
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Cookie banner */
.cookie-banner { position: fixed; left: 18px; bottom: 18px; z-index: 1100; width: min(420px, calc(100vw - 36px)); background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 20px; animation: pop .3s var(--ease); }
.cookie-banner p { font-size: .88rem; margin-bottom: 1rem; }
.cookie-banner .flex { gap: 8px; }

/* ---------- 24. Admin & Control Panels ---------- */
.table-wrapper { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--white); }
.admin-pro-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 24px; }
.admin-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 30px; }
.admin-kpi-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-sm); display: flex; flex-direction: column; }
.admin-kpi-label { font-size: 0.78rem; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.admin-kpi-value { font-size: 2rem; font-weight: 800; color: var(--text); font-family: var(--font-display); line-height: 1.2; }
.admin-kpi-trend { font-size: 0.76rem; margin-top: 6px; color: var(--emerald-600); font-weight: 600; }

.admin-cluster-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 30px; }
.admin-node-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; display: flex; align-items: center; gap: 14px; box-shadow: var(--sh-xs); }
.admin-node-icon { width: 42px; height: 42px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; background: var(--bg-soft); border: 1px solid var(--border); }
.admin-node-title { font-weight: 700; font-size: 0.92rem; color: var(--text); }
.admin-node-meta { font-size: 0.78rem; color: var(--text-2); margin-top: 2px; }
.admin-node-status { margin-left: auto; font-size: 0.74rem; font-weight: 800; color: var(--emerald-600); background: rgba(16, 185, 129, 0.12); padding: 3px 8px; border-radius: 6px; }

.admin-search { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.admin-search-input { flex: 1; min-width: 240px; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--white); color: var(--text); font-size: 0.9rem; }
.btn-small { padding: 8px 14px; font-size: 0.82rem; font-weight: 600; }
.input-inline { padding: 6px 10px; border-radius: 6px; border: 1px solid var(--border); font-size: 0.82rem; width: 120px; }

.badge-status { font-size: 0.74rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; }
.badge-status--active { background: rgba(16, 185, 129, 0.12); color: #059669; }
.badge-status--disabled { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.badge-status--pending { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.badge-role { font-size: 0.74rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); }

/* ERP / Client helpers */
.erp-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-sm); }
.erp-card h3 { font-size: 1.2rem; font-weight: 800; color: var(--text); margin-top: 0; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }

/* ---------- 25. Transitions de Navigation Fluides & Progress Bar ---------- */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 160ms cubic-bezier(0.4, 0, 1, 1) both pageFadeOut;
}
::view-transition-new(root) {
  animation: 240ms cubic-bezier(0, 0, 0.2, 1) both pageFadeIn;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pageFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-6px); }
}

/* Barre de progression de navigation supérieure (effet Turbo / NProgress) */
.nav-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #e03c3c 0%, #ef4444 40%, #8a6bc9 80%, #5f3aa6 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 10px rgba(224, 60, 60, 0.65), 0 0 4px rgba(95, 58, 166, 0.5);
  z-index: 9999999;
  pointer-events: none;
  opacity: 0;
  border-radius: 0 2px 2px 0;
  transition: width 0.28s cubic-bezier(0.12, 0.8, 0.2, 1), opacity 0.2s ease;
}

.nav-progress-bar.is-active {
  opacity: 1;
  animation: navProgressShimmer 1.4s ease infinite;
}

@keyframes navProgressShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Animation d'entrée et de sortie fluide des pages */
main, .page-transition-body {
  animation: pageEnterAnim 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: opacity, transform;
}

@keyframes pageEnterAnim {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.page-is-exiting main,
body.page-is-exiting .page-transition-body {
  opacity: 0 !important;
  transform: translateY(-8px) !important;
  transition: opacity 0.16s cubic-bezier(0.4, 0, 0.2, 1), transform 0.16s cubic-bezier(0.4, 0, 0.2, 1) !important;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  main, .page-transition-body {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .nav-progress-bar {
    display: none !important;
  }
}

/* ---------- 26. Animations Fluides d'Apparition au Scroll ---------- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- 27. Animations Mascotte RM-BEBOT ---------- */
@keyframes bebotFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.bebot-floating {
  animation: bebotFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 16px 32px rgba(75, 42, 134, 0.16));
  user-select: none;
}

/* ---------- 28. Refonte Globale du Responsive Mobile & Tablette ---------- */

/* Ajustement intelligent des conteneurs pour petits écrans */
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Typographie fluide adaptée mobile */
  h1 {
    font-size: clamp(1.65rem, 6vw, 2.3rem) !important;
    line-height: 1.2 !important;
  }

  h2 {
    font-size: clamp(1.3rem, 5vw, 1.8rem) !important;
    line-height: 1.25 !important;
  }

  .lead {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
  }

  /* Boutons tactiles généreux et centrés */
  .hero__ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }

  /* Navigation mobile & Header */
  .brand__name small {
    display: none !important;
  }

  .header-actions {
    gap: 8px !important;
  }

  .header-actions .btn {
    padding: 7px 12px !important;
    font-size: 0.82rem !important;
  }

  /* Grilles réactives */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Cartes et sections */
  .card {
    padding: 20px 16px !important;
    border-radius: 14px !important;
  }

  /* Tables en défilement horizontal fluide */
  .table-wrapper {
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrapper table {
    min-width: 540px;
  }

  /* Pied de page mobile */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .brand img {
    width: 32px !important;
    height: 32px !important;
  }

  .brand__name span {
    font-size: 0.9rem !important;
  }

  .nav {
    padding: 16px 14px 40px !important;
  }

  .page-hero {
    padding: 36px 0 24px !important;
  }

  /* Formulaires et champs */
  .input, .select, .textarea {
    font-size: 16px !important; /* Empêche le zoom auto désagréable sur iOS */
  }
}

/* =============================================================================
   OPTIMISATIONS RESPONSIVE GLOBALES & TUNNEL DE COMMANDE MOBILE
   ============================================================================= */

@media (max-width: 992px) {
  .checkout-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .cart-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .cart-grid aside,
  .checkout-grid aside {
    position: static !important;
    width: 100% !important;
  }

  .account-hero-card {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}

@media (max-width: 640px) {
  .account-dashboard .card {
    padding: 16px 14px !important;
  }

  /* Cartes de sélection de durée */
  .duration-selector-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

@media (max-width: 900px) {
  .rmtg-devis-grid,
  .rmtg-support-grid,
  .rmtg-grid-2 {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   RMTG Custom Pagination & SVG Sizing Fix
   ========================================================================== */
.rmtg-pagination {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  padding: 14px 16px !important;
  font-size: 0.88rem !important;
  color: var(--muted, #64748b) !important;
}

.rmtg-pagination-info {
  font-size: 0.84rem !important;
  color: var(--muted, #64748b) !important;
}

.rmtg-pagination-info strong {
  color: var(--text, #0f172a) !important;
  font-weight: 700 !important;
}

.rmtg-pagination-links {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

.rmtg-page-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 32px !important;
  height: 32px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.84rem !important;
  text-decoration: none !important;
  border: 1px solid var(--stroke, #e2e8f0) !important;
  background: var(--card, #ffffff) !important;
  color: var(--text, #0f172a) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.rmtg-page-btn:hover:not(.is-disabled):not(.is-active) {
  border-color: var(--primary, #4b2a86) !important;
  color: var(--primary, #4b2a86) !important;
  background: var(--bg-soft, #f8fafc) !important;
}

.rmtg-page-btn.is-active {
  background: var(--primary, #4b2a86) !important;
  color: #ffffff !important;
  border-color: var(--primary, #4b2a86) !important;
  font-weight: 700 !important;
}

.rmtg-page-btn.is-disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  background: transparent !important;
}

.rmtg-page-dots {
  padding: 0 6px !important;
  color: var(--muted, #64748b) !important;
  font-weight: 700 !important;
}

/* Failsafe against any default Tailwind/Laravel SVG pagination arrows escaping */
nav[role="navigation"] svg,
.pagination svg,
.pagination-container svg,
svg.w-5,
svg.h-5 {
  width: 1.25rem !important;
  max-width: 20px !important;
  height: 1.25rem !important;
  max-height: 20px !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

/* ==========================================================================
   UI / UX Enhancements: Modals, Toasts & Skeleton
   ========================================================================== */

/* 1. Spotlight Modal */
.spotlight-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  padding-left: 16px;
  padding-right: 16px;
}
.spotlight-overlay.is-active {
  display: flex;
}
.spotlight-box {
  background: #ffffff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: spotlight-slide-down 0.2s ease-out;
}
@keyframes spotlight-slide-down {
  from { opacity: 0; transform: translateY(-16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.spotlight-header {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  gap: 12px;
}
.spotlight-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1.05rem;
  font-family: inherit;
  color: var(--text, #0f172a);
  outline: none;
}
.spotlight-input::placeholder {
  color: #94a3b8;
}
.spotlight-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
}
.spotlight-category-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 12px 4px 12px;
}
.spotlight-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text, #0f172a);
  transition: all 0.15s ease;
  cursor: pointer;
}
.spotlight-item:hover,
.spotlight-item.is-selected {
  background: rgba(75, 42, 134, 0.08);
  color: var(--primary, #4b2a86);
}
.spotlight-item-main {
  display: flex;
  align-items: center;
  gap: 12px;
}
.spotlight-item-icon {
  font-size: 1.2rem;
  width: 28px;
  text-align: center;
}
.spotlight-item-text {
  font-weight: 600;
  font-size: 0.92rem;
}
.spotlight-item-badge {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}
.spotlight-footer {
  padding: 10px 16px;
  background: var(--bg-soft, #f8fafc);
  border-top: 1px solid var(--border, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: #64748b;
}

/* 2. Toasts & Notifications */
.rmtg-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.rmtg-toast {
  pointer-events: auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border, #e2e8f0);
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text, #0f172a);
  animation: toast-in 0.25s ease-out;
  transition: all 0.2s ease;
}
.rmtg-toast.is-success {
  border-left: 4px solid #10b981;
}
.rmtg-toast.is-error {
  border-left: 4px solid #ef4444;
}
.rmtg-toast.is-info {
  border-left: 4px solid var(--primary, #4b2a86);
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 3. Skeleton Shimmer */
.skeleton-shimmer {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

