/* LogiDrink EMERGENCY WIDTH + LIFE 20260806w2
 * Fixes crushed footer/CTA (narrow column) and dead gray SEO pages.
 */
:root {
  --max: 1280px !important;
}

/* ===== WIDTH UNCRUSH (highest priority) ===== */
html, body {
  max-width: none !important;
  width: 100% !important;
}
.container,
.container-sm,
section > .container,
.hero .container,
footer .container,
footer > .container {
  max-width: min(1280px, calc(100% - 2rem)) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
  display: block !important;
}
footer,
footer.ld-site-footer {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
.cta-banner,
.pack-banner {
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
/* Kill accidental shrink-to-fit from prior align hacks */
section.soft > .container > ul,
section.soft > .container > ol {
  display: block !important;
  width: auto !important;
  max-width: 40rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Comparatif :has() rule must NOT shrink below site max */
html:has(title*="Comparatif") .container,
body:has(a.active[href*="comparatif"]) .container,
.comparatif-page .container {
  max-width: min(1280px, calc(100% - 2rem)) !important;
}

/* ===== ALIVE SEO TEMPLATES (FR empty pages) ===== */
body.seo-pillar section.soft,
section.soft {
  padding: 4.5rem 0 !important;
}
section.soft:nth-of-type(odd) {
  background: #f7f5f2 !important;
}
section.soft:nth-of-type(even) {
  background: #fff !important;
}
.section-head .eyebrow {
  display: inline-block !important;
  background: rgba(253, 112, 32, 0.12) !important;
  color: #c2410c !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
}
.feat-card {
  background: #fff !important;
  border: 1px solid #e8e4dc !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04) !important;
  padding: 1.5rem 1.4rem !important;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease !important;
}
.feat-card:hover {
  border-color: #fd7020 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px rgba(253, 112, 32, 0.12) !important;
}
.feat-card h3 {
  color: #0f172a !important;
  font-size: 1.1rem !important;
}
.feat-card p {
  color: #475569 !important;
}
.grid.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.25rem !important;
}
@media (max-width: 980px) {
  .grid.grid-3 { grid-template-columns: 1fr !important; }
}

/* Mid-page CTA strip injected */
.ld-mid-cta {
  margin: 2.5rem auto 0 !important;
  max-width: min(1280px, calc(100% - 2rem)) !important;
  padding: 1.5rem 1.75rem !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 55%, #2a1a10 100%) !important;
  color: #fff !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
}
.ld-mid-cta h3 {
  margin: 0 0 .35rem !important;
  color: #fff !important;
  font-size: 1.25rem !important;
}
.ld-mid-cta p {
  margin: 0 !important;
  color: rgba(255,255,255,.78) !important;
}
.ld-mid-cta .actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .65rem !important;
}
.ld-mid-cta .btn-primary {
  background: #fd7020 !important;
  border-color: #fd7020 !important;
  color: #fff !important;
}
.ld-mid-cta .btn-ghost {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,.45) !important;
  color: #fff !important;
}

/* Related links as chips */
section.soft > .container > h2 + p.mt-3 a,
.related-pages a,
section .section-head + p.mt-3 a {
  display: inline-block !important;
  margin: .25rem .35rem !important;
  padding: .45rem .85rem !important;
  border-radius: 999px !important;
  background: #fff !important;
  border: 1px solid #e8e4dc !important;
  text-decoration: none !important;
  color: #0f172a !important;
  font-size: .92rem !important;
}
section.soft > .container > h2 + p.mt-3 a:hover,
.section-head + p.mt-3 a:hover {
  border-color: #fd7020 !important;
  color: #c2410c !important;
}

/* FAQ answers less keyword-spammy look */
details.faq-item[open] > p,
.faq-item[open] p {
  background: #fff !important;
  border: 1px solid #eee8df !important;
  border-radius: 12px !important;
  padding: .9rem 1rem !important;
  color: #334155 !important;
}

/* Final CTA section breathing room */
section.tight.soft .container[style*="text-align:center"] {
  padding: 3rem 1rem !important;
}

/* ===== WIDTH FIX 20260806wide1 — footer + CTA full useful width ===== */
:root {
  --max: 1480px !important;
}

.container,
.container-sm,
section > .container,
footer .container,
footer > .container,
#pourquoi-logidrink .container,
section.soft > .container,
html:has(title*="Comparatif") .container,
body:has(a.active[href*="comparatif"]) .container,
.comparatif-page .container {
  max-width: min(1480px, calc(100% - 2.5rem)) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* CTA banner: fill its container, stop 1100px crush */
.cta-banner,
.pack-banner,
body.ld-alive .cta-banner,
body.seo-pillar .cta-banner {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* Footer full-bleed background, wide inner grid */
footer,
footer.ld-site-footer {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
  background: var(--bg-dark, #0b1220) !important;
}
footer > .container,
footer .container {
  max-width: min(1480px, calc(100% - 2.5rem)) !important;
  width: 100% !important;
}
footer .ft-grid {
  width: 100% !important;
  max-width: none !important;
  grid-template-columns: 1.4fr repeat(5, minmax(0, 1fr)) !important;
  gap: clamp(1.25rem, 2vw, 2.75rem) !important;
}
@media (max-width: 1000px) {
  footer .ft-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 640px) {
  footer .ft-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Sticky full width */
.ld-sticky-cta {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

/* Orange mid CTAs also full container width */
.ld-alive-cta .container,
.ld-alive-dark-cta .container {
  max-width: min(1480px, calc(100% - 2.5rem)) !important;
  width: 100% !important;
}
