/* ============================================
   eQuitel — One Page
   Palette extraite du logo :
   orange #E8963C · corail #D2604A · magenta #C0179B · violet #7A2C82 · bleu #1F6FA8
============================================ */

:root {
  --orange: #e8963c;
  --coral: #d2604a;
  --magenta: #c0179b;
  --purple: #7a2c82;
  --blue: #1f6fa8;

  /* couleur unie de marque utilisée pour boutons et éléments interactifs */
  --brand: var(--blue);
  --brand-dark: #185a86;

  /* dégradé réservé aux textes/accents décoratifs, jamais aux boutons */
  --gradient-brand: linear-gradient(90deg, var(--orange), var(--coral), var(--magenta), var(--purple));

  --dark: #0e1526;
  --dark-2: #141d33;
  --dark-3: #1b263f;
  --light: #f7f7fb;
  --light-2: #ffffff;
  --text-dark: #1c2333;
  --text-muted: #5b6478;
  --text-light: #eef0f6;
  --text-light-muted: #aab2c5;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 45px -20px rgba(14, 21, 38, 0.25);
  --shadow-card: 0 10px 30px -12px rgba(14, 21, 38, 0.15);

  --ff-heading: "Poppins", sans-serif;
  --ff-body: "Inter", sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--text-dark);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--text-dark);
}

