/* ════════════════════════════════════════════════════════════════
   DINAPS — main.css
   Palette nuit urbaine + vert signal
   ════════════════════════════════════════════════════════════════ */

:root {
  --ink:        #0b0f0d;
  --ink-soft:   #111814;
  --pine:       #162c20;
  --green:      #4a8a5e;
  --green-glow: #5fb37a;
  --mint:       #a8d5b5;
  --paper:      #fafaf8;
  --stone:      #6b7370;
  --line:       rgba(255,255,255,0.09);
  --line-dark:  rgba(11,15,13,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* le contenu pousse le footer en bas */
.site-header { flex-shrink: 0; }
.site-footer { flex-shrink: 0; margin-top: auto; }
h1, h2, h3, h4 { font-family: 'Sora', sans-serif; letter-spacing: -0.025em; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ════════════════════════════════════════════════════════════════
   SITE HEADER (nav globale, sticky)
   ════════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,15,13,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.site-header.is-light {
  background: rgba(250,250,248,0.88);
  border-bottom: 1px solid var(--line-dark);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  text-decoration: none;
  line-height: 0;
}
.logo-word {
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 0.10em;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}
.logo-signal {
  display: block;
  width: 100%;
  height: 5px;
}
.logo-signal rect { fill: var(--green-glow, #5fb37a); }
@media (max-width: 600px) {
  .logo-word { font-size: 24px; }
  .logo-signal { height: 4px; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  transition: color 0.18s;
}
.site-header.is-light .nav-links a { color: var(--stone); }
.nav-links a:hover { color: var(--green-glow); }
.site-header.is-light .nav-links a:hover { color: var(--green); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--green);
  color: #fff !important;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
}
.nav-cta:hover { background: var(--green-glow); transform: translateY(-1px); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
  transition: 0.2s;
}
.site-header.is-light .nav-toggle span { background: var(--ink); }

/* ════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════ */
.hero {
  min-height: calc(100svh - 59px);
  background:
    radial-gradient(1200px 700px at 85% 15%, rgba(74,138,94,0.28) 0%, transparent 55%),
    radial-gradient(900px 600px at 10% 95%, rgba(74,138,94,0.14) 0%, transparent 50%),
    var(--ink);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 90px 8%;
}
.hero::after {
  content: "";
  position: absolute;
  right: -180px; top: 50%;
  transform: translateY(-50%);
  width: 640px; height: 640px;
  border-radius: 50%;
  border: 1px solid rgba(95,179,122,0.18);
  box-shadow: 0 0 0 90px rgba(95,179,122,0.05), 0 0 0 200px rgba(95,179,122,0.03);
  pointer-events: none;
}
.hero-inner { max-width: 640px; position: relative; z-index: 1; }
.hero .tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 24px;
}
.hero .tagline::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-glow);
  box-shadow: 0 0 12px var(--green-glow);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.8); }
}
.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--green-glow); }
.hero p {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin-bottom: 44px;
  max-width: 480px;
}
.store-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 14px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 600;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.store-btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.store-btn.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 28px rgba(74,138,94,0.35);
}
.store-btn.primary:hover {
  background: var(--green-glow);
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(74,138,94,0.45);
}
.store-btn.primary svg { fill: #fff; }
.store-btn.ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  backdrop-filter: blur(4px);
}
.store-btn.ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-2px);
}
.store-btn.ghost svg { fill: #fff; }

/* ════════════════════════════════════════════════════════════════
   SECTIONS génériques
   ════════════════════════════════════════════════════════════════ */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
  display: block;
}
.s-dark .eyebrow { color: var(--mint); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 100px 8%; }
.s-dark {
  background:
    radial-gradient(1000px 500px at 50% 0%, rgba(74,138,94,0.16) 0%, transparent 60%),
    var(--ink-soft);
}
.two-col { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 72px; align-items: center; }
.two-col h2 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); font-weight: 700; line-height: 1.22; margin-bottom: 24px; }
.two-col p { font-size: 1rem; color: var(--stone); line-height: 1.8; margin-bottom: 14px; }
.img-frame { border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(11,15,13,0.14); }
.img-frame img { width: 100%; }

