/* ============================
   DWE Consult — Stylesheet
   ============================ */

:root {
  --navy-950: #060e1c;
  --navy-900: #0a1929;
  --navy-800: #0f2338;
  --navy-700: #16324d;
  --navy-600: #1f4468;
  --blue-500: #2f6fed;
  --cyan-400: #22d3ee;
  --cyan-300: #67e8f9;
  --white: #ffffff;
  --ink-100: #eaf1fb;
  --ink-300: #b6c6dc;
  --ink-500: #8ea2bd;

  --font-heading: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-soft: 0 10px 30px rgba(6, 14, 28, 0.35);
  --shadow-glow: 0 0 0 1px rgba(34, 211, 238, 0.15), 0 20px 40px rgba(6, 14, 28, 0.45);

  --container-w: 1160px;
  --transition: 0.25s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--navy-900);
  color: var(--ink-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--white);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-300); }

a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-300);
  margin-bottom: 0.9em;
}

/* ---------- Progress bar ---------- */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400));
  color: var(--navy-950);
  box-shadow: 0 10px 25px rgba(47, 111, 237, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(47, 111, 237, 0.5); }
.btn--ghost {
  background: transparent;
  color: var(--ink-100);
  border-color: rgba(255,255,255,0.2);
}
.btn--ghost:hover { border-color: var(--cyan-300); color: var(--cyan-300); }
.btn--light {
  background: var(--white);
  color: var(--navy-900);
}
.btn--light:hover { transform: translateY(-2px); }
.btn--sm { padding: 0.6em 1.3em; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 18px 0;
  background: rgba(10, 25, 41, 0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: padding var(--transition), background var(--transition);
}
.header.scrolled {
  padding: 10px 0;
  background: rgba(6, 14, 28, 0.85);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
}
.logo__mark { color: var(--white); }
.logo__mark .dot { color: var(--cyan-400); }
.logo__text { color: var(--ink-300); font-weight: 500; }

.nav {
  display: flex;
  gap: 28px;
}
.nav__link {
  font-size: 0.92rem;
  color: var(--ink-300);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}
.nav__link:hover, .nav__link.active { color: var(--white); }
.nav__link.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
  border-radius: 2px;
}

.header__actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 170px 0 100px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.blob--1 {
  width: 480px; height: 480px;
  background: var(--blue-500);
  top: -120px; right: -100px;
}
.blob--2 {
  width: 380px; height: 380px;
  background: var(--cyan-400);
  bottom: -140px; left: -80px;
  opacity: 0.2;
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at top, black 40%, transparent 80%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--cyan-300);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.highlight {
  background: linear-gradient(135deg, var(--cyan-300), var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead { font-size: 1.08rem; max-width: 560px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0 44px; }

.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat__num, .stat__suffix {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  display: inline;
}
.stat__label { font-size: 0.82rem; color: var(--ink-500); margin-top: 2px; }

/* Hero visual */
.hero__visual { position: relative; height: 420px; }
.orbit-card {
  position: absolute;
  background: rgba(15, 35, 56, 0.7);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-glow);
  font-size: 0.85rem;
  color: var(--ink-100);
  animation: float 6s ease-in-out infinite;
}
.orbit-card--main {
  width: 260px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 7s;
}
.orbit-card__row { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 14px; }
.dot-status {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
}
.orbit-card__bars { display: flex; align-items: flex-end; gap: 6px; height: 40px; }
.orbit-card__bars span {
  flex: 1;
  background: linear-gradient(180deg, var(--cyan-400), var(--blue-500));
  border-radius: 4px;
  opacity: 0.85;
}
.orbit-card__bars span:nth-child(1) { height: 40%; }
.orbit-card__bars span:nth-child(2) { height: 70%; }
.orbit-card__bars span:nth-child(3) { height: 55%; }
.orbit-card__bars span:nth-child(4) { height: 90%; }
.orbit-card__bars span:nth-child(5) { height: 65%; }

.orbit-card--float1 { top: 6%; left: 4%; animation-duration: 5.5s; }
.orbit-card--float2 { bottom: 10%; right: 2%; animation-duration: 6.5s; animation-delay: .5s;}
.orbit-card--float3 { bottom: 4%; left: 14%; animation-duration: 8s; animation-delay: 1s;}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.orbit-card--main { animation-name: floatMain; }
@keyframes floatMain {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-10px); }
}

