/* ============================================================================
   HexaDev — Simulateur « Composez votre site » (accueil, section #apercu)
   Piloté par apercu.js. Trois parties :
   1. Le panneau de réglages (.sim-panel)
   2. La scène : navigateur + téléphone (.sim-stage). Chaque écran contient un
      « viewport » virtuel (.sim-vp) de 1280 px (ordinateur) ou 390 px (téléphone),
      réduit à la taille de l'écran par apercu.js (transform: scale).
   3. Le mini-site généré (.ms). Le viewport est un conteneur : la même page
      passe en mise en page mobile dans le téléphone (@container ms).
   ============================================================================ */

/* ---- 1. Panneau ------------------------------------------------------------ */
.sim { display: grid; grid-template-columns: minmax(330px, 0.8fr) 1.2fr; gap: clamp(1.4rem, 1rem + 2vw, 3rem); align-items: start; margin-top: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); }
.sim > * { min-width: 0; }
.sim-panel { display: flex; flex-direction: column; gap: 1.1rem; }
.sim-form { display: flex; flex-direction: column; gap: 1.1rem; }
.sim:not(.is-live) .sim-form, .sim:not(.is-live) .sim-dice { display: none; }
.sim-step { display: flex; flex-direction: column; gap: 0.7rem; }
.sim-step + .sim-step { padding-top: 1.1rem; border-top: 1px solid var(--line); }
.sim-step-h { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 0.95rem; color: #fff; }
.sim-step-h b { flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: 0.74rem; color: #fff; background: var(--grad-neon); box-shadow: 0 0 14px -2px rgba(124, 60, 255, 0.8); }
.sim-step-h small { margin-left: auto; font-size: 0.76rem; font-weight: 600; color: var(--text-muted); }
.sim-step-h small i { color: #ffd479; font-style: normal; }
.sim-fields { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0.6rem; }
.sim-field label { display: block; margin-bottom: 0.3rem; font-size: 0.78rem; font-weight: 700; color: var(--text-2); }
.sim-input { width: 100%; padding: 0.72rem 0.9rem; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(8, 10, 24, 0.7); color: var(--text); font-size: 0.95rem; outline: none; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.sim-input::placeholder { color: var(--text-faint); }
.sim-input:focus { border-color: rgba(139, 69, 255, 0.7); box-shadow: 0 0 0 3px rgba(124, 60, 255, 0.18); }
.sim-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sim-chips .chat-reply { font-size: 0.8rem; padding: 0.42rem 0.75rem; }

.sim-styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.sim-style {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem;
  padding: 0.65rem 0.75rem 0.7rem; border-radius: 14px; text-align: left;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--text-2);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.sim-style:hover { transform: translateY(-1px); border-color: rgba(139, 69, 255, 0.55); }
.sim-style .aa { font-size: 1.55rem; line-height: 1.05; color: #fff; }
.sim-style[data-k="modern"] .aa { font-family: "Manrope", sans-serif; font-weight: 800; letter-spacing: -0.04em; }
.sim-style[data-k="elegant"] .aa { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 400; }
.sim-style[data-k="bold"] .aa { font-family: "Space Grotesk", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: -0.05em; }
.sim-style strong { font-size: 0.82rem; color: #fff; }
.sim-style small { font-size: 0.7rem; line-height: 1.25; color: var(--text-muted); }
.sim-style[aria-pressed="true"] { border-color: rgba(160, 110, 255, 0.9); background: rgba(124, 60, 255, 0.16); box-shadow: 0 0 0 3px rgba(124, 60, 255, 0.18), 0 10px 26px -14px rgba(124, 60, 255, 0.9); }
.sim-style:focus-visible, .sim-feat:focus-visible, .sim-seg button:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 2px; }
.sim-reco { position: absolute; top: 0.45rem; right: 0.55rem; font-size: 0.72rem; color: #ffd479; opacity: 0; transition: opacity var(--t-fast); }
.is-reco > .sim-reco { opacity: 1; }

.sim-row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem 1rem; flex-wrap: wrap; }
.sim-swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sim-swatch { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.16); background: linear-gradient(135deg, var(--a), var(--b)); cursor: pointer; transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast); }
.sim-swatch:hover { transform: scale(1.1); }
.sim-swatch[aria-pressed="true"] { border-color: #fff; transform: scale(1.14); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14), 0 0 16px var(--a); }
.sim-swatch:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 3px; }
.sim-swatch .sim-reco { top: -7px; right: -6px; font-size: 0.66rem; text-shadow: 0 0 6px #000; }
.sim-seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(8, 10, 24, 0.6); }
.sim-seg button { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.38rem 0.8rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; color: var(--text-muted); transition: background var(--t-fast), color var(--t-fast); }
.sim-seg button[aria-pressed="true"] { color: #fff; background: var(--grad-neon); box-shadow: 0 6px 16px -8px rgba(124, 60, 255, 0.9); }

.sim-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.sim-feat {
  display: flex; align-items: center; gap: 0.55rem; min-width: 0;
  padding: 0.55rem 0.65rem; border-radius: 12px; text-align: left;
  font-size: 0.8rem; font-weight: 700; color: var(--text-2);
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03);
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
  animation: simFeatIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(var(--d, 0) * 50ms);
}
.sim-feat > i { color: #b57bff; font-size: 0.95rem; }
.sim-feat > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim-feat .tg { position: relative; flex: 0 0 auto; margin-left: auto; width: 30px; height: 18px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); transition: background var(--t-fast); }
.sim-feat .tg::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.sim-feat:hover { border-color: rgba(139, 69, 255, 0.5); }
.sim-feat[aria-pressed="true"] { color: #fff; border-color: rgba(139, 69, 255, 0.6); background: rgba(124, 60, 255, 0.12); }
.sim-feat[aria-pressed="true"] .tg { background: var(--grad-neon); }
.sim-feat[aria-pressed="true"] .tg::after { transform: translateX(12px); }
@keyframes simFeatIn { from { opacity: 0; transform: translateY(6px) scale(0.97); } to { opacity: 1; transform: none; } }

.sim-sum { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin: 0; padding: 0.8rem 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 0.8rem; font-weight: 600; color: var(--text-2); }
.sim-sum li { display: inline-flex; align-items: center; gap: 0.4rem; }
.sim-sum i { color: var(--neon-lime); }
.sim-sum b { color: #fff; }
.sim-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.sim-note { margin: 0; font-size: 0.76rem; color: var(--text-muted); }
.sim-faq { margin: 2rem 0 0; text-align: center; color: var(--text-2); }
.sim-faq a { color: #c9a8ff; font-weight: 700; }

/* ---- 2. Scène : navigateur + téléphone -------------------------------------- */
.sim-stage { --tx: 0; --ty: 0; --sim-ac: #f26b1d; position: sticky; top: calc(var(--header-h) + 22px); container-type: inline-size; }
.sim-scene { position: relative; aspect-ratio: 13 / 8.5; perspective: 1700px; }
.sim-scene::before {
  content: ""; position: absolute; inset: -4% -3% 0; pointer-events: none;
  background: radial-gradient(48% 46% at 44% 46%, var(--sim-ac), transparent 70%);
  opacity: 0.34; filter: blur(30px); transition: background 0.8s ease;
}
.sim-browser {
  position: absolute; left: 0; top: 2.5%; width: 83%; padding: 1.2cqi; border-radius: 2cqi;
  background: linear-gradient(160deg, rgba(32, 40, 82, 0.97), rgba(11, 13, 32, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 5cqi 9cqi -4cqi rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: rotateY(calc(-4deg + var(--tx) * 4deg)) rotateX(calc(2deg - var(--ty) * 3deg));
}
.sim-bar { display: flex; align-items: center; gap: 1.2cqi; height: 4cqi; margin-bottom: 1cqi; }
.sim-dots { flex: 0 0 auto; display: inline-flex; gap: 0.8cqi; }
.sim-dots i { width: 1.3cqi; min-width: 5px; aspect-ratio: 1; border-radius: 50%; background: var(--neon-pink); }
.sim-dots i:nth-child(2) { background: var(--neon-amber); }
.sim-dots i:nth-child(3) { background: var(--neon-lime); }
.sim-navic { flex: 0 0 auto; display: inline-flex; gap: 1cqi; font-size: clamp(7px, 1.5cqi, 11px); color: var(--text-faint); }
.sim-url {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.8cqi;
  padding: 0.6cqi 1.4cqi; border-radius: 99px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: clamp(7px, 1.55cqi, 11px); color: var(--text-2); white-space: nowrap; overflow: hidden;
}
.sim-url i { color: #34d399; }
.sim-url span { overflow: hidden; text-overflow: ellipsis; }
.sim-screen, .sim-phone-screen { position: relative; overflow: hidden; background: #0b0c11; isolation: isolate; }
.sim-screen { aspect-ratio: 16 / 10; border-radius: 1.1cqi; }
.sim-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sim.is-rendered .sim-fallback { display: none; }

/* Le viewport virtuel (taille et échelle réglées par apercu.js) */
.sim-vp {
  position: absolute; left: 0; top: 0; transform-origin: 0 0;
  overflow: hidden; scrollbar-width: none; container: ms / inline-size;
}
.sim-vp::-webkit-scrollbar { display: none; }
.sim-stage.is-explore .sim-vp { overflow-y: auto; }

.sim-phone {
  position: absolute; right: 0; top: 19%; width: 23.5%; padding: 0.9cqi; border-radius: 3.6cqi;
  background: linear-gradient(160deg, #2c3466, #0d1130); border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4cqi 8cqi -3cqi rgba(0, 0, 0, 0.95), 0 0 6cqi -2cqi var(--sim-ac), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateZ(40px) rotateY(calc(-10deg + var(--tx) * 5deg)) rotateX(calc(1deg - var(--ty) * 3deg)) rotateZ(2deg);
  transition: box-shadow 0.8s ease;
}
.sim-phone-screen { aspect-ratio: 390 / 820; border-radius: 2.8cqi; }
/* Barre d'état du téléphone (heure, encoche, batterie) : le site commence juste en dessous */
.sim-status { position: absolute; z-index: 6; left: 0; right: 0; top: 0; height: 2.9cqi; display: flex; align-items: center; justify-content: space-between; padding: 0 1.9cqi; font-size: clamp(5px, 1.05cqi, 9px); font-weight: 800; color: #fff; background: #07080d; }
.sim-status::before { content: ""; position: absolute; top: 0.6cqi; left: 35%; width: 30%; height: 1.5cqi; border-radius: 99px; background: #000; }
.sim-status i { font-size: 1.1em; margin-left: 0.4em; }
.sim-phone-screen .sim-vp { top: 2.9cqi; }

/* Faisceau lumineux à chaque reconstruction */
.sim-scan { position: absolute; inset: 0; z-index: 5; opacity: 0; pointer-events: none; }
.sim-scan::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, #bfe0ff 12%, #fff 50%, #e7c2ff 88%, transparent); box-shadow: 0 0 10px 2px rgba(120, 180, 255, 0.95), 0 0 40px 10px var(--sim-ac); }
.sim-scan::after { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 30%; background: linear-gradient(to top, rgba(140, 180, 255, 0.28), transparent); mix-blend-mode: screen; }
.sim-stage.is-building .sim-scan, .sim-stage.is-scan .sim-scan { animation: simScan 1.2s cubic-bezier(0.65, 0.05, 0.36, 1); }

/* Petite notification dans le navigateur (« Section ajoutée ») */
.sim-toast {
  position: absolute; z-index: 7; left: 50%; bottom: 3cqi; display: inline-flex; align-items: center; gap: 1cqi;
  padding: 1.1cqi 2cqi; border-radius: 99px; white-space: nowrap;
  font-size: clamp(8px, 1.7cqi, 12px); font-weight: 700; color: #fff;
  background: rgba(12, 14, 34, 0.88); border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 2cqi 4cqi -1cqi rgba(0, 0, 0, 0.8), 0 0 3cqi -0.6cqi var(--sim-ac);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; translate: -50% 1.5cqi; scale: 0.94; transition: opacity 0.35s ease, translate 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), scale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sim-toast i { color: #34d399; }
.sim-toast.is-off i { color: var(--text-muted); }
.sim-toast.is-on { opacity: 1; translate: -50% 0; scale: 1; }

.sim-hint { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin: 0.4rem 0 0; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.sim-hint-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; animation: pulseDot 2s ease-in-out infinite; }

/* Scène étroite : on ne garde que le téléphone, plus grand (la page mobile est alors lisible) */
@container (max-width: 560px) {
  .sim-scene { aspect-ratio: auto; perspective: none; }
  .sim-browser { display: none; }
  .sim-phone { position: relative; right: auto; top: auto; width: min(68%, 300px); margin: 0 auto; padding: 2.2cqi; border-radius: 9cqi; transform: none; }
  .sim-phone-screen { border-radius: 7cqi; }
  .sim-status { height: 7cqi; padding: 0 5cqi; font-size: 11px; }
  .sim-status::before { top: 1.5cqi; height: 3.6cqi; }
  .sim-phone-screen .sim-vp { top: 7cqi; }
  .sim-toast { font-size: 11px; }
}

.sim-peek {
  position: fixed; left: 50%; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.2rem; border-radius: 999px; font-size: 0.9rem; font-weight: 800; color: #fff;
  background: var(--grad-neon); box-shadow: 0 14px 30px -10px rgba(124, 60, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  opacity: 0; visibility: hidden; translate: -50% 20px; transition: opacity 0.3s ease, translate 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s linear 0.4s;
}
.sim-peek.is-on { opacity: 1; visibility: visible; translate: -50% 0; transition: opacity 0.3s ease, translate 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@media (min-width: 1101px) { .sim-peek { display: none; } }

@keyframes simScan { 0% { opacity: 1; transform: translateY(0); } 92% { opacity: 1; } 100% { opacity: 0; transform: translateY(100%); } }

@media (max-width: 1100px) {
  .sim { grid-template-columns: 1fr; }
  .sim-stage { position: relative; top: auto; order: -1; width: 100%; max-width: 720px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .sim-fields { grid-template-columns: 1fr; }
  .sim-feats { grid-template-columns: 1fr; }
  .sim-styles .aa { font-size: 1.3rem; }
}

/* ---- 3. Le mini-site (.ms) ---------------------------------------------------
   Variables : --ac/--ac2 (couleur), data-theme (clair/sombre), data-style (moderne/élégant/audacieux).
   Tailles en pixels « virtuels » (page de 1280 px de large, réduite par l'échelle du viewport). */
.ms {
  --ac: #f26b1d; --ac2: #ffb020;
  --fh: "Manrope", system-ui, sans-serif; --fb: "Manrope", system-ui, sans-serif;
  --hw: 800; --ht: none; --hs: -0.035em; --r: 18px; --rb: 999px; --bw: 1px; --pad: 72px;
  --bg: #fbfaf8; --bg2: #f3f1ec; --ink: #16171d; --muted: rgba(22, 23, 29, 0.64); --line: rgba(22, 23, 29, 0.12); --card: #fff; --shadow: 0 18px 40px -22px rgba(20, 20, 40, 0.35);
  min-height: 100%; background: var(--bg); color: var(--ink);
  font-family: var(--fb); font-size: 16px; line-height: 1.55; text-align: left; -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s ease, color 0.5s ease;
}
.ms[data-theme="light"] { --bg: color-mix(in srgb, var(--ac) 5%, #fbfaf8); --bg2: color-mix(in srgb, var(--ac) 9%, #f2f0eb); --ink: #16171d; --muted: rgba(22, 23, 29, 0.64); --line: rgba(22, 23, 29, 0.12); --card: #ffffff; --shadow: 0 18px 40px -22px rgba(20, 20, 40, 0.35); }
.ms[data-theme="dark"] { --bg: color-mix(in srgb, var(--ac) 6%, #0b0c11); --bg2: color-mix(in srgb, var(--ac) 10%, #12131a); --ink: #f5f5f7; --muted: rgba(245, 245, 247, 0.64); --line: rgba(255, 255, 255, 0.11); --card: color-mix(in srgb, var(--ac) 5%, #17181f); --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.85); }
.ms[data-style="elegant"] { --fh: "Fraunces", Georgia, "Times New Roman", serif; --hw: 400; --hs: -0.015em; --r: 4px; --rb: 2px; }
.ms[data-style="bold"] { --fh: "Space Grotesk", "Manrope", sans-serif; --hw: 700; --ht: uppercase; --hs: -0.045em; --r: 0px; --rb: 0px; --bw: 2px; }
.ms *, .ms *::before, .ms *::after { box-sizing: border-box; }
.ms p { margin: 0; color: inherit; }
.ms img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.ms h1, .ms h2, .ms h3, .ms-logo b, .ms-fh { margin: 0; font-family: var(--fh); font-weight: var(--hw); text-transform: var(--ht); letter-spacing: var(--hs); line-height: 1.04; color: inherit; }
.ms em { font-style: normal; color: var(--ac); }
.ms[data-style="elegant"] em { font-style: italic; }
.ms[data-style="modern"] h1 em, .ms[data-style="modern"] h2 em { background: linear-gradient(100deg, var(--ac), var(--ac2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ms-w { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--pad); }
.ms-eb { display: inline-block; font-size: 12.5px; font-weight: 800; line-height: 1.5; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ac); }
.ms[data-style="elegant"] .ms-eb { font-weight: 700; letter-spacing: 0.2em; }
.ms[data-style="elegant"] .ms-eb::before { content: ""; display: inline-block; vertical-align: middle; width: 30px; height: 1px; margin: -2px 10px 0 0; background: currentColor; }
.ms[data-style="bold"] .ms-eb { padding: 6px 10px; color: #fff; background: var(--ac); letter-spacing: 0.12em; }

/* Boutons, cartes, champs factices */
.ms-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px;
  border-radius: var(--rb); border: var(--bw) solid transparent; white-space: nowrap;
  font-size: 15px; font-weight: 800; color: #fff; background-color: var(--ac);
  box-shadow: 0 16px 30px -16px var(--ac);
  transition: background-color 0.5s ease, border-radius 0.4s ease, box-shadow 0.5s ease, color 0.5s ease;
}
.ms[data-style="modern"] .ms-btn { background-image: linear-gradient(135deg, var(--ac), var(--ac2)); }
.ms[data-style="elegant"] .ms-btn { font-weight: 700; letter-spacing: 0.05em; box-shadow: none; }
.ms[data-style="bold"] .ms-btn { text-transform: uppercase; letter-spacing: 0.06em; box-shadow: 5px 5px 0 var(--ink); }
.ms .ms-btn.ms-btn--g { color: var(--ink); background: transparent; background-image: none; border-color: var(--line); box-shadow: none; }
.ms .ms-btn--sm { padding: 11px 20px; font-size: 14px; }
.ms .ms-btn--full { width: 100%; }
.ms-card { background: var(--card); border: var(--bw) solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); transition: background-color 0.5s ease, border-color 0.5s ease, border-radius 0.4s ease; }
.ms[data-style="bold"] .ms-card { border-color: var(--ink); box-shadow: 7px 7px 0 color-mix(in srgb, var(--ac) 80%, transparent); }
.ms-ph { position: relative; overflow: hidden; border-radius: calc(var(--r) * 1.3); background: var(--bg2); transition: border-radius 0.4s ease; }
.ms-cap { position: absolute; left: 14px; bottom: 14px; padding: 7px 12px; border-radius: var(--rb); font-size: 13px; font-weight: 700; color: #fff; background: rgba(10, 10, 16, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ms-tag { position: absolute; left: 14px; top: 14px; z-index: 1; padding: 6px 11px; border-radius: var(--rb); font-size: 12px; font-weight: 800; color: #fff; background: var(--ac); }
.ms-inp { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 11px 14px; border-radius: calc(var(--r) * 0.6); border: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: 14px; }
.ms-inp i { color: var(--ac); }
.ms-inp b { color: var(--ink); font-weight: 700; }
.ms-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ms-chipset { display: flex; flex-wrap: wrap; gap: 7px; }
.ms-chipset span { padding: 7px 12px; border-radius: var(--rb); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.ms-chipset .on { color: #fff; background: var(--ac); border-color: var(--ac); }
.ms-chipset .off { opacity: 0.4; text-decoration: line-through; }
.ms-stars { color: #f5b301; letter-spacing: 2px; }
.ms-live { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ac); }
.ms-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* Barre du haut + navigation (collante, comme sur un vrai site) */
.ms-topbar { display: block; padding: 10px var(--pad); text-align: center; font-size: 13.5px; font-weight: 700; line-height: 1.4; color: #fff; background: var(--ac); }
.ms-topbar i { margin-right: 6px; }
.ms-nav { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 34px; height: 78px; padding: 0 var(--pad); background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background-color 0.5s ease; }
.ms-logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ms-logo b { font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.ms-mark { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: calc(var(--r) * 0.55 + 2px); font-size: 19px; color: #fff; background: var(--ac); transition: border-radius 0.4s ease, background-color 0.5s ease; }
.ms-mark span { display: none; font-family: var(--fh); font-size: 16px; letter-spacing: 0.02em; }
.ms[data-style="elegant"] .ms-mark { border-radius: 50%; color: var(--ac); background: transparent; border: 1px solid var(--ac); }
.ms[data-style="elegant"] .ms-mark i { display: none; }
.ms[data-style="elegant"] .ms-mark span { display: block; font-style: italic; }
.ms-links { display: flex; gap: 30px; margin-left: auto; font-size: 15px; font-weight: 600; color: var(--muted); }
.ms-links span:first-child { color: var(--ink); }
.ms-burger { display: none; margin-left: auto; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: calc(var(--r) * 0.5); font-size: 22px; }

/* Sections */
.ms-sec { padding: 92px 0; }
.ms-alt { background: var(--bg2); transition: background-color 0.5s ease; }
.ms-hd { max-width: 660px; margin-bottom: 42px; }
.ms-hd--c { margin-inline: auto; text-align: center; }
.ms-hd--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; max-width: none; }
.ms-h2 { font-size: 46px; margin: 12px 0 14px !important; }
.ms[data-style="bold"] .ms-h2 { font-size: 52px; line-height: 0.96; }
.ms-p { font-size: 17.5px; color: var(--muted) !important; }
.ms-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ms-g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ms-g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Héros */
.ms-hero { position: relative; padding: 70px 0 92px; overflow: hidden; }
.ms-hero::before { content: ""; position: absolute; right: -12%; top: -30%; width: 62%; height: 130%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ac) 20%, transparent), transparent); pointer-events: none; }
.ms-hg { position: relative; display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 60px; align-items: center; }
.ms-h1 { margin: 18px 0 22px !important; font-size: 76px; overflow-wrap: anywhere; }
.ms[data-style="bold"] .ms-h1 { font-size: 90px; line-height: 0.9; }
.ms[data-len="l"] .ms-h1 { font-size: 58px; }
.ms[data-len="xl"] .ms-h1 { font-size: 46px; }
.ms-lead { max-width: 530px; font-size: 19px; color: var(--muted) !important; }
.ms-acts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.ms-trust { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 34px; font-size: 14px; font-weight: 700; color: var(--muted); }
.ms-trust i { margin-right: 6px; color: var(--ac); }
.ms-media { position: relative; }
.ms-ph--hero { aspect-ratio: 4 / 4.3; box-shadow: var(--shadow); }
.ms-fl { position: absolute; z-index: 2; }
.ms-fl--bl { left: -44px; bottom: 34px; }
.ms-fl--br { right: -26px; bottom: -22px; }
.ms-fl--tr { right: -18px; top: 26px; }
.ms-box { width: 312px; padding: 20px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.ms-box-h b { display: block; font-family: var(--fh); font-weight: var(--hw); text-transform: var(--ht); letter-spacing: var(--hs); font-size: 20px; line-height: 1.1; }
.ms-box-h small { font-size: 13px; color: var(--muted); }
.ms-prog { height: 8px; border-radius: 99px; background: var(--bg2); overflow: hidden; }
.ms-prog i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ac), var(--ac2)); }
.ms-progl { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ms-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.ms-slots span { padding: 9px 0; text-align: center; border-radius: calc(var(--r) * 0.5); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.ms-slots .on { color: #fff; background: var(--ac); border-color: var(--ac); }
.ms-slots .off { opacity: 0.35; text-decoration: line-through; }
.ms-cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ms-cal span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-radius: calc(var(--r) * 0.5); border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; color: var(--muted); }
.ms-cal b { font-size: 17px; color: var(--ink); }
.ms-cal .on { color: rgba(255, 255, 255, 0.8); background: var(--ac); border-color: var(--ac); }
.ms-cal .on b { color: #fff; }
.ms-badge { position: absolute; z-index: 3; display: grid; place-items: center; width: 118px; height: 118px; border-radius: 50%; text-align: center; font-family: var(--fh); font-weight: var(--hw); font-size: 15px; line-height: 1.1; color: #fff; background: var(--ac); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.5); }
.ms-badge b { display: block; font-size: 34px; }
.ms[data-style="bold"] .ms-badge { border-radius: 0; }

/* Héros plein écran (immobilier, événementiel) */
.ms-hero--full { min-height: 650px; display: flex; align-items: flex-end; padding: 0 0 70px; color: #fff; }
.ms-hero--full::before { display: none; }
.ms-hero--full .ms-bg { position: absolute; inset: 0; }
.ms-hero--full .ms-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1) 32%, rgba(0, 0, 0, 0.78)); }
.ms-hero--full .ms-w { position: relative; }
.ms-hero--full .ms-lead { color: rgba(255, 255, 255, 0.84) !important; }
.ms-hero--full .ms-eb { color: #fff; }
.ms[data-style="bold"] .ms-hero--full .ms-eb { background: var(--ac); }
.ms .ms-hero--full .ms-btn.ms-btn--g { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.ms-hero--full .ms-trust { color: rgba(255, 255, 255, 0.85); }
.ms-hero--c { align-items: center; text-align: center; padding: 70px 0; }
.ms-hero--c .ms-lead { margin-inline: auto; }
.ms-hero--c .ms-acts, .ms-hero--c .ms-trust { justify-content: center; }
.ms-search { display: flex; align-items: center; gap: 22px; max-width: 900px; margin-top: 36px; padding: 10px 10px 10px 18px; color: var(--ink); }
.ms-stabs { display: flex; gap: 4px; padding: 4px; border-radius: var(--rb); background: var(--bg2); }
.ms-stabs span { padding: 9px 15px; border-radius: var(--rb); font-size: 13.5px; font-weight: 700; color: var(--muted); }
.ms-stabs .on { color: #fff; background: var(--ink); }
.ms[data-theme="dark"] .ms-stabs .on { color: var(--bg); }
.ms-sf { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; padding-left: 18px; border-left: 1px solid var(--line); }
.ms-sf small { font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ms-sf b { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-stats-inline { display: flex; gap: 14px; margin-top: 40px; justify-content: center; }
.ms-stats-inline span { padding: 12px 18px; border-radius: var(--rb); font-size: 14px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ms-stats-inline b { font-family: var(--fh); font-size: 18px; margin-right: 6px; }

/* Restaurant : photo en arche */
.ms-ph--arch { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r) var(--r); box-shadow: var(--shadow); }
.ms[data-style="bold"] .ms-ph--arch { border-radius: 0; }
.ms-open { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.ms-open b { color: var(--ink); }

/* Santé : formes douces */
.ms-hero--calm::before { left: -20%; right: auto; top: -10%; width: 70%; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ac2) 30%, transparent), transparent); }
.ms-ph--soft { aspect-ratio: 4 / 4.4; border-radius: 48% 52% 46% 54% / 40% 42% 58% 60%; box-shadow: var(--shadow); }
.ms[data-style="bold"] .ms-ph--soft { border-radius: 0; }
.ms[data-style="elegant"] .ms-ph--soft { border-radius: 999px 999px 4px 4px; }

/* Services : tableau de bord illustré */
.ms-dash { padding: 26px; display: flex; flex-direction: column; gap: 22px; }
.ms-dash-h { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.ms-dash-h b { font-family: var(--fh); font-weight: var(--hw); text-transform: var(--ht); font-size: 19px; color: var(--ink); }
.ms-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ms-kpis div { padding: 14px; border-radius: calc(var(--r) * 0.7); background: var(--bg2); }
.ms-kpis small { display: block; font-size: 12px; color: var(--muted); }
.ms-kpis b { font-family: var(--fh); font-weight: var(--hw); font-size: 26px; color: var(--ac); }
.ms-bars { display: flex; align-items: flex-end; gap: 12px; height: 170px; padding-top: 10px; border-bottom: 1px solid var(--line); }
.ms-bars i { flex: 1; height: var(--h); border-radius: calc(var(--r) * 0.4) calc(var(--r) * 0.4) 0 0; background: color-mix(in srgb, var(--ac) 30%, transparent); }
.ms-bars i:nth-last-child(-n+3) { background: linear-gradient(180deg, var(--ac2), var(--ac)); }
.ms-who { display: flex; align-items: center; gap: 12px; }
.ms-av { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-size: 14px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--ac), var(--ac2)); }
.ms-who b { display: block; font-size: 14.5px; }
.ms-who small { font-size: 12.5px; color: var(--muted); }
.ms-logos { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 34px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.ms-logos > small { flex: 0 0 auto; font-size: 13px; font-weight: 700; }
.ms-logos span { font-size: 22px; font-weight: 800; opacity: 0.75; white-space: nowrap; }
.ms-logos .l1 { font-family: "Space Grotesk", sans-serif; letter-spacing: 0.12em; }
.ms-logos .l2 { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 500; }
.ms-logos .l3 { font-family: "Space Mono", monospace; font-size: 19px; }
.ms-logos .l4 { letter-spacing: 0.3em; font-weight: 600; }

/* Modules */
.ms-filter { display: flex; gap: 8px; }
.ms-filter span { padding: 9px 16px; border-radius: var(--rb); border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--muted); }
.ms-filter .on { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.ms-work .ms-ph { aspect-ratio: 4 / 3.2; }
.ms-work b { display: block; margin-top: 14px; font-size: 17px; }
.ms-work small { font-size: 14px; color: var(--muted); }
.ms-map { position: relative; aspect-ratio: 5 / 4; overflow: hidden; border-radius: calc(var(--r) * 1.2); border: var(--bw) solid var(--line);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 46px 46px,
    var(--bg2); }
.ms-map .road { position: absolute; height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.ms-map .zone { position: absolute; left: 50%; top: 52%; width: 66%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 2px dashed var(--ac); background: color-mix(in srgb, var(--ac) 12%, transparent); }
.ms-map .pin { position: absolute; left: 50%; top: 52%; translate: -50% -50%; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; font-size: 24px; color: #fff; background: var(--ac); box-shadow: 0 0 0 10px color-mix(in srgb, var(--ac) 25%, transparent); }
.ms-map .town { position: absolute; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.ms-map .town::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.ms-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.ms-list span { padding: 8px 14px; border-radius: var(--rb); background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 700; }

.ms-rv-top { display: flex; align-items: center; gap: 20px; }
.ms-ph--tall { aspect-ratio: 4 / 4.4; }
.ms-score { font-family: var(--fh); font-weight: var(--hw); font-size: 64px; line-height: 1; }
.ms-rv-top small { display: block; font-size: 14px; color: var(--muted); }
.ms-rv { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.ms-rv p { font-size: 16px; }
.ms[data-style="elegant"] .ms-rv p { font-family: var(--fh); font-size: 18px; font-style: italic; }

.ms-prod .ms-ph { aspect-ratio: 1 / 1.08; }
.ms-prod-r { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.ms-prod-r b { display: block; font-size: 16px; }
.ms-prod-r small { font-size: 15px; font-weight: 800; color: var(--ac); }
.ms-prod-r small s { margin-left: 6px; font-weight: 600; color: var(--muted); }
.ms-add { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--rb); font-size: 18px; color: #fff; background: var(--ac); }
.ms-stp { padding: 28px; }
.ms-stp .n { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: calc(var(--r) * 0.7); font-size: 21px; color: var(--ac); background: color-mix(in srgb, var(--ac) 14%, transparent); }
.ms-stp b { display: block; font-size: 18px; margin-bottom: 6px; }
.ms-stp p { font-size: 15px; color: var(--muted); }
.ms-band { display: flex; align-items: center; justify-content: space-between; gap: 34px; padding: 44px 50px; border-radius: calc(var(--r) * 1.3); color: #fff; background: var(--ac); }
.ms[data-style="modern"] .ms-band { background-image: linear-gradient(120deg, var(--ac), var(--ac2)); }
.ms-band h2 { font-size: 34px; }
.ms-band p { margin-top: 8px !important; opacity: 0.86; }
.ms-band .ms-inp { min-width: 330px; background: rgba(255, 255, 255, 0.95); color: #555; border: 0; }
.ms .ms-band .ms-btn { color: var(--ac); background: #fff; background-image: none; box-shadow: none; }

.ms-menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.ms-menu h3 { font-size: 26px; padding-bottom: 14px; margin-bottom: 18px !important; border-bottom: var(--bw) solid var(--line); }
.ms-dish { margin-bottom: 18px; }
.ms-dish div { display: flex; align-items: baseline; gap: 10px; font-weight: 700; }
.ms-dish div i { flex: 1; border-bottom: 1.5px dotted color-mix(in srgb, var(--ink) 30%, transparent); translate: 0 -4px; }
.ms-dish div span { font-family: var(--fh); font-weight: var(--hw); color: var(--ac); }
.ms-dish small { display: block; margin-top: 3px; font-size: 14px; color: var(--muted); }
.ms-hours div { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.ms-hours .now { font-weight: 800; color: var(--ac); }

.ms-prop .ms-ph { aspect-ratio: 4 / 3; }
.ms-prop-b { padding: 20px 22px 22px; }
.ms-prop { overflow: hidden; }
.ms-prop .ms-ph { border-radius: 0; }
.ms-price { font-family: var(--fh); font-weight: var(--hw); font-size: 27px; }
.ms-prop-b b { display: block; margin: 4px 0 10px; font-size: 16px; }
.ms-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--muted); }
.ms-meta i { color: var(--ac); margin-right: 5px; }
.ms-dpe { position: absolute; right: 14px; top: 14px; z-index: 1; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 7px; font-size: 15px; font-weight: 800; color: #fff; background: #2f9e44; }
.ms-dpe.c { background: #94c11f; }
.ms-est { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; padding: 44px 48px; }
.ms-est-f { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ms-est-f .ms-inp:first-child, .ms-est-f .ms-btn { grid-column: 1 / -1; }
.ms-range { display: flex; flex-direction: column; gap: 10px; }
.ms-range-h { display: flex; justify-content: space-between; font-size: 14.5px; font-weight: 700; }
.ms-range-h span { color: var(--muted); font-weight: 600; }
.ms-track { position: relative; height: 8px; border-radius: 99px; background: var(--bg2); }
.ms-track i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--v); border-radius: inherit; background: linear-gradient(90deg, var(--ac), var(--ac2)); }
.ms-track i::after { content: ""; position: absolute; right: -11px; top: -7px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--ac); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25); }
.ms-result { padding: 30px; border-radius: calc(var(--r) * 1.1); text-align: center; color: #fff; background: var(--ac); }
.ms-result small { opacity: 0.85; font-size: 14px; }
.ms-result b { display: block; margin: 6px 0; font-family: var(--fh); font-weight: var(--hw); font-size: 46px; }

.ms-care { display: flex; align-items: center; gap: 18px; padding: 20px 22px; }
.ms-ic { flex: 0 0 auto; width: 54px; height: 54px; display: grid; place-items: center; border-radius: calc(var(--r) * 0.8); font-size: 23px; color: var(--ac); background: color-mix(in srgb, var(--ac) 14%, transparent); }
.ms-care b { display: block; font-size: 17px; }
.ms-care small { font-size: 14px; color: var(--muted); }
.ms-care .pr { margin-left: auto; text-align: right; white-space: nowrap; font-family: var(--fh); font-weight: var(--hw); font-size: 22px; color: var(--ac); }
.ms-team { padding: 26px; text-align: center; }
.ms-team .ms-av { width: 92px; height: 92px; margin: 0 auto 16px; font-size: 28px; }
.ms-team b { display: block; font-size: 18px; }
.ms-team small { font-size: 14px; color: var(--muted); }

.ms-offer { padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.ms-offer.feat { border-color: var(--ac); box-shadow: 0 0 0 2px var(--ac), var(--shadow); }
.ms-offer h3 { font-size: 26px; }
.ms-offer p { font-size: 15px; color: var(--muted); }
.ms-offer ul, .ms-plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.ms-offer li i, .ms-plan li i { margin-right: 8px; color: var(--ac); }
.ms-offer .from { margin-top: auto; padding-top: 10px; font-size: 14px; color: var(--muted); }
.ms-offer .from b { font-family: var(--fh); font-weight: var(--hw); font-size: 24px; color: var(--ink); }
.ms-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ms-stat { padding: 10px 0 10px 24px; border-left: 3px solid var(--ac); }
.ms-stat b { display: block; font-family: var(--fh); font-weight: var(--hw); font-size: 54px; line-height: 1; color: var(--ink); }
.ms-stat small { font-size: 15px; color: var(--muted); }
.ms-quote { max-width: 880px; margin: 0 auto; text-align: center; }
.ms-quote p { font-family: var(--fh); font-size: 32px; line-height: 1.3; }
.ms[data-style="elegant"] .ms-quote p { font-style: italic; }
.ms-quote .ms-who { justify-content: center; margin-top: 26px; text-align: left; }

.ms-gal { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 16px; }
.ms-gal .ms-ph:first-child { grid-row: span 2; }
.ms-plan { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.ms-plan.feat { color: #fff; background: var(--ac); border-color: var(--ac); transform: translateY(-14px); }
.ms[data-style="modern"] .ms-plan.feat { background-image: linear-gradient(150deg, var(--ac), var(--ac2)); }
.ms-plan.feat li i { color: #fff; }
.ms-plan h3 { font-size: 26px; }
.ms-plan .pp { font-family: var(--fh); font-weight: var(--hw); font-size: 36px; }
.ms-plan .pp small { font-family: var(--fb); font-size: 14px; font-weight: 600; opacity: 0.75; }
.ms-plan .ms-btn { margin-top: 8px; }
.ms .ms-plan.feat .ms-btn { color: var(--ac); background: #fff; background-image: none; box-shadow: none; }
.ms-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 30px; }
.ms-form .full { grid-column: 1 / -1; }
.ms-form .ta { min-height: 110px; align-items: flex-start; }
.ms-contact { display: flex; flex-direction: column; gap: 18px; font-size: 16px; }
.ms-contact div { display: flex; align-items: center; gap: 14px; }

.ms-cta { padding: 88px 0; text-align: center; }
.ms-cta h2 { font-size: 50px; margin-bottom: 26px !important; }
.ms[data-style="bold"] .ms-cta h2 { font-size: 64px; }
.ms-foot { padding: 54px 0 30px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.ms-foot-g { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.ms-foot b { display: block; margin-bottom: 10px; color: var(--ink); font-size: 15px; }
.ms-foot .ms-logo { margin-bottom: 12px; }
.ms-foot-g > div > span { display: block; margin-bottom: 6px; }
.ms-soc { display: flex; gap: 10px; font-size: 18px; color: var(--ink); }
.ms-foot-b { display: flex; justify-content: space-between; margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; }

/* Apparition des sections (reconstruction) et section qui vient d'être ajoutée */
.sim-stage.is-building .ms > * { animation: msIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(var(--k, 0) * 110ms + 150ms); }
.ms > .is-new { animation: msNew 2s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes msIn { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes msNew {
  0% { opacity: 0; transform: translateY(40px); box-shadow: inset 0 0 0 0 transparent; }
  35% { opacity: 1; transform: none; box-shadow: inset 0 0 0 4px var(--ac); }
  100% { box-shadow: inset 0 0 0 0 transparent; }
}

/* ---- Version mobile du mini-site (dans le téléphone) ---- */
@container ms (max-width: 700px) {
  .ms { --pad: 20px; font-size: 15px; }
  .ms-topbar { font-size: 12px; padding-block: 8px; }
  .ms-nav { height: 62px; gap: 12px; }
  .ms-links, .ms-nav > .ms-btn { display: none; }
  .ms-burger { display: grid; width: 38px; height: 38px; }
  .ms-logo b { font-size: 17px; max-width: 230px; }
  .ms-mark { width: 34px; height: 34px; font-size: 16px; }
  .ms-sec { padding: 54px 0; }
  .ms-hd { margin-bottom: 26px; }
  .ms-hd--row { display: block; }
  .ms-hd--row .ms-filter { margin-top: 16px; }
  .ms-h2, .ms[data-style="bold"] .ms-h2 { font-size: 29px; }
  .ms-p { font-size: 15px; }
  .ms-hero { padding: 30px 0 50px; }
  .ms-hg, .ms-g2, .ms-g3, .ms-est, .ms-menu { grid-template-columns: 1fr; gap: 26px; }
  .ms-g4, .ms-stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .ms-h1, .ms[data-style="bold"] .ms-h1 { font-size: 44px; margin: 14px 0 14px !important; }
  .ms[data-len="l"] .ms-h1 { font-size: 36px; }
  .ms[data-len="xl"] .ms-h1 { font-size: 30px; }
  .ms-lead { font-size: 15.5px; }
  .ms-acts { margin-top: 22px; gap: 10px; }
  .ms-acts .ms-btn { width: 100%; }
  .ms-trust { gap: 8px 16px; margin-top: 22px; font-size: 12.5px; }
  .ms-ph--hero, .ms-ph--soft { aspect-ratio: 4 / 3.3; }
  .ms-ph--arch { aspect-ratio: 4 / 4.2; }
  .ms-fl--bl, .ms-fl--br, .ms-fl--tr { position: relative; left: auto; right: auto; top: auto; bottom: auto; margin: -40px 12px 0; }
  .ms-box { width: auto; }
  .ms-badge { width: 84px; height: 84px; font-size: 12px; }
  .ms-badge b { font-size: 24px; }
  .ms-hero--full { min-height: 600px; padding-bottom: 36px; }
  .ms-search { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; }
  .ms-sf { padding: 6px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .ms-stats-inline { flex-wrap: wrap; gap: 8px; }
  .ms-stats-inline span { padding: 9px 12px; font-size: 12.5px; }
  .ms-logos { flex-wrap: wrap; justify-content: center; gap: 14px 22px; padding: 24px 0; }
  .ms-logos > small { width: 100%; text-align: center; }
  .ms-logos span { font-size: 16px; }
  .ms-gal { grid-template-columns: 1fr 1fr; grid-template-rows: 170px 120px 120px; gap: 10px; }
  .ms-gal .ms-ph:first-child { grid-column: span 2; grid-row: auto; }
  .ms-band { flex-direction: column; align-items: stretch; padding: 30px 22px; gap: 18px; }
  .ms-band h2 { font-size: 26px; }
  .ms-band .ms-inp { min-width: 0; }
  .ms-est { padding: 26px 20px; }
  .ms-plan.feat { transform: none; }
  .ms-form { grid-template-columns: 1fr; padding: 20px; }
  .ms-stat b { font-size: 38px; }
  .ms-quote p { font-size: 22px; }
  .ms-cta { padding: 56px 0; }
  .ms-cta h2, .ms[data-style="bold"] .ms-cta h2 { font-size: 32px; }
  .ms-foot-g { grid-template-columns: 1fr 1fr; gap: 22px; }
  .ms-foot-g > div:first-child { grid-column: 1 / -1; }
  .ms-foot-b { flex-direction: column; gap: 6px; }
  .ms-score { font-size: 48px; }
  .ms-care .pr { font-size: 18px; }
  .ms-kpis b { font-size: 20px; }
  .ms-bars { height: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .sim-stage.is-building .ms > *, .ms > .is-new, .sim-stage.is-building .sim-scan, .sim-stage.is-scan .sim-scan, .sim-feat, .sim-hint-dot { animation: none !important; }
}
