/* ── VARIABLES SUBLIMÉES (JAUNE & DEEP ANTHRACITE) ── */
:root {
  --cream: #FAF8F2;          /* Fond doux */
  --warm-white: #FFFFFF;     /* Blanc pur éclatant */
  --primary-yellow: #FFD23F; /* Jaune vif chaleureux dominant */
  --yellow-hover: #E5BD34;   /* Jaune au survol */
  --yellow-light: #FFF8E1;   /* Fond jaune très clair pastel */
  --sand: #EAE3D2;           /* Bordures fines */
  --taupe: #B5A890;          /* Tons neutres */
  --deep: #1A1A18;           /* Anthracite très sombre pour le contraste pur */
  --mid: #54514A;            /* Texte secondaire équilibré */
  --light-text: #8C877E;     /* Petits labels */
  
  /* Couleurs vives spécifiques et harmonieuses pour les cartes de Services */
  --service-vitrine: #FF5A5F;   /* Rouge Corail Éclatant */
  --service-ecom: #2EC4B6;      /* Turquoise Dynamique */
  --service-dashboard: #7209B7; /* Violet Électrique */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--deep);
  overflow-x: hidden;
}

/* ── NAV RESPONSIVE ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: 20px 60px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(250,248,242,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(234,227,210,0.4);
}
.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem; font-weight: 600;
  color: var(--deep);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--primary-yellow); }
.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.88rem; font-weight: 500;
  color: var(--mid); text-decoration: none;
  letter-spacing: 0.04em; transition: color 0.25s;
}
.nav-links a:hover { color: var(--deep); }
.nav-cta {
  background: var(--deep) !important;
  color: var(--warm-white) !important;
  padding: 10px 24px;
  border-radius: 100px;
  transition: all 0.25s !important;
  cursor: pointer;
}
.nav-cta:hover { background: var(--primary-yellow) !important; color: var(--deep) !important; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  padding: 140px 60px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--yellow-light) 0%, transparent 70%);
  opacity: 0.8;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow-light); color: #B28900;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 100px;
  margin-bottom: 28px;
  border: 1px solid rgba(255,210,63,0.3);
  animation: fadeUp 0.8s ease both;
}
.hero-badge::before { content: '●'; color: var(--primary-yellow); font-size: 0.6rem; }
.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 1.05; font-weight: 600;
  letter-spacing: -0.03em; margin-bottom: 28px;
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero h1 em { font-style: italic; font-weight: 300; color: var(--deep); border-bottom: 4px solid var(--primary-yellow); }
.hero-desc {
  font-size: 1.05rem; color: var(--mid);
  line-height: 1.75; max-width: 460px;
  margin-bottom: 44px;
  animation: fadeUp 0.8s 0.2s ease both;
}
.hero-buttons {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s ease both;
}
.btn-primary {
  background: var(--primary-yellow); color: var(--deep);
  padding: 16px 36px; border-radius: 100px;
  font-size: 0.92rem; font-weight: 600;
  text-decoration: none; border: 2px solid var(--primary-yellow);
  transition: all 0.3s; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover { background: var(--deep); border-color: var(--deep); color: var(--warm-white); }
.btn-secondary {
  background: transparent; color: var(--deep);
  padding: 16px 36px; border-radius: 100px;
  font-size: 0.92rem; font-weight: 500;
  text-decoration: none; border: 2px solid var(--taupe);
  transition: all 0.3s;
}
.btn-secondary:hover { border-color: var(--deep); background: rgba(0,0,0,0.02); }

/* Dashboard preview hero */
.hero-visual { position: relative; animation: fadeUp 0.8s 0.15s ease both; }
.dashboard-preview {
  background: var(--warm-white);
  border-radius: 20px; padding: 24px;
  box-shadow: 0 30px 80px rgba(26,26,24,0.08), 0 2px 4px rgba(26,26,24,0.04);
  border: 1px solid var(--sand);
}
.dash-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--sand);
}
.dash-dots { display: flex; gap: 6px; }
.dash-dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-dot:nth-child(1) { background: #FF5A5F; }
.dash-dot:nth-child(2) { background: var(--primary-yellow); }
.dash-dot:nth-child(3) { background: #2EC4B6; }
.dash-title { font-size: 0.8rem; color: var(--light-text); margin-left: 8px; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.dash-stat { background: var(--cream); border-radius: 12px; padding: 16px; border: 1px solid var(--sand); }
.dash-stat-label { font-size: 0.7rem; color: var(--light-text); margin-bottom: 6px; letter-spacing: 0.04em; }
.dash-stat-value { font-family: 'Fraunces', serif; font-size: 1.4rem; color: var(--deep); font-weight: 600; }
.dash-stat-change { font-size: 0.68rem; color: #2EC4B6; margin-top: 2px; font-weight: 600; }
.dash-chart {
  background: var(--cream); border-radius: 12px; padding: 16px;
  border: 1px solid var(--sand); height: 100px;
  display: flex; align-items: flex-end; gap: 6px; overflow: hidden;
}
.bar {
  flex: 1; border-radius: 4px 4px 0 0;
  background: var(--sand); transition: background 0.3s;
  animation: barGrow 1s ease both;
}
.bar:nth-child(4) { background: var(--primary-yellow); }
.bar:hover { background: var(--deep) !important; }

@keyframes barGrow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); }
}

/* Floating cards */
.floating-card {
  position: absolute;
  background: white; border-radius: 14px; padding: 14px 18px;
  box-shadow: 0 12px 40px rgba(26,26,24,0.12);
  border: 1px solid var(--sand);
  font-size: 0.8rem;
  display: flex; align-items: center; gap: 12px;
  animation: float 4s ease-in-out infinite;
}
.floating-card.c1 { bottom: -20px; left: -30px; animation-delay: 0s; }
.floating-card.c2 { top: 30px; right: -30px; animation-delay: 2s; }
.card-icon { font-size: 1.6rem; color: var(--primary-yellow); line-height: 1; }
.card-text { color: var(--mid); }
.card-text strong { color: var(--deep); display: block; margin-bottom: 2px; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* ── SECTIONS ── */
section { padding: 100px 60px; }
.section-label {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #B28900; margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ''; display: block; width: 30px; height: 2px; background: var(--primary-yellow); }
.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 600; letter-spacing: -0.03em;
  line-height: 1.15; margin-bottom: 60px; max-width: 560px;
}
.section-title em { font-style: italic; font-weight: 300; color: var(--mid); border-bottom: 3px solid var(--primary-yellow); }

/* ── SERVICES ── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card {
  background: var(--warm-white); border-radius: 24px;
  padding: 44px 38px; border: 1px solid var(--sand);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px; transition: background 0.35s;
}
.service-card.vitrine::before { background: var(--service-vitrine); }
.service-card.ecom::before { background: var(--service-ecom); }
.service-card.dashboard::before { background: var(--service-dashboard); }

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px rgba(26,26,24,0.12);
}
.service-card.vitrine:hover { border-color: var(--service-vitrine); }
.service-card.ecom:hover { border-color: var(--service-ecom); }
.service-card.dashboard:hover { border-color: var(--service-dashboard); }

.service-icon {
  width: 72px; height: 72px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; margin-bottom: 32px;
  transition: transform 0.3s ease;
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(3deg); }

.vitrine .service-icon { background: rgba(255,90,95,0.12); color: var(--service-vitrine); }
.ecom .service-icon { background: rgba(46,196,182,0.12); color: var(--service-ecom); }
.dashboard .service-icon { background: rgba(114,9,183,0.12); color: var(--service-dashboard); }

.service-title { font-family: 'Fraunces', serif; font-size: 1.45rem; font-weight: 600; margin-bottom: 14px; letter-spacing: -0.02em; }
.service-desc { font-size: 0.92rem; color: var(--mid); line-height: 1.7; margin-bottom: 24px; }
.service-features { list-style: none; }
/* CORRIGÉ : Remplacement du hexadécimal rompu rgba(23A,...) par une valeur RGB propre */
.service-features li { font-size: 0.85rem; color: var(--mid); padding: 8px 0; border-top: 1px solid rgba(234, 227, 210, 0.5); display: flex; align-items: center; gap: 8px; }
.service-features li::before { content: '✓'; font-weight: bold; }
.vitrine .service-features li::before { color: var(--service-vitrine); }
.ecom .service-features li::before { color: var(--service-ecom); }
.dashboard .service-features li::before { color: var(--service-dashboard); }

.service-price { margin-top: 32px; font-family: 'Fraunces', serif; font-size: 1.2rem; color: var(--deep); font-weight: 600; }
.service-price span { font-family: 'DM Sans', sans-serif; font-size: 0.8rem; color: var(--light-text); font-weight: 400; }

/* ── DASHBOARD SHOWCASE ── */
.showcase-section { background: var(--deep); margin: 0; padding: 100px 60px; color: var(--cream); }
.showcase-section .section-label { color: var(--primary-yellow); }
.showcase-section .section-label::before { background: var(--primary-yellow); }
.showcase-section .section-title { color: var(--warm-white); }
.showcase-section .section-title em { color: var(--primary-yellow); border-bottom: none; }
.big-dashboard { background: var(--warm-white); border-radius: 24px; padding: 32px; margin-top: 50px; box-shadow: 0 40px 100px rgba(0,0,0,0.3); color: var(--deep); }

.db-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--sand); }
.db-nav { display: flex; gap: 6px; }
.db-nav-item { padding: 8px 16px; border-radius: 8px; font-size: 0.8rem; color: var(--mid); cursor: pointer; }
.db-nav-item.active { background: var(--primary-yellow); color: var(--deep); font-weight: 600; }
.db-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.db-main, .db-sidebar { display: flex; flex-direction: column; gap: 20px; }
.db-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.db-kpi { background: var(--cream); border-radius: 14px; padding: 18px; border: 1px solid var(--sand); }
.db-kpi-val { font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 600; }

