/* Famylio marketing editorial refresh - local assets only */
:root {
  --og-ink: #1f2b24;
  --og-ink-soft: #4f5f54;
  --og-paper: #f8f3ec;
  --og-porcelain: #fffaf4;
  --og-linen: #ede2d4;
  --og-terracotta: #ec520c;
  --og-terracotta-dark: #ba3d08;
  --og-sage: #6f826c;
  --og-moss: #3f5d48;
  --og-honey: #d7a83b;
  --og-shadow: 0 24px 70px rgba(39, 33, 25, .14);
}

body.famylio-marketing {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--og-paper);
  color: var(--og-ink);
}

body.famylio-marketing h1,
body.famylio-marketing h2,
body.famylio-marketing h3,
body.famylio-marketing .section-title {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
}

body.famylio-marketing *,
body.famylio-marketing *::before,
body.famylio-marketing *::after {
  letter-spacing: 0;
}

.legacy-hero[hidden] {
  display: none !important;
}

.site-nav {
  background: rgba(255, 250, 244, .88);
  border-bottom: 1px solid rgba(78, 68, 54, .1);
}

.nav-links a,
.legal-nav-links a {
  color: var(--og-ink-soft);
}

.btn-terra,
.hero-slide-cta.cta-terra,
.og-primary {
  background: var(--og-terracotta);
  color: #fff;
  box-shadow: 0 12px 26px rgba(236, 82, 12, .22);
}

.btn-terra:hover,
.og-primary:hover {
  background: var(--og-terracotta-dark);
}

.og-hero {
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  padding: 86px 5% 30px;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(21, 25, 20, .82) 0%, rgba(21, 25, 20, .58) 42%, rgba(21, 25, 20, .08) 100%),
    url("/assets/marketing/famylio_ambience_0001.png");
  background-size: cover;
  background-position: center center;
  color: #fff;
}

.og-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(248, 243, 236, 0), var(--og-paper));
  pointer-events: none;
}

.og-hero-inner,
.og-container {
  width: min(1180px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.og-hero-copy {
  width: min(650px, 100%);
}

.og-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: #f6dcc9;
  font-size: 14px;
  font-weight: 800;
}

.og-eyebrow i {
  color: #ffd6b8;
}

.og-hero h1 {
  margin: 0;
  font-size: 60px;
  line-height: .98;
  font-weight: 800;
  color: #fff;
  text-wrap: balance;
}

.og-hero-sub {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: 18px;
  line-height: 1.7;
  max-width: 640px;
}

.og-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 32px;
}

.og-primary,
.og-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.og-secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(31, 43, 36, .34);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(20, 24, 20, .18);
}

.og-microcopy {
  margin-top: 14px;
  color: rgba(255, 255, 255, .74);
  font-size: 13px;
}

.og-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.og-proof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(31, 43, 36, .78);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 16px 38px rgba(20, 24, 20, .22);
  backdrop-filter: blur(12px);
}

.og-proof i {
  color: #ffd6b8;
}

.og-section {
  padding: 90px 5%;
  background: var(--og-paper);
}

.og-section.alt {
  background: #fffaf4;
  padding-top: 54px;
}

.og-section.dark {
  background: #233126;
  color: #fff;
}

.og-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--og-terracotta);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.og-section h2 {
  margin: 0;
  color: inherit;
  font-size: 44px;
  line-height: 1.08;
  font-weight: 800;
  text-wrap: balance;
}

.og-section .og-lead {
  margin-top: 18px;
  max-width: 780px;
  color: var(--og-ink-soft);
  font-size: 18px;
  line-height: 1.75;
}

.og-section.dark .og-lead {
  color: rgba(255, 255, 255, .76);
}

.og-problem-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(320px, 1fr);
  gap: 46px;
  align-items: center;
}

.og-overheard {
  display: grid;
  gap: 10px;
}

.og-overheard span {
  display: block;
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(74, 92, 66, .12);
  box-shadow: 0 10px 28px rgba(52, 44, 34, .06);
  color: var(--og-ink);
  font-weight: 800;
}

.og-product-lines {
  display: grid;
  gap: 0;
  margin-top: 44px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.og-product-line {
  display: grid;
  grid-template-columns: 220px 1fr 240px;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.og-product-line strong {
  color: #fff;
  font-size: 17px;
}

.og-product-line span {
  color: rgba(255, 255, 255, .72);
  line-height: 1.65;
}

.og-product-line em {
  color: #f8d9bf;
  font-style: normal;
  font-weight: 800;
}

.og-moments-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
}

.og-moment {
  min-height: 220px;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(74, 92, 66, .12);
  box-shadow: 0 16px 42px rgba(48, 39, 28, .08);
}

.og-moment b {
  display: block;
  margin-bottom: 14px;
  color: var(--og-terracotta);
  font-size: 14px;
}

.og-moment p {
  margin: 0;
  color: var(--og-ink-soft);
  line-height: 1.7;
  font-size: 14px;
}

.og-trust-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(74, 92, 66, .16);
  border: 1px solid rgba(74, 92, 66, .16);
}

