/* ===========================
   HERO
=========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  position: relative;
}

.hero .row {
  position: relative;
}

/* LEFT (text) column */
.hero .row>[class^="col-"]:first-child,
.hero .row>[class*=" col-"]:first-child {
  position: relative;
  z-index: 3;
  overflow: visible;
}

/* RIGHT (visual) column */
.hero .row>[class^="col-"]:last-child,
.hero .row>[class*=" col-"]:last-child {
  position: relative;
  z-index: 1;
  overflow: visible;
}

/* Floating 3D icons slab */
.floating-3d {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 55%;
  pointer-events: none;
  z-index: 1;
}

@media (min-width: 1200px) {
  .floating-3d {
    left: 50%;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .floating-3d {
    left: 56%;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .floating-3d {
    left: 62%;
  }
}

html[dir="rtl"] .floating-3d {
  left: 0;
  right: 55%;
}

@media (min-width: 1200px) {
  html[dir="rtl"] .floating-3d {
    right: 50%;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  html[dir="rtl"] .floating-3d {
    right: 56%;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  html[dir="rtl"] .floating-3d {
    right: 62%;
  }
}

.float-item {
  position: absolute;
  animation: float3d 6s infinite ease-in-out;
}

.float-item:nth-child(1) {
  top: 20%;
  right: 10%;
  animation-delay: 0s;
}

.float-item:nth-child(2) {
  top: 60%;
  right: 15%;
  animation-delay: 1s;
}

.float-item:nth-child(3) {
  top: 40%;
  right: 6%;
  animation-delay: 2s;
}

.float-item:nth-child(4) {
  top: 28%;
  right: 20%;
  animation-delay: .6s;
}

.float-item:nth-child(5) {
  top: 72%;
  right: 8%;
  animation-delay: 1.2s;
}

.float-item:nth-child(6) {
  top: 12%;
  right: 4%;
  animation-delay: 1.8s;
}

@keyframes float3d {

  0%,
  100% {
    transform: translateY(0) rotateX(0) rotateY(0);
  }

  50% {
    transform: translateY(-30px) rotateX(10deg) rotateY(10deg);
  }
}

.icon-3d {
  font-size: 4rem;
  color: var(--accent-blue);
  opacity: 0.15;
  filter: blur(2px);
}

/* Headings */
.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp .8s ease, gradientShift 5s ease infinite;
  background-size: 200% auto;

  position: relative;
  z-index: 4;
  transform: translateZ(0);
  contain: paint;
  -webkit-mask-image: -webkit-linear-gradient(#000, #000);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--sub-dark);
  margin-bottom: 2rem;
  animation: fadeInUp .8s ease .2s backwards;
  position: relative;
  z-index: 4;
}

body.light-mode .hero-subtitle {
  color: var(--sub-light);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CTA buttons group */
.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp .8s ease .4s backwards;
  position: relative;
  z-index: 4;
}

/* ===========================
   FEATURES
=========================== */
.features {
  padding: 6rem 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--sub-dark);
  font-size: 1.2rem;
  margin-bottom: 4rem;
}

body.light-mode .section-subtitle {
  color: var(--sub-light);
}

.feature-card {
  background: var(--card-bg-dark);
  border: 1px solid var(--card-border-dark);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all .5s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
  backdrop-filter: blur(20px);
  cursor: pointer;
}

body.light-mode .feature-card {
  background: var(--card-bg-light);
  border: 1px solid var(--card-border-light);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, .1), rgba(139, 92, 246, .1));
  opacity: 0;
  transition: opacity .5s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  border-color: var(--accent-blue);
  z-index: 10;
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all .5s ease;
}

.feature-card:hover .feature-icon {
  transform: rotateY(360deg) scale(1.1);
}

.feature-icon i {
  font-size: 2.5rem;
  color: #fff;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

body.light-mode .feature-title {
  color: var(--text-light);
}

.feature-description {
  color: var(--sub-dark);
  line-height: 1.7;
}

.feature-card:hover .feature-description {
  color: var(--text-dark);
}

body.light-mode .feature-description {
  color: var(--sub-light);
}

body.light-mode .feature-card:hover .feature-description {
  color: var(--text-light);
}

/* ===========================
   STATS
=========================== */
.stats {
  padding: 6rem 0;
  background: var(--card-bg-dark);
  border-top: 1px solid var(--card-border-dark);
  border-bottom: 1px solid var(--card-border-dark);
}

body.light-mode .stats {
  background: var(--card-bg-light);
  border-top: 1px solid var(--card-border-light);
  border-bottom: 1px solid var(--card-border-light);
}

.stat-card {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .5rem;
}

.stat-label {
  color: var(--sub-dark);
  font-size: 1.1rem;
  font-weight: 600;
}

body.light-mode .stat-label {
  color: var(--sub-light);
}

/* ===========================
   DOWNLOAD APP
=========================== */
.download-section {
  padding: 6rem 0;
}

.store-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.store-btn {
  min-width: 260px;
}

/* ===========================
   CONTACT (no form) — 2x2 grid, long text wraps
=========================== */
.contact {
  padding: 6rem 0;
}

.contact-grid {
  align-items: stretch;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  background: var(--card-bg-dark);
  border: 1px solid var(--card-border-dark);
  border-radius: 18px;
  padding: 1.1rem 1.25rem;
  height: 100%;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  backdrop-filter: blur(14px);
}

body.light-mode .contact-card {
  background: var(--card-bg-light);
  border: 1px solid var(--card-border-light);
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  z-index: -1;
  background: conic-gradient(from 210deg, rgba(59, 130, 246, .55), rgba(139, 92, 246, .55), rgba(236, 72, 153, .45), rgba(59, 130, 246, .55));
  filter: blur(22px);
  opacity: 0;
  transition: opacity .25s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .28);
}

.contact-card:hover::before {
  opacity: .28;
}

.contact-icon {
  flex: 0 0 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(59, 130, 246, .35);
}

.contact-icon i {
  font-size: 1.35rem;
}

.contact-content {
  flex: 1 1 auto;
  min-width: 0;
}

.contact-label {
  font-weight: 700;
  letter-spacing: .2px;
}

/* IMPORTANT: Allow full visibility (no ellipsis; wrap long values) */
.contact-value {
  color: var(--sub-dark);
  overflow: visible;
  white-space: normal;
  word-break: break-word;
  /* legacy */
  overflow-wrap: anywhere;
  /* modern, ensures break for long emails/URLs */
  max-width: 100%;
}

body.light-mode .contact-value {
  color: var(--sub-light);
}

.contact-arrow {
  font-size: 1.5rem;
  opacity: .8;
  transform: translateX(-4px);
  transition: transform .2s ease;
}

.contact-card:hover .contact-arrow {
  transform: translateX(2px);
}

/* ===========================
   CTA
=========================== */
.cta-section {
  padding: 8rem 0;
  text-align: center;
}

.cta-box {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border-radius: 30px;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, .1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0)
  }

  to {
    transform: rotate(360deg)
  }
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta-box p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.cta-box .btn-primary-custom {
  background: #fff;
  color: var(--accent-blue);
  position: relative;
  z-index: 1;
}

