/**
 * Mezabo - DA « Pastille » (2026)
 * Chargé après toutes les feuilles du thème : logo, mascotte, header, footer et home v3.
 * Couleurs : variables de mezabo.css (--mz-marine, --mz-vert, --mz-menthe, --mz-petrole, --mz-brume).
 */

/* Accessibilité : texte réservé aux lecteurs d'écran */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* ---------- Logo ---------- */
.mz-logo {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--mz-logo-size, 36px) * 0.24);
  line-height: 1;
  text-decoration: none;
}
.mz-logo__symbol { flex: none; display: block; }
.mz-logo__word {
  font-family: Poppins, system-ui, sans-serif;
  font-weight: 700;
  font-size: calc(var(--mz-logo-size, 36px) * 0.78);
  letter-spacing: -0.035em;
  color: var(--mz-marine);
}
.mz-logo--light .mz-logo__word { color: #fff; }
.mz-nav-logo { display: inline-flex; align-items: center; text-decoration: none !important; }
.mz-footer-brand a { text-decoration: none !important; }

/* ---------- Mascotte ---------- */
.mz-mascot { display: block; max-width: 100%; height: auto; }

/* ---------- Boutons : moins « pilule », plus pro ---------- */
body.mz-landing-home .mz-hero-btn-primary,
body.mz-landing-home .mz-hero-btn-secondary,
body.mz-landing-home .mz-left-pill-btn,
.mz-nav-cta {
  border-radius: 12px !important;
}
body.mz-landing-home .mz-hero-btn-primary:hover { background: var(--mz-vert-fonce) !important; }

/* ---------- Footer marine ---------- */
.mz-footer-section {
  background: var(--mz-marine);
  border-top: 0;
  color: #CBD5E1;
}
.mz-footer-desc,
.mz-footer-links a,
.mz-footer-hours,
.mz-footer-ai-label,
.mz-footer-legal a { color: #CBD5E1; }
.mz-footer-copy { color: #94A3B8; }
.mz-footer-col h3,
.mz-footer-help-phone a,
.mz-footer-ai-link { color: #fff; }
.mz-footer-links a:hover,
.mz-footer-legal a:hover,
.mz-footer-ai-link:hover { color: var(--mz-menthe); }
.mz-footer-help-phone svg { color: var(--mz-menthe); }
.mz-footer-call {
  background: var(--mz-petrole);
  border-color: var(--mz-petrole);
  color: #fff;
}
.mz-footer-call:hover { background: var(--mz-petrole-fonce); color: #fff; }
.mz-footer-social a { color: #fff; }
.mz-footer-social a:hover { color: var(--mz-menthe); }
.mz-footer-bottom { border-top-color: #1E293B; }

/* ---------- Home : hero ---------- */
.mz-hero-scene {
  background: var(--mz-menthe-clair);
  border-radius: 24px;
  padding: 32px 24px;
}
.mz-hero-scene .mz-hero-blob { display: none; }
.mz-hero-visual {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.mz-hero-phone.mz-hero-phone--mascot {
  width: auto !important;
  max-width: 250px;
  transform: none !important;
  box-shadow: none !important;
  background: none !important;
}
.mz-hero-cards {
  position: static !important;
  width: 250px !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  padding-top: 0 !important;
  display: flex !important;
  flex-direction: column;
  gap: 0 !important;
  background: #fff;
  border: 1px solid #D1E7DD;
  border-radius: 14px;
  overflow: hidden;
}
.mz-hero-cards__head {
  margin: 0;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--mz-texte-2);
  border-bottom: 1px solid var(--mz-ligne);
}
.mz-hero-offer-card,
.mz-hero-offer-card.shift-1,
.mz-hero-offer-card.shift-2,
.mz-hero-offer-card.shift-3,
.mz-hero-offer-card:hover {
  position: static !important;
  transform: none !important;
  margin: 0 !important;
  width: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--mz-ligne) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff;
}
.mz-hero-offer-card:first-of-type { background: #F0FDF7; }
.mz-hero-offer-card:last-child { border-bottom: 0 !important; }
body.mz-landing-home .mz-hero-offer-card .mz-offer-bar {
  background: none !important;
  color: var(--mz-vert) !important;
  padding: 0 !important;
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}
.mz-hero-offer-card .mz-offer-top { padding: 0 !important; background: none !important; }
.mz-hero-offer-card .mz-offer-top img { max-height: 22px; width: auto; }
.mz-hero-offer-card .mz-offer-body,
body.mz-landing-home .mz-hero-offer-card .mz-offer-body,
.mz-hero-cards .mz-offer-body {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 !important;
}
.mz-hero-offer-card .mz-offer-data { font-size: 12px; color: var(--mz-texte-2); font-weight: 500; }
.mz-hero-offer-card .mz-offer-amt { font-size: 20px; color: var(--mz-marine) !important; }
.mz-hero-offer-card:first-of-type .mz-offer-amt { color: var(--mz-vert) !important; }

/* ---------- Home : bandeau de confiance ---------- */
.mz-trust-bar {
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  box-shadow: none !important;
}
.mz-trust-title { font-size: 18px !important; }

/* ---------- Home : services ---------- */
.mz-services-head { letter-spacing: -0.025em; }
.mz-service-card { border-radius: 18px !important; overflow: hidden; }
.mz-service-media {
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
  padding: 20px 0 8px;
  min-height: 0 !important;
  height: auto !important;
}
.mz-service-media--teal { background: var(--mz-menthe-clair) !important; }
.mz-service-media--blue { background: #EFF6FF !important; }
.mz-service-media--orange { background: #FFFBEB !important; }
.mz-service-media--purple { background: #F5F3FF !important; }
.mz-service-link,
.mz-service-link.teal,
.mz-service-link.orange { color: var(--mz-vert) !important; }

/* ---------- Home : assistant ---------- */
.mz-robot-img.mz-robot-img--mascot { width: auto !important; height: auto !important; margin-top: 16px; }

/* ---------- Home : MezaMobile, bloc vert franc ---------- */
.mz-mezamobile-banner,
.mz-mm-banner,
.mz-mezamobile-section .mz-mm-card {
  background: var(--mz-vert) !important;
}

/* ---------- Home : rappel ---------- */
.mz-callback-photo.mz-callback-photo--mascot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mz-menthe-clair) !important;
}
.mz-callback-submit { background: var(--mz-petrole) !important; border-radius: 12px !important; }
.mz-callback-submit:hover { background: var(--mz-petrole-fonce) !important; }

/* ---------- Home : newsletter ---------- */
.mz-nl-icon.mz-nl-icon--mascot .mz-mascot { width: 110px !important; height: 110px !important; }
.mz-nl-icon.mz-nl-icon--mascot {
  width: auto !important;
  height: auto !important;
  background: none !important;
  padding: 0 !important;
}
.mz-nl-btn { background: var(--mz-menthe) !important; color: var(--mz-marine) !important; border-radius: 12px !important; }

@media (max-width: 760px) {
  .mz-hero-cards { width: 100%; }
  .mz-hero-phone.mz-hero-phone--mascot { max-width: 180px; }
  .mz-callback-photo--mascot .mz-mascot { width: 140px; height: 140px; }
}

/* Ajustements de spécificité (landing-home.css utilise body.mz-landing-home + !important) */
body.mz-landing-home .mz-service-link,
body.mz-landing-home .mz-service-link.teal,
body.mz-landing-home .mz-service-link.orange { color: var(--mz-vert) !important; }
body.mz-landing-home .mz-nl-icon.mz-nl-icon--mascot { flex: 0 0 96px !important; width: 96px !important; height: 96px !important; }
body.mz-landing-home .mz-nl-icon.mz-nl-icon--mascot .mz-mascot { width: 96px !important; height: 96px !important; }

/* ---------- 404 : la mascotte cherche la page ---------- */
.mz-error-visual__mascot { position: relative; z-index: 1; display: flex; justify-content: center; transform: translateX(-90px); }
.mz-error-visual__card { z-index: 2; }
.mz-error-visual__mascot .mz-mascot { width: 260px; height: 260px; }
@media (max-width: 760px) { .mz-error-visual__mascot .mz-mascot { width: 180px; height: 180px; } }

/* ---------- Home : barre des opérateurs (tuiles homogènes, logos d'origine non recadrés) ---------- */
body.mz-landing-home .mz-op-bar { padding: 40px 0 44px !important; }
body.mz-landing-home .mz-op-bar__title {
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: .08em !important;
  color: var(--mz-texte-2) !important;
  text-align: center !important;
  margin: 0 0 20px !important;
}
body.mz-landing-home .mz-op-bar__track { gap: 14px !important; align-items: stretch !important; }
body.mz-landing-home .mz-op-bar__card {
  width: 156px !important;
  gap: 10px !important;
  transition: transform .2s ease !important;
}
body.mz-landing-home .mz-op-bar__circle,
body.mz-landing-home .mz-op-bar__card--contain .mz-op-bar__circle {
  width: 156px !important;
  height: 92px !important;
  border-radius: 16px !important;
  background: #fff !important;
  border: 1px solid var(--mz-ligne) !important;
  box-shadow: none !important;
  padding: 14px 18px !important;
  box-sizing: border-box !important;
  transition: border-color .2s ease, box-shadow .2s ease !important;
}
body.mz-landing-home .mz-op-bar__circle img,
body.mz-landing-home .mz-op-bar__card--contain .mz-op-bar__circle img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 60px !important;
  object-fit: contain !important;
  border-radius: 8px !important;
}
body.mz-landing-home .mz-op-bar__fallback { color: var(--mz-marine) !important; font-size: 13px !important; }
body.mz-landing-home .mz-op-bar__card:hover .mz-op-bar__circle,
body.mz-landing-home .mz-op-bar__card:focus-visible .mz-op-bar__circle {
  border-color: var(--mz-vert) !important;
  box-shadow: 0 8px 20px -10px rgba(15, 23, 42, .25) !important;
}
body.mz-landing-home .mz-op-bar__label {
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--mz-texte-2) !important;
  max-width: 156px !important;
}
@media (max-width: 768px) {
  body.mz-landing-home .mz-op-bar__card { width: 124px !important; }
  body.mz-landing-home .mz-op-bar__circle,
  body.mz-landing-home .mz-op-bar__card--contain .mz-op-bar__circle { width: 124px !important; height: 76px !important; padding: 10px 14px !important; }
  body.mz-landing-home .mz-op-bar__circle img { max-height: 48px !important; }
  body.mz-landing-home .mz-op-bar__label { font-size: 12px !important; max-width: 124px !important; }
}

/* ---------- Pages simples (page.php : guides APN, pages opérateurs reprises de l'ancien site…) ---------- */
.mz-page { padding: 0 0 72px; }
.mz-page > .mz-breadcrumb { width: min(100% - 2rem, 820px); margin: 24px auto 0; font-size: 13px; }
.mz-breadcrumb__list li + li::before { content: "›"; margin-right: .5rem; color: #94A3B8; }
.mz-breadcrumb a { color: var(--mz-texte-2); }
.mz-breadcrumb a:hover { color: var(--mz-vert); }
.mz-page__content.mz-container { width: min(100% - 2rem, 820px); margin: 0 auto; }
.mz-page__title {
  margin: 16px 0 28px;
  font-family: Poppins, system-ui, sans-serif;
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--mz-marine);
}
.mz-page__body { font-family: Poppins, system-ui, sans-serif; font-size: 17px; line-height: 1.75; color: #334155; }
.mz-page__body h1, .mz-page__body h2, .mz-page__body h3, .mz-page__body h4 {
  font-family: Poppins, system-ui, sans-serif;
  color: var(--mz-marine) !important;
  text-align: left !important;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 2em 0 .6em;
}
.mz-page__body h1 { font-size: 30px !important; font-weight: 700; margin-top: 0; }
.mz-page__body h2 { font-size: 26px !important; font-weight: 700; }
.mz-page__body h3 { font-size: 20px !important; font-weight: 600; }
.mz-page__body h4 { font-size: 17px !important; font-weight: 600; }
.mz-page__body h1 *, .mz-page__body h2 *, .mz-page__body h3 * { color: inherit !important; font-size: inherit !important; }
.mz-page__body p { margin: 0 0 1.1em; text-align: left !important; }
.mz-page__body a { color: var(--mz-vert); text-decoration: underline; text-underline-offset: 2px; }
.mz-page__body ul, .mz-page__body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.mz-page__body li { margin: .35em 0; }
.mz-page__body img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  margin: 1.6em auto;
  border-radius: 12px;
}
.mz-page__body figure { margin: 1.6em 0; }
.mz-page__body table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; display: block; overflow-x: auto; }
.mz-page__body th, .mz-page__body td { border: 1px solid var(--mz-ligne); padding: 10px 12px; text-align: left; }
.mz-page__body th { background: var(--mz-brume); color: var(--mz-marine); font-weight: 600; }
.mz-page__body blockquote { margin: 1.5em 0; padding: 16px 20px; background: var(--mz-menthe-clair); border-radius: 12px; }
.mz-page__body details { border: 1px solid var(--mz-ligne); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
.mz-page__body summary { cursor: pointer; font-weight: 600; color: var(--mz-marine); }
@media (max-width: 760px) {
  .mz-page__body { font-size: 16px; }
  .mz-page__body h2 { font-size: 22px !important; }
  .mz-page__body img { max-height: 300px; }
}
.mz-page__body p:empty { display: none; }
.mz-page__content--own-title .mz-page__body h1:first-of-type {
  margin: 16px 0 28px;
  font-size: clamp(30px, 4.4vw, 44px) !important;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.mz-legacy-button { margin: 1.4em 0; }
.mz-page__body a.mz-btn,
.mz-legacy-button a.mz-btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 12px;
  background: var(--mz-vert) !important;
  color: #fff !important;
  font-weight: 600;
  text-decoration: none !important;
}
.mz-page__body a.mz-btn:hover,
.mz-legacy-button a.mz-btn:hover { background: var(--mz-vert-fonce) !important; }
/* Tableaux de l'ancien site : couleurs d'origine (bleu, vert…) remplacées par la charte */
.mz-page__body table td, .mz-page__body table th,
.mz-page__body table td *, .mz-page__body table th * { background-color: transparent !important; color: inherit !important; }
.mz-page__body table tr:first-child td, .mz-page__body table th { background-color: var(--mz-brume) !important; color: var(--mz-marine) !important; font-weight: 600; }

/* ---------- Pages « bientôt disponible » (eSIM, gaz et électricité) ---------- */
.mz-lead-page { padding: 32px 0 80px; background: linear-gradient(180deg, var(--mz-menthe-clair) 0, #fff 420px); font-family: Poppins, system-ui, sans-serif; }
.mz-lead-page__grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.mz-lead-page__intro { flex: 1 1 460px; min-width: 0; }
.mz-lead-page .mz-breadcrumb { margin-bottom: 24px; font-size: 13px; }
.mz-lead-page__kicker { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mz-vert); margin-bottom: 12px; }
.mz-lead-page__title { margin: 0 0 18px; font-size: clamp(32px, 4.6vw, 48px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; color: var(--mz-marine); }
.mz-lead-page__lead { margin: 0 0 22px; font-size: 18px; line-height: 1.6; color: var(--mz-texte-2); max-width: 560px; }
.mz-lead-page__points { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: var(--mz-marine); }
.mz-lead-page__points li { display: flex; align-items: center; gap: 10px; }
.mz-lead-page__points .mz-check-svg { color: var(--mz-vert); }
.mz-lead-page__mascot .mz-mascot { width: 200px; height: 200px; }
.mz-lead-page__card { flex: 1 1 380px; min-width: 0; background: #fff; border: 1px solid var(--mz-ligne); border-radius: 20px; padding: 28px; box-shadow: 0 24px 48px -28px rgba(15, 23, 42, .35); }
.mz-lead-page__card-title { margin: 0 0 6px; font-size: 22px; font-weight: 700; color: var(--mz-marine); }
.mz-lead-page__card-sub { margin: 0 0 20px; font-size: 14px; color: var(--mz-texte-2); }
.mz-lead-page__card .mz-form { display: flex; flex-direction: column; gap: 14px; }
.mz-lead-page__card .mz-form input:not([type=hidden]), .mz-lead-page__card .mz-form textarea { width: 100%; box-sizing: border-box; padding: 13px 14px; border: 1.5px solid #CBD5E1; border-radius: 10px; font: inherit; font-size: 15px; }
.mz-lead-page__card .mz-form textarea { min-height: 96px; }
.mz-lead-page__card .mz-form label { font-size: 14px; font-weight: 500; color: var(--mz-marine); }
.mz-lead-page__card .mz-form button[type=submit] { padding: 15px; border: 0; border-radius: 12px; background: var(--mz-petrole); color: #fff; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; }
.mz-lead-page__card .mz-form button[type=submit]:hover { background: var(--mz-petrole-fonce); }
@media (max-width: 760px) { .mz-lead-page__mascot { display: none; } }

/* Pages « bientôt » : offres partenaires à souscrire directement */
.mz-lead-partners { padding: 8px 0 56px; }
.mz-lead-partners__title { font-size: 1.35rem; margin: 0 0 16px; color: var(--mz-marine); }
.mz-lead-partners__grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.mz-lead-partner { background: #fff; border: 1px solid var(--mz-ligne); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.mz-lead-partner__name { font-size: 1.15rem; margin: 0; color: var(--mz-marine); }
.mz-lead-partner__text { margin: 0; color: var(--mz-texte-2); flex: 1; }
.mz-lead-partner__cta { align-self: flex-start; background: var(--mz-vert); border-color: var(--mz-vert); color: #fff; }
.mz-lead-partner__cta:hover, .mz-lead-partner__cta:focus-visible { background: var(--mz-vert-fonce); border-color: var(--mz-vert-fonce); color: #fff; }
.mz-lead-partners__note { font-size: .85rem; color: var(--mz-texte-2); margin: 14px 0 0; }
.mz-lead-page__partner-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 18px 0 6px; }
.mz-lead-page__partner-note { font-size: .85rem; color: var(--mz-texte-2); flex: 1 1 220px; }
