/* ============================================================================
   ddledepanneur.fr — Marketing site styles.
   Vanilla CSS, no framework. Designed to be production-deployable as static
   HTML — drop the marketing/ folder behind any CDN/static host.

   Two tonalités:
   - Section clients = warm/orange dominant
   - Section pros    = blue/professional dominant
   ========================================================================== */

/* ============ TOKENS ============ */
:root {
  --dd-blue:        #3B82F6;
  --dd-blue-deep:   #1E5BD9;
  --dd-orange:      #FF9C2E;
  --dd-orange-deep: #E07A0F;
  --dd-ink:         #0F1A33;
  --dd-paper:       #F7F4EE;
  --dd-cream:       #FFFDF7;

  --fg:             #0F1A33;
  --fg-muted:       rgba(15, 26, 51, 0.62);
  --fg-tertiary:    rgba(15, 26, 51, 0.45);
  --border:         rgba(15, 26, 51, 0.10);
  --border-soft:    rgba(15, 26, 51, 0.06);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  --container: 1200px;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/Inter-VariableFont_opsz_wght.ttf') format('truetype-variations'),
       url('fonts/Inter-VariableFont_opsz_wght.ttf') format('truetype');
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--fg);
  background: var(--dd-paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ============ LAYOUT ============ */

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

/* ============ NAV ============ */

.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(247, 244, 238, 0.85);
  border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
  display: flex; align-items: center; gap: 24px;
  height: 64px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}

.nav-brand .pill {
  background: var(--dd-blue);
  color: white; font-weight: 900;
  font-size: 14px; padding: 5px 9px; border-radius: 9px;
  letter-spacing: -0.6px; line-height: 1;
  box-shadow: 0 4px 12px -4px rgba(59, 130, 246, 0.6);
}

.nav-brand .name {
  font-weight: 800; font-size: 16px; letter-spacing: -0.3px;
  color: var(--dd-ink);
}

.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
}

.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  font-size: 14px; font-weight: 600;
  color: var(--fg-muted);
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover { color: var(--dd-ink); background: rgba(15, 26, 51, 0.04); }

.nav-link.cta {
  background: var(--dd-ink);
  color: white;
  margin-left: 6px;
}
.nav-link.cta:hover { background: var(--dd-blue-deep); color: white; }

/* ============ TYPOGRAPHY ============ */

h1, h2, h3, h4 {
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--dd-ink);
}
h1 { font-size: clamp(40px, 5.5vw, 72px); font-weight: 900; line-height: 1; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.8vw, 44px); font-weight: 800; text-wrap: balance; }
h3 { font-size: 22px; font-weight: 700; line-height: 1.2; }
h4 { font-size: 16px; font-weight: 700; line-height: 1.3; }

.lead {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--fg-muted);
  max-width: 60ch;
  line-height: 1.55;
}

.eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dd-orange);
  margin-bottom: 14px;
}
.eyebrow.blue { color: var(--dd-blue); }
.eyebrow.muted { color: var(--fg-tertiary); }

.muted { color: var(--fg-muted); }
.mono { font-family: var(--font-mono); }

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px;
  font-family: inherit; font-size: 15px; font-weight: 700;
  border: none; border-radius: 14px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.25s, background 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-orange {
  background: linear-gradient(135deg, var(--dd-orange), var(--dd-orange-deep));
  color: white;
  box-shadow: 0 12px 28px -10px rgba(255, 156, 46, 0.55);
}
.btn-orange:hover { box-shadow: 0 16px 36px -12px rgba(255, 156, 46, 0.75); }

.btn-blue {
  background: linear-gradient(135deg, var(--dd-blue), var(--dd-blue-deep));
  color: white;
  box-shadow: 0 12px 28px -10px rgba(59, 130, 246, 0.55);
}
.btn-blue:hover { box-shadow: 0 16px 36px -12px rgba(59, 130, 246, 0.75); }

