/* ============================================================
   UPProcess — Feuille de style
   Palette inspirée du logo : fond bleu clair, "UP" blanc,
   "Process" en dégradé bleu, slogan gris.
   ============================================================ */

:root {
  /* Bleus */
  --blue-light: #8fc1ea;
  --blue: #5a9fd6;
  --blue-deep: #3d7fb8;
  --blue-darker: #2f6699;

  /* Fonds */
  --bg: #e9f2fb;
  --bg-soft: #f4f9fe;
  --bg-hero-1: #dcebfa;
  --bg-hero-2: #c7e0f6;

  /* Texte */
  --navy: #1e3a5f;
  --text: #3f5168;
  --muted: #7e91a8;
  --white: #ffffff;

  /* Divers */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -18px rgba(45, 102, 153, 0.45);
  --shadow-soft: 0 10px 30px -12px rgba(45, 102, 153, 0.30);
  --max-width: 1140px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

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

h1, h2, h3 { color: var(--navy); line-height: 1.2; font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }

/* ============================================================
   LOGO / WORDMARK (recréation du logo en typographie)
   ============================================================ */
.wordmark {
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.5px;
  line-height: 1;
  white-space: nowrap;
}
.wm-up {
  color: var(--white);
  text-shadow: 0 1px 2px rgba(45, 102, 153, 0.25);
}
.wm-process {
  font-weight: 300;
  background: linear-gradient(95deg, var(--blue-light), var(--blue-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--blue);
}
/* Sur fond clair (header au scroll, footer), "UP" doit rester lisible */
.site-header.scrolled .wm-up,
.site-footer .wm-up { color: var(--blue-deep); text-shadow: none; }
.wordmark-sm { font-size: 1.4rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: var(--transition);
}
.site-header.scrolled {
  background: rgba(244, 249, 254, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px -10px rgba(45, 102, 153, 0.35);
  padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav-link {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.25s;
}
.nav-link:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--blue); transition: width 0.25s;
}
.nav-link:not(.btn):hover { color: var(--blue-deep); }
.nav-link:not(.btn):hover::after { width: 100%; }

/* Bouton hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2.5px; background: var(--navy); border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px;
  border-radius: 50px;
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: 2px solid transparent;
  transition: var(--transition);
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(120deg, var(--blue), var(--blue-deep));
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--blue-deep); border-color: var(--blue-light); }
.btn-ghost:hover { background: var(--white); border-color: var(--blue); transform: translateY(-3px); }
.btn-nav { padding: 9px 20px; background: var(--blue-deep); color: #fff; }
.btn-nav:hover { background: var(--blue-darker); }
.btn-nav::after { display: none; }
.btn-lg { padding: 16px 38px; font-size: 1.05rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(160deg, var(--bg-hero-1) 0%, var(--bg-hero-2) 55%, #b9d6f2 100%);
  overflow: hidden;
  padding: 120px 0 140px;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.6);
  color: var(--blue-darker);
  font-weight: 500; font-size: 0.85rem;
  padding: 7px 16px; border-radius: 50px;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}
.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
}
.hero-title .accent {
  background: linear-gradient(95deg, var(--blue), var(--blue-deep));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-text {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text);
  max-width: 580px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Formes décoratives */
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(40px); opacity: 0.55; z-index: 1;
}
.hero-blob-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(143,193,234,0.9), transparent 70%);
  top: -120px; right: -80px;
}
.hero-blob-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,255,255,0.9), transparent 70%);
  bottom: 40px; left: -100px;
}
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 2; }
.hero-wave svg { width: 100%; height: 90px; }
.hero-wave path { fill: var(--bg); }

/* ============================================================
   SECTIONS génériques
   ============================================================ */
.section { padding: 90px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block;
  color: var(--blue-deep); font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px;
}
.section-sub { color: var(--muted); font-size: 1.08rem; margin-top: 12px; }

/* ---------- Services / cartes ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 38px 32px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 1px solid rgba(143, 193, 234, 0.25);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card-icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  color: #fff; margin-bottom: 22px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text); font-size: 0.98rem; }

/* ---------- Pourquoi nous ---------- */
.pourquoi { background: var(--bg-soft); }
.pourquoi-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.benefits { list-style: none; display: grid; gap: 22px; }
.benefits li { display: flex; gap: 16px; align-items: flex-start; }
.benefits .check {
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-deep));
  color: #fff; font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.benefits strong { color: var(--navy); }

/* ---------- À propos ---------- */
.apropos-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.apropos-inner h2 { margin: 6px 0 18px; }
.apropos-inner p { font-size: 1.1rem; }

/* ---------- Contact ---------- */
.contact {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  text-align: center;
}
.contact h2 { color: #fff; }
.contact p { color: rgba(255,255,255,0.92); font-size: 1.1rem; max-width: 560px; margin: 14px auto 32px; }
.contact .btn-primary { background: #fff; color: var(--blue-deep); }
.contact .btn-primary:hover { background: var(--bg-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #14263d; color: #b9c8dc; padding: 50px 0 36px; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.site-footer .wm-up { color: #fff; }
.footer-tagline { color: #8ea4bf; font-style: italic; font-weight: 300; }
.footer-copy { font-size: 0.88rem; margin-top: 14px; color: #7e91a8; }
.footer-copy a { color: var(--blue-light); }
.footer-copy a:hover { text-decoration: underline; }

/* ============================================================
   ANIMATIONS au scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .pourquoi-inner { grid-template-columns: 1fr; gap: 36px; }

  .nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column; justify-content: center; gap: 26px;
    background: var(--bg-soft);
    box-shadow: -10px 0 40px -10px rgba(45,102,153,0.4);
    transform: translateX(100%);
    transition: var(--transition);
    z-index: 99;
  }
  .nav.open { transform: translateX(0); }
  .nav-link { font-size: 1.1rem; }
  .nav-toggle { display: flex; z-index: 101; }
}

@media (max-width: 520px) {
  .section { padding: 64px 0; }
  .hero { padding: 110px 0 120px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}
