/* MTNBJ - modèle « Landing MyMTN » — design Figma « Personal - Digital services - Home » (maquette 1366 px).
   Styles isolés (préfixe .mtnbj-lp). */
.mtnbj-lp {
    --lp-sunshine: #ffcb05;
    --lp-prestige: #ffcb00;
    --lp-pill: #f8cd46;
    --lp-navy: #0b3468;
    --lp-dark: #323232;
    --lp-radius: 12px;
    --lp-ease: cubic-bezier(.2, .7, .2, 1);
    --lp-bold: 'MTNBrighterSans-Bold', sans-serif;
    --lp-medium: 'MTNBrighterSans-Medium', 'MTNBrighterSans-Regular', sans-serif;
    --lp-regular: 'MTNBrighterSans-Regular', sans-serif;
    position: relative;
    color: #000;
    font-family: var(--lp-regular);
    background: #fff;
    overflow-x: hidden;
}
.mtnbj-lp *, .mtnbj-lp *::before, .mtnbj-lp *::after { box-sizing: border-box; }
.mtnbj-lp img { max-width: 100%; height: auto; display: block; }
/* :where() : spécificité nulle, pour que la couleur propre à chaque composant (tuile, carte) l'emporte. */
:where(.mtnbj-lp) a { text-decoration: none; color: inherit; }
.mtnbj-lp p, .mtnbj-lp h1, .mtnbj-lp h2, .mtnbj-lp h3 { margin: 0; }
.mtnbj-lp__inner { width: 88%; max-width: 1120px; margin: 0 auto; position: relative; }

.mtnbj-lp-h2 { font-family: var(--lp-bold); font-weight: 400; font-size: 40px; line-height: 1.5; }
.mtnbj-lp-h2--center { text-align: center; }
.mtnbj-lp-h2--xl { font-size: 48px; line-height: 1.2; max-width: 449px; }
.mtnbj-lp-chevron { width: 18px; height: 18px; flex: none; transition: transform .25s var(--lp-ease); }

/* ---------- En-tête (le menu du thème se superpose au haut de cette section) ---------- */
/* Bordure basse courbe (le fond descend de 54 px au centre), comme le masque du design. */
.mtnbj-lp-hero {
    position: relative; overflow: hidden; min-height: 640px; padding: 160px 0 60px;
    -webkit-mask: var(--lp-hero-wave) center / 100% 100% no-repeat;
    mask: var(--lp-hero-wave) center / 100% 100% no-repeat;
}
.mtnbj-lp-hero__glow {
    position: absolute; z-index: 0; pointer-events: none;
    left: calc(50% - 906px); top: -680px; width: 2217px; max-width: none !important; height: auto;
}
.mtnbj-lp-hero__grid { z-index: 1; }
.mtnbj-lp-hero__text { position: relative; z-index: 2; max-width: 450px; }
.mtnbj-lp-hero__eyebrow { font-family: var(--lp-bold); font-size: 100px; line-height: 1.3; }
.mtnbj-lp-hero__title { font-family: var(--lp-medium); font-weight: 400; font-size: 60px; line-height: 1.3; margin-bottom: 34px; }
/* Visuel : boîte de 1181 × 886 px pivotée de 18,06°, centrée à 253,57 px à droite du milieu et à 356 px du haut
   (géométrie exacte du calque Figma « Phon MyMTN2 ») ; la section le rogne en haut comme le masque du design. */
.mtnbj-lp-hero__visual { position: absolute; z-index: 1; pointer-events: none; }
.mtnbj-lp-hero__visual img { width: 100%; height: 100%; object-fit: contain; animation: lp-float 7s ease-in-out infinite; }
.mtnbj-lp-hero__visual--tilt { width: 1181px; height: 886px; left: calc(50% - 337px); top: -110px; transform: rotate(18.06deg); }
.mtnbj-lp-hero__visual:not(.mtnbj-lp-hero__visual--tilt) { width: 600px; height: 520px; left: calc(50% + 20px); top: 90px; }

