/* ═══════════════════════════════════════════════
   NOREX AI — Design System
   Noir profond / orange / angles nets
   ═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Thème clair (par défaut) */
:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --bg2: #F6F6F5;
  --bg3: #EFEFED;
  --bg4: #FFFFFF;
  --text: #0A0A0A;
  --muted: #52525B;
  --muted-dk: #71717A;
  --border: rgba(0,0,0,0.09);
  --border-lt: rgba(0,0,0,0.17);
  --orange: #FF6B00;          /* aplats : boutons, pastilles */
  --orange-lt: #FF8C3A;
  --accent: #C2410C;          /* texte orange lisible sur fond clair */
  --orange-dim: rgba(255, 107, 0, 0.10);
  --orange-dim2: rgba(255, 107, 0, 0.05);
  --nav-bg: rgba(255,255,255,0.9);
  --inset: rgba(0,0,0,0.035);
  --hover: rgba(0,0,0,0.04);
  --track: rgba(0,0,0,0.12);
  --glow: rgba(255,107,0,0.07);
  --maxw: 1180px;
  --nav-h: 68px;
}

/* Thème sombre */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg2: #101010;
  --bg3: #161616;
  --bg4: #1c1c1c;
  --text: #FFFFFF;
  --muted: #A0A0A0;
  --muted-dk: #6E6E6E;
  --border: rgba(255,255,255,0.09);
  --border-lt: rgba(255,255,255,0.17);
  --accent: #FF6B00;
  --orange-dim: rgba(255, 107, 0, 0.12);
  --orange-dim2: rgba(255, 107, 0, 0.06);
  --nav-bg: rgba(10,10,10,0.88);
  --inset: rgba(0,0,0,0.3);
  --hover: rgba(255,255,255,0.04);
  --track: rgba(255,255,255,0.12);
  --glow: rgba(255,107,0,0.1);
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; width: 100%; }
.center { text-align: center; }
.center .section-title, .center .section-sub { margin-left: auto; margin-right: auto; }

/* ══ NAVBAR ══ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; gap: 1rem;
}
.nav-logo { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; flex-shrink: 0; }
.nav-logo-text {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.65rem; color:var(--accent);
  letter-spacing: 0.14em; line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.85rem; font-weight: 500;
  transition: color 0.2s; position: relative; padding: 4px 0; white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: var(--orange); transform: scaleX(0); transition: transform 0.25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.current { color: var(--text); }
.nav-links a.current::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }

.lang-toggle { display: flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; font-weight: 600; }
.lang-btn {
  background: none; border: none; color: var(--muted-dk); cursor: pointer;
  font-family: inherit; font-size: 0.78rem; font-weight: 600; padding: 2px; transition: color 0.2s;
}
.lang-btn.active { color:var(--accent); }
.lang-sep { color: var(--border-lt); }

/* ══ HAMBURGER (3 barres) ══ */
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 6px; z-index: 101;
}
.hamburger span { display: block; width: 23px; height: 2px; background: var(--text); transition: all 0.28s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 1.6rem 24px 2.2rem; z-index: 99; flex-direction: column; gap: 0.25rem;
  min-height: calc(100vh - var(--nav-h)); overflow-y: auto;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  color: var(--muted); text-decoration: none; font-size: 1rem; font-weight: 500;
  padding: 0.75rem 0; border-bottom: 1px solid var(--border); transition: color 0.2s;
}
.mobile-menu a:hover, .mobile-menu a.current { color:var(--accent); }
.mobile-menu .btn { margin-top: 1.2rem; border-bottom: none; }
.mobile-lang { display: flex; gap: 0.5rem; align-items: center; padding-top: 1.2rem; }

/* ══ BOUTONS ══ */
.btn {
  display: inline-block; font-family: inherit; cursor: pointer; text-decoration: none;
  text-align: center; border: none; transition: all 0.2s; white-space: nowrap;
}
.btn-primary {
  background: var(--orange); color: #000; padding: 0.85rem 1.9rem;
  font-size: 0.95rem; font-weight: 700;
}
.btn-primary:hover { background: var(--orange-lt); transform: translateY(-2px); box-shadow: 0 8px 26px rgba(255,107,0,0.28); }

