/* ILYGO Monitoring — Design system marketing (cohérent avec le produit) */

:root, :root[data-theme="dark"] {
  --bg: #070c18;
  --surface: #0e1726;
  --surface2: #162035;
  --border: #1e2f4a;
  --border2: #253a5e;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-glow: rgba(59,130,246,.15);
  --ok: #10b981;
  --warn: #f59e0b;
  --error: #ef4444;
  --text: #e2e8f0;
  --text2: #8fa3c0;
  --text3: #4b5d7a;
  --gradient-hero: linear-gradient(135deg, rgba(59,130,246,.12) 0%, rgba(139,92,246,.08) 50%, rgba(16,185,129,.05) 100%);
}

:root[data-theme="light"] {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface2: #f0f3f8;
  --border: #dde3ec;
  --border2: #c2cbd9;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-glow: rgba(37,99,235,.10);
  --ok: #059669;
  --warn: #d97706;
  --error: #dc2626;
  --text: #1e293b;
  --text2: #475569;
  --text3: #94a3b8;
  --gradient-hero: linear-gradient(135deg, rgba(37,99,235,.10) 0%, rgba(139,92,246,.06) 50%, rgba(16,185,129,.04) 100%);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #f4f6fa; --surface: #ffffff; --surface2: #f0f3f8;
    --border: #dde3ec; --border2: #c2cbd9;
    --accent: #2563eb; --accent-hover: #1d4ed8; --accent-glow: rgba(37,99,235,.10);
    --ok: #059669; --warn: #d97706; --error: #dc2626;
    --text: #1e293b; --text2: #475569; --text3: #94a3b8;
    --gradient-hero: linear-gradient(135deg, rgba(37,99,235,.10) 0%, rgba(139,92,246,.06) 50%, rgba(16,185,129,.04) 100%);
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-hover); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER (inspiré de hawser.ilygo-app.ch — sticky translucide + blur) ── */
header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 600; color: var(--text);
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800;
  box-shadow: 0 4px 12px var(--accent-glow);
}
.nav-links {
  display: flex; gap: 28px; align-items: center;
  font-size: 14px;
}
.nav-links a {
  color: var(--text2); font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.is-active { color: var(--text); font-weight: 600; }
.nav-links .nav-signin {
  color: var(--accent); font-weight: 600;
}
.nav-links .nav-signin:hover {
  color: var(--accent-hover);
}
.header-cta { display: flex; gap: 10px; align-items: center; }

/* Lang toggle (segmented control style Hawser) */
.lang-toggle {
  display: inline-flex; gap: 2px; align-items: center;
  border: 1px solid var(--border); border-radius: 8px; padding: 3px;
  font-size: 12px; letter-spacing: 0.04em;
  background: var(--surface);
}
.lang-toggle button {
  background: transparent; border: 0; color: var(--text2);
  padding: 4px 9px; border-radius: 5px; cursor: pointer;
  font: inherit; text-transform: uppercase; font-weight: 600;
  transition: background .12s, color .12s;
}
.lang-toggle button:hover { color: var(--text); }
.lang-toggle button.active {
  background: var(--accent); color: #fff;
}

@media (max-width: 800px) {
  .nav-links a:not(.nav-signin) { display: none; }
  .header-cta .btn-ghost { display: none; }
  .lang-toggle button { padding: 4px 7px; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 600; line-height: 1;
  cursor: pointer; border: 1px solid transparent;
  font-family: inherit; transition: all .15s, transform .08s;
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 6px 20px var(--accent-glow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border2); }
.btn-ghost:hover { background: var(--surface2); color: var(--text); border-color: var(--accent); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }

/* ── HERO ── */
.hero {
  padding: 80px 24px 100px;
  background: var(--gradient-hero);
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border2);
  padding: 6px 14px; border-radius: 20px;
  font-size: 13px; color: var(--text2); font-weight: 500;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -.02em;
  color: var(--text); margin-bottom: 22px; max-width: 800px; margin-left: auto; margin-right: auto;
}
.hero h1 strong { color: var(--accent); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text2); max-width: 640px;
  margin: 0 auto 36px; line-height: 1.55;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.hero-trust {
  font-size: 13px; color: var(--text3);
  display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
}
.hero-trust span::before { content: '✓ '; color: var(--ok); margin-right: 3px; }

/* ── SECTIONS ── */
section { padding: 80px 24px; }
section.bg-alt { background: var(--surface); }
.section-eyebrow {
  display: block; text-align: center; font-size: 12px; font-weight: 700;
  color: var(--accent); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px;
}
.section-title {
  text-align: center; font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800; color: var(--text);
  letter-spacing: -.02em; margin-bottom: 16px;
}
.section-sub {
  text-align: center; font-size: 1.1rem; color: var(--text2);
  max-width: 600px; margin: 0 auto 56px;
}

/* ── DIFFERENTIATORS / CARDS ── */
.diff-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px; max-width: 1100px; margin: 0 auto;
}
.diff-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px 28px;
  transition: all .2s;
}
.diff-card:hover {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow);
}
.diff-icon { font-size: 36px; margin-bottom: 18px; line-height: 1; }
.diff-card h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.diff-card p { color: var(--text2); font-size: 14px; line-height: 1.6; }

