/* ═══ FIX — Hero gradient text visibility ═══
   style.css rule .split-line.grad-anim{background:none!important;-webkit-text-fill-color:currentColor}
   makes text invisible for data-hero-lock elements (app.js doesn't split them into .ch spans
   → color:transparent + currentColor=transparent = invisible text).
   This restores the gradient for ALL data-hero-lock elements.
   ══════════════════════════════════════════════════════════════ */

/* ═══ FILTER PILLS — styling robuste (Tous/Clinique/Gestion/...) ═══ */
.fpill{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:9px 20px!important;
  border-radius:100px!important;
  background:rgba(255,255,255,.04)!important;
  border:1px solid rgba(255,255,255,.1)!important;
  color:rgba(234,242,255,.6)!important;
  font-size:.78rem!important;
  font-weight:800!important;
  cursor:pointer!important;
  transition:all .25s ease!important;
  font-family:inherit!important;
  -webkit-tap-highlight-color:transparent;
}
.fpill:hover{
  border-color:rgba(255,255,255,.2)!important;
  color:#eaf2ff!important;
  background:rgba(255,255,255,.06)!important;
  transform:translateY(-1px);
}
.fpill.on{
  background:rgba(0,229,255,.12)!important;
  border-color:rgba(0,229,255,.4)!important;
  color:#00e5ff!important;
  box-shadow:0 4px 16px rgba(0,229,255,.15);
}
.fpill.on:hover{
  background:rgba(0,229,255,.18)!important;
}

/* ═══ MOD COUNT — badge "23 modules inclus" ═══ */
.mod-count{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  font-size:.78rem!important;
  font-weight:800!important;
  color:#f5c842!important;
  margin-top:14px!important;
  padding:6px 16px!important;
  border-radius:100px!important;
  background:rgba(245,200,66,.08)!important;
  border:1px solid rgba(245,200,66,.2)!important;
}


