/* ─── Design tokens (IXEMELIS 2026 spec) ─────────────────── */
:root {
  --color-primary-dark:     #0B2447;
  --color-primary-dark-2:    #19376D;
  --color-primary-dark-3:    #2B4A7A;
  --color-accent:            #F97316;
  --color-accent-hover:      #FB923C;
  --color-accent-light:      #FFF7ED;
  --color-white:             #FFFFFF;
  --color-bg-light:          #F8FAFC;
  --color-text:              #1E293B;
  --color-text-heading:      #0F172A;
  --color-text-muted:        #94A3B8;
  --color-card-shadow:       0 4px 6px rgba(0,0,0,0.07);
}

/* ─── Reset & base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--color-bg-light);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ─── Header ─────────────────────────────────────────────── */
.ix-header {
  position: sticky; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(11,36,71,0.08);
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  max-width: 1200px; margin: 0 auto;
  width: 100%; box-sizing: border-box;
}
.ix-wordmark {
  font-size: 18px; font-weight: 800; letter-spacing: 0.12em;
  color: var(--color-primary-dark);
  text-transform: uppercase;
}
.ix-nav { display: flex; gap: 32px; align-items: center; }
.ix-nav a {
  font-size: 14px; font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s;
}
.ix-nav a:hover { color: var(--color-primary-dark); }
.ix-cta {
  font-size: 13px; font-weight: 700;
  background: var(--color-accent); color: var(--color-white);
  border: none; border-radius: 8px;
  padding: 9px 20px;
  transition: background 0.2s;
}
.ix-cta:hover { background: var(--color-accent-hover); }

/* ─── Hero (Section 1) ───────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #0B2447 0%, #19376D 100%);
  padding: 148px 48px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(249,115,22,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--color-white); line-height: 1.15;
  max-width: 780px; margin: 0 auto 24px;
}
.hero-sub {
  font-size: 18px; color: rgba(255,255,255,0.78);
  max-width: 580px; margin: 0 auto 44px; line-height: 1.65;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-block; font-size: 15px; font-weight: 700;
  background: var(--color-accent); color: var(--color-white);
  border: none; border-radius: 8px;
  padding: 14px 32px;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
}
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); }


/* ─── Section base ───────────────────────────────────────── */
.section { padding: 80px 48px; max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 38px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 16px;
  color: var(--color-text-heading);
}
.section-desc {
  font-size: 16px; color: var(--color-text-muted); line-height: 1.65;
  max-width: 540px;
}
.section-header { margin-bottom: 48px; }

