/* =========================================================================
   Maquette GMES : en-tête marine, grand bandeau, cartes photo,
   blocs pratiques, espace client et bourses
   ========================================================================= */

/* ---------- En-tête marine et menu blanc ---------- */
#masthead, #masthead .site-header-row-container-inner, #masthead .site-main-header-wrap .site-header-row-container-inner { background: var(--mx-navy) !important; }
#masthead .site-main-header-wrap { box-shadow: none; border-bottom: 1px solid rgba(255,255,255,.08); }
.header-navigation .menu > li > a, .header-navigation .header-menu-container ul.menu > li > a { color: #fff !important; font-size: .9rem; padding-left: .62em !important; padding-right: .62em !important; }
.header-navigation .menu > li.current-menu-item > a, .header-navigation .menu > li > a:hover { color: var(--mx-gold) !important; }
.header-navigation .menu > li.mx-menu-cta > a { color: var(--mx-navy) !important; margin-left: .6em; }
#masthead .menu-toggle-open, #masthead .menu-toggle-open .menu-toggle-icon { color: #fff !important; }
li.mx-menu-flags > a { font-size: 0 !important; display: flex !important; gap: 6px; align-items: center; pointer-events: none; }
li.mx-menu-flags > a::before, li.mx-menu-flags > a::after { content: ""; width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
li.mx-menu-flags > a::before { background: linear-gradient(90deg, #002664 33.3%, #fecb00 33.3% 66.6%, #c60c30 66.6%); }
li.mx-menu-flags > a::after { background: radial-gradient(circle at 50% 50%, #fcd116 0 2.4px, transparent 2.6px), linear-gradient(90deg, #007a5e 33.3%, #ce1126 33.3% 66.6%, #fcd116 66.6%); }
.mobile-navigation li.mx-menu-flags { display: none; }

/* ---------- Boutons supplémentaires ---------- */
.mx-btn svg { width: 20px; height: 20px; vertical-align: -4px; margin-right: 8px; }
.mx-btn--full { width: 100%; text-align: center; }
.mx-btn--line-navy { border-color: var(--mx-navy) !important; color: var(--mx-navy) !important; background: #fff; padding: 10px 26px; }
.mx-btn--line-navy:hover { background: var(--mx-navy); color: #fff !important; }

/* ---------- Grand bandeau ---------- */
.mx-bighero { position: relative; background-size: cover; background-position: center; color: #fff; }
.mx-bighero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,17,40,.96) 0%, rgba(6,17,40,.8) 34%, rgba(6,17,40,.2) 62%, rgba(6,17,40,.5) 100%); }
.mx-bighero__in { position: relative; max-width: 1440px; margin: 0 auto; padding: 64px 28px 56px; display: grid; grid-template-columns: 1fr 290px; gap: 40px; align-items: center; min-height: 500px; box-sizing: border-box; }
.mx-bighero h1 { font-family: Montserrat, sans-serif; font-weight: 900; text-transform: uppercase; color: var(--mx-gold); font-size: clamp(2.3rem, 5vw, 4.3rem); line-height: 1.02; margin: 0 0 18px; letter-spacing: .01em; text-shadow: 0 3px 18px rgba(0,0,0,.35); }
.mx-bighero h1 span { display: block; color: #fff; }
.mx-bighero__acts { font-size: clamp(1rem, 1.6vw, 1.22rem); line-height: 1.55; letter-spacing: .04em; margin: 0 0 22px; color: #fff; font-weight: 500; }
.mx-bighero__atouts { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.mx-bighero__atouts li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }
.mx-bighero__atouts svg { width: 20px; height: 20px; color: #fff; }
.mx-bighero__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.mx-bighero__btns .mx-btn { min-width: 200px; text-align: center; }
.mx-bighero__panel { list-style: none; margin: 0; padding: 10px 18px; background: rgba(9,22,48,.88); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; backdrop-filter: blur(4px); align-self: start; }
.mx-bighero__panel li { border-bottom: 1px solid rgba(255,255,255,.08); }
.mx-bighero__panel li:last-child { border-bottom: 0; }
.mx-bighero__panel li, .mx-bighero__panel a { display: flex; align-items: center; gap: 12px; padding: 7px 0; color: #fff; text-decoration: none; font-size: .86rem; line-height: 1.25; }
.mx-bighero__panel li:has(a) { padding: 0; }
.mx-bighero__panel a:hover { color: var(--mx-gold); }
.mx-bighero__panel svg { width: 22px; height: 22px; flex-shrink: 0; }
.mx-bighero__panel small { color: rgba(255,255,255,.75); }

/* ---------- Cartes photo des pôles ---------- */
.mx-cartes { background: #eef2f7; padding: 16px 12px 6px; }
.mx-cartes__grid { max-width: 1600px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
a.mx-carte { background: #fff; border-radius: 10px; overflow: hidden; text-decoration: none !important; box-shadow: 0 4px 14px rgba(11,26,51,.08); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
a.mx-carte:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(11,26,51,.16); }
.mx-carte img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.mx-carte__body { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px 12px; }
.mx-carte__body svg { width: 26px; height: 26px; color: var(--mx-navy); flex-shrink: 0; }
.mx-carte__body b { display: block; color: var(--mx-navy); font-size: .86rem; line-height: 1.2; }
.mx-carte__body small { display: block; color: var(--mx-muted); font-size: .74rem; line-height: 1.3; margin-top: 2px; }
@media (min-width: 1400px) { .mx-cartes__grid { grid-template-columns: repeat(10, 1fr); } }

/* ---------- Blocs pratiques ---------- */
.mx-blocs, .mx-espaces { background: #eef2f7; padding: 10px 12px 16px; }
.mx-blocs__grid { max-width: 1600px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: start; }
.mx-espaces__grid { max-width: 1600px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.mx-bloc { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(11,26,51,.08); scroll-margin-top: 120px; }
.mx-bloc h2 { display: flex; align-items: center; gap: 10px; margin: 0; color: #fff; font-size: 1.1rem; font-weight: 700; }
.mx-bloc h2 svg { width: 22px; height: 22px; color: var(--mx-gold); flex-shrink: 0; }
.mx-bloc h3 { color: var(--mx-navy); font-size: .95rem; margin: 0 0 10px; }
.mx-bloc__head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; min-height: 60px; box-sizing: border-box; background: var(--mx-navy) right center / cover no-repeat; }
.mx-bloc__head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,26,51,.97) 45%, rgba(11,26,51,.3)); }
.mx-bloc__head > * { position: relative; }
.mx-bloc__head--navy::before { background: linear-gradient(90deg, #0b1a33, #142b52); }
.mx-bloc__body { padding: 14px 16px 16px; }
.mx-bloc__intro { color: var(--mx-muted); font-size: .86rem; margin: 0 0 12px; line-height: 1.5; }
.mx-bloc .mx-form p { margin: 0 0 10px; }
.mx-bloc .mx-form label { font-size: .78rem; margin-bottom: 4px; }
.mx-bloc .mx-form input[type=text], .mx-bloc .mx-form input[type=tel], .mx-bloc .mx-form input[type=date], .mx-bloc .mx-form select, .mx-bloc .mx-form textarea { padding: 9px 11px; font-size: .9rem; border-radius: 8px; width: 100%; box-sizing: border-box; border: 1px solid #cfd6df; background: #fff; }
.mx-bloc .mx-form input[type=file] { font-size: .82rem; max-width: 100%; }
.mx-bloc .mx-form__split { gap: 10px; }
.mx-bloc .mx-btn { padding: 11px 18px; font-size: .95rem; }
.mx-aide { display: block; color: var(--mx-muted); font-size: .74rem; margin-top: 4px; }
.mx-bloc .mx-notice { font-size: .88rem; padding: 10px 12px; }

/* Suivi de colis */
.mx-bloc__photo { position: relative; padding: 20px 18px; background: var(--mx-navy) right center / cover no-repeat; color: #fff; }
.mx-bloc__photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,26,51,.97) 40%, rgba(11,26,51,.5)); }
.mx-bloc__photo > * { position: relative; }
.mx-bloc__photo h2 { font-size: 1.3rem; margin-bottom: 6px; }
.mx-bloc__photo p { margin: 0 0 12px; font-size: .85rem; color: rgba(255,255,255,.85); }
.mx-suivi-form { display: flex; gap: 8px; }
.mx-suivi-form input { flex: 1; min-width: 0; padding: 10px 12px; border: 0; border-radius: 8px; font-size: .92rem; }
.mx-suivi-form .mx-btn { padding: 10px 22px; box-shadow: none; }
.mx-suivi-cols { display: grid; grid-template-columns: 1fr 120px; gap: 10px; align-items: center; }
.mx-etapes { list-style: none; margin: 0; padding: 0; }
.mx-etape { display: flex; gap: 10px; align-items: flex-start; padding: 0 0 10px; position: relative; }
.mx-etape:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; border-left: 2px dotted #c9d3e2; }
.mx-etape svg { width: 28px; height: 28px; padding: 6px; box-sizing: border-box; border-radius: 50%; color: #fff; background: var(--mx-blue); flex-shrink: 0; }
.mx-etape--0 svg { background: #16a34a; }
.mx-etape--3 svg { background: #f59e0b; }
.mx-etape--4 svg { background: var(--mx-navy); }
.mx-etape--5 svg { background: #94a3b8; }
.mx-etape b { display: block; font-size: .82rem; color: var(--mx-navy); }
.mx-etape small { display: block; font-size: .72rem; color: var(--mx-muted); }
.mx-carte-trajet { width: 100%; height: auto; }

/* Réservation de billets */
.mx-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--mx-line); margin: -4px 0 10px; }
.mx-tab { position: relative; }
.mx-tab input { position: absolute; opacity: 0; pointer-events: none; }
.mx-tab span { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 9px 4px; font-size: .86rem; font-weight: 600; color: var(--mx-muted); cursor: pointer; border-bottom: 3px solid transparent; }
.mx-tab span svg { width: 17px; height: 17px; }
.mx-tab input:checked + span { color: var(--mx-navy); border-bottom-color: var(--mx-blue); }
.mx-tab input:focus-visible + span { outline: 2px solid var(--mx-blue); }
.mx-radios { display: flex; gap: 18px; margin-bottom: 8px; font-size: .84rem; }
.mx-bloc .mx-radios label { display: flex; align-items: center; gap: 6px; font-weight: 500; color: var(--mx-ink); font-size: .84rem; }
.mx-retour { display: none; }
.mx-bk:has(#mx_ar:checked) .mx-retour { display: block; }
.mx-dests__titre { margin-top: 4px !important; }
.mx-dests { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mx-dest { position: relative; height: 62px; border: 0; border-radius: 8px; overflow: hidden; background: #1e3a66 center / cover no-repeat; cursor: pointer; padding: 0; }
.mx-dest::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.7)); }
.mx-dest span { position: absolute; left: 0; right: 0; bottom: 4px; color: #fff; font-size: .7rem; font-weight: 700; text-align: center; }
.mx-dest--ndjamena { background: linear-gradient(135deg, #002664 0 33%, #fecb00 33% 66%, #c60c30 66%); }
.mx-dest:hover { outline: 2px solid var(--mx-gold); }

/* Demande de devis */
.mx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.mx-chip { border: 1px solid #cfd6df; background: #fff; color: var(--mx-navy); font-size: .78rem; font-weight: 600; padding: 7px 11px; border-radius: 6px; cursor: pointer; }
.mx-chip.is-on { background: var(--mx-navy); color: #fff; border-color: var(--mx-navy); }

/* Offres immobilières */
.mx-immo-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 12px; }
.mx-immo-tabs input { position: absolute; opacity: 0; }
.mx-immo-tabs label, .mx-immo-tabs__seul { text-align: center; padding: 9px; font-weight: 600; font-size: .88rem; background: #eef2f7; color: var(--mx-navy); cursor: pointer; }
.mx-immo-tabs__seul { grid-column: 1 / -1; background: var(--mx-blue); color: #fff; border-radius: 6px; }
.mx-immo-tabs input:checked + label { background: var(--mx-blue); color: #fff; }
.mx-immo-tabs .mx-annonces { grid-column: 1 / -1; margin-top: 12px; }
.mx-annonces--v, #mx_immo_v:checked ~ .mx-annonces--l { display: none; }
#mx_immo_v:checked ~ .mx-annonces--v { display: grid; }
.mx-annonces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mx-annonce { display: flex; flex-direction: column; font-size: .78rem; }
.mx-annonce img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
.mx-annonce b { color: var(--mx-navy); font-size: .82rem; }
.mx-annonce small { color: var(--mx-muted); }
.mx-annonce ul { list-style: none; padding: 0; margin: 6px 0; color: var(--mx-muted); }
.mx-annonce strong { color: var(--mx-navy); margin-bottom: 8px; }
.mx-annonce .mx-btn { padding: 8px; font-size: .8rem; text-align: center; box-shadow: none; }
.mx-annonces__vide { grid-column: 1 / -1; text-align: center; padding: 18px 10px; border: 2px dashed #d5dde8; border-radius: 10px; }
.mx-annonces__vide svg { width: 44px; height: 44px; color: var(--mx-blue); }
.mx-annonces__vide p { color: var(--mx-muted); font-size: .88rem; line-height: 1.6; margin: 8px 0 14px; }
.mx-annonces__vide b { color: var(--mx-navy); display: block; }

/* ---------- Espace client et bourses ---------- */
.mx-badge-bientot { background: var(--mx-gold); color: var(--mx-navy); font-size: .75rem; font-weight: 700; padding: 5px 12px; border-radius: 99px; white-space: nowrap; }
.mx-tuiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mx-tuiles li { display: flex; align-items: center; gap: 10px; padding: 14px 12px; border: 1px solid var(--mx-line); border-radius: 10px; font-weight: 600; color: var(--mx-navy); font-size: .88rem; }
.mx-tuiles svg { width: 36px; height: 36px; padding: 7px; box-sizing: border-box; border-radius: 9px; color: #fff; background: var(--mx-blue); flex-shrink: 0; }
.mx-tuiles li:nth-child(2) svg { background: var(--mx-gold); color: var(--mx-navy); }
.mx-tuiles li:nth-child(3) svg { background: #f59e0b; }
.mx-tuiles li:nth-child(4) svg { background: #16a34a; }
.mx-tuiles li:nth-child(5) svg { background: var(--mx-navy); color: var(--mx-gold); }
.mx-tuiles li:nth-child(6) svg { background: #7c3aed; }
.mx-pas { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mx-pas li { display: flex; gap: 8px; align-items: center; font-size: .8rem; color: var(--mx-ink); line-height: 1.3; }
.mx-pas b { width: 28px; height: 28px; border-radius: 50%; background: var(--mx-navy); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mx-pays { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.mx-pays li { border: 1px solid var(--mx-line); border-radius: 10px; padding: 12px 6px; text-align: center; }
.mx-pays b { display: block; color: var(--mx-navy); font-size: .88rem; margin-top: 6px; }
.mx-pays small { color: var(--mx-muted); font-size: .72rem; }
.mx-drapeau { display: inline-block; width: 42px; height: 28px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); position: relative; color: #fff; font-style: normal; }
.mx-drapeau--chine { background: #de2910; }
.mx-drapeau--chine::before { content: "\2605"; position: absolute; left: 5px; top: 1px; color: #ffde00; font-size: 13px; }
.mx-drapeau--turquie { background: #e30a17; }
.mx-drapeau--turquie::before { content: "\263E\2605"; position: absolute; left: 9px; top: 6px; font-size: 13px; line-height: 1; }
.mx-drapeau--france { background: linear-gradient(90deg, #0055a4 33.3%, #fff 33.3% 66.6%, #ef4135 66.6%); }
.mx-drapeau--roumanie { background: linear-gradient(90deg, #002b7f 33.3%, #fcd116 33.3% 66.6%, #ce1126 66.6%); }

/* ---------- Adaptation tablette et téléphone ---------- */
@media (max-width: 1279px) {
	.mx-blocs__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	.mx-bighero__in { grid-template-columns: 1fr; padding: 44px 18px 40px; min-height: 0; }
	.mx-bighero::before { background: linear-gradient(180deg, rgba(6,17,40,.9), rgba(6,17,40,.75)); }
	.mx-bighero__panel { display: none; }
	.mx-cartes__grid { grid-template-columns: 1fr 1fr; }
	.mx-blocs__grid, .mx-espaces__grid { grid-template-columns: 1fr; }
	.mx-pas { grid-template-columns: 1fr 1fr; }
	.mx-pays { grid-template-columns: repeat(3, 1fr); }
	.mx-tuiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
	.mx-bighero__btns .mx-btn { width: 100%; box-sizing: border-box; }
	.mx-dests { grid-template-columns: repeat(3, 1fr); }
	.mx-annonces { grid-template-columns: 1fr 1fr; }
	.mx-suivi-cols { grid-template-columns: 1fr; }
	.mx-carte-trajet { max-width: 200px; margin: 0 auto; }
	.mx-bloc .mx-form__split { grid-template-columns: 1fr; }
}

/* Le thème décale les listes et coupe les mots : on annule dans les blocs de l'accueil */
.entry-content .mx-bighero ul, .entry-content .mx-bloc ul, .entry-content .mx-bloc ol, .entry-content .mx-espaces ul, .entry-content .mx-espaces ol { padding-left: 0 !important; margin-left: 0 !important; }
.mx-carte__body b, .mx-carte__body small { word-break: normal; overflow-wrap: normal; -webkit-hyphens: auto; hyphens: auto; }
@media (min-width: 1400px) {
	.mx-carte__body { padding: 9px 8px 11px; gap: 6px; }
	.mx-carte__body svg { width: 20px; height: 20px; }
	.mx-carte__body b { font-size: .8rem; }
	.mx-carte__body small { font-size: .7rem; }
}
.entry-content .mx-bighero ul.mx-bighero__panel { padding: 10px 18px !important; }

/* Numéros de téléphone par pays */
.mx-tels { line-height: 1.7; }
.mx-tels__pays { font-weight: 700; }
.mx-tels a { white-space: nowrap; }
a.mx-wa-lien { color: var(--mx-wa) !important; font-weight: 700; }
.mx-footer a.mx-wa-lien { color: #4ade80 !important; }
.mx-pays__monde { background: var(--mx-navy); border-color: var(--mx-navy) !important; }
.mx-pays__monde svg { width: 28px; height: 28px; color: var(--mx-gold); }
.mx-pays__monde b { color: #fff !important; }
.mx-pays__monde small { color: rgba(255,255,255,.75) !important; }

/* Réservation : aide sous les onglets avion / bus */
.mx-trajet__aide { margin: -2px 0 8px !important; }
.mx-trajet[hidden] { display: none !important; }

/* Bouton du groupe WhatsApp */
a.mx-btn--groupe { display: inline-flex; align-items: center; gap: 2px; padding: 11px 18px; font-size: .92rem; margin-top: 16px; box-shadow: none; }
.mx-footer a.mx-btn--groupe { color: #fff !important; }
