/* Laboratoire Luiz — interface mobile dédiée (≤ 820 px).
   Chargée seulement sur petit écran. Elle remplace la scène du bureau (topbar, parcours épinglé, pied de page)
   par sa propre structure : barre fine, hero, démarches, services en accordéon, bloc précision, étapes, photos, contact, dock d'actions. */

:root {
  --m-gut: max(20px, 5.4vw);
  --m-dock-h: 64px;
  --ico-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
  --ico-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8z'/%3E%3C/svg%3E");
  --ico-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

html { scroll-padding-top: 76px; }
.has-m-app > .topbar,
.has-m-app > main.journey,
.has-m-app > .site-footer,
.has-m-app > .skip-link { display: none; }
.m-app { display: block; overflow-x: clip; }
.m-app .skip-link { z-index: 60; }

.ico-phone { --i: var(--ico-phone); }
.ico-chat { --i: var(--ico-chat); }
.ico-pin { --i: var(--ico-pin); }

/* Barre fine */
.m-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(8px + env(safe-area-inset-top)) var(--m-gut) 8px; border-bottom: 1px solid var(--line); background: rgba(var(--veil), .9); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.m-brand { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; }
.m-brand-text b { display: block; font: 400 1.5rem/1 var(--serif); letter-spacing: .04em; }
.m-brand-text small { display: block; margin-top: 3px; color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.m-icon-btn { display: grid; place-items: center; flex: none; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--paper); cursor: pointer; }
.m-icon-btn .arr { width: 22px; height: 22px; }

/* Hero : visuel de service, messages courts et commandes accessibles */
.m-hero { position: relative; padding: 20px 0 8px; }
.m-hero .cell { display: none; }
.m-membrane { position: relative; width: calc(100% - var(--m-gut) + 30px); height: min(34svh, 340px); margin: 0 0 0 var(--m-gut); overflow: hidden; border: 1px solid var(--glass-edge); border-radius: 28px 68px 28px 68px; background: var(--panel); animation: none; }
.m-membrane .hero-carousel-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 38%; }
.m-hero-copy { position: relative; display: grid; margin: 26px var(--m-gut) 0; }
.m-hero-panel { grid-area: 1 / 1; visibility: hidden; opacity: 0; pointer-events: none; }
.m-hero-panel.is-active { position: relative; z-index: 1; visibility: visible; opacity: 1; pointer-events: auto; }
.m-hero-panel h1, .m-hero-panel h2 { margin: 0; font-size: clamp(2.35rem, 10.8vw, 3.15rem); line-height: 1.02; }
.m-hero-panel .hero-eyebrow { margin: 0 0 12px; font-size: .68rem; }
.m-hero-panel .m-lede { margin: 14px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.58; }
.m-hero-panel .primary-cta { display: flex; justify-content: space-between; width: 100%; margin-top: 20px; }
.m-hero-panel.is-entering[data-transition='horizontal'] { animation: hero-copy-horizontal .65s var(--ease) both; }
.m-hero-panel.is-entering[data-transition='vertical'] { animation: hero-copy-vertical .65s var(--ease) both; }
.m-hero-panel.is-entering[data-transition='fade'] { animation: hero-copy-fade .65s var(--ease) both; }
.m-hero .hero-carousel-controls { margin-top: 8px; }
.m-hero .hero-carousel-arrow { width: 38px; height: 38px; }
.m-hero .hero-carousel-pause { margin-left: auto; }