p { line-height: 1.7; color: var(--text-muted); margin: 0 0 1em; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Progress bar ---------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--brand);
  z-index: 1000;
  transition: width .1s ease-out;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { transform: translateY(-3px); background: var(--brand-dark); box-shadow: 0 22px 40px -16px rgba(31, 111, 168, .45); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: var(--text-dark);
}
.hero .btn-ghost { color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }
.btn-light {
  background: #fff;
  color: var(--brand);
}
.btn-light:hover { transform: translateY(-3px); box-shadow: 0 18px 35px -14px rgba(0,0,0,.35); }
.btn-full { width: 100%; }
.btn-nav { margin-left: auto; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(255,255,255, .98);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px -20px rgba(14,21,38,.2);
  transition: box-shadow .3s ease, padding .3s ease;
  padding: 14px 0;
}
.site-header.scrolled {
  box-shadow: 0 8px 30px -18px rgba(14,21,38,.35);
  padding: 10px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand-logo { height: 42px; width: auto; transition: height .3s ease; }
.site-header.scrolled .brand-logo { height: 36px; }

.main-nav {
  display: flex;
  gap: 30px;
  margin-left: 20px;
}
.nav-link {
  font-weight: 500;
  font-size: .95rem;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
  transition: color .25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width .25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--blue); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all .3s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(1200px 700px at 15% 15%, #1a2947 0%, var(--dark) 55%, #0a0f1c 100%);
  overflow: hidden;
  padding-top: 100px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  opacity: .55;
}
.node-graphic { width: 100%; height: 100%; }
.node-lines line { stroke: url(#nodeGradientCss); }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-top: 30px;
  padding-bottom: 90px;
}
.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  color: var(--text-light-muted);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 22px;
}
.hero-sub {
  color: var(--text-light-muted);
  font-size: 1.1rem;
  max-width: 620px;
  margin-bottom: 34px;
}
.hero-sub strong { color: #fff; font-weight: 600; }
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-tags span {
  font-size: .82rem;
  color: var(--text-light-muted);
  border: 1px solid rgba(255,255,255,.18);
  padding: 8px 14px;
  border-radius: 999px;
}

.scroll-cue {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 20px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: var(--brand);
  border-radius: 3px;
  transform: translateX(-50%);
  animation: scrollCue 1.6s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 22px; }
  100% { opacity: 0; top: 22px; }
}

/* ---------- Section shared ---------- */
section { padding: 110px 0; position: relative; }
.section-eyebrow {
  color: var(--magenta);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .82rem;
  margin-bottom: 12px;
}
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.section-lead {
  max-width: 640px;
  font-size: 1.05rem;
}

/* ---------- Services ---------- */
.services { background: var(--light); }
.services .container > p, .services .section-title { text-align: left; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 54px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-card);
  transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid rgba(14,21,38,.05);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 50px -20px rgba(14,21,38,.25);
}
.service-icon {
  width: 58px; height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.service-icon svg { width: 28px; height: 28px; }
.icon-orange { background: rgba(232,150,60,.12); color: var(--orange); }
.icon-coral { background: rgba(210,96,74,.12); color: var(--coral); }
.icon-magenta { background: rgba(192,23,155,.12); color: var(--magenta); }
.icon-blue { background: rgba(31,111,168,.12); color: var(--blue); }

.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { font-size: .93rem; margin-bottom: 16px; }
.service-list li {
  font-size: .85rem;
  color: var(--text-dark);
  padding: 6px 0;
  border-top: 1px solid rgba(14,21,38,.06);
}
.service-list li:first-child { border-top: none; }

/* ---------- About ---------- */
.about { background: #fff; }
.about-inner {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  align-items: center;
}
.about-card {
  position: relative;
  background: linear-gradient(160deg, #101a30, #1c2c4d);
  border-radius: 28px;
  padding: 60px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  min-height: 320px;
}
.about-logo { max-width: 260px; border-radius: 14px; background: #fff; padding: 20px; }
.orbit-dot { position: absolute; border-radius: 50%; }
.dot-1 { width: 16px; height: 16px; background: var(--orange); top: 14%; left: 12%; }
.dot-2 { width: 12px; height: 12px; background: var(--magenta); bottom: 16%; right: 14%; }
.dot-3 { width: 20px; height: 20px; border: 3px solid var(--blue); top: 20%; right: 10%; background: transparent; }

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 34px;
}
.value-item { display: flex; gap: 16px; }
.value-badge {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--magenta);
  background: rgba(192,23,155,.1);
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.value-item h4 { font-size: 1rem; margin-bottom: 4px; }
.value-item p { font-size: .88rem; margin: 0; }

/* ---------- Process ---------- */
.process { background: var(--light); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 54px;
  position: relative;
}
.process-step {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 26px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.process-number {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.6rem;
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  background: var(--brand);
  margin-bottom: 20px;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { font-size: .88rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  padding: 90px 0;
  background: linear-gradient(120deg, #101a30, #241238 55%, #3a123f);
  text-align: center;
}
.cta-inner h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta-inner p { color: var(--text-light-muted); max-width: 520px; margin: 0 auto 30px; }

/* ---------- Contact ---------- */
.contact { background: #fff; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 70px;
}
.contact-list { margin: 30px 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-label { display: block; font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.contact-list li > div { display: flex; flex-direction: column; gap: 2px; font-weight: 500; }

.social-row { display: flex; gap: 12px; }
.social-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--light);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 700;
  color: var(--text-dark);
  transition: transform .25s ease, color .25s ease, background .25s ease;
}
.social-icon:hover { background: var(--brand); color: #fff; transform: translateY(-3px); }

.contact-form {
  background: var(--light);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text-dark); }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: .95rem;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(14,21,38,.12);
  background: #fff;
  color: var(--text-dark);
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--magenta);
  box-shadow: 0 0 0 4px rgba(192,23,155,.12);
}
.form-error {
  display: none;
  font-size: .78rem;
  color: var(--coral);
}
.form-group.invalid input,
.form-group.invalid textarea { border-color: var(--coral); }
.form-group.invalid .form-error { display: block; }

.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(31,111,168,.1);
  color: var(--blue);
  font-size: .9rem;
  text-align: center;
}
.form-success.show { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  padding-top: 70px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { max-width: 340px; }
.footer-logo { height: 40px; margin-bottom: 16px; background: #fff; padding: 6px 10px; border-radius: 8px; }
.footer-brand p { color: var(--text-light-muted); font-size: .88rem; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-light-muted); font-size: .9rem; transition: color .25s ease; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  padding: 26px 0;
  text-align: center;
}
.footer-bottom p { color: var(--text-light-muted); font-size: .82rem; margin: 0; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--brand);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
  z-index: 500;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav, .btn-nav { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    padding: 20px 24px;
    box-shadow: var(--shadow-card);
    gap: 16px;
  }
  .main-nav.open .nav-link { color: var(--text-dark); }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
  .hero { padding-top: 90px; }
}
