/* Résultats / Mode Swipe — interface contenue et accessible. */
.mi-swipe-switch{display:inline-flex;align-items:center;padding:5px;gap:4px;border:1px solid #d9e4e8;border-radius:100px;background:#f2f5f5;white-space:nowrap}
.mi-swipe-switch button{border:0!important;border-radius:100px!important;padding:10px 16px!important;background:transparent!important;color:#536878!important;font-weight:750!important;font-size:13px!important;cursor:pointer;display:inline-flex;align-items:center;gap:7px;transition:background .2s,color .2s,box-shadow .2s}
.mi-swipe-switch button svg{width:17px;height:17px}.mi-swipe-switch button.is-active{background:#153a4d!important;color:#fff!important;box-shadow:0 3px 10px #09293424}.mi-swipe-switch button:focus-visible,.mi-swipe__actions button:focus-visible{outline:3px solid #b78d56;outline-offset:3px}.mi-swipe-switch__spark{font-size:12px;color:#c99a62}
.mi-swipe[hidden],.mi-swipe__card[hidden],.mi-swipe__done[hidden],.mi7-resultlist[hidden],.mi7-pagination[hidden]{display:none!important}
.mi-swipe{max-width:700px;margin:12px auto 42px;color:#173649}.mi-swipe__intro{text-align:center;margin:4px 0 24px}.mi-swipe__intro>span{font-weight:800;letter-spacing:.15em;color:#9a764b;font-size:11px}.mi-swipe__intro h2{font-family:Georgia,serif;font-size:clamp(23px,3vw,33px);font-weight:500;line-height:1.2;margin:8px 0}.mi-swipe__intro p{color:#687a86;font-size:14px;line-height:1.5;margin:0}
.mi-swipe__progress{display:flex;align-items:center;gap:16px;margin-bottom:15px;font-size:12px;font-weight:750;color:#667e87}.mi-swipe__track{height:4px;background:#e9eeef;border-radius:999px;flex:1;overflow:hidden}.mi-swipe__track i{height:100%;display:block;width:0;background:#b9905d;transition:width .3s}
.mi-swipe__deck{position:relative;max-width:580px;margin:auto;touch-action:pan-y}.mi-swipe__card{background:#fff;border:1px solid #e0e7e9;border-radius:22px;overflow:hidden;box-shadow:0 18px 55px #193b5030;transition:transform .22s,opacity .22s;will-change:transform}.mi-swipe__card.is-exiting{opacity:0;transform:translateX(var(--swipe-exit, -110%)) rotate(var(--swipe-rotate, -7deg))}
.mi-swipe__visual{height:clamp(310px,53vw,435px);position:relative;background:#e4e9e9;overflow:hidden}.mi-swipe__visual>img{width:100%;height:100%;object-fit:cover}.mi-swipe__placeholder{height:100%;display:grid;place-items:center;color:#607782}.mi-swipe__image-shade{position:absolute;inset:0;background:linear-gradient(180deg,#0723336b 0%,transparent 40%,#071923c9 100%);pointer-events:none}.mi-swipe__badges{position:absolute;top:18px;left:18px;display:flex;gap:7px;flex-wrap:wrap}.mi-swipe__badges span{background:#ffffffeb;padding:7px 11px;border-radius:30px;font-size:11px;font-weight:750;color:#15394d}.mi-swipe__onimage{position:absolute;bottom:23px;left:25px;right:25px;color:white}.mi-swipe__onimage>span{font-size:12px;letter-spacing:.04em;font-weight:700}.mi-swipe__onimage h3{font-size:clamp(23px,3vw,31px);line-height:1.2;color:white;margin:8px 0 0;text-shadow:0 2px 12px #0005}
.mi-swipe__details{padding:19px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}.mi-swipe__details strong{font-size:25px;color:#143c4b}.mi-swipe__details p{color:#657a88;font-size:13px;margin:5px 0 0}.mi-swipe__details a{white-space:nowrap;border:1px solid #cddcdd;border-radius:100px;padding:11px 15px;color:#153b4c;font-weight:750;text-decoration:none;font-size:12px}.mi-swipe__details a:hover{background:#173e50;color:white}
.mi-swipe__actions{display:flex;justify-content:center;gap:24px;margin:22px 0 10px}.mi-swipe__actions button{width:95px;height:82px;border-radius:22px;border:1px solid #dce5e6;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;box-shadow:0 7px 24px #16384718}.mi-swipe__actions button span{font-size:31px;line-height:1}.mi-swipe__actions button small{font-size:12px;font-weight:750}.mi-swipe__skip{color:#697c88}.mi-swipe__save{color:#b27a65}.mi-swipe__actions button:hover{transform:translateY(-2px)}.mi-swipe__hint{font-size:12px;color:#8b9aa0;text-align:center}.mi-swipe__done{text-align:center;background:#f5f8f8;padding:28px;border-radius:18px}.mi-swipe__done h3{font-family:Georgia,serif;font-size:24px}.mi-swipe__done button{border:1px solid #abc2c8;border-radius:30px;padding:11px 18px;background:#fff;cursor:pointer;margin:5px}
@media(max-width:650px){.mi7-toolbar{flex-wrap:wrap;gap:12px}.mi7-toolbar__right{flex-wrap:wrap;gap:10px}.mi-swipe-switch{order:-1}.mi-swipe-switch button{padding:9px 12px!important;font-size:12px!important}.mi-swipe__visual{height:400px}.mi-swipe__details{padding:16px}.mi-swipe__details strong{font-size:20px}.mi-swipe__details a{padding:9px;font-size:11px}.mi-swipe__onimage{left:18px;right:18px;bottom:18px}}
@media(prefers-reduced-motion:reduce){.mi-swipe__card,.mi-swipe__track i{transition:none!important}}
.mi-swipe__actions[hidden],.mi-swipe__hint[hidden]{display:none!important}

/* Galerie multi-photos avec navigation indépendante des gestes de sélection. */
.mi-swipe__gallery{position:absolute;inset:0}.mi-swipe__gallery .mi-swipe__photo{width:100%;height:100%;object-fit:cover;display:block}.mi-swipe__gallery .mi-swipe__photo[hidden]{display:none!important}
.mi-swipe__photo-progress{position:absolute;top:9px;left:14px;right:14px;display:flex;gap:4px;z-index:4}.mi-swipe__photo-progress i{flex:1;height:3px;border-radius:5px;background:#ffffff77;box-shadow:0 1px 5px #0004}.mi-swipe__photo-progress i.is-active{background:#fff}
.mi-swipe__photo-arrow{position:absolute!important;top:42%;z-index:5!important;display:grid!important;place-items:center!important;border:1px solid #ffffff88!important;border-radius:50%!important;width:39px!important;height:39px!important;background:#112a369c!important;color:white!important;font-size:29px!important;line-height:1!important;cursor:pointer!important}.mi-swipe__photo-prev{left:12px}.mi-swipe__photo-next{right:12px}.mi-swipe__photo-arrow:hover{background:#102b3de6!important}.mi-swipe__photo-count{position:absolute;z-index:5;top:22px;right:16px;border-radius:20px;background:#142d3aa8;padding:5px 9px;color:white;font-size:11px;font-weight:800}
.mi-swipe__gallery + .mi-swipe__image-shade{z-index:1}.mi-swipe__badges,.mi-swipe__onimage{z-index:2;pointer-events:none}.mi-swipe__badges{top:36px}.mi-swipe__actions{gap:13px;flex-wrap:wrap}.mi-swipe__actions button{width:118px;height:83px}.mi-swipe__actions .mi-swipe__interest{color:#a77d42}.mi-swipe__actions .mi-swipe__save{color:#b2576c}.mi-swipe__actions small{font-size:11px!important}
@media(max-width:420px){.mi-swipe__actions button{width:30%;max-width:115px}.mi-swipe__actions{gap:7px}}

/* 2.0.6 — Résultats swipe-first, parcours complet, 3 choix */
.mi-match-total{font-size:14px;font-weight:700;color:#193248;margin-right:auto}.mi-match-total b{color:#ef6521;font-size:20px}
.mi-swipe-switch button.is-active[data-mi-mode="swipe"]{background:linear-gradient(125deg,#ff962f,#ee4d19)!important;color:#fff!important;border:0!important}
.mi-swipe{max-width:1260px;margin:16px auto 50px}.mi-swipe__intro{max-width:740px;margin:0 auto 20px}.mi-swipe__intro>span{color:#d9662a}.mi-swipe__intro h2{font-size:clamp(26px,3vw,40px);color:#0f2b48}
.mi-match-results-layout{display:grid;grid-template-columns:minmax(205px,250px) minmax(0,1fr);align-items:start;gap:25px}.mi-match-deck-column{min-width:0;max-width:820px;margin:auto;width:100%}
.mi-match-journey{padding:22px 18px;border:1px solid #e8d9d4;border-radius:20px;background:#fff;box-shadow:0 12px 34px #1a2e4612;position:sticky;top:85px}.mi-match-journey__head{font-size:25px;color:#fa722c;display:flex;gap:9px;align-items:center}.mi-match-journey__head strong{font-size:19px;color:#17344a}.mi-match-journey p{font-size:12px;color:#687c8d}.mi-match-journey__row{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #e9edf2;padding:12px 0;font-weight:700;font-size:14px}.mi-match-journey__row b{background:#fff1eb;border-radius:12px;padding:4px 9px;color:#e96120}.mi-match-journey a{display:block;margin-top:12px;text-decoration:none;border:1px solid #ff8b58;border-radius:14px;text-align:center;color:#d65222;padding:11px;font-size:12px;font-weight:800}
.mi-swipe__deck{max-width:760px}.mi-swipe__visual{height:clamp(370px,43vw,515px)}.mi-swipe__card{border:2px solid #fff;border-radius:22px;box-shadow:0 24px 65px #102f4e37}.mi-swipe__details{background:#fff}.mi-swipe__details strong{font-size:clamp(21px,2vw,27px)}.mi-swipe__actions button{border-radius:100px;width:114px;height:91px;box-shadow:0 8px 28px #16384722}.mi-swipe__actions .mi-swipe__save{color:#e8473d;background:#fff4f2}.mi-swipe__actions .mi-swipe__interest{color:#de800c;background:#fff9e9}.mi-swipe__actions .mi-swipe__skip{color:#ca3c39}.mi-swipe__actions button:hover{transform:translateY(-4px)}
.mi-match-load{text-align:center;color:#244b60;font-weight:750;padding:14px}.mi-match-load[hidden]{display:none!important}.mi-match-load.is-error{color:#a33e31;background:#fff0ed;border:1px solid #efcec7;border-radius:12px}.mi-match-load button{background:#fff;border:1px solid #e1b2a8;border-radius:8px;padding:6px 9px;cursor:pointer}
@media(max-width:860px){.mi-match-results-layout{grid-template-columns:1fr}.mi-match-journey{position:static;display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px 16px}.mi-match-journey p,.mi-match-journey a{display:none}.mi-match-journey__head strong{font-size:14px}.mi-match-journey__row{padding:5px;border:0;gap:7px;font-size:11px}.mi-match-journey__row b{padding:3px 6px}.mi-swipe__visual{height:clamp(350px,65vw,490px)}}
@media(max-width:500px){.mi-match-total{width:100%;margin-bottom:5px}.mi-swipe__visual{height:420px}.mi-swipe__onimage h3{font-size:21px}.mi-match-journey{gap:7px}.mi-match-journey__head{display:none}.mi-swipe__actions button{width:31%;height:83px}.mi-swipe__details{flex-wrap:wrap}}

/* 2.0.7 — compact journey on desktop + immersive phone experience */
.mi-match-results-layout{display:flex;flex-direction:column;gap:14px;max-width:830px;margin:auto}
.mi-match-deck-column{max-width:830px}
.mi-match-journey{position:static;width:100%;background:#fff;border:1px solid #e1e7ec;border-radius:16px;padding:0;box-shadow:0 5px 19px #102d4510}
.mi-match-journey summary{list-style:none;display:flex;align-items:center;gap:14px;cursor:pointer;padding:12px 17px;font-weight:800;font-size:14px;color:#17394f}
.mi-match-journey summary::-webkit-details-marker{display:none}
.mi-match-journey__summary{margin-left:auto;font-size:13px;color:#df702d;font-weight:750;white-space:nowrap}
.mi-match-journey__summary b{font-weight:850;color:#17394f}
.mi-match-journey__chevron{font-size:21px;color:#83929b}
.mi-match-journey[open] .mi-match-journey__chevron{transform:rotate(180deg)}
.mi-match-journey__body{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;border-top:1px solid #e7edf1;padding:12px 17px}
.mi-match-journey__body p{grid-column:1/-1;margin:0!important}
.mi-match-journey__body .mi-match-journey__row{display:flex;flex-direction:column;align-items:start;gap:3px;border:0;background:#f7f9fb;border-radius:10px;padding:10px;font-size:12px}
.mi-match-journey__row span:last-child{color:#7c8c99;font-size:11px;font-weight:500}
.mi-match-journey__body a{grid-column:1/-1;margin:0!important}
.mi-swipe__mobilebar{display:none}
@media(max-width:700px){
 body.mi-match-overlay-open{overflow:hidden!important;overscroll-behavior:none}
 .mi-swipe:not([hidden]){position:fixed!important;inset:0!important;z-index:999999!important;width:100vw!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0 12px max(8px,env(safe-area-inset-bottom))!important;background:#f4f5f8!important;display:flex!important;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;height:100dvh;color:#173649}
 .mi-swipe__mobilebar{display:flex;position:sticky;top:0;z-index:100;align-items:center;justify-content:space-between;gap:10px;background:#f4f5f8;padding:calc(9px + env(safe-area-inset-top)) 2px 10px;flex:none;border-bottom:1px solid #e5eaf0}
 .mi-swipe__mobilebar strong{font-size:16px;color:#13354b}.mi-swipe__mobilebar>span{font-size:12px;font-weight:750;color:#7d8893}
 .mi-swipe__mobilebar button{background:#fff!important;color:#17394f!important;border:1px solid #d4dee8!important;border-radius:25px!important;padding:8px 12px!important;font-size:12px!important;font-weight:800!important;min-height:38px}
 .mi-swipe__intro,.mi-match-journey,.mi-swipe__hint{display:none!important}
 .mi-match-results-layout{display:flex;flex:1;min-height:0;width:100%;margin:0;gap:0}
 .mi-match-deck-column{width:100%;display:flex;flex-direction:column;flex:1;min-height:0;max-width:none}
 .mi-swipe__progress{margin:7px 0 8px;gap:8px;flex:none}
 .mi-swipe__deck{width:100%;max-width:none;flex:1;min-height:270px;display:flex;align-items:stretch;touch-action:pan-y}
 .mi-swipe__card:not([hidden]){width:100%;display:flex;flex-direction:column;flex:1;height:100%;min-height:0;border-radius:18px;overflow:hidden}
 .mi-swipe__visual{height:auto!important;flex:1;min-height:195px}
 .mi-swipe__details{flex:none;gap:8px;padding:11px 13px!important;min-height:72px;flex-wrap:nowrap!important}
 .mi-swipe__details strong{font-size:clamp(16px,4.5vw,22px)!important}
 .mi-swipe__details p{font-size:11px}
 .mi-swipe__details a{padding:8px 10px;white-space:nowrap;font-size:11px}
 .mi-swipe__onimage h3{font-size:clamp(17px,5vw,24px)}
 .mi-swipe__actions{flex:none;margin:10px 0 2px!important;gap:9px;flex-wrap:nowrap;justify-content:space-evenly}
 .mi-swipe__actions button{width:31%!important;max-width:130px;height:65px!important;border-radius:17px!important;box-shadow:0 4px 17px #18354616}
 .mi-swipe__actions button span{font-size:26px}.mi-swipe__actions button small{font-size:11px!important}
 .mi-swipe__photo-arrow{width:36px!important;height:36px!important}
 .mi-swipe__onimage{bottom:13px;left:14px;right:14px}
 .mi-swipe__badges{left:13px;top:27px}
 .mi-match-load{flex:none}
}
@media(max-width:700px) and (max-height:620px){.mi-swipe__deck{min-height:170px}.mi-swipe__actions button{height:51px!important}.mi-swipe__details{min-height:58px;padding:7px 12px!important}}


/* Marrakech Match 2.0.9 — desktop editorial results redesign.
   Intentionally scoped to desktop: full screen phone experience is unchanged. */
@media (min-width: 1025px) {
 body:has(.mi-swipe:not([hidden])) .mi7-results-head--signature{
  background:radial-gradient(ellipse at 90% 15%,#386077 0%,transparent 43%),linear-gradient(125deg,#0b263e 0%,#123c59 75%,#173e55 100%)!important;
  padding:38px 0 44px!important;color:#fff!important;position:relative;overflow:hidden;
 }
 body:has(.mi-swipe:not([hidden])) .mi7-results-head--signature:after{content:'♡';position:absolute;right:5%;top:-55px;font-size:250px;line-height:1;color:#ffffff0c;pointer-events:none;font-family:Georgia,serif}
 body:has(.mi-swipe:not([hidden])) .mi7-results-head__title{position:relative;z-index:1}
 body:has(.mi-swipe:not([hidden])) .mi7-results-head__title h1{font-family:Georgia,serif!important;font-size:clamp(34px,3.6vw,52px)!important;line-height:1.13!important;color:#fff!important;letter-spacing:-.03em}
 body:has(.mi-swipe:not([hidden])) .mi7-results-head__intro{color:#d8e7ef!important;font-size:15px!important;max-width:690px}
 body:has(.mi-swipe:not([hidden])) .mi7-results-head .mi7-kicker{color:#ffab78!important;letter-spacing:.13em}
 body:has(.mi-swipe:not([hidden])) .mi7-results{background:radial-gradient(ellipse at 92% 20%,#fff1e7,transparent 48%),linear-gradient(180deg,#faf7f4 0%,#fff 95%);padding-bottom:65px}
 body:has(.mi-swipe:not([hidden])) .mi7-toolbar{background:#fff;border:1px solid #eadfd8;border-radius:19px;padding:14px 22px!important;box-shadow:0 12px 34px #122d4520;gap:14px;margin-top:22px}
 body:has(.mi-swipe:not([hidden])) .mi7-toolbar>.mi-match-total{font-size:14px;letter-spacing:.01em}
 body:has(.mi-swipe:not([hidden])) .mi-match-total b{font-size:28px;color:#e65f24}
 body:has(.mi-swipe:not([hidden])) .mi7-toolbar>p{display:none}
 body:has(.mi-swipe:not([hidden])) .mi-swipe{max-width:1250px!important;margin:24px auto 55px!important}
 body:has(.mi-swipe:not([hidden])) .mi-swipe__intro{max-width:unset;text-align:left;margin:0 0 22px;padding:0 4px}
 body:has(.mi-swipe:not([hidden])) .mi-swipe__intro>span{display:block;color:#bd6339;font-weight:850;font-size:11px;letter-spacing:.2em}
 body:has(.mi-swipe:not([hidden])) .mi-swipe__intro h2{font-size:clamp(29px,3vw,43px)!important;margin:7px 0!important;color:#102e46!important;font-family:Georgia,serif;font-style:normal;letter-spacing:-.025em}
 body:has(.mi-swipe:not([hidden])) .mi-swipe__intro p{color:#617587;font-size:14px}
 body:has(.mi-swipe:not([hidden])) .mi-match-results-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 262px!important;align-items:start;gap:32px!important;max-width:none!important;width:100%}
 body:has(.mi-swipe:not([hidden])) .mi-match-deck-column{grid-column:1;grid-row:1;max-width:none!important}
 body:has(.mi-swipe:not([hidden])) .mi-match-journey{grid-column:2;grid-row:1;position:sticky;top:30px;max-width:none;border:1px solid #e8e0da;border-radius:21px;background:#fff;box-shadow:0 18px 48px #213c4a17;overflow:hidden}
 body:has(.mi-swipe:not([hidden])) .mi-match-journey summary{background:linear-gradient(130deg,#12324c,#21526b);color:#fff;display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:23px 20px;font-size:17px}
 body:has(.mi-swipe:not([hidden])) .mi-match-journey__summary{margin:0;color:#ffc9a5;font-size:14px;letter-spacing:.02em;white-space:normal}
 body:has(.mi-swipe:not([hidden])) .mi-match-journey__summary b{color:#fff}
 body:has(.mi-swipe:not([hidden])) .mi-match-journey__chevron{position:absolute;right:18px;top:18px;color:#fff}
 body:has(.mi-swipe:not([hidden])) .mi-match-journey__body{display:grid;grid-template-columns:1fr;gap:9px;padding:16px}
 body:has(.mi-swipe:not([hidden])) .mi-match-journey__body p{font-size:12px;margin-bottom:5px!important}
 body:has(.mi-swipe:not([hidden])) .mi-match-journey__body .mi-match-journey__row{padding:12px 13px;border:1px solid #f0e9e2;border-radius:12px;background:#fcfaf8}
 body:has(.mi-swipe:not([hidden])) .mi-match-journey__body a{border-radius:12px;font-size:12px;margin-top:6px!important}
 body:has(.mi-swipe:not([hidden])) .mi-swipe__deck{max-width:none!important;width:100%}
 body:has(.mi-swipe:not([hidden])) .mi-swipe__visual{height:clamp(430px,40vw,545px)!important}
 body:has(.mi-swipe:not([hidden])) .mi-swipe__card{border:4px solid #fff;border-radius:24px;box-shadow:0 24px 65px #122d4635,0 3px 13px #152d4920}
 body:has(.mi-swipe:not([hidden])) .mi-swipe__onimage{bottom:27px;left:32px;right:32px}
 body:has(.mi-swipe:not([hidden])) .mi-swipe__onimage h3{font:500 clamp(27px,2.7vw,39px)/1.15 Georgia,serif!important;text-shadow:0 3px 20px #0009;max-width:680px}
 body:has(.mi-swipe:not([hidden])) .mi-swipe__details{padding:20px 28px;background:#fff}
 body:has(.mi-swipe:not([hidden])) .mi-swipe__details strong{font-size:29px;color:#0e3149;font-weight:850}
 body:has(.mi-swipe:not([hidden])) .mi-swipe__details a{background:#fff8f4;color:#bf4d22;border-color:#ffd4bf;padding:13px 19px;font-size:13px}
 body:has(.mi-swipe:not([hidden])) .mi-swipe__actions{margin:25px 0 15px;gap:28px}
 body:has(.mi-swipe:not([hidden])) .mi-swipe__actions button{width:145px;height:93px;border-radius:20px;box-shadow:0 10px 24px #0e30451b;border:1px solid #e8e5e2;transition:transform .18s,box-shadow .18s}
 body:has(.mi-swipe:not([hidden])) .mi-swipe__actions button:hover{box-shadow:0 14px 33px #0e304530;transform:translateY(-4px)}
 body:has(.mi-swipe:not([hidden])) .mi-swipe__actions .mi-swipe__save{background:linear-gradient(130deg,#fb772f,#e54827);color:white;border:0}
 body:has(.mi-swipe:not([hidden])) .mi-swipe__actions .mi-swipe__interest{background:#fff6e8;border-color:#f6d6a4}
 body:has(.mi-swipe:not([hidden])) .mi-swipe__progress{margin-bottom:17px}
}
@media (min-width:701px) and (max-width:1024px){
 .mi-swipe{max-width:850px!important;padding-inline:14px}
 .mi-match-results-layout{max-width:850px!important}
 .mi-swipe__intro h2{font-family:Georgia,serif!important}
}
