/* ALLO212 V201 — Mon espace : même mise en scène que l'accueil
   fond Marrakech sombre · texte blanc à gauche · écran vidéo à droite · tuiles 212 · page épurée */
body.v201-space{background:#FBF4EA}
html.a-express body.v201-space.hf-space .a212-app,html body.v201-space .a212-app,html body.v201-space .a212-main,html body.v201-space main.a-panel{max-width:none!important;width:auto!important;margin:0!important;padding:0!important;background:transparent}
:root{--v201-w:min(1460px,calc(100% - 64px))}

/* ---------- l'écran du haut (comme l'accueil) ---------- */
.v201-hero{position:relative;width:100vw;margin-left:calc(50% - 50vw);padding:34px 0 104px;overflow:hidden;isolation:isolate;
  background:linear-gradient(90deg,rgba(34,20,12,.84) 0%,rgba(34,20,12,.6) 45%,rgba(34,20,12,.35) 100%),var(--v201-bg,url("/assets/images/marrakech-hero-2026.png")) 30% 55%/cover no-repeat,#2A1A10}
.v201-hero-in{width:var(--v201-w);margin:0 auto;display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:40px;align-items:center}
.v201-title{color:#fff}
.v201-title small{display:block;font-size:11.5px;letter-spacing:.16em;text-transform:uppercase;color:#F2C894;font-weight:600}
.v201-title h1{margin:8px 0;font-size:clamp(32px,2.8vw,48px);line-height:1.05;font-weight:700;letter-spacing:-.02em;text-shadow:0 4px 18px rgba(0,0,0,.35)}
.v201-title p{margin:0;font-size:16px;color:rgba(255,255,255,.86);font-weight:500}

/* bloc d'en-tête de la page, monté à gauche : texte blanc sur le fond, sans grosse carte */
.v201-left .sp97-id,.v201-left .hf-acc-head{margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;color:#fff;animation:v201In .6s cubic-bezier(.2,.8,.2,1) both}
.v201-left .sp97-av{box-shadow:0 10px 26px rgba(0,0,0,.35)!important}
.v201-left .sp97-hello small{color:#F2C894!important;letter-spacing:.16em}
.v201-left .sp97-hello h1,.v201-left .hf-acc-head h1{color:#fff!important;font-size:clamp(30px,2.6vw,46px)!important;margin:4px 0 6px!important;text-shadow:0 4px 18px rgba(0,0,0,.35)}
.v201-left .sp97-hello p,.v201-left .hf-acc-head p{color:rgba(255,255,255,.85)!important;font-size:15px;margin:0}
.v201-left .hf-acc-head p b{color:#F2C894}
.v201-left .sp97-chips{margin:16px 0 10px}
.v201-left .sp97-chips>*{background:rgba(255,255,255,.12)!important;color:#fff!important;border:1px solid rgba(255,255,255,.22)!important;backdrop-filter:blur(6px)}
.v201-left .sp97-chips svg{color:#F2C894}
.v201-left .sp97-progress{background:rgba(255,255,255,.18)!important;height:5px}
.v201-left .sp97-id-actions{display:flex!important;flex-wrap:wrap;gap:10px!important;max-width:none!important;margin-top:16px}
.v201-left .sp97-btn{min-height:48px;padding:0 20px!important;border-radius:999px!important;white-space:nowrap;font-weight:600!important;position:relative;overflow:hidden}
.v201-left .sp97-btn.main:after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.32) 50%,transparent 70%);transform:translateX(-120%);animation:v201Shine 4.2s 1.2s ease-in-out 3}
.v201-left .sp97-btn.site{display:inline-flex;align-items:center;gap:8px;background:#FFFCF7;color:#2A1A10!important;text-decoration:none;box-shadow:0 10px 22px rgba(0,0,0,.25)}
.v201-left .sp97-btn.ghost{background:transparent!important;border:1px solid rgba(255,255,255,.4)!important;color:#fff!important}
.v201-left .sp97-btn .sp97-s{display:none}
.v201-left .hf-acc-head{display:grid!important;gap:12px}
.v201-left .hf-acc-head .hf-acc-btn,.v201-left .hf-acc-head a[class*=btn]{justify-self:start;display:inline-flex;align-items:center;gap:8px;padding:12px 22px;border-radius:999px;background:linear-gradient(135deg,#E8894A,#C25717)!important;color:#fff!important;font-weight:600;text-decoration:none!important;box-shadow:0 10px 22px rgba(194,87,23,.35)}

/* l'écran vidéo : même forme que l'écran de l'accueil */
.v201-screen{position:relative;aspect-ratio:16/9.6;width:100%;min-width:0;border-radius:24px;overflow:hidden}
.v201-vid{background:#1a110b;border:1px solid rgba(255,255,255,.22);box-shadow:0 30px 70px rgba(0,0,0,.45),0 0 0 6px rgba(255,255,255,.06)}
.v201-vid video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.v201-vid:after{content:"";position:absolute;inset:auto 0 0 0;height:38%;background:linear-gradient(0deg,rgba(20,12,7,.6),transparent);pointer-events:none}
.v201-snd{position:absolute;z-index:3;top:12px;right:12px;width:36px;height:36px;border-radius:50%;border:0;display:grid;place-items:center;background:rgba(0,0,0,.4);color:#fff;cursor:pointer;backdrop-filter:blur(6px)}
.v201-caps{position:absolute;z-index:3;left:14px;right:60px;bottom:14px;height:40px}
.v201-caps a{position:absolute;left:0;bottom:0;max-width:100%;display:inline-flex;align-items:center;gap:8px;padding:9px 15px;border-radius:999px;background:rgba(255,252,247,.94);color:#2A1A10!important;text-decoration:none;font:600 13.5px Montserrat,system-ui,sans-serif;box-shadow:0 10px 24px rgba(0,0,0,.25);opacity:0;transform:translateY(8px);transition:opacity .5s,transform .5s;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v201-caps a.on{opacity:1;transform:none}
.v201-caps a b{color:#C25717;font-weight:700}
.v201-caps[dir=rtl] a{left:auto;right:0;font-family:"Noto Kufi Arabic","Segoe UI",Tahoma,sans-serif}
.v201-screen.tu{aspect-ratio:auto;height:auto;min-height:340px}

/* ---------- tuiles 212 (comme Drive, Livreur, Dépannage sur l'accueil) ---------- */
html body.v201-space nav.sp97-tabs.sp97-tabs{position:relative;z-index:5;top:auto;width:var(--v201-w)!important;max-width:none!important;margin:-82px auto 18px!important;padding:0!important;background:none!important}
body.v201-space .sp97-tabs-wrap{max-width:none!important;margin:0!important}
body.v201-space .sp97-tabs-in{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;padding:6px 4px 10px;justify-content:center}
body.v201-space .sp97-tabs-in::-webkit-scrollbar{display:none}
body.v201-space .sp97-arr{display:none!important}
.t201{flex:0 0 auto;width:118px;display:flex!important;flex-direction:column;align-items:center;gap:4px;padding:12px 8px 10px!important;border-radius:20px!important;background:#fff!important;border:0!important;color:#2A1A10!important;text-decoration:none;text-align:center;box-shadow:0 12px 28px rgba(40,22,10,.18)!important;transition:transform .2s,box-shadow .2s}
.t201:hover{transform:translateY(-3px);box-shadow:0 18px 34px rgba(40,22,10,.24)!important}
.t201 .t201-ic{display:block;width:48px;height:48px;border-radius:14px;box-shadow:0 6px 14px rgba(40,22,10,.18)}
.t201 b{margin-top:4px;font:700 13px/1.2 Montserrat,system-ui,sans-serif;white-space:nowrap}
.t201 small{font:500 10.5px/1.2 Montserrat,system-ui,sans-serif;color:#8A7568;white-space:nowrap}
.t201[aria-current]{background:linear-gradient(180deg,#FFF6EC,#fff)!important;box-shadow:0 0 0 2.5px #E8894A,0 16px 32px rgba(194,87,23,.28)!important;transform:translateY(-3px)}
.t201[aria-current] b{color:#C25717}

/* ---------- contenu : épuré, même largeur ---------- */
body.v201-space .sp97-grid,body.v201-space main.a-panel.hf-acc,body.v201-space main.cr61,body.v201-space main.ntp,body.v201-space main.pp{width:var(--v201-w)!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important}
html.a-express body.v201-space main.a-panel.hf-acc,html.a-express body.v201-space main.cr61,html.a-express body.v201-space main.ntp,html.a-express body.v201-space main.pp{padding:0!important}
body.v201-space .sp97-grid{display:grid;grid-template-columns:1fr;gap:14px;padding:0}
body.v201-space .sp97-grid>aside.sp97-col{display:none}
body.v201-space .sp97-grid>.sp97-col:first-child{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:14px;align-items:start}
body.v201-space .sp97-stats{display:grid!important;grid-template-columns:1fr;gap:10px;margin:0!important}
body.v201-space .sp97-stats a{display:grid!important;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:center;padding:12px 14px!important;border-radius:18px;background:#fff;border:1px solid #EFE2D4;box-shadow:0 8px 20px rgba(60,40,20,.06)}
body.v201-space .sp97-stats a i{grid-row:1/3}
body.v201-space .sp97-stats strong{line-height:1;font-size:24px}
body.v201-space .sp97-card,body.v201-space .hf-acc-item,body.v201-space .hf-acc-why,body.v201-space .v168-show{border-radius:22px;background:#fff;border:1px solid #EFE2D4;box-shadow:0 10px 26px rgba(60,40,20,.07);margin:0!important}
body.v201-space .sp97-empty{display:grid;grid-template-columns:110px 1fr;grid-template-areas:"i b" "i p" "i a";gap:2px 16px;text-align:left;align-items:center;padding:4px}
body.v201-space .sp97-empty img{grid-area:i;width:110px;height:90px;object-fit:cover;border-radius:16px;margin:0}
body.v201-space .sp97-empty b{grid-area:b}body.v201-space .sp97-empty p{grid-area:p;margin:2px 0 8px}
body.v201-space .sp97-empty .sp97-btn{grid-area:a;justify-self:start;min-height:42px;padding:0 18px}
body.v201-space .sp97-pro,body.v201-space .a-account-tabs,body.v201-space .sp97-media,body.v201-space .sp97-act{display:none!important}

/* ---------- Mon profil : vraie fenêtre ---------- */
body.v201-space .a212-profile-modal{position:fixed;inset:0;z-index:2147483000;display:none;align-items:center;justify-content:center;padding:16px;background:rgba(30,18,10,.45);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
body.v201-space .a212-profile-modal.open{display:flex}
body.v201-space .a212-modal{width:min(620px,100%);max-height:calc(100vh - 32px);overflow:auto;padding:22px 24px;border-radius:28px;background:linear-gradient(160deg,#FFFCF7,#FBF1E3);box-shadow:0 30px 80px rgba(0,0,0,.35);font-family:Montserrat,system-ui,sans-serif;animation:v201In .4s both}
body.v201-space .a212-modalhead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
body.v201-space .a212-modalhead h2{margin:0;font-size:24px;font-weight:700;color:#2A1A10}
body.v201-space .a212-modalhead p{margin:2px 0 0;color:#8A7568;font-size:13px}
body.v201-space .a212-modalhead button{width:36px;height:36px;border-radius:50%;border:1px solid #EADBC8;background:#fff;font-size:20px;line-height:1;cursor:pointer;color:#6E5A4E}
body.v201-space .a212-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
body.v201-space .a212-fields label{display:grid;gap:6px;font-size:13px;font-weight:600;color:#4A3A2E}
body.v201-space .a212-fields label.wide{grid-column:1/-1}
body.v201-space .a212-fields input,body.v201-space .a212-fields textarea{width:100%;min-height:46px;padding:10px 14px;border:1px solid #E6D6C2;border-radius:14px;background:#FFFCF8;font:500 15px Montserrat,system-ui,sans-serif;color:#2A1A10;box-sizing:border-box}
body.v201-space .a212-fields textarea{min-height:90px;resize:vertical}
body.v201-space .a212-modalactions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
body.v201-space .a212-modalactions button{min-height:46px;padding:0 22px;border-radius:999px;font:600 14px Montserrat,system-ui,sans-serif;cursor:pointer;border:1px solid #E6D6C2;background:#fff;color:#6E5A4E}
body.v201-space .a212-modalactions button[type=submit]{border:0;color:#fff;background:linear-gradient(135deg,#E8894A,#C25717)}

/* ---------- PC un peu bas : on serre ---------- */
@media (min-width:900px) and (max-height:820px){.v201-hero{padding:22px 0 96px}.v201-left .sp97-hello p{display:none}.v201-hero-in{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}

/* ---------- téléphone : épuré ---------- */
@media (max-width:899px){
  :root{--v201-w:calc(100% - 20px)}
  .v201-hero{padding:12px 0 92px}
  .v201-hero-in{grid-template-columns:1fr;gap:14px}
  .v201-screen{order:-1;border-radius:18px}
  .v201-left .sp97-hello p,.v201-left .sp97-progress,.v201-left .hf-acc-head p{display:none}
  .v201-left .sp97-av{width:48px!important;height:48px!important;font-size:20px!important}
  .v201-left .sp97-hello h1,.v201-left .hf-acc-head h1{font-size:26px!important}
  .v201-left .sp97-chips{margin:10px 0 0}
  .v201-left .sp97-id-actions{display:grid!important;grid-template-columns:1fr 1fr auto;gap:8px!important}
  .v201-left .sp97-btn{min-height:44px;font-size:13.5px;padding:0 12px!important}
  .v201-left .sp97-btn .sp97-l{display:none}.v201-left .sp97-btn .sp97-s{display:inline}
  .v201-left .sp97-btn.ghost .sp97-s{display:none}
  .v201-caps{left:10px;right:52px;bottom:10px}.v201-caps a{font-size:12.5px;padding:8px 12px}
  html body.v201-space nav.sp97-tabs.sp97-tabs{margin-top:-78px!important}
  body.v201-space .sp97-tabs-in{justify-content:flex-start;gap:8px;scroll-snap-type:x mandatory}
  .t201{width:92px;padding:10px 6px 8px!important;scroll-snap-align:start}
  .t201 .t201-ic{width:42px;height:42px}.t201 b{font-size:12px}.t201 small{display:none}
  body.v201-space .sp97-grid>.sp97-col:first-child{grid-template-columns:1fr}
  body.v201-space .sp97-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  body.v201-space .sp97-stats a{grid-template-columns:1fr;text-align:center;justify-items:center;padding:10px 6px!important}
  body.v201-space .sp97-stats a i{grid-row:auto}
  body.v201-space .sp97-empty{grid-template-columns:84px 1fr}body.v201-space .sp97-empty img{width:84px;height:72px}body.v201-space .sp97-empty p{display:none}
  body.v201-space .a212-fields{grid-template-columns:1fr}
}
@keyframes v201In{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes v201Shine{0%{transform:translateX(-120%)}60%,100%{transform:translateX(120%)}}
@media (prefers-reduced-motion:reduce){.v201-left .sp97-id,.v201-left .hf-acc-head{animation:none}}
/* V201f : tuiles pleine hauteur (les anciennes pastilles faisaient 44 px) */
html body.v201-space .sp97-tabs a.t201{height:auto!important;padding:12px 8px 10px!important;background:#fff!important;color:#2A1A10!important;box-shadow:0 12px 28px rgba(40,22,10,.18)!important;border-radius:20px!important;font:inherit}
html body.v201-space .sp97-tabs a.t201[aria-current]{background:linear-gradient(180deg,#FFF6EC,#fff)!important;color:#2A1A10!important;box-shadow:0 0 0 2.5px #E8894A,0 16px 32px rgba(194,87,23,.28)!important}
html body.v201-space .sp97-tabs a.t201 svg.t201-ic{width:48px!important;height:48px!important;color:inherit!important;flex:none}
html body.v201-space .sp97-tabs a.t201[aria-current] b{color:#C25717!important}
body.v201-space .sp97-tabs-in{overflow-y:visible;padding:8px 4px 14px}
/* chiffres : 3 petites cartes côte à côte */
body.v201-space .sp97-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}
body.v201-space .sp97-stats a{grid-template-columns:1fr!important;justify-items:start;row-gap:6px;padding:14px!important}
body.v201-space .sp97-stats a i{grid-row:auto!important}
@media (max-width:899px){html body.v201-space .sp97-tabs a.t201{padding:10px 6px 8px!important}html body.v201-space .sp97-tabs a.t201 svg.t201-ic{width:42px!important;height:42px!important}body.v201-space .sp97-stats a{justify-items:center}}
html body.v201-space .sp97-tabs .sp97-tabs-in{display:flex!important;justify-content:center!important}
html body.v201-space .sp97-tabs a.t201{width:128px}
@media (max-width:899px){html body.v201-space .sp97-tabs .sp97-tabs-in{justify-content:flex-start!important}html body.v201-space .sp97-tabs a.t201{width:96px}}
/* V201g : les tuiles remplissent toute la largeur, du texte jusqu'au bord de l'écran (équilibré) */
@media (min-width:900px){
  html body.v201-space .sp97-tabs .sp97-tabs-in{justify-content:space-between!important;gap:12px!important;padding:8px 0 14px!important}
  html body.v201-space .sp97-tabs a.t201{flex:1 1 0!important;width:auto!important;min-width:112px}
}
