/*
Theme Name: AXON SYSTEMS
Theme URI: https://axonsystems.online
Author: ADALA SOFIANE
Author URI: https://axonsystems.online
Description: Thème WordPress sur mesure pour AXON SYSTEMS, cabinet de conseil en intelligence artificielle. Design sombre, accents teal/ambre, sections Services, Secteurs, À propos, Ressources, Avis et Contact, entièrement personnalisables via le Customizer et les menus WordPress.
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: axon-systems
Tags: dark, one-page, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   1. RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

:root{
  --bg: #0B0714;
  --bg-alt: rgba(255,255,255,0.015);
  --card: rgba(255,255,255,0.02);
  --card-border: rgba(255,255,255,0.10);
  --card-border-hover: rgba(255, 46, 136,0.35);
  --text: #EAF0FA;
  --text-muted: #9aa6bb;
  --text-dim: #6b7690;
  --teal: #FF2E88;
  --amber: #C6FF00;
  --radius: 10px;
  --max-width: 1152px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

html { scroll-behavior: smooth; }

body{
  margin:0;
  background:
    radial-gradient(ellipse 1100px 650px at 12% -8%, rgba(255, 46, 136,0.11), transparent 62%),
    radial-gradient(ellipse 820px 520px at 102% -4%, rgba(198, 255, 0,0.07), transparent 60%),
    radial-gradient(ellipse 700px 900px at 88% 70%, rgba(124,140,255,0.05), transparent 65%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.gradient-text{
  background: linear-gradient(100deg, #EAF0FA 20%, #9FF3E1 55%, #EAF0FA 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-gradient{
  background: linear-gradient(135deg, #FF6FAE 0%, #FF2E88 55%, #D6146B 100%) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 10px 30px -12px rgba(255, 46, 136,.5);
}
.btn-gradient:hover{ filter: brightness(1.04); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; margin: 0; line-height: 1.15; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }

.container{ max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.eyebrow{ font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .18em; color: var(--teal); opacity: .85; }
.section{ padding: 72px 0; }
.section-alt{ background: var(--bg-alt); border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }

.screen-reader-text{ position:absolute !important; clip:rect(1px,1px,1px,1px); overflow:hidden; height:1px; width:1px; }
.skip-link{ position:absolute; left:-999px; top:0; background:var(--teal); color:#0B0714; padding:10px 16px; z-index:1000; border-radius:0 0 8px 0; }
.skip-link:focus{ left:0; }

/* =========================================================
   2. NAV
   ========================================================= */
