/* =========================================
   HERO E-COMMERCE — IMAGE FOND DROITE
   ========================================= */

.ec-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg,  var(--primary) 0%, #137CB4 100%);
}

/* --- IMAGE DE FOND DROITE --- */
.ec-hero-bg-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=compress&cs=tinysrgb&fit=crop&w=1400&h=1600');
  background-size: cover;
  background-position: center;
  opacity: 0.95;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 100%);
}

/* --- Effet de sol (glow en bas) --- */
.ec-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20vh;
  background: linear-gradient(to top, rgba(15, 35, 65, 0.4), transparent);
  z-index: 2;
  pointer-events: none;
}

.ec-hero .ec-hero-inner {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: calc(var(--pw-header-h, 92px) + 40px);
  padding-bottom: 60px;
}

.ec-hero .ec-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  max-width: 650px;
  padding-left: 0;
}

.ec-hero .ec-hero-content h1 {
  color: var(--white);
  font-size: clamp(40px, 3.6vw, 64px);
  line-height: 1.12;
  letter-spacing: -2px;
  font-weight: 800;
  max-width: 620px;
}

.ec-hero .ec-hero-content p {
  max-width: 600px;
  margin-top: 40px;
  color: var(--white);
  font-size: clamp(16px, 1.05vw, 19px);
  line-height: 1.5;
  font-weight: 500;
}

