/* MyDevis — landing page styles.
   Implémentation stricte du handoff design_handoff_mydevis_landing (README = spec). */

:root {
  --ink: #0c4a6e;
  --strong: #0f172a;
  --body: #475569;
  --secondary: #64748b;
  --muted: #94a3b8;
  --nav: #334155;
  --primary: #0369a1;
  --primary-hover: #075985;
  --sky: #38bdf8;
  --bg-alt: #f8fafc;
  --wash: #f0f9ff;
  --wash-2: #e0f2fe;
  --border: #e2e8f0;
  --border-card-hover: #bae6fd;
  --amber-text: #b45309;
  --amber-burnt: #9a3412;
  --amber-bg: #fef3c7;
  --amber-wash: #fff7ed;
  --amber-border: #fed7aa;
  --green: #059669;
  --green-bg: #ecfdf5;
  --footer-text: #bae6fd;
  --footer-light: #7dd3fc;
  --shadow-card-hover: 0 10px 24px rgba(12, 74, 110, 0.10);
  --shadow-card-rest: 0 2px 10px rgba(12, 74, 110, 0.04);
  --shadow-cta: 0 8px 20px rgba(3, 105, 161, 0.22);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--strong);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

img { display: block; }

.wrap { max-width: 1120px; margin: 0 auto; }

/* ---------- Animations ---------- */