.btn-ink {
  background: var(--dd-ink);
  color: white;
}
.btn-ink:hover { background: #1a2c52; }

.btn-ghost {
  background: white;
  color: var(--dd-ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: rgba(15, 26, 51, 0.04); }

.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn-sm { padding: 9px 14px; font-size: 13px; border-radius: 10px; }

/* ============ HERO ============ */

.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 156, 46, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(59, 130, 246, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-body { max-width: 580px; }

.hero h1 .accent-orange { color: var(--dd-orange); }
.hero h1 .accent-blue { color: var(--dd-blue); }

.hero p.lead { margin-top: 24px; }

.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 36px;
}

.hero-trust {
  margin-top: 28px;
  display: flex; align-items: center; gap: 14px;
  font-size: 13px;
  color: var(--fg-muted);
}

.hero-trust-stars { display: inline-flex; gap: 2px; color: #FFB800; }

/* ============ SPLIT CARDS HERO ============ */

.split-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px;
  border-radius: 22px;
  background: white;
  box-shadow: 0 30px 60px -25px rgba(15, 26, 51, 0.20), 0 0 0 1px var(--border-soft);
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.split-card:hover { transform: translateY(-4px); box-shadow: 0 40px 80px -25px rgba(15, 26, 51, 0.25), 0 0 0 1px var(--border); }

.split-card.warm {
  background: linear-gradient(180deg, var(--dd-cream) 0%, white 100%);
}
.split-card.warm::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 80% 0%, rgba(255, 156, 46, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.split-card.cool {
  background: linear-gradient(180deg, white 0%, #F2F6FC 100%);
}
.split-card.cool::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 20% 0%, rgba(59, 130, 246, 0.10) 0%, transparent 60%);
  pointer-events: none;
}

.split-card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  position: relative; z-index: 2;
}
.split-card.warm .split-card-icon {
  background: rgba(255, 156, 46, 0.14);
  color: var(--dd-orange);
  border: 1px solid rgba(255, 156, 46, 0.25);
}
.split-card.cool .split-card-icon {
  background: rgba(59, 130, 246, 0.12);
  color: var(--dd-blue);
  border: 1px solid rgba(59, 130, 246, 0.22);
}

.split-card h3 { position: relative; z-index: 2; font-size: 22px; }
.split-card p { position: relative; z-index: 2; color: var(--fg-muted); font-size: 14.5px; margin-top: 8px; }
.split-card-meta {
  position: relative; z-index: 2;
  margin-top: 18px; display: flex; flex-direction: column; gap: 8px;
}
.split-card-meta-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--fg);
}
.split-card-meta-row .check {
  width: 18px; height: 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: white; font-weight: 900; font-size: 11px;
}
.split-card.warm .split-card-meta-row .check { background: var(--dd-orange); }
.split-card.cool .split-card-meta-row .check { background: var(--dd-blue); }

.split-card .btn {
  position: relative; z-index: 2; align-self: flex-start;
  margin-top: 22px;
}

/* ============ SECTIONS ============ */

.section { padding: 100px 0; position: relative; }
.section-tight { padding: 60px 0; }
.section-light { background: white; }
.section-dark { background: var(--dd-ink); color: white; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: white; }
.section-dark .muted, .section-dark .lead { color: rgba(255, 255, 255, 0.65); }

.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { max-width: 720px; margin: 0 auto; }
.section-head p { margin: 18px auto 0; }

/* ============ STEPS ============ */

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 24px;
  border-radius: 20px;
  background: white;
  border: 1px solid var(--border-soft);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute; top: -16px; left: 24px;
  font-family: var(--font-mono); font-size: 11px;
  font-weight: 700; letter-spacing: 0.1em;
  padding: 5px 10px;
  background: var(--dd-orange); color: white;
  border-radius: 8px;
}
.step.step-blue::before { background: var(--dd-blue); }
.step h4 { font-size: 18px; margin: 4px 0 8px; }
.step p { color: var(--fg-muted); font-size: 14px; }

/* ============ FEATURES ============ */

.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px 24px;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--border-soft);
  transition: border-color 0.2s, transform 0.2s;
}
.feature:hover { border-color: var(--border); transform: translateY(-2px); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 26, 51, 0.05);
  color: var(--dd-blue);
}
.feature h4 { font-size: 18px; }
.feature p { color: var(--fg-muted); font-size: 14px; }

/* ============ DOWNLOAD BLOCK (pro) ============ */

.download-block {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px;
  align-items: center;
}

.download-cta-row {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px;
}

.app-badge {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  background: var(--dd-ink); color: white;
  border-radius: 14px;
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.2s;
}
.app-badge:hover { transform: translateY(-2px); }
.app-badge.disabled { opacity: 0.55; cursor: not-allowed; }
.app-badge.disabled:hover { transform: none; }