.btn-outline {
  border: 1px solid var(--orange); color:var(--accent); background: transparent;
  padding: 0.52rem 1.15rem; font-size: 0.85rem; font-weight: 600;
}
.btn-outline:hover { background: var(--orange); color: #000; }

.btn-ghost {
  background: transparent; color: var(--text); padding: 0.85rem 1.9rem;
  font-size: 0.95rem; font-weight: 600; border: 1px solid var(--border-lt);
}
.btn-ghost:hover { border-color: var(--text); background: var(--hover); }

.btn-black { background: #000; color: #FFFFFF; padding: 0.9rem 2.1rem; font-size: 1rem; font-weight: 700; }
.btn-black:hover { background: #1a1a1a; transform: translateY(-2px); }

.btn-lg { padding: 1rem 2.3rem; font-size: 1.02rem; }
.btn-full { width: 100%; }

/* ══ SECTIONS ══ */
section { padding: 96px 24px; }
.section-label {
  font-size: 0.73rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color:var(--accent); margin-bottom: 0.9rem;
}
.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -0.025em;
  line-height: 1.15; margin-bottom: 1rem; max-width: 660px;
}
.section-sub { color: var(--muted); font-size: 1.02rem; max-width: 600px; margin-bottom: 3.5rem; line-height: 1.7; }
.accent { color:var(--accent); }

/* ══ PAGE HEADER (pages secondaires) ══ */
.page-head {
  padding: 160px 24px 70px; border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-head::before {
  content: ''; position: absolute; top: -280px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; pointer-events: none;
  background: radial-gradient(ellipse at center, var(--glow) 0%, transparent 65%);
}
.page-head .wrap { position: relative; }
.page-head h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 900; letter-spacing: -0.035em;
  line-height: 1.1; margin-bottom: 1.1rem; max-width: 800px;
}
.page-head p { color: var(--muted); font-size: 1.05rem; max-width: 640px; line-height: 1.75; }

.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-size: 0.8rem; margin-bottom: 1.5rem; color: var(--muted-dk); }
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color:var(--accent); }

/* ══ HERO ══ */
#hero {
  min-height: 86vh; display: flex; align-items: center;
  padding-top: 150px; padding-bottom: 90px; position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 950px; height: 950px; pointer-events: none;
  background: radial-gradient(ellipse at center, var(--glow) 0%, transparent 65%);
}
.hero-content { max-width: 860px; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--orange-dim); border: 1px solid rgba(255,107,0,0.28); color:var(--accent);
  font-size: 0.78rem; font-weight: 600; padding: 0.42rem 0.95rem; margin-bottom: 2rem;
}
h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.75rem); font-weight: 900; line-height: 1.08;
  letter-spacing: -0.035em; margin-bottom: 1.4rem;
}
.hero-sub {
  font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--muted);
  max-width: 640px; margin-bottom: 2.6rem; line-height: 1.75;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.9rem; font-size: 0.82rem; color: var(--muted-dk); }
.hero-trust span { display: flex; align-items: center; gap: 0.45rem; }
.hero-trust svg { color:var(--accent); flex-shrink: 0; }

/* ══ GRILLES GÉNÉRIQUES ══ */
.grid-1px { display: grid; gap: 1px; background: var(--border); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }

/* ══ CARTES ══ */
.card { background: var(--bg2); padding: 2.1rem 1.9rem; position: relative; transition: background 0.25s; }
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.card:hover { background: var(--bg3); }
.card:hover::before { transform: scaleX(1); }
.card-icon { color:var(--accent); margin-bottom: 1.1rem; display: block; }
.card h3 { font-size: 1.04rem; font-weight: 700; margin-bottom: 0.55rem; }
.card p { font-size: 0.89rem; color: var(--muted); line-height: 1.68; }
.card .num {
  font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color:var(--accent);
  letter-spacing: 0.05em; line-height: 1; margin-bottom: 0.9rem; display: block; opacity: 0.55;
}

.box {
  border: 1px solid var(--border); background: var(--bg2); padding: 2rem 1.9rem;
  transition: border-color 0.25s, transform 0.25s;
}
.box:hover { border-color: rgba(255,107,0,0.35); transform: translateY(-3px); }

.callout {
  padding: 1.6rem 1.9rem; border-left: 2px solid var(--orange);
  background: var(--orange-dim2); font-size: 1rem; color: var(--text); font-weight: 500; line-height: 1.7;
}