@keyframes mdFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes mdMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes mdReveal {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

@supports (animation-timeline: view()) {
  [data-reveal] {
    animation: mdReveal linear both;
    animation-timeline: view();
    animation-range: entry 5% entry 40%;
  }
}

/* ---------- Shared typographic pieces ---------- */

.eyebrow {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow--amber { color: var(--amber-text); }
.eyebrow--green { color: var(--green); }
.eyebrow--sky { color: var(--sky); }

.section-title {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
  text-wrap: balance;
}

.section-head {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-title { margin: 0; font-size: 19px; font-weight: 700; color: var(--ink); }
.card-text { margin: 0; font-size: 15px; line-height: 1.65; color: var(--body); text-wrap: pretty; }

.check-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  color: var(--nav);
  font-weight: 500;
}
.check-list li { display: flex; align-items: center; gap: 10px; }
.check-list--top li { align-items: flex-start; }
.check { color: var(--green); font-weight: 700; }

/* ---------- Buttons ---------- */

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  padding: 15px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { background: var(--primary-hover); color: #ffffff; }

.btn-nav {
  background: var(--primary);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
}
.btn-nav:hover { background: var(--primary-hover); color: #ffffff; }

.btn-banner {
  flex-shrink: 0;
  background: var(--primary);
  color: #ffffff;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--shadow-cta);
}
.btn-banner:hover { background: var(--primary-hover); color: #ffffff; }

.btn-white {
  background: #ffffff;
  color: var(--primary);
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 10px 26px rgba(12, 74, 110, 0.25);
  margin-top: 6px;
}
.btn-white:hover { background: var(--wash); color: var(--primary-hover); }

.btn-white--sm {
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: none;
  margin-top: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 32px; height: 32px; }
.logo span { font-weight: 700; font-size: 21px; letter-spacing: -0.022em; color: var(--strong); }
.logo--footer span { color: #ffffff; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.site-nav a:not(.btn-nav) { color: var(--nav); }
.site-nav a:not(.btn-nav):hover { color: var(--primary); }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 88%);
  padding: 72px 24px 40px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 56px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 {
  margin: 0;
  font-size: clamp(38px, 4.5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-sub {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--body);
  max-width: 480px;
  text-wrap: pretty;
}
.hero-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.hero-link { color: var(--primary); padding: 15px 12px; font-weight: 600; font-size: 16px; }
.hero-link:hover { color: var(--primary-hover); }
.hero-art { display: flex; align-items: center; justify-content: center; }
.hero-art img {
  width: 100%;
  max-width: 490px;
  height: auto;
  mix-blend-mode: multiply;
  animation: mdFloat 6s ease-in-out infinite;
}

/* ---------- Comment ça marche ---------- */

.how { background: var(--bg-alt); padding: 96px 24px; }
.how .wrap { display: flex; flex-direction: column; gap: 48px; }
.how-banner {
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  background: var(--wash-2);
  box-shadow: 0 12px 32px rgba(12, 74, 110, 0.08);
}
.how-banner img { width: 100%; max-width: 820px; height: auto; mix-blend-mode: multiply; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.step-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.25s ease;
}
.step-card:hover { box-shadow: var(--shadow-card-hover); }
.step-num {
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: var(--wash-2);
  padding: 5px 12px;
  border-radius: 999px;
}
.step-num--amber { color: var(--amber-text); background: var(--amber-bg); }
.step-num--green { color: var(--green); background: var(--green-bg); }
.step-card img { width: 100%; height: auto; margin-top: auto; }

/* ---------- Fonctionnalités ---------- */

.features { padding: 96px 24px; }
.features .wrap { display: flex; flex-direction: column; gap: 48px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
}
.feature-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card-rest);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover { box-shadow: var(--shadow-card-hover); border-color: var(--border-card-hover); }
.feature-card h3 { margin: 6px 0 0; font-size: 19px; font-weight: 700; color: var(--ink); }
.feature-thumb {
  height: 165px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-thumb img { max-width: 92%; max-height: 88%; mix-blend-mode: multiply; }
.feature-thumb--blue { background: var(--wash); }
.feature-thumb--amber { background: var(--amber-wash); }
.feature-thumb--green { background: var(--green-bg); }
.feature-thumb--sky { background: var(--wash-2); }
.custom-banner {
  background: var(--wash);
  border: 1px dashed var(--footer-light);
  border-radius: 12px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.custom-banner div { display: flex; flex-direction: column; gap: 6px; max-width: 640px; }

/* ---------- Cas d'usage ---------- */

.usecases { background: var(--bg-alt); padding: 96px 24px; }
.usecases .wrap { display: flex; flex-direction: column; gap: 48px; }
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
}
.usecase-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.25s ease;
}
.usecase-card:hover { box-shadow: var(--shadow-card-hover); }
.usecase-card h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.usecase-card p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--body); text-wrap: pretty; }
.usecase-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.usecase-label--blue { color: var(--primary); }
.usecase-label--amber { color: var(--amber-text); }
.usecase-label--green { color: var(--green); }
.usecase-label--navy { color: var(--ink); }
.usecase-foot {
  margin-top: auto;
  padding-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--secondary);
}

/* ---------- Marque blanche / Pilotage ---------- */

.split { padding: 96px 24px; }
.split .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 56px;
  align-items: center;
}
.split--alt { background: var(--bg-alt); }
.split--alt .wrap { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.split-copy { display: flex; flex-direction: column; gap: 16px; }
.split-copy > p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  max-width: 460px;
  text-wrap: pretty;
}
.split-art { display: flex; align-items: center; justify-content: center; }
.split-art img { width: 100%; height: auto; }
.split-art--form img { max-width: 540px; }
.split-art--dash img { max-width: 560px; }

/* ---------- Adaptabilité ---------- */

.adapt { background: #ffffff; padding: 0 24px 96px; }
.adapt-card {
  background: var(--ink);
  border-radius: 14px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.adapt-head { max-width: 680px; display: flex; flex-direction: column; gap: 12px; }
.adapt-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #ffffff;
  text-wrap: balance;
}
.adapt-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 32px;
}
.adapt-col { display: flex; flex-direction: column; gap: 8px; padding-left: 18px; }
.adapt-col--blue { border-left: 2px solid rgba(56, 189, 248, 0.5); }
.adapt-col--amber { border-left: 2px solid rgba(251, 191, 36, 0.6); }
.adapt-col--green { border-left: 2px solid rgba(52, 211, 153, 0.6); }
.adapt-col h3 { margin: 0; font-size: 17px; font-weight: 700; color: #ffffff; }
.adapt-col p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--footer-text); text-wrap: pretty; }

/* ---------- Tarifs ---------- */