/* STEPS */
.steps-section { background: var(--paper); }
.steps-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: center; }
.phone-stage {
  background: radial-gradient(400px 400px at 50% 50%, rgba(74,138,94,0.13) 0%, transparent 70%);
  display: flex; justify-content: center; padding: 30px 0;
}
.phone-stage img { max-width: 215px; filter: drop-shadow(0 30px 50px rgba(11,15,13,0.22)); }
.steps { list-style: none; margin-top: 36px; display: grid; gap: 0; }
.step { display: flex; gap: 20px; padding: 22px 0; align-items: flex-start; }
.step + .step { border-top: 1px solid var(--line-dark); }
.step-num {
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem; font-weight: 700;
  color: var(--green);
  background: rgba(74,138,94,0.1);
  border: 1px solid rgba(74,138,94,0.25);
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-body strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 0.98rem; font-weight: 600;
  margin-bottom: 3px; color: var(--ink);
}
.step-body span { font-size: 0.9rem; color: var(--stone); line-height: 1.6; }

/* COMPARISON */
.comparison-head { max-width: 660px; margin-bottom: 52px; }
.comparison-head h2 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); font-weight: 700; color: #fff; line-height: 1.22; margin-bottom: 22px; }
.comparison-head p { color: rgba(255,255,255,0.68); font-size: 1rem; line-height: 1.75; margin-bottom: 10px; }
.comparison-head .modes { display: inline-flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.mode-chip {
  font-size: 0.8rem; font-weight: 500;
  color: var(--mint);
  background: rgba(95,179,122,0.1);
  border: 1px solid rgba(95,179,122,0.3);
  padding: 6px 14px; border-radius: 100px;
}
.table-card { background: rgba(255,255,255,0.025); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
table.compare thead th {
  padding: 16px 20px; text-align: center;
  font-family: 'Sora', sans-serif; font-size: 0.85rem; font-weight: 600;
  color: rgba(255,255,255,0.55);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.compare thead th:first-child { text-align: left; }
table.compare thead th.dinaps-col { color: #fff; background: rgba(74,138,94,0.16); position: relative; }
table.compare thead th.dinaps-col::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--green-glow); }
table.compare tbody td { padding: 14px 20px; font-size: 0.9rem; color: rgba(255,255,255,0.82); border-bottom: 1px solid rgba(255,255,255,0.05); text-align: center; }
table.compare tbody td:first-child { text-align: left; }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare tbody td.dinaps-col { background: rgba(74,138,94,0.1); }
.ck { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: rgba(95,179,122,0.18); color: var(--green-glow); align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; }
.cx { color: rgba(255,255,255,0.22); font-size: 0.85rem; }
.badge-soon { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mint); background: rgba(95,179,122,0.12); border-radius: 100px; padding: 2px 9px; margin-left: 8px; white-space: nowrap; }

/* NEWSLETTER */
.nl-section { background: var(--paper); }
.nl-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 72px; align-items: center; }
.nl-grid h2 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); font-weight: 700; line-height: 1.22; margin-bottom: 22px; }
.nl-grid p { font-size: 1rem; color: var(--stone); line-height: 1.8; margin-bottom: 12px; }
.nl-form { display: flex; gap: 10px; margin-top: 30px; max-width: 460px; }
.nl-form input[type="email"] {
  flex: 1; padding: 14px 18px;
  border: 1.5px solid rgba(11,15,13,0.14); border-radius: 10px;
  font-size: 0.95rem; font-family: 'Inter', sans-serif;
  outline: none; background: #fff;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.nl-form input[type="email"]:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(74,138,94,0.12); }
.nl-form button {
  padding: 14px 24px; background: var(--ink); color: #fff;
  border: none; border-radius: 10px;
  font-size: 0.93rem; font-weight: 600; font-family: 'Inter', sans-serif;
  cursor: pointer; white-space: nowrap;
  transition: background 0.18s, transform 0.18s;
}
.nl-form button:hover { background: var(--green); transform: translateY(-1px); }

/* ════════════════════════════════════════════════════════════════
   BLOG — listing
   ════════════════════════════════════════════════════════════════ */
.blog-hero {
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(74,138,94,0.18) 0%, transparent 55%),
    var(--ink);
  padding: 80px 8% 64px;
  text-align: center;
}
.blog-hero .eyebrow { color: var(--mint); }
.blog-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 700; color: #fff;
  line-height: 1.15; margin: 0 auto 18px;
  max-width: 720px;
}
.blog-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.08rem; line-height: 1.65;
  max-width: 560px; margin: 0 auto;
}