/* ══ ÉTAPES ══ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 2.4rem; }
.step { position: relative; padding-top: 2.2rem; border-top: 1px solid var(--border); }
.step::before { content: ''; position: absolute; top: -1px; left: 0; width: 42px; height: 2px; background: var(--orange); }
.step .step-n {
  font-size: 0.72rem; font-weight: 700; color:var(--accent); letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 0.7rem; display: block;
}
.step h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 0.55rem; }
.step p { font-size: 0.89rem; color: var(--muted); line-height: 1.68; }

/* ══ STATS ══ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 3rem; }
.stat-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.stat-number {
  font-size: clamp(2.5rem, 5.6vw, 4rem); font-weight: 900; color:var(--accent);
  letter-spacing: -0.045em; line-height: 1;
}
.stat-number small { font-size: 0.42em; font-weight: 700; }
.stat-label { font-size: 0.86rem; color: var(--muted); margin-top: 0.6rem; max-width: 190px; line-height: 1.55; }

/* ══ DÉMO REX ══ */
.demo {
  border: 1px solid var(--border-lt); background: var(--bg3);
  display: grid; grid-template-columns: 268px 1fr; min-height: 450px;
}
.demo-side { border-right: 1px solid var(--border); padding: 1.4rem 0; background: var(--inset); }
.demo-side-title {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-dk); padding: 0 1.4rem; margin-bottom: 1rem;
}
.demo-tab {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: inherit; padding: 0.85rem 1.4rem; color: var(--muted);
  font-size: 0.88rem; font-weight: 500; display: flex; align-items: center; gap: 0.7rem;
  border-left: 2px solid transparent; transition: all 0.2s;
}
.demo-tab:hover { color: var(--text); background: var(--hover); }
.demo-tab.active { color: var(--text); border-left-color:var(--accent); background: rgba(255,107,0,0.07); }
.demo-tab .dot { width: 7px; height: 7px; background: var(--muted-dk); flex-shrink: 0; transition: background 0.2s; }
.demo-tab.active .dot { background: var(--orange); }

.demo-main { padding: 1.8rem 2rem; display: flex; flex-direction: column; }
.demo-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.8rem; }
.demo-head h4 { font-size: 1.05rem; font-weight: 700; }
.demo-badge {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.28rem 0.62rem; border: 1px solid rgba(255,107,0,0.35); color:var(--accent);
  background: var(--orange-dim);
}
.demo-flow { display: flex; flex-direction: column; gap: 0.9rem; flex: 1; }
.flow-msg { display: flex; gap: 0.85rem; align-items: flex-start; opacity: 0; animation: slideIn 0.45s ease forwards; }
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.flow-icon {
  width: 30px; height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 800; border: 1px solid var(--border-lt); letter-spacing: 0.02em;
}
.flow-icon.trigger { color: var(--muted); }
.flow-icon.rex { background: var(--orange); color: #000; border-color:var(--accent); }
.flow-icon.human { color:var(--accent); border-color: rgba(255,107,0,0.45); }
.flow-body { flex: 1; display: block; }
.flow-label {
  display: block;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-dk); margin-bottom: 0.3rem;
}
.flow-text { display: block; font-size: 0.89rem; color: var(--text); line-height: 1.6; }
.flow-text.quote { border-left: 2px solid var(--border-lt); padding-left: 0.8rem; color: var(--muted); font-style: italic; }
.demo-foot {
  margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.confidence { display: flex; align-items: center; gap: 0.7rem; font-size: 0.78rem; color: var(--muted); }
.conf-bar { width: 92px; height: 4px; background: var(--track); position: relative; }
.conf-fill { position: absolute; inset: 0 auto 0 0; background: var(--orange); transition: width 0.6s ease; }
.demo-result { font-size: 0.8rem; color:var(--accent); font-weight: 600; }

/* ══ FAQ ══ */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer; font-family: inherit;
  padding: 1.4rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  color: var(--text); font-size: 1rem; font-weight: 600; text-align: left; transition: color 0.2s;
}
.faq-q:hover { color:var(--accent); }
.faq-icon { flex-shrink: 0; color:var(--accent); transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-item.open .faq-a { max-height: 600px; padding-bottom: 1.5rem; }
.faq-a p { font-size: 0.92rem; color: var(--muted); line-height: 1.78; max-width: 820px; }
.faq-a p + p { margin-top: 0.8rem; }

/* ══ FORMULAIRES ══ */
.field { margin-bottom: 1rem; }
.field label {
  display: block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.45rem;
}
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg4); border: 1px solid var(--border-lt); color: var(--text);
  padding: 0.72rem 0.85rem; font-family: inherit; font-size: 0.9rem; transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color:var(--accent); }
