/* ===========================
   Variables & helpers
=========================== */
:root{
  --bg:#000;
  --card:#121212;
  --fg:#fff;
  --muted:#b4b4b4;
  --pink:#FE2C55;
  --cyan:#25F4EE;
}

body {
  background: radial-gradient(1200px 600px at 80% -10%, rgba(0, 200, 255, .15), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(255, 0, 102, .12), transparent 60%),
              #0e0f12;
  color: #e9ecef;
}
.bg-black{ background:#000 !important; }
.text-muted-neo{ color:var(--muted) !important; }

/* Buttons */
.btn-pink{ background:var(--pink); color:#fff; border:none; }
.btn-pink:hover{ filter:brightness(1.05); color:#fff; }
.btn-cyan{ background:var(--cyan); color:#000; border:none; }
.btn-cyan:hover{ filter:brightness(1.05); color:#000; }

/* TikTok gradient text */
.grad-tiktok{
  background: linear-gradient(90deg, var(--pink) 0%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Generic spacing */
.section-pad{ padding: 48px 0 64px; }

/* Accent bars */
.accent{ display:flex; gap:20px; justify-content:center; margin: 12px 0 16px; }
.accent .bar{ height:6px; width:170px; display:block; }
.accent .bar.pink{ background: var(--pink); }
.accent .bar.cyan{ background: var(--cyan); }

/* Banner chip */
.banner{
  display:inline-block; padding:10px 16px; margin: 0 auto 10px;
  background:#141414; border:2px solid #3a3a3a; border-radius:10px; font-weight:700;
}

/* ===========================
   Navbar logo + halo
=========================== */
.brand-logo{
  height:56px; width:auto;
  filter: drop-shadow(0 0 0 rgba(0,0,0,0));
  transition: transform .18s ease, filter .18s ease;
  will-change: filter, transform;
}
@keyframes haloPulse {
  0%{   filter: drop-shadow(0 0 6px rgba(254,44,85,.55)) drop-shadow(0 0 10px rgba(37,244,238,.45)); }
  50%{  filter: drop-shadow(0 0 10px rgba(254,44,85,.75)) drop-shadow(0 0 16px rgba(37,244,238,.65)); }
  100%{ filter: drop-shadow(0 0 6px rgba(254,44,85,.55)) drop-shadow(0 0 10px rgba(37,244,238,.45)); }
}
.navbar-brand:hover .brand-logo,
.navbar-brand:focus .brand-logo{
  transform: translateY(-1px);
  animation: haloPulse 1.2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce){
  .brand-logo{ transition:none; }
  .navbar-brand:hover .brand-logo,
  .navbar-brand:focus .brand-logo{ animation:none; }
}

/* ===========================
   Pricing cards
=========================== */
.card-pricing{
  background:var(--card);
  border:1px solid #1e1e1e;
  border-radius:14px;
  overflow:hidden;
  position:relative;
}
.card-pricing header{
  background:#1e1e1e; padding:20px 24px 14px; position:relative;
}
.card-pricing header::before{
  content:""; position:absolute; left:0; top:0; right:0; height:6px; background:var(--pink);
}
.card-pricing.pro header::before{ background:var(--cyan); }
.card-pricing h3{ margin:0 0 8px; font-size:30px; }
.card-pricing .price{ color:var(--muted); font-size:16px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.strike{ text-decoration: line-through; opacity:.6; }
.card-pricing .content{ padding:18px 24px 8px; }
.card-pricing .content ul{ list-style:none; padding:0; margin:0; }
.card-pricing .content li{ padding:10px 0; border-bottom:1px solid #1e1e1e; line-height:1.45; }
.card-pricing .cta{ padding:24px; }

/* Badge & Ribbon */
.badge-pop{
  position:absolute; top:14px; right:16px;
  background:#fff; color:#000; padding:6px 12px; border-radius:999px;
  font-size:13px; font-weight:800; letter-spacing:.2px;
}
.ribbon{
  position:absolute; top:10px; left:-40px; transform: rotate(-35deg);
  background:var(--cyan); color:#000; padding:8px 60px; font-weight:800;
  box-shadow:0 2px 0 rgba(0,0,0,.2);
}
@media (max-width: 991.98px){ .badge-pop{ top:12px; right:12px; } }

/* Tooltip “i” */
.tip{
  display:inline-flex; align-items:center; justify-content:center;
  width:18px; height:18px; border-radius:50%; background:#2a2a2a; color:#fff; font-size:12px;
}

/* Fine print */
.fineprint{ font-size:13px; color:var(--muted); text-align:center; margin-top:10px; }
.equilibrium{ text-align:center; color:var(--muted); margin-top:28px; font-size:14px; }

/* ===========================
   Hero Carousel (TikTok style)
=========================== */
.hero-wrap{
  position: relative;
  background:
    radial-gradient(1200px 1200px at -10% -20%, rgba(254,44,85,.15) 0%, rgba(0,0,0,0) 40%),
    radial-gradient(1200px 1200px at 110% 120%, rgba(37,244,238,.14) 0%, rgba(0,0,0,0) 40%),
    #000;
}
.hero-slide{ min-height:56vh; padding:72px 0; }
.hero-kicker{
  display:inline-block; font-size:.9rem; letter-spacing:.06em; color:var(--muted);
  text-transform:uppercase; margin-bottom:.5rem;
}
.hero-title{ line-height:1.1; margin-bottom:.5rem; }
.hero-text{ max-width:720px; margin-bottom:1.25rem; }

/* Badge Sans CB */
.badges-wrap{ display:flex; gap:.6rem; flex-wrap:wrap; }
.badge-sanscb{
  display:inline-block; font-weight:700; padding:.45rem .75rem; border-radius:999px; font-size:.9rem;
  background: linear-gradient(90deg, var(--pink), var(--cyan)); color:#000;
  box-shadow: 0 6px 18px rgba(37,244,238,.18), 0 4px 14px rgba(254,44,85,.18);
}

/* Mockups à droite (slides 2–3) */
.hero-mockup{
  width:100%; max-width:540px; height:auto;
  border-radius:16px; background:#0a0a0a; border:1px solid #1e1e1e;
  box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.02) inset;
  display:block; margin-left:auto;
}
.hero-mockup-tilt{ transform: perspective(1200px) rotateY(-6deg); }

/* Filigrane logo bas-droite */
.hero-wrap::after{
  content:""; position:absolute; right:2%; bottom:6%; width:200px; height:80px;
  background: url('/images/logo.png') no-repeat center/contain;
  opacity:.08; pointer-events:none; filter: drop-shadow(0 0 2px rgba(0,0,0,.3));
}
@media (max-width: 991.98px){ .hero-wrap::after{ width:140px; height:56px; bottom:4%; } }
@media (max-width: 575.98px){ .hero-wrap::after{ display:none; } }

/* Indicateurs & flèches */
#heroCarousel{
  --bs-carousel-indicator-width: 10px;
  --bs-carousel-indicator-height: 10px;
  --bs-carousel-indicator-spacer: 8px;
  --bs-carousel-indicator-opacity: 1;
}
#heroCarousel .carousel-indicators{ bottom:22px; margin-bottom:0; }
#heroCarousel .carousel-indicators [data-bs-target]{
  width:10px; height:10px; border-radius:50%; background:#3a3a3a; border:0;
}
#heroCarousel .carousel-indicators .active{
  background: radial-gradient(circle, var(--pink) 0%, var(--cyan) 100%);
}
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next{ width:8%; }
#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon{
  filter: drop-shadow(0 0 8px rgba(0,0,0,.8));
  width:2.25rem; height:2.25rem; background-size:100% 100%;
}

/* Responsive hero padding */
@media (max-width: 991.98px){ .hero-slide{ min-height:48vh; padding:56px 0; } }
@media (max-width: 575.98px){ .hero-title{ font-size:1.9rem; } }

/* === HERO: hauteur fixe & centrage, mobile compris (écrase min-height) === */
.hero-wrap .carousel,
.hero-wrap .carousel-inner,
.hero-wrap .carousel-item{
  height: 78vh;                 /* desktop/tablette par défaut */
}
@media (max-width: 991.98px){
  .hero-wrap .carousel,
  .hero-wrap .carousel-inner,
  .hero-wrap .carousel-item{ height: 84vh; }
}
@media (max-width: 575.98px){
  .hero-wrap .carousel,
  .hero-wrap .carousel-inner,
  .hero-wrap .carousel-item{ height: 88vh; }
}

/* Empêche le contenu d’augmenter la hauteur du slide */
.hero-wrap .carousel-item{
  position: relative;
  overflow: hidden;
}

/* Centre le contenu dans la hauteur fixe */
.hero-wrap .hero-slide{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 72px 0;
}

/* Les mockups restent contenus, pas de reflow */
.hero-wrap .hero-mockup{
  max-height: 64vh;
  height: auto;
  width: 100%;
  object-fit: contain;
}
@media (max-width: 991.98px){
  .hero-wrap .hero-mockup{ max-height: 56vh; }
}
@media (max-width: 575.98px){
  .hero-wrap .hero-mockup{ max-height: 50vh; }
}

/* Typo plus compacte sur mobile (évite le slide 1 plus haut) */
@media (max-width: 575.98px){
  .hero-wrap .hero-title{ font-size: 1.55rem; line-height: 1.2; margin:.25rem 0 .5rem; }
  .hero-wrap .hero-text { font-size: .97rem; margin: 0 0 1rem; }
  .hero-wrap .btn { padding: .5rem .9rem; }
}

/* ===========================
   Switch Mensuel / Annuel
=========================== */
.switch-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  color:var(--muted);
  margin-bottom: 1rem;
}
.switch{
  position:relative;
  width:72px; height:36px;
  background:#1e1e1e;
  border-radius:999px;
  cursor:pointer;
  border:1px solid #2a2a2a;
  transition: background .2s ease-in-out;
}
.switch:hover{ background:#2a2a2a; }
.switch .knob{
  position:absolute; top:3px; left:3px;
  width:30px; height:30px; border-radius:50%;
  background:#fff;
  transition:left .18s ease-in-out, background .2s ease-in-out;
}
.switch.on .knob{ left:39px; background:linear-gradient(90deg, var(--pink), var(--cyan)); }
.tag-save{
  font-size:13px; padding:6px 10px; background:#132a28; color:#9af3ee;
  border:1px solid #214846; border-radius:999px;
}

/* === Features list comparée (✓ / ✕) === */
.features{ list-style:none; padding:0; margin:0; }
.feature{
  display:flex; align-items:flex-start; gap:10px;
  padding:10px 0; border-bottom:1px solid #1e1e1e; line-height:1.45;
}
.feature .icon{
  flex:0 0 22px; height:22px; width:22px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:6px; font-weight:700; font-size:14px;
  background:#181818;
}
.feature.ok .icon{ color:#000; background: var(--cyan); }
.feature.ok span{ color:#fff; }
.feature.off .icon{ color: rgba(255,255,255,.85); background:#2a2a2a; }
.feature.off span{ color: var(--muted); opacity:.9; }
.features .feature{ min-height: 44px; }

/* Dashboard tweaks */
.card-pricing .display-6 { font-weight: 800; }
.table-dark.table-sm th, .table-dark.table-sm td { border-color: #1e1e1e; }
.table-dark.table-sm thead th { color: #b4b4b4; }

/* Mockup */
.hero-mockup { width: 100%; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.hero-mockup-tilt { transform: perspective(1000px) rotateY(-6deg) rotateX(1deg); }
@media (max-width: 991.98px){ .hero-mockup-tilt { transform: none; } }

/* Bloc codes aligné sur une ligne */
.codes-block { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }

/* Pills compteurs */
.pill-count {
  display:inline-block; padding:2px 8px; border-radius:999px; font-size:.75rem;
  border:1px solid rgba(255,255,255,.15);
}
.bg-pill-on  { background:rgba(0,255,200,.12); }
.bg-pill-off { background:rgba(255,255,255,.06); }

/* Chip code */
.code-chip {
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 6px; border-radius:10px;
  border:1px solid rgba(255,255,255,.16);
  background:#161616;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size:.85rem;
}
.code-off { opacity:.6; }

.code-link { color:#fff; text-decoration:none; }
.code-link:hover { text-decoration:underline; }

.chip-copy {
  font-size:.7rem; padding:2px 6px;
  border:1px solid rgba(255,255,255,.2);
  background:transparent; color:#fff; border-radius:6px;
  cursor:pointer;
}
.chip-copy:hover { background:rgba(255,255,255,.1); }

/* ===== Fil de tickets (public) ===== */
.thread{ margin-top: .25rem; }
.thread-msg{
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background:#14171a;
  border:1px solid #2b3036;
  color:#e8ecf2;
  box-shadow: 0 1px 0 rgba(255,255,255,.02) inset,
              0 6px 20px rgba(0,0,0,.22);
}
.thread-msg--staff{
  background:#0f1f14;
  border-color:#2d6a39;
  box-shadow: 0 0 0 1px rgba(45,106,57,.25) inset,
              0 6px 20px rgba(0,0,0,.22);
}
.thread-msg--user{
  background:#101215;
  border-color:#2b3036;
}
.thread-msg .meta{ font-size:.86rem; color:#a0a8b3; margin-bottom:6px; }
.thread-msg .body{ white-space:pre-wrap; line-height:1.55; color:#f1f5f9; }

/* Badge état */
.badge-soft{ background:#23272f; color:#cbd5e1; border:1px solid #2f3540; }

/* Formulaire sombre cohérent */
.form-dark .form-label{ color:#e5e7eb; }
.form-dark .form-control,
.form-dark .form-select{
  background:#0f1216;
  border:1px solid #2b3036;
  color:#e8ecf2;
  caret-color:#e8ecf2;
}
.form-dark .form-control::placeholder{ color:#9aa3af; opacity:1; }
.form-dark .form-control:focus,
.form-dark .form-select:focus{
  background:#10141a; color:#f1f5f9; border-color:#42f1ff;
  box-shadow:0 0 0 .2rem rgba(66,241,255,.15); outline:0;
}

/* Contact */
#contact .card-pricing header { border-bottom: 1px solid #333; }
#contact .form-label { color: #ddd; }
#contact .form-control { background:#111; border:1px solid #333; color:#fff; }
#contact .form-control:focus { border-color: var(--cyan); box-shadow: none; }

/* Pleine largeur + bord à bord propre */
#contact .contact-full { border-radius: 0; }
#contact .contact-full header { border-bottom: 1px solid #333; }

/* Captcha */
@media (max-width: 576px) {
  #contact .captcha-wrap { flex-direction: column; align-items: flex-start; gap: 8px; }
  #contact .captcha-img { height: auto; width: 100%; max-width: 320px; }
}
#contact .content { padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 768px) {
  #contact .content { padding-left: 1.5rem; padding-right: 1.5rem; }
}
#contact .form-label { color: #ddd; }
#contact .form-control { background:#111; border:1px solid #333; color:#fff; }
#contact .form-control:focus { border-color: var(--cyan); box-shadow:none; }
.captcha-img { height:48px; border:1px solid #333; border-radius:6px; }
@media(max-width:576px){ .captcha-wrap{flex-direction:column;align-items:flex-start;gap:8px;} }

/* Alerts */
.alert-success {
  background-color: #0d2f2f;
  border: 1px solid #00fff7;
  color: #00fff7;
  border-radius: 10px;
  font-weight: 500;
}
.alert-danger {
  background-color: #2b0d1a;
  border: 1px solid #ff0066;
  color: #ff4d94;
  border-radius: 10px;
  font-weight: 500;
}
.alert-info {
  background-color: #0d1a2f;
  border: 1px solid #3399ff;
  color: #66b3ff;
  border-radius: 10px;
  font-weight: 500;
}
.alert-warning {
  background-color: #2f1e0d;
  border: 1px solid #ff9900;
  color: #ffb84d;
  border-radius: 10px;
  font-weight: 500;
}
.alert { animation: fadeInDown 0.5s ease; }
@keyframes fadeInDown {
  from {opacity:0; transform:translateY(-10px);}
  to {opacity:1; transform:translateY(0);}
}

/* Bannière */
.onboarding-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1050;
}

/* Carte d’auth */
.auth-card {
  backdrop-filter: blur(8px);
  background: rgba(20,22,26,.85);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* Badge marque */
.brand-badge {
  background: linear-gradient(135deg, #00e0ff, #6cf);
  color: #081018;
  font-weight: 700;
  letter-spacing: .2px;
}

/* Inputs & bouton */
.form-control, .form-control:focus {
  background-color: #11151a;
  border-color: rgba(255,255,255,.12);
  color: #e9ecef;
  box-shadow: none;
}
.input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity:.75; }
.input-with-icon input { padding-left: 38px; }
.btn-cyan {
  background: linear-gradient(135deg, #00e0ff, #22b8ff);
  color: #0b1220;
  border: none;
}
.btn-cyan:hover { filter: brightness(1.05); }

/* Renfort de priorité pour les champs */
.form-control, .form-select {
  background-color: #11151a !important;
  border: 1px solid #2b3036 !important;
  color: #e8ecf2 !important;
  caret-color: #e8ecf2;
}
.form-control::placeholder { color:#9aa3af !important; opacity:1; }
.form-control:focus, .form-select:focus {
  background-color: #10141a !important;
  color:#f1f5f9 !important;
  border-color:#42f1ff !important;
  box-shadow:0 0 0 .2rem rgba(66,241,255,.15) !important;
  outline:0;
}

/* Inputs autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #e8ecf2 !important;
  -webkit-box-shadow: 0 0 0px 1000px #11151a inset !important;
  box-shadow: 0 0 0px 1000px #11151a inset !important;
  transition: background-color 9999s ease-in-out 0s;
}
/* Input groups sombres */
.auth-input .input-group-text{
  background:#11151a; border:1px solid #2b3036; color:#9aa3af;
}
.auth-input .form-control{
  background:#11151a; border:1px solid #2b3036; color:#e8ecf2;
}
.auth-input .form-control:focus{
  background:#10141a; border-color:#42f1ff; color:#f1f5f9;
  box-shadow:0 0 0 .2rem rgba(66,241,255,.15);
}
.auth-input .btn.btn-outline-secondary{
  border:1px solid #2b3036; background:#11151a; color:#9aa3af;
}
.auth-input .btn.btn-outline-secondary:hover{
  background:#151a21; color:#cbd5e1;
}
/* Autofill dans cartes */
.auth-card input:-webkit-autofill,
.auth-card input:-webkit-autofill:hover,
.auth-card input:-webkit-autofill:focus {
  -webkit-text-fill-color:#e8ecf2 !important;
  -webkit-box-shadow:0 0 0 1000px #11151a inset !important;
  box-shadow:0 0 0 1000px #11151a inset !important;
  transition: background-color 9999s ease-in-out 0s;
  caret-color:#e8ecf2;
}
.auth-input .input-group-text { background-color: #11151a !important; border: 1px solid #2b3036 !important; color: #9aa3af !important; border-radius: 8px 0 0 8px; }
.auth-input .form-control:focus + .btn,
.auth-input .input-group-text:focus-within { border-color: #42f1ff !important; }

#promo_code { text-transform: uppercase; }

/* --- Badge d’attention “Stripe non connecté” --- */
.attn-link{
  display:inline-flex; align-items:center; gap:.35rem;
  padding:.35rem .65rem; border-radius:999px; text-decoration:none;
  font-weight:700; line-height:1;
  background:#dc3545; color:#fff;
  box-shadow:0 0 0 0 rgba(220,53,69,.55);
  transition:filter .15s ease;
  animation:attnPulse 1.6s ease-out infinite;
}
.attn-link:hover{ filter:brightness(1.05); color:#fff; }
.attn-link .arrow{
  font-size:1rem; margin-left:.1rem;
  animation:attnNudge 1.2s ease-in-out infinite;
}
@keyframes attnPulse{
  0%   { box-shadow:0 0 0 0 rgba(220,53,69,.55); }
  70%  { box-shadow:0 0 0 12px rgba(220,53,69,0); }
  100% { box-shadow:0 0 0 0 rgba(220,53,69,0); }
}
@keyframes attnNudge{
  0%,100% { transform:translateX(0); }
  50%     { transform:translateX(4px); }
}
@media (prefers-reduced-motion: reduce){
  .attn-link{ animation:none; }
  .attn-link .arrow{ animation:none; }
}
@media (max-width: 575.98px){
  .attn-link{ padding:.45rem .75rem; font-size:.95rem; }
}

/* Promo callout & banner */
.promo-callout{
  background: radial-gradient(120% 120% at 0% 0%, rgba(0,215,255,.18) 0%, rgba(0,0,0,.0) 65%),
              linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.35));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.03);
}
.promo-badge{
  width: 42px; height: 42px;
  background: linear-gradient(135deg, #00e0ff 0%, #58a6ff 100%);
  color:#000;
  box-shadow: 0 8px 20px rgba(0,224,255,.25);
}
@media (max-width: 575.98px){
  .promo-badge{ width:36px; height:36px; }
}
.promo-banner {
  background: linear-gradient(90deg, #ff0066, #25f4ee);
  color: #000;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.promo-banner .bi { color: #000; font-size: 1.2rem; }
.text-cyan { color: #25f4ee !important; }