.og-trust-item {
  background: #fff;
  padding: 20px;
}

.og-trust-item strong {
  display: block;
  color: var(--og-ink);
  margin-bottom: 6px;
}

.og-trust-item span {
  color: var(--og-ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.avantages,
.organisation-section,
.modules,
.ylio-ecosystem,
#simulateur,
.testimonials,
#inscription,
#contact {
  background: var(--og-paper);
}

.organisation-section,
.ylio-ecosystem,
#inscription {
  background: #fffaf4;
}

.section-label {
  color: var(--og-terracotta);
}

.section-title {
  color: var(--og-ink);
}

.section-title em {
  color: var(--og-terracotta);
}

.section-intro,
.av-text,
.ml-pillar p,
.mod-card-desc,
.ylio-tagline,
.ylio-card p,
.testi-text,
.footer-brand p {
  color: var(--og-ink-soft);
}

.av-card,
.ml-pillar,
.mod-card,
.ylio-card,
.sim-card,
.form-card,
.testi-card,
.inscription-inner {
  border-radius: 8px !important;
  border-color: rgba(74, 92, 66, .12) !important;
  box-shadow: 0 16px 42px rgba(48, 39, 28, .08) !important;
}

.modules-grid {
  align-items: stretch;
}

.mod-card {
  background: #fffaf4;
}

.mod-card-tag.tag-live {
  background: rgba(63, 93, 72, .12);
  color: var(--og-moss);
}

body.famylio-marketing #modules.modules {
  background:
    radial-gradient(circle at 78% 0%, rgba(236, 82, 12, .08), transparent 36%),
    linear-gradient(180deg, #fffaf4 0%, #f4eadf 100%);
  color: var(--og-ink);
}

body.famylio-marketing #modules::before {
  background: radial-gradient(circle, rgba(236, 82, 12, .10) 0%, transparent 68%);
}

body.famylio-marketing #modules .section-label {
  color: var(--og-terracotta);
}

body.famylio-marketing #modules h2.section-title {
  color: var(--og-ink);
}

body.famylio-marketing #modules h2.section-title em {
  color: var(--og-terracotta);
}

body.famylio-marketing #modules .section-intro {
  color: var(--og-ink-soft);
}

body.famylio-marketing .modules-nav {
  gap: 10px;
  margin-bottom: 34px;
}

body.famylio-marketing .mod-tab {
  background: rgba(255, 255, 255, .72);
  color: var(--og-ink-soft);
  border-color: rgba(74, 92, 66, .14);
  box-shadow: 0 8px 22px rgba(48, 39, 28, .05);
  font-weight: 700;
}

body.famylio-marketing .mod-tab:hover {
  background: #fff;
  color: var(--og-ink);
  border-color: rgba(236, 82, 12, .22);
}

body.famylio-marketing .mod-tab.active {
  background: var(--og-terracotta);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(236, 82, 12, .24);
}

body.famylio-marketing .mod-tab-letter,
body.famylio-marketing .mod-tab-count {
  background: rgba(31, 43, 36, .08);
  color: var(--og-moss);
}

body.famylio-marketing .mod-tab.active .mod-tab-letter,
body.famylio-marketing .mod-tab.active .mod-tab-count {
  background: rgba(255, 255, 255, .24);
  color: #fff;
}

body.famylio-marketing .modules-grid {
  gap: 16px;
}

body.famylio-marketing .mod-card {
  opacity: 1;
  transform: none;
  min-height: 216px;
  padding: 22px 20px;
  background: linear-gradient(180deg, #fffdf9 0%, #fff7ee 100%);
  border: 1px solid rgba(74, 92, 66, .14) !important;
  box-shadow: 0 18px 42px rgba(48, 39, 28, .08) !important;
}

body.famylio-marketing #modules .mod-card.reveal {
  opacity: 1;
  transform: none;
  transition: background .28s ease, border-color .28s ease, box-shadow .28s ease, transform .28s ease;
}

body.famylio-marketing .mod-card:hover {
  background: #fff;
  border-color: rgba(236, 82, 12, .24) !important;
  box-shadow: 0 24px 58px rgba(48, 39, 28, .14) !important;
}

body.famylio-marketing .mod-card-group {
  background: rgba(236, 82, 12, .08);
  border-color: rgba(236, 82, 12, .12);
  color: #8a4a26;
}