.pricing { background: #ffffff; padding: 0 24px 96px; }
.pricing .wrap { display: flex; flex-direction: column; gap: 40px; }
.pricing-note { margin: 0; font-size: 16px; line-height: 1.6; color: var(--body); }
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 20px;
}
.price-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.25s ease;
}
.price-card:hover { box-shadow: var(--shadow-card-hover); }
.price-card--infra { background: var(--amber-wash); border-color: var(--amber-border); }
.price-card--infra:hover { box-shadow: 0 10px 24px rgba(180, 83, 9, 0.12); }
.price-card--infra h3 { color: var(--amber-burnt); }
.price-head { display: flex; flex-direction: column; gap: 4px; }
.price-head h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.price-head span { font-size: 13.5px; color: var(--secondary); }
.price-amount { display: flex; flex-direction: column; gap: 2px; }
.price-amount strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
}
.price-amount strong small { font-size: 14px; font-weight: 600; color: var(--secondary); }
.price-amount span { font-size: 13px; color: var(--secondary); }
.price-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--nav);
}
.price-list li { display: flex; gap: 8px; }
.detail-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.detail-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.detail-head h3 { margin: 0; font-size: 19px; font-weight: 700; color: var(--ink); }
.detail-head span { font-size: 14px; color: var(--secondary); }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 28px;
}
.detail-col { display: flex; flex-direction: column; gap: 10px; }
.detail-col > span {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--primary);
}
.detail-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--nav);
}

/* ---------- Avis clients ---------- */

.reviews { background: var(--bg-alt); padding: 96px 24px; }
.reviews .wrap { display: flex; flex-direction: column; gap: 48px; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.review-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card-rest);
  transition: box-shadow 0.25s ease;
}
.review-card:hover { box-shadow: var(--shadow-card-hover); }
.review-mark { font-size: 30px; line-height: 0.6; font-weight: 800; }
.review-mark--sky { color: var(--sky); }
.review-mark--amber { color: #d97706; }
.review-mark--green { color: var(--green); }
.review-card blockquote { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--nav); text-wrap: pretty; }
.review-who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.review-avatar--amber { background: var(--amber-bg); color: var(--amber-text); }
.review-avatar--green { background: var(--green-bg); color: var(--green); }
.review-avatar--blue { background: var(--wash-2); color: var(--primary); }
.review-name { font-weight: 700; font-size: 14px; color: var(--strong); }
.review-role { font-size: 13px; color: var(--secondary); }

/* ---------- Logos partenaires ---------- */

.trust { background: #ffffff; padding: 48px 0 72px; }
.trust .wrap { padding: 0 24px; display: flex; flex-direction: column; gap: 26px; }
.trust-label {
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 88px;
  width: max-content;
  animation: mdMarquee 24s linear infinite;
}
.marquee-track img { width: auto; }
.logo-lacroix { height: 64px; mix-blend-mode: multiply; }
.logo-savac { height: 38px; }
.logo-debras { height: 44px; mix-blend-mode: multiply; }
.logo-viao { height: 34px; }

/* ---------- CTA final ---------- */

.cta-final { background: var(--ink); padding: 96px 24px; }
.cta-final .wrap {
  max-width: 760px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta-final h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #ffffff;
  text-wrap: balance;
}
.cta-final p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 520px;
  text-wrap: pretty;
}

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); padding: 64px 24px 32px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 48px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 300px; }
.footer-brand p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--footer-light); text-wrap: pretty; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col--cta { gap: 14px; align-items: flex-start; }
.footer-col--cta p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--footer-text); }
.footer-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
}
.footer-col a { color: var(--footer-text); font-size: 14.5px; }
.footer-col a:hover { color: #ffffff; }
.footer-col > span:not(.footer-heading) { color: var(--footer-text); font-size: 14.5px; }
.footer-col .btn-white--sm { color: var(--primary); }
.footer-col .btn-white--sm:hover { color: var(--primary-hover); }
.footer-bar {
  border-top: 1px solid rgba(186, 230, 253, 0.18);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(186, 230, 253, 0.75);
  flex-wrap: wrap;
}
.footer-legal a { color: rgba(186, 230, 253, 0.75); }
.footer-legal a:hover { color: #ffffff; }
.footer-legal .sep { color: rgba(186, 230, 253, 0.3); }