/* ─── S2: Stats bar ─────────────────────────────────────── */
.stats-bar {
  background: var(--color-white);
  border-top: 1px solid rgba(11,36,71,0.06);
  border-bottom: 1px solid rgba(11,36,71,0.06);
  padding: 40px 48px;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.stat-item {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid rgba(11,36,71,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-size: 36px; font-weight: 800; color: var(--color-primary-dark);
  line-height: 1; margin-bottom: 6px;
}
.stat-label {
  font-size: 14px; font-weight: 500; color: var(--color-text-muted);
}

/* ─── S4: Problèmes ─────────────────────────────────────── */
.problems { background: var(--color-white); }
.problems-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.problem-card {
  background: var(--color-white);
  border: 1px solid rgba(11,36,71,0.06);
  border-radius: 12px; padding: 28px;
  box-shadow: var(--color-card-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.problem-card:hover { box-shadow: 0 8px 24px rgba(11,36,71,0.10); transform: translateY(-2px); }
.problem-emoji {
  font-size: 32px; margin-bottom: 16px; line-height: 1;
}
.problem-card h3 {
  font-size: 15px; font-weight: 700; color: var(--color-text-heading);
  margin-bottom: 10px; line-height: 1.35;
}
.problem-card p { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; }

/* ─── S5: Odoo Solution ──────────────────────────────────── */
.solution {
  background: var(--color-primary-dark);
  color: var(--color-white);
  position: relative; overflow: hidden;
  padding: 80px 48px;
  max-width: 100%; border-radius: 0;
}
.solution .section-title { color: var(--color-white); }
.solution .section-desc { color: rgba(255,255,255,0.65); }
.solution .section-label { color: var(--color-accent); }
.solution .section-header { margin-bottom: 48px; }
.odoo-services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.odoo-service-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px; padding: 28px 24px;
  box-shadow: var(--color-card-shadow);
}
.odoo-service-icon {
  font-size: 28px; margin-bottom: 16px; line-height: 1;
}
.odoo-service-card h3 {
  font-size: 15px; font-weight: 700; color: var(--color-white);
  margin-bottom: 10px; line-height: 1.3;
}
.odoo-service-card p {
  font-size: 13px; color: rgba(255,255,255,0.58); line-height: 1.6;
}

/* ─── S6: Pourquoi IXEMELIS ──────────────────────────────── */
.pourquoi { background: var(--color-bg-light); }
.pourquoi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.pourquoi-card {
  background: var(--color-white);
  border: 1px solid rgba(11,36,71,0.06);
  border-radius: 12px; padding: 28px;
  box-shadow: var(--color-card-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.pourquoi-card:hover { box-shadow: 0 8px 24px rgba(11,36,71,0.10); transform: translateY(-2px); }
.pourquoi-emoji {
  font-size: 28px; margin-bottom: 14px; line-height: 1;
}
.pourquoi-card h3 {
  font-size: 15px; font-weight: 700; color: var(--color-text-heading);
  margin-bottom: 8px; line-height: 1.35;
}
.pourquoi-card p { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; }

/* ─── Marquee (reuse existing) ───────────────────────────── */
.marquee-strip {
  background: var(--color-primary-dark-2);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 18px 0;
  overflow: hidden; position: relative;
}
.marquee-track {
  display: flex; gap: 60px; width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-strip span {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.28); white-space: nowrap;
}
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ─── Marquee fade edges (kept from original) ───────────── */
.marquee-strip::before, .marquee-strip::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1;
}
.marquee-strip::before { left: 0; background: linear-gradient(to right, #19376D, transparent); }
.marquee-strip::after  { right: 0; background: linear-gradient(to left, #19376D, transparent); }

/* ─── S7: Notre méthode (timeline) ─────────────────────── */
.methode {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: 80px 48px;
  max-width: 100%;
}
.methode .section-label { color: var(--color-accent); }
.methode .section-title { color: var(--color-white); }
.methode .section-desc  { color: rgba(255,255,255,0.65); }
.methode .section-header { margin-bottom: 64px; }

.methode-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}

.methode-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  max-width: 180px;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(249,115,22,0.35);
}

.step-body h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
  line-height: 1.3;
}

.step-body p {
  font-size: 12px;
  color: rgba(255,255,255,0.58);
  line-height: 1.55;
}

.methode-connector {
  flex: 0 0 40px;
  height: 2px;
  background: linear-gradient(to right, var(--color-accent), rgba(249,115,22,0.3));
  margin-top: 32px;
  align-self: flex-start;
}

/* ─── Engagements within CTA ─────────────────────────────── */
.cta-engagements {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.engagement-item {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  white-space: nowrap;
}

/* ─── Secteurs ──────────────────────────────────────────── */
.secteurs { background: var(--color-white); }
.secteurs-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-top: 40px;
}
.secteur-tag {
  background: var(--color-bg-light); border: 1px solid rgba(11,36,71,0.08);
  border-radius: 100px; padding: 10px 22px;
  font-size: 14px; font-weight: 600; color: var(--color-text);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.secteur-tag:hover {
  background: var(--color-primary-dark); border-color: var(--color-primary-dark);
  color: var(--color-white); transform: translateY(-2px);
}

/* ─── CTA Final ──────────────────────────────────────────── */
.cta-final {
  background: var(--color-primary-dark);
  padding: 80px 48px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-final::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 60% at 50% 100%, rgba(249,115,22,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.cta-final .section-label { color: var(--color-accent); }
.cta-final .section-title {
  color: var(--color-white); font-size: clamp(26px, 3.5vw, 42px);
  max-width: 600px; margin: 0 auto 16px;
}
.cta-final .section-desc { color: rgba(255,255,255,0.65); max-width: 480px; margin: 0 auto 36px; }
.cta-final .btn-primary { font-size: 16px; padding: 16px 40px; }

/* ─── Footer ─────────────────────────────────────────────── */
.ix-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.55);
  padding: 56px 48px 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  max-width: 100%;
}
.ix-footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px; max-width: 1200px; margin-left: auto; margin-right: auto;
}
.footer-logo {
  font-size: 18px; font-weight: 800; letter-spacing: 0.12em;
  color: var(--color-white); text-transform: uppercase; margin-bottom: 12px;
}
.footer-logo span { color: var(--color-accent); }
.footer-brand p { font-size: 13px; line-height: 1.65; max-width: 280px; }
.footer-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.38);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 14px; color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.28);
  max-width: 1200px; margin-left: auto; margin-right: auto;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .section { padding: 64px 28px; }
  .hero { padding: 120px 28px 72px; }
  .ix-header { padding: 0 28px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 32px 28px; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(11,36,71,0.08); padding-bottom: 24px; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(11,36,71,0.08); padding-right: 24px; }
  .stat-item:last-child, .stat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
  .problems-grid { grid-template-columns: repeat(2, 1fr); }
  .odoo-services-grid { grid-template-columns: repeat(2, 1fr); }
  .pourquoi-grid { grid-template-columns: repeat(2, 1fr); }
  .ix-footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 760px) {
  .methode-timeline {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .methode-step {
    max-width: 100%;
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 20px;
    padding: 0 0 32px 0;
    border-left: 3px solid rgba(249,115,22,0.25);
    padding-left: 20px;
  }
  .methode-step:last-child { border-left: 3px solid var(--color-accent); }
  .step-number {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    font-size: 22px;
    margin-bottom: 0;
    margin-top: 2px;
  }
  .step-body { flex: 1; }
  .methode-connector { display: none; }
  .cta-engagements { flex-direction: column; align-items: center; gap: 8px; }
}

@media (max-width: 600px) {
  .ix-nav { display: none; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 16px; }
  .problems-grid { grid-template-columns: 1fr; }
  .odoo-services-grid { grid-template-columns: 1fr; }
  .pourquoi-grid { grid-template-columns: 1fr; }
  .stat-value { font-size: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}