body.famylio-marketing .mod-card-group span {
  background: rgba(236, 82, 12, .16);
  color: var(--og-terracotta-dark);
}

body.famylio-marketing .mod-card-icon {
  border: 1px solid rgba(48, 39, 28, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .48);
}

body.famylio-marketing .mod-card-icon i {
  opacity: 1;
  filter: none;
}

body.famylio-marketing .mod-card-name {
  color: var(--og-ink);
  font-size: 15px;
  line-height: 1.25;
  margin-bottom: 8px;
}

body.famylio-marketing .mod-card-desc {
  color: var(--og-ink-soft);
  font-size: 12.5px;
  line-height: 1.65;
}

body.famylio-marketing .mod-card-tag {
  width: 100%;
  margin-top: 14px;
  border: 1px solid rgba(63, 93, 72, .12);
  background: rgba(63, 93, 72, .10);
  color: var(--og-moss);
  text-align: left;
  letter-spacing: 0;
}

body.famylio-marketing .mod-card-tag.tag-soon {
  background: rgba(215, 168, 59, .14);
  color: #82621e;
  border-color: rgba(215, 168, 59, .22);
}

body.famylio-marketing .mod-card-tag.tag-beta {
  background: rgba(111, 130, 108, .12);
  color: #52644f;
  border-color: rgba(111, 130, 108, .18);
}

@media (min-width: 821px) {
  body.famylio-marketing .sticky-trial {
    left: auto;
    right: 92px;
    bottom: 18px;
    transform: translateY(120px) scale(.96);
    border-radius: 12px;
    padding: 12px 16px;
    gap: 12px;
  }

  body.famylio-marketing .sticky-trial.show {
    transform: translateY(0) scale(1);
  }
}

.ylio-product {
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(74, 92, 66, .12);
}

footer {
  background: #1f2b24;
}

.famylio-marketing .cc-overlay.cc-show {
  opacity: 0;
  pointer-events: none;
}

.famylio-marketing .cc-overlay,
.famylio-marketing .cc-banner {
  display: none !important;
}

.famylio-marketing .cc-banner {
  left: auto;
  right: 24px;
  bottom: 24px;
  width: min(430px, calc(100% - 32px));
  padding: 0;
}

.famylio-marketing .cc-card {
  max-width: none;
  margin: 0;
  border-radius: 8px !important;
  box-shadow: 0 20px 54px rgba(31, 43, 36, .18) !important;
}

@media (max-width: 1100px) {
  .og-moments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .og-product-line {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .og-hero {
    min-height: 88svh;
    padding: 104px 5% 44px;
    background-position: 58% center;
  }

  .og-hero h1 {
    font-size: 42px;
    line-height: 1.05;
  }

  .og-hero-sub,
  .og-section .og-lead {
    font-size: 16px;
  }

  .og-section {
    padding: 68px 5%;
  }

  .og-section h2 {
    font-size: 34px;
  }

  .og-problem-grid,
  .og-trust-band {
    grid-template-columns: 1fr;
  }

  .og-moments-grid {
    grid-template-columns: 1fr;
  }

  .og-moment {
    min-height: auto;
  }

  .famylio-marketing .cc-banner {
    left: 16px;
    right: 16px;
    bottom: 8px;
    width: auto;
  }
}

@media (max-width: 520px) {
  .og-hero {
    min-height: 86svh;
    padding-top: 82px;
    background-position: 65% center;
  }

  .og-hero h1 {
    font-size: 34px;
  }

  .og-cta-row a {
    width: 100%;
  }

  .og-proof-strip {
    display: none;
  }

  .famylio-marketing .cc-card {
    max-height: none;
    overflow: auto;
    padding: 12px !important;
  }

  .famylio-marketing .cc-head {
    margin-bottom: 6px;
    gap: 8px;
  }

  .famylio-marketing .cc-icon {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .famylio-marketing .cc-title {
    font-size: 14px;
  }

  .famylio-marketing .cc-text {
    font-size: 11px;
    line-height: 1.28;
    max-height: 44px;
    overflow: hidden;
    margin-bottom: 8px;
  }

  .famylio-marketing .cc-toggles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 8px;
  }

  .famylio-marketing .cc-toggle {
    min-height: 30px;
    padding: 5px 7px;
    font-size: 10px;
  }

  .famylio-marketing .cc-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .famylio-marketing .cc-btn {
    width: auto;
    min-height: 34px;
    padding: 6px;
    font-size: 11px;
  }

  .famylio-marketing .cc-btn-reject {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .og-hero *,
  .og-section *,
  .av-card,
  .mod-card,
  .ylio-card,
  .testi-card {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
