/* ============================================
   REFONTE LANDING - SXM SUCCESS TRAINING
   Date: 2025-12-19
   Palette: #0E1116 (fond), #F9FAFB (blanc), #6B7280/#9CA3AF (gris), #f47c61 (accent corail)
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #0E1116;
  color: #F9FAFB;
  line-height: 1.7;
  font-size: 17px;
}

img, svg {
  max-width: 100%;
  height: auto;
}

a {
  color: #f47c61;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
a:hover {
  opacity: 0.85;
}

/* --- CONTAINER --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- SECTION BASE --- */
section {
  padding: 80px 0;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: #F9FAFB;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #F9FAFB;
  text-align: center;
  margin-bottom: 3rem;
}

h3 {
  font-size: 1.15rem;
  color: #F9FAFB;
}

p {
  color: #9CA3AF;
  margin: 0 0 1rem 0;
}

.section-label {
  display: block;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #f47c61;
  margin-bottom: 1rem;
  text-align: center;
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 120px 0 80px;
  background: 
    linear-gradient(180deg, rgba(14,17,22,0.7) 0%, rgba(14,17,22,0.95) 100%),
    url('../img/sxm-map-bg.png') center top / contain no-repeat;
}

.hero-content {
  max-width: 800px;
}

.hero-logo {
  height: 100px;
  width: auto;
  margin-bottom: 2rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #9CA3AF;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: #f47c61;
  color: #fff;
}
.btn-primary:hover {
  background-color: #e45f48;
  transform: translateY(-2px);
  opacity: 1;
}

