/* =========================================================================
   Groupe Mira Express : marque (bleu marine + or) et sections du site
   S'appuie sur le thème Kadence ; ne change que les couleurs et les composants.
   ========================================================================= */

body {
	--global-palette1: #0b1a33;   /* bleu marine : liens, boutons */
	--global-palette2: #d4af37;   /* or */
	--global-palette3: #0b1a33;   /* titres */
	--global-palette4: #1f2937;   /* texte */
	--global-palette5: #4b5563;
	--global-palette6: #6b7280;
	--global-palette7: #eef2f7;
	--global-palette8: #f6f8fb;
	--global-palette9: #ffffff;
	--mx-navy: #0b1a33;
	--mx-navy-2: #142b52;
	--mx-navy-3: #1e3a66;
	--mx-blue: #1f5fbf;
	--mx-blue-2: #3b82f6;
	--mx-wa: #1fa855;
	--mx-gold: #f4b82c;
	--mx-gold-2: #d99f17;
	--mx-ink: #1f2937;
	--mx-muted: #6b7280;
	--mx-line: rgba(11, 26, 51, 0.12);
	--mx-soft: #f3f6fa;
}

/* ---------- En-tête et pied de page Kadence aux couleurs de la marque ---------- */
.site-top-header-wrap, .site-header-row-container.site-top-header-wrap { background: var(--mx-navy); }
.site-top-header-wrap, .site-top-header-wrap a { color: rgba(255,255,255,.85); }
#masthead .site-main-header-wrap { box-shadow: 0 2px 14px rgba(11,26,51,.08); }
.header-navigation .menu > li > a, .header-navigation .header-menu-container ul li a { font-weight: 600; }
.header-navigation .menu > li.mx-menu-cta > a {
	background: var(--mx-gold); color: var(--mx-navy) !important; padding: .7em 1.3em; border-radius: 8px; margin-left: .8em;
}
.header-navigation .menu > li.mx-menu-cta > a:hover { background: var(--mx-gold-2); }
#colophon, .site-footer-wrap { background: var(--mx-navy); color: rgba(255,255,255,.78); }
#colophon a, .site-footer-wrap a { color: var(--mx-gold); }
#colophon .site-info, #colophon .footer-html { color: rgba(255,255,255,.7); }

/* Les pages utilisent leur propre bandeau : on masque le titre standard du thème */
body.page .entry-hero, body.page .entry-hero-container-inner, body.page header.entry-header, body.page .entry-header.page-title { display: none; }
body.page .content-container.site-container { max-width: none; padding: 0; }
body.page .content-wrap, body.page .entry-content-wrap, body.page .entry.single-entry { padding: 0; margin: 0; box-shadow: none; background: transparent; }
body.page .entry-content { margin: 0; }
body.page .content-area { margin-top: 0; margin-bottom: 0; }
body.page .entry-content > * { margin-top: 0; margin-bottom: 0; }