/* ---------- Trust strip ---------- */
.trust {
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 22px 0;
  background: var(--navy-950);
}
.trust__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; text-align: center;}
.trust__label { margin: 0; font-size: 0.85rem; color: var(--ink-500); font-weight: 600;}
.trust__items { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; font-size: 0.88rem; color: var(--ink-300); }
.trust__items .sep { color: var(--ink-500); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section--alt { background: linear-gradient(180deg, var(--navy-950), var(--navy-900)); }

.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__head .section__lead { margin: 0 auto; }
.section__lead { color: var(--ink-300); }

/* ---------- Cards / Services ---------- */
.cards { display: grid; gap: 26px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: var(--shadow-soft);
}
.card--highlight {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border-color: rgba(34, 211, 238, 0.25);
}
.card__icon {
  font-size: 1.8rem;
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(47, 111, 237, 0.14);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.card__list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.card__list li {
  padding-left: 22px;
  position: relative;
  font-size: 0.92rem;
  color: var(--ink-300);
}
.card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
}

/* ---------- Pourquoi ---------- */
.pourquoi__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}
.features { display: grid; gap: 24px; margin-top: 34px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature__icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.feature h4 { margin-bottom: 4px; }
.feature p { margin: 0; font-size: 0.92rem; }

.pourquoi__visual { display: flex; justify-content: center; }
.map-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--navy-700), var(--navy-900) 70%);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
}
.map-card__pin { font-size: 2rem; margin-bottom: 10px; }
.map-card__zone { color: var(--white); font-weight: 700; margin-bottom: 6px; }
.map-card__cities { font-size: 0.85rem; color: var(--ink-500); margin: 0; }
.map-card__ring {
  position: absolute;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 50%;
  animation: pulse 3.5s ease-out infinite;
}
.ring1 { inset: 10%; animation-delay: 0s; }
.ring2 { inset: 10%; animation-delay: 1.2s; }
.ring3 { inset: 10%; animation-delay: 2.4s; }
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ---------- IA section ---------- */
.ia__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.ai-panel {
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.ai-panel__header {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.9rem;
  margin-bottom: 18px;
  color: var(--ink-100);
}
.ai-panel__chat { display: flex; flex-direction: column; gap: 12px; }
.chat-bubble {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.88rem;
  max-width: 90%;
}
.chat-bubble--user {
  background: var(--navy-700);
  align-self: flex-end;
  color: var(--ink-100);
  border-bottom-right-radius: 4px;
}
.chat-bubble--ai {
  background: linear-gradient(135deg, rgba(47,111,237,0.25), rgba(34,211,238,0.2));
  align-self: flex-start;
  color: var(--white);
  border-bottom-left-radius: 4px;
}

.check-list { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 30px; }
.check-list li {
  padding-left: 30px;
  position: relative;
  color: var(--ink-300);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.15);
  color: var(--cyan-300);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.timeline__item {
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  position: relative;
}
.timeline__num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cyan-300);
  margin-bottom: 14px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-500), #1550c9 60%, var(--navy-900));
  padding: 56px 0;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: flex-start;
}
.contact-info { display: flex; flex-direction: column; gap: 16px; margin-top: 30px; }
.contact-info__item {
  display: flex; align-items: center; gap: 14px;
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 16px 18px;
  border-radius: var(--radius-md);
  transition: border-color var(--transition), transform var(--transition);
}
a.contact-info__item:hover { border-color: rgba(34,211,238,0.35); transform: translateX(4px); }
.contact-info__icon { font-size: 1.3rem; }
.contact-info__label { display: block; font-size: 0.78rem; color: var(--ink-500); }
.contact-info__value { display: block; font-weight: 600; color: var(--white); }

.contact-form {
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-soft);
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.85rem; font-weight: 600; color: var(--ink-100); }
.form-row input,
.form-row select,
.form-row textarea {
  background: var(--navy-900);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.92rem;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--cyan-400);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}
.form-row input.invalid,
.form-row textarea.invalid { border-color: #f87171; }
.error-msg { font-size: 0.78rem; color: #f87171; min-height: 1em; }
.form-success {
  text-align: center;
  color: #34d399;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); border-top: 1px solid rgba(255,255,255,0.06); padding-top: 60px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__brand p { margin-top: 12px; font-size: 0.88rem; max-width: 320px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h5 { color: var(--ink-500); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.06em; margin-bottom: 4px; }
.footer__col a, .footer__col span { color: var(--ink-300); font-size: 0.9rem; transition: color var(--transition); }
.footer__col a:hover { color: var(--cyan-300); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
}
.footer__bottom p { margin: 0; font-size: 0.8rem; color: var(--ink-500); text-align: center; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: var(--navy-800);
  color: var(--white);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  z-index: 800;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--blue-500); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards--3 { grid-template-columns: 1fr; }
  .pourquoi__grid,
  .ia__grid,
  .contact__grid { grid-template-columns: 1fr; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { height: 320px; order: -1; }
  .ia__visual { order: 2; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(6, 14, 28, 0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    padding: 20px 24px 30px;
    gap: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-130%);
    transition: transform var(--transition);
  }
  .nav.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .header__actions .btn--sm { display: none; }
  .hero { padding: 130px 0 70px; }
  .hero__stats { gap: 24px; }
  .timeline { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .contact-form { padding: 24px; }
}