.blog-body { max-width: 1180px; margin: 0 auto; padding: 60px 8% 90px; }

/* Filtres cas d'usage */
.usecase-filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-bottom: 56px;
}
.usecase-filters a {
  font-size: 0.88rem; font-weight: 500;
  padding: 9px 18px; border-radius: 100px;
  border: 1px solid var(--line-dark);
  color: var(--stone); text-decoration: none;
  background: #fff; transition: all 0.18s;
}
.usecase-filters a:hover { border-color: var(--green); color: var(--green); }
.usecase-filters a.active { background: var(--green); color: #fff; border-color: var(--green); }

/* Grille d'articles */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 32px;
}
.post-card {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(11,15,13,0.1);
  border-color: rgba(74,138,94,0.3);
}
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.post-card__title {
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem; font-weight: 600;
  line-height: 1.3; color: var(--ink);
  margin-bottom: 10px;
}
.post-card__title a { text-decoration: none; }
.post-card__excerpt { font-size: 0.92rem; color: var(--stone); line-height: 1.6; margin-bottom: 18px; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: 12px; font-size: 0.82rem; color: var(--stone); margin-top: auto; }
.post-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--stone); opacity: 0.5; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 60px; }
.pagination .page-numbers {
  min-width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--line-dark);
  background: #fff; color: var(--ink);
  text-decoration: none; font-size: 0.92rem; font-weight: 500;
  transition: all 0.18s; padding: 0 12px;
}
.pagination .page-numbers:hover { border-color: var(--green); color: var(--green); }
.pagination .page-numbers.current { background: var(--green); color: #fff; border-color: var(--green); }

/* ════════════════════════════════════════════════════════════════
   BLOG — article (single)
   ════════════════════════════════════════════════════════════════ */
.article-hero {
  background:
    radial-gradient(900px 460px at 75% 0%, rgba(74,138,94,0.16) 0%, transparent 55%),
    var(--ink);
  padding: 64px 8% 56px;
}
.article-hero__inner { max-width: 760px; margin: 0 auto; }
.article-hero .breadcrumb {
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
  margin-bottom: 22px;
}
.article-hero .breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.article-hero .breadcrumb a:hover { color: var(--green-glow); }
.article-hero__tag {
  display: inline-block;
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink);
  background: var(--green-glow);
  padding: 5px 13px; border-radius: 100px;
  margin-bottom: 20px;
}
.article-hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 700; color: #fff;
  line-height: 1.18; margin-bottom: 22px;
}
.article-hero__meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.9rem; color: rgba(255,255,255,0.6);
}
.article-hero__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.4); }

.article-featured { max-width: 900px; margin: -36px auto 0; padding: 0 8%; position: relative; z-index: 2; }
.article-featured img { width: 100%; border-radius: 18px; box-shadow: 0 24px 60px rgba(11,15,13,0.22); }

.article-wrap { max-width: 760px; margin: 0 auto; padding: 56px 8% 80px; display: grid; grid-template-columns: 1fr; gap: 0; }

