/* ===================================================================
   MaForma — thème clair « pro ». Blanc + bleu + bleu clair, accents.
   Vanilla CSS, accessible, responsive. Classes conservées (tout le site).
   =================================================================== */
:root {
  --bg: #ffffff;
  --bg-soft: #f3f7fe;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --border: #e7edf7;
  --border-strong: #d6e0f0;
  --txt: #0f1b33;
  --txt-muted: #5c6b8a;

  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --primary-700: #1e40af;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;

  --accent: #06b6d4;
  --success: #16a34a;
  --warn: #d97706;
  --danger: #e11d48;

  --radius: 14px;
  --radius-sm: 10px;
  --gap: 18px;
  --sidebar-w: 248px;

  --shadow-sm: 0 1px 2px rgba(15,27,51,.06), 0 1px 1px rgba(15,27,51,.04);
  --shadow: 0 6px 20px rgba(37,99,235,.08), 0 2px 6px rgba(15,27,51,.05);
  --shadow-lg: 0 18px 50px rgba(37,99,235,.16), 0 6px 18px rgba(15,27,51,.08);
  --ring: 0 0 0 4px rgba(37,99,235,.18);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--txt);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-700); text-decoration: underline; }
h1, h2, h3 { color: var(--txt); letter-spacing: -.01em; }
code { background: var(--blue-50); color: var(--primary-700); padding: 2px 7px; border-radius: 6px; font-size: .9em; }
.muted { color: var(--txt-muted); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

/* --- Logo --- */
.brand-logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark { display: block; filter: drop-shadow(0 4px 10px rgba(37,99,235,.28)); flex-shrink: 0; }
.brand-word { font-size: 20px; font-weight: 700; color: var(--txt); letter-spacing: -.02em; }
.brand-word b { color: var(--primary); font-weight: 800; }

/* --- Topbar --- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 24px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.brand { font-weight: 700; font-size: 18px; color: var(--txt); }
.brand:hover { text-decoration: none; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.user { color: var(--txt-muted); font-weight: 500; }
.inline { display: inline; margin: 0; }

/* --- Layout --- */
.layout { display: flex; min-height: calc(100vh - 64px); background: var(--bg-soft); }
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--surface); border-right: 1px solid var(--border); padding: 18px 12px;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.sidebar a {
  display: block; padding: 10px 14px; color: var(--txt-muted); font-weight: 500;
  border-radius: var(--radius-sm); transition: background .15s, color .15s;
}
.sidebar a:hover { background: var(--blue-50); color: var(--primary-700); text-decoration: none; }
.sidebar a.actif { color: var(--primary-700); background: var(--blue-100); font-weight: 600; }
.content { flex: 1; padding: 28px; max-width: 1240px; }
.page-title { margin: 0 0 22px; font-size: 24px; font-weight: 700; }

/* --- Cartes & KPI --- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; margin-bottom: var(--gap);
  box-shadow: var(--shadow-sm);
}
.card h2 { margin: 0 0 16px; font-size: 17px; font-weight: 700; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--gap); margin-bottom: var(--gap); }
.kpi {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-sm);
}
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--primary), var(--accent)); }
.kpi-val { font-size: 32px; font-weight: 800; color: var(--txt); letter-spacing: -.02em; }
.kpi-lab { color: var(--txt-muted); font-size: 13px; font-weight: 500; }
.quick { display: flex; flex-wrap: wrap; gap: 10px; }

/* --- Tableaux --- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.table th { color: var(--txt-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.table tbody tr:hover { background: var(--blue-50); }

/* --- Boutons --- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  padding: 9px 16px; border-radius: 10px; cursor: pointer; font-weight: 600;
  background: var(--surface); color: var(--txt); border: 1px solid var(--border-strong);
  font-size: 14px; font-family: inherit; transition: transform .08s, box-shadow .15s, background .15s;
}
.btn:hover { background: var(--surface-2); text-decoration: none; box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, #3b82f6, var(--primary-600)); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.28); }
.btn-primary:hover { background: linear-gradient(135deg, #2f74f0, var(--primary-700)); color: #fff; box-shadow: 0 8px 22px rgba(37,99,235,.36); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--txt-muted); }
.btn-ghost:hover { background: var(--blue-50); color: var(--primary-700); }
.btn-danger { background: var(--danger); border-color: transparent; color: #fff; }
.sp { height: 14px; }
.mt { margin-top: 18px; }
.btn-white { background: #fff; color: var(--primary-700); border-color: transparent; }
.btn-white:hover { background: #f1f5ff; color: var(--primary-700); }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }

/* --- Formulaires --- */
label { display: block; margin: 15px 0 6px; font-size: 14px; color: var(--txt); font-weight: 600; }
input, select, textarea {
  width: 100%; padding: 11px 13px; background: var(--surface); color: var(--txt);
  border: 1px solid var(--border-strong); border-radius: 10px; font: inherit; transition: border .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: var(--ring); outline: none; }