/* Hero mobile plein cadre : photo en fond, titre et accroche en surimpression. */
.m-top { --paper: #fff; --muted: #d9e8f2; --logo: #fff; --line: rgba(255,255,255,.3); position: absolute; top: 0; right: 0; left: 0; border: 0; background: rgba(4,23,47,.78); color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.m-hero { min-height: calc(100svh - 64px); margin: 0; padding: 0; background: #04172f; }
.m-membrane { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; background: #04172f; }
.m-membrane .hero-carousel-image { object-position: 78% 42%; filter: saturate(.88) contrast(1.08); }
.m-membrane::after { content: ''; position: absolute; z-index: 2; inset: 0; background: linear-gradient(180deg, rgba(4,23,47,.2) 0%, rgba(4,23,47,.22) 32%, rgba(4,23,47,.83) 72%, rgba(4,23,47,.94) 100%); pointer-events: none; }
.m-hero-copy { position: absolute; z-index: 3; inset: 0; grid-template-columns: minmax(0,1fr); grid-template-rows: 1fr auto; align-items: end; margin: 0; padding: 76px var(--m-gut) 22px; color: #fff; }
.m-hero-panel { grid-row: 1; grid-column: 1; align-self: end; }
.m-hero-panel h1, .m-hero-panel h2 { max-width: 13ch; color: #fff; font-size: clamp(2.7rem, 11.8vw, 4.2rem); }
.m-hero .hero-eyebrow, .m-hero-panel h1 em, .m-hero-panel h2 em { color: #a9dff7; }
.m-hero-panel .m-lede { max-width: 36ch; color: rgba(255,255,255,.92); }
.m-hero-panel .primary-cta { justify-content: center; min-height: 50px; border-color: #a9dff7; background: #a9dff7; color: #04172f; }
.m-hero .hero-carousel-controls { grid-row: 2; grid-column: 1; align-self: end; margin-top: 18px; color: rgba(255,255,255,.86); }
.m-hero .hero-carousel-arrow, .m-hero .hero-carousel-pause { color: #fff !important; }
.m-hero .hero-carousel-dots button { background: rgba(255,255,255,.82); }
.m-hero .hero-carousel-dots button[aria-current='true'] { background: #a9dff7; }

/* Portrait d’illustration, conservé dans le parcours mobile. */
.m-team > p:first-of-type { max-width: 42ch; color: var(--muted); line-height: 1.65; }
.m-team-photo { position: relative; overflow: hidden; margin: 24px 0 0; border-radius: 16px; background: var(--ink-2); }
.m-team-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,23,47,.68), transparent 70%); pointer-events: none; }
.m-team-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 52% 36%; }
.m-team-photo figcaption { position: absolute; z-index: 1; right: 18px; bottom: 18px; left: 18px; color: #fff; font: 400 1.75rem/1.05 var(--serif); }
#m-team { padding-bottom: 0; }

/* Modale de service : texte lisible, repères courts et lien d’action sobre. */
.service-dialog-content h3 { margin-top: 22px; }
.service-dialog-content ul { gap: 8px; padding-left: 19px; font-size: .94rem; }
.service-dialog-note { font-size: .86rem; line-height: 1.55; }
.m-cell-a { left: calc(var(--m-gut) - 14px); top: calc(min(32svh, 320px) - 30px); width: 64px; --dx: 6px; --dy: -8px; --d: 11s; --blur: 0px; }
.m-cell-b { right: 18px; top: 2px; width: 30px; --dx: 5px; --dy: 7px; --d: 8s; --blur: 0px; }
/* Rythme : beaucoup d'air avant un titre, peu après */
.m-block { padding: 56px var(--m-gut) 0; }
#m-demarches { padding-top: 38px; }
.m-block h2 { margin-bottom: 20px; font-size: clamp(1.9rem, 8.4vw, 2.4rem); }
.m-block h2 em { color: var(--signal); }

/* Démarches : une lamelle principale (l'ordonnance), le domicile en pleine largeur, deux tuiles pour les autres publics */
.m-intents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.m-intent-lead, .m-intent-wide { grid-column: 1 / -1; }
.m-intent { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; height: 100%; min-height: 76px; padding: 14px 16px 14px 22px; border: 1px solid var(--glass-edge); border-radius: 22px 38px 22px 38px; background: var(--glass); color: var(--paper); text-align: left; cursor: pointer; transition: scale .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease); }
.m-intent:active { scale: .985; border-color: var(--signal); background: var(--glass-hi); }
.m-intent b { display: block; font: 400 1.35rem/1.15 var(--serif); }
.m-intent small { display: block; margin-top: 4px; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.m-go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--glass-hi); color: var(--signal); }
.m-go .arr { width: 20px; height: 20px; }
.m-intent-lead .m-intent { min-height: 108px; padding: 20px 18px 20px 26px; border-color: var(--signal); border-radius: 34px 70px 34px 70px; background: linear-gradient(135deg, color-mix(in srgb, var(--signal) 26%, transparent), var(--glass)); }
.m-intent-lead .m-intent b { font-size: 1.75rem; }
.m-intent-lead .m-go { width: 48px; height: 48px; background: var(--signal); color: var(--ink); }
.m-intent-half .m-intent { grid-template-columns: 1fr; align-content: space-between; min-height: 112px; padding: 16px 16px 14px 18px; border-radius: 38px 22px 38px 22px; }
.m-intent-half .m-intent b { font-size: 1.2rem; }
.m-intent-half .m-intent small { font-size: .85rem; }
.m-intent-half .m-go { width: 36px; height: 36px; justify-self: end; margin-top: 8px; }

/* Services : accordéon, un seul ouvert à la fois (details name) */
.m-services { border-top: 1px solid var(--line); }
.m-services details { border-bottom: 1px solid var(--line); }
.m-services summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 72px; padding: 12px 2px; cursor: pointer; list-style: none; }
.m-services summary::-webkit-details-marker { display: none; }
.m-svc b { display: block; font: 400 1.5rem/1.12 var(--serif); }
.m-svc small { display: block; margin-top: 3px; color: var(--muted); font-size: .88rem; }
.m-chev { width: 22px; height: 22px; color: var(--signal); rotate: 90deg; transition: rotate .35s var(--ease); }
.m-services details[open] .m-chev { rotate: -90deg; }
.m-services details[open] summary b { color: var(--signal); }
.m-svc-body { padding: 0 2px 22px; }
.m-svc-body p { max-width: 42ch; margin: 0; color: var(--muted); line-height: 1.6; }
.m-svc-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.m-link { display: inline-flex; align-items: center; min-height: 48px; color: var(--paper); font-weight: 700; text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 6px; }
.m-pill { min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--signal); color: var(--ink); font-weight: 700; cursor: pointer; }
.m-pill:active { scale: .97; }
@media (prefers-reduced-motion: no-preference) {
  .m-services details[open] .m-svc-body { animation: swap .45s var(--ease) both; }
}

/* Précision : bloc nuit aux coins de panneau */
.m-precision { margin-top: 60px; padding: 56px var(--m-gut) 84px; border-radius: 44px 96px 0 0; background: var(--ink-2); }
.m-precision h2 { font-size: clamp(2rem, 9vw, 2.6rem); }
.m-precision-lede { max-width: 38ch; margin: 18px 0 0; color: var(--muted); line-height: 1.65; }
.m-lab { margin: 28px 0 8px; aspect-ratio: 16 / 11; overflow: hidden; border-radius: 34px 70px 34px 70px; border: 1px solid var(--glass-edge); }
.m-lab img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.m-precision { position: relative; overflow: hidden; }
.m-cell-p { top: auto; bottom: -46px; right: -44px; left: auto; width: 124px; --dx: 6px; --dy: -6px; --d: 16s; --blur: 0px; opacity: .8; }
.m-precision > :not(.m-cell-p) { position: relative; }
.m-values-flow { margin: 8px 0 0; font: 400 1.6rem/1.28 var(--serif); }
.m-values-flow em { color: var(--signal); font-style: normal; }

/* Étapes : un fil relie les noeuds, l'ordre est l'information */
.m-steps { display: grid; margin: 0; padding: 0; list-style: none; }
.m-steps li { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; padding-bottom: 30px; }
.m-steps li:last-child { padding-bottom: 0; }
.m-steps li:not(:last-child)::before { content: ''; position: absolute; top: 50px; bottom: 4px; left: 22px; width: 1px; background: linear-gradient(var(--signal), transparent); }
.m-step-n { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--signal); border-radius: 50%; color: var(--paper); font: 400 1.45rem/1 var(--serif); }
.m-steps h3 { padding-top: 8px; font: 400 1.5rem/1.1 var(--serif); }
.m-steps p { max-width: 36ch; margin: 6px 0 0; color: var(--muted); line-height: 1.6; }