/* ---------- Sections pleine largeur ---------- */
.mx-full { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; box-sizing: border-box; }
.mx-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.mx-section { padding: 84px 0; }
.mx-section--soft { background: var(--mx-soft); }
.mx-section--navy { background: var(--mx-navy); color: #fff; }
.mx-section--navy h2, .mx-section--navy h3 { color: #fff; }
.mx-eyebrow { display: inline-block; color: var(--mx-gold); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; margin-bottom: 14px; }
.mx-title { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2; font-weight: 800; color: var(--mx-navy); margin: 0 0 14px; }
.mx-lead { font-size: 1.12rem; color: var(--mx-muted); max-width: 720px; margin: 0 auto 8px; line-height: 1.7; }
.mx-center { text-align: center; }

/* ---------- Boutons ---------- */
.mx-btn, a.mx-btn { display: inline-block; padding: 14px 28px; border-radius: 10px; font-weight: 700; text-decoration: none !important; border: 2px solid transparent; transition: transform .15s, background .15s; cursor: pointer; font-size: 1rem; line-height: 1.2; }
.mx-btn:hover { transform: translateY(-2px); }
.mx-btn--gold { background: var(--mx-gold); color: var(--mx-navy) !important; box-shadow: 0 8px 20px rgba(212,175,55,.35); }
.mx-btn--gold:hover { background: var(--mx-gold-2); }
.mx-btn--line { border-color: var(--mx-gold) !important; color: #fff !important; background: transparent; }
.mx-btn--line:hover { background: var(--mx-gold); color: var(--mx-navy) !important; }
.mx-btn--navy { background: var(--mx-navy); color: #fff !important; }
.mx-btn--navy:hover { background: var(--mx-navy-2); }
.mx-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

/* ---------- Bandeau d'accueil ---------- */
.mx-hero { background: radial-gradient(1100px 520px at 85% -10%, rgba(212,175,55,.22), transparent 60%), linear-gradient(135deg, #0b1a33 0%, #142b52 60%, #0b1a33 100%); color: #fff; padding: 110px 0 120px; text-align: center; overflow: hidden; }
.mx-hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.12; font-weight: 800; margin: 0 0 20px; }
.mx-hero h1 span { color: var(--mx-gold); }
.mx-hero p { color: rgba(255,255,255,.82); font-size: 1.2rem; max-width: 760px; margin: 0 auto; line-height: 1.7; }
.mx-hero .mx-eyebrow { margin-bottom: 18px; }
.mx-pagehero { background: linear-gradient(135deg, #0b1a33 0%, #142b52 100%); color: #fff; padding: 76px 0; text-align: center; }
.mx-pagehero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin: 0 0 12px; }
.mx-pagehero p { color: rgba(255,255,255,.8); margin: 0 auto; max-width: 640px; font-size: 1.1rem; }

/* ---------- Chiffres clés ---------- */
.mx-stats { margin-top: -54px; position: relative; z-index: 2; }
.mx-stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; background: #fff; border-radius: 18px; padding: 28px; box-shadow: 0 18px 44px rgba(11,26,51,.14); }
.mx-stat { text-align: center; padding: 6px 10px; }
.mx-stat b { display: block; font-size: 1.5rem; color: var(--mx-navy); font-weight: 800; line-height: 1.1; }
.mx-stat span { color: var(--mx-muted); font-size: .92rem; }

/* ---------- Cartes de services ---------- */
.mx-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 44px; }
.mx-grid > .mx-card { flex: 1 1 300px; max-width: 366px; }
.mx-card { background: #fff; border: 1px solid var(--mx-line); border-radius: 18px; padding: 32px 28px; box-shadow: 0 8px 24px rgba(11,26,51,.05); transition: transform .2s, box-shadow .2s; text-align: left; }
.mx-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(11,26,51,.12); }
.mx-card__icon { width: 58px; height: 58px; border-radius: 14px; background: var(--mx-navy); color: var(--mx-gold); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.mx-card__icon svg { width: 30px; height: 30px; }
.mx-card h3 { margin: 0 0 10px; font-size: 1.25rem; color: var(--mx-navy); }
.mx-card p { margin: 0 0 14px; color: var(--mx-muted); line-height: 1.7; }
.mx-card a.mx-more { font-weight: 700; color: var(--mx-navy-3); text-decoration: none; }
.mx-card a.mx-more:hover { color: var(--mx-gold-2); }

/* ---------- Boutons rapides sous le bandeau d'accueil ---------- */
.mx-quick { margin-top: -62px; position: relative; z-index: 2; }
.mx-quick__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 18px 44px rgba(11,26,51,.16); }
a.mx-quick__btn { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; text-decoration: none !important; color: var(--mx-navy); border: 1px solid var(--mx-line); transition: transform .15s, border-color .15s, background .15s; }
a.mx-quick__btn:hover { transform: translateY(-3px); border-color: var(--mx-gold); background: #fffaf0; }
.mx-quick__icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; background: var(--mx-navy); color: var(--mx-gold); display: flex; align-items: center; justify-content: center; }
.mx-quick__btn:nth-child(2) .mx-quick__icon { background: var(--mx-blue); color: #fff; }
.mx-quick__btn:nth-child(3) .mx-quick__icon { background: var(--mx-gold); color: var(--mx-navy); }
.mx-quick__btn:nth-child(4) .mx-quick__icon { background: var(--mx-wa); color: #fff; }
.mx-quick__icon svg { width: 26px; height: 26px; }
.mx-quick__btn b { display: block; font-size: 1.02rem; line-height: 1.25; }
.mx-quick__btn small { display: block; color: var(--mx-muted); font-size: .85rem; }

/* ---------- Cartes des pôles d'activité (une couleur par carte : marine, bleu ou or) ---------- */
.mx-poles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: 44px; text-align: left; }
@media (min-width: 1100px) { .mx-poles { grid-template-columns: repeat(5, 1fr); } }
a.mx-pole { --c: var(--mx-navy); --ci: var(--mx-gold); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--mx-line); border-top: 4px solid var(--c); border-radius: 16px; padding: 26px 22px 22px; text-decoration: none !important; box-shadow: 0 8px 24px rgba(11,26,51,.05); transition: transform .2s, box-shadow .2s; }
a.mx-pole:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(11,26,51,.13); }
a.mx-pole--blue { --c: var(--mx-blue); --ci: #fff; }
a.mx-pole--gold { --c: var(--mx-gold); --ci: var(--mx-navy); }
.mx-pole__icon { width: 54px; height: 54px; border-radius: 14px; background: var(--c); color: var(--ci); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.mx-pole__icon svg { width: 28px; height: 28px; }
.mx-pole h3 { margin: 0 0 8px; font-size: 1.12rem; line-height: 1.3; color: var(--mx-navy); }
.mx-pole p { margin: 0 0 14px; color: var(--mx-muted); line-height: 1.6; font-size: .95rem; flex: 1; }
.mx-pole .mx-more { font-weight: 700; color: var(--mx-blue); font-size: .92rem; }

/* Couleur de l'icône des services détaillés */
.mx-service--blue .mx-card__icon { background: var(--mx-blue); color: #fff; }
.mx-service--gold .mx-card__icon { background: var(--mx-gold); color: var(--mx-navy); }
.mx-service { scroll-margin-top: 130px; }
.mx-service__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mx-btn--wa { background: var(--mx-wa); color: #fff !important; }
.mx-btn--wa:hover { background: #178a45; }

/* ---------- Bouton WhatsApp flottant ---------- */
a.mx-wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 999; width: 58px; height: 58px; border-radius: 50%; background: var(--mx-wa); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(0,0,0,.25); transition: transform .15s; }
a.mx-wa-float:hover { transform: scale(1.08); }
a.mx-wa-float svg { width: 30px; height: 30px; }

/* ---------- Valeurs ---------- */
.mx-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 40px; }
.mx-value { text-align: center; padding: 10px 18px; }
.mx-value .mx-num { width: 54px; height: 54px; line-height: 54px; border-radius: 50%; background: var(--mx-gold); color: var(--mx-navy); font-weight: 800; font-size: 1.3rem; margin: 0 auto 16px; }
.mx-value h3 { margin: 0 0 8px; }
.mx-value p { margin: 0; opacity: .85; line-height: 1.7; }

/* ---------- Bandeau d'appel à l'action ---------- */
.mx-cta { background: linear-gradient(135deg, #0b1a33 0%, #1e3a66 100%); color: #fff; text-align: center; padding: 74px 0; }
.mx-cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: 0 0 10px; }
.mx-cta p { color: rgba(255,255,255,.8); margin: 0 0 6px; font-size: 1.1rem; }

/* ---------- Services détaillés ---------- */
.mx-service { display: grid; grid-template-columns: 140px 1fr; gap: 36px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--mx-line); }
.mx-service:last-child { border-bottom: 0; }
.mx-service .mx-card__icon { width: 120px; height: 120px; border-radius: 28px; margin: 0; }
.mx-service .mx-card__icon svg { width: 60px; height: 60px; }
.mx-service h2 { margin: 0 0 12px; color: var(--mx-navy); font-size: 1.7rem; }
.mx-service p { color: var(--mx-muted); line-height: 1.8; font-size: 1.05rem; }
.mx-checks { list-style: none; padding: 0; margin: 14px 0 20px; display: grid; gap: 8px; }
.mx-checks li { padding-left: 28px; position: relative; color: var(--mx-ink); }
.mx-checks li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--mx-gold-2); font-weight: 800; }

/* ---------- À propos ---------- */
.mx-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: start; }
.mx-two h2 { color: var(--mx-navy); }
.mx-two p { color: var(--mx-muted); line-height: 1.8; }
.mx-id { width: 100%; border-collapse: collapse; margin-top: 10px; }
.mx-id th, .mx-id td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--mx-line); vertical-align: top; }
.mx-id th { width: 36%; color: var(--mx-navy); font-weight: 700; }

/* ---------- Applications ---------- */
.mx-app { background: #fff; border: 1px solid var(--mx-line); border-radius: 22px; padding: 40px; box-shadow: 0 16px 38px rgba(11,26,51,.08); }
.mx-app__head { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 26px; }
.mx-app__head h2 { margin: 0 0 6px; color: var(--mx-navy); }
.mx-app__head p { margin: 0; color: var(--mx-muted); max-width: 560px; line-height: 1.7; }
.mx-app .mx-card__icon { width: 72px; height: 72px; border-radius: 18px; margin: 0; flex-shrink: 0; }
.mx-badge { margin-left: auto; background: rgba(212,175,55,.18); color: #7a5b00; font-weight: 700; font-size: .85rem; padding: 7px 16px; border-radius: 99px; }
.mx-app__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.mx-app__cols h3 { color: var(--mx-navy-2); font-size: 1.1rem; }

/* ---------- Contact, FAQ, pages juridiques ---------- */
.mx-contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.mx-info-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 14px; }
.mx-info-list li { background: #fff; border: 1px solid var(--mx-line); border-radius: 14px; padding: 16px 18px; }
.mx-info-list strong { display: block; color: var(--mx-navy); margin-bottom: 2px; }
.mx-form p { margin: 0 0 16px; }
.mx-form label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--mx-navy); font-size: .92rem; }
.mx-form input[type=text], .mx-form input[type=email], .mx-form input[type=tel], .mx-form select, .mx-form textarea { width: 100%; padding: 13px 14px; border: 1px solid #cfd6df; border-radius: 10px; background: #fff; font-size: 1rem; box-sizing: border-box; }
.mx-form input:focus, .mx-form select:focus, .mx-form textarea:focus { outline: none; border-color: var(--mx-gold); box-shadow: 0 0 0 3px rgba(212,175,55,.25); }
.mx-form__split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mx-form__hp { position: absolute; left: -9999px; }
.mx-notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; }
.mx-notice--ok { background: #e7f6ec; color: #14532d; }
.mx-notice--err { background: #fdeaea; color: #7f1d1d; }
.mx-faq { border-bottom: 1px solid var(--mx-line); padding: 4px 0; }
.mx-faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; color: var(--mx-navy); }
.mx-faq p { margin: 0 0 14px; color: var(--mx-muted); line-height: 1.8; }
.mx-legal { max-width: 820px; margin: 0 auto; }
.mx-legal h2 { margin-top: 38px; font-size: 1.4rem; color: var(--mx-navy); }
.mx-legal h3 { margin-top: 20px; font-size: 1.08rem; color: var(--mx-navy-2); }
.mx-legal p, .mx-legal li { line-height: 1.8; color: var(--mx-ink); }
.mx-legal .mx-maj { color: var(--mx-muted); font-size: .92rem; }

@media (max-width: 800px) {
	.mx-section { padding: 60px 0; }
	.mx-hero { padding: 76px 0 96px; }
	.mx-service { grid-template-columns: 1fr; gap: 20px; }
	.mx-service .mx-card__icon { width: 84px; height: 84px; border-radius: 20px; }
	.mx-service .mx-card__icon svg { width: 44px; height: 44px; }
	.mx-contact { grid-template-columns: 1fr; }
	.mx-form__split { grid-template-columns: 1fr; }
	.mx-app { padding: 26px; }
	.mx-badge { margin-left: 0; }
	.mx-quick__grid { grid-template-columns: 1fr 1fr; padding: 10px; gap: 10px; }
	a.mx-quick__btn { flex-direction: column; text-align: center; gap: 8px; padding: 14px 8px; }
	.mx-quick__btn small { display: none; }
	.mx-poles { grid-template-columns: 1fr; }
}

/* ---------- Logo seul dans l'en-tête (le titre du site est déjà dans le logo) ---------- */
.site-branding .site-title-wrap, .site-branding .site-description { display: none; }
.site-branding img.custom-logo, .site-branding .custom-logo-link img { width: auto !important; height: 112px !important; max-width: none !important; max-height: none !important; }
#masthead .site-main-header-inner-wrap { min-height: 128px; }

/* ---------- Pied de page de la société ---------- */
#colophon { display: none; }
.mx-footer { background: var(--mx-navy); color: rgba(255,255,255,.78); margin-top: 0; }
.mx-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 64px; padding-bottom: 44px; }
.mx-footer h4 { color: #fff; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 16px; }
.mx-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mx-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.mx-footer a:hover { color: var(--mx-gold); }
.mx-footer__logo { height: 130px; width: auto; margin-bottom: 14px; display: block; }
.mx-footer__about p { margin: 0; line-height: 1.7; max-width: 320px; }
.mx-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: .92rem; }
.mx-footer__bottom .mx-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 800px) {
	.mx-footer__grid { grid-template-columns: 1fr; gap: 30px; padding-top: 48px; }
}

@media (max-width: 800px) {
	.site-branding img.custom-logo, .site-branding .custom-logo-link img { height: 72px !important; }
	#masthead .site-main-header-inner-wrap { min-height: 88px; }
}