/* ── FEATURES GRID ── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; max-width: 1100px; margin: 0 auto;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px;
  display: flex; flex-direction: column; gap: 8px;
}
.feature-card:hover { border-color: var(--border2); }
.feature-icon { font-size: 24px; line-height: 1; }
.feature-card h4 { font-size: 15px; font-weight: 700; color: var(--text); }
.feature-card p { color: var(--text2); font-size: 13px; line-height: 1.55; }

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  /* 4 cards alignées sur la meme ligne en desktop (>=1024px) */
  grid-template-columns: repeat(4, 1fr);
  gap: 18px; max-width: 1240px; margin: 0 auto;
}
@media (max-width: 1024px) {
  /* Tablet : 2 x 2 */
  .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 560px) {
  /* Mobile : 1 colonne */
  .pricing-grid { grid-template-columns: 1fr; gap: 14px; }
}
.price-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 26px 20px;
  display: flex; flex-direction: column; position: relative;
  min-width: 0; /* permet aux cards de se reduire dans le grid */
}
.price-card.featured {
  border-color: var(--accent); border-width: 2px;
  box-shadow: 0 12px 40px var(--accent-glow);
  /* Pas de transform: scale pour garder l'alignement parfait sur 4 colonnes */
}
.price-card.featured::before {
  content: '⭐ Recommandé';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  padding: 4px 14px; border-radius: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
}
.price-name { font-size: 14px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.price-amount { font-size: 36px; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 4px; }
.price-amount .currency { font-size: 22px; font-weight: 700; vertical-align: top; margin-right: 2px; }
.price-amount .period { font-size: 14px; color: var(--text3); font-weight: 500; }
.price-tagline { font-size: 13px; color: var(--text2); margin-bottom: 22px; min-height: 38px; }
.price-features { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.price-features li {
  font-size: 14px; color: var(--text2); padding: 6px 0;
  display: flex; gap: 8px; align-items: flex-start;
}
.price-features li::before { content: '✓'; color: var(--ok); font-weight: 700; flex-shrink: 0; }
.price-features li.minus::before { content: '−'; color: var(--text3); }

/* ── COMPARISON TABLE ── */
.compare-wrap { overflow-x: auto; max-width: 1000px; margin: 0 auto; }
table.compare {
  width: 100%; border-collapse: collapse; font-size: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
table.compare th, table.compare td {
  padding: 14px 18px; text-align: left;
  border-bottom: 1px solid var(--border);
}
table.compare th {
  background: var(--surface2); color: var(--text); font-weight: 700;
}
table.compare td { color: var(--text2); }
table.compare td.win { color: var(--ok); font-weight: 600; }
table.compare td.lose { color: var(--text3); }
table.compare tr:last-child td { border-bottom: none; }

/* ── FAQ ── */
.faq {
  max-width: 800px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 8px;
}
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 0; overflow: hidden;
  transition: border-color .15s;
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  cursor: pointer; padding: 18px 24px; font-weight: 600; color: var(--text);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  font-size: 15px;
}
.faq summary::after { content: '+'; color: var(--text2); font-size: 22px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq details > p {
  padding: 0 24px 20px; color: var(--text2); font-size: 14px; line-height: 1.6;
}

/* ── CTA FINAL ── */
.cta-final {
  text-align: center;
  background: var(--gradient-hero);
  padding: 80px 24px;
  border-top: 1px solid var(--border);
}
.cta-final h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--text); margin-bottom: 14px; font-weight: 800; }
.cta-final p { color: var(--text2); margin-bottom: 28px; }

/* ── FOOTER ── */
footer.site-footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 56px 24px 24px;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px; margin-bottom: 48px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand p { font-size: 13px; color: var(--text2); margin-top: 14px; max-width: 280px; }
.footer-col h5 { font-size: 12px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text2); font-size: 13px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--text3);
}

