/* MU GLASS v2 : feuille de style unique. Navy + rouge de son logo, photo en tête, appels à l'action partout. */
:root {
  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  --navy: #0F1E45;
  --navy-2: #1A2D63;
  --red: #D1243A;
  --red-dark: #A81B2E;
  --paper: #FFFFFF;
  --bg: #EEF2FA;
  --surface: #FFFFFF;
  --ink: #0F1E45;
  --muted: #4B5878;
  --line: #D5DCEA;
  --accent: #D1243A;
  --accent-ink: #FFFFFF;
  --cabin: #0F1E45;
  --font-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.navy :focus-visible, .hero :focus-visible, footer :focus-visible { outline-color: #fff; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.02; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7.2vw, 5.2rem); font-weight: 900; letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: clamp(2rem, 4.8vw, 3.5rem); font-weight: 900; }
h3 { font-size: 1.3rem; }
.sec { padding-block: clamp(56px, 9vw, 104px); }
.sky { background: var(--bg); }
.navy { background: var(--navy); color: #fff; }
.sub { color: var(--muted); font-size: 1.1rem; max-width: 52ch; margin-top: 14px; }
.navy .sub { color: rgba(255,255,255,.78); }

/* boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--red); color: #fff; font: 700 1rem var(--font-body); padding: 13px 22px; border: 2px solid var(--red); border-radius: 10px; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, box-shadow .2s; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); box-shadow: 0 8px 22px rgba(209,36,58,.35); }
.btn.big { padding: 16px 26px; font-size: 1.05rem; }
.btn.small { padding: 9px 15px; font-size: .88rem; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }
.btn.ghost-w { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn.ghost-w:hover { background: #fff; color: var(--navy); border-color: #fff; box-shadow: none; }
.btn.white { background: #fff; color: var(--red-dark); border-color: #fff; }
.btn.white:hover { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: none; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* en-tête */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(15,30,69,.95); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.1); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { font-family: var(--font-display); font-weight: 900; font-size: 1.7rem; letter-spacing: -0.03em; text-decoration: none; line-height: 1; color: var(--navy); }
.brand span { color: var(--red); }
.brand img { display: block; height: 40px; width: auto; }
.flogo { display: block; height: 64px; width: auto; margin-bottom: 36px; }
.nav { display: flex; gap: 26px; font-weight: 600; font-size: .95rem; }
.nav a { text-decoration: none; color: rgba(255,255,255,.78); }
.nav a:hover { color: #fff; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 45; background: var(--navy); }

/* hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(800px 480px at 88% 18%, rgba(209,36,58,.42), transparent 62%), var(--navy); padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(120px, 13vw, 170px); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 44px)); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-in > * { min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); padding: 6px 13px; border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .02em; margin-bottom: 20px; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: #FF5468; display: block; }
.ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > span { display: block; }
mark { background: linear-gradient(var(--red), var(--red)) no-repeat left center / 100% 100%; color: #fff; padding: 0 .14em; margin-left: -.14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero .lead { color: rgba(255,255,255,.84); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 38ch; margin-top: 22px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-media { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.hero-media .blk { position: absolute; inset: 7% -5% -5% 12%; background: var(--red); border-radius: 18px; }
.photo { position: relative; margin: 0; overflow: hidden; border-radius: 18px; clip-path: inset(0 0 0 0); aspect-ratio: 1 / 1; background: var(--navy-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.burst { position: absolute; right: -10px; top: -18px; z-index: 3; background: #fff; color: var(--red); border: 3px solid var(--red); padding: 10px 16px; border-radius: 14px; font: 900 1.05rem/1.05 var(--font-display); text-transform: uppercase; letter-spacing: -.01em; transform: rotate(-8deg); box-shadow: 0 10px 24px rgba(0,0,0,.25); }

/* devis rapide */
.quick { position: relative; z-index: 5; margin-top: -92px; background: #fff; border-radius: 16px; box-shadow: 0 22px 60px rgba(15,30,69,.25); padding: 20px 22px; display: grid; grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 14px; align-items: end; }
.quick > * { min-width: 0; }
.quick .qt { font: 900 1.3rem/1.05 var(--font-display); letter-spacing: -.02em; align-self: center; max-width: 9ch; }
.f { display: grid; gap: 5px; min-width: 0; }
.f.full { grid-column: 1 / -1; }
label, legend { font-size: .82rem; font-weight: 700; }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 13px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px rgba(209,36,58,.18); }

/* atouts */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; padding-block: 44px 0; }
.tr { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.tr .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; color: var(--red); }
.tr .ic svg { width: 24px; height: 24px; }
.tr b { display: block; font-size: 1rem; line-height: 1.25; }
.tr span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.4; margin-top: 3px; }

/* bandeau */
.marquee { background: var(--red); color: #fff; overflow: hidden; padding-block: 16px; margin-top: 56px; }
.track { display: flex; width: max-content; will-change: transform; }
.track .grp { display: flex; align-items: center; gap: 28px; padding-right: 28px; font: 900 clamp(1.4rem, 3.4vw, 2rem)/1 var(--font-display); text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; }
.track i { width: 12px; height: 12px; background: #fff; display: block; transform: rotate(45deg); }

/* services */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 40px; }
.card { background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 rgba(15,30,69,.06), 0 14px 36px rgba(15,30,69,.09); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(15,30,69,.06), 0 24px 50px rgba(15,30,69,.16); }
.card .im { overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .cb { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card p { color: var(--muted); font-size: .97rem; }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 800; color: var(--red); text-decoration: none; }
.card .more::after { content: " →"; }
.note { font-size: .85rem; color: var(--muted); }

/* vidéo réelle */
.story-pin { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 36px; }
.story-pin > * { min-width: 0; }
.reel { margin: 0; justify-self: center; width: min(100%, 368px); }
.reel video { width: 100%; height: auto; max-height: 72vh; aspect-ratio: 9 / 16; object-fit: cover; display: block; border: 3px solid #fff; border-radius: 14px; background: #000; }
.cap + .cap { margin-top: 20px; }
.cap h3 { margin-bottom: 8px; font-size: 1.7rem; }
.cap p { color: rgba(255,255,255,.8); max-width: 38ch; font-size: 1.05rem; }
.stepno { font: 900 1rem var(--font-display); letter-spacing: .08em; color: #FF8794; margin-bottom: 12px; }
.dots { display: flex; gap: 6px; margin-top: 24px; max-width: 320px; }
.dots i { height: 5px; flex: 1; background: rgba(255,255,255,.25); border-radius: 3px; transition: background .3s; }
.dots i.on { background: var(--red); }
.story:not(.live) .stepno, .story:not(.live) .dots { display: none; }
.story.live .capstack { display: grid; }
.story.live .cap { grid-area: 1 / 1; }
.story.live .cap + .cap { margin-top: 0; }

/* à la maison */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split > * { min-width: 0; }
.split .ph { margin: 0; justify-self: center; width: min(100%, 400px); border-radius: 16px; overflow: hidden; box-shadow: 16px 16px 0 var(--red); }
.split .ph img { width: 100%; height: auto; display: block; }
.split h2 { margin-bottom: 18px; }
.split .cta { margin-top: 26px; }

/* bandeau rouge */
.band { position: relative; overflow: hidden; background: var(--red); color: #fff; }
.band-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.band-in > * { min-width: 0; }
.band .sub { color: rgba(255,255,255,.9); }
.band .bimg { margin: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.band .bimg img { width: 100%; height: auto; display: block; }
.band svg.bg { position: absolute; right: -6%; top: -20%; width: 70%; height: auto; opacity: .22; pointer-events: none; }

/* étapes */
.steps3 { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.st { counter-increment: s; }
.st::before { content: counter(s); display: block; font: 900 5.5rem/0.9 var(--font-display); color: transparent; -webkit-text-stroke: 2px var(--red); margin-bottom: 14px; }
.st p { color: var(--muted); margin-top: 10px; max-width: 34ch; }

/* avis (affiché seulement si des avis sont fournis) */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.rev { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 14px 36px rgba(15,30,69,.09); display: grid; gap: 12px; align-content: start; }
.rev .stars { color: #F5A623; letter-spacing: 3px; }
.rev p { color: var(--ink); }
.rev b { font-size: .9rem; color: var(--muted); }

/* formulaire */
.quote { background: #fff; border-radius: 20px; padding: clamp(22px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 48px); box-shadow: 0 22px 60px rgba(15,30,69,.12); }
.quote > * { min-width: 0; }
.quote .side p { color: var(--muted); margin-top: 14px; }
form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
textarea { min-height: 84px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
fieldset label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .95rem; }
fieldset input { width: auto; accent-color: var(--red); }
.out { grid-column: 1 / -1; display: grid; gap: 10px; }
.out pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: .9rem/1.5 var(--font-body); background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }

/* faq */
.faq { margin-top: 32px; border-top: 2px solid var(--navy); max-width: 820px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 800 1.7rem/1 var(--font-display); color: var(--red); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); padding-bottom: 20px; max-width: 65ch; }

/* pied de page */
footer { background: var(--navy); color: #fff; padding-block: 64px 48px; }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.foot > * { min-width: 0; }
.foot h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: #FF8794; margin-bottom: 12px; }
.foot p { color: rgba(255,255,255,.8); }
.bigphone { font: 900 clamp(2rem, 5vw, 3.1rem)/1 var(--font-display); letter-spacing: -.03em; color: #fff; text-decoration: none; display: inline-block; }
.bigphone:hover { color: #FF8794; }
.sel { user-select: all; color: #fff; font-weight: 700; }
.legal-links a { text-underline-offset: 3px; }

/* barre d'appel mobile */
.dock { display: none; }

/* pages légales */
.doc { max-width: 760px; margin: 0 auto; padding: 48px max(16px, env(safe-area-inset-right, 0px)) 72px max(16px, env(safe-area-inset-left, 0px)); }
.doc h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); margin-bottom: 28px; }
.doc h2 { font-size: 1.6rem; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--muted); max-width: 65ch; }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 20px; margin: 10px 0; }
.doc a { color: var(--ink); text-underline-offset: 3px; }
.todo { background: rgba(209,36,58,.14); color: var(--ink); padding: 0 4px; border-radius: 3px; font-weight: 600; }

/* gallery (shown only when photos are provided) */
.gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gal figure { margin: 0; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 5; background: var(--line); }
.gal img { width: 100%; height: 118%; object-fit: cover; display: block; }

/* chat */
.chat-fab { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: inline-flex; align-items: center; gap: 10px; background: var(--red); color: #fff; border: 0; border-radius: 999px; padding: 13px 20px; font: 700 0.95rem var(--font-body); cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.chat-fab i { width: 10px; height: 10px; border-radius: 50%; background: #fff; display: block; }
.chat { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 50; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100dvh - 140px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 48px rgba(0,0,0,.28); overflow: hidden; }
.chat-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--ink); color: var(--bg); }
.chat-head b { font-family: var(--font-display); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .02em; display: block; line-height: 1; }
.chat-head small { display: block; font-size: .76rem; opacity: .85; line-height: 1.35; margin-top: 4px; }
.chat-head button { background: none; border: 0; color: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; align-self: flex-start; padding: 0 4px; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 12px; border-radius: 10px; font-size: .93rem; line-height: 1.45; overflow-wrap: anywhere; }
.msg .t { white-space: pre-wrap; display: block; }
.msg.bot { background: var(--bg); align-self: flex-start; border-bottom-left-radius: 2px; }
.msg.me { background: var(--accent); color: var(--accent-ink); align-self: flex-end; border-bottom-right-radius: 2px; }
.msg .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 10px; }
.chips:empty { display: none; }
.chip { font: 600 .85rem var(--font-body); background: transparent; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.chip:hover { background: var(--ink); color: var(--bg); }
.chat-in { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.chat-in input { flex: 1; }
.chat-foot { padding: 0 14px 12px; font-size: .78rem; color: var(--muted); }

/* responsive */
@media (max-width: 980px) {
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .quick .qt { grid-column: 1 / -1; max-width: none; }
  .quick .btn { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .hero-in, .split, .band-in, .quote, .foot, .story-pin { grid-template-columns: minmax(0, 1fr); }
  .hero-media { max-width: 420px; order: 2; }
  .cards, .reviews { grid-template-columns: minmax(0, 1fr); }
  .steps3 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  form { grid-template-columns: minmax(0, 1fr); }
  .quick { grid-template-columns: minmax(0, 1fr); margin-top: -80px; }
  .reel video { max-height: 46vh; }
  .story-pin { gap: 20px; }
  .split .ph { box-shadow: 10px 10px 0 var(--red); }
  .gal { grid-template-columns: minmax(0, 1fr); }
  .trust { gap: 18px; }
  .dock { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: #fff; padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); box-shadow: 0 -8px 24px rgba(15,30,69,.18); }
  .dock .btn { padding: 11px 6px; font-size: .9rem; }
  body { padding-bottom: 74px; }
  .chat-fab { display: none; }
  .chat { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); height: min(560px, calc(100dvh - 160px)); }
}
@media (min-width: 761px) { .story-pin { min-height: calc(100dvh - 150px); } }