.mtnbj-lp-stores { display: flex; flex-wrap: wrap; gap: 21px; }
.mtnbj-lp-store {
    display: inline-flex; align-items: center; gap: 12px; padding: 10px; border-radius: 8px;
    background: #000; color: #fff !important; line-height: 1.5; white-space: nowrap;
    transition: transform .25s var(--lp-ease), box-shadow .25s ease;
}
.mtnbj-lp-store img { width: 33px; height: auto; }
.mtnbj-lp-store span { display: flex; flex-direction: column; font-family: var(--lp-medium); font-size: 20px; }
.mtnbj-lp-store small { font-family: var(--lp-regular); font-size: 12px; margin-bottom: -4px; }
.mtnbj-lp-store:hover, .mtnbj-lp-store:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0, 0, 0, .22); }

.mtnbj-lp-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; margin-top: 56px; margin-bottom: 96px; }
.mtnbj-lp-pill {
    display: inline-flex; align-items: center; padding: 18px 32px; border: 2px solid #fff; border-radius: 100px;
    background: var(--lp-sunshine); font-family: var(--lp-regular); font-size: 16px; line-height: 1.5; color: #000;
    transition: transform .25s var(--lp-ease), box-shadow .25s ease;
}
a.mtnbj-lp-pill:hover, a.mtnbj-lp-pill:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(255, 203, 5, .45); color: #000; }

/* ---------- Tuiles (SIM, MoMo, Prestige) ---------- */
.mtnbj-lp-tiles { display: grid; gap: 24px; }
.mtnbj-lp-tiles--2 { grid-template-columns: repeat(2, minmax(0, 256px)); }
.mtnbj-lp-tiles--3 { grid-template-columns: repeat(3, minmax(0, 256px)); }
.mtnbj-lp-tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.mtnbj-lp-tile {
    display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; gap: 4px;
    padding: 14px 16px; border-radius: var(--lp-radius); background: #fff; color: #000;
    transition: transform .3s var(--lp-ease), box-shadow .3s ease;
}
a.mtnbj-lp-tile:hover, a.mtnbj-lp-tile:focus-visible { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0, 0, 0, .14); color: #000; }
.mtnbj-lp-tile__head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; }
.mtnbj-lp-tile__icon {
    display: inline-flex; align-items: center; justify-content: center; padding: 7.5px 10px;
    border-radius: 100px; background: var(--lp-pill); color: #000; transition: transform .3s var(--lp-ease);
}
.mtnbj-lp-tile__icon img { width: auto; height: 15px; }
.mtnbj-lp-tile__icon svg { width: 15px; height: 15px; }
.mtnbj-lp-tile__title { font-family: var(--lp-bold); font-size: 16px; line-height: 1.4; }
.mtnbj-lp-tile__arrow {
    display: inline-flex; align-items: center; justify-content: center; padding: 6px;
    border: 2px solid var(--lp-sunshine); border-radius: 100px; transition: background-color .25s ease;
}
a.mtnbj-lp-tile:hover .mtnbj-lp-tile__arrow { background: var(--lp-sunshine); }
a.mtnbj-lp-tile:hover .mtnbj-lp-chevron { transform: translateX(2px); }
a.mtnbj-lp-tile:hover .mtnbj-lp-tile__icon { transform: scale(1.08); }

/* ---------- Gérez votre SIM (vague bleue : forme exacte du design, qui découpe aussi le téléphone) ---------- */
.mtnbj-lp-sim {
    position: relative; height: 640px; overflow: hidden; color: #fff;
    background: var(--lp-wave) center / 100% 100% no-repeat;
    -webkit-mask: var(--lp-wave) center / 100% 100% no-repeat;
    mask: var(--lp-wave) center / 100% 100% no-repeat;
}
.mtnbj-lp-sim__grid { display: grid; grid-template-columns: 544px 1fr; gap: 64px; padding-top: 84px; }
.mtnbj-lp-sim__intro { display: flex; flex-direction: column; gap: 6px; margin-bottom: 36px; }
.mtnbj-lp-sim__lead { font-family: var(--lp-bold); font-size: 13px; line-height: 1.5; }

