:root {
  --im-blue: #2563eb;
  --im-deep: #1d4ed8;
  --im-indigo: #6366f1;
  --im-green: #10b981;
}

body {
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
}

.glass {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.4) blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  border-radius: 9999px;
  font-weight: 600;
}

.chip--blue {
  background: #dbeafe;
  color: #1e40af;
}

.chip--green {
  background: #dcfce7;
  color: #166534;
}

.text-gradient {
  background: linear-gradient(90deg, var(--im-blue), #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card {
  transition: 0.25s ease;
  border: 1px solid #e5e7eb;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -15px rgba(0, 0, 0, 0.25);
}

.video-shadow {
  box-shadow: 0 25px 60px -20px rgba(29, 78, 216, 0.35);
}

.bg-wave {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='320' viewBox='0 0 1440 320'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23EEF2FF'/%3E%3Cstop offset='1' stop-color='%23F8FAFC'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M0,224L48,192C96,160,192,96,288,101.3C384,107,480,181,576,202.7C672,224,768,192,864,170.7C960,149,1056,139,1152,144C1248,149,1344,171,1392,181.3L1440,192L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
}

.gradient-bg {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.compliance-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 8px 16px;
  border-radius: 9999px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.blue-gradient-section {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 50%, #2563eb 100%);
  position: relative;
  overflow: hidden;
}

.blue-gradient-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
      circle at 30% 70%,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}

.blue-gradient-section::after {
  content: "";
  position: absolute;
  bottom: -30%;
  right: -30%;
  width: 60%;
  height: 60%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='rgba(255,255,255,0.08)'/%3E%3Cpath d='M20 20 L80 80 M20 80 L80 20' stroke='rgba(255,255,255,0.05)' stroke-width='2'/%3E%3C/svg%3E");
  opacity: 0.3;
  animation: rotate 12s linear infinite;
}

.bg-light-grayish {
  background-color: #f4f4f5;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  33% {
    transform: translateY(-15px) rotate(120deg);
  }

  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}

.card-gradient {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  color: white;
  padding: 2rem;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
}

.card-gradient::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
}

.card-white {
  background: white;
  color: #374151;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.modern-wave-bg {
  background: linear-gradient(45deg, #f0f9ff 0%, #e0f2fe 50%, #dbeafe 100%);
  position: relative;
}

.modern-wave-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  animation: wave 20s linear infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23f0f9ff' fill-opacity='0.6' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
}

@keyframes wave {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

/* ====== Espacements par défaut (desktop/tablette) ====== */
#funciones .features-grid,
#fonctionnalites .features-grid,
#features .features-grid,
#funzionalita .features-grid,
#funcionalidades .features-grid {
  margin-top: 7rem;
  row-gap: 2.5rem;
  column-gap: 2.5rem;
}

#funciones .card-white,
#fonctionnalites .card-white,
#features .card-white,
#funzionalita .card-white,
#funcionalidades .card-white {
  position: relative;
  overflow: visible !important;
  padding-top: 5.5rem;
  /* espace pour l’icône au-dessus */
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding-bottom: 1.25rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

#funciones .card-figure,
#fonctionnalites .card-figure,
#features .card-figure,
#funzionalita .card-figure,
#funcionalidades .card-figure {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -58%);
  /* l’icône dépasse légèrement */
  z-index: 3;
  pointer-events: none;
}

#funciones .card-figure img,
#fonctionnalites .card-figure img,
#features .card-figure img,
#funzionalita .card-figure img,
#funcionalidades .card-figure img {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.15));
}

/* ====== Corrections mobile (évite que l’icône 2 & 3 recouvre le texte) ====== */
@media (max-width: 767px) {
  /* plus d’air vertical entre les cartes en 1 colonne */
  #funciones .features-grid,
  #fonctionnalites .features-grid,
  #features .features-grid,
  #funzionalita .features-grid,
  #funcionalidades .features-grid {
    margin-top: 6rem;
    /* espace sous le sous-titre */
    row-gap: 4rem;
    /* IMPORTANT: espace supplémentaire entre cartes */
    column-gap: 0;
  }

  /* pour chaque carte (sauf la 1re), ajoute encore un petit marge-top */
  #funciones .card-white + .card-white,
  #fonctionnalites .card-white + .card-white,
  #features .card-white + .card-white,
  #funzionalita .card-white + .card-white,
  #funcionalidades .card-white + .card-white {
    margin-top: 2rem;
    /* évite que l’icône de la carte n recouvre le texte de n-1 */
  }

  /* réduit un peu le dépassement de l’icône */
  #funciones .card-white,
  #fonctionnalites .card-white,
  #features .card-white,
  #funzionalita .card-white,
  #funcionalidades .card-white {
    padding-top: 5rem;
    /* remonte légèrement la carte vers l’icône */
  }

  #funciones .card-figure,
  #fonctionnalites .card-figure,
  #features .card-figure,
  #funzionalita .card-figure,
  #funcionalidades .card-figure {
    transform: translate(-50%, -50%);
    /* l’icône descend un peu -> moins d’empiètement vers le haut */
  }

  #funciones .card-figure img,
  #fonctionnalites .card-figure img,
  #features .card-figure img,
  #funzionalita .card-figure img,
  #funcionalidades .card-figure img {
    width: 150px;
    /* taille mobile adaptée */
  }
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #f9fafb;
  padding: 0.75rem 1rem;
  height: 52px;
  min-width: 240px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.store-badge:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.store-badge__icon {
  width: 20px;
  height: 20px;
  fill: #374151;
}