/* ── PAGE HEADER (pour pages internes) ── */
.page-header {
  background: var(--gradient-hero);
  padding: 70px 24px 50px; text-align: center;
}
.page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--text); margin-bottom: 12px; letter-spacing: -.02em; }
.page-header p { font-size: 1.05rem; color: var(--text2); max-width: 600px; margin: 0 auto; }

/* ── 404 ── */
.notfound { padding: 120px 24px; text-align: center; }
.notfound h1 { font-size: 96px; font-weight: 900; color: var(--accent); margin-bottom: 12px; line-height: 1; }
.notfound p { font-size: 1.1rem; color: var(--text2); margin-bottom: 24px; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  section { padding: 60px 18px; }
  .hero { padding: 60px 18px 80px; }
  .hero-trust { font-size: 12px; gap: 14px; }
  .price-card.featured { transform: none; }
}

/* ── A11Y FOCUS ── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.skip-link {
  position: absolute; top: -40px; left: 12px;
  background: var(--accent); color: #fff;
  padding: 8px 14px; border-radius: 6px;
  z-index: 200; font-size: 13px; font-weight: 600;
  transition: top .15s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ── LANG SWITCHER ── */
.lang-switcher {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 7px 26px 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%2394a3b8' d='M6 8 0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 8px;
  transition: border-color .15s, color .15s;
}
.lang-switcher:hover, .lang-switcher:focus { border-color: var(--accent); color: var(--text); outline: none; }
.lang-switcher option { background: var(--surface); color: var(--text); }
@media (max-width: 640px) {
  .lang-switcher { padding: 5px 22px 5px 8px; font-size: 12px; }
}


/* ── iOS section (landing) ─────────────────────────────────────────── */
.ios-section { padding: 96px 0; }
.ios-grid {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center;
}
.ios-copy .section-eyebrow { display: inline-block; margin-bottom: 12px; }
.ios-bullets {
  list-style: none; padding: 0; margin: 24px 0 32px 0;
  display: flex; flex-direction: column; gap: 14px;
}
.ios-bullets li {
  padding-left: 28px; position: relative; color: var(--text2); font-size: 15px; line-height: 1.55;
}
.ios-bullets li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--ok); font-weight: 700; font-size: 16px;
}
.ios-bullets strong { color: var(--text); font-weight: 600; }
.ios-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ios-soon {
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--warn); font-weight: 600;
  padding: 4px 10px; border: 1px solid var(--warn); border-radius: 100px;
  background: color-mix(in srgb, var(--warn) 12%, transparent);
}
.ios-visual { display: flex; justify-content: center; }