.app-badge svg.platform { width: 26px; height: 26px; flex-shrink: 0; }
.app-badge-text { display: flex; flex-direction: column; line-height: 1.1; gap: 1px; }
.app-badge-eyebrow { font-size: 10px; font-weight: 600; color: rgba(255, 255, 255, 0.65); text-transform: uppercase; letter-spacing: 0.1em; }
.app-badge-name { font-size: 16px; font-weight: 700; }

.app-badge-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.app-badge-status.ok { background: rgba(0, 255, 179, 0.16); color: #00B377; }
.app-badge-status.soon { background: rgba(255, 214, 10, 0.20); color: #B38600; }

.download-phone-mock {
  position: relative;
  width: 280px; aspect-ratio: 9/19.5;
  margin: 0 auto;
  background: #14181f;
  border-radius: 40px;
  padding: 8px;
  box-shadow: 0 40px 80px -30px rgba(15, 26, 51, 0.30);
}
.download-phone-screen {
  width: 100%; height: 100%;
  border-radius: 32px;
  background: linear-gradient(180deg, #0B1530, #0F1A33);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  color: white;
}
.download-phone-island {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 24px; border-radius: 14px; background: black;
}

/* ============ FAQ ============ */

.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  padding: 22px 24px;
  border-radius: 14px;
  background: white;
  border: 1px solid var(--border-soft);
  margin-bottom: 12px;
  cursor: pointer;
}
.faq details[open] {
  border-color: var(--border);
  box-shadow: 0 8px 24px -16px rgba(15, 26, 51, 0.15);
}
.faq summary {
  list-style: none;
  font-weight: 700; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--dd-ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-weight: 400; font-size: 28px; color: var(--dd-orange); line-height: 1;
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: '−'; }
.faq p { color: var(--fg-muted); font-size: 15px; line-height: 1.6; margin-top: 12px; }

/* ============ EARLY ACCESS ============ */

.early-access {
  background: linear-gradient(135deg, var(--dd-ink) 0%, #1B2C52 100%);
  color: white;
  padding: 56px 48px;
  border-radius: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.early-access::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 156, 46, 0.25) 0%, transparent 60%);
  pointer-events: none;
}
.early-access h2, .early-access h3 { color: white; position: relative; }
.early-access p { color: rgba(255, 255, 255, 0.65); position: relative; }
.early-access form {
  position: relative;
  display: flex; gap: 8px; margin: 28px auto 0;
  max-width: 460px;
}
.early-access input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 14px;
  font-family: inherit; font-size: 15px;
  color: white;
  outline: none;
}
.early-access input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.45); }
.early-access input[type="email"]:focus { border-color: var(--dd-orange); }

/* ============ FOOTER ============ */

.footer {
  padding: 56px 0 32px;
  background: var(--dd-ink); color: white;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand { max-width: 320px; }
.footer-brand p { font-size: 13px; color: rgba(255, 255, 255, 0.55); margin-top: 12px; }
.footer-col h5 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13.5px; color: rgba(255, 255, 255, 0.75); }
.footer-col a:hover { color: white; }
.footer-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: rgba(255, 255, 255, 0.45);
}

/* ============ COMING SOON BANNER ============ */

.coming-soon {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 156, 46, 0.14);
  border: 1px solid rgba(255, 156, 46, 0.30);
  color: var(--dd-orange-deep);
  border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.coming-soon::before {
  content: '';
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--dd-orange);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0.5; } }

/* ============ TESTIMONIAL ============ */

.testimonial {
  padding: 32px 36px;
  border-radius: 22px;
  background: white;
  border: 1px solid var(--border-soft);
  display: flex; flex-direction: column; gap: 18px;
}
.testimonial blockquote {
  font-size: 18px; line-height: 1.55;
  color: var(--dd-ink); font-weight: 500;
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
}
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 999px;
  background: linear-gradient(135deg, #FFD9B5, #FFB8A3);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--dd-ink);
}
.testimonial-name { font-weight: 700; font-size: 14px; }
.testimonial-role { font-size: 12.5px; color: var(--fg-muted); }

/* ============ RESPONSIVE ============ */

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .download-block { grid-template-columns: 1fr; gap: 40px; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; gap: 8px; }
  .nav-links .nav-link:not(.cta) { display: none; }
  .features, .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 72px; }
  .early-access { padding: 36px 24px; }
  .early-access form { flex-direction: column; }
}