/* ── PROCESS ── */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.process-grid::before { content: ''; position: absolute; top: 28px; left: 10%; right: 10%; height: 2px; background: var(--sand); z-index: 0; }
.process-step { padding: 0; position: relative; z-index: 1; }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--warm-white); border: 2px solid var(--primary-yellow); display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-size: 1.2rem; color: var(--deep); font-weight: 600; margin-bottom: 20px; }
.process-step:first-child .step-num { background: var(--primary-yellow); color: var(--deep); }
.step-title { font-family: 'Fraunces', serif; font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.step-desc { font-size: 0.88rem; color: var(--mid); line-height: 1.65; }

/* ── TESTIMONIALS ── */
.testimonials { background: var(--warm-white); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card { background: var(--cream); border-radius: 20px; padding: 32px; border: 1px solid var(--sand); }
.stars { color: var(--primary-yellow); font-size: 0.95rem; margin-bottom: 16px; }

/* ── CTA BOTTOM ── */
.cta-section { background: linear-gradient(135deg, var(--yellow-light) 0%, var(--cream) 100%); text-align: center; padding: 120px 60px; position: relative; overflow: hidden; }
.cta-title { font-family: 'Fraunces', serif; font-size: clamp(2.5rem, 4vw, 4rem); font-weight: 600; margin-bottom: 20px; }
.cta-title em { font-style: italic; font-weight: 300; color: var(--deep); border-bottom: 4px solid var(--primary-yellow); }
.cta-sub { font-size: 1rem; color: var(--mid); margin-bottom: 48px; }
.cta-form { display: flex; gap: 12px; max-width: 460px; margin: 0 auto; background: white; padding: 8px; border-radius: 100px; border: 1px solid var(--sand); box-shadow: 0 10px 30px rgba(0,0,0,0.04); }
.cta-form input { flex: 1; border: none; outline: none; font-size: 0.95rem; background: transparent; padding: 8px 16px; }
.cta-form button { background: var(--deep); color: white; border: none; padding: 14px 28px; border-radius: 100px; font-weight: 500; cursor: pointer; transition: all 0.25s; white-space: nowrap; }
.cta-form button:hover { background: var(--primary-yellow); color: var(--deep); }
.cta-form button:disabled { background: var(--taupe); cursor: not-allowed; }

/* ── FOOTER STRUCTURÉ ── */
#footer {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  padding: 60px;
  background: var(--warm-white);
  border-top: 1px solid var(--sand);
}
.footer-brand p {
  max-width: 320px;
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.6;
  margin-top: 16px;
}
.footer-col-title {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  list-style: none;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.25s ease;
  display: inline-block;
}
.footer-links a:hover {
  color: var(--deep);
  text-decoration: underline;
}
.footer-bottom { 
  padding: 20px 60px; 
  text-align: center; 
  font-size: 0.78rem; 
  color: var(--light-text); 
  border-top: 1px solid var(--sand); 
  background: var(--warm-white); 
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }


/* ── RESPONSIVE TABLETTE (max-width: 1024px) ── */
@media (max-width: 1024px) {
  nav { padding: 20px 30px; }
  section { padding: 80px 30px; }
  .hero { grid-template-columns: 1fr; gap: 50px; padding-top: 120px; text-align: center; }
  .hero-desc { margin: 0 auto 36px; }
  .hero-buttons { justify-content: center; }
  .hero-visual { max-width: 580px; margin: 0 auto; width: 100%; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .process-grid::before { display: none; }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-section { padding: 80px 30px; }
  .db-grid { grid-template-columns: 1fr; }
  
  #footer {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 40px 30px;
  }
}

/* ── RESPONSIVE SMARTPHONE (max-width: 767px) ── */
@media (max-width: 767px) {
  .nav-links { display: none; }
  .services-grid, .testi-grid, .process-grid { grid-template-columns: 1fr; }
  .floating-card { display: none; }
  .cta-form { border-radius: 20px; flex-direction: column; padding: 12px; }
  .cta-form input { padding: 10px; text-align: center; }
  .cta-form button { border-radius: 12px; width: 100%; }
  .db-kpis { grid-template-columns: 1fr; }
  .hero {
    padding: 10px 5px 5px 10px;
      
  }
  .hero-content {
    width: 100%;
    padding-left: 5px;
    padding-right: 5px;
      
  }
}

/* ── RESPONSIVE PETITS SMARTPHONES (max-width: 640px) ── */
@media (max-width: 640px) {
  #footer {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}


/** STYLES ANIMÉS **/

@keyframes sp-spin { to { transform: rotate(360deg); } }
.sp-open-btn {
  margin-top:10px;
  padding: 15px 30px;
  background: var(--primary-yellow);
  color: #000;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(108,99,255,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.sp-open-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(108,99,255,0.5); }
.sp-tab {
  padding: 1rem 1.5rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #888;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.sp-tab.active { color: #6c63ff; border-bottom-color: #6c63ff; }
.sp-tab:hover { color: #6c63ff; }
.sp-star { color: #f39c12; }