.site-header{
  position: sticky; top:0; z-index: 40;
  background: rgba(7,9,15,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-row{ display:flex; align-items:center; justify-content: space-between; padding: 16px 0; gap: 16px; }
.brand{ display:flex; align-items:center; gap:8px; font-family: var(--font-display); font-weight:600; font-size:14px; letter-spacing: .03em; }
.brand-dot{ width:8px; height:8px; border-radius:999px; background: var(--teal); }
.brand img{ max-height: 32px; }

.primary-menu{ display:none; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.primary-menu ul{ display:flex; align-items:center; gap: 28px; list-style:none; margin:0; padding:0; }
.primary-menu li{ display:block; }
.primary-menu a{ padding: 4px 0; transition: color .2s; }
.primary-menu a:hover, .primary-menu .current-menu-item a { color: var(--text); }
@media (min-width: 860px){ .primary-menu{ display:block; } }

.nav-cta{ background: var(--teal); color:#0B0714; font-family: var(--font-mono); font-size:12px; font-weight:600; text-transform: uppercase; letter-spacing:.05em; padding: 10px 16px; border-radius: 8px; white-space: nowrap; }
.nav-cta:hover{ opacity:.9; }

.menu-toggle{ display:inline-flex; background:none; border:1px solid rgba(255,255,255,.15); color: var(--text); border-radius:8px; padding:8px 10px; }
@media (min-width:860px){ .menu-toggle{ display:none; } }
.mobile-menu{ display:none; flex-direction:column; gap:2px; padding: 8px 0 16px; border-top: 1px solid rgba(255,255,255,.06); }
.mobile-menu.is-open{ display:flex; }
.mobile-menu a{ padding: 10px 4px; font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing:.06em; color: var(--text-muted); }

.scroll-progress{ height:2px; width:100%; background: rgba(255,255,255,.05); }
.scroll-progress-bar{ height:100%; width:0%; background: linear-gradient(90deg, var(--teal), var(--amber)); transition: width .1s linear; }

/* =========================================================
   3. HERO + AXON 3D
   ========================================================= */
.hero{ padding: 64px 0 96px; display:grid; grid-template-columns: 1fr; gap: 40px; align-items:center; position: relative; }
@media (min-width:900px){ .hero{ grid-template-columns: 1fr 1fr; padding: 96px 0; } }
.hero h1{ font-size: 38px; margin-top: 12px; letter-spacing:-0.01em; }
@media (min-width:640px){ .hero h1{ font-size: 54px; line-height:1.08; } }
.hero p.lead{ margin-top: 18px; max-width: 440px; color: var(--text-muted); }
.hero-ctas{ margin-top: 26px; display:flex; flex-wrap:wrap; gap: 12px; }

.btn{ display:inline-block; border-radius:8px; padding: 13px 22px; font-size:14px; font-weight:600; }
.btn-primary{ background: linear-gradient(135deg, #FF6FAE 0%, #FF2E88 55%, #D6146B 100%); color:#0B0714; position:relative; overflow:hidden; animation: cta-pulse 2.8s ease-in-out infinite; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset; }
.btn-primary:hover{ opacity:.9; }
.btn-secondary{ border:1px solid rgba(255,255,255,.15); color: var(--text); }
.btn-secondary:hover{ background: rgba(255,255,255,.05); }
@keyframes cta-pulse{ 0%,100%{ box-shadow:0 0 0 0 rgba(198, 255, 0,.35);} 50%{ box-shadow:0 0 0 8px rgba(198, 255, 0,0);} }

.axon-stage{ perspective: 1200px; display:flex; align-items:center; justify-content:center; position: relative; }
.axon-auto-rotate{ transform-style: preserve-3d; animation: axon-spin 22s linear infinite; }
@keyframes axon-spin{ from{ transform: rotateY(0deg); } to{ transform: rotateY(360deg); } }
.axon-3d{ position:relative; width:300px; height:300px; transform-style: preserve-3d; transition: transform .15s ease-out; }
.axon-hub{ position:absolute; top:50%; left:50%; width:64px; height:64px; margin:-32px 0 0 -32px; border-radius:999px; background: radial-gradient(circle at 35% 30%, rgba(255, 46, 136,.9), rgba(255, 46, 136,.15) 70%); box-shadow: 0 0 50px 6px rgba(255, 46, 136,.35); transform: translateZ(30px); }
.axon-hub::before{ content:""; position:absolute; inset:-40px; border-radius:999px; background: radial-gradient(circle, rgba(255, 46, 136,.18), transparent 70%); animation: axon-breathe 4s ease-in-out infinite; }
@keyframes axon-breathe{ 0%,100%{ transform:scale(.9); opacity:.6;} 50%{ transform:scale(1.15); opacity:1;} }
.axon-node{ position:absolute; width:14px; height:14px; border-radius:999px; background: rgba(198, 255, 0,.9); box-shadow: 0 0 18px 2px rgba(198, 255, 0,.5); }
.axon-line{ position:absolute; top:50%; left:50%; height:1px; background: linear-gradient(90deg, rgba(255, 46, 136,.55), rgba(255, 46, 136,0)); transform-origin: left center; }
.axon-line::after{ content:""; position:absolute; top:-1.5px; left:0; width:5px; height:4px; border-radius:999px; background:#eafff6; box-shadow:0 0 8px 2px rgba(234,255,246,.9); animation: pulse-travel 2.6s linear infinite; }
@keyframes pulse-travel{ 0%{ left:0; opacity:0;} 8%{ opacity:1;} 92%{ opacity:1;} 100%{ left:100%; opacity:0;} }
.axon-label{ position:absolute; font-family: var(--font-mono); font-size:10px; text-transform:uppercase; letter-spacing:.06em; color: var(--text-muted); white-space:nowrap; }

/* =========================================================
   4. TRUST STRIP
   ========================================================= */
.trust-strip{ border-top:1px solid rgba(255,255,255,.05); border-bottom:1px solid rgba(255,255,255,.05); background: var(--bg-alt); }
.trust-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap: 24px; padding: 32px 0; text-align:center; }
@media (min-width:640px){ .trust-grid{ grid-template-columns: repeat(4,1fr);} }
.trust-value{ font-family: var(--font-mono); font-size: 26px; font-weight:700; color: var(--teal); }
.trust-label{ margin-top:4px; font-size:11px; text-transform:uppercase; letter-spacing:.04em; color: var(--text-dim); }

/* =========================================================
   5. CARDS / GRID
   ========================================================= */
.section-head{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap: 16px; margin-bottom: 32px; }
.section-title{ font-size: 26px; margin-top: 8px; }
@media (min-width:640px){ .section-title{ font-size: 30px; } }

.grid{ display:grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width:640px){ .grid-2{ grid-template-columns: repeat(2,1fr); } }
@media (min-width:900px){ .grid-3{ grid-template-columns: repeat(3,1fr); } .grid-4{ grid-template-columns: repeat(4,1fr);} }

.card{ position:relative; background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015)); border:1px solid transparent; background-clip: padding-box; border-radius: 16px; padding: 20px; transition: transform .25s ease-out, box-shadow .25s ease-out; transform-style: preserve-3d; will-change: transform; overflow:hidden; }
.card::before{ content:""; position:absolute; inset:0; border-radius:inherit; padding:1px; background: linear-gradient(160deg, rgba(255, 46, 136,.35), rgba(255,255,255,.04) 40%, rgba(198, 255, 0,.18)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events:none; }
.card:hover{ border-color: var(--card-border-hover); box-shadow: 0 18px 40px -18px rgba(255, 46, 136,.25); }
.card h3{ font-size: 16px; }
.card p{ margin-top:8px; font-size: 14px; color: var(--text-muted); }
.card ul{ margin-top:12px; padding-top:12px; border-top:1px solid rgba(255,255,255,.05); display:flex; flex-direction:column; gap:6px; }
.card ul li{ font-size: 12px; color: var(--text-dim); display:flex; gap:6px; }
.card ul li::before{ content:"·"; color: var(--teal); opacity:.7; }
.card-glow{ position:absolute; inset:0; pointer-events:none; opacity:0; transition: opacity .3s; }

.sector-card{ display:flex; align-items:flex-start; justify-content:space-between; }
.sector-card .arrow{ color: var(--teal); opacity:.7; }

.process-grid{ margin-top:56px; }
.process-step .step-num{ font-family: var(--font-mono); font-size:24px; font-weight:700; color: rgba(255, 46, 136,.6); }
.process-step h4{ font-size:14px; margin-top:8px; }
.process-step p{ font-size:12px; margin-top:6px; color: var(--text-dim); }

/* =========================================================
   6. À PROPOS
   ========================================================= */
.about-grid{ display:grid; grid-template-columns:1fr; gap:40px; }
@media (min-width:900px){ .about-grid{ grid-template-columns: 1fr 1fr; } }
.about-head{ display:flex; align-items:center; gap:20px; margin-top:16px; }
.about-photo{ width:96px; height:96px; border-radius:999px; overflow:hidden; flex-shrink:0; box-shadow: 0 0 30px -6px rgba(255, 46, 136,.4); border: 2px solid rgba(255, 46, 136,.4); }
.about-photo img{ width:100%; height:100%; object-fit:cover; object-position: top; }
.about-name{ font-size:24px; }
.about-role{ margin-top:4px; font-family: var(--font-mono); font-size:11px; text-transform:uppercase; letter-spacing:.08em; color: var(--teal); }
.about-bio p{ margin-top:14px; color: var(--text-muted); }
.about-approach ul{ margin-top:16px; display:flex; flex-direction:column; gap:10px; font-size:14px; color:#dbe3f2; }

/* =========================================================
   7. RESOURCES + ADS
   ========================================================= */
.resources-head{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:20px; }
.ad-slot{ border:1px dashed rgba(255,255,255,.15); border-radius: var(--radius); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; text-align:center; padding:16px; }
.ad-slot .ad-label{ font-family: var(--font-mono); font-size:10px; text-transform:uppercase; letter-spacing:.08em; color: var(--text-dim); }
.ad-rect{ width:100%; max-width:300px; height:110px; }
.ad-infeed{ display:flex; flex-direction:column; justify-content:space-between; }
.ad-banner{ min-height:100px; margin-top:24px; }
.sticky-mobile-ad{ position:fixed; left:0; right:0; bottom:0; z-index:35; background: rgba(10,14,23,.97); backdrop-filter: blur(8px); border-top:1px solid rgba(255,255,255,.1); padding:10px 16px; display:none; align-items:center; gap:12px; }
.sticky-mobile-ad.is-visible{ display:flex; }
@media (min-width:860px){ .sticky-mobile-ad{ display:none !important; } }
.sticky-mobile-ad .ad-slot{ flex:1; height:48px; }
.sticky-mobile-ad button{ background:none; border:none; color: var(--text-dim); font-size:16px; }

/* =========================================================
   8. AVIS (REVIEWS)
   ========================================================= */
.reviews-summary{ display:flex; align-items:center; gap:8px; }
.reviews-summary .avg{ font-family: var(--font-display); font-size:24px; font-weight:700; color: #FFC700; }
.reviews-summary .stars{ color: #FFC700; }
.reviews-summary .count{ font-size:12px; color: var(--text-dim); }
.review-item{ border:1px solid var(--card-border); border-radius: var(--radius); padding:16px; margin-bottom:12px; }
.review-item .row{ display:flex; align-items:center; justify-content:space-between; }
.review-item .name{ font-family: var(--font-display); font-size:14px; font-weight:600; }
.review-item .stars{ color: #FFC700; font-size:12px; }
.review-item p{ margin-top:6px; font-size:14px; color: var(--text-muted); }
.review-item .date{ margin-top:6px; display:block; font-size:10px; text-transform:uppercase; color: var(--text-dim); }
.review-empty{ border:1px dashed rgba(255,255,255,.15); border-radius: var(--radius); padding:20px; font-size:14px; color: var(--text-dim); }

.star-picker{ display:flex; gap:4px; }
.star-picker button{ background:none; border:none; font-size:26px; line-height:1; color: rgba(255,255,255,.15); }
.star-picker button.is-active, .star-picker button:hover, .star-picker button:hover ~ button{ color: #FFC700; }

/* =========================================================
   9. FORMS
   ========================================================= */
.field{ width:100%; background:transparent; border:1px solid rgba(255,255,255,.10); border-radius:8px; padding:11px 14px; font-size:14px; color: var(--text); margin-top:10px; font-family: var(--font-body); }
.field::placeholder{ color: var(--text-dim); }
.field:focus{ outline:none; border-color: rgba(255, 46, 136,.5); }
.form-card{ background: var(--card); border:1px solid var(--card-border); border-radius: var(--radius); padding:24px; }
.form-note{ margin-top:10px; font-size:11px; color: var(--text-dim); }
.honeypot{ position:absolute; left:-9999px; opacity:0; height:0; }
.form-msg{ margin-top:10px; font-size:13px; }
.form-msg.success{ color: var(--teal); }
.form-msg.error{ color: #ef5a5a; }

/* =========================================================
   10. FOOTER
   ========================================================= */
.site-footer{ border-top:1px solid rgba(255,255,255,.05); padding: 30px 0; }
.footer-row{ display:flex; flex-direction:column; gap:12px; font-size:12px; color: var(--text-dim); }
@media (min-width:640px){ .footer-row{ flex-direction:row; align-items:center; justify-content:space-between; } }
.footer-links{ display:flex; gap:16px; }
.footer-links a:hover{ color: var(--text-muted); }

/* =========================================================
   11. BLOG (single/archive/page/404/sidebar)
   ========================================================= */
.page-header{ padding: 48px 0 24px; }
.entry-content{ max-width: 760px; }
.entry-content p{ margin: 16px 0; color: var(--text-muted); }
.entry-content img{ border-radius: var(--radius); margin: 20px 0; }
.entry-meta{ font-family: var(--font-mono); font-size:11px; text-transform:uppercase; letter-spacing:.06em; color: var(--text-dim); margin-top:8px; }
.post-list{ display:flex; flex-direction:column; gap:20px; }
.post-card{ border:1px solid var(--card-border); border-radius: var(--radius); padding:20px; }
.post-card h2 a:hover{ color: var(--teal); }
.pagination{ display:flex; gap:10px; margin-top:32px; font-family: var(--font-mono); font-size:13px; }
.pagination a, .pagination span{ padding:6px 12px; border:1px solid rgba(255,255,255,.1); border-radius:6px; }
.widget{ margin-bottom:28px; }
.widget-title{ font-family: var(--font-display); font-size:14px; text-transform:uppercase; letter-spacing:.05em; margin-bottom:12px; }
.error-404{ text-align:center; padding: 100px 0; }
.error-404 h1{ font-size: 72px; color: var(--teal); }

/* =========================================================
   12. ANIMATIONS (reveal / reduced motion)
   ========================================================= */
.reveal{ opacity:0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible{ opacity:1; transform:none; }
.cursor-ambient{ position:fixed; inset:0; z-index:0; pointer-events:none; mix-blend-mode:screen; background: radial-gradient(600px circle at var(--cursor-x,50%) var(--cursor-y,50%), rgba(255, 46, 136,.06), transparent 60%); }

.grain-overlay{
  position:fixed; inset:0; z-index:1; pointer-events:none; opacity:.035; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.has-custom-cursor, .has-custom-cursor a, .has-custom-cursor button{ cursor:none; }
.custom-cursor-dot{ position:fixed; top:0; left:0; width:6px; height:6px; margin:-3px 0 0 -3px; border-radius:999px; background:#EAFFF6; pointer-events:none; z-index:9999; }
.custom-cursor-ring{ position:fixed; top:0; left:0; width:36px; height:36px; margin:-18px 0 0 -18px; border-radius:999px; border:1px solid rgba(255, 46, 136,.5); pointer-events:none; z-index:9998; transition: width .25s, height .25s, margin .25s, border-color .25s, background .25s; }
.custom-cursor-ring.is-active{ width:64px; height:64px; margin:-32px 0 0 -32px; background:rgba(255, 46, 136,.08); border-color:rgba(255, 46, 136,.8); }
@media (max-width:860px){ .custom-cursor-dot, .custom-cursor-ring{ display:none; } }


@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .axon-3d, .card{ transition:none; }
  .axon-auto-rotate, .axon-hub::before, .axon-line::after, .btn-primary{ animation:none; }
  .reveal{ opacity:1; transform:none; transition:none; }
  .cursor-ambient{ display:none; }
}

/* =========================================================
   13. HUD GRID, SCAN SWEEP, TERMINAL IA, PARTICULES, MARCHEUR,
       MODE CALME, TRANSITION D'ESSUYAGE, CALCULETTE
   (portés depuis le prototype interactif — version alignée)
   ========================================================= */
.hud-grid {
  position: absolute;
  inset: -20% -20% -10% -20%;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 46, 136,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 46, 136,0.14) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(500px) rotateX(62deg);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 30%, transparent 75%);
  animation: hud-drift 10s linear infinite;
  opacity: 0.7;
}
@keyframes hud-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 42px, 42px 0; }
}

/* Balayage lumineux au survol des cartes */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 46, 136,0.16) 50%, transparent 60%);
  background-size: 250% 250%;
  background-position: 120% 120%;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
  border-radius: inherit;
}
.card:hover::after {
  opacity: 1;
  animation: scan-sweep 1.1s ease forwards;
}
@keyframes scan-sweep {
  from { background-position: 120% 120%; }
  to { background-position: -20% -20%; }
}

/* Terminal IA (démo en direct) */
.ai-terminal {
  border-radius: 14px;
  border: 1px solid rgba(255, 46, 136,0.2);
  background: linear-gradient(180deg, rgba(10,16,26,0.9), rgba(7,10,17,0.95));
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6), 0 0 0 1px rgba(255, 46, 136,0.04) inset;
  overflow: hidden;
}
.ai-terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.ai-terminal-dot { width: 9px; height: 9px; border-radius: 999px; }
.ai-terminal-body {
  padding: 20px;
  min-height: 190px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  color: #D6FF4D;
}
.ai-terminal-line-prefix { color: #FF2E88; opacity: .6; margin-right: 8px; }
.ai-cursor-blink {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: #FF2E88;
  margin-left: 2px;
  animation: blink-caret 0.85s step-end infinite;
  vertical-align: middle;
}
@keyframes blink-caret { 50% { opacity: 0; } }

/* Champ de particules interactif du hero */
.particle-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* Curseur de la calculette d'impact */
.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff2e88, #c6ff00);
  outline: none;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 3px solid #ff2e88;
  cursor: pointer;
  box-shadow: 0 0 10px 2px rgba(255, 46, 136, 0.5);
}
.calc-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 3px solid #ff2e88;
  cursor: pointer;
}

/* Transition "essuyage" colorée entre sections */
.section-wipe {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: linear-gradient(100deg, #FF2E88, #D6146B 55%, #C6FF00);
  pointer-events: none;
}
.section-wipe-cover {
  transform-origin: left center;
  animation: wipe-in 0.26s ease forwards;
}
.section-wipe-reveal {
  transform-origin: right center;
  animation: wipe-out 0.26s ease forwards;
}
@keyframes wipe-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes wipe-out {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* Toast + bouton Mode calme */
.quiet-toast {
  position: fixed;
  left: 16px;
  bottom: 56px;
  z-index: 46;
  background: rgba(11, 7, 20, 0.92);
  border: 1px solid rgba(198, 255, 0, 0.4);
  color: #eaffb0;
  font-size: 11px;
  padding: 8px 14px;
  border-radius: 999px;
  animation: toast-in-out 2.2s ease forwards;
  pointer-events: none;
}
@keyframes toast-in-out {
  0% { opacity: 0; transform: translateY(6px); }
  12%, 82% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-4px); }
}
.quiet-toggle {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 46;
  background: rgba(11, 7, 20, 0.85);
  border: 1px solid rgba(255, 46, 136, 0.3);
  color: #ffe3f0;
  font-size: 11px;
  padding: 8px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.quiet-toggle:hover { border-color: rgba(255, 46, 136, 0.6); }

body.quiet-mode .particle-field,
body.quiet-mode .walker-stage,
body.quiet-mode .cursor-ambient,
body.quiet-mode .grain-overlay,
body.quiet-mode .hud-grid,
body.quiet-mode .custom-cursor-dot,
body.quiet-mode .custom-cursor-ring {
  display: none !important;
}
body.quiet-mode.has-custom-cursor,
body.quiet-mode.has-custom-cursor a,
body.quiet-mode.has-custom-cursor button {
  cursor: auto !important;
}
body.quiet-mode .axon-auto-rotate,
body.quiet-mode .axon-hub::before,
body.quiet-mode .axon-line::after,
body.quiet-mode .btn-primary,
body.quiet-mode .card:hover::after {
  animation: none !important;
}

body.tab-hidden * {
  animation-play-state: paused !important;
}

/* Petit personnage qui marche en bas du site, en continu, sans jamais gêner le contenu */
.walker-stage {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50px;
  pointer-events: none;
  z-index: 30;
  overflow: hidden;
}
.walker-figure {
  position: absolute;
  bottom: 4px;
  width: 22px;
  height: 42px;
  transform-origin: bottom center;
  opacity: 0.92;
}
.fig-head {
  position: absolute;
  top: 0;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #fff6fb, #ffb9d8);
  box-shadow: 0 0 6px 1px rgba(255, 46, 136, 0.35);
}
.fig-torso {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 11px;
  height: 15px;
  margin-left: -5.5px;
  background: linear-gradient(180deg, #ffe3f0, #ff9dc4);
  clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
}
.fig-arm-still {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 2.4px;
  height: 13px;
  margin-left: -7px;
  border-radius: 2px;
  background: #ffcfe3;
  transform: rotate(6deg);
  transform-origin: top center;
}
.fig-arm-wave {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 2.4px;
  height: 8px;
  margin-left: 4.6px;
  border-radius: 2px;
  background: #ffcfe3;
  transform-origin: top center;
}
.fig-forearm {
  position: absolute;
  top: 100%;
  left: 0;
  width: 2.4px;
  height: 7px;
  border-radius: 2px;
  background: #ffcfe3;
  transform-origin: top center;
}
.fig-leg {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: #d6146b;
  transform-origin: top center;
}
.fig-leg-back { margin-left: -4.5px; opacity: 0.75; transform: scale(0.94); z-index: 1; }
.fig-leg-front { margin-left: 1.5px; z-index: 2; }
.fig-shin {
  position: absolute;
  top: 100%;
  left: 0;
  width: 3px;
  height: 11px;
  border-radius: 2px;
  background: #c6ff00;
  transform-origin: top center;
}

.walker-greet .fig-arm-wave { animation: fig-wave-upper 0.5s ease-in-out 4; }
.walker-greet .fig-forearm { animation: fig-wave-fore 0.5s ease-in-out 4; }
.walker-greet { animation: walker-bounce-in 0.5s ease; }

.walker-walk .fig-leg-back { animation: fig-thigh-back 0.5s ease-in-out infinite; }
.walker-walk .fig-leg-front { animation: fig-thigh-front 0.5s ease-in-out infinite; }
.walker-walk .fig-leg-back .fig-shin { animation: fig-shin-back 0.5s ease-in-out infinite; }
.walker-walk .fig-leg-front .fig-shin { animation: fig-shin-front 0.5s ease-in-out infinite; }
.walker-walk .fig-arm-still { animation: fig-thigh-front 0.5s ease-in-out infinite; }
.walker-walk .fig-torso { animation: walker-bob 0.5s ease-in-out infinite; }

.walker-beckon .fig-arm-wave { animation: fig-beckon-upper 0.9s ease-in-out infinite; }
.walker-beckon .fig-forearm { animation: fig-beckon-fore 0.9s ease-in-out infinite; }

@keyframes fig-wave-upper { 0%, 100% { transform: rotate(-20deg); } 50% { transform: rotate(-95deg); } }
@keyframes fig-wave-fore { 0%, 100% { transform: rotate(10deg); } 50% { transform: rotate(50deg); } }
@keyframes fig-beckon-upper { 0%, 100% { transform: rotate(-30deg); } 50% { transform: rotate(-110deg); } }
@keyframes fig-beckon-fore { 0%, 100% { transform: rotate(20deg); } 50% { transform: rotate(70deg); } }
@keyframes fig-thigh-back { 0%, 100% { transform: rotate(-26deg); } 50% { transform: rotate(24deg); } }
@keyframes fig-thigh-front { 0%, 100% { transform: rotate(24deg); } 50% { transform: rotate(-26deg); } }
@keyframes fig-shin-back { 0%, 100% { transform: rotate(18deg); } 50% { transform: rotate(-4deg); } }
@keyframes fig-shin-front { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(18deg); } }
@keyframes walker-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1px); } }
@keyframes walker-bounce-in { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 0.92; transform: translateY(0); } }

.walker-bubble {
  position: absolute;
  bottom: 46px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(11, 7, 20, 0.9);
  border: 1px solid rgba(255, 46, 136, 0.35);
  color: #ffe3f0;
  font-size: 10px;
  padding: 5px 10px;
  border-radius: 999px;
}

@media (max-width: 860px) {
  .walker-stage { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fig-leg-back, .fig-leg-front, .fig-leg-back .fig-shin, .fig-leg-front .fig-shin,
  .fig-arm-still, .fig-torso, .fig-arm-wave, .fig-forearm { animation: none; }
  .hud-grid, .section-wipe-cover, .section-wipe-reveal, .quiet-toast { animation: none; }
}
