/* ━━━━ LANDING PAGES — SHARED HEADER & FOOTER ━━━━
   Header v4 design + multi-column footer.
   Requires Alpine.js for mobile burger toggle.
*/

:root {
  --mn-bleu: #283489;
  --mn-orange: #EE7411;
  --mn-jaune: #CBD000;
  --mn-jaune-dark: #8a9200;
  --nav-h: 58px;
}

/* ══════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════ */
.mn-header {
  background: #fff;
  border-bottom: 1px solid #eaeaea;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  font-family: 'Montserrat', system-ui, sans-serif;
  overflow: visible;
}
.mn-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 18px;
  flex-shrink: 0;
}
.mn-logo img {
  height: 36px;
  width: auto;
}
.mn-nav-left {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  border-right: 1px solid #eaeaea;
  padding-right: 4px;
  margin-right: 4px;
}
.mn-nav-right {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  flex: 1;
}
.mn-item {
  position: relative;
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.mn-link {
  font-size: 12.5px;
  font-weight: 600;
  color: #222;
  text-decoration: none;
  padding: 0 11px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s;
  position: relative;
}
.mn-link:hover { color: var(--mn-orange); }
.mn-link.action-link { color: var(--mn-bleu); font-weight: 700; }
.mn-link.action-link:hover { color: var(--mn-orange); }
.mn-link.finance-link { color: var(--mn-jaune-dark); font-weight: 700; }
.mn-link.finance-link:hover { color: #6b7400; }
.mn-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 11px; right: 11px;
  height: 2.5px;
  background: var(--mn-orange);
  transform: scaleX(0);
  transition: transform .18s;
  border-radius: 2px 2px 0 0;
}
.mn-item:hover .mn-link::after,
.mn-link.active::after { transform: scaleX(1); }
.mn-link.active { color: var(--mn-orange); }
.mn-link.finance-link.active { color: var(--mn-jaune-dark); }
.mn-link.finance-link::after { background: var(--mn-jaune); }
.badge-cpm {
  font-size: 9px;
  font-weight: 700;
  background: #f5f5c8;
  color: var(--mn-jaune-dark);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 3px;
  letter-spacing: .03em;
}
.mn-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.btn-ghost {
  font-size: 12.5px;
  font-weight: 600;
  color: #555;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 8px;
  font-family: 'Montserrat', system-ui;
  text-decoration: none;
}
.btn-ghost:hover { color: var(--mn-bleu); }
.btn-primary {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: var(--mn-orange);
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  cursor: pointer;
  font-family: 'Montserrat', system-ui;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.btn-primary:hover { background: #d4660f; }
.nav-sep {
  width: 1px;
  height: 22px;
  background: #e0e0e0;
  margin: 0 2px;
}

/* ── Burger (mobile) ── */
.mn-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}
.mn-drawer {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 12px 20px 16px;
  flex-direction: column;
  gap: 2px;
  z-index: 99;
}
.mn-drawer__link {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  padding: 10px 0;
  text-decoration: none;
}
.mn-drawer__link:hover { color: var(--mn-orange); }
.mn-drawer__link--action { color: var(--mn-bleu); font-weight: 700; }
.mn-drawer__link--finance { color: var(--mn-jaune-dark); font-weight: 700; }
.mn-drawer__sep {
  border: none;
  border-top: 1px solid #eee;
  margin: 6px 0;
}
.mn-drawer__cta {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--mn-orange);
  padding: 10px 20px;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  margin-top: 4px;
}
[x-cloak] { display: none !important; }

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */

/* ── CTA band ── */
.footer-cta {
  background: var(--mn-orange);
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: 'Montserrat', system-ui, sans-serif;
}
.footer-cta h2 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.footer-cta p {
  font-size: 13px;
  color: rgba(255,255,255,.85);
}
.footer-cta-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.btn-white {
  background: #fff;
  color: var(--mn-orange);
  font-size: 12.5px;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 7px;
  text-decoration: none;
  font-family: 'Montserrat', system-ui;
  white-space: nowrap;
  transition: opacity .15s;
}
.btn-white:hover { opacity: .88; }
.btn-outline-white {
  background: transparent;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 7px;
  text-decoration: none;
  font-family: 'Montserrat', system-ui;
  border: 1.5px solid rgba(255,255,255,.5);
  white-space: nowrap;
  transition: border-color .15s;
}
.btn-outline-white:hover { border-color: #fff; }

/* ── Body ── */
.footer-body {
  background: var(--mn-bleu);
  padding: 44px 48px 32px;
  position: relative;
  overflow: hidden;
  font-family: 'Montserrat', system-ui, sans-serif;
}
.footer-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("../img/landing/trame-megothon-white-tile.767f99008af0.png");
  background-repeat: repeat;
  background-size: 520px auto;
  opacity: .08;
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  position: relative;
}
.footer-logo {
  display: block;
  text-decoration: none;
  margin-bottom: 8px;
}
.footer-logo img {
  height: 40px;
  width: auto;
}
.footer-tagline {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  font-style: italic;
  margin-bottom: 22px;
  line-height: 1.6;
}
.footer-socials {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  transition: background .15s;
  flex-shrink: 0;
}
.social-btn:hover { background: var(--mn-orange); }
.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--mn-jaune);
  text-decoration: none;
  transition: opacity .15s;
}
.footer-email:hover { opacity: .8; }
.footer-col h4 {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 12.5px;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-weight: 600;
  transition: color .15s;
}
.footer-col ul li a:hover { color: #fff; }
.footer-col ul li a.highlight { color: var(--mn-jaune); }
.footer-col ul li a.highlight:hover { color: #fff; }
.footer-sep {
  height: 1px;
  background: rgba(255,255,255,.1);
  margin: 32px 0;
  position: relative;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}
.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-legal a {
  font-size: 11.5px;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  font-weight: 600;
  transition: color .15s;
}
.footer-legal a:hover { color: rgba(255,255,255,.75); }
.footer-copy {
  font-size: 11.5px;
  color: rgba(255,255,255,.3);
  font-weight: 600;
}

/* ══════════════════════════════════════════════════
   FILIGRANE MN — utility class for blue backgrounds
══════════════════════════════════════════════════ */
.mn-filigrane { position: relative; overflow: hidden; }
.mn-filigrane::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("../img/landing/trame-megothon-white-tile.767f99008af0.png");
  background-repeat: repeat;
  background-size: 520px auto;
  opacity: .08;
  pointer-events: none;
  z-index: 0;
}
.mn-filigrane > * { position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Header — hide desktop nav, show burger */
  .mn-header { padding: 0 16px; }
  .mn-nav-left, .mn-nav-right, .mn-actions { display: none; }
  .mn-burger { display: block; }
  .mn-drawer:not([x-cloak]) { display: flex; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-cta,
  .footer-body { padding-left: 28px; padding-right: 28px; }
}

@media (max-width: 560px) {
  /* Footer stacks to single column */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-cta,
  .footer-body { padding-left: 20px; padding-right: 20px; }
  .footer-cta { flex-direction: column; align-items: flex-start; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