/* Téléphone : cadre en CSS autour de la capture d'écran de l'appli (720 × 1600), rogné par la vague. */
.mtnbj-lp-phone {
    justify-self: end; width: 400px; padding: 12px; border-radius: 58px;
    background: #1a1a1a; box-shadow: inset 0 0 0 3px #6b6b6b, 0 0 0 1px #2c2c2c, 0 30px 60px rgba(0, 0, 0, .35);
}
.mtnbj-lp-phone__screen { width: 100%; border-radius: 46px; }

/* ---------- MoMo ---------- */
.mtnbj-lp-momo { padding: 80px 0 96px; }
.mtnbj-lp-momo .mtnbj-lp-h2 { margin-bottom: 40px; }
.mtnbj-lp-tile--momo { padding: 24px; }
.mtnbj-lp-tile--momo .mtnbj-lp-tile__icon { padding: 12px 17px; }
.mtnbj-lp-tile--momo .mtnbj-lp-tile__icon img { height: 28px; }
.mtnbj-lp-tile--momo .mtnbj-lp-tile__icon svg { width: 22px; height: 22px; }
.mtnbj-lp-tile--violet { background: #e7e9f9; } .mtnbj-lp-tile--violet .mtnbj-lp-tile__icon { background: #7a87ef; } .mtnbj-lp-tile--violet .mtnbj-lp-tile__arrow { border-color: #7a87ef; } a.mtnbj-lp-tile--violet:hover .mtnbj-lp-tile__arrow { background: #7a87ef; }
.mtnbj-lp-tile--yellow { background: #fef7ee; } .mtnbj-lp-tile--yellow .mtnbj-lp-tile__icon { background: #e3c850; } .mtnbj-lp-tile--yellow .mtnbj-lp-tile__arrow { border-color: #e3c850; } a.mtnbj-lp-tile--yellow:hover .mtnbj-lp-tile__arrow { background: #e3c850; }
.mtnbj-lp-tile--blue   { background: #eff7fe; } .mtnbj-lp-tile--blue   .mtnbj-lp-tile__icon { background: #4aa9fc; } .mtnbj-lp-tile--blue   .mtnbj-lp-tile__arrow { border-color: #4aa9fc; } a.mtnbj-lp-tile--blue:hover .mtnbj-lp-tile__arrow { background: #4aa9fc; }
.mtnbj-lp-tile--pink   { background: #fdeffe; } .mtnbj-lp-tile--pink   .mtnbj-lp-tile__icon { background: #ef55fa; } .mtnbj-lp-tile--pink   .mtnbj-lp-tile__arrow { border-color: #ef55fa; } a.mtnbj-lp-tile--pink:hover .mtnbj-lp-tile__arrow { background: #ef55fa; }

/* ---------- Produits Prestiges (visuel pleine largeur en haut de la section, 1366 × 732 dans le design) ---------- */
.mtnbj-lp-prestige { position: relative; overflow: hidden; background: var(--lp-prestige); padding: 330px 0 72px; }
.mtnbj-lp-prestige__visual {
    position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
    width: max(100%, 1366px); max-width: none !important; aspect-ratio: 1366 / 732; object-fit: cover;
}
.mtnbj-lp-prestige__content { display: flex; flex-direction: column; gap: 28px; }

/* ---------- E-boutique : carte des deals du thème (styles/deal-archive.css), mise en grille de 4 ---------- */
.mtnbj-lp-shop { padding: 72px 0 80px; }
.mtnbj-lp-shop__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 32px; }
.mtnbj-lp .mtnbj-lp-deals { display: block; width: auto; max-width: none; margin: 0; font-family: inherit; }
.mtnbj-lp .mtnbj-lp-deals .deals-archive--content { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-column: auto; grid-row: auto; padding-top: 0; gap: 24px; }
.mtnbj-lp-deal { display: flex; }
.mtnbj-lp-deal > ._card-deal { flex: 1; background: #fff; transition: transform .3s var(--lp-ease), box-shadow .3s ease; }
.mtnbj-lp-deal > ._card-deal:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, .12); }

/* Lien « Voir la liste » / « Voir tout » : soulignement qui se dessine et flèche qui avance (la couleur ne change pas). */
.mtnbj-lp a.mtnbj-lp-more, .mtnbj-lp a.mtnbj-lp-more:hover, .mtnbj-lp a.mtnbj-lp-more:focus-visible {
    display: inline-flex; align-items: center; gap: 8px; font-family: var(--lp-medium); font-size: 16px; line-height: 1.5;
    color: var(--lp-sunshine); text-decoration: none;
}
.mtnbj-lp a.mtnbj-lp-more--dark, .mtnbj-lp a.mtnbj-lp-more--dark:hover { color: #000; }
.mtnbj-lp-more span {
    background: linear-gradient(currentColor, currentColor) left bottom / 0 2px no-repeat;
    transition: background-size .3s var(--lp-ease);
}
.mtnbj-lp a.mtnbj-lp-more:hover span, .mtnbj-lp a.mtnbj-lp-more:focus-visible span { background-size: 100% 2px; }
.mtnbj-lp a.mtnbj-lp-more:hover .mtnbj-lp-chevron, .mtnbj-lp a.mtnbj-lp-more:focus-visible .mtnbj-lp-chevron { transform: translateX(5px); }

/* ---------- Agences / service client ---------- */
.mtnbj-lp-infos { background: var(--lp-dark); padding: 48px 0; }
.mtnbj-lp-infos__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 37px; }
.mtnbj-lp-info { display: flex; gap: 16px; padding: 20px; border-radius: var(--lp-radius); background: #000; color: #fff; }
.mtnbj-lp-info__icon {
    flex: none; display: flex; align-items: center; justify-content: center; width: 59px; height: 59px;
    border-radius: 50%; background: var(--lp-pill); color: #000;
}
.mtnbj-lp-info__icon img, .mtnbj-lp-info__icon svg { width: 24px; height: 24px; }
.mtnbj-lp-info__body { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; flex: 1; min-width: 0; }
.mtnbj-lp-info__title { font-family: var(--lp-bold); font-weight: 400; font-size: 20px; line-height: 1.5; color: #fff; margin-bottom: 4px; }
.mtnbj-lp-info__text { font-family: var(--lp-regular); font-size: 16px; line-height: 1.5; }

/* ---------- Animations ---------- */
/* Apparition au défilement : la classe mtnbj-lp--anim n'est posée que par le JS (contenu visible sans JS).
   Une animation (et non une transition) : une fois jouée, elle libère « transform » pour les effets de survol. */
.mtnbj-lp--anim [data-lp-reveal]:not(.is-in) { opacity: 0; }
.mtnbj-lp--anim [data-lp-reveal].is-in { animation: lp-up .7s var(--lp-ease) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
.mtnbj-lp--anim [data-lp-reveal="left"].is-in { animation-name: lp-left; }
.mtnbj-lp--anim [data-lp-reveal="up-far"].is-in { animation-name: lp-up-far; animation-duration: 1s; }
@keyframes lp-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes lp-left { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes lp-up-far { from { opacity: 0; transform: translateY(120px); } to { opacity: 1; transform: none; } }
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Échelle ---------- */
/* Les cotes ci-dessus sont celles de la maquette (1366 px). Sur ordinateur, toute la page est réduite
   proportionnellement (--lp-scale), sans changer la largeur utile du contenu (1120 px). */
@media (min-width: 1025px) {
    .mtnbj-lp { --lp-scale: .85; zoom: var(--lp-scale); }
    .mtnbj-lp__inner { max-width: calc(1120px / var(--lp-scale)); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .mtnbj-lp-hero__eyebrow { font-size: 80px; }
    .mtnbj-lp-hero__title { font-size: 48px; }
    .mtnbj-lp-hero__visual--tilt { transform: rotate(18.06deg) scale(.8); left: calc(50% - 300px); }
    .mtnbj-lp-sim__grid { grid-template-columns: minmax(0, 544px) 1fr; gap: 40px; }
    .mtnbj-lp-phone { width: 360px; }
}
@media (max-width: 1024px) {
    .mtnbj-lp-tiles--4, .mtnbj-lp .mtnbj-lp-deals .deals-archive--content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mtnbj-lp-sim { height: auto; -webkit-mask: none; mask: none; background: var(--lp-navy); border-radius: 50% 50% 0 0 / 40px 40px 0 0; }
    .mtnbj-lp-sim__grid { grid-template-columns: 1fr; padding-top: 64px; }
    .mtnbj-lp-phone { justify-self: center; width: 320px; height: 460px; overflow: hidden; border-radius: 52px 52px 0 0; padding-bottom: 0; }
    .mtnbj-lp-phone__screen { border-radius: 40px 40px 0 0; }
}
@media (max-width: 767px) {
    /* Mobile : le visuel passe sous le texte (zone réservée en bas de section). */
    .mtnbj-lp-hero { min-height: 0; padding: 110px 0 330px; }
    .mtnbj-lp-hero__visual, .mtnbj-lp-hero__visual:not(.mtnbj-lp-hero__visual--tilt) { top: auto; bottom: 0; left: 50%; width: 420px; height: 315px; transform: translateX(-50%); }
    .mtnbj-lp-hero__visual--tilt { width: 560px; height: 420px; bottom: -70px; transform: translateX(-50%) rotate(18.06deg); }
    .mtnbj-lp-hero__eyebrow { font-size: 56px; }
    .mtnbj-lp-hero__title { font-size: 34px; margin-bottom: 28px; }
    .mtnbj-lp-store span { font-size: 16px; }
    .mtnbj-lp-quick { gap: 12px; margin-top: 24px; margin-bottom: 56px; }
    .mtnbj-lp-pill { padding: 14px 22px; font-size: 14px; }
    .mtnbj-lp-h2 { font-size: 28px; }
    .mtnbj-lp-h2--xl { font-size: 32px; }
    .mtnbj-lp-tiles, .mtnbj-lp-tiles--4 { gap: 12px; }
    .mtnbj-lp-tiles--2, .mtnbj-lp-tiles--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mtnbj-lp-tile--momo { padding: 16px; }
    .mtnbj-lp-phone { width: 260px; height: 380px; padding: 9px 9px 0; border-radius: 42px 42px 0 0; }
    .mtnbj-lp-phone__screen { border-radius: 33px 33px 0 0; }
    .mtnbj-lp-momo { padding: 56px 0 64px; }
    .mtnbj-lp-momo .mtnbj-lp-h2 { margin-bottom: 24px; }
    .mtnbj-lp-prestige { padding: 220px 0 56px; }
    .mtnbj-lp-prestige__visual { width: 760px; top: -20px; }
    .mtnbj-lp-shop { padding: 56px 0 64px; }
    .mtnbj-lp-shop__head { margin-bottom: 24px; }
    .mtnbj-lp .mtnbj-lp-deals .deals-archive--content { grid-template-columns: 1fr; gap: 16px; }
    .mtnbj-lp-infos { padding: 36px 0; }
    .mtnbj-lp-infos__grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .mtnbj-lp *, .mtnbj-lp *::before, .mtnbj-lp *::after { animation: none !important; transition: none !important; }
}
