/* AIGuard control plane — backoffice styles.
 * Single CSS file, vanilla, dark/light auto, no framework. Edit freely. */

/* Design tokens (palette light + dark) live in css/theme.css, loaded BEFORE
   this file. This file holds only component rules referencing var(--token). */

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font: 14px/1.5 -apple-system, system-ui, "Segoe UI", "Inter", sans-serif;
  color: var(--fg);
  background: var(--bg);
}

/* --- layout --- */
header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
}
header h1 { margin: 0; font-size: 18px; font-weight: 600; }
.brand-logo { width: 28px; height: 28px; display: block; flex: 0 0 auto; }
header .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
header .who { color: var(--fg-muted); font-size: 12px; }
/* iOS-style toggle switch */
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--line); border-radius: 26px; transition: 0.2s;
}
.switch .slider:before {
  position: absolute; content: ""; height: 20px; width: 20px;
  left: 3px; bottom: 3px; background: white; border-radius: 50%;
  transition: 0.2s;
}
.switch input:checked + .slider { background: var(--accent, #2a8a4f); }
.switch input:checked + .slider:before { transform: translateX(24px); }

.callout-update {
  border-left: 3px solid #c83232;
  background: rgba(200, 50, 50, 0.08);
  padding: 10px 14px;
  margin: 0 0 12px;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
}

.update-badge {
  display: inline-block;
  background: #c83232;
  color: white;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 4px;
  vertical-align: middle;
}

.help-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--row, rgba(127,127,127,0.08));
  color: var(--fg-muted);
  font-weight: 600; font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--line);
}
.help-icon:hover { color: var(--fg); border-color: var(--fg-muted); }

