/* ───────────────────────────────────────────────────────────────
   Boutique test Maison Léon · parties OptiDress (refonte, sept. 2026)
   La boutique garde son identité (shop.css). Cette feuille n'habille
   que ce qui appartient à OptiDress : le bandeau « Envie d'offrir cette
   expérience » (.ml-site) et le pied de page (.foot), aux couleurs du
   nouveau site. Tout est préfixé par body.ml : shop.css remet à zéro
   la couleur des liens et des boutons avec cette même précision.
─────────────────────────────────────────────────────────────── */

body.ml .foot,
body.ml .ml-tools .langsel,
body.ml .ml-site {
  --ink: #0b0d12;
  --ink-2: #2a2e37;
  --muted: #555b68;
  --faint: #666c78;
  --line: #e6e8ec;
  --line-2: #d3d7de;
  --blue: #0055fe;
  --blue-2: #0043cc;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  font-family: var(--sans);
}

/* ── bandeau sombre ── */
body.ml .ml-site { background: var(--ink); isolation: isolate; }
body.ml .ml-site::after {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000, transparent 75%);
}
body.ml .ml-site-in { padding-block: clamp(72px, 9vw, 128px); max-width: 860px; }
body.ml .ml-site-logo { height: 24px; opacity: .92; }
body.ml .ml-site h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4vw, 56px); line-height: 1.04; letter-spacing: -.016em;
  margin: 30px 0 18px; text-wrap: balance;
}
body.ml .ml-site h2 em { color: #9dbbff; }
body.ml .ml-site p { font-size: 16.5px; line-height: 1.6; color: rgba(255, 255, 255, .7); margin: 0 auto 36px; max-width: 36em; }
body.ml .ml-site-ctas a {
  height: 52px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  font-family: var(--sans); font-size: 15.5px; font-weight: 500;
  transition: background-color .25s var(--ease), border-color .25s, transform .2s var(--ease);
}
body.ml .ml-site-ctas a:active { transform: translateY(1px) scale(.985); }
body.ml .ml-site-ctas .ml-cta-site { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
body.ml .ml-site-ctas .ml-cta-site:hover { border-color: #fff; background: transparent; }
body.ml .ml-site-ctas .ml-cta-demo { background: var(--blue); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 24px -12px rgba(0, 85, 254, .7); }
body.ml .ml-site-ctas .ml-cta-demo:hover { background: var(--blue-2); }

/* ── pied de page (même rendu que le site) ── */
body.ml .foot { border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 88px) 0 32px; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.6; }
body.ml .foot .wrap { width: 100%; max-width: calc(1280px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
body.ml .foot svg { display: block; }
body.ml .foot .i { width: 16px; height: 16px; flex: none; }
body.ml .foot-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 3fr); gap: clamp(40px, 5vw, 80px); }
body.ml .foot-logo { display: inline-flex; color: var(--ink); }
body.ml .foot-logo svg { height: 28px; width: auto; aspect-ratio: 599 / 154; }
body.ml .foot-brand p { margin: 18px 0 0; color: var(--muted); font-size: 15px; max-width: 22em; }
body.ml .foot .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; margin-top: 24px; padding: 0 14px; border-radius: 9px; border: 1px solid transparent;
  font: 500 14px/1 var(--sans); white-space: nowrap;
  background: var(--blue); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 24px -12px rgba(0, 85, 254, .7);
  transition: background-color .25s var(--ease);
}
body.ml .foot .btn:hover { background: var(--blue-2); }
body.ml .foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
body.ml .foot-cols h2 { margin: 0 0 18px; font: 500 11px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
body.ml .foot-cols a { display: block; padding: 5px 0; font-size: 14.5px; color: var(--ink-2); transition: color .2s; }
body.ml .foot-cols a:hover { color: var(--blue); }
body.ml .foot-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: clamp(48px, 6vw, 80px); padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--faint);
}
body.ml .foot-bottom-r { display: flex; align-items: center; gap: 20px; }
body.ml .foot .lang {
  display: inline-flex; align-items: center; padding: 2px;
  border: 1px solid var(--line-2); border-radius: 8px;
  font: 500 10.5px/1 var(--mono); letter-spacing: .04em;
}
body.ml .foot .lang > * { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 20px; padding: 0 5px; border-radius: 6px; }
body.ml .foot .lang span { background: var(--ink); color: #fff; }
body.ml .foot .lang a { color: var(--muted); }
body.ml .foot .lang a:hover { color: var(--ink); }
/* sélecteur des 9 langues (26/10/2026) : mêmes formes que sur le reste du site
   (css/site.css), absent jusqu'ici de la boutique, où il s'affichait en liste brute */
body.ml :is(.foot, .ml-tools) .langsel { position: relative; }
body.ml :is(.foot, .ml-tools) .langsel-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; margin: 0; padding: 0 9px 0 8px;
  border: 1px solid var(--line-2); border-radius: 8px; background: transparent; color: var(--ink);
  font: 500 11px/1 var(--mono); letter-spacing: .04em; cursor: pointer; transition: border-color .2s;
}
body.ml :is(.foot, .ml-tools) .langsel-btn:hover, body.ml :is(.foot, .ml-tools) .langsel-btn[aria-expanded="true"] { border-color: var(--ink); }
body.ml :is(.foot, .ml-tools) .langsel-btn .lf { font-size: 13px; line-height: 1; letter-spacing: 0; }
body.ml :is(.foot, .ml-tools) .langsel-chev { width: 12px; height: 12px; color: var(--muted); transition: transform .2s; }
body.ml :is(.foot, .ml-tools) .langsel-btn[aria-expanded="true"] .langsel-chev { transform: rotate(180deg); }
body.ml :is(.foot, .ml-tools) .langsel-panel {
  position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 60; display: none; width: 236px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px -12px rgba(11, 13, 18, .22), 0 2px 6px rgba(11, 13, 18, .06);
}
body.ml :is(.foot, .ml-tools) .langsel.is-open .langsel-panel { display: block; }
body.ml :is(.foot, .ml-tools) .langsel-it {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: 9px; font: 450 14.5px/1.2 var(--sans); color: var(--ink-2); text-align: start;
}
body.ml :is(.foot, .ml-tools) .langsel-it .lf { font-size: 16px; }
body.ml :is(.foot, .ml-tools) .langsel-it .lc { font: 500 11px/1 var(--mono); letter-spacing: .06em; color: var(--faint); }
body.ml :is(.foot, .ml-tools) a.langsel-it:hover, body.ml :is(.foot, .ml-tools) a.langsel-it:focus-visible { background: #eef3ff; color: var(--ink); }
body.ml :is(.foot, .ml-tools) .langsel-it.is-on { background: var(--blue); color: #fff; }
body.ml :is(.foot, .ml-tools) .langsel-it.is-on .lc { color: rgba(255, 255, 255, .75); }
/* menu de l'en-tête de la boutique (28/10/2026) : il s'ouvre vers le bas */
body.ml .ml-tools .langsel-panel { top: calc(100% + 10px); bottom: auto; }

@media (max-width: 1040px) {
  body.ml .foot-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body.ml .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Gris de Maison Léon assombris pour la lisibilité (contraste 4,5:1 minimum ;
      #a3a099 ne donnait que 2,6:1 sur blanc) ── */
body.ml { --ml-gris: #6b6860; --ml-gris-c: #747068; }

/* ── Écrans tactiles : zones à toucher d'au moins 40 px dans la boutique ──
   Le dessin de Maison Léon ne change pas : seules les zones sensibles
   s'agrandissent (marges intérieures compensées quand il le faut). ── */
@media (pointer: coarse) {
  body.ml .ml-nav a { display: inline-block; padding-block: 10px; }
  body.ml .ml-brand { padding-block: 11px; }
  body.ml .ml-lang a, body.ml .ml-lang .on { min-width: 36px; height: 32px; font-size: 11px; }
  body.ml .ml-burger, body.ml .ml-ico { width: 44px; height: 44px; }
  body.ml .ml-heart { width: 40px; height: 40px; top: 8px; left: 8px; }
  body.ml .ml-fil a { display: inline-block; padding-block: 12px; }
  body.ml .ml-fil { padding-top: 10px; }
  body.ml .ml-guide { display: inline-block; padding-block: 12px; margin-block: -12px; }
  body.ml .ml-voir { display: inline-block; padding-block: 11px; margin-block: -11px; }
  body.ml .ml-card-nom { margin: 4px 0 0; padding: 10px 0 8px; }
  body.ml a.ml-strip { padding-block: 12px; }
  body.ml .ml-od-hit { left: 3%; top: auto; bottom: 4%; width: 28%; height: max(28%, 44px); }
  body.ml .foot .btn { height: 44px; }
  body.ml .foot-cols a { padding: 10px 0; }
  body.ml .foot-logo { padding: 6px 0; }
  body.ml .foot .lang { font-size: 11.5px; }
  body.ml .foot .lang > * { min-width: 40px; height: 36px; }
}

/* ── OptiDress s'adresse à la marque (22/10/2026) : ce qu'est cette boutique, puis
   sa FAQ, entre la collection et le bandeau sombre. Typographie du site OptiDress. ── */
body.ml .ml-odt {
  --ink: #0b0d12;
  --ink-2: #2a2e37;
  --muted: #555b68;
  --line: #e6e8ec;
  --blue: #0055fe;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  background: #f5f6f8; border-top: 1px solid var(--line);
  font-family: var(--sans); color: var(--ink);
}
body.ml .ml-odt-in { max-width: 820px; padding-block: clamp(64px, 8vw, 112px); }
body.ml .ml-odt h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -.016em;
  margin: 0 0 clamp(24px, 3vw, 34px); color: var(--ink); text-wrap: balance;
}
body.ml .ml-odt h2 em, body.ml .ml-odt-faq-h em { font-style: italic; color: var(--blue); }
body.ml .ml-odt-texte p { margin: 0 0 1.05em; font-size: 17px; line-height: 1.68; color: var(--ink-2); text-wrap: pretty; }
body.ml .ml-odt-faq-h {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -.01em;
  margin: clamp(44px, 5.5vw, 64px) 0 clamp(14px, 1.8vw, 20px); color: var(--ink);
}
body.ml .ml-odt .faq-item { border-top: 1px solid var(--line); }
body.ml .ml-odt .faq-item:last-child { border-bottom: 1px solid var(--line); }
body.ml .ml-odt .faq-item summary {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 500; line-height: 1.45; color: var(--ink);
  transition: color .2s var(--ease);
}
body.ml .ml-odt .faq-item summary::-webkit-details-marker { display: none; }
body.ml .ml-odt .faq-item summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin: 6px 4px 0 0;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg); transition: transform .25s var(--ease), margin .25s var(--ease);
}
body.ml .ml-odt .faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 11px; }
body.ml .ml-odt .faq-item summary:hover { color: var(--blue); }
body.ml .ml-odt .faq-item summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }
body.ml .ml-odt .faq-item p { margin: 0; padding: 0 0 22px; max-width: 40em; font-size: 16px; line-height: 1.62; color: var(--muted); }

/* boutique en arabe (28/10/2026) : mise en page de gauche à droite, chaque bloc de texte prend le sens
   de sa propre langue (l'arabe se lit de droite à gauche, aligné à droite) */
html[lang="ar"] :is(p, h1, h2, h3, h4, dt, dd, summary, label, figcaption) {
  unicode-bidi: plaintext;
}