/* Bande de photos : défilement latéral par aimantation */
.m-gallery { padding-right: 0; }
.m-gallery h2 { margin-right: var(--m-gut); }
.m-gallery-controls { display: flex; align-items: center; gap: 8px; margin: 0 var(--m-gut) 10px 0; }
.m-gallery-control { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--glass-edge); border-radius: 999px; background: var(--glass); color: var(--paper); font: inherit; cursor: pointer; }
.m-gallery-control:active { border-color: var(--signal); background: var(--glass-hi); }
.m-gallery-count { min-width: 42px; color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; text-align: center; }
.m-gallery-pause { margin-left: auto; color: var(--muted); font-size: .82rem; }
.m-strip { display: flex; gap: 12px; margin-left: calc(-1 * var(--m-gut)); padding: 4px var(--m-gut) 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--m-gut); scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.m-strip::-webkit-scrollbar { display: none; }
.m-shot { position: relative; flex: 0 0 74%; max-width: 340px; aspect-ratio: 4 / 5; margin: 0; overflow: hidden; scroll-snap-align: start; border: 1px solid var(--glass-edge); border-radius: 34px 70px 34px 70px; background: var(--ink-2); }
.m-shot:nth-child(even) { border-radius: 70px 34px 70px 34px; }
.m-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.m-note { margin: 10px var(--m-gut) 0 0; color: var(--muted); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
  .m-strip { scroll-behavior: auto; }
}