/* Corps de l'article — optimisé lecture longue */
.article-content { font-size: 1.07rem; line-height: 1.8; color: #2a2e2c; }
.article-content > * + * { margin-top: 1.4em; }
.article-content h2 { font-size: 1.6rem; font-weight: 700; color: var(--ink); margin-top: 2.2em; line-height: 1.25; }
.article-content h3 { font-size: 1.25rem; font-weight: 600; color: var(--ink); margin-top: 1.8em; }
.article-content p { margin-bottom: 0; }
.article-content a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.article-content a:hover { color: #3d7550; }
.article-content ul, .article-content ol { padding-left: 1.4em; }
.article-content li { margin-bottom: 0.5em; }
.article-content img { border-radius: 12px; margin: 2em 0; }
.article-content blockquote {
  border-left: 3px solid var(--green);
  background: rgba(74,138,94,0.05);
  padding: 18px 24px; border-radius: 4px;
  font-size: 1.1rem; color: var(--ink); font-style: italic;
}
.article-content strong { color: var(--ink); font-weight: 600; }

/* Partage */
.article-share { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--line-dark); display: flex; align-items: center; gap: 14px; }
.article-share span { font-size: 0.9rem; color: var(--stone); font-weight: 500; }
.article-share a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; border: 1px solid var(--line-dark);
  color: var(--stone); transition: all 0.18s;
}
.article-share a:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.article-share svg { width: 16px; height: 16px; fill: currentColor; }

/* CTA app en bas d'article */
.article-cta {
  margin: 70px auto 0; max-width: 760px;
  background: linear-gradient(150deg, #0b0f0d 0%, #1a3a28 100%);
  border-radius: 18px; padding: 40px 42px;
  color: #fff; position: relative; overflow: hidden;
}
.article-cta::after {
  content: ""; position: absolute; right: -50px; top: -50px;
  width: 200px; height: 200px; border-radius: 50%;
  border: 1px solid rgba(95,179,122,0.18);
  box-shadow: 0 0 0 36px rgba(95,179,122,0.05);
  pointer-events: none;
}
.article-cta h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; position: relative; }
.article-cta p { color: rgba(255,255,255,0.72); margin-bottom: 22px; font-size: 0.98rem; position: relative; }
.article-cta .store-buttons { position: relative; }

/* Articles liés */
.related { background: var(--paper); border-top: 1px solid var(--line-dark); padding: 70px 8%; }
.related__inner { max-width: 1180px; margin: 0 auto; }
.related h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 32px; }

/* ════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--ink);
  padding: 34px 8%;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55); transition: all 0.18s;
}
.socials a:hover { border-color: var(--green-glow); color: var(--green-glow); transform: translateY(-2px); }
.socials svg { width: 15px; height: 15px; fill: currentColor; }
.foot-links { font-size: 0.8rem; color: rgba(255,255,255,0.4); line-height: 2; }
.foot-links a { color: rgba(255,255,255,0.55); text-decoration: none; margin-left: 16px; transition: color 0.18s; }
.foot-links a:hover { color: var(--green-glow); }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.is-open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink);
    padding: 20px 8%; gap: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .site-header.is-light .nav-links.is-open { background: var(--paper); }
  .nav-toggle { display: block; }
}
@media (max-width: 820px) {
  .hero { padding: 70px 6%; min-height: auto; }
  .hero::after { display: none; }
  .wrap { padding: 70px 6%; }
  .two-col, .steps-grid, .nl-grid { grid-template-columns: 1fr; gap: 44px; }
  .nl-form { flex-direction: column; max-width: none; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .foot-links a { margin-left: 0; margin-right: 14px; }
  .blog-body { padding: 44px 6% 70px; }
  .article-wrap { padding: 44px 6% 70px; }
  .article-cta { padding: 32px 26px; }
  .related { padding: 50px 6%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
