/* ━━━━ 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;
  }
}

/* ══════════════════════════════════════════════════
   EVENT CARD (shared by /evenements/liste/ and home feed)
══════════════════════════════════════════════════ */
.ev-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid #e7e7ec;
  border-radius: 10px;
  overflow: hidden;
  font-family: 'Montserrat', system-ui, sans-serif;
  color: #222;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.ev-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.07);
}
.ev-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #fafafa;
  overflow: hidden;
}
.ev-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ev-card__media-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #283489 0%, #4053b5 100%);
  color: rgba(255,255,255,.55);
}
.ev-card__badge {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 10.5px; font-weight: 700;
  padding: 4px 9px;
  border-radius: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ev-card__badge--soon { background: #e8f3ff; color: #283489; }
.ev-card__badge--live { background: #ffe8d1; color: #ee7411; }
.ev-card__badge--done { background: #ececef; color: #6a6a76; }
.ev-card__body {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; flex: 1;
}
.ev-card__title {
  font-size: 15.5px; font-weight: 700;
  color: #283489;
  margin-bottom: 8px;
  line-height: 1.35;
}
.ev-card__meta {
  font-size: 12.5px; color: #555;
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 4px;
}
.ev-card__meta svg { color: #ee7411; flex-shrink: 0; }
.ev-card__org {
  font-size: 11.5px; color: #767676;
  margin-top: 8px;
}
.ev-card__foot {
  margin-top: auto; padding-top: 14px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid #e7e7ec;
  font-size: 12.5px;
}
.ev-card__participants {
  display: flex; align-items: center; gap: 5px;
  color: #555;
}
.ev-card__participants svg { color: #283489; }
.ev-card__cta {
  color: #ee7411;
  font-weight: 700;
}

/* ══════════════════════════════════════════════════
   HOME FEED SECTION (brief 5)
══════════════════════════════════════════════════ */
.feed-section { padding: 48px 48px; }
.feed-section__head {
  max-width: 1100px;
  margin: 0 auto 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.feed-section__head .s-title { margin-bottom: 0; }
.feed-section__all {
  font-size: 13px;
  font-weight: 700;
  color: #ee7411;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.feed-section__all:hover { color: #d4660f; }
.feed-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) {
  .feed-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .feed-section { padding: 36px 20px; }
  .feed-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ══════════════════════════════════════════════════
   MMOIF FOCUS CARD (used on home page and QSN)
   "Mon Mégot Où Il Faut" promo block — orange banner,
   three axes (Sensibiliser / Engager / Soutenir),
   campaign images, CTA to the external site.
══════════════════════════════════════════════════ */
.focus-card {
  background: #fff;
  border-radius: 12px;
  border: .5px solid #ddd;
  overflow: hidden;
  margin-bottom: 24px;
  font-family: 'Montserrat', system-ui, sans-serif;
  color: #333;
}
.focus-head {
  background: #ee7411;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.focus-head .hashtag {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}
.focus-head .sub {
  font-size: 12px;
  color: rgba(255,255,255,.85);
  margin-top: 2px;
  font-style: italic;
}
.focus-badge {
  margin-left: auto;
  background: #fff;
  color: #ee7411;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.focus-body { padding: 24px 28px; }
.focus-body .intro {
  font-size: 14px;
  color: #444;
  line-height: 1.75;
  margin-bottom: 22px;
  font-style: italic;
  border-left: 3px solid #ee7411;
  padding-left: 16px;
}
.focus-axes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 700px) {
  .focus-axes { grid-template-columns: 1fr; }
}
.axe {
  background: #F5F5F5;
  border-radius: 8px;
  padding: 16px 18px;
}
.axe h4 {
  font-size: 12px;
  font-weight: 700;
  color: #ee7411;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
}
.axe p {
  font-size: 12px;
  color: #555;
  line-height: 1.6;
}
.focus-body .conclusion {
  font-size: 13px;
  color: #444;
  line-height: 1.75;
  padding: 16px 18px;
  background: #FFF3E0;
  border-radius: 8px;
  border-left: 3px solid #ee7411;
}