/* ═══ LUXURY LOGO — transparent, sans bordures, élégant ═══ */
/* Supprime la boîte gradient autour du logo → logo transparent pur */
.logo .ico{
  width:auto!important;height:auto!important;
  background:none!important;
  border-radius:0!important;
  box-shadow:none!important;
  animation:none!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.logo .ico svg{display:none!important} /* cache l'ancien SVG paw (remplacé par img) */
.logo-img{
  width:52px!important;
  height:52px!important;
  object-fit:contain;
  filter:drop-shadow(0 2px 10px rgba(0,229,255,.15));
  transition:transform .4s cubic-bezier(.2,.8,.2,1),filter .4s ease;
}
.logo:hover .logo-img{
  transform:scale(1.06);
  filter:drop-shadow(0 4px 16px rgba(0,229,255,.25));
}
/* Logo plus grand dans le footer */
footer .logo-img{
  width:46px!important;
  height:46px!important;
}
/* Logo dans le preloader */
.pre-paw{display:none!important}
[data-hero-lock].grad-anim,
.split-line.grad-anim[data-hero-lock]{
  background:linear-gradient(90deg,var(--cyan),var(--violet),var(--gold),var(--cyan))!important;
  background-size:300% 100%!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
  animation:gradMove 6s linear infinite!important;
}
span.grad-anim:not(.split-line){
  -webkit-background-clip:text!important;
  background-clip:text!important;
}

/* ╔══════════════════════════════════════════════════════════════╗
   ║   RYKAVION VET — Custom Styles                                  ║
   ║   ──────────────────────────────────                            ║
   ║   Contient : WhatsApp button · Modal · Responsive · Performance ║
   ║   Chargé APRÈS style.css (override les règles si besoin)        ║
   ╚══════════════════════════════════════════════════════════════╝ */

/* ═══════════════════════════════════════════════════════════════
   1) FLOATING WHATSAPP BUTTON
   ═══════════════════════════════════════════════════════════════ */
.wa-fab{
  position:fixed;right:22px;bottom:22px;z-index:9999;
  width:62px;height:62px;border-radius:50%;background:#25D366;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 24px rgba(37,211,102,.45),0 0 0 0 rgba(37,211,102,.6);
  transition:transform .25s ease,box-shadow .25s ease;
  animation:waPulse 2.6s infinite;will-change:transform;
}
.wa-fab:hover{transform:scale(1.08) translateY(-2px);box-shadow:0 12px 32px rgba(37,211,102,.55)}
.wa-fab svg{width:34px;height:34px;fill:#fff;display:block}
.wa-fab .wa-tip{
  position:absolute;right:74px;top:50%;
  transform:translateY(-50%) translateX(8px);
  background:rgba(15,23,42,.95);color:#fff;font-size:.78rem;font-weight:600;
  padding:8px 14px;border-radius:10px;white-space:nowrap;
  opacity:0;pointer-events:none;
  transition:opacity .25s ease,transform .25s ease;
  font-family:Inter,Cairo,sans-serif;
}
.wa-fab .wa-tip::after{
  content:"";position:absolute;right:-6px;top:50%;
  transform:translateY(-50%);
  border:6px solid transparent;border-left-color:rgba(15,23,42,.95);
}
.wa-fab:hover .wa-tip{opacity:1;transform:translateY(-50%) translateX(0)}
@keyframes waPulse{
  0%{box-shadow:0 8px 24px rgba(37,211,102,.45),0 0 0 0 rgba(37,211,102,.55)}
  70%{box-shadow:0 8px 24px rgba(37,211,102,.45),0 0 0 18px rgba(37,211,102,0)}
  100%{box-shadow:0 8px 24px rgba(37,211,102,.45),0 0 0 0 rgba(37,211,102,0)}
}

/* ═══════════════════════════════════════════════════════════════
   2) DOWNLOAD REQUEST MODAL
   ═══════════════════════════════════════════════════════════════ */
.ryk-overlay{
  position:fixed;inset:0;z-index:10000;
  background:rgba(5,8,16,.78);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  display:flex;align-items:center;justify-content:center;padding:20px;
  opacity:0;visibility:hidden;
  transition:opacity .3s ease,visibility .3s ease;
}
.ryk-overlay.show{opacity:1;visibility:visible}
.ryk-modal{
  width:100%;max-width:460px;
  background:linear-gradient(180deg,#131a2c 0%,#0a0e1a 100%);
  border:1px solid rgba(0,229,255,.25);border-radius:18px;
  box-shadow:0 30px 80px rgba(0,0,0,.6),0 0 60px rgba(0,229,255,.12);
  overflow:hidden;
  transform:translateY(20px) scale(.96);
  transition:transform .35s cubic-bezier(.16,1,.3,1);
  position:relative;max-height:90vh;overflow-y:auto;
}
.ryk-overlay.show .ryk-modal{transform:translateY(0) scale(1)}
.ryk-modal::before{
  content:"";position:absolute;top:0;left:0;right:0;height:2px;
  background:linear-gradient(90deg,#00e5ff,#7c6cff,#f5c842);z-index:1;
}
.ryk-modal-head{padding:28px 32px 18px;text-align:center;border-bottom:1px solid rgba(255,255,255,.06)}
.ryk-modal-head .ryk-logo{display:inline-flex;align-items:center;gap:10px;margin-bottom:14px}
.ryk-modal-head .ryk-logo svg{width:32px;height:32px}
.ryk-modal-head .ryk-logo b{font-size:18px;font-weight:800;color:#fff;letter-spacing:.5px}
.ryk-modal-head .ryk-logo small{font-size:10px;color:#64748b;letter-spacing:2px;display:block;text-align:left;margin-top:-2px}
.ryk-modal-head h3{font-size:22px;font-weight:700;color:#fff;margin-bottom:6px}
.ryk-modal-head p{font-size:14px;color:#94a3b8;line-height:1.55}
.ryk-modal-body{padding:24px 32px}
.ryk-field{position:relative;margin-bottom:16px}
.ryk-field label{display:block;font-size:12px;font-weight:600;color:#94a3b8;margin-bottom:6px;text-transform:uppercase;letter-spacing:.8px}
.ryk-field label .req{color:#ef4444;margin-left:4px}
.ryk-field input{
  width:100%;padding:14px 16px;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.12);
  border-radius:10px;color:#fff;font-size:15px;font-family:inherit;
  transition:border-color .2s ease,background .2s ease;
}
.ryk-field input:focus{outline:none;border-color:#00e5ff;background:rgba(0,229,255,.06)}
.ryk-field input::placeholder{color:#475569}
[dir="rtl"] #rykPhone{direction:ltr;text-align:start;unicode-bidi:isolate}
.ryk-field.err input{border-color:#ef4444;background:rgba(239,68,68,.06)}
.ryk-field-msg{font-size:12px;color:#ef4444;margin-top:6px;display:none}
.ryk-field.err .ryk-field-msg{display:block}
.ryk-submit{
  width:100%;padding:15px;
  background:linear-gradient(135deg,#00e5ff,#7c6cff);
  border:none;border-radius:10px;color:#0a0e1a;font-size:15px;font-weight:700;font-family:inherit;
  cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;
  transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease;
  box-shadow:0 8px 20px rgba(0,229,255,.3);
}
.ryk-submit:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 12px 28px rgba(0,229,255,.4)}
.ryk-submit:disabled{opacity:.7;cursor:wait}
.ryk-submit .spinner{
  width:16px;height:16px;border:2px solid rgba(10,14,26,.3);
  border-top-color:#0a0e1a;border-radius:50%;
  animation:rykSpin .7s linear infinite;display:none;
}
.ryk-submit.loading .spinner{display:block}
.ryk-submit.loading .label{opacity:.7}
@keyframes rykSpin{to{transform:rotate(360deg)}}
.ryk-modal-foot{padding:14px 32px 22px;text-align:center}
.ryk-modal-foot .ryk-close{background:none;border:none;color:#64748b;font-size:13px;cursor:pointer;font-family:inherit;transition:color .2s ease}
.ryk-modal-foot .ryk-close:hover{color:#fff}
.ryk-modal-foot .ryk-trust{font-size:11px;color:#475569;margin-top:8px}
.ryk-success{text-align:center;padding:32px 28px}
.ryk-success-icon{
  width:72px;height:72px;margin:0 auto 18px;border-radius:50%;
  background:linear-gradient(135deg,#2dd4a7,#0d9488);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 12px 30px rgba(45,212,167,.4);
  animation:rykPop .5s cubic-bezier(.16,1,.3,1);
}
@keyframes rykPop{0%{transform:scale(0);opacity:0}60%{transform:scale(1.1)}100%{transform:scale(1);opacity:1}}
.ryk-success-icon svg{width:36px;height:36px;stroke:#fff;stroke-width:3.5;fill:none}
.ryk-success h3{font-size:22px;font-weight:700;color:#fff;margin-bottom:10px}
.ryk-success p{font-size:14px;color:#94a3b8;line-height:1.6;margin-bottom:16px}
.ryk-success .ryk-mail-badge{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(0,229,255,.08);border:1px solid rgba(0,229,255,.25);
  padding:8px 14px;border-radius:10px;font-size:13px;color:#00e5ff;font-weight:600;margin-bottom:18px;
}
.ryk-success .ryk-note{font-size:12px;color:#64748b;margin-top:14px;padding-top:14px;border-top:1px dashed rgba(255,255,255,.08)}
.ryk-error{
  background:rgba(239,68,68,.1);border:1px solid rgba(239,68,68,.3);
  color:#fca5a5;padding:12px 16px;border-radius:10px;font-size:13px;margin-bottom:14px;
  display:none;white-space:pre-wrap;word-break:break-word;line-height:1.6;font-family:inherit;
}
.ryk-error.show{display:block}


/* ═══════════════════════════════════════════════════════════════
   3) 📱 RESPONSIVE — Tablet & Mobile
   ═══════════════════════════════════════════════════════════════ */

/* WhatsApp button — small screens */
@media(max-width:640px){
  .wa-fab{width:54px;height:54px;right:14px;bottom:14px}
  .wa-fab svg{width:28px;height:28px}
  .wa-fab .wa-tip{display:none}
}

/* Main breakpoint — tablet & mobile */
@media(max-width:768px){
  /* ===== Hero ===== */
  .hero{padding:24px 16px 32px}
  .hero-inner{flex-direction:column;gap:28px}
  .hero-h{font-size:clamp(25px,7.6vw,34px);line-height:1.18}
  .hero-sub{font-size:14px}
  .hero-btns{flex-wrap:wrap;gap:8px}
  .hero-btns .btn{font-size:13px;padding:12px 16px;flex:1;min-width:140px}
  .hero-stats{flex-wrap:wrap;gap:10px;font-size:11px;margin-top:20px}
  .hstat.div{display:none}
  .hstat b{font-size:20px}
  .hero-visual{display:none}
  .scroll-ind{display:none}
  .hero-glow{opacity:.3}

  /* ===== Marquee — SLOW IT DOWN on mobile ===== */
  .marquee{padding:6px 0;overflow:hidden}
  .marquee-inner{
    animation-duration:40s !important;
    -webkit-animation-duration:40s !important;
    -moz-animation-duration:40s !important;
  }
  /* Pause marquee when hovered (desktop) or tapped (mobile) for readability */
  .marquee:hover .marquee-inner,
  .marquee:active .marquee-inner{
    animation-play-state:paused;
    -webkit-animation-play-state:paused;
  }

  /* ===== Offline band ===== */
  .off-grid{grid-template-columns:1fr !important;gap:24px;padding:0 16px}
  .sec-h{font-size:24px;line-height:1.2}
  .sec-sub{font-size:13px}

  /* ===== Sections ===== */
  section{padding:36px 16px}

  /* ===== Features ===== */
  .frow{grid-template-columns:1fr !important;gap:20px}
  .frow.rev{direction:inherit}
  .f-text,.f-vis{width:100%;max-width:100%}
  .f-h{font-size:20px}
  .f-p{font-size:13px}
  .panel-body{padding:14px}
  .checks li{font-size:13px}

  /* ===== Modules ===== */
  .mods-grid{grid-template-columns:1fr !important;gap:12px}
  .filters{flex-wrap:wrap;gap:6px}

  /* ===== Pricing ===== */
  .price-card{padding:20px 16px}
  .p-name{font-size:18px}
  .p-amount{font-size:44px}
  .p-feats li{font-size:13px;padding:6px 0}
  .pop-badge{font-size:11px;padding:5px 10px}

  /* ===== Testimonials ===== */
  .testi-grid{grid-template-columns:1fr !important;gap:14px}
  .testi-card{padding:18px}

  /* ===== FAQ ===== */
  .faq-list{padding:0}

  /* ===== CTA ===== */
  .cta-box{padding:28px 18px}
  .cta-box h2{font-size:22px}
  .cta-box p{font-size:14px}
  .cta-box .btn{padding:14px 24px;font-size:.9rem}

  /* ===== Footer ===== */
  .foot-grid{grid-template-columns:1fr !important;gap:24px;text-align:center}
  .foot-grid > div{text-align:center}
  .foot-grid ul{list-style:none;padding:0}
  .foot-bottom{flex-direction:column;gap:6px;padding:14px 16px;font-size:11px}

  /* ===== Modal ===== */
  .ryk-overlay{padding:12px}
  .ryk-modal{max-width:100%;margin:0}
  .ryk-modal-head{padding:20px 18px 14px}
  .ryk-modal-head h3{font-size:18px}
  .ryk-modal-head p{font-size:13px}
  .ryk-modal-body{padding:18px}
  .ryk-modal-foot{padding:10px 18px 16px}
  .ryk-field input{padding:12px 14px;font-size:14px}
  .ryk-submit{padding:13px;font-size:14px}
  .ryk-success{padding:24px 18px}
  .ryk-success h3{font-size:18px}
}

/* Small mobile */
@media(max-width:480px){
  .sec-h{font-size:20px}
  .p-amount{font-size:36px}
  .p-amount small{font-size:16px}
  .hero-btns{flex-direction:column}
  .hero-btns .btn{width:100%;justify-content:center}
  .hero-stats{justify-content:center;text-align:center}
  .wa-fab{width:50px;height:50px;right:12px;bottom:12px}
  .wa-fab svg{width:26px;height:26px}
  .ryk-modal-head .ryk-logo svg{width:28px;height:28px}
  .ryk-modal-head .ryk-logo b{font-size:16px}
  /* Even slower marquee on very small screens */
  .marquee-inner{
    animation-duration:50s !important;
    -webkit-animation-duration:50s !important;
  }
}

/* Very small mobile */
@media(max-width:360px){
  .sec-h{font-size:18px}
  .p-amount{font-size:32px}
}


/* ═══════════════════════════════════════════════════════════════
   4) ⚡ PERFORMANCE — Disable heavy effects
   ═══════════════════════════════════════════════════════════════ */

/* Mobile: disable GPU-heavy decorative elements */
@media(max-width:768px){
  #particles,.orb,.grid-bg,.noise,.cursor-dot,.cursor-ring{display:none !important}
  [data-tilt]{transform:none !important;will-change:auto !important}
  [data-tilt] .glare{display:none}
  /* Exception: marquee keeps its own slow duration (set above) */
  .marquee-inner{
    animation-duration:40s !important;
    -webkit-animation-duration:40s !important;
  }
  .wa-fab{animation-duration:2.6s !important}
  .hero-glow,.off-radar{display:none}
  .mock{transform:none !important}
  .ecg-wrap{display:none}
}

/* Respect user's reduced-motion preference */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
  #particles,.orb,.grid-bg,.noise,.cursor-dot,.cursor-ring,.hero-glow,.off-radar{display:none !important}
  .wa-fab{animation:none !important}
  .marquee-inner{animation:none !important}
}

/* Desktop: content-visibility for off-screen sections (huge perf boost) */
@media(min-width:769px){
  #features,#modules,#avis,#faq,.cta-sec,footer{
    content-visibility:auto;
    contain-intrinsic-size:600px;
  }
}

/* Touch devices: disable hover-only effects */
@media(hover:none){
  [data-magnetic]{transform:none !important}
  .wa-fab:hover{transform:none}
  .cursor-dot,.cursor-ring{display:none}
}

/* Hide burger on desktop */
@media(min-width:1081px){
  #burger{display:none !important}
  #burger.active{transform:none !important}
  .nav-backdrop{display:none !important}
  .nav-links{display:flex !important;position:static !important;flex-direction:row !important;background:transparent !important;border:none !important;box-shadow:none !important;padding:0 !important;max-height:none !important;transform:none !important;border-radius:0 !important;animation:none !important}
  .nav-links a{background:transparent !important;border:none !important;padding:0 !important;transform:none !important}
  .nav-links a::before{display:none !important}
}


/* ═══════════════════════════════════════════════════════════════
   5) 📱 MOBILE DRAWER MENU (tiroir latéral)
   ═══════════════════════════════════════════════════════════════ */
.m-backdrop{position:fixed;inset:0;z-index:10040;background:rgba(3,6,14,.62);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);opacity:0;visibility:hidden;transition:opacity .3s ease,visibility .3s ease}
.m-drawer{--dir:1;position:fixed;top:0;bottom:0;inset-inline-end:0;width:min(88vw,340px);height:100vh;height:100dvh;z-index:10050;display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;
  background:linear-gradient(180deg,#0f1626 0%,#0a0e1a 100%);color:#e2e8f0;
  border-inline-start:1px solid rgba(0,229,255,.18);box-shadow:-24px 0 60px rgba(0,0,0,.55);
  padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px);
  transform:translateX(105%);visibility:hidden;transition:transform .38s cubic-bezier(.16,1,.3,1),visibility 0s linear .38s}
[dir="rtl"] .m-drawer{--dir:-1;transform:translateX(-105%);box-shadow:24px 0 60px rgba(0,0,0,.55)}
html.menu-open,html.menu-open body{overflow:hidden}
html.menu-open .m-backdrop{opacity:1;visibility:visible}
html.menu-open .m-drawer{transform:none;visibility:visible;transition:transform .38s cubic-bezier(.16,1,.3,1),visibility 0s}
.m-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 14px;border-bottom:1px solid rgba(255,255,255,.07)}
.m-close{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;cursor:pointer;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);color:#cbd5e1;transition:background .2s,border-color .2s,color .2s}
.m-close:hover,.m-close:active,.m-close:focus-visible{background:rgba(0,229,255,.1);border-color:rgba(0,229,255,.35);color:#00e5ff;outline:none}
.m-close svg{width:20px;height:20px}
.m-links{flex:1;display:flex;flex-direction:column;gap:6px;padding:16px 14px}
.m-links a{display:flex;align-items:center;gap:14px;min-height:54px;padding:0 12px;border-radius:12px;border:1px solid transparent;color:#cbd5e1;font-size:15.5px;font-weight:600;text-decoration:none;transition:background .2s,border-color .2s,color .2s}
.m-links a:hover,.m-links a:active,.m-links a:focus-visible{background:rgba(0,229,255,.08);border-color:rgba(0,229,255,.25);color:#fff;outline:none}
.m-ic{width:38px;height:38px;border-radius:10px;flex:none;display:grid;place-items:center;background:rgba(0,229,255,.08);color:#00e5ff}
.m-ic svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.m-links a::after{content:"";margin-inline-start:auto;width:7px;height:7px;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:rotate(45deg);opacity:.4}
[dir="rtl"] .m-links a::after{transform:rotate(-135deg)}
html.menu-open .m-links a{animation:mIn .45s cubic-bezier(.16,1,.3,1) both;animation-delay:calc(var(--i,0) * 45ms + 120ms)}
@keyframes mIn{from{opacity:0;transform:translateX(calc(16px * var(--dir,1)))}to{opacity:1;transform:none}}
.m-foot{padding:16px 18px 22px;border-top:1px solid rgba(255,255,255,.07);display:flex;flex-direction:column;gap:14px}
.m-lang{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;border-radius:12px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}
.m-drawer .m-lang .lang-btn{height:40px;min-width:0;padding:0;border:0;border-radius:9px;background:transparent;color:#94a3b8;font:700 14px/1 Inter,Cairo,sans-serif;cursor:pointer;transition:background .2s,color .2s}
.m-drawer .m-lang .lang-btn.on{background:linear-gradient(135deg,#00e5ff,#7c6cff);color:#0a0e1a}
.m-drawer .m-cta{width:100%;justify-content:center;padding:14px 20px !important;font-size:.95rem !important}
.m-note{margin:0;text-align:center;font-size:12px;color:#64748b}

/* Thème clair */
body.light .m-drawer{background:#fff;color:#0f172a;border-color:rgba(15,23,42,.1);box-shadow:-24px 0 60px rgba(15,23,42,.18)}
body.light .m-head,body.light .m-foot{border-color:rgba(15,23,42,.08)}
body.light .m-links a{color:#334155}
body.light .m-links a:hover,body.light .m-links a:active{background:rgba(8,145,178,.08);border-color:rgba(8,145,178,.25);color:#0f172a}
body.light .m-ic{background:rgba(8,145,178,.1);color:#0891b2}
body.light .m-close,body.light .m-lang{background:rgba(15,23,42,.05);border-color:rgba(15,23,42,.1);color:#475569}
body.light .m-drawer .m-lang .lang-btn{color:#475569}
body.light .m-drawer .m-lang .lang-btn.on{color:#0a0e1a}

@media(max-width:560px){.nav-right .btn-gold{display:none !important}}
@media(max-width:768px){.wa-fab{bottom:calc(14px + env(safe-area-inset-bottom,0px));right:calc(14px + env(safe-area-inset-right,0px))}}
@media(min-width:1081px){.m-drawer,.m-backdrop{display:none !important}}


/* ═══════════════════════════════════════════════════════════════
   6) 📱 MOBILE POLISH — rendu plus professionnel sur téléphone
   ═══════════════════════════════════════════════════════════════ */
@media(max-width:768px){
  html,body{max-width:100%;overflow-x:clip}
  .btn{min-height:48px}

  /* Effets JS (parallax / skew au scroll) désactivés : ils font trembler la page */
  #heroInner{transform:none !important;opacity:1 !important}
  .marquee{transform:none !important}

  /* Hero */
  .hero{padding:96px 18px 40px;min-height:0}
  .hero-inner{gap:30px}
  .hero-badge{font-size:.66rem;line-height:1.45;padding:7px 12px;max-width:100%}
  h1.hero-h{font-size:clamp(27px,7.8vw,38px);line-height:1.15;margin-bottom:18px;text-wrap:balance}
  .hero-badge b{font-size:.66rem;letter-spacing:.03em}
  .hero-sub{font-size:15px;line-height:1.65}
  .hero-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .hero-btns .btn{width:100%;min-width:0;justify-content:center;text-align:center;padding:10px 12px;font-size:13px;line-height:1.3}
  .hero-btns .btn:first-child{grid-column:1/-1;font-size:14.5px}
  .hero-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:22px}
  .hstat{padding:12px 10px;border-radius:14px;text-align:center;background:var(--card);border:1px solid var(--border)}
  .hstat b{display:block;font-size:22px}

  /* Aperçu du logiciel visible sur mobile (sans cartes flottantes) */
  .hero-visual{display:block;width:100%;max-width:420px;margin:0 auto}
  .fcard,.vis-paw{display:none !important}
  .mock{max-width:100%}

  /* Bandeau hors-ligne */
  .off-grid{padding:0 !important}
  .sim-row{gap:14px}
  .lat-chip{position:static !important;display:inline-flex;margin-top:12px}

  /* Titres de sections */
  .sec-head{margin-bottom:26px}
  .sec-h{font-size:clamp(22px,6.4vw,28px)}
  .sec-sub{font-size:14.5px;line-height:1.65}
  .frow{gap:22px;margin-bottom:42px}
  .f-h{font-size:21px;line-height:1.25}
  .f-p{font-size:14.5px;line-height:1.65}
  .checks li{font-size:14px}
  .panel{border-radius:16px}

  /* Modules : filtres défilants + cartes compactes */
  .filters{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;gap:8px;margin:0 -16px 16px;padding:2px 16px 10px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .filters::-webkit-scrollbar{display:none}
  .fpill{flex:none;white-space:nowrap;min-height:40px}
  .mod-card{display:grid;grid-template-columns:44px 1fr;column-gap:14px;row-gap:4px;align-items:start;padding:16px}
  .mod-card .mod-icon{grid-row:1 / span 3;width:44px;height:44px;margin:0}
  .mod-card .mod-icon svg{width:22px;height:22px}
  .mod-card h3{font-size:16px;margin:0}
  .mod-card p{font-size:13.5px;line-height:1.55;margin:0}
  .mod-card .mod-tags{grid-column:2;display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}

  /* Tarifs */
  .trial-banner{padding:14px 16px;font-size:13.5px;line-height:1.55}
  .price-card{padding:24px 18px}
  .p-feats li{align-items:flex-start;gap:10px}
  .p-feats li svg{flex:none;width:18px;height:18px;margin-top:3px}

  /* Avis : carrousel horizontal */
  .testi-grid{display:flex !important;max-width:none;overflow-x:auto;gap:12px;margin:0 -16px;padding:4px 16px 14px;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .testi-grid::-webkit-scrollbar{display:none}
  .testi-card{flex:0 0 86%;min-width:0;scroll-snap-align:center;opacity:1 !important;transform:none !important}

  /* FAQ */
  .faq-q{padding:18px;font-size:.92rem}
  .faq-a p{padding:0 18px 18px}

  /* Pied de page */
  .foot-grid{grid-template-columns:1fr 1fr !important;gap:28px 18px;text-align:start}
  .foot-grid > div{text-align:start}
  .foot-grid > div:first-child,.foot-grid > div:last-child{grid-column:1/-1}
  .foot-grid li{margin-bottom:10px}
  .foot-bottom{text-align:center}

  /* Formulaire : feuille qui monte du bas, champs 16px (évite le zoom iOS) */
  .ryk-overlay{padding:0;align-items:flex-end}
  .ryk-modal{border-radius:20px 20px 0 0;max-height:92vh;max-height:92dvh;transform:translateY(40px)}
  .ryk-field input{font-size:16px}
  .ryk-modal-foot{padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}

  /* Arabe : interligne plus aéré */
  html[lang="ar"] .hero-sub,html[lang="ar"] .sec-sub,html[lang="ar"] .f-p,html[lang="ar"] .testi-text,html[lang="ar"] .mod-card p{line-height:1.9}
}

/* Navigation : même point de rupture que style.css (1080px) — le menu est le tiroir .m-drawer */
@media(max-width:1080px){
  #nav{padding:0 max(14px,env(safe-area-inset-right)) 0 max(14px,env(safe-area-inset-left));flex-wrap:nowrap;align-items:center;height:60px;min-height:60px}
  .nav-links,.lang-switch,.trial-pill{display:none !important}
  #burger{display:grid !important}
  .nav-right{gap:8px}
  .nav-right .btn-gold{padding:9px 14px !important;font-size:.76rem !important;white-space:nowrap}
  a,button{-webkit-tap-highlight-color:transparent}
}


/* ═══════════════════════════════════════════════════════════════
   7) 📱 TEXTES LONGS (FR / EN) — aucun débordement ni texte coupé
   ═══════════════════════════════════════════════════════════════ */
@media(max-width:768px){
  /* Badge « Édition Complète » : retour à la ligne au lieu de dépasser la carte */
  .pop-badge{white-space:normal;text-align:center;width:max-content;max-width:calc(100% - 20px);line-height:1.35;letter-spacing:.04em;font-size:10.5px;padding:6px 14px;border-radius:14px}
  .price-card.pop{padding-top:40px}
  .p-name{font-size:.78rem;letter-spacing:.06em}

  /* Aperçu du logiciel : étiquettes sans texte coupé */
  .mock-main{padding:12px;gap:10px}
  .mock-side{width:40px}
  .mock-chips{gap:6px}
  .chip{padding:8px}
  .chip span{display:block;white-space:normal;line-height:1.25;letter-spacing:.02em}
  .mrow{padding:9px 10px;gap:9px}
  .mrow b{font-size:.74rem}
  .mr-ic{font-size:1.15rem}

  /* Console hors-ligne & interrupteur */
  .console-body{padding:14px;gap:10px}
  .crow{padding:11px 12px;gap:10px}
  .crow .cl{font-size:.78rem;min-width:0}
  .crow .cv{white-space:nowrap;font-size:.68rem;padding:4px 9px}
  .console-bar .t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:.04em}
  .sim-row{padding:14px 16px;margin-top:22px}
  .sim-row > div:first-child{min-width:0}
  .panel-body{gap:14px}
  .tl-item > div{min-width:0}
  .hstat span{display:block;font-size:.62rem;letter-spacing:.04em;line-height:1.3}
}

/* Français / Anglais uniquement (l'arabe reste inchangé) */
@media(max-width:768px){
  html:not([lang="ar"]) h1.hero-h{font-size:clamp(24px,7vw,36px)}
  html:not([lang="ar"]) .hero-badge{border-radius:16px;align-items:flex-start}
  html:not([lang="ar"]) .hero-badge .spark{flex:none;margin-top:.4em}
  /* le mot qui s'écrit seul sur sa ligne : la page ne saute plus pendant l'animation */
  html:not([lang="ar"]) #typed::before{content:"\A";white-space:pre}
}


/* ═══════════════════════════════════════════════════════════════
   ⚡ PERFORMANCE — Réduire les animations pour supporter beaucoup de visiteurs
   ═══════════════════════════════════════════════════════════════ */

/* Réduire le nombre de particules sur desktop (moins de charge GPU) */
@media(min-width:769px){
  /* Désactiver les orbs (décoratifs, coûteux en GPU) */
  .orb{display:none!important}
  /* Désactiver le noise (texture inutile) */
  .noise{display:none!important}
  /* Réduire le grid-bg */
  .grid-bg{opacity:.5!important}
}

/* Réduire les durées d'animation globalement */
.split-line .ch{animation-duration:.5s!important}
.fcard{animation-duration:.4s!important}
.mrow{animation-duration:.4s!important}
.tl-item{transition-duration:.4s!important}
.bar{transition-duration:.6s!important}

/* Désactiver le skew du marquee au scroll (coûteux) */
.marquee{transform:none!important}

/* Désactiver le parallax du hero (coûteux sur mobile + desktop) */
#heroInner{transform:none!important;opacity:1!important}

/* Réduire les ombres portées (coûteux en rendu) */
.mock{box-shadow:0 20px 50px rgba(0,0,0,.4)!important}
.panel{box-shadow:0 20px 50px rgba(0,0,0,.4)!important}

/* Cursor custom : désactiver sur les écrans ≤1024px (tablette incluse) */
@media(max-width:1024px){
  .cursor-dot,.cursor-ring{display:none!important}
}


/* ═══════════════════════════════════════════════════════════════
   2b) 🌙→☀️ MODAL — Light mode overrides
   ═══════════════════════════════════════════════════════════════ */
body.light .ryk-overlay{
  background:rgba(100,120,160,.55);
}
body.light .ryk-modal{
  background:linear-gradient(180deg,#ffffff 0%,#f2f5fb 100%);
  border-color:rgba(0,120,180,.2);
  box-shadow:0 30px 80px rgba(15,23,42,.18),0 0 60px rgba(0,145,178,.08);
}
body.light .ryk-modal::before{
  background:linear-gradient(90deg,#0891b2,#7c6cff,#f5c842);
}
body.light .ryk-modal-head{
  border-bottom-color:rgba(11,18,32,.08);
}
body.light .ryk-modal-head .ryk-logo b{
  color:#0b1220;
}
body.light .ryk-modal-head .ryk-logo small{
  color:#64748b;
}
body.light .ryk-modal-head h3{
  color:#0b1220;
}
body.light .ryk-modal-head p{
  color:rgba(11,18,32,.58);
}
body.light .ryk-field label{
  color:rgba(11,18,32,.55);
}
body.light .ryk-field input{
  background:rgba(11,18,32,.04);
  border-color:rgba(11,18,32,.15);
  color:#0b1220;
}
body.light .ryk-field input:focus{
  border-color:#0891b2;
  background:rgba(8,145,178,.05);
}
body.light .ryk-field input::placeholder{
  color:rgba(11,18,32,.35);
}
body.light .ryk-field.err input{
  border-color:#ef4444;
  background:rgba(239,68,68,.05);
}
body.light .ryk-modal-foot .ryk-close{
  color:rgba(11,18,32,.45);
}
body.light .ryk-modal-foot .ryk-close:hover{
  color:#0b1220;
}
body.light .ryk-modal-foot .ryk-trust{
  color:rgba(11,18,32,.4);
}
/* ── Success state ── */
body.light .ryk-success h3{
  color:#0b1220;
}
body.light .ryk-success p{
  color:rgba(11,18,32,.6);
}
body.light .ryk-success .ryk-note{
  color:rgba(11,18,32,.4);
  border-top-color:rgba(11,18,32,.1);
}
/* ── Terminer button (base dark + light override) ── */
.ryk-close-success{
  display:inline-block;
  margin-top:16px;
  padding:11px 28px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:10px;
  background:rgba(255,255,255,.06);
  color:#e2e8f0;
  font-size:.88rem;
  font-weight:700;
  font-family:inherit;
  cursor:pointer;
  transition:border-color .2s ease,background .2s ease,color .2s ease;
}
.ryk-close-success:hover{
  border-color:rgba(255,255,255,.32);
  background:rgba(255,255,255,.1);
  color:#fff;
}
body.light .ryk-close-success{
  border-color:rgba(11,18,32,.18);
  background:rgba(11,18,32,.04);
  color:#0b1220;
}
body.light .ryk-close-success:hover{
  border-color:rgba(11,18,32,.3);
  background:rgba(11,18,32,.08);
}

/* ═══════════════════════════════════════════════════════════════
   8) 📦 MODULES — Show/Hide toggle button
   ═══════════════════════════════════════════════════════════════ */
.mods-toggle-wrap{
  position:relative;
  margin-top:-10px;
  text-align:center;
  padding-top:80px;
}
.mods-fade{
  position:absolute;
  top:0;left:0;right:0;
  height:100px;
  background:linear-gradient(to top,var(--bg,#050810) 55%,transparent);
  pointer-events:none;
}
body.light .mods-fade{
  background:linear-gradient(to top,var(--bg,#f2f5fb) 55%,transparent);
}
.mods-show-btn{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:12px 28px;
  border-radius:100px;
  background:rgba(0,229,255,.1);
  border:1px solid rgba(0,229,255,.35);
  color:#00e5ff;
  font-size:.85rem;
  font-weight:800;
  font-family:inherit;
  cursor:pointer;
  transition:background .25s ease,box-shadow .25s ease,transform .25s ease,border-color .25s ease;
  box-shadow:0 4px 20px rgba(0,229,255,.12);
  position:relative;
  z-index:2;
}
.mods-show-btn:hover{
  background:rgba(0,229,255,.18);
  border-color:rgba(0,229,255,.55);
  box-shadow:0 8px 28px rgba(0,229,255,.22);
  transform:translateY(-2px);
}
.mods-show-btn b{
  font-weight:900;
  color:#fff;
}
.mods-show-btn svg{
  width:18px;height:18px;
  transition:transform .3s ease;
  flex-shrink:0;
}
.mods-show-btn:hover svg{
  transform:translateY(3px);
}
body.light .mods-show-btn{
  background:rgba(8,145,178,.08);
  border-color:rgba(8,145,178,.3);
  color:#0891b2;
  box-shadow:0 4px 20px rgba(8,145,178,.1);
}
body.light .mods-show-btn:hover{
  background:rgba(8,145,178,.14);
  border-color:rgba(8,145,178,.5);
  box-shadow:0 8px 28px rgba(8,145,178,.18);
}
body.light .mods-show-btn b{
  color:#0b1220;
}

/* ═══════════════════════════════════════════════════════════════
   9) 🌐 LOGO WATERMARK — arrière-plan luxueux
   ═══════════════════════════════════════════════════════════════ */
body::after{
  content:'';
  position:fixed;
  top:50%;left:50%;
  transform:translate(-50%,-50%);
  width:min(72vw,720px);
  height:min(72vw,720px);
  background:url('img/logocve.png') center/contain no-repeat;
  opacity:.028;
  pointer-events:none;
  z-index:0;
  will-change:auto;
}
body.light::after{
  opacity:.042;
}

/* ═══════════════════════════════════════════════════════════════
   10) 🔵 HERO CIRCULAR LOGO
   ═══════════════════════════════════════════════════════════════ */
.hero-logo-circle{
  width:116px;height:116px;
  border-radius:50%;
  border:2px solid rgba(0,229,255,.32);
  background:linear-gradient(135deg,rgba(0,229,255,.08),rgba(124,108,255,.1));
  display:flex;align-items:center;justify-content:center;
  margin-bottom:26px;
  box-shadow:0 0 44px rgba(0,229,255,.18),0 0 90px rgba(0,229,255,.07);
  animation:logoGlow 3s ease-in-out infinite,rise .9s var(--ease,.16s) both;
  overflow:hidden;
  padding:12px;
  flex-shrink:0;
}
.hero-logo-circle img{
  width:100%;height:100%;
  object-fit:contain;
  filter:drop-shadow(0 2px 12px rgba(0,229,255,.22));
}
body.light .hero-logo-circle{
  border-color:rgba(8,145,178,.3);
  background:linear-gradient(135deg,rgba(8,145,178,.07),rgba(124,108,255,.08));
  box-shadow:0 0 44px rgba(8,145,178,.14),0 0 90px rgba(8,145,178,.05);
}
body.light .hero-logo-circle img{
  filter:drop-shadow(0 2px 12px rgba(8,145,178,.18));
}
@media(max-width:768px){
  .hero-logo-circle{width:88px;height:88px;padding:9px;margin-bottom:18px}
}


/* ═══════════════════════════════════════════════════════════════
   11) ⏳ PRELOADER — Logo image (remplace l'ancien SVG pre-paw)
   ═══════════════════════════════════════════════════════════════ */
.pre-paw{display:none!important}

/* Force le pre-box en colonne centrée pour aligner l'image */
.pre-box{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}

.pre-logo{
  display:block;
  width:96px;height:96px;
  /* Centrage explicite — résiste au text-align et au RTL */
  margin:0 auto 20px;
  margin-inline:auto;
  flex-shrink:0;
  object-fit:contain;
  transform-origin:center center;
  animation:preLogoIn 1s cubic-bezier(.16,1,.3,1) forwards,
            preLogoGlow 2.4s ease-in-out infinite 1s;
  filter:drop-shadow(0 0 18px rgba(0,229,255,.55));
  opacity:0;
}
@keyframes preLogoIn{
  0%  {opacity:0;transform:scale(.55) translateY(14px)}
  60% {opacity:1;transform:scale(1.06) translateY(0)}
  100%{opacity:1;transform:scale(1)   translateY(0)}
}
@keyframes preLogoGlow{
  0%,100%{filter:drop-shadow(0 0 14px rgba(0,229,255,.5))}
  50%    {filter:drop-shadow(0 0 32px rgba(124,108,255,.75))}
}