.ec-hero .ec-hero-actions {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* BOUTONS */
.ec-btn {
  height: 62px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.ec-btn:hover {
  transform: translateY(-3px);
}

.ec-btn-light {
  min-width: 260px;
  background: var(--white);
  color: var(--primary);
}

.ec-btn-light:hover {
  color: var(--secondary);
}

.ec-btn-outline {
  min-width: 240px;
  border: 2px solid var(--white);
  color: var(--white);
}

.ec-btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

/* PARTICLES */
.ec-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.ec-dot {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: var(--white);
  opacity: 0.65;
  animation-name: ecFloat;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes ecFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%       { transform: translate3d(var(--move-x), var(--move-y), 0); }
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1100px) {
  .ec-hero .ec-hero-bg-image {
    width: 100%;
    height: 100%;
    opacity: 0.4;
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  }

  .ec-hero .ec-hero-inner {
    justify-content: flex-start;
    padding-top: calc(var(--pw-header-h, 88px) + 32px);
    padding-bottom: 50px;
  }

  .ec-hero .ec-hero-content {
    width: 100%;
    max-width: 560px;
    align-items: flex-start;
    margin: 0;
  }

  .ec-hero .ec-hero-content h1 {
    font-size: clamp(32px, 5vw, 48px);
    max-width: 100%;
    letter-spacing: -1.5px;
  }

  .ec-hero .ec-hero-content p {
    margin-top: 24px;
    max-width: 100%;
    font-size: clamp(15px, 2vw, 18px);
  }

  .ec-hero .ec-hero-actions {
    margin-top: 32px;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 580px) {
  .ec-hero .ec-hero-inner {
    padding-top: calc(var(--pw-header-h, 88px) + 24px);
    padding-bottom: 40px;
  }

  .ec-hero .ec-hero-content h1 {
    font-size: clamp(28px, 8vw, 40px);
    letter-spacing: -1px;
  }

  .ec-hero .ec-hero-content p {
    margin-top: 20px;
    font-size: 15px;
  }

  .ec-hero .ec-hero-actions {
    margin-top: 28px;
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .ec-hero .ec-btn {
    width: 100%;
    min-width: 0;
    height: 54px;
    font-size: 15px;
  }
}

@media (max-width: 380px) {
  .ec-hero .ec-hero-inner {
    padding-top: calc(var(--pw-header-h, 88px) + 20px);
  }

  .ec-hero .ec-hero-content h1 {
    font-size: 26px;
  }
}



















































/* =========================================
   SECTION POURQUOI EXTERNALISER E-COMMERCE
   ========================================= */

.ec-why {
  padding: 80px 0 90px;
  background: var(--white);
}

.ec-why-title {
  text-align: center;
  font-size: clamp(30px, 2.8vw, 44px);
  font-weight: 800;
  color: #0F2341;
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-bottom: 14px;
}

.ec-why-subtitle {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 55px;
  font-size: clamp(15px, 1.1vw, 17px);
  color: #5b6b7e;
  line-height: 1.55;
  font-weight: 500;
}

/* GRILLE 3 cartes */

.ec-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 1200px;
  margin: 0 auto;
}

/* CARTE */

.ec-why-card {
  position: relative;
  padding: 38px 36px 34px;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  background: #F8FAFC;
}

/* Couleurs de fond par carte */

.ec-why-1 { background: linear-gradient(135deg, #FFF8F0 0%, #FFF1E6 100%); }
.ec-why-2 { background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%); }
.ec-why-3 { background: linear-gradient(135deg, #F1F5FF 0%, #E0E7FF 100%); }

/* Icône décorative */

.ec-why-icon {
  position: absolute;
  right: 25px;
  bottom: 20px;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.12;
  pointer-events: none;
}

.ec-why-icon i {
  font-size: 90px;
  line-height: 1;
}

/* Couleur icône par carte */

.ec-why-1 .ec-why-icon { color: var(--tertiary); }
.ec-why-2 .ec-why-icon { color: var(--primary); }
.ec-why-3 .ec-why-icon { color: var(--secondary); }

/* Tag */

.ec-why-tag {
  display: inline-block;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  color: #0F2341;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  align-self: flex-start;
}

/* Titre */

.ec-why-card h3 {
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 800;
  color: #0F2341;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 14px;
  max-width: 340px;
}

/* Description */

.ec-why-card p {
  font-size: 15px;
  color: #475569;
  text-align: justify;
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 24px;
  max-width: 400px;
  flex: 1;
}

/* Lien */

.ec-why-link {
  font-size: 15px;
  font-weight: 700;
  color: #0F2341;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ec-why-link:hover {
  color: var(--primary);
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .ec-why-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .ec-why-card {
    min-height: auto;
    padding: 32px 28px 30px;
  }
}

@media (max-width: 768px) {
  .ec-why {
    padding: 60px 0 70px;
  }
}






































/* =========================================
   TÉMOIGNAGES E-COMMERCE — GLASSMORPHISM
   ========================================= */

.ec-testi {
  padding: 120px 0;
  background: #f8fbff;
  font-family: 'Gevora Regular', 'Poppins', sans-serif;
  overflow: hidden;
}

.ec-testi-head {
  text-align: center;
  margin-bottom: 70px;
}

.ec-testi-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--tertiary);
  margin-bottom: 14px;
}

.ec-testi-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  color: #0F2341;
  margin: 0 0 16px;
  line-height: 1.1;
}

.ec-testi-subtitle {
  font-size: 18px;
  color: #607089;
  margin: 0;
}

/* Grille 3 colonnes */
.ec-testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  perspective: 1000px;
}

/* Carte Glass */
.ec-testi-card {
  position: relative;
  height: 380px;
  border-radius: 28px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  cursor: pointer;
}

/* Fond dégradé coloré (derrière) */
.ec-testi-card-bg {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 1;
  opacity: 0.6;
  filter: blur(60px);
  transition: opacity 0.3s ease;
}

.ec-testi-bg--gray {
  background: radial-gradient(circle at 30% 30%, #e2e8f0 0%, #94a3b8 50%, #475569 100%);
}

.ec-testi-bg--warm {
  background: radial-gradient(circle at 30% 30%, #fed7aa 0%, #f08020 40%, #dc2626 100%);
  opacity: 0.5;
}

.ec-testi-bg--blue {
  background: radial-gradient(circle at 30% 30%, #bae6fd 0%, #137CB4 40%, #1c6dd0 100%);
  opacity: 0.5;
}

/* Verre (contenu) */
.ec-testi-card-glass {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 28px;
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.02),
    0 2px 4px -1px rgba(0, 0, 0, 0.02),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

/* Effet de brillance qui suit la souris */
.ec-testi-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
    rgba(255, 255, 255, 0.4) 0%, 
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  border-radius: 28px;
}

.ec-testi-card:hover .ec-testi-shine {
  opacity: 1;
}

/* Contenu texte */
.ec-testi-quote {
  font-size: 17px;
  line-height: 1.7;
  text-align: justify;
  color: #0F2341;
  margin: 0;
  font-weight: 500;
  quotes: none;
}

/* Footer */
.ec-testi-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 30px;
}

.ec-testi-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ec-testi-info strong {
  font-size: 18px;
  font-weight: 700;
  color: #0F2341;
}

.ec-testi-info span {
  font-size: 15px;
  color: #607089;
}

/* Avatar */
.ec-testi-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.ec-testi-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mention NDA */
.ec-testi-nda {
  text-align: center;
  margin-top: 50px;
  font-size: 14px;
  color: #94a3b8;
  font-style: italic;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .ec-testi-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    gap: 24px;
  }
  
  .ec-testi-card {
    height: auto;
    min-height: 320px;
  }
}

@media (max-width: 768px) {
  .ec-testi {
    padding: 80px 0;
  }
  
  .ec-testi-card-glass {
    padding: 32px 24px 24px;
  }
  
  .ec-testi-quote {
    font-size: 16px;
  }
}