.cta-box .btn-primary-custom:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 255, 255, .3);
}

/* Animations shared */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.05)
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-50px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

.navbar-brand {
  animation: slideIn .5s ease;
}

.nav-link {
  animation: slideIn .5s ease;
}

.nav-link:nth-child(1) {
  animation-delay: .1s
}

.nav-link:nth-child(2) {
  animation-delay: .2s
}

.nav-link:nth-child(3) {
  animation-delay: .3s
}

/* Responsive */
@media (max-width:768px) {
  .hero {
    padding: 4rem 0;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn-primary-custom,
  .btn-secondary-custom {
    width: 100%;
  }

  .floating-3d {
    display: none;
  }

  .feature-card {
    margin-bottom: 2rem;
  }
}

/* Stats tweaks */
.stats .row {
  row-gap: 1rem;
}

.stats .row>[class*="col-"] {
  display: flex;
}

.stats .stat-card {
  width: 100%;
  height: 100%;
}

.stat-number {
  font-size: clamp(1.8rem, 7.5vw, 3.5rem);
  line-height: 1.1;
  white-space: nowrap;
}

.stat-label {
  font-size: clamp(0.95rem, 3.5vw, 1.1rem);
}

@media (max-width: 768px) {
  .stat-card {
    padding: 1.25rem;
  }
}

@media (max-width: 420px) {
  .stats .row>[class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-number {
    font-size: clamp(1.6rem, 9.5vw, 2.2rem);
  }
}

/* Fit long French hero title */
.hero-title {
  overflow-wrap: anywhere;
  word-break: normal;
  -webkit-hyphens: auto;
  hyphens: auto;
}

html[lang="fr"] .hero-title {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
}

@media (max-width: 991.98px) {
  html[lang="fr"] .hero-title {
    font-size: clamp(1.8rem, 5.6vw, 2.8rem);
  }
}

@media (max-width: 575.98px) {
  html[lang="fr"] .hero-title {
    font-size: clamp(1.6rem, 7.4vw, 2.15rem);
  }
}