/* Mockup iPhone — pure CSS, sans image */
.ios-phone {
  width: 290px; height: 580px;
  border-radius: 44px;
  background: linear-gradient(160deg, #1a2438 0%, #0c1322 100%);
  padding: 14px;
  box-shadow:
    0 0 0 4px #2a3a55,
    0 30px 60px -20px rgba(0,0,0,0.5),
    0 0 80px -20px var(--accent-glow);
  position: relative;
}
.ios-phone::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 28px; border-radius: 16px; background: #000; z-index: 2;
}

/* Variante .ios-phone-real : cadre iPhone qui contient une vraie capture
   (img) plutot que le mockup CSS pur. La capture a deja la status bar et
   l'UI native, donc on neutralise le pseudo-element d'encoche. */
.ios-phone-real { padding: 0; overflow: hidden; }
.ios-phone-real::before { display: none; }
.ios-phone-real img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  border-radius: 38px;
  display: block;
}

.ios-phone-screen {
  width: 100%; height: 100%; border-radius: 32px;
  background: linear-gradient(180deg, #0a1220 0%, #0e1726 100%);
  padding: 60px 14px 20px 14px;
  display: flex; flex-direction: column; gap: 10px;
  overflow: hidden;
}
.ios-phone-header {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0 6px 8px 6px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ios-phone-time { color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ios-phone-app { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: -0.01em; }
.ios-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
}
.ios-card strong { display: block; color: #e2e8f0; font-size: 13px; font-weight: 600; }
.ios-card small { color: #8fa3c0; font-size: 11px; }
.ios-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ios-dot-ok   { background: #10b981; box-shadow: 0 0 8px #10b981; }
.ios-dot-warn { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.ios-dot-ko   { background: #ef4444; box-shadow: 0 0 8px #ef4444; animation: pulse-ko 1.4s ease-in-out infinite; }
@keyframes pulse-ko {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(0.9); }
}

@media (max-width: 800px) {
  .ios-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .ios-copy .section-title, .ios-copy .section-sub { text-align: center !important; }
  .ios-bullets li { text-align: left; }
  .ios-ctas { justify-content: center; }
}

/* ── ONE-PAGER : ancres + scroll-margin pour header sticky ─────────── */
section[id] { scroll-margin-top: 80px; }

/* ── Trust strip (style Hawser : chiffres cles apres hero) ─────────── */
.trust-strip {
  padding: 28px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 50%, var(--bg) 50%);
}
.trust-stats {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  align-items: baseline; text-align: center;
}
.trust-num {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800; color: var(--accent);
  letter-spacing: -0.02em; line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.trust-lbl {
  font-size: 13px; color: var(--text2);
  text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 500;
}
@media (max-width: 700px) {
  .trust-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ── Security cards (landing one-pager) ────────────────────────────── */
.security-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px; max-width: 1100px; margin: 0 auto;
}
.security-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px 24px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.security-card:hover {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 12px 24px var(--accent-glow);
}
.security-icon { font-size: 30px; margin-bottom: 14px; line-height: 1; }
.security-card h3 {
  font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px;
}
.security-card p { color: var(--text2); font-size: 14px; line-height: 1.55; }

/* ── HAMBURGER MENU (mobile) ────────────────────────────────────────── */
.menu-toggle {
  display: none;          /* hidden par defaut, montre <720px */
  background: transparent; border: 1px solid var(--border);
  width: 40px; height: 40px; border-radius: 8px;
  cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
  transition: border-color .15s, background .15s;
}
.menu-toggle:hover { border-color: var(--accent); background: var(--surface); }
.menu-toggle-bars {
  display: inline-flex; flex-direction: column; gap: 4px;
  width: 18px;
}
.menu-toggle-bars span {
  display: block; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .2s, opacity .2s;
}
/* Anim "X" quand ouvert */
header.site-header[data-menu-open="true"] .menu-toggle-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
header.site-header[data-menu-open="true"] .menu-toggle-bars span:nth-child(2) { opacity: 0; }
header.site-header[data-menu-open="true"] .menu-toggle-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 720px) {
  /* Le hamburger remplace nav + cta */
  .menu-toggle { display: inline-flex; }
  .header-inner { gap: 12px; }
  .nav-links, .header-cta {
    display: none;
  }
  /* Drawer ouvert : on positionne nav + cta en colonne sous le header */
  header.site-header[data-menu-open="true"] .nav-links,
  header.site-header[data-menu-open="true"] .header-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: absolute;
    left: 0; right: 0;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0,0,0,.15);
  }
  header.site-header[data-menu-open="true"] .nav-links { top: 64px; padding-bottom: 12px; }
  header.site-header[data-menu-open="true"] .header-cta {
    top: auto;
    /* offset = 64 (header) + N nav-links * ~44px */
    margin-top: calc(64px + 5 * 44px + 24px);
    border-top: 1px solid var(--border);
  }
  header.site-header[data-menu-open="true"] .nav-links a {
    padding: 12px 8px;
    border-radius: 6px;
    font-size: 16px;
  }
  header.site-header[data-menu-open="true"] .nav-links a:hover {
    background: var(--surface);
  }
  /* Lang toggle pleine largeur dans le drawer */
  header.site-header[data-menu-open="true"] .lang-toggle {
    align-self: center;
    margin: 8px auto 0;
  }
  /* Le bouton "Essai gratuit" pleine largeur dans le drawer */
  header.site-header[data-menu-open="true"] .header-cta .btn {
    width: 100%; justify-content: center;
  }
  /* Sticky avec menu ouvert : laisser scroller le drawer si trop long */
  header.site-header[data-menu-open="true"] {
    max-height: 100vh;
  }
}

/* Astuce : sur tres petit ecran, on peut aussi simplifier le logo. */
@media (max-width: 380px) {
  .logo span:last-child { display: none; } /* garde juste le carre "M" */
}

/* ── MCP / AI-ready section (landing) ──────────────────────────────── */
.mcp-section { padding: 96px 0; }
.mcp-grid {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.mcp-bullets {
  list-style: none; padding: 0; margin: 0 0 24px 0;
  display: flex; flex-direction: column; gap: 14px;
}
.mcp-bullets li {
  padding-left: 28px; position: relative; color: var(--text2); font-size: 15px; line-height: 1.55;
}
.mcp-bullets li::before {
  content: "→"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700; font-size: 16px;
}
.mcp-bullets strong { color: var(--text); font-weight: 600; }
.mcp-clients {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 16px 0;
}
.mcp-client-badge {
  font-size: 12px; padding: 4px 10px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border2);
  color: var(--text2); font-weight: 500;
}
.mcp-plans {
  font-size: 13px; color: var(--text2); font-style: italic;
  border-left: 3px solid var(--accent); padding-left: 12px;
  margin-top: 16px;
}
.mcp-prompt-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px; font-size: 13px;
  font-family: 'SF Mono', Menlo, monospace;
  box-shadow: 0 12px 32px var(--accent-glow);
}
.mcp-prompt-header {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px; margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.mcp-prompt-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; }
.mcp-prompt-name { color: var(--text2); font-size: 12px; font-family: inherit; font-weight: 500; }
.mcp-prompt-line { display: flex; gap: 10px; margin-bottom: 12px; line-height: 1.5; }
.mcp-prompt-tag {
  flex-shrink: 0; font-size: 10px; padding: 2px 7px; border-radius: 4px;
  background: var(--surface2); color: var(--text2); text-transform: uppercase;
  letter-spacing: 0.04em; font-weight: 600; height: fit-content;
}
.mcp-prompt-tag.bot { background: var(--accent); color: #fff; }
.mcp-prompt-line.you span:last-child { color: var(--text); }
.mcp-prompt-line.bot span:last-child { color: var(--text2); }
.mcp-prompt-tool {
  background: var(--surface2); border-radius: 6px;
  padding: 8px 12px; margin: 8px 0 14px 0;
  font-size: 11.5px; color: var(--text);
  overflow-x: auto;
}
.mcp-tool-arg { color: var(--accent); }

@media (max-width: 800px) {
  .mcp-grid { grid-template-columns: 1fr; gap: 28px; }
}