/* --- help page ---------------------------------------------------------- */
.help-page { max-width: 900px; line-height: 1.6; }
.help-page h1 { font-size: 24px; margin: 0 0 6px; }
.help-page > p.muted { margin: 0 0 28px; }
.help-page section { margin-bottom: 32px; }
.help-page section h2 {
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--fg-muted); margin: 0 0 12px; font-weight: 600;
}
.help-page p { margin: 0 0 12px; }
.help-list { padding-left: 20px; margin: 0 0 12px; }
.help-list li { margin-bottom: 8px; }
.help-page .callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 10px 14px;
  margin: 12px 0 0;
  border-radius: 0 4px 4px 0;
}
.help-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0; }
.help-table th, .help-table td {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.help-table th { font-weight: 600; color: var(--fg-muted); background: rgba(127,127,127,0.04); }
.badge-action {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-action.alert { background: #fff4d6; color: #8a5a00; }
.badge-action.substitute { background: #d8ebff; color: #1a4a8a; }
.badge-action.block { background: #ffd6d6; color: #8a1a1a; }
@media (prefers-color-scheme: dark) {
  .badge-action.alert { background: #3a2e10; color: #f0c674; }
  .badge-action.substitute { background: #102a40; color: #7fb3e6; }
  .badge-action.block { background: #401414; color: #f08080; }
}
.help-faq dt { font-weight: 600; margin-top: 14px; }
.help-faq dd { margin: 4px 0 0; color: var(--fg-muted); }
main { padding: 20px; max-width: 1200px; margin: 0 auto; }

/* Page « Paramètres » : cartes de réglages sur deux colonnes (responsive). Chaque
   carte porte son titre ; sur écran étroit on repasse à une colonne. */
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.settings-grid > .card { margin: 0; max-width: none; }
.settings-grid .card > h3:first-child,
.settings-grid .card > h2:first-child { margin-top: 0; }
@media (max-width: 860px) { .settings-grid { grid-template-columns: 1fr; } }
section { margin-bottom: 32px; }
section h2 {
  font-size: 12px;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  font-weight: 600;
}

/* --- tables --- */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--fg-muted); }
tbody tr:hover { background: rgba(127, 127, 127, 0.05); }

/* --- forms --- */
button, .btn {
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  cursor: pointer;
  border-radius: 6px;
  font: inherit;
}
button:hover, .btn:hover { background: rgba(127, 127, 127, 0.08); }
button.primary, .btn.primary {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
button.primary:hover, .btn.primary:hover { filter: brightness(1.1); }
/* Un lien <a class="btn"> doit ressembler à un bouton (pas de soulignement). */
a.btn { display: inline-block; text-decoration: none; }
/* Bouton pleine largeur (ex. « Connexion » après paiement). */
.btn-block { display: block; width: 100%; text-align: center; padding: 11px 16px; box-sizing: border-box; }
button.danger { color: var(--danger); border-color: var(--danger); }
button:disabled { opacity: 0.4; cursor: not-allowed; }

input, textarea, select {
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: inherit;
  border-radius: 6px;
  font: inherit;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}
/* Cases à cocher / boutons radio : le style des champs texte ci-dessus (fond +
   bordure + padding) les transformait en carré sombre quand ils étaient vides.
   On rétablit le rendu natif, coloré avec l'accent de la marque. */
input[type="checkbox"], input[type="radio"] {
  appearance: auto; -webkit-appearance: auto;
  width: auto; height: auto; padding: 0;
  background: none; border: none; border-radius: 0;
  accent-color: var(--accent); cursor: pointer;
}
/* L'interrupteur .switch cache son input natif (le visuel = .slider) : on
   reconfirme APRÈS le reset ci-dessus pour qu'il reste invisible. */
.switch input { width: 0; height: 0; opacity: 0; padding: 0; appearance: none; -webkit-appearance: none; }

/* --- utilities --- */
.row { display: flex; gap: var(--space); align-items: center; flex-wrap: wrap; }
.row.tight { gap: 4px; }
.row.spread { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: var(--space); }
.hidden { display: none !important; }
.muted { color: var(--fg-muted); }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace; font-size: 12px; }
.flag {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 11px;
  margin-right: 4px;
}
pre {
  background: rgba(127, 127, 127, 0.08);
  padding: 10px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 12px;
  border: 1px solid var(--line);
}

/* --- login card --- */
.login-card {
  max-width: 380px;
  margin: 80px auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-card);
}
.login-card h1 { margin: 0 0 18px; font-size: 18px; text-align: center; }
.login-card .col { gap: 12px; }
.login-card input { padding: 10px 12px; }
.error { color: var(--danger); font-size: 13px; min-height: 18px; }

/* --- responsive --- */
@media (max-width: 640px) {
  main { padding: 12px; }
  header { padding: 12px; }
  table { font-size: 12px; }
  /* Landing / home — fully responsive on phones. */
  .landing { margin: 24px auto; }
  .landing-hero { padding: 8px 4px 28px; }
  .landing-hero h1 { font-size: 26px; }
  .landing-hero .lead { font-size: 15px; }
  .hero-logo { width: 72px; height: 72px; margin-bottom: 16px; }
  .landing a.btn { padding: 11px 20px; }
  .landing-hero .row { gap: 10px; }
}

/* --- topnav links --- */
.topnav-links { display: flex; gap: 6px; margin-left: 16px; }
.topnav-links a {
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--fg);
  text-decoration: none;
  font-size: 13px;
}
.topnav-links a:hover { background: rgba(127,127,127,0.08); }
.topnav-links a.active {
  background: var(--accent);
  color: var(--accent-fg);
}

/* --- views (router) --- */
.view { display: block; }
.view.hidden { display: none !important; }

/* --- landing --- */
.landing {
  max-width: 1140px;
  margin: 50px auto;
  padding: 0 20px;
}
.landing-hero {
  text-align: center;
  padding: 30px 20px 16px;
}
.hero-logo {
  width: 96px;
  height: 96px;
  display: block;
  margin: 0 auto 20px;
  filter: drop-shadow(0 8px 20px rgba(34, 148, 96, 0.28));
}
.landing-hero h1 {
  font-size: 36px;
  margin: 0 0 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.landing-hero .lead {
  max-width: 700px;
  margin: 0 auto;
  color: var(--fg-muted);
  font-size: 16px;
}
.landing a.btn { padding: 10px 22px; font-size: 15px; text-decoration: none; }
.landing a.btn.primary { background: var(--accent); color: var(--accent-fg); }
/* Center the hero CTA buttons (Démarrer l'essai / Se connecter). */
.landing-hero .row { justify-content: center; }

/* --- plans grid --- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.plan-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}
.plan-card.current { border-color: var(--accent); }
.plan-name { font-weight: 600; font-size: 16px; }
.plan-price .muted { font-size: 14px; font-weight: 400; }
/* CTA glued to the bottom of every card whatever the text height (Sunil). */
.plan-card .btn { margin-top: auto; text-decoration: none; width: 100%; }
/* Tous les CTA des cartes tarifs ont la MÊME taille : le bouton « Nous contacter »
   (<button>) est calé sur l'ancre « Démarrer l'essai gratuit » (<a>). */
.landing .plan-card .btn { padding: 10px 22px; font-size: 15px; box-sizing: border-box; text-align: center; }
.badge {
  display: inline-block;
  padding: 2px 10px;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- card-narrow (signup, verify, etc) --- */
.card-narrow {
  max-width: 440px;
  margin: 60px auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-card);
}
.card-narrow h1 { margin: 0 0 12px; font-size: 22px; }
.card-narrow .col { gap: 8px; }
.card-narrow label { font-size: 12px; color: var(--fg-muted); margin-top: 4px; }
.card-narrow input, .card-narrow select { padding: 10px 12px; }
.dev-link {
  margin-top: 16px;
  padding: 12px;
  background: rgba(127,127,127,0.06);
  border: 1px dashed var(--line);
  border-radius: 6px;
  font-size: 12px;
  word-break: break-all;
}

/* --- info card --- */
.card {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-card);
}

/* --- subscription status badges --- */
.status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.status-trialing { background: rgba(90, 169, 255, 0.18); color: var(--accent); }
.status-active { background: rgba(46, 204, 113, 0.18); color: var(--ok); }
.status-past_due { background: rgba(241, 196, 15, 0.2); color: #b8860b; }
.status-incomplete { background: rgba(241, 196, 15, 0.18); color: #b8860b; }
.status-suspended, .status-canceled { background: rgba(192, 57, 43, 0.18); color: var(--danger); }
.status-comped { background: rgba(155, 89, 182, 0.2); color: #8e44ad; }
.status-unknown, .status-missing { background: rgba(127, 127, 127, 0.18); color: var(--fg-muted); }
/* Promo code chips reuse the .status pill geometry. */
.chip { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.chip-ok { background: rgba(46, 204, 113, 0.18); color: var(--ok); }
.chip-off { background: rgba(127, 127, 127, 0.18); color: var(--fg-muted); }

.who { font-size: 12px; color: var(--fg-muted); }

/* --- password reveal toggle ---
   The eye button sits NEXT to the input as a flex sibling (not absolute) so
   it doesn't clash with Firefox's native password-reveal widget. Both
   browsers render two eye icons — slightly redundant but always visible. */
.pw-wrap {
  display: flex;
  align-items: stretch;
  gap: 4px;
}
.pw-wrap input { flex: 1; min-width: 0; }
.pw-eye {
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--fg);
  padding: 6px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex: 0 0 auto;
}
.pw-eye:hover { background: rgba(127, 127, 127, 0.1); }
.pw-eye svg { display: block; }

/* --- agent status badge --- */
.agent-status {
  display: inline-block;
  width: 10px;
  height: 10px;
  font-size: 14px;
  line-height: 1;
  margin-right: 6px;
  vertical-align: middle;
}
.agent-status.status-online { color: var(--ok); }
.agent-status.status-idle { color: #f1c40f; }
.agent-status.status-offline { color: var(--fg-muted); }
button.danger.small { padding: 2px 8px; font-size: 11px; }

/* --- tenant identity banner --- */
.tenant-banner {
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  border-bottom: 1px solid var(--line);
  padding: 12px 20px;
}
.tenant-banner.hidden { display: none !important; }
.tenant-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.tenant-banner .tenant-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  font-weight: 600;
}
.tenant-banner .tenant-name {
  font-size: 18px;
  font-weight: 600;
}
.tenant-slug-pill {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 12px;
  padding: 3px 10px;
  background: rgba(127, 127, 127, 0.12);
  border-radius: 10px;
  color: var(--fg-muted);
}

/* Version pill embedded in the top-nav h1: a small monospace tag right
   after "AIGuard control plane" so any admin sees the running version
   at a glance, without going hunting for it. */
.version-pill {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  margin-left: 10px;
  background: rgba(127, 127, 127, 0.15);
  border-radius: 8px;
  color: var(--fg-muted);
  vertical-align: middle;
}
.version-pill:empty { display: none; }

/* --- one-liner install command box --- */
.install-cmd-box {
  margin-top: 14px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 14px;
  background: var(--bg-card);
}
.install-cmd-box h4 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.install-cmd-box pre {
  background: rgba(0, 0, 0, 0.04);
  padding: 12px;
  margin: 0;
  border-radius: 6px;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-all;
  border: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) {
  .install-cmd-box pre { background: rgba(255, 255, 255, 0.04); }
}
.install-cmd-box .copy-btn {
  margin-top: 8px;
}

/* ---- rules editor (Tenant > Régles) -------------------------------------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-top: 14px; }
.tabs .tab {
  padding: 8px 14px; border: 1px solid var(--line); border-bottom: none;
  border-radius: 6px 6px 0 0; text-decoration: none; color: var(--ink-soft);
  background: transparent; font-size: 13px;
}
.tabs .tab.active { color: var(--ink); background: var(--surface); font-weight: 600; }
.tabs .tab:hover { color: var(--ink); }

.packs-grid {
  display: grid; gap: 12px; margin-top: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.pack-card {
  border: 1px solid var(--line); border-radius: 8px; padding: 12px;
  background: var(--surface); display: flex; flex-direction: column; gap: 4px;
}
.pack-card.enabled { border-color: var(--accent); }
.pack-card .pack-cat {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent);
}
.pack-card .pack-name { font-weight: 600; font-size: 14px; }
.pack-card .pack-desc { font-size: 12px; line-height: 1.4; }
.pack-card:has(.pack-rules-panel:not([hidden])) { grid-column: 1 / -1; }
.pack-rules-panel { margin-top: 10px; overflow-x: auto; }
.pack-rules-panel table.grid { font-size: 12px; }
.pack-rules-panel table.grid code { font-size: 11px; }

.rule-form { display: flex; gap: 8px; margin: 10px 0 16px; flex-wrap: wrap; }
.rule-form input, .rule-form select {
  padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--surface); color: var(--ink); font-size: 13px;
  min-width: 140px;
}
.rule-form input[name="pattern"] { flex: 2; min-width: 240px; font-family: monospace; }
.rule-form input[name="name"] { flex: 1; }
.rule-form button { white-space: nowrap; }

table.grid { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
table.grid th, table.grid td {
  padding: 8px 10px; border-bottom: 1px solid var(--line);
  text-align: left; vertical-align: top;
}
table.grid code { font-size: 12px; }

/* Compact action icons in the agents list (force-update / reset / delete).
   Sunil 2026-05-22: la ligne agent débordait, on remplace les boutons
   texte par des icônes avec tooltip. */
.icon-btn {
  border: none; background: transparent; cursor: pointer;
  padding: 4px 7px; margin: 0 2px; border-radius: 4px;
  opacity: 0.55; font-size: 17px; line-height: 1; color: var(--ink, #1a2a3a);
}
.icon-btn:hover { opacity: 1; background: var(--surface-hover, #eef2ff); }
.icon-btn.has-update { color: #2a9d3f; opacity: 1; }
.icon-btn.has-update:hover { background: rgba(42,157,63,0.12); }
.icon-btn.sent {
  color: #2a9d3f; opacity: 1; background: rgba(42,157,63,0.18);
  animation: icon-pulse 1.2s ease-in-out infinite;
}
@keyframes icon-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.icon-btn.danger { color: #b03030; }
.icon-btn.danger:hover { background: rgba(180,48,48,0.12); opacity: 1; }

/* Pack assignment chips (tab Utilisateurs). Each chip = pack applied to
   a given user, with an × to remove it. The "+" capsule opens a menu of
   packs that were previously removed. */
.pack-chip-row {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.pack-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 4px 4px 10px; border-radius: 999px;
  background: var(--surface, #eef2ff); color: var(--ink, #1a2a3a);
  font-size: 12px; font-weight: 500; line-height: 1;
  border: 1px solid var(--line, #d0d8e0);
}
.pack-chip .chip-x {
  border: none; background: transparent; cursor: pointer;
  color: inherit; opacity: 0.55; font-size: 16px; line-height: 1;
  padding: 0 6px; border-radius: 999px;
}
.pack-chip .chip-x:hover { opacity: 1; background: rgba(255,80,80,0.18); color: #b03030; }
.pack-chip-add { position: relative; display: inline-block; }
.pack-chip-add .chip-add-btn {
  border: 1px dashed var(--line, #b0b8c0); background: transparent;
  width: 28px; height: 28px; border-radius: 999px;
  cursor: pointer; color: var(--muted, #6a7280); font-size: 16px;
  font-weight: 600; line-height: 1;
}
.pack-chip-add .chip-add-btn:hover { color: var(--ink, #1a2a3a); border-color: var(--ink, #1a2a3a); }
.pack-chip-add .chip-add-menu {
  position: absolute; top: 100%; left: 0; margin-top: 4px;
  min-width: 220px; max-height: 280px; overflow-y: auto;
  background: var(--surface, #fff); border: 1px solid var(--line, #d0d8e0);
  border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  padding: 4px; z-index: 50; display: flex; flex-direction: column; gap: 2px;
}
.pack-chip-add .chip-add-menu.hidden { display: none; }
.pack-chip-add .chip-add-menu button {
  text-align: left; padding: 6px 10px; border: none; background: transparent;
  cursor: pointer; border-radius: 4px; font-size: 13px; color: var(--ink, #1a2a3a);
}
.pack-chip-add .chip-add-menu button:hover { background: var(--surface-hover, #eef2ff); }

/* ===================== Landing / marketing page ===================== */
.hero-tagline {
  font-size: 18px; font-weight: 600; color: var(--accent);
  margin: -4px 0 14px;
}
.availability { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.avail-badge {
  font-size: 13px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--fg-muted); background: var(--surface);
}
.avail-badge.avail-ok { border-color: #BBE3CC; background: #E7F1EA; color: #1F7A4E; font-weight: 600; }
.avail-badge.avail-soon { font-style: italic; }

.section-title { text-align: center; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 28px; }
.features { margin: 18px 0 8px; }
/* Flex (et non grid) pour que la DERNIÈRE rangée, si elle est incomplète
   (7 cartes = 4 + 3), se CENTRE au lieu de rester collée à gauche avec du vide
   à droite. Les rangées pleines remplissent quand même la bande bord à bord
   (flex-grow), et max-width plafonne la largeur des cartes orphelines pour
   qu'elles restent identiques à celles du dessus. */
.features-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 18px;
}
.feature {
  flex: 1 1 280px; max-width: 300px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px;
}
.feature-ic { font-size: 26px; line-height: 1; margin-bottom: 10px; }
.feature h3 { margin: 0 0 6px; font-size: 16px; font-weight: 650; }
.feature p { margin: 0; color: var(--fg-muted); font-size: 14px; line-height: 1.55; }

.plans-section { margin: 44px 0 8px; }
.plan-enterprise { border-color: var(--accent); box-shadow: 0 6px 20px rgba(34,148,96,0.10); }
.plan-card .btn { appearance: none; cursor: pointer; }

/* Footer */
.landing-footer {
  margin-top: 64px; padding: 26px 0 8px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--fg-muted); font-size: 13px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--fg-muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--faint, var(--fg-muted)); }

/* Modal (À propos / CGU / contact) */
.modal-overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(31,30,28,.42);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: agFade .15s ease;
}
@keyframes agFade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative; background: var(--bg-card); color: var(--fg);
  border: 1px solid var(--line); border-radius: 14px;
  max-width: 620px; width: 100%; max-height: 86vh; overflow: auto;
  padding: 28px 30px; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.modal-x {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg-muted);
  cursor: pointer; font-size: 15px; line-height: 1;
}
.modal-x:hover { color: var(--danger); border-color: var(--danger); }
.modal-title { margin: 0 0 12px; font-size: 22px; font-weight: 700; }
.modal-sub { margin: 18px 0 4px; font-size: 15px; font-weight: 650; }
.modal p { line-height: 1.6; color: var(--fg); }
.modal .muted { color: var(--fg-muted); }
.modal-list { margin: 6px 0 0; padding-left: 18px; line-height: 1.7; }
.modal a { color: var(--accent); }

/* Enterprise contact form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-top: 14px; }
.form-grid label, .form-full { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--fg-muted); }
.form-full { margin-top: 12px; }
.modal input, .modal textarea, .modal select {
  font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--fg); width: 100%;
}
.modal textarea { resize: vertical; }
/* Champ pleine largeur dans la grille 2 colonnes (ex. « Nom complet »). */
.span2 { grid-column: 1 / -1; }
/* Sélecteur Particulier / Professionnel (2 pastilles). */
.contact-type { display: flex; gap: 10px; margin: 14px 0 2px; }
.contact-type label {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; font-size: 14px; color: var(--fg); background: var(--surface);
}
.contact-type input { width: auto; accent-color: var(--accent); }
.contact-type label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.ec-feedback { margin-top: 10px; font-size: 13px; min-height: 18px; }
.ec-feedback.err { color: var(--danger); }

@media (max-width: 640px) {
  .features { margin-top: 44px; }
  .plans-section { margin-top: 44px; }
  .section-title { font-size: 22px; }
  .landing-footer { flex-direction: column; text-align: center; gap: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .modal { padding: 22px 18px; }
}

/* ---- Hero : moderne mais sobre ---- */
.landing-hero {
  position: relative;
  padding: 54px 24px 34px;
  border-radius: 22px;
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(78% 72% at 50% 0%, rgba(34, 148, 96, 0.10), transparent 62%),
    radial-gradient(60% 60% at 88% 8%, rgba(204, 120, 92, 0.07), transparent 60%),
    var(--bg-card);
}
.hero-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.hero-logo {
  width: 54px; height: 54px; margin: 0;
  filter: drop-shadow(0 6px 18px rgba(34, 148, 96, 0.28));
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hero-wordmark { font-size: 30px; font-weight: 750; letter-spacing: -0.02em; color: var(--ink); }
.landing-hero h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.12;
  margin: 6px auto 10px; max-width: 18ch;
}
.landing-hero .lead { font-size: 16.5px; max-width: 720px; }
.landing-hero .btn.primary {
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: 0 6px 18px rgba(204, 120, 92, 0.26);
}
.landing-hero .btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(204, 120, 92, 0.34); }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }
@media (max-width: 640px) {
  .landing-hero { padding: 38px 16px 26px; border-radius: 18px; }
  .hero-logo { width: 46px; height: 46px; }
  .hero-wordmark { font-size: 25px; }
}

/* Tagline : surlignage type marqueur sur les mots-clés */
.hl-mark {
  font-weight: 700; color: var(--ink);
  background: linear-gradient(transparent 58%, rgba(60, 190, 123, 0.32) 58%);
  padding: 0 3px; border-radius: 2px;
}
/* Variante surlignage « clay » (accent) + emphases couleur du hero. */
.hl-clay {
  font-weight: 700; color: var(--ink);
  background: linear-gradient(transparent 58%, rgba(204, 120, 92, 0.30) 58%);
  padding: 0 3px; border-radius: 2px;
}
.ai-name { color: var(--accent); font-weight: 700; }
.accent-text { color: var(--accent); }

/* Carte "Hébergement France" : pleine largeur + mise en valeur */
.feature-fr {
  grid-column: 1 / -1;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-color: var(--line);
  background: var(--bg-card);
}
.feature-fr::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, #0055A4 0 33.34%, #ffffff 33.34% 66.67%, #EF4135 66.67%);
}
.feature-fr .feature-ic { font-size: 40px; margin-top: 6px; }
.feature-fr h3 { font-size: 19px; }
.feature-fr p { font-size: 15px; max-width: 760px; margin: 0 auto; }

/* Pages auth (signup/login) : marque + liens */
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; }
.auth-brand img { filter: drop-shadow(0 4px 12px rgba(34, 148, 96, 0.25)); }
.auth-wordmark { font-size: 24px; font-weight: 750; letter-spacing: -0.02em; color: var(--ink); }
.auth-links { margin-top: 16px; display: flex; gap: 18px; justify-content: space-between; flex-wrap: wrap; }
.auth-links a { text-decoration: none; }
.auth-links a:hover { color: var(--accent); }

/* Footer : marque AIGuard en gras */
.footer-brand span { font-weight: 700; color: var(--ink); }

/* Capsules versions sous le hero */
.landing > .availability { margin: 22px 0 0; }

/* Page légale plein écran (CGU) */
.legal-page { max-width: 820px; margin: 44px auto; padding: 0 20px; line-height: 1.6; }
.legal-page p { color: var(--fg); line-height: 1.6; }
.legal-page .muted { color: var(--fg-muted); }
.legal-page a { color: var(--accent); }
.legal-back { display: inline-block; margin-bottom: 18px; color: var(--fg-muted); text-decoration: none; font-size: 14px; }
.legal-back:hover { color: var(--accent); }

/* ---- Support tickets (integrated helpdesk) ------------------------------ */
tr.clickable { cursor: pointer; }

.support-chip {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.support-open    { background: var(--accent-soft); color: var(--accent); }
.support-answered{ background: rgba(47,125,84,0.12); color: var(--ok); }
.support-closed  { background: var(--row); color: var(--fg-muted); border: 1px solid var(--line); }

.support-thread { display: flex; flex-direction: column; gap: 12px; }
.support-msg {
  border: 1px solid var(--line); border-left: 3px solid var(--line);
  border-radius: 6px; padding: 10px 14px; background: var(--surface);
}
.support-msg-staff  { border-left-color: var(--accent); background: var(--accent-soft); }
.support-msg-client { border-left-color: var(--ok); }
.support-msg-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; margin-bottom: 6px; font-size: 13px;
}
.support-msg-body { line-height: 1.5; white-space: normal; word-break: break-word; }

/* ---- Support attachments ------------------------------------------------ */
.att-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.att-input { font-size: 13px; }
.support-atts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.att-thumb {
  display: inline-block; max-width: 220px; border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden; background: var(--row); line-height: 0;
}
.att-thumb .att-pending { display: inline-block; padding: 8px 10px; font-size: 12px; line-height: 1.2; color: var(--fg-muted); }
.att-img-el { display: block; max-width: 220px; max-height: 180px; object-fit: contain; }
.att-file {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
  cursor: pointer; font-size: 13px; color: var(--ink);
}
.att-file:hover { background: var(--surface-hover); }

/* ---- Landing refonte commerciale (2026-05-25) ------------------------- */
.section-sub { text-align: center; color: var(--fg-muted); max-width: 680px; margin: 6px auto 0; line-height: 1.5; }

/* "Comment ça marche" — 3 étapes */
.howit { max-width: 1040px; margin: 56px auto 0; padding: 0 20px; }
.howit-grid { display: flex; align-items: stretch; gap: 14px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.howit-step { flex: 1 1 260px; max-width: 320px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.howit-num { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.howit-step h3 { margin: 0 0 8px; font-size: 16px; }
.howit-step p { margin: 0; color: var(--fg-muted); line-height: 1.5; font-size: 14px; }
.howit-arrow { display: flex; align-items: center; color: var(--accent); font-size: 24px; font-weight: 700; }
.token-ex { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--accent-soft); color: var(--accent); padding: 1px 6px; border-radius: 4px; white-space: nowrap; }

/* "Pour qui ?" */
.usecases { max-width: 1040px; margin: 56px auto 0; padding: 0 20px; }
.usecases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 26px; }
.usecase { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.usecase h3 { margin: 10px 0 8px; font-size: 16px; }
.usecase p { margin: 0; color: var(--fg-muted); line-height: 1.5; font-size: 14px; }

/* Client testimonials (under "Pour qui ?") */
.testimonials { max-width: 1040px; margin: 56px auto 0; padding: 0 20px; }
.testimonial { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.t-stars { display: flex; align-items: center; gap: 3px; transform-origin: left center; transition: transform .2s ease; }
.testimonial:hover .t-stars { transform: scale(1.08); }
.t-star { color: #f5b301; font-size: 19px; line-height: 1; display: inline-block; text-shadow: 0 0 9px rgba(245,179,1,.5); animation: starPop .5s cubic-bezier(.2,1.5,.45,1) both; }
.t-star:nth-child(2) { animation-delay: .08s; }
.t-star:nth-child(3) { animation-delay: .16s; }
.t-star:nth-child(4) { animation-delay: .24s; }
.t-star:nth-child(5) { animation-delay: .32s; }
.t-rating { margin-left: 7px; font-size: 13px; font-weight: 800; color: #b07d00; }
@keyframes starPop { 0% { transform: scale(0) rotate(-25deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .t-star { animation: none; } .testimonial:hover .t-stars { transform: none; } }
.testimonial blockquote { margin: 0; color: var(--fg); line-height: 1.55; font-size: 14px; font-style: italic; }
.testimonial figcaption { display: flex; flex-direction: column; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line); }
.t-name { font-weight: 600; font-size: 14px; }
.t-role { color: var(--fg-muted); font-size: 13px; }

/* Tableau de bord de conformité */
.dashsection { max-width: 1040px; margin: 56px auto 0; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.dashsection-text p { color: var(--fg-muted); line-height: 1.6; }
.dash-tag { display: inline-block; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 12px; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.dash-points { list-style: none; padding: 0; margin: 14px 0 0; }
.dash-points li { padding: 4px 0; color: var(--ink); }
.dashboard-mock { background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,0.10); overflow: hidden; }
.dash-head { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--row); }
.dash-dot { width: 10px; height: 10px; border-radius: 50%; background: #d9534f; opacity: .55; }
.dash-dot:nth-child(2) { background: #f0ad4e; } .dash-dot:nth-child(3) { background: #5cb85c; }
.dash-title { margin-left: 8px; font-size: 12px; color: var(--fg-muted); }
.dash-body { padding: 20px; }
.dash-hero-stat { text-align: center; margin-bottom: 18px; }
.dash-bignum { font-size: 48px; font-weight: 800; color: var(--accent); line-height: 1; }
.dash-biglabel { color: var(--fg-muted); font-size: 13px; margin-top: 4px; }
.dash-rows { display: flex; flex-direction: column; gap: 10px; }
.dash-row { display: grid; grid-template-columns: 1fr 90px 28px; align-items: center; gap: 10px; font-size: 13px; }
.dash-bar { background: var(--row); border-radius: 4px; height: 8px; overflow: hidden; }
.dash-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.dash-row b { text-align: right; }
.dash-foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--fg-muted); text-align: center; }

/* Bascule mensuel/annuel + extras cartes */
.plan-toggle { display: flex; justify-content: center; gap: 0; margin: 18px auto 4px; background: var(--row); border: 1px solid var(--line); border-radius: 999px; padding: 4px; width: max-content; }
.plan-toggle-btn { border: none; background: transparent; padding: 8px 18px; border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--fg-muted); }
.plan-toggle-btn.active { background: var(--accent); color: #fff; font-weight: 600; }
.plan-toggle-save { font-size: 11px; opacity: .9; }
.plan-permonth { font-size: 12px; color: var(--fg-muted); margin-top: 2px; }
.plan-save { color: var(--ok); font-weight: 600; }
.plan-includes { list-style: none; padding: 0; margin: 14px 0; text-align: left; }
.plan-includes li { padding: 5px 0 5px 22px; position: relative; font-size: 14px; color: var(--ink); }
.plan-includes li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.plan-trial { margin-bottom: 12px; }
.plan-featured { border-color: var(--accent); box-shadow: 0 8px 30px rgba(204,120,92,0.15); }
.plan-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.plan-card { position: relative; }

@media (max-width: 780px) { .dashsection { grid-template-columns: 1fr; } }

/* Billing checkout buttons */
/* Le bloc sélecteur + prix + boutons est COLLÉ EN BAS de la carte : ainsi les
   boutons (et le sélecteur) s'alignent entre Pro / Entreprise quel que soit le
   nombre de lignes de fonctionnalités au-dessus. */
.billing-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; width: 100%; }
.billing-actions .btn { margin-top: 0; }
.plan-card.current { border-color: var(--ok); }

/* Modern price block + trial banner (2026-05-25) */
.plan-price { display: flex; align-items: baseline; justify-content: center; gap: 3px; margin: 10px 0 2px; min-height: 46px; }
.plan-amount { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.plan-cur { font-size: 20px; font-weight: 700; color: var(--ink); }
.plan-per { font-size: 14px; color: var(--fg-muted); align-self: flex-end; margin-bottom: 5px; }
.plan-quote { font-size: 26px; font-weight: 700; color: var(--ink); }
.plan-permonth { min-height: 18px; }
.trial-banner { background: var(--accent-soft); color: var(--accent); border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
/* Paiement en retard (rouge) / non finalisé (orange) — voir subscriptionSummary. */
.trial-banner-alert { background: #fde8e8; color: #b42318; }
.trial-banner-warn { background: #fff4e0; color: #b25e00; }

/* Password policy checklist (signup) */
.pw-checks { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; font-size: 12px; }
.pw-check { color: var(--fg-muted); transition: color .15s; }
.pw-check.ok { color: var(--ok); font-weight: 600; }

/* "-2 mois" savings badge on the annual toggle — high visibility (yellow) */
.plan-toggle-save {
  font-size: 11px; font-weight: 800; background: #ffd23f; color: #4a3800;
  padding: 1px 8px; border-radius: 999px; margin-left: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* "Comment ça marche" — démo avant/après dynamique */
.howit-demo { display: flex; align-items: stretch; gap: 16px; margin-top: 32px; flex-wrap: wrap; justify-content: center; }
.demo-col { flex: 1 1 330px; max-width: 430px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.demo-before { border-left: 3px solid var(--danger); }
.demo-after { border-left: 3px solid var(--ok); }
.demo-label { font-size: 12px; font-weight: 700; color: var(--fg-muted); margin-bottom: 8px; }
.demo-bubble { font-size: 14px; line-height: 1.7; color: var(--ink); }
.demo-before mark { background: rgba(178,58,46,0.14); color: var(--danger); border-radius: 4px; padding: 0 4px; font-weight: 600; }
.demo-after .tok { display: inline-block; background: var(--accent-soft); color: var(--accent); border-radius: 5px; padding: 0 6px; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; font-weight: 700; animation: tokpop .45s cubic-bezier(.2,.9,.3,1.4) both; }
.demo-after .tok:nth-of-type(2) { animation-delay: .12s; }
.demo-after .tok:nth-of-type(3) { animation-delay: .24s; }
@keyframes tokpop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.demo-flow { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--accent); font-weight: 700; gap: 2px; }
.demo-flow-arrow { font-size: 30px; animation: flowpulse 1.8s ease-in-out infinite; }
.demo-flow-lbl { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
@keyframes flowpulse { 0%,100% { transform: translateX(0); opacity: .55; } 50% { transform: translateX(5px); opacity: 1; } }
.howit-note { text-align: center; color: var(--fg-muted); max-width: 740px; margin: 22px auto 0; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .demo-after .tok, .demo-flow-arrow { animation: none; } }

/* Plan cards: smaller price + coloured title cartouches + OS badge icons (Sunil) */
.plan-amount { font-size: 30px; }
.plan-cur { font-size: 16px; }
.plan-per { font-size: 13px; }
.plan-quote { font-size: 22px; }
.plan-price { min-height: 40px; }
.plan-name {
  display: inline-block; align-self: center; padding: 4px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
}
.plan-name-starter { background: rgba(58,111,208,0.14); color: #3a6fd0; }
.plan-name-pro { background: var(--accent-soft); color: var(--accent); }
.plan-name-enterprise { background: rgba(47,125,84,0.16); color: var(--ok); }
.plan-name-scale { background: rgba(120,86,200,0.14); color: #7856c8; }
.avail-ic { vertical-align: -2px; margin-right: 5px; }

/* "Vous décidez quoi protéger" — capsule mise en avant + bouclier rouge */
.howit-capsule {
  display: flex; align-items: center; gap: 14px; max-width: 760px;
  margin: 22px auto 0; padding: 14px 20px; border-radius: 14px;
  background: var(--accent-soft); border: 1px solid var(--line);
}
.howit-capsule-ic { flex: 0 0 auto; filter: drop-shadow(0 2px 4px rgba(210,59,48,0.3)); }
.howit-capsule p { margin: 0; color: var(--ink); line-height: 1.55; font-size: 14px; text-align: left; }

/* "Comment ça marche" — cartes plus larges, numéro sur la ligne du titre, couleur */
.howit-step { flex: 1 1 380px; max-width: 470px; }
.howit-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.howit-head h3 { margin: 0; }
.howit-num { margin-bottom: 0; flex: 0 0 auto; }
.howit-step-1 { border-top: 3px solid #3a6fd0; background: linear-gradient(180deg, rgba(58,111,208,0.07), transparent 55%); }
.howit-step-1 .howit-num { background: #3a6fd0; }
.howit-step-2 { border-top: 3px solid #c98a2b; background: linear-gradient(180deg, rgba(201,138,43,0.09), transparent 55%); }
.howit-step-2 .howit-num { background: #c98a2b; }
/* Étape 3 — la « restitution magique » : la vraie donnée réapparaît à l'écran. */
.howit-step-3 { border-top: 3px solid var(--ok); background: linear-gradient(180deg, rgba(47,125,84,0.10), transparent 55%); }
.howit-step-3 .howit-num { background: var(--ok); }
/* Démo : 3e colonne « ce que vous lisez » + la vraie valeur restaurée en vert. */
.demo-after { border-left: 3px solid #c98a2b; }
.demo-restored { border-left: 3px solid var(--ok); }
.demo-restored .real { display: inline-block; background: rgba(47,125,84,0.16); color: var(--ok); border-radius: 5px; padding: 0 6px; font-weight: 700; animation: tokpop .45s cubic-bezier(.2,.9,.3,1.4) both; }
.demo-restored .real:nth-of-type(2) { animation-delay: .12s; }
.demo-restored .real:nth-of-type(3) { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .demo-restored .real { animation: none; } }

/* === "Comment ça marche" — disposition responsive + finitions (2026-06-16) ===
   Sunil : 3 blocs EN LIGNE sur grand écran, EMPILÉS verticalement quand la
   largeur est insuffisante — JAMAIS l'état bâtard 2+1. Base = vertical (mobile
   first) ; bascule en ligne à partir de 980px ; respiration élargie ≥1280px. */

/* Base (écran étroit) : colonnes empilées, flèches vers le bas, cartes centrées. */
.howit { max-width: 1160px; }
.howit-grid, .howit-demo {
  flex-direction: column; flex-wrap: nowrap; align-items: center; gap: 16px;
}
.howit-step, .demo-col {
  width: 100%; max-width: 460px; flex: 0 0 auto;
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.howit-step:hover, .demo-col:hover {
  transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0,0,0,.11);
}
.demo-bubble { overflow-wrap: break-word; }
.howit-arrow { display: flex; justify-content: center; transform: rotate(90deg); font-size: 26px; }
.demo-flow-arrow { transform: rotate(90deg); animation: none; }
/* La carte « restituée » brille — c'est l'effet whaou : la donnée réapparue. */
.demo-restored { box-shadow: 0 0 0 1px rgba(47,125,84,.28), 0 10px 30px rgba(47,125,84,.16); }

/* Grand écran (≥980px) : 3 colonnes alignées, flèches horizontales animées. */
@media (min-width: 980px) {
  .howit-grid, .howit-demo {
    flex-direction: row; flex-wrap: nowrap; align-items: stretch; justify-content: center;
  }
  .howit-step, .demo-col { flex: 1 1 0; min-width: 0; max-width: none; width: auto; }
  .howit-arrow { transform: none; align-items: center; }
  .demo-flow-arrow { transform: none; animation: flowpulse 1.8s ease-in-out infinite; }
}

/* Très grand écran (≥1280px) : la section respire plus large que le reste de
   la page (sort du conteneur 1140px, recentrée sur la fenêtre). */
@media (min-width: 1280px) {
  .howit { width: 1240px; max-width: 1240px; margin-left: 50%; transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .howit-step, .demo-col { transition: none; } }

/* Vidéo de démonstration réelle (substitution Nom + Email) sous la démo. */
.howit-video { margin: 40px auto 0; max-width: 940px; text-align: center; }
.howit-video-cap { color: var(--fg-muted); font-size: 14px; font-weight: 600; margin: 0 0 14px; }
.demo-video {
  width: 100%; height: auto; display: block; border-radius: 16px;
  border: 1px solid var(--line); background: #0b0b0c;
  box-shadow: 0 20px 54px rgba(0,0,0,.16);
}

/* --- help TOC + FAQ accordions (docs 2026-06-11) ------------------------- */
.help-page:has(.help-layout) { max-width: 1100px; }
.help-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.help-toc { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.help-toc a { color: var(--fg-muted); text-decoration: none; padding: 6px 10px; border-left: 2px solid transparent; border-radius: 0 6px 6px 0; }
.help-toc a:hover { color: var(--fg); background: var(--row, rgba(127,127,127,.08)); border-left-color: var(--accent); }
.help-content { min-width: 0; }
@media (max-width: 760px) { .help-layout { grid-template-columns: 1fr; } .help-toc { position: static; flex-direction: row; flex-wrap: wrap; margin-bottom: 16px; } }

.faq-list, .lfaq-list { max-width: 840px; }
.faq-group { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-muted); margin: 28px 0 10px; font-weight: 700; }
details { border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; background: var(--bg-card); overflow: hidden; }
details > summary { cursor: pointer; padding: 13px 16px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 10px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "+"; color: var(--accent); font-weight: 700; width: 1em; text-align: center; flex: 0 0 auto; }
details[open] > summary::before { content: "\2212"; }
details[open] > summary { border-bottom: 1px solid var(--line); }
.faq-answer { padding: 13px 16px; margin: 0; line-height: 1.6; }
.faq-answer code, details code { background: var(--row, rgba(127,127,127,.1)); padding: 1px 5px; border-radius: 4px; }

.nav-pill { font-size: 12px; font-weight: 600; color: var(--fg-muted); text-decoration: none; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; }
.nav-pill:hover { color: var(--fg); border-color: var(--fg-muted); }
.btn-secondary { display: inline-block; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--accent); border: 1px solid var(--accent); padding: 7px 14px; border-radius: 8px; }
.btn-secondary:hover { background: var(--accent-soft); }

.landing-faq { max-width: 840px; margin: 48px auto; }

/* ============================================================================
   REFONTE SITE INSTITUTIONNEL — pleine largeur, bandes alternées (style NextDNS)
   Sunil 2026-06-17. Display-only, site vitrine. Placé en dernier → gagne sur
   l'ordre source. Le site est forcé en clair via :root.site-light (theme.css).
   ========================================================================== */

/* --- Barre de navigation publique (collante, pleine largeur) --------------- */
/* Le conteneur d'injection de la nav ne doit PAS former de boîte : sinon la
   barre sticky ne « colle » que dans SA hauteur (= rien). display:contents le
   retire de la mise en page → la barre devient enfant direct de #view-landing
   (haut), et le sticky fonctionne sur toute la page. */
#landing-nav { display: contents; }
.site-nav {
  position: sticky; top: 0; z-index: 100; width: 100%;
  /* Fond OPAQUE (pas de backdrop-filter) : le flou créait un bloc conteneur qui
     piégeait le menu mobile en position:fixed (il ne couvrait pas l'écran). */
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 11px 24px;
  /* Au-dessus du panneau mobile (z-index:90) → le logo et le bouton X restent
     visibles et cliquables QUAND le menu plein écran est ouvert. */
  position: relative; z-index: 100;
}
.site-nav-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 750; font-size: 18px; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; flex: 0 0 auto;
}
.site-nav-brand img { display: block; }
.site-nav-menu { flex: 1; display: flex; justify-content: center; gap: 28px; }
.site-nav-menu a {
  color: var(--fg-muted); text-decoration: none; font-size: 14.5px;
  font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease; cursor: pointer; white-space: nowrap;
}
.site-nav-menu a:hover, .site-nav-menu a.active { color: var(--ink); border-bottom-color: var(--accent); }
.site-nav-cta { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
/* Contact = bouton blanc bordé avec icône légère. */
.site-nav-contact {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg-card); color: var(--fg);
  text-decoration: none; font-size: 14.5px; font-weight: 600;
  transition: border-color .15s ease, color .15s ease;
}
.site-nav-contact:hover { color: var(--accent); border-color: var(--accent); }
.site-nav-contact svg, .site-nav-btn svg { display: block; flex: 0 0 auto; }
/* Bouton « Se connecter / Mon espace » = accent, icône blanche EN LIGNE avec le
   texte. Sélecteur spécifique (.site-nav a.site-nav-btn) pour battre la règle
   générique `a.btn { display:inline-block }` qui empilait l'icône au-dessus. */
.site-nav a.site-nav-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.site-nav .btn.primary { padding: 8px 18px; font-size: 14.5px; border-radius: 8px; }

/* --- Landing en pleine largeur : chaque bande edge-to-edge ----------------- */
#view-landing, #view-cas { padding: 0; max-width: none; }
.landing { max-width: none; margin: 0; padding: 0; }
/* Le fond de bande couvre toute la largeur ; le contenu est centré et plafonné
   via un padding latéral calculé (truc full-bleed sans wrapper). */
.landing > .landing-hero,
.landing > .availability,
.landing > section,
.landing > .plans-section,
.landing > .landing-footer,
.cas-page > section {
  max-width: none; width: 100%; margin: 0;
  padding-top: 86px; padding-bottom: 86px;
  padding-left: max(24px, calc((100% - 1180px) / 2));
  padding-right: max(24px, calc((100% - 1180px) / 2));
}
/* Bandes alternées crème / blanc pour le rythme visuel. */
.landing > .landing-hero { background: radial-gradient(1100px 460px at 50% -8%, var(--accent-soft), transparent 70%), var(--bg); padding-top: 64px; padding-bottom: 26px; }
.landing > .availability  { background: var(--bg); padding-top: 4px; padding-bottom: 30px; }
.landing > #howit         { background: var(--bg-card); }
.landing > #features      { background: var(--bg); }
.landing > #usecases      { background: var(--bg-card); }
.landing > .testimonials  { background: var(--bg); }
.landing > .dashsection   { background: var(--bg-card); }
.landing > #faq           { background: var(--bg); max-width: none; }
.landing > #pricing       { background: var(--bg-card); }
.landing > .landing-footer{ background: var(--bg); border-top: 1px solid var(--line); padding-top: 30px; padding-bottom: 30px; }

/* Hero plus grand et dynamique ; on masque le logo du hero (déjà dans la nav). */
.landing-hero .hero-brand { display: none; }
.landing > .landing-hero h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.08; margin: 0 auto 16px; max-width: 880px; }
.landing-hero .lead { font-size: 17px; }
.hero-tagline { font-size: 17px; }

/* Les grilles internes remplissent la bande (on retire leurs largeurs/máax). */
.landing > #howit, .landing > #features, .landing > #usecases,
.landing > .testimonials, .landing > .dashsection, .landing > #faq { }
/* Neutralise le « breakout » bespoke de .howit (≥1280px : width:1240/margin-left:
   50%/translateX) prévu pour l'ancien conteneur 1140 — en pleine largeur il
   décalait et coupait la section. La bande gère désormais le centrage. */
.howit, .usecases, .testimonials {
  max-width: none; padding: 0; margin: 0;
  width: auto; transform: none; margin-left: 0;
}
.howit-demo, .howit-video, .howit-grid { max-width: 1120px; margin-left: auto; margin-right: auto; }
.lfaq-list { max-width: 820px; margin: 0 auto; }
.dashsection { max-width: 1120px; margin: 0 auto; padding: 0; }
.section-title { font-size: clamp(24px, 3vw, 34px); }

/* --- Page Études de cas (#/cas) ------------------------------------------- */
.cs-hero { background: radial-gradient(1100px 480px at 50% -10%, var(--accent-soft), transparent 70%), var(--bg); text-align: center; padding-top: 76px !important; padding-bottom: 60px !important; }
.cs-hero-inner { max-width: 880px; margin: 0 auto; }
.cs-hero-kicker {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
}
/* Catégorie de cas = petite BULLE de couleur (teinte propre à chaque cas). */
.cs-sector {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
  color: var(--cs-tint, var(--accent));
  background: color-mix(in srgb, var(--cs-tint, var(--accent)) 14%, var(--bg-card));
  border: 1px solid color-mix(in srgb, var(--cs-tint, var(--accent)) 32%, transparent);
}
#cas-professions    .cs-sector { --cs-tint: #6366f1; }
#cas-administration .cs-sector { --cs-tint: #2563eb; }
#cas-entreprise     .cs-sector { --cs-tint: #0d9488; }
#cas-developpeurs   .cs-sector { --cs-tint: #9333ea; }
.cs-hero h1 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.1; margin: 12px 0 14px; letter-spacing: -0.02em; }
.cs-hero .lead { color: var(--fg-muted); font-size: 17px; max-width: 720px; margin: 0 auto; line-height: 1.55; }
.cs-hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.cs-band-alt { background: var(--bg) !important; }
.cs-band:not(.cs-band-alt) { background: var(--bg-card); }
.cs-band-inner { max-width: 1100px; margin: 0 auto; }
.cs-band-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.cs-ic {
  width: 56px; height: 56px; flex: 0 0 auto; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  background: var(--accent-soft); border: 1px solid var(--line);
}
/* Titre de cas au MÊME style que les titres de section de la home : gras + trait
   d'accent dessous (aligné à gauche, le bandeau cas étant en 2 colonnes). */
.cs-title {
  font-size: clamp(22px, 2.6vw, 30px); margin: 8px 0 0; font-weight: 800; letter-spacing: -0.02em;
  position: relative; padding-bottom: 16px;
}
.cs-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 58px; height: 4px; border-radius: 99px; background: var(--accent);
}
.cs-lead { color: var(--fg-muted); font-size: 16.5px; line-height: 1.6; max-width: 860px; margin: 6px 0 26px; }
.cs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
/* Cartes premium : pastille d'icône teintée + titre, fond propre, élévation au
   survol. Plus de bord coloré à gauche ni d'emoji. */
.cs-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 22px;
  box-shadow: 0 1px 2px rgba(16,24,40,0.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cs-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(16,24,40,0.10); border-color: color-mix(in srgb, var(--line) 45%, var(--cc)); }
.cs-card-head { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; }
.cs-card-ic {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--cc) 13%, var(--bg-card));
  color: var(--cc);
}
.cs-card-ic svg { width: 21px; height: 21px; display: block; }
.cs-card-ic-brand { background: color-mix(in srgb, var(--ok) 13%, var(--bg-card)); }
.cs-card-ic-brand img { display: block; }
.cs-card h3 { margin: 0; font-size: 15px; }
.cs-card p { margin: 0; color: var(--fg-muted); line-height: 1.58; font-size: 14.5px; }
/* Couleur d'accent par type de carte (pilote pastille + halo de survol). */
.cs-risk   { --cc: var(--danger); }
/* Carte « Avec AIGuard » = identité VERTE : bord vert + pastille/halo verts. */
.cs-answer { --cc: var(--ok); border-color: var(--ok); }
.cs-result { --cc: var(--ok); }
.cs-example {
  margin-top: 18px; padding: 18px 20px; border-radius: 14px;
  background: var(--accent-soft); border: 1px solid var(--line);
}
.cs-example-tag { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 6px; }
.cs-example p { margin: 0; line-height: 1.6; color: var(--ink); }
.cs-cta { background: var(--bg-card); text-align: center; }
.cs-cta-inner { max-width: 720px; margin: 0 auto; }
.cs-cta h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 10px; }
.cs-cta p { color: var(--fg-muted); font-size: 16px; margin: 0 0 6px; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 860px) {
  .site-nav-menu { display: none; }
  .landing > .landing-hero, .landing > .availability, .landing > section,
  .landing > .plans-section, .landing > .landing-footer, .cas-page > section {
    padding-top: 56px; padding-bottom: 56px;
  }
  .cs-band-head { flex-direction: row; }
}
@media (max-width: 560px) {
  .site-nav-inner { gap: 12px; padding: 10px 16px; }
  .site-nav-contact { display: none; }
}

/* ============================================================================
   MENU HAMBURGER MOBILE + HERO 2 COLONNES AVEC CONSTELLATION DE LOGOS IA
   Sunil 2026-06-17. Site institutionnel (clair). Display-only.
   ========================================================================== */

/* --- Hamburger + panneau mobile plein écran -------------------------------- */
.site-nav-burger { display: none; }
.site-nav-mobile { display: none; }
@media (max-width: 860px) {
  .site-nav-menu { display: none; }
  /* Le menu central caché ne fait plus l'espaceur → on pousse le burger À DROITE. */
  .site-nav-cta { margin-left: auto; }
  .site-nav-cta .site-nav-contact,
  .site-nav-cta > .btn.primary,
  .site-nav-cta > .site-nav-btn { display: none; }   /* déplacés dans le panneau */
  .site-nav-burger {
    display: inline-flex; flex-direction: column; gap: 5px; padding: 0;
    width: 42px; height: 42px; align-items: center; justify-content: center;
    background: transparent; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  }
  .site-nav-burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
  .site-nav.open .site-nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-nav.open .site-nav-burger span:nth-child(2) { opacity: 0; }
  .site-nav.open .site-nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav-mobile {
    position: fixed; left: 0; right: 0; top: 0; bottom: 0;
    display: flex; flex-direction: column; gap: 0;
    padding: 78px 22px 28px; background: var(--bg);
    opacity: 0; transform: translateY(-10px); pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    z-index: 90; overflow-y: auto;
  }
  .site-nav.open .site-nav-mobile { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav-mobile a {
    font-size: 19px; font-weight: 650; color: var(--ink); text-decoration: none;
    padding: 17px 6px; border-bottom: 1px solid var(--line);
  }
  .site-nav-mobile a:active { color: var(--accent); }
  .site-nav-mobile .btn.primary {
    margin-top: 22px; border-bottom: none; text-align: center;
    padding: 15px; font-size: 16px; border-radius: 10px;
  }
}

/* --- Hero 2 colonnes (texte | constellation) ------------------------------- */
.hero-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 48px; }
.hero-text { flex: 1 1 540px; text-align: left; }
.hero-text h1 { margin: 0 0 14px; max-width: none; }
.hero-text .lead { margin-left: 0; margin-right: 0; max-width: 620px; }
.hero-text .row { justify-content: flex-start; }
.hero-orbit { flex: 0 0 420px; position: relative; width: 420px; height: 420px; }
.hero-orbit::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 300px; height: 300px;
  transform: translate(-50%, -50%); border-radius: 50%;
  border: 2px dashed rgba(204, 120, 92, 0.45);
}
.orbit-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 138px; height: 138px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: radial-gradient(circle at 32% 26%, #ffffff, var(--bg-card));
  border: 1px solid var(--line);
  box-shadow: 0 20px 54px rgba(204,120,92,0.24), inset 0 0 0 7px rgba(204,120,92,0.06);
}
.orbit-core span { font-weight: 750; font-size: 14px; letter-spacing: -0.01em; color: var(--ink); }
.llm-bubble {
  position: absolute; width: 104px; height: 104px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: var(--bg-card); border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0,0,0,0.09);
  animation: floaty 5.6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.9s);
}
.llm-bubble::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--brand); opacity: .45; }
.llm-bubble::after { content: ""; position: absolute; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.llm-bubble b { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.1; margin-top: 6px; }
.llm-bubble small { font-size: 10.5px; color: var(--fg-muted); margin-top: 2px; }
/* Couleurs de marque (teinte seulement — pas de reproduction de logo). */
.llm-openai     { --brand: #10A37F; left: 158px; top: 6px; }
.llm-claude     { --brand: #CC785C; left: 290px; top: 84px; }
.llm-gemini     { --brand: #4285F4; left: 290px; top: 232px; }
.llm-copilot    { --brand: #2D7FF9; left: 158px; top: 310px; }
.llm-mistral    { --brand: #FA520F; left: 26px;  top: 232px; }
.llm-perplexity { --brand: #20808D; left: 26px;  top: 84px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .llm-bubble { animation: none; } }

/* Sous 980px : pile, texte centré, constellation masquée (décor PC). */
@media (max-width: 980px) {
  /* align-items:stretch (et non center) → le bloc texte remplit la largeur et le
     titre se coupe correctement (sinon il se dimensionne à son contenu = déborde). */
  .hero-inner { flex-direction: column; gap: 0; align-items: stretch; }
  .hero-text { flex-basis: auto; width: 100%; max-width: 100%; text-align: center; }
  .hero-text h1, .hero-text .lead { margin-left: auto; margin-right: auto; }
  .hero-text .lead { max-width: 700px; }
  .hero-text .row { justify-content: center; }
  .hero-orbit { display: none; }
}

/* Mention légale marques (bas de home + page études de cas). */
.footer-trademark { width: 100%; max-width: 940px; margin: 4px auto 0; font-size: 11.5px; line-height: 1.5; color: var(--fg-muted); text-align: left; }

/* NB : aucun overflow-x:clip/hidden sur html/body/#view — TOUT overflow (même
   clip) sur un ancêtre de la barre casse position:sticky. On laisse le responsive
   éviter le débordement (titre coupé, grilles auto-fit, constellation masquée). */
@media (max-width: 600px) {
  .landing > .landing-hero h1, .hero-text h1 { font-size: 26px; line-height: 1.14; }
  .hero-tagline { font-size: 15.5px; }
  .hero-text .lead { font-size: 15px; }
  .cs-hero h1 { font-size: 26px; }
}

/* --- Overlay « Voir une démo » sur la vidéo -------------------------------- */
.video-wrap { position: relative; max-width: 940px; margin: 0 auto; border-radius: 14px; overflow: hidden; }
.video-wrap .demo-video { display: block; width: 100%; }
.video-overlay {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; border: none; padding: 0;
  background:
    radial-gradient(120% 120% at 50% 35%, rgba(204,120,92,0.30), rgba(31,30,28,0.55) 70%);
  -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px);
  transition: background .2s ease;
}
.video-overlay:hover { background: radial-gradient(120% 120% at 50% 35%, rgba(204,120,92,0.40), rgba(31,30,28,0.62) 70%); }
.video-overlay img { filter: drop-shadow(0 8px 20px rgba(0,0,0,0.35)); transition: transform .2s ease; }
.video-overlay:hover img { transform: scale(1.06); }
.video-cta {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 17px;
  padding: 12px 24px; border-radius: 999px;
  box-shadow: 0 10px 28px rgba(204,120,92,0.5);
  transition: transform .2s ease, box-shadow .2s ease;
}
.video-overlay:hover .video-cta { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(204,120,92,0.6); }
.video-cta-ic { font-size: 14px; }
.video-cta-sub { color: #fff; font-size: 13px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.video-overlay.hidden { display: none; }

/* --- « Pour qui ? » : cartes cliquables vers les études de cas -------------- */
.usecase-link {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.usecase-link:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.10); border-color: var(--accent); }
.usecase-link h3 { margin: 6px 0 6px; }
.usecase-link p { color: var(--fg-muted); line-height: 1.55; margin: 0 0 14px; }
.usecase-more { margin-top: auto; color: var(--accent); font-weight: 700; font-size: 14px; }
.usecases-cta { text-align: center; margin-top: 26px; }
.usecases-cta .btn { text-decoration: none; }

/* Sécurité : le titre du hero ne déborde jamais (coupe les mots très longs). */
.hero-text h1, .landing > .landing-hero h1 { overflow-wrap: break-word; }

/* Mobile : footer compact — les 5 liens tiennent sur UNE ligne. */
@media (max-width: 600px) {
  .landing > .landing-footer { padding-top: 18px; padding-bottom: 18px; }
  .landing-footer { gap: 8px; }
  .footer-links { flex-wrap: nowrap; gap: 10px; font-size: 11px; justify-content: center; }
  .footer-links a { white-space: nowrap; }
  .footer-trademark { font-size: 10.5px; margin-top: 2px; }
  .footer-copy { font-size: 11px; }
}

/* --- Titres de section : look moderne (barre dégradée + accent) ------------- */
.section-title {
  font-weight: 800; letter-spacing: -0.02em;
  position: relative; padding-bottom: 20px; margin: 0 0 24px;
}
.section-title::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 58px; height: 4px; border-radius: 99px;
  background: var(--accent);
}
/* Titre aligné à gauche (section tableau de bord) : barre à gauche. */
.dashsection .section-title { padding-bottom: 16px; }
.dashsection .section-title::after { left: 0; transform: none; }
/* Sous-titre de section : un peu plus présent. */
.section-sub { font-size: 16px; }

/* --- Icônes : pastille à FOND TRANSPARENT, bord rond, icône en couleur ------ */
.feature-ic, .usecase-link .feature-ic {
  width: 50px; height: 50px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent); margin-bottom: 16px; font-size: 0;
}
.feature-ic svg, .usecase-link .feature-ic svg { width: 26px; height: 26px; display: block; }
/* La carte « Hébergement France » est centrée : on centre sa pastille. */
.feature-fr .feature-ic { font-size: 0; margin-left: auto; margin-right: auto; }

/* Curseur FUN : bouclier vert AIGuard au survol des ronds LLM du hero. */
.llm-bubble:hover { cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2732%27%20height%3D%2732%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27%23229460%27%20d%3D%27M12%202%204%205v6c0%205%203.4%208.5%208%2010%204.6-1.5%208-5%208-10V5z%27%2F%3E%3Cpath%20fill%3D%27%23ffffff%27%20d%3D%27M10.6%2014.4%208.1%2011.9l1.1-1.1%201.4%201.4%203.2-3.2%201.1%201.1z%27%2F%3E%3C%2Fsvg%3E") 16 16, pointer; }

/* --- Cartes : titre À DROITE de l'icône + pastille en CERCLE ---------------- */
.feature, .usecase-link {
  display: grid; grid-template-columns: auto 1fr;
  column-gap: 14px; align-items: center;
}
.feature > .feature-ic, .usecase-link > .feature-ic { grid-row: 1; grid-column: 1; margin-bottom: 0; }
.feature > h3, .usecase-link > h3 { grid-row: 1; grid-column: 2; margin: 0; }
.feature > p, .usecase-link > p, .usecase-link > .usecase-more { grid-column: 1 / -1; }
.feature > p, .usecase-link > p { margin-top: 12px; }
/* Pastille = vrai CERCLE (et non carré arrondi). */
.feature-ic, .usecase-link .feature-ic { border-radius: 50%; }
/* Carte « Hébergement France » : reste centrée (icône au-dessus, centré). */
.feature-fr { display: block; text-align: center; }
.feature-fr .feature-ic { margin: 0 auto 12px; }
.feature-fr h3 { margin: 0 0 8px; }

/* --- Études de cas : photo métier qui déborde hors de la zone vers le texte -- */
/* La bande clippe le débordement (sûr, ne touche pas le sticky de la nav qui est
   ailleurs) → la photo peut sortir de la zone 1100 jusqu'au bord, sans scroll H. */
.cs-band { overflow: hidden; }
.cs-band-inner { display: grid; grid-template-columns: 1.05fr 0.9fr; gap: 48px; align-items: center; }
.cs-text { min-width: 0; }
/* Bandes alternées : la photo passe à gauche, le texte à droite. */
.cs-band-alt .cs-text { order: 2; }
.cs-band-alt .cs-photo { order: 1; }
.cs-photo { position: relative; align-self: stretch; min-height: 380px; }
.cs-photo-frame {
  position: absolute; top: 6%; bottom: 6%;
  /* Déborde LARGEMENT hors écran : .cs-band (overflow:hidden, pleine largeur)
     clippe au bord du viewport → la photo « sort » de l'écran. */
  left: -22px; right: -34vw;
  border-radius: 22px 0 0 22px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.18);
  background: linear-gradient(140deg, var(--accent-soft), rgba(60, 190, 123, 0.12));
}
.cs-band-alt .cs-photo-frame { left: -34vw; right: -22px; border-radius: 0 22px 22px 0; }
.cs-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-photo.no-photo .cs-photo-img { display: none; }          /* repli si pas de fichier */
.cs-photo-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 96px; opacity: 0.16; }
@media (max-width: 860px) {
  .cs-band-inner { grid-template-columns: 1fr; gap: 0; }
  .cs-photo { display: none; }                               /* décor desktop */
}

/* ---- Page Sécurité (#/securite) : bandes en pleine largeur de texte (pas de
   photo), avec une liste de points « ✓ ». Réutilise les classes cs-* pour le
   reste (hero, titres, CTA, footer). ------------------------------------------ */
.sec-page .cs-band-inner { display: block; max-width: 1100px; }
.sec-points { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; max-width: 880px; }
.sec-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--fg); font-size: 15.5px; line-height: 1.55; }
.sec-check {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 700; margin-top: 1px;
}

/* Footer PC sur 3 COLONNES : logo | menu | mention légale (à droite) ; et le
   © seul, CENTRÉ, en dessous. */
@media (min-width: 861px) {
  .landing-footer {
    display: grid; grid-template-columns: auto auto 1fr;
    align-items: center; column-gap: 36px; row-gap: 12px;
  }
  .footer-brand { grid-column: 1; grid-row: 1; }
  .footer-links { grid-column: 2; grid-row: 1; }
  .footer-trademark { grid-column: 3; grid-row: 1; width: auto; max-width: none; margin: 0; }
  .footer-copy { grid-column: 1 / -1; grid-row: 2; text-align: center; }
}

/* Logo vert AIGuard à la place de l'icône bouclier dans « Avec AIGuard ». */
.cs-aiguard-ico { vertical-align: -3px; margin-right: 4px; }

/* Études de cas : cartes risque/AIGuard/bénéfice TOUJOURS empilées (1 colonne)
   pour les 4 cas (sinon le cas avec texte large les met sur 2 colonnes). */
.cs-grid { grid-template-columns: 1fr; }

/* Inscription : Prénom + Nom condensés sur une même ligne. */
.signup-name-row { display: flex; gap: 10px; }
.signup-name-row label { flex: 1; display: flex; flex-direction: column; gap: 0; }

/* Puces rouges « message à lire » (menu Support + lignes de tickets). */
.nav-dot, .unread-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; vertical-align: middle; }
.nav-dot { margin-left: 6px; }
.unread-dot { margin-right: 7px; box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.18); }

/* ============================================================================
   VISUEL « Protection en couches » (création originale, pas une repro d'image)
   ========================================================================== */
/* Bande BLEU TRÈS CLAIR (denote la tech, ressort des bandes voisines) + condensée. */
.landing > #techlayers { background: linear-gradient(180deg, #e7f0ff 0%, #f2f7ff 100%); padding-top: 56px; padding-bottom: 40px; }
.tech-scene { position: relative; width: 100%; max-width: 600px; margin: 0 auto; perspective: 1300px; }
.tech-laptop-img { width: 100%; height: auto; display: block; border-radius: 16px; box-shadow: 0 26px 56px rgba(15,25,55,0.28); }
/* Couches = plaques PLATES semi-transparentes (parallélogramme léger), texte DROIT
   lisible, empilées au-dessus de l'écran et débordant à droite. Position en % →
   suit l'image. Hardware en bas → Console souveraine en haut. */
.tech-stack {
  position: absolute; left: 25%; top: 20.5%; width: 68%;
  display: flex; flex-direction: column; gap: 5px; z-index: 3;
}
.tech-layer {
  height: 30px; display: flex; align-items: center; gap: 8px; padding-left: 16px;
  transform: skewX(-21deg);
  margin-left: calc((6 - var(--i)) * 8px);
  background: linear-gradient(100deg,
    color-mix(in srgb, var(--c) 72%, transparent),
    color-mix(in srgb, var(--c) 24%, transparent) 66%,
    color-mix(in srgb, var(--c) 6%, transparent));
  border: 1px solid color-mix(in srgb, var(--c) 40%, #ffffff);
  border-radius: 6px;
  box-shadow: 0 7px 16px color-mix(in srgb, var(--c) 30%, transparent), inset 0 1px 0 rgba(255,255,255,0.45);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
/* Texte remis DROIT (contre-skew) → parfaitement lisible. */
.tech-layer .tl-ic, .tech-layer .tl-label { transform: skewX(21deg); display: inline-block; }
.tech-layer .tl-ic { font-size: 13px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3)); }
.tech-layer .tl-label { color: #fff; font-weight: 650; font-size: 11.5px; white-space: nowrap; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.tech-caption { text-align: center; max-width: 720px; margin: 8px auto 0; color: var(--fg-muted); font-size: 15px; line-height: 1.55; }
@media (max-width: 820px) {
  .tech-scene { transform: scale(0.64); height: 330px; margin-top: 6px; }
}

/* Section « couches » en 2 COLONNES sur PC : texte à gauche, visuel à droite. */
.tech-grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 24px; align-items: center; }
.tech-textcol { text-align: left; }
.tech-textcol .section-title { text-align: left; }
.tech-textcol .section-title::after { left: 0; transform: none; }
.tech-textcol .section-sub { text-align: left; margin: 0; max-width: 480px; }
.tech-textcol .tech-caption { text-align: left; margin: 16px 0 0; max-width: 480px; }
.tech-grid .tech-scene { margin: 0 auto; max-width: 100%; }
@media (max-width: 860px) {
  .tech-grid { grid-template-columns: 1fr; gap: 0; }
  .tech-textcol { text-align: center; }
  .tech-textcol .section-title { text-align: center; }
  .tech-textcol .section-title::after { left: 50%; transform: translateX(-50%); }
  .tech-textcol .section-sub, .tech-textcol .tech-caption { text-align: center; margin-left: auto; margin-right: auto; }
}

/* Lockup logo AIGuard dans la colonne texte de la section couches. */
.tech-brand { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 12px; font-weight: 750; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); }
.tech-brand img { display: block; }

/* Bouclier AIGuard à gauche des couches (sur la zone écran). */
.tech-shield { position: absolute; left: 17.5%; top: 39%; width: 10%; max-width: 56px; height: auto; z-index: 4; filter: drop-shadow(0 6px 16px rgba(0,0,0,0.45)); }

/* Démo home : cartes premium (pastille d'icône teintée, sans bord coloré ni emoji). */
.demo-before, .demo-after, .demo-restored { border-left: 0 !important; }
.demo-before { --cc: #5b6b8c; }
.demo-after { --cc: var(--accent); }
.demo-restored { --cc: var(--ok); }
.demo-label { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.demo-ic { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--cc) 14%, var(--bg-card)); color: var(--cc); }
.demo-ic svg { width: 17px; height: 17px; display: block; }

/* Carte « Hébergement souverain en France » : icône serveur tricolore + carte
   ÉLARGIE en bannière pleine largeur (Sunil 2026-06-18) — fin de section, mise en
   avant de la souveraineté. flex-basis 100% → la carte occupe sa propre rangée. */
.feature-ic-fr { border-color: var(--line); }
.feature-ic-fr svg { width: 28px; height: 28px; }
.feature-fr { flex-basis: 100%; max-width: 100%; }

/* Sélecteur de postes (forfait Entreprise au poste) : [−] [champ] [+] + total. */
.seat-pick { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.seat-step {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg);
  font-size: 20px; cursor: pointer;
  /* − et + parfaitement centrés dans le bouton */
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1; padding: 0;
}
.seat-step:hover { border-color: var(--accent); color: var(--accent); }
.seat-pick .seat-input {
  width: 78px; text-align: center; font: inherit; font-weight: 650;
  padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--fg);
  /* Pas de flèches haut/bas natives : on incrémente avec les boutons − / +. */
  appearance: textfield; -moz-appearance: textfield;
}
.seat-pick .seat-input::-webkit-outer-spin-button,
.seat-pick .seat-input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.seat-unit { color: var(--fg-muted); font-size: 13px; }
.seat-total { flex-basis: 100%; text-align: center; font-size: 14px; color: var(--fg-muted); margin-top: 2px; }
.seat-total strong { color: var(--fg); }

/* ===================================================================== */
/* Tiering Pro / Business (Sunil 2026-06-21) : grisage console + upsell.  */
/* La console existe pour tous ; certains onglets sont verrouillés en Pro */
/* (cadenas + grisé) et affichent un panneau d'upsell vers Business.      */
/* ===================================================================== */

/* Onglet de menu verrouillé : grisé, le cadenas signale l'upsell. */
.nav-locked { opacity: 0.55; }
.nav-lock { font-size: 12px; }

/* Panneau d'upsell affiché à la place d'une fonctionnalité Business. */
.upsell-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  max-width: 620px;
  background: var(--surface);
  text-align: center;
}
.upsell-card h3 { margin: 10px 0 6px; }
.upsell-card p { max-width: 520px; margin: 6px auto; line-height: 1.5; }
.upsell-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 12px;
}
.upsell-card .btn { margin-top: 16px; }

/* Bandeau niveau de support sur la page Support. */
.support-tier {
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.5;
}
.support-tier-premium { background: var(--accent-soft); color: var(--fg); }
.support-tier-standard { background: var(--surface); border: 1px solid var(--line); color: var(--fg-muted); }
