/* ==========================================================================
   TRANSFERWIRE - STYLE OFFICIEL (Optimisé & Responsive)
   ========================================================================== */

/* 1. VARIABLES & CONFIGURATION GLOBALE */
:root {
  --tw-primary: #00395a;
  --tw-secondary: #0067b1;
  --tw-accent: #00bfff;
  --tw-dark: #002840;
  --tw-light: #f8fafc;
  --tw-muted: #64748b;
  --tw-white: #ffffff;
  --tw-shadow: 0 4px 20px rgba(0, 57, 90, 0.08);
  --tw-shadow-hover: 0 12px 30px rgba(0, 57, 90, 0.15);
  --tw-radius: 24px;
  --tw-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. RESET & BASE */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--tw-white);
  color: #334155;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--tw-transition);
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--tw-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* 3. HERO SLIDER */
.hero-slider {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--tw-dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.5s ease, transform 8s ease;
  z-index: -3;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 31, 52, 0.95) 0%, rgba(0, 57, 90, 0.8) 50%, rgba(0, 0, 0, 0.4) 100%),
              radial-gradient(circle at 70% 30%, rgba(0, 191, 255, 0.2), transparent 40%);
  z-index: -2;
}

.hero-content {
  padding-top: 120px;
  padding-bottom: 80px;
  text-align: center;
}

.hero-title {
  color: var(--tw-white);
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0 auto 24px;
}

.hero-title span {
  color: var(--tw-accent);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 750px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

/* 4. BOUTONS */
.btn-tw-primary,
.btn-tw-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 16px 32px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--tw-transition);
  cursor: pointer;
}

.btn-tw-primary {
  background: linear-gradient(135deg, var(--tw-accent), var(--tw-secondary));
  border: 2px solid transparent;
  color: var(--tw-white);
  box-shadow: 0 8px 25px rgba(0, 191, 255, 0.3);
}

.btn-tw-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 191, 255, 0.4);
}

.btn-tw-light {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--tw-white);
  backdrop-filter: blur(10px);
}

.btn-tw-light:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* 5. STATS HERO */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-stat {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  color: var(--tw-white);
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--tw-accent);
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

/* 6. SECTIONS & TYPOGRAPHIE */
.section-eyebrow {
  color: var(--tw-secondary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.section-title {
  color: var(--tw-primary);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-text {
  color: var(--tw-muted);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  font-size: 1.05rem;
}

/* 7. TRUST BAR */
.trust-bar {
  margin-top: -60px;
  position: relative;
  z-index: 10;
  padding-bottom: 40px;
}

.trust-card {
  background: var(--tw-white);
  border-radius: var(--tw-radius);
  box-shadow: var(--tw-shadow);
  padding: 32px;
  border: 1px solid rgba(0, 57, 90, 0.05);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  height: 100%;
}

.trust-icon, .service-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.1), rgba(0, 57, 90, 0.05));
  color: var(--tw-secondary);
  font-size: 1.5rem;
}

/* 8. CARTES (Services, Articles, FAQ, etc.) */
.service-card, .article-card, .why-card, .faq-item, .step-card, .testimonial-card {
  background: var(--tw-white);
  border-radius: 20px;
  box-shadow: var(--tw-shadow);
  border: 1px solid rgba(0, 57, 90, 0.05);
  transition: var(--tw-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover, .article-card:hover, .why-card:hover, 
.faq-item:hover, .step-card:hover, .testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--tw-shadow-hover);
  border-color: rgba(0, 191, 255, 0.3);
}

.service-card, .article-card {
  padding: 32px;
}

.article-card {
  border-left: 4px solid var(--tw-accent);
}

.service-card h3, .article-card h3, .why-card h5, .faq-item h4 {
  color: var(--tw-primary);
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.service-card p, .article-card p, .why-card p, .faq-item p, .step-card p, .testimonial-card p {
  color: var(--tw-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.link-arrow {
  color: var(--tw-secondary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.link-arrow:hover {
  color: var(--tw-accent);
  gap: 10px;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 100px;
  height: 100px;
  background: rgba(0, 191, 255, 0.08);
  border-radius: 50%;
  transition: var(--tw-transition);
}

.service-card:hover::after {
  transform: scale(1.5);
}

.why-card {
  padding: 32px;
  text-align: center;
  align-items: center;
}

.why-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 20px;
}

/* 9. SECTION DÉGRADÉE & ÉTAPES */
.gradient-section {
  background: linear-gradient(135deg, rgba(0, 57, 90, 0.98), rgba(0, 103, 177, 0.95)), 
              url('/assets/images/hero-bg.png') center/cover no-repeat;
  color: var(--tw-white);
  position: relative;
  overflow: hidden;
}

.gradient-section .section-title, .gradient-section .section-eyebrow {
  color: var(--tw-white);
}

.gradient-section .section-text {
  color: rgba(255, 255, 255, 0.85);
}

.step-card {
  padding: 32px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  color: var(--tw-white);
}

.step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--tw-white);
  color: var(--tw-primary);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.step-card h3, .step-card p {
  color: var(--tw-white);
}

/* 10. FAQ */
.faq-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--tw-light) 0%, var(--tw-white) 100%);
}

.faq-item {
  padding: 24px;
  cursor: pointer;
}

.faq-item h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 0;
}

.faq-item h4::after {
  content: "+";
  font-weight: 800;
  color: var(--tw-secondary);
  font-size: 1.5rem;
  transition: var(--tw-transition);
}

.faq-item.is-open h4::after {
  transform: rotate(45deg);
  color: var(--tw-accent);
}

.faq-item p {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
  opacity: 0;
  margin-bottom: 0;
}

.faq-item.is-open p {
  max-height: 300px;
  opacity: 1;
  margin-top: 16px;
  margin-bottom: 0;
}

/* 11. CTA & TÉMOIGNAGES */
.cta-box {
  background: linear-gradient(135deg, var(--tw-primary), var(--tw-secondary));
  color: var(--tw-white);
  border-radius: 28px;
  padding: clamp(40px, 6vw, 80px);
  box-shadow: var(--tw-shadow-hover);
  overflow: hidden;
  position: relative;
  text-align: center;
}

.cta-box::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -100px;
  top: -100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.testimonial-card {
  padding: 32px;
}

.testimonial-stars {
  color: #fbbf24;
  letter-spacing: 2px;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

/* 12. SECTION PLAINTES */
.complaint-section {
  background: var(--tw-light);
  border-top: 1px solid rgba(0, 57, 90, 0.08);
  border-bottom: 1px solid rgba(0, 57, 90, 0.08);
  padding: 60px 0;
}

/* ==========================================================================
   13. RESPONSIVE DESIGN (Optimisé pour tous les appareils)
   ========================================================================== */

/* Tablettes et petits écrans d'ordinateur */
@media (max-width: 991px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-content {
    padding-top: 100px;
  }
  
  .trust-bar {
    margin-top: -40px;
  }
}

/* Téléphones standards (Portrait) */
@media (max-width: 768px) {
  .hero-slider {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .btn-tw-primary, .btn-tw-light {
    width: 100%;
    padding: 16px 24px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 16px;
  }

  .hero-stat strong {
    margin-bottom: 0;
    min-width: 60px;
  }

  .trust-card, .service-card, .article-card, .why-card, .faq-item, .testimonial-card {
    padding: 24px;
  }

  .section-title {
    font-size: 1.85rem;
  }
}

/* Petits téléphones (ex: iPhone SE, Galaxy Fold fermé) */
@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .trust-icon, .service-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    font-size: 1.25rem;
  }

  .cta-box {
    border-radius: 20px;
    padding: 32px 20px;
  }
}