/* ============================================================
   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.7rem; }

/* ── Logo image dans l'en-tête (logo bleu unique, fond assorti #DAEAF7) ── */
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand-logo { height: 72px; width: auto; display: block; }
@media (max-width: 520px) { .brand-logo { height: 54px; } }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: #DAEAF7;            /* = couleur du fond du logo, fusion parfaite */
  transition: var(--transition);
}
.site-header.scrolled {
  background: #DAEAF7;            /* opaque : le logo reste fondu dans l'en-tête */
  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: 22px; }
.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); }

/* ── Bannière des pages internes (offres, contact) ── */
.page-hero {
  position: relative;
  background: linear-gradient(160deg, var(--bg-hero-1) 0%, var(--bg-hero-2) 55%, #b9d6f2 100%);
  padding: 150px 0 110px;
  text-align: center;
  overflow: hidden;
}
.page-hero-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -1px; margin: 14px 0 14px; }
.page-hero-title .accent {
  background: linear-gradient(95deg, var(--blue), var(--blue-deep));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.page-hero-text { color: var(--text); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ── Lien de menu actif (page courante) ── */
.nav-link.active { color: var(--blue-deep); }
.nav-link.active:not(.btn)::after { width: 100%; }

/* ============================================================
   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; }

/* ---------- Équipe ---------- */
.equipe { background: var(--bg-soft); }
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(143, 193, 234, 0.25);
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.team-avatar {
  width: 84px; height: 84px; margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-deep));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700;
  overflow: hidden;
}
.team-avatar img, .member-modal-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.team-name { color: var(--navy); margin-bottom: 4px; }
.team-role { color: var(--muted); font-size: 0.95rem; }
.team-card { cursor: pointer; }
.team-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.team-more { margin-top: 12px; font-size: 0.82rem; font-weight: 600; color: var(--blue-deep); }

/* ── Modale profil membre ── */
.member-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20, 38, 61, 0.55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.member-modal-overlay.open { display: flex; }
.member-modal {
  background: #fff; border-radius: 18px;
  max-width: 520px; width: 100%; max-height: 88vh; overflow-y: auto;
  padding: 32px; position: relative;
  box-shadow: 0 30px 70px -20px rgba(20, 38, 61, 0.5);
  animation: mm-in .25s ease;
}
@keyframes mm-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.member-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: var(--bg); color: var(--navy);
  font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background .2s;
}
.member-modal-close:hover { background: #d6e3f2; }
.member-modal-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.member-modal-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-deep));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 700;
}
.member-modal-name { color: var(--navy); margin: 0; font-size: 1.3rem; }
.member-modal-role { color: var(--muted); margin: 2px 0 0; }
.member-modal-desc { color: var(--text); font-size: 0.98rem; line-height: 1.7; margin-bottom: 20px; }
.member-modal-diploma-label { display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--blue-deep); margin-bottom: 10px; }
.member-modal-diploma img { width: 100%; border-radius: 10px; border: 1px solid rgba(143, 193, 234, 0.4); display: block; }
.member-modal-diploma-empty {
  border: 2px dashed rgba(143, 193, 234, 0.6); border-radius: 10px;
  padding: 30px; text-align: center; color: var(--muted); font-size: 0.9rem;
  background: var(--bg-soft);
}

/* ── Formulaire de devis (dans la modale) ── */
.quote-intro { color: var(--text); font-size: 0.92rem; margin-bottom: 8px; }
.quote-form label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--navy); margin: 14px 0 6px; }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid #cdddee; border-radius: 10px;
  font-family: inherit; font-size: 0.95rem; color: var(--navy); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(90, 159, 214, 0.2);
}
.quote-form textarea { resize: vertical; min-height: 90px; }
.quote-form .form-submit { width: 100%; margin-top: 20px; }
.quote-form .form-status { text-align: left; }
.quote-form .form-status.success { color: #1a8a4a; }
.quote-form .form-status.error { color: #c0392b; }

/* ---------- Offres / tarifs ---------- */
.offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  align-items: stretch;
}
.offer-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(143, 193, 234, 0.25);
  display: flex; flex-direction: column;
  transition: var(--transition);
}
.offer-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.offer-featured { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.offer-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(120deg, var(--blue), var(--blue-deep));
  color: #fff; font-size: 0.72rem; font-weight: 600;
  padding: 5px 16px; border-radius: 50px; white-space: nowrap;
}
.offer-name { color: var(--navy); font-size: 1.3rem; margin-bottom: 6px; }
.offer-desc { color: var(--text); font-size: 0.92rem; margin-bottom: 22px; min-height: 42px; }
.offer-price { margin-bottom: 4px; }
.offer-amount { display: block; color: var(--blue-deep); font-size: 1.6rem; font-weight: 700; line-height: 1.15; }
.offer-sub { padding-top: 16px; margin-top: 16px; border-top: 1px solid rgba(143, 193, 234, 0.35); margin-bottom: 24px; }
.offer-sub-amount { display: block; color: var(--navy); font-size: 1.25rem; font-weight: 700; }
.offer-sub-amount span { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.offer-label { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 3px; }
.offer-btn { margin-top: auto; width: 100%; }
.offers-note { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 26px; }

/* ---------- Portfolio / réalisations ---------- */
.works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.work-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(143, 193, 234, 0.25);
  display: flex; flex-direction: column;
  transition: var(--transition);
}
.work-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.work-thumb {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
}
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-thumb-label { color: #fff; font-weight: 700; font-size: 1.4rem; letter-spacing: .5px; text-shadow: 0 2px 10px rgba(0,0,0,.18); }
.work-thumb-1 { background: linear-gradient(135deg, #5a9fd6, #2f6699); }
.work-thumb-2 { background: linear-gradient(135deg, #8fc1ea, #3d7fb8); }
.work-thumb-3 { background: linear-gradient(135deg, #b9d6f2, #5a9fd6); }
.work-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.work-title { color: var(--navy); font-size: 1.2rem; margin-bottom: 8px; }
.work-desc { color: var(--text); font-size: 0.92rem; margin-bottom: 16px; flex: 1; }
.work-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.work-tags span { background: var(--bg); color: var(--blue-deep); font-size: 0.75rem; font-weight: 500; padding: 4px 12px; border-radius: 50px; }
.work-link { color: var(--blue-deep); font-weight: 600; font-size: 0.95rem; }
.work-link:hover { color: var(--blue); }

/* ---------- 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); }

/* ---------- Formulaire de contact ---------- */
.contact-form { max-width: 560px; margin: 0 auto; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy);
  font-family: inherit;
  font-size: 0.95rem;
  transition: box-shadow .2s, border-color .2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #8aa0b8; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; margin-top: 4px; }
.form-status { margin: 14px 0 0; font-weight: 500; min-height: 1.2em; text-align: center; }
.form-status.success { color: #e3fff0; }
.form-status.error { color: #ffe3e3; }
.contact-alt { margin-top: 20px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.9); }
.contact-alt a { color: #fff; text-decoration: underline; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* ============================================================
   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-logo-img { height: 64px; width: auto; border-radius: 10px; display: block; margin: 0 auto; }
.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; }
/* Lien discret vers l'espace de gestion (manager) — peu contrasté, net au survol */
.footer-admin { margin-left: 10px; color: #2f4258; opacity: .55; text-decoration: none;
  font-size: .82rem; transition: opacity .2s ease, color .2s ease; }
.footer-admin:hover { opacity: 1; color: var(--blue-light); text-decoration: none; }

/* ============================================================
   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%; }
}