.btn-secondary {
  background-color: transparent;
  color: #F9FAFB;
  border: 1px solid #6B7280;
}
.btn-secondary:hover {
  border-color: #F9FAFB;
  opacity: 1;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* --- PROOF SECTION --- */
.proof {
  background-color: #111827;
  padding: 60px 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 2rem;
}

.proof-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.proof-check {
  color: #f47c61;
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.proof-text {
  font-size: 0.95rem;
  color: #F9FAFB;
  font-weight: 500;
}

.proof-client {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(107, 114, 128, 0.3);
  color: #6B7280;
  font-size: 0.9rem;
}

.proof-client a {
  color: #F9FAFB;
  font-weight: 500;
}

/* --- SERVICES SECTION --- */
.services {
  padding: 100px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 124, 97, 0.3);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: #f47c61;
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  flex-grow: 1;
}

.service-card li {
  font-size: 0.9rem;
  color: #9CA3AF;
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.service-card li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: #6B7280;
}

.service-link {
  font-size: 0.9rem;
  color: #f47c61;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


.service-card .btn {
  margin-top: auto;
  align-self: flex-start;
}
.service-link:hover {
  text-decoration: underline;
}

/* --- METHOD SECTION --- */
.method {
  background: linear-gradient(180deg, #0E1116 0%, #111827 100%);
  padding: 100px 0;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
  max-width: 900px;
  margin: 0 auto;
}

.method-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.method-number {
  width: 36px;
  height: 36px;
  background-color: #f47c61;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.method-content h3 {
  margin-bottom: 0.5rem;
}

.method-content p {
  font-size: 0.9rem;
  margin: 0;
}

/* --- TARGET SECTION (POUR QUI) --- */
.target {
  padding: 100px 0;
}

.target-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.target-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.target-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 1rem;
  color: #F9FAFB;
  border-bottom: 1px solid rgba(107, 114, 128, 0.2);
}

.target-list li:last-child {
  border-bottom: none;
}

.target-check {
  color: #f47c61;
  font-size: 1.1rem;
}

/* --- ANCHOR DOM SECTION --- */
.anchor-dom {
  background-color: #111827;
  padding: 60px 0;
}

.anchor-dom-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.anchor-dom p {
  font-size: 1.1rem;
  color: #F9FAFB;
  line-height: 1.8;
}

.anchor-dom strong {
  color: #f47c61;
}

/* --- CTA FINAL --- */
.cta-final {
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.cta-final::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: url('../img/vagues.png') center bottom / cover no-repeat;
  opacity: 0.6;
  pointer-events: none;
}

.cta-final .container {
  position: relative;
  z-index: 1;
}

.cta-final h2 {
  margin-bottom: 2rem;
}

/* --- FOOTER --- */
.site-footer {
  background-color: #0a0c0f;
  padding: 40px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #6B7280;
}

.footer-links {
  margin-top: 1rem;
}

.footer-links a {
  color: #9CA3AF;
  margin: 0 12px;
}

.footer-links a:hover {
  color: #F9FAFB;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .proof-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }
  
  .hero-logo {
    height: 80px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .method-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .target-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
}

/* --- ACCESSIBILITY --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Focus visible */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px dashed #f47c61;
  outline-offset: 3px;
}

/* --- PROMO CARDS (DeepFinder, Pulse) --- */
.promo-card {
  padding: 60px 0;
  background: linear-gradient(180deg, rgba(244,124,97,0.08) 0%, rgba(14,17,22,1) 100%);
}

.promo-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.promo-badge {
  display: inline-block;
  background-color: #f47c61;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.promo-icon {
  margin-bottom: 1.5rem;
}

.promo-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #F9FAFB;
}

.promo-content p {
  font-size: 1rem;
  color: #9CA3AF;
  margin-bottom: 2rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* Pulse promo specific */
.promo-pulse {
  background: linear-gradient(180deg, #111827 0%, #0E1116 100%);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.promo-pulse .promo-logo {
  height: 80px;
  width: auto;
  margin-bottom: 1.5rem;
}

.promo-pulse h3 {
  color: #F9FAFB;
}

/* --- HEADER FIXE --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(14, 17, 22, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-logo-link {
  display: flex;
  align-items: center;
}

.header-logo {
  height: 40px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  color: #9CA3AF;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: #F9FAFB;
  opacity: 1;
}

/* --- BOUTON WHATSAPP --- */
.btn-whatsapp {
  background-color: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  opacity: 1;
}

.btn-whatsapp svg {
  flex-shrink: 0;
}

/* --- HERO ajustement pour header fixe --- */
.hero {
  padding-top: 140px;
}

/* --- WAVE BACKGROUND WRAPPER --- */
.wave-background-wrapper {
  position: relative;
  background: 
    url('../img/vagues.png') center bottom / 100% auto no-repeat,
    linear-gradient(180deg, #0E1116 0%, #111827 30%, #0E1116 100%);
  background-attachment: scroll;
}

.wave-background-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, #0E1116 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.wave-background-wrapper > section {
  position: relative;
  z-index: 2;
}

/* Override backgrounds inside wrapper */
.wave-background-wrapper .target {
  background: transparent;
}

.wave-background-wrapper .promo-pulse {
  background: transparent;
  border-top: none;
}

.wave-background-wrapper .cta-final {
  background: transparent;
  padding-bottom: 150px;
}

.wave-background-wrapper .cta-final::before {
  display: none;
}

/* --- RESPONSIVE HEADER --- */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  
  .header-inner {
    justify-content: space-between;
  }
  
  .btn-whatsapp span {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-logo {
    height: 32px;
  }
  
  .btn-whatsapp {
    padding: 10px 14px;
  }
}

/* --- HERO PROOF (inline) --- */
.hero-proof {
  font-size: 0.9rem;
  color: #9CA3AF;
  margin-bottom: 1.5rem;
}

.hero-proof a {
  color: #f47c61;
}

/* --- PROMO COMPACT (DeepFinder inline) --- */
.promo-compact {
  padding: 20px 0;
  background: linear-gradient(90deg, rgba(244,124,97,0.1) 0%, rgba(14,17,22,1) 100%);
}

.promo-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.promo-inline .promo-badge {
  margin-bottom: 0;
}

.promo-inline .promo-text {
  color: #F9FAFB;
  font-size: 0.95rem;
}

.promo-inline .promo-text strong {
  color: #f47c61;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.85rem;
}

/* --- PROMO VIEWBOX (Pulse sur vague) --- */
.promo-viewbox {
  background: rgba(14, 17, 22, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.promo-viewbox .promo-logo {
  height: 60px;
  margin-bottom: 1rem;
}

.promo-viewbox h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #F9FAFB;
}

.promo-viewbox p {
  font-size: 0.9rem;
  color: #9CA3AF;
  margin-bottom: 1.5rem;
}

/* --- WAVE WRAPPER amélioré --- */
.wave-background-wrapper {
  position: relative;
  background: 
    url('../img/vagues.png') center bottom / cover no-repeat,
    linear-gradient(180deg, #0E1116 0%, #111827 50%, #0E1116 100%);
  min-height: 500px;
  padding: 60px 0 100px;
}

.wave-background-wrapper .promo-pulse {
  background: transparent;
  padding: 40px 0;
}

.wave-background-wrapper .cta-final {
  background: transparent;
  padding: 60px 0 80px;
}

.wave-background-wrapper .cta-final::before {
  display: none;
}

/* --- SERVICE CARDS sans lien mort --- */
.service-card .service-link {
  display: none;
}

/* --- RESPONSIVE promo inline --- */
@media (max-width: 600px) {
  .promo-inline {
    flex-direction: column;
    text-align: center;
  }
  
  .promo-viewbox {
    padding: 1.5rem;
    margin: 0 16px;
  }
}

/* --- SERVICE CARDS AS LINKS --- */
a.service-card {
  text-decoration: none;
  display: block;
}

a.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
}

.service-card .service-link {
  display: block;
  margin-top: 1rem;
  color: #f47c61;
  font-size: 0.9rem;
  font-weight: 500;
}

a.service-card:hover .service-link {
  text-decoration: underline;
}