/* Contact : chaque rangée est un geste */
.m-rows { display: grid; gap: 10px; font-style: normal; }
.m-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 76px; padding: 14px 18px; border: 1px solid var(--glass-edge); border-radius: 22px 38px 22px 38px; background: var(--glass); transition: scale .25s var(--ease), border-color .25s var(--ease); }
.m-row:nth-child(even) { border-radius: 38px 22px 38px 22px; }
.m-row:active { scale: .985; border-color: var(--signal); }
.m-row-ico { display: block; width: 28px; height: 28px; background: var(--signal); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.m-row small { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; }
.m-row b { display: block; margin-top: 1px; font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.m-row em { display: block; margin-top: 2px; color: var(--muted); font-size: .88rem; font-style: normal; line-height: 1.4; }
.m-row-go { color: var(--signal); font-size: .86rem; font-weight: 700; }
.m-row-phones { grid-template-columns: 28px minmax(0, 1fr); }
.m-row-phones a { display: flex; align-items: center; min-height: 48px; font-size: 1.1rem; font-weight: 700; }
.m-row-phones a + a { border-top: 1px solid var(--line); }

/* Pied : reprend les surfaces et le contraste du formulaire de rendez-vous */
.m-foot { display: grid; justify-items: center; gap: 18px; margin-top: 60px; padding: 52px var(--m-gut) calc(var(--m-dock-h) + 44px + env(safe-area-inset-bottom)); border-top: 1px solid var(--glass-edge); border-radius: 96px 44px 0 0; background: radial-gradient(60% 45% at 50% 55%, var(--glow), transparent 74%), var(--panel); color: var(--paper); text-align: center; }
.m-foot .logo-lockup { width: 72px; }
.m-foot-claim { margin: 0; font: 400 2.1rem/1.05 var(--serif); }
.m-foot-claim em { color: var(--signal); font-style: normal; }
.m-foot-meta { max-width: 34ch; margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.55; }
.m-foot-legal { display: inline-flex; align-items: center; min-height: 48px; color: var(--paper); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-image.is-entering, .m-hero-panel.is-entering { animation: none !important; }
  .hero-carousel-image, .hero-carousel-dots button { transition: none !important; }
}

/* Dock : appeler, WhatsApp, rendez-vous, dans la zone du pouce */
.m-dock { position: fixed; z-index: 40; right: max(12px, env(safe-area-inset-right)); bottom: calc(10px + env(safe-area-inset-bottom)); left: max(12px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--glass-edge); border-radius: 999px; background: rgba(var(--veil), .84); box-shadow: 0 10px 26px rgba(2, 10, 24, .3); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }
.m-dock-btn { display: flex; flex: 1; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 48px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--paper); font-size: .9rem; font-weight: 700; white-space: nowrap; transition: scale .2s var(--ease), border-color .2s var(--ease); }
.m-dock-btn .arr { width: 19px; height: 19px; color: var(--signal); }
.m-dock-btn:active { scale: .94; border-color: var(--signal); }
.m-dock-main { display: flex; flex: 1.3; align-items: center; justify-content: center; min-height: 48px; padding: 0 14px; border-radius: 999px; background: var(--signal); color: var(--ink); font-size: .95rem; font-weight: 700; white-space: nowrap; transition: scale .2s var(--ease); }
@media (max-width: 380px) { .m-dock-btn .arr { display: none; } }
.m-dock-main:active { scale: .97; }
body.quote-is-open .m-dock { display: none; }

/* Formulaire : feuille qui monte du bas, champs à 16 px (pas de zoom iOS) */
.quote-modal { padding: 0; place-items: end stretch; }
.quote-dialog { width: 100%; height: auto; max-height: 94dvh; --pad-x: var(--m-gut); --pad-b: calc(18px + env(safe-area-inset-bottom)); padding: 30px var(--pad-x) 0; border-bottom: 0; border-radius: 32px 64px 0 0; }
.quote-dialog h2 { font-size: 2.1rem; }
.quote-intro, .quote-step-heading, .quote-meta { display: none; }
.quote-form-grid { margin-top: 16px; gap: 14px; }
.quote-form input:not([type='radio']):not([type='checkbox']), .quote-form select, .quote-form textarea { min-height: 52px; font-size: 1rem; }
.quote-message { margin-top: 14px; }
.quote-form .quote-consent { margin-top: 18px; }
.quote-form-foot { margin-top: 18px; }
.quote-form-foot > p { display: none; }
.quote-success { padding: 36px 0 calc(24px + var(--pad-b)); }
.quote-success h3 { font-size: 2.2rem; }
.quote-success-actions { align-items: stretch; flex-direction: column; gap: 10px; }
.quote-success-actions .primary-cta, .quote-success-actions .secondary-cta { justify-content: center; }

/* Parcours sans panneaux : les prestations restent accessibles dans une liste simple. */
.m-services { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.m-services li { border-bottom: 1px solid var(--line); }
.m-service-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 78px; padding: 14px 0; border: 0; background: transparent; color: var(--paper); text-align: left; cursor: pointer; }
.m-service-item b, .m-service-item small { display: block; }
.m-service-item b { font: 400 1.35rem/1.15 var(--serif); }
.m-service-item small { margin-top: 4px; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.m-service-item > span:last-child { flex: none; color: var(--muted); font-size: .76rem; }
.m-service-item:focus-visible > span:last-child { color: var(--signal); }

/* Teinte continue pour les dernières sections, y compris le footer en ligne. */
.m-precision, #m-etapes, #m-team, #m-gallery, #m-contact, .m-foot { background: var(--panel) !important; color: var(--paper); }
.m-precision { margin-top: 0; border-radius: 0; }
#m-etapes, #m-team, #m-gallery, #m-contact { padding-top: 54px; }
.m-foot { margin-top: 0; border-radius: 0; }
.m-precision .m-values-flow, .m-steps p, .m-note { color: var(--muted); }
.m-gallery-controls { opacity: .8; }
.m-gallery-control { border-color: transparent; background: transparent; color: var(--muted); }
.m-gallery-pause { color: var(--muted); }
.m-strip { scroll-behavior: auto; }

/* Hero mobile clair : voile blanc, caractères bleu nuit, contraste conservé. */
:root[data-theme='light'] .m-top { --paper: #05203f; --muted: #294d70; --logo: #0c5da8; --line: rgba(12,78,136,.24); background: rgba(255,255,255,.9); color: var(--paper); }
:root[data-theme='light'] .m-membrane::after { background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.28) 36%, rgba(255,255,255,.88) 76%, rgba(255,255,255,.94) 100%); }
:root[data-theme='light'] .m-hero-copy { color: var(--paper); }
:root[data-theme='light'] .m-hero-panel h1,
:root[data-theme='light'] .m-hero-panel h2,
:root[data-theme='light'] .m-hero-panel .m-lede { color: var(--paper); }
:root[data-theme='light'] .m-hero .hero-eyebrow,
:root[data-theme='light'] .m-hero-panel h1 em,
:root[data-theme='light'] .m-hero-panel h2 em { color: var(--signal); }
:root[data-theme='light'] .m-hero .hero-carousel-arrow,
:root[data-theme='light'] .m-hero .hero-carousel-pause { color: var(--paper) !important; }
:root[data-theme='light'] .m-hero .hero-carousel-dots button { background: rgba(5,32,63,.48); }
:root[data-theme='light'] .m-hero .hero-carousel-dots button[aria-current='true'] { background: var(--signal); }

/* Le thème clair ou sombre suit tout le parcours ; le hero se fond dans la suite. */
.m-hero { position: relative; overflow: hidden; }
.m-hero::before { content: ''; position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; height: 120px; background: linear-gradient(180deg, transparent, var(--panel)); pointer-events: none; }
.m-services { border-top: 0 !important; }
.m-services li { border-bottom: 0 !important; }
.m-service-item { min-height: 82px; }
.m-foot { border-top: 0 !important; }

/* Les détails s’ouvrent dans une modale simple, sans animation d’entrée. */
.service-dialog { width: calc(100vw - 28px); max-height: min(82dvh, 640px); padding: 24px; border-radius: 18px; }
.service-dialog h2 { margin-top: 24px; font-size: 2.1rem; }
.service-dialog-actions { align-items: flex-start; flex-direction: column; gap: 8px; margin-top: 24px; }
.service-dialog-link, .service-dialog-close { min-height: 48px; }

/* Le carrousel ne fait que changer d’image ; ses commandes restent secondaires. */
.m-hero .hero-carousel-controls { gap: 6px; }
.m-hero .hero-carousel-arrow { width: 44px; height: 44px; }
.m-hero .hero-carousel-pause { margin-left: auto; }