textarea { min-height: 96px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-actions { margin-top: 22px; display: flex; gap: 10px; }

/* --- Flash --- */
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; border: 1px solid transparent; font-weight: 500; }
.flash-succes { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.flash-erreur { background: #fff1f3; border-color: #fecdd3; color: #9f1239; }
.flash-info   { background: var(--blue-50); border-color: var(--blue-200); color: var(--primary-700); }

/* --- Badges de statut --- */
.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-demande { background: #eef2f8; color: #475569; }
.badge-qualification, .badge-montage_financement { background: #fef3c7; color: #92400e; }
.badge-accord, .badge-entree, .badge-en_cours { background: var(--blue-100); color: var(--primary-700); }
.badge-sortie, .badge-certification { background: #cffafe; color: #0e7490; }
.badge-cloture { background: #dcfce7; color: #166534; }
.badge-abandon, .badge-refuse { background: #ffe4e6; color: #be123c; }

/* --- Pipeline kanban --- */
.kanban { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; }
.kanban-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-width: 256px; flex: 0 0 256px; box-shadow: var(--shadow-sm); }
.kanban-col h3 { font-size: 13px; margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--txt-muted); display: flex; justify-content: space-between; align-items: center; text-transform: uppercase; letter-spacing: .03em; }
.kanban-cards { padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 40px; }
.kanban-card { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 10px; padding: 12px 14px; box-shadow: var(--shadow-sm); transition: transform .1s, box-shadow .15s; }
.kanban-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kanban-card a { color: var(--txt); font-weight: 600; }
.kanban-card .meta { color: var(--txt-muted); font-size: 12px; margin-top: 4px; }

/* --- Timeline --- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border-strong); }
.timeline li { position: relative; padding: 0 0 20px 22px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--blue-200); }
.timeline .t-date { color: var(--txt-muted); font-size: 12px; }
.timeline .t-auto::before { background: var(--accent); box-shadow: 0 0 0 2px #cffafe; }

/* --- Échéances --- */
.echeance-urgente { color: var(--danger); font-weight: 700; }
.echeance-proche  { color: var(--warn); font-weight: 600; }

/* --- Barre de progression --- */
.barre { height: 10px; background: var(--blue-100); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.barre-val { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .5s ease; }

/* --- Questions d'évaluation --- */
.question { padding: 14px 0; border-bottom: 1px solid var(--border); }
.question label { color: var(--txt); display: block; margin: 5px 0; font-weight: 500; }
.question input[type=radio], .question input[type=checkbox] { width: auto; margin-right: 9px; }

/* --- Fiche dossier --- */
.dossier-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.dossier-head h2 { margin: 0 0 4px; }
.grille-2 { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap); align-items: start; }
.statut-form select { margin-bottom: 8px; }
@media (max-width: 980px) { .grille-2 { grid-template-columns: 1fr; } }

/* --- Contenu pédagogique --- */
.seq { padding: 12px 0; border-bottom: 1px solid var(--border); }
.seq:last-of-type { border-bottom: none; }
.add-seq { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border-strong); }
.form-inline-upload { display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.form-inline-upload input[type=file] { width: auto; flex: 1; min-width: 180px; }

/* --- Auth (connexion) : split clair + héro --- */
.auth-body { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); }
.auth-hero { position: relative; overflow: hidden; background: linear-gradient(150deg, #1e40af, #2563eb 55%, #38bdf8); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 56px; }
.auth-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-hero .hero-inner { position: relative; z-index: 2; max-width: 440px; }
.auth-hero h2 { color: #fff; font-size: 34px; line-height: 1.2; margin: 24px 0 14px; }
.auth-hero p { color: #dbeafe; font-size: 16px; }
.auth-hero .pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.auth-hero .pill { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .brand-logo { margin-bottom: 18px; }
.auth-card h1 { font-size: 26px; margin: 0 0 4px; }
.auth-sub { margin: 0 0 22px; color: var(--txt-muted); font-size: 14px; }
.auth-card a.link { font-weight: 600; }
.auth-body.solo { grid-template-columns: 1fr; place-items: center; padding: 24px; background: radial-gradient(800px 500px at 50% -10%, var(--blue-50), #fff 70%); }
.auth-body.solo .auth-card { max-width: 400px; }
@media (max-width: 880px) { .auth-body { grid-template-columns: 1fr; } .auth-hero { display: none; } }

/* --- Landing (accueil public) --- */
.lp-nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: 16px 40px; background: rgba(255,255,255,.8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.lp-nav .nav-links { display: flex; align-items: center; gap: 26px; }
.lp-nav .nav-links a { color: var(--txt-muted); font-weight: 600; }
.lp-nav .nav-links a:hover { color: var(--primary); text-decoration: none; }
.lp-hero { position: relative; overflow: hidden; padding: 90px 40px 110px; text-align: center; background: radial-gradient(900px 500px at 50% -10%, var(--blue-50), #fff 70%); }
.lp-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.lp-hero .hero-content { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.lp-badge { display: inline-block; background: var(--blue-100); color: var(--primary-700); font-weight: 600; font-size: 13px; padding: 7px 15px; border-radius: 999px; margin-bottom: 22px; }
.lp-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; margin: 0 0 20px; letter-spacing: -.03em; }
.lp-hero h1 .grad { background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero p.lead { font-size: 19px; color: var(--txt-muted); max-width: 640px; margin: 0 auto 32px; }
.lp-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 12px; }
.lp-section { padding: 72px 40px; max-width: 1180px; margin: 0 auto; }
.lp-section h2 { font-size: clamp(26px, 3.5vw, 36px); text-align: center; margin: 0 0 12px; letter-spacing: -.02em; }
.lp-section .sub { text-align: center; color: var(--txt-muted); max-width: 560px; margin: 0 auto 44px; font-size: 17px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; margin-bottom: 16px; color: #fff; }
.feature h3 { font-size: 18px; margin: 0 0 8px; }
.feature p { color: var(--txt-muted); margin: 0; font-size: 15px; }
.ico-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.ico-cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.ico-indigo { background: linear-gradient(135deg, #6366f1, #4338ca); }
.ico-green { background: linear-gradient(135deg, #22c55e, #15803d); }
.ico-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.ico-rose { background: linear-gradient(135deg, #fb7185, #e11d48); }
.roles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.role-card { background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid var(--border); border-radius: 14px; padding: 22px; text-align: center; box-shadow: var(--shadow-sm); }
.role-card .ico { margin: 0 auto 14px; }
.role-card h4 { margin: 0 0 6px; font-size: 16px; }
.role-card p { color: var(--txt-muted); font-size: 13px; margin: 0; }
.lp-ctaband { margin: 0 40px 72px; border-radius: 24px; background: linear-gradient(135deg, #1e40af, #2563eb 60%, #38bdf8); color: #fff; padding: 56px; text-align: center; box-shadow: var(--shadow-lg); }
.lp-ctaband h2 { color: #fff; }
.lp-ctaband p { color: #dbeafe; font-size: 17px; max-width: 520px; margin: 10px auto 26px; }
.lp-footer { border-top: 1px solid var(--border); padding: 32px 40px; color: var(--txt-muted); font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 700px) { .lp-nav, .lp-hero, .lp-section, .lp-footer { padding-left: 20px; padding-right: 20px; } .lp-nav .nav-links a:not(.btn) { display: none; } .lp-ctaband { margin: 0 20px 56px; padding: 40px 24px; } .form-row { grid-template-columns: 1fr; } }

/* --- Reveal au scroll --- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].in, .reveal-all [data-reveal] { opacity: 1; transform: none; }

/* --- Eyebrow / section head --- */
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }

/* --- Bandeau confiance --- */
.trust { padding: 28px 40px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.trust .wrap { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 14px 30px; flex-wrap: wrap; }
.trust span { color: var(--txt-muted); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.trust .chip { background: var(--blue-50); color: var(--primary-700); padding: 7px 14px; border-radius: 10px; font-weight: 700; font-size: 13px; }

/* --- Stats --- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; }
.stat { text-align: center; padding: 20px; }
.stat .num { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -.03em; background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat .lab { color: var(--txt-muted); font-weight: 600; margin-top: 4px; }

/* --- Étapes (process) --- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -14px; left: 20px; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #3b82f6, var(--primary-700)); color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(37,99,235,.3); }
.step h4 { margin: 10px 0 6px; font-size: 16px; }
.step p { color: var(--txt-muted); margin: 0; font-size: 14px; }

/* --- Showcase alterné (fonction + visuel) --- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-bottom: 72px; }
.showcase:nth-child(even) .sc-text { order: 2; }
.showcase .eyebrow { margin-bottom: 10px; }
.showcase h3 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 14px; }
.showcase p { color: var(--txt-muted); font-size: 16px; margin: 0 0 18px; }
.sc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sc-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--txt); font-weight: 500; }
.sc-list li::before { content: "✓"; color: #fff; background: var(--success); width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; flex-shrink: 0; margin-top: 2px; }
.sc-visual { background: linear-gradient(160deg, var(--blue-50), var(--surface)); border: 1px solid var(--border); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); min-width: 0; }
@media (max-width: 860px) { .showcase { grid-template-columns: 1fr; gap: 24px; } .showcase:nth-child(even) .sc-text { order: 0; } }

/* Mocks dans les visuels */
.mock-row { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.mock-row:last-child { margin-bottom: 0; }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.mock-row .g { flex: 1; min-width: 0; }
.mock-row .g b { display: block; font-size: 13px; }
.mock-row .g span { font-size: 11px; color: var(--txt-muted); }
.mock-bar { height: 8px; border-radius: 999px; background: var(--blue-100); overflow: hidden; }
.mock-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.mock-kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kanban .col { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px; }
.mock-kanban .col h6 { margin: 0 0 7px; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--txt-muted); }
.mock-card { background: var(--bg-soft); border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 7px; padding: 7px 8px; margin-bottom: 6px; font-size: 11px; font-weight: 600; }

/* --- Bloc assistant IA --- */
.ai-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; background: linear-gradient(135deg, #0b1b3f, #1e40af 60%, #2563eb); border-radius: 26px; padding: 48px; color: #fff; box-shadow: var(--shadow-lg); }
.ai-band h2 { color: #fff; } .ai-band p { color: #dbeafe; font-size: 17px; }
.ai-band .chatmini { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; padding: 16px; backdrop-filter: blur(4px); }
.ai-band .bubble { background: #fff; color: #0f1b33; border-radius: 12px; padding: 10px 13px; font-size: 14px; margin-bottom: 10px; max-width: 90%; }
.ai-band .bubble.me { background: rgba(255,255,255,.2); color: #fff; margin-left: auto; }
@media (max-width: 820px) { .ai-band { grid-template-columns: 1fr; padding: 32px; } }

/* --- FAQ --- */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 18px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 22px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--txt-muted); }

/* --- Tarifs --- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; align-items: start; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); position: relative; }
.price-card.featured .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #3b82f6, var(--primary-700)); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; }
.price-card .plan { font-weight: 700; font-size: 18px; }
.price-card .amount { font-size: 42px; font-weight: 800; letter-spacing: -.03em; margin: 12px 0 2px; }
.price-card .amount small { font-size: 15px; font-weight: 600; color: var(--txt-muted); }
.price-card .desc { color: var(--txt-muted); font-size: 14px; margin-bottom: 18px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; }
.price-card li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; }
.price-card li::before { content: "✓"; color: var(--success); font-weight: 800; }
.price-card li.off { color: var(--txt-muted); } .price-card li.off::before { content: "—"; color: var(--border-strong); }
.price-card .btn { margin-top: auto; }
.compare { width: 100%; border-collapse: collapse; margin-top: 10px; }
.compare th, .compare td { padding: 13px 14px; border-bottom: 1px solid var(--border); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--txt); font-weight: 600; }
.compare thead th { color: var(--primary-700); font-family: var(--font); }
.compare .yes { color: var(--success); font-weight: 800; } .compare .no { color: var(--border-strong); }

/* --- Footer riche --- */
.footer-rich { background: #0b1324; color: #c9d4ea; padding: 56px 40px 28px; }
.footer-rich .cols { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.footer-rich .brand-word, .footer-rich .brand .w { color: #fff; }
.footer-rich h5 { color: #fff; font-size: 14px; margin: 0 0 14px; font-family: var(--font); }
.footer-rich ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-rich a { color: #9fb2d4; }
.footer-rich a:hover { color: #fff; }
.footer-rich .about { max-width: 320px; font-size: 14px; color: #9fb2d4; }
.footer-rich .bottom { max-width: 1180px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #8295b8; }
@media (max-width: 760px) { .footer-rich { padding: 40px 20px 24px; } .footer-rich .cols { grid-template-columns: 1fr 1fr; gap: 26px; } }

/* --- Widgets flottants : WhatsApp + Assistant IA --- */
.fab-stack { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.fab { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: none; box-shadow: var(--shadow-lg); transition: transform .12s; color: #fff; }
.fab:hover { transform: scale(1.06); }
.fab svg { width: 28px; height: 28px; }
.fab-wa { background: #25d366; }
.fab-ai { background: linear-gradient(135deg, #3b82f6, #1d4ed8); position: relative; }
.fab-ai::after { content: ""; position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
.chat-panel { position: fixed; right: 22px; bottom: 92px; z-index: 61; width: 370px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 130px); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden; }
.chat-panel.open { display: flex; }
.chat-head { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 10px; }
.chat-head .title { font-weight: 700; }
.chat-head .sub { font-size: 12px; color: #dbeafe; }
.chat-head .close { margin-left: auto; background: transparent; border: none; color: #fff; cursor: pointer; font-size: 20px; line-height: 1; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.msg.bot { background: #fff; border: 1px solid var(--border); color: var(--txt); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.me { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-form input { border-radius: 999px; }
.chat-form button { border-radius: 50%; width: 42px; height: 42px; flex-shrink: 0; padding: 0; }
.chat-typing { font-size: 13px; color: var(--txt-muted); font-style: italic; }

/* --- Responsive sidebar --- */
@media (max-width: 860px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .sidebar ul { flex-direction: row; flex-wrap: wrap; }
  .sidebar a.actif { background: var(--blue-100); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