.store-badge__text {
  line-height: 1;
}

.store-badge__top {
  display: block;
  font-size: 12px;
  color: #6b7280;
}

.store-badge__bottom {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-top: 1px;
}

@media (max-width: 640px) {
  .store-badge {
    width: 100%;
  }
}

/* bloque l’inline style et garde le bénéfice CLS */
.ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.w-6 {
  width: 1.5rem;
}

.h-6 {
  height: 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ====== Testimonial avatar (initials) ====== */
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--im-blue), var(--im-indigo));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

/* ====== Pricing card hover ====== */
.pricing-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -15px rgba(0, 0, 0, 0.2);
}

/* ====== Smooth scroll ====== */
html {
  scroll-behavior: smooth;
}

/* ====== Animated counter ====== */
.counter-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--im-blue), var(--im-indigo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .counter-value {
    font-size: 3rem;
  }
}
.counter-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
  margin-top: 4px;
}
.counter-card {
  text-align: center;
  padding: 24px 16px;
}
.counter-divider {
  width: 1px;
  background: #e5e7eb;
  align-self: stretch;
}

/* ====== Trust badges ====== */
.trust-ribbon {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.trust-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.1);
}
.trust-badge-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ====== 3-step how it works ====== */
.step-card {
  text-align: center;
  padding: 32px 24px;
  position: relative;
}
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: white;
  margin: 0 auto 16px;
}
.step-number--1 { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.step-number--2 { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.step-number--3 { background: linear-gradient(135deg, #10b981, #059669); }
.step-connector {
  display: none;
}
@media (min-width: 768px) {
  .step-connector {
    display: block;
    position: absolute;
    top: 56px;
    right: -24px;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, #e5e7eb, #d1d5db);
  }
}

/* ====== Before / After ====== */
.compare-card {
  padding: 32px;
  border-radius: 20px;
  height: 100%;
}
.compare-card--before {
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.compare-card--after {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}
.compare-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.compare-icon--before {
  background: #fee2e2;
  color: #dc2626;
}
.compare-icon--after {
  background: #d1fae5;
  color: #059669;
}

/* ====== App mockup showcase ====== */
.mockup-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.mockup-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.25);
}
.mockup-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}
.mockup-glow--blue {
  background: #3b82f6;
  top: -40px;
  left: -40px;
}
.mockup-glow--indigo {
  background: #6366f1;
  bottom: -40px;
  right: -40px;
}

/* ====== Stars rating ====== */
.stars-row {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
}
.stars-row svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ====== VeriFactu banner ====== */
.verifactu-banner {
  background: linear-gradient(135deg, #1e40af, #3730a3);
  position: relative;
  overflow: hidden;
  padding-top: 28px;
  padding-bottom: 28px;
}
.verifactu-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

/* ====== Feature card improvements ====== */
.card .inline-flex svg {
  transition: transform 0.3s ease;
}
.card:hover .inline-flex svg {
  transform: scale(1.15);
}

/* ====== Floating CTA ====== */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid #e5e7eb;
  padding: 12px 20px;
  z-index: 40;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.floating-cta.visible {
  transform: translateY(0);
}

/* ====== Testimonial Title & Quote Styling ====== */
.testimonial-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.4rem;
  line-height: 1.35;
}
.testimonial-quote {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ====== Homepage FAQ Accordion ====== */
.home-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 52rem;
  margin: 0 auto;
}
.home-faq-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.home-faq-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px -10px rgba(37, 99, 235, 0.12);
}
.home-faq-item[open] {
  border-color: #93c5fd;
  box-shadow: 0 12px 28px -12px rgba(37, 99, 235, 0.16);
}
.home-faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: #111827;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.home-faq-summary::-webkit-details-marker {
  display: none;
}
.home-faq-icon {
  width: 20px;
  height: 20px;
  color: #2563eb;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.home-faq-item[open] .home-faq-icon {
  transform: rotate(180deg);
}
.home-faq-answer {
  padding: 0 1.5rem 1.35rem 1.5rem;
  color: #4b5563;
  font-size: 0.96rem;
  line-height: 1.65;
  border-top: 1px solid #f3f4f6;
  padding-top: 1rem;
}

