/* ==========================================================================
   GestResto – site public. Design premium vert & blanc (couleurs du logo),
   mode clair / sombre (réglage de l'appareil ou bouton), sans dépendance externe.
   ========================================================================== */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --brand: #16a34a;
  --brand-600: #15803d;
  --brand-700: #116b33;
  --brand-900: #0a3d1f;
  --brand-rgb: 22, 163, 74;
  --accent: #f59e0b;
  --bg: #ffffff;
  --bg-soft: #f5f8f6;
  --bg-tint: #eef7f1;
  --surface: #ffffff;
  --surface-2: #f8faf9;
  --text: #0b1411;
  --text-2: #364640;
  --muted: #64746d;
  --border: #e3ebe6;
  --shadow-sm: 0 1px 2px rgba(11, 20, 17, 0.06);
  --shadow: 0 12px 32px -12px rgba(11, 20, 17, 0.18), 0 2px 6px rgba(11, 20, 17, 0.05);
  --shadow-lg: 0 40px 80px -30px rgba(10, 61, 31, 0.35), 0 10px 30px -10px rgba(11, 20, 17, 0.15);
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1200px;
  --header-h: 72px;
  color-scheme: light;
}

[data-theme='dark'] {
  --bg: #070d0a;
  --bg-soft: #0b1310;
  --bg-tint: #0d1a14;
  --surface: #0f1a15;
  --surface-2: #13211b;
  --text: #ecf3ef;
  --text-2: #c2d0c8;
  --muted: #8ea097;
  --border: #1f2e27;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.03);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: 'cv11', 'ss01'; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { margin: 0 0 0.6em; line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; }
:focus-visible { outline: 3px solid rgba(var(--brand-rgb), 0.55); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip-link:focus { left: 12px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 46px; padding: 0 1.25rem; border-radius: 999px; font-weight: 700; font-size: 0.97rem; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease; white-space: nowrap; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { min-height: 56px; padding: 0 1.7rem; font-size: 1.05rem; }
.btn-primary { background: linear-gradient(180deg, #1fb457, var(--brand-600)); color: #fff; box-shadow: 0 10px 24px -10px rgba(var(--brand-rgb), 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-primary:hover { box-shadow: 0 16px 34px -12px rgba(var(--brand-rgb), 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: rgba(var(--brand-rgb), 0.45); color: var(--brand-600); }
[data-theme='dark'] .btn-ghost:hover { color: #4ade80; }
.btn-white { background: #fff; color: var(--brand-900); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.45); }
.btn-outline-light { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.16); }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; font-size: 1.05rem; }
.icon-btn:hover { color: var(--brand-600); border-color: rgba(var(--brand-rgb), 0.4); }

/* ---------- Annonce + en-tête ---------- */
.announcement { background: linear-gradient(90deg, var(--brand-900), var(--brand-700)); color: #e7fbee; font-size: 0.88rem; text-align: center; padding: 8px 16px; }
.announcement a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid transparent; transition: border-color 0.2s, background 0.2s; }
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header .container { display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 36px; width: auto; }
.brand .logo-dark { display: none; }
[data-theme='dark'] .brand .logo-light { display: none; }
[data-theme='dark'] .brand .logo-dark { display: block; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; color: var(--text-2); transition: color 0.15s, background 0.15s; }
.main-nav a:hover, .main-nav a.is-active { color: var(--text); background: var(--bg-tint); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; }
.mobile-nav { display: none; }

@media (max-width: 960px) {
  .main-nav, .header-actions .btn-ghost, .header-actions .hide-sm { display: none; }
  .menu-toggle { display: inline-grid; }
  .mobile-nav { position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49; display: grid; gap: 4px; padding: 16px 22px 24px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: 0.2s ease; }
  .mobile-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .mobile-nav a { padding: 12px 6px; font-weight: 700; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .mobile-nav .btn { margin-top: 10px; border-bottom: 0; }
}

/* ---------- Typographie des sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-sm { padding: 70px 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; color: var(--brand-700); background: rgba(var(--brand-rgb), 0.1); border: 1px solid rgba(var(--brand-rgb), 0.22); }
[data-theme='dark'] .eyebrow { color: #6ee7a0; }
.eyebrow .dot { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 999px; background: var(--brand); color: #fff; font-size: 0.7rem; }
.section-head { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-top: 18px; }
.section-head p { font-size: 1.12rem; color: var(--muted); }
.gradient-text { background: linear-gradient(100deg, var(--brand) 0%, #22c55e 45%, #0ea5a4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.2rem; color: var(--text-2); }

/* ---------- Héros ---------- */
.hero { position: relative; padding: 72px 0 110px; overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto; height: 900px; z-index: -1; background: radial-gradient(42% 46% at 18% 18%, rgba(var(--brand-rgb), 0.22), transparent 70%), radial-gradient(38% 42% at 88% 12%, rgba(14, 165, 164, 0.18), transparent 70%), radial-gradient(40% 40% at 70% 80%, rgba(245, 158, 11, 0.12), transparent 70%); filter: blur(10px); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 75%); opacity: 0.55; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: 56px; }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.35rem); letter-spacing: -0.04em; margin: 22px 0 22px; }
.hero .lead { max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; color: var(--text-2); font-weight: 600; font-size: 0.93rem; }
.hero-points i { color: var(--brand); margin-right: 6px; }

/* Composition d'appareils */
.devices { position: relative; min-height: 540px; }
.laptop { position: relative; width: 108%; margin-left: -2%; }
.laptop-screen { position: relative; border-radius: 16px 16px 6px 6px; padding: 10px 10px 12px; background: linear-gradient(180deg, #2b3431, #121816); box-shadow: var(--shadow-lg); }
.laptop-screen img { border-radius: 8px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.laptop-base { height: 16px; margin: 0 -6%; border-radius: 0 0 22px 22px; background: linear-gradient(180deg, #d8dedb, #9fa9a4); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.6); }
.laptop-base::after { content: ''; display: block; width: 16%; height: 6px; margin: 0 auto; border-radius: 0 0 10px 10px; background: rgba(0, 0, 0, 0.18); }
.phone { position: absolute; width: 33%; right: -3%; bottom: -12px; padding: 9px; border-radius: 42px; background: linear-gradient(160deg, #39433f, #0d1210); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.phone img { width: 100%; border-radius: 33px; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; background: #fff; }
.phone::before { content: ''; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 30%; height: 18px; border-radius: 999px; background: #050807; z-index: 2; }
.tablet { padding: 12px; border-radius: 30px; background: linear-gradient(160deg, #3a4440, #0e1311); box-shadow: var(--shadow-lg); }
.tablet img { border-radius: 20px; width: 100%; }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 0.86rem; animation: float 6s ease-in-out infinite; }
.float-card strong { display: block; font-size: 1.02rem; }
.float-card small { color: var(--muted); }
.float-card .badge-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; color: #fff; background: var(--brand); flex-shrink: 0; }
.float-card.is-1 { left: -6%; top: 12%; }
.float-card.is-2 { left: 4%; bottom: 4%; animation-delay: -2s; }
.float-card.is-3 { right: 26%; top: -4%; animation-delay: -4s; }
.float-card.is-2 .badge-icon { background: #0ea5a4; }
.float-card.is-3 .badge-icon { background: var(--accent); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Bandeau de confiance ---------- */
.trust { padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.trust .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 36px; }
.trust-label { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.trust-item { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text-2); }
.pay-logo { display: inline-grid; place-items: center; height: 30px; padding: 0 11px; border-radius: 9px; font-weight: 800; font-size: 0.82rem; color: #fff; letter-spacing: 0.01em; }
.pay-mpesa { background: #e11d48; }
.pay-orange { background: #f97316; }
.pay-airtel { background: #dc2626; }
.pay-card { background: #1d4ed8; }
.pay-cash { background: var(--brand-600); }

/* ---------- Grille « bento » des fonctionnalités ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento-card { grid-column: span 2; position: relative; padding: 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s; }
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(var(--brand-rgb), 0.3); }
.bento-card.is-wide { grid-column: span 3; }
.bento-card.is-full { grid-column: span 6; }
.bento-card h3 { font-size: 1.28rem; margin: 18px 0 10px; }
.bento-card p { color: var(--muted); margin: 0; }
.bento-card .shot { margin: 24px -30px -30px; border-top: 1px solid var(--border); }
.bento-card .shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; }
.feature-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.45rem; color: var(--brand-600); background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.16), rgba(var(--brand-rgb), 0.05)); border: 1px solid rgba(var(--brand-rgb), 0.2); }
[data-theme='dark'] .feature-icon { color: #4ade80; }
.feature-icon.is-teal { color: #0d9488; background: rgba(13, 148, 136, 0.12); border-color: rgba(13, 148, 136, 0.25); }
.feature-icon.is-amber { color: #d97706; background: rgba(217, 119, 6, 0.12); border-color: rgba(217, 119, 6, 0.25); }
.feature-icon.is-rose { color: #e11d48; background: rgba(225, 29, 72, 0.1); border-color: rgba(225, 29, 72, 0.22); }
.feature-icon.is-indigo { color: #4f46e5; background: rgba(79, 70, 229, 0.1); border-color: rgba(79, 70, 229, 0.22); }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; color: var(--text-2); }
.check-list li::before { content: '\F26E'; font-family: 'bootstrap-icons'; color: var(--brand); font-weight: 700; }

/* ---------- Onglets par métier ---------- */
.roles { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: start; }
.role-tabs { display: grid; gap: 10px; position: sticky; top: calc(var(--header-h) + 24px); }
.role-tab { text-align: left; display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-family: inherit; color: inherit; transition: 0.2s; }
.role-tab strong { display: block; font-size: 1.05rem; }
.role-tab span { color: var(--muted); font-size: 0.92rem; }
.role-tab i { font-size: 1.35rem; color: var(--muted); margin-top: 2px; }
.role-tab.is-active { border-color: rgba(var(--brand-rgb), 0.55); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.1), var(--shadow); }
.role-tab.is-active i { color: var(--brand); }
.role-panel { display: none; }
.role-panel.is-active { display: block; animation: fadeUp 0.45s ease; }
.role-panel .frame { border-radius: 22px; padding: 10px; background: linear-gradient(160deg, #303a36, #101614); box-shadow: var(--shadow-lg); }
.role-panel .frame img { border-radius: 14px; width: 100%; }
.role-panel h3 { font-size: 1.5rem; margin-top: 26px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Bande sombre « hors connexion » ---------- */
.band-dark { position: relative; color: #e8f5ee; background: radial-gradient(60% 80% at 15% 10%, rgba(34, 197, 94, 0.28), transparent 60%), radial-gradient(50% 70% at 90% 90%, rgba(14, 165, 164, 0.25), transparent 60%), #06140d; overflow: hidden; }
.band-dark h2 { color: #fff; }
.band-dark .muted { color: #a5c4b4; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.sync-visual { position: relative; display: grid; gap: 14px; padding: 28px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(6px); }
.sync-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); }
.sync-row strong { display: block; color: #fff; }
.sync-row small { color: #a5c4b4; }
.sync-row .status { margin-left: auto; font-size: 0.78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.status-wait { background: rgba(245, 158, 11, 0.18); color: #fbbf24; }
.status-ok { background: rgba(34, 197, 94, 0.18); color: #4ade80; }
.sync-row i { font-size: 1.3rem; color: #4ade80; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.stat strong { display: block; font-size: 2.1rem; font-weight: 800; color: #fff; letter-spacing: -0.03em; }
.stat span { color: #a5c4b4; font-size: 0.92rem; }

/* ---------- Reçu ---------- */
.receipt-showcase { position: relative; display: grid; place-items: center; }
.receipt-showcase img { width: min(420px, 90%); border-radius: 6px; box-shadow: 0 50px 80px -30px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border); transform: rotate(-2.5deg); }
.receipt-showcase::before { content: ''; position: absolute; inset: 10% 8%; border-radius: 40px; background: radial-gradient(circle at 50% 40%, rgba(var(--brand-rgb), 0.25), transparent 70%); filter: blur(30px); z-index: -1; }

/* ---------- Applications mobiles ---------- */
.apps { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.phones { position: relative; height: 560px; }
.phones .phone { width: 46%; bottom: auto; }
.phones .phone.is-a { left: 6%; top: 40px; transform: rotate(-6deg); }
.phones .phone.is-b { right: 6%; top: 0; transform: rotate(5deg); }
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store-badge { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 14px; background: #0b0f0d; color: #fff; border: 1px solid #2b332f; min-width: 190px; }
.store-badge i { font-size: 1.7rem; }
.store-badge small { display: block; font-size: 0.7rem; opacity: 0.75; line-height: 1.1; }
.store-badge strong { display: block; font-size: 1.08rem; line-height: 1.2; }
.store-badge.is-soon { opacity: 0.85; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 760px); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 22px 30px; scrollbar-width: thin; }
.gallery figure { scroll-snap-align: center; margin: 0; }
.gallery button { display: block; width: 100%; padding: 8px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); cursor: zoom-in; }
.gallery img { border-radius: 15px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.gallery .is-phone img { aspect-ratio: 9 / 19.5; }
.gallery figcaption { margin-top: 14px; text-align: center; }
.gallery figcaption strong { display: block; }
.gallery figcaption span { color: var(--muted); font-size: 0.92rem; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 30px; background: rgba(3, 8, 6, 0.86); backdrop-filter: blur(6px); }
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 88vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.lightbox button { position: absolute; top: 18px; right: 18px; }

/* ---------- Tarifs ---------- */
.billing-toggle { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 40px; }
.billing-toggle button { border: 0; background: transparent; color: var(--text-2); font: inherit; font-weight: 700; padding: 10px 20px; border-radius: 999px; cursor: pointer; }
.billing-toggle button.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.billing-toggle .save { margin-left: 6px; font-size: 0.75rem; color: var(--brand-600); background: rgba(var(--brand-rgb), 0.12); padding: 2px 8px; border-radius: 999px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 34px 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.plan.is-highlighted { border: 2px solid var(--brand); box-shadow: 0 30px 60px -30px rgba(var(--brand-rgb), 0.55); transform: translateY(-8px); background: linear-gradient(180deg, rgba(var(--brand-rgb), 0.06), var(--surface) 40%); }
.plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; }
.plan h3 { font-size: 1.35rem; margin-bottom: 6px; }
.plan .tagline { color: var(--muted); min-height: 4.9em; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; }
.price strong { font-size: 2.9rem; letter-spacing: -0.04em; font-weight: 800; }
.price span { color: var(--muted); font-weight: 600; }
.price-note { color: var(--muted); font-size: 0.88rem; min-height: 1.5em; }
.plan .limits { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.plan .limits span { font-size: 0.82rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.plan .check-list { flex: 1; margin-bottom: 28px; }
.plan .btn { width: 100%; }

/* ---------- Avis ---------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.testimonial { padding: 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.testimonial .stars { color: #f59e0b; letter-spacing: 2px; }
.testimonial blockquote { margin: 14px 0 22px; font-size: 1.06rem; color: var(--text-2); }
.person { display: flex; align-items: center; gap: 12px; }
.person img, .person .avatar { width: 46px; height: 46px; border-radius: 999px; object-fit: cover; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; }
.person small { display: block; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--border); padding: 4px 22px; transition: border-color 0.2s, box-shadow 0.2s; }
.faq details[open] { border-color: rgba(var(--brand-rgb), 0.4); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 1.06rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--brand); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding-bottom: 14px; }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform 0.25s, box-shadow 0.25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand-700), #0ea5a4); display: grid; place-items: center; color: rgba(255, 255, 255, 0.85); font-size: 2.6rem; overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.84rem; color: var(--muted); font-weight: 600; }
.post-category { color: var(--brand-600); font-weight: 800; }
[data-theme='dark'] .post-category { color: #4ade80; }
.post-card h3 { font-size: 1.22rem; margin: 10px 0 10px; }
.post-card p { color: var(--muted); flex: 1; }
.read-more { font-weight: 700; color: var(--brand-600); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 700; font-size: 0.9rem; color: var(--text-2); }
.chip.is-active, .chip:hover { border-color: var(--brand); color: var(--brand-600); }
.article { max-width: 760px; margin: 0 auto; }
.article-header { text-align: center; margin-bottom: 40px; }
.article-header h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); margin: 18px 0; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin: 0 0 46px; box-shadow: var(--shadow); }
.prose { font-size: 1.12rem; line-height: 1.8; color: var(--text-2); }
.prose h2 { font-size: 1.7rem; color: var(--text); margin: 2em 0 0.6em; }
.prose h3 { font-size: 1.3rem; color: var(--text); margin: 1.6em 0 0.5em; }
.prose a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.35em 0; }
.prose blockquote { margin: 1.6em 0; padding: 16px 22px; border-left: 4px solid var(--brand); background: var(--bg-tint); border-radius: 0 14px 14px 0; }
.prose img { border-radius: 14px; margin: 1.5em 0; }
.prose strong { color: var(--text); }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); font-size: 0.92em; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font-size: 0.88rem; color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-600); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); font-weight: 700; }
.pagination .is-current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }
.contact-card { display: flex; gap: 16px; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 14px; }
.contact-card strong { display: block; }
.contact-card span, .contact-card a { color: var(--muted); }
.contact-card a:hover { color: var(--brand-600); }
.form-card { padding: 38px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 7px; }
.field input, .field textarea, .field select { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.15); }
.field textarea { min-height: 160px; resize: vertical; }
.field .error { color: #dc2626; font-size: 0.86rem; margin-top: 6px; font-weight: 600; }
.alert-success { display: flex; gap: 14px; padding: 20px 22px; border-radius: 18px; background: rgba(var(--brand-rgb), 0.1); border: 1px solid rgba(var(--brand-rgb), 0.35); margin-bottom: 26px; }
.alert-success i { font-size: 1.5rem; color: var(--brand); }
.hp { position: absolute; left: -9999px; }

/* ---------- Appel à l'action final ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 36px; padding: 70px 50px; text-align: center; color: #fff; background: radial-gradient(60% 120% at 0% 0%, rgba(255, 255, 255, 0.18), transparent 60%), radial-gradient(60% 120% at 100% 100%, rgba(14, 165, 164, 0.5), transparent 60%), linear-gradient(120deg, var(--brand-700), var(--brand) 60%, #22c55e); box-shadow: 0 50px 90px -40px rgba(var(--brand-rgb), 0.75); }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); color: #fff; }
.cta-band p { font-size: 1.15rem; color: #e6fbee; max-width: 640px; margin: 0 auto 30px; }
.cta-band .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Pages simples (légal, 404) ---------- */
.page-hero { padding: 80px 0 40px; text-align: center; }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); margin: 18px auto 16px; max-width: 900px; }
.page-hero p { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: 1.15rem; }

/* ---------- Pied de page ---------- */
.site-footer { margin-top: 40px; padding: 70px 0 34px; background: var(--bg-soft); border-top: 1px solid var(--border); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-grid h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--text-2); }
.footer-grid a:hover { color: var(--brand-600); }
.footer-brand p { color: var(--muted); max-width: 340px; margin-top: 16px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.88rem; }
.whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 999px; display: grid; place-items: center; background: #22c55e; color: #fff; font-size: 1.7rem; box-shadow: 0 16px 34px -12px rgba(34, 197, 94, 0.8); transition: transform 0.2s; }
.whatsapp-float:hover { transform: scale(1.06); }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Écrans moyens et petits ---------- */
@media (max-width: 1080px) {
  .hero-grid, .split, .apps, .contact-grid { grid-template-columns: 1fr; }
  .devices { min-height: 0; margin-top: 30px; }
  .laptop { width: 100%; margin: 0; }
  .roles { grid-template-columns: 1fr; }
  .role-tabs { position: static; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .bento-card, .bento-card.is-wide { grid-column: span 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .phones { height: 480px; max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 720px) {
  .section { padding: 76px 0; }
  .hero { padding: 40px 0 70px; }
  .bento-card, .bento-card.is-wide { grid-column: span 6; }
  .float-card.is-1, .float-card.is-3 { display: none; }
  .float-card.is-2 { left: 0; bottom: -14px; }
  .phone { width: 36%; right: -2%; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .stat-row { grid-template-columns: 1fr; }
  .cta-band { padding: 50px 24px; border-radius: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .phones { height: 380px; }
  .plan.is-highlighted { transform: none; }
}

/* Images différentes en mode clair / sombre */
.only-dark { display: none !important; }
[data-theme='dark'] .only-dark { display: block !important; }
[data-theme='dark'] .only-light { display: none !important; }
.muted { color: var(--muted); }
.me-1 { margin-right: 0.3rem; }