.field textarea { resize: vertical; min-height: 96px; }
.field select { cursor: pointer; }
.field .hint { font-size: 0.74rem; color: var(--muted-dk); margin-top: 0.35rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.form-note { font-size: 0.74rem; color: var(--muted-dk); margin-top: 0.9rem; line-height: 1.55; text-align: center; }
.form-success {
  display: none; background: var(--orange-dim); border: 1px solid rgba(255,107,0,0.35);
  padding: 1rem; font-size: 0.88rem; color:var(--accent); margin-top: 1rem; text-align: center;
}
.form-success.show { display: block; }

/* ══ FOOTER ══ */
footer { padding: 3.8rem 24px 2rem; border-top: 1px solid var(--border); background: var(--bg); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.6rem; margin-bottom: 3rem; }
.footer-brand { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 1rem; }
.footer-brand-text { font-family: 'Bebas Neue', sans-serif; font-size: 1.45rem; letter-spacing: 0.14em; color:var(--accent); line-height: 1; }
.footer-tag { font-size: 0.86rem; color: var(--muted); max-width: 300px; line-height: 1.65; margin-bottom: 1.3rem; }
.footer-social { display: flex; gap: 0.8rem; }
.footer-social a {
  width: 34px; height: 34px; border: 1px solid var(--border-lt); display: flex;
  align-items: center; justify-content: center; color: var(--muted); transition: all 0.2s;
}
.footer-social a:hover { border-color:var(--accent); color:var(--accent); }
.footer-col h4 {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--text); margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a, .footer-col button {
  color: var(--muted); text-decoration: none; font-size: 0.86rem; transition: color 0.2s;
  background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; text-align: left;
}
.footer-col a:hover, .footer-col button:hover { color:var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.6rem; display: flex;
  align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.79rem; color: var(--muted-dk); }

/* ══ MODALES ══ */
.modal {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.82); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 24px;
}
.modal.open { display: flex; }
.modal-box {
  background: var(--bg2); border: 1px solid var(--border-lt); max-width: 780px; width: 100%;
  max-height: 85vh; display: flex; flex-direction: column;
}
.modal-head {
  padding: 1.5rem 1.9rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.modal-head h3 { font-size: 1.15rem; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px; transition: color 0.2s; }
.modal-close:hover { color:var(--accent); }
.modal-body { padding: 1.9rem; overflow-y: auto; }
.modal-body h4 { font-size: 0.95rem; font-weight: 700; color:var(--accent); margin: 1.6rem 0 0.6rem; }
.modal-body h4:first-child { margin-top: 0; }
.modal-body p { font-size: 0.88rem; color: var(--muted); line-height: 1.75; margin-bottom: 0.8rem; }

/* ══ ANIMATIONS ══ */
.fade-up { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; } .d4 { transition-delay: 0.32s; }

/* ══ UTILITAIRES ══ */
.mb0 { margin-bottom: 0 !important; }
.mb1 { margin-bottom: 1rem; }
.mb2 { margin-bottom: 2rem; }
.mb3 { margin-bottom: 3rem; }
.mt2 { margin-top: 2rem; }
.mt3 { margin-top: 3rem; }
.bg2 { background: var(--bg2); }
.bordered { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ══ RESPONSIVE ══ */
@media (max-width: 1080px) {
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: 0.8rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.4rem; }
}

@media (max-width: 980px) {
  .demo { grid-template-columns: 1fr; }
  .demo-side { border-right: none; border-bottom: 1px solid var(--border); display: flex; overflow-x: auto; padding: 0; }
  .demo-side-title { display: none; }
  .demo-tab { border-left: none; border-bottom: 2px solid transparent; white-space: nowrap; padding: 1rem 1.2rem; }
  .demo-tab.active { border-left-color: transparent; border-bottom-color:var(--accent); }
}

@media (max-width: 900px) {
  .nav-links, .nav-right .lang-toggle { display: none; }
  .hamburger { display: flex; }
  .nav-right .btn-outline { display: none; }
}

@media (max-width: 680px) {
  section { padding: 72px 20px; }
  .nav-inner { padding: 0 20px; }
  .page-head { padding: 130px 20px 56px; }
  #hero { padding-top: 124px; padding-bottom: 70px; min-height: auto; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-trust { gap: 0.9rem; flex-direction: column; }
  .stats-grid { gap: 2.4rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .steps { gap: 2rem; }
  .demo-main { padding: 1.4rem 1.3rem; }
  .modal-body, .modal-head { padding: 1.3rem; }
}

@media (max-width: 420px) { h1 { font-size: 1.95rem; } }

/* ══ BOUTON THÈME (clair / sombre) ══ */
.theme-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; background: none; border: 1px solid var(--border-lt);
  color: var(--text); cursor: pointer; transition: border-color 0.2s, color 0.2s; flex-shrink: 0;
}
.theme-btn:hover { border-color: var(--orange); color: var(--accent); }
.theme-btn .icon-sun { display: none; }
:root[data-theme="dark"] .theme-btn .icon-sun { display: block; }
:root[data-theme="dark"] .theme-btn .icon-moon { display: none; }

/* ══ PETITS ÉCRANS : boutons sur plusieurs lignes plutôt que débordants ══ */
@media (max-width: 480px) {
  .btn { white-space: normal; }
  .btn-lg { padding: 0.95rem 1.2rem; }
}

/* ══ LIEN ESPACE CLIENT (entête) ══ */
.nav-client { color: var(--muted); text-decoration: none; font-size: 0.82rem; font-weight: 600; white-space: nowrap; transition: color 0.2s; }
.nav-client:hover { color: var(--accent); }
@media (max-width: 900px) { .nav-right .nav-client { display: none; } }
