/*
Theme Name: EZ CARE Maroc
Description: Site du distributeur officiel EZ CARE au Maroc. Thème sur mesure, sans constructeur de pages.
Version: 1.0.0
Text Domain: ezcare
*/

/* Shape rule: buttons and chips are pills, cards are 16px, inputs are 10px.
   Colour rule: one accent (brand navy). Red, green, yellow and blue appear only as call states. */

@font-face { font-family: "Outfit"; src: url("assets/fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --navy: #004187;
  --navy-deep: #012b5c;
  --navy-ink: #0a2240;
  --sky: #2a8fd0;
  --tint: #eef5fb;
  --tint-2: #dfecf7;
  --line: #d3e0ec;
  --ink: #0d1b2a;
  --muted: #485a70;
  --bg: #fbfdff;
  --card: #ffffff;
  --red: #d42a1e;
  --green: #14803c;
  --blue: #1a62d0;
  --yellow: #f2c200;
  --r-card: 16px;
  --r-input: 10px;
  --shadow: 0 1px 2px rgba(1, 43, 92, .06), 0 12px 32px -12px rgba(1, 43, 92, .22);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1200px;
  --head-h: 68px;
  /* z-index scale: 10 sticky header, 20 floating action, 30 mobile menu, 40 skip link */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body { margin: 0; font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.ico { flex: none; fill: currentColor; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; border-radius: 4px; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 40; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-tint { background: var(--tint); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }

.h1, .h2, .h3 { font-family: "Outfit", system-ui, sans-serif; font-weight: 600; letter-spacing: -.02em; color: var(--navy-ink); text-wrap: balance; }
.h1 { font-size: clamp(2.25rem, 4.3vw, 3.5rem); line-height: 1.06; }
.h1-page { font-size: clamp(2rem, 3.6vw, 3rem); max-width: 20ch; }
.h2 { font-size: clamp(1.7rem, 2.9vw, 2.5rem); line-height: 1.12; }
.h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -.01em; }
.lead { margin-top: 16px; font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.eyebrow { display: inline-flex; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); background: var(--tint-2); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: transform .25s var(--ease), background-color .2s, border-color .2s, box-shadow .25s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-lg { min-height: 54px; padding: 12px 28px; font-size: 1.06rem; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 20px -10px rgba(0, 65, 135, .7); }
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn-primary .ico { transition: transform .25s var(--ease); }
.btn-primary:hover .ico { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--tint-2); }
.btn-light { background: #fff; color: var(--navy-ink); }
.btn-light:hover { background: var(--tint-2); }
.btn-quiet { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-quiet:hover { background: rgba(255, 255, 255, .12); }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; height: var(--head-h); background: rgba(251, 253, 255, .92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(1, 43, 92, .5); }
.header-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.brand-logo { width: 124px; height: auto; }
.brand-tag { font-family: "Outfit", sans-serif; font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #17609a; padding-top: 12px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 4px; }
.nav-list a { display: block; padding: 10px 14px; border-radius: 999px; color: var(--navy-ink); font-weight: 500; text-decoration: none; transition: background-color .2s; }
.nav-list a:hover, .nav-list a[aria-current="page"] { background: var(--tint-2); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--navy-ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-phone:hover { color: var(--navy); }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 999px; background: var(--tint-2); color: var(--navy-ink); align-items: center; justify-content: center; }
.burger .ico-close { display: none; }
.burger[aria-expanded="true"] .ico-open { display: none; }
.burger[aria-expanded="true"] .ico-close { display: block; }

/* hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(36px, 5vw, 72px) clamp(56px, 7vw, 96px); background: radial-gradient(circle at 96% -10%, transparent 0 230px, rgba(42, 143, 208, .10) 231px 300px, transparent 301px 360px, rgba(0, 65, 135, .07) 361px 450px, transparent 451px), linear-gradient(180deg, var(--tint) 0%, var(--bg) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-sub { margin-top: 22px; font-size: 1.2rem; color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-visual { position: relative; }
.hero-photo { width: 100%; aspect-ratio: 5 / 4.6; object-fit: cover; object-position: 62% 30%; border-radius: var(--r-card); box-shadow: var(--shadow); }
.hero-device { position: absolute; left: -9%; bottom: -8%; width: 27%; filter: drop-shadow(0 22px 28px rgba(1, 43, 92, .38)); }

/* proof */
.proof { border-block: 1px solid var(--line); background: var(--card); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 34px; }
.stat { display: grid; gap: 4px; padding-left: 20px; border-left: 3px solid var(--tint-2); }
.stat strong { font-family: "Outfit", sans-serif; font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.1; color: var(--navy); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .98rem; }
.stat strong span { color: inherit; font-size: inherit; }
.marquee { overflow: hidden; border-top: 1px solid var(--line); padding-block: 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: baseline; gap: 10px; font-weight: 600; color: var(--navy-ink); white-space: nowrap; }
.marquee-item em { font-style: normal; font-weight: 400; color: var(--muted); font-size: .92rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* simulator */
.sim { border-radius: var(--r-card); padding: clamp(18px, 3vw, 36px); color: #fff; background: radial-gradient(circle at 100% 0%, rgba(42, 143, 208, .35), transparent 46%), linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 70%); box-shadow: var(--shadow); }
.sim-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sim-hint { flex: 1 1 320px; font-size: 1.12rem; font-weight: 500; min-height: 3.2em; display: flex; align-items: center; }
.sim-top-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sim-stage { position: relative; display: grid; grid-template-columns: 1.25fr .8fr 1.15fr .8fr; gap: 14px; }
.sim-stage::before { content: ""; position: absolute; left: 6%; right: 6%; top: 42%; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .28) 0 8px, transparent 8px 16px); }
.sim[data-live="1"] .sim-stage::before { background: repeating-linear-gradient(90deg, #fff 0 8px, transparent 8px 16px); background-size: 32px 2px; animation: flow 1s linear infinite; }
@keyframes flow { to { background-position: 32px 0; } }
.sim-node { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 12px; padding: 16px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); min-width: 0; }
.sim-label { font-family: "Outfit", sans-serif; font-size: .98rem; font-weight: 600; letter-spacing: .01em; color: #cfe4f7; }
.sim-device { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 180px; }
.sim-device img { max-height: 170px; width: auto; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .35)); }
.sim-device .sim-tirette { max-height: 84px; }
.sim-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.sim-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 999px; font-weight: 600; font-size: .95rem; color: #fff; transition: transform .2s var(--ease), filter .2s, opacity .2s; }
.sim-btn:hover:not(:disabled) { filter: brightness(1.12); transform: translateY(-1px); }
.sim-btn:active:not(:disabled) { transform: scale(.97); }
.sim-btn:disabled { opacity: .42; cursor: not-allowed; }
.sim-btn.is-red { background: var(--red); }
.sim-btn.is-blue { background: var(--blue); }
.sim-btn.is-green { background: var(--green); }
.sim-btn.is-green[aria-pressed="true"] { box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); }
.sim-btn.is-grey { background: rgba(255, 255, 255, .18); }
.sim-state { font-size: .95rem; color: #e3f0fb; min-height: 2.9em; }
.hublot { position: relative; }
.hublot img { transition: opacity .25s; }
.hublot img:not(.hublot-off) { position: absolute; opacity: 0; }
.hublot[data-hublot="rouge"] .hublot-rouge, .hublot[data-hublot="vert"] .hublot-vert, .hublot[data-hublot="bleu"] .hublot-bleu { opacity: 1; }
.hublot[data-hublot="rouge-flash"] .hublot-rouge, .hublot[data-hublot="bleu-flash"] .hublot-bleu { animation: flash 1s steps(1, end) infinite; }
@keyframes flash { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
.lcd { display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 52px; padding: 10px 14px; border-radius: 8px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .92rem; font-weight: 600; line-height: 1.3; background: #b7df52; color: #17300a; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .28); }
.lcd[data-level="alarm"] { background: #d42a1e; color: #fff; }
.lcd[data-level="coeur"] { background: #1a62d0; color: #fff; }
.sim-bottom { display: grid; grid-template-columns: 1fr 1.2fr; gap: 14px; margin-top: 14px; }
.sim-nurse, .sim-log { display: grid; gap: 12px; align-content: start; padding: 16px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); }
.log { display: grid; gap: 4px; max-height: 132px; overflow: auto; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .86rem; color: #e3f0fb; }
.log li { display: flex; gap: 12px; }
.log time { color: #9fc6ea; flex: none; }
.log-empty { font-family: "Geist", sans-serif; color: #c4dbf0; }
.sim-note { margin-top: 16px; font-size: .9rem; color: #c4dbf0; }

/* modules bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.tile { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sky); }
.tile-call { grid-column: span 7; }
.tile-message { grid-column: span 5; background: linear-gradient(150deg, var(--tint-2), var(--tint)); }
.tile-view { grid-column: span 5; }
.tile-locate { grid-column: span 7; }
.tile-report, .tile-design { grid-column: span 6; display: grid; grid-template-columns: 1fr 38%; background: var(--tint); }
.tile-img { width: 100%; height: 210px; object-fit: cover; }
.tile-call .tile-img, .tile-locate .tile-img { height: 250px; }
.tile-message .tile-img { margin-top: auto; height: 250px; }
.tile-report .tile-img, .tile-design .tile-img { height: 100%; min-height: 250px; }
.tile-body { display: grid; gap: 6px; padding: 24px 26px 26px; }
.tile-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 8px; border-radius: 12px; background: var(--navy); color: #fff; }
.tile-name { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 1.45rem; letter-spacing: -.01em; color: var(--navy-ink); }
.tile-role { font-weight: 600; color: var(--navy); }
.tile-text { color: var(--muted); max-width: 56ch; }
.tile-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 600; color: var(--navy); }
.tile-more .ico { transition: transform .25s var(--ease); }
.tile:hover .tile-more .ico { transform: translateX(4px); }

/* rooms */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tab { min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--navy-ink); font-weight: 600; transition: background-color .2s, color .2s, border-color .2s; }
.tab:hover { border-color: var(--navy); }
.tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.room { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.room[hidden] { display: none; }
.room-fig { border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); padding: 14px; }
.room-fig img { width: 100%; border-radius: 10px; }
.room-intro { color: var(--muted); font-size: 1.08rem; margin-bottom: 22px; }
.devices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.device { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.device-img { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); padding: 6px; }
.device-img img { max-width: 100%; max-height: 100%; width: auto; }
.device strong { display: block; color: var(--navy-ink); line-height: 1.25; }
.device small { display: block; color: var(--muted); font-size: .9rem; line-height: 1.35; margin-top: 2px; }

/* split (fiabilité) */
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 84px); align-items: center; }
.split-media img { width: 100%; max-height: 640px; object-fit: cover; object-position: 30% 20%; border-radius: var(--r-card); box-shadow: var(--shadow); }
.points { display: grid; gap: 22px; margin-top: 34px; }
.point dt { display: flex; align-items: center; gap: 12px; font-family: "Outfit", sans-serif; font-weight: 600; font-size: 1.15rem; color: var(--navy-ink); }
.point dt .ico { color: var(--navy); }
.point dd { margin: 6px 0 0 34px; color: var(--muted); max-width: 60ch; }

/* references */
.refs { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.map { position: relative; }
.map-svg { width: 100%; height: auto; max-height: 640px; }
.map-land { pointer-events: none; fill: #fff; stroke: #fff; stroke-width: 3; stroke-linejoin: round; filter: drop-shadow(0 10px 24px rgba(1, 43, 92, .14)); }
.refs-page .map-land, .section:not(.section-tint) .map-land { fill: var(--tint-2); stroke: var(--tint-2); filter: none; }
.map-dot { cursor: pointer; outline: none; }
.map-core { fill: var(--navy); stroke: #fff; stroke-width: 2; transition: fill .2s; }
.map-pulse { fill: var(--sky); opacity: 0; transform-box: fill-box; transform-origin: center; }
.map-dot:hover .map-core, .map-dot:focus-visible .map-core, .map-dot.is-on .map-core { fill: var(--sky); }
.map-dot:focus-visible .map-core { stroke: #f59e0b; stroke-width: 4; }
.map-label { font-family: "Geist", sans-serif; font-size: 17px; font-weight: 600; fill: var(--navy-ink); pointer-events: none; }
.map-info { margin-top: 6px; min-height: 1.6em; font-weight: 600; color: var(--navy-ink); }
.refs-side .h3 { margin: 0 0 12px; }
.refs-side .h3:not(:first-child) { margin-top: 34px; }
.ref-list { display: grid; gap: 2px; }
.ref-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 16px; border-radius: 10px; }
.ref-list li:nth-child(odd) { background: rgba(255, 255, 255, .7); }
.section:not(.section-tint) .ref-list li:nth-child(odd) { background: var(--tint); }
.ref-list span { font-weight: 600; color: var(--navy-ink); }
.ref-list small { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.ref-list strong { font-variant-numeric: tabular-nums; color: var(--navy); white-space: nowrap; }
.link-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 18px; font-weight: 600; }
.attest { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 84px); align-items: center; }
.attest .btn { margin-top: 28px; }
.attest-img { width: 100%; max-height: 460px; object-fit: cover; object-position: 50% 20%; border-radius: var(--r-card); box-shadow: var(--shadow); }

/* norms */
.norms { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 84px); align-items: center; }
.norm-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin-top: 34px; }
.norm-list strong { display: block; font-family: "Outfit", sans-serif; font-size: 1.2rem; font-weight: 600; color: var(--navy); }
.norm-list span { color: var(--muted); font-size: .96rem; }
.norms-certs { position: relative; min-height: 400px; }
.norms-certs img { position: absolute; border-radius: 8px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.norms-certs img:first-child { width: 62%; left: 4%; top: 0; transform: rotate(-3deg); }
.norms-certs img:last-child { width: 58%; right: 0; bottom: 4%; transform: rotate(2.5deg); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 4px; }
.step-ico { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--navy); margin-bottom: 18px; position: relative; z-index: 1; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 33px; left: 70px; right: -16px; height: 2px; background: var(--line); }
.step p { margin-top: 8px; color: var(--muted); }

/* étude: estimator + form */
.etude-grid { display: grid; grid-template-columns: 1.1fr .9fr; grid-template-areas: "a r" "c r"; gap: 22px 28px; align-items: start; }
.etude-step { grid-area: a; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); }
.etude-contact { grid-area: c; }
.etude-result { grid-area: r; position: sticky; top: calc(var(--head-h) + 20px); padding: clamp(20px, 3vw, 32px); border-radius: var(--r-card); background: linear-gradient(170deg, var(--tint-2), var(--tint)); border: 1px solid var(--line); }
.step-title { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 1.3rem; color: var(--navy-ink); margin-bottom: 20px; padding: 0; }
legend.step-title { float: left; width: 100%; }
legend.step-title + * { clear: both; }
.field { display: grid; gap: 8px; margin-bottom: 22px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-weight: 600; color: var(--navy-ink); }
.opt { font-weight: 400; color: var(--muted); font-size: .9rem; }
.input { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--r-input); border: 1.5px solid #8ea3b9; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.input:hover { border-color: var(--navy); }
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(42, 143, 208, .35); }
.input[aria-invalid="true"] { border-color: var(--red); }
textarea.input { resize: vertical; }
.help { color: var(--muted); font-size: .9rem; }
.error { color: #b42318; font-size: .92rem; font-weight: 500; min-height: 0; }
.error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid #8ea3b9; background: #fff; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.chip input:hover + span { border-color: var(--navy); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid #f59e0b; outline-offset: 3px; }
.range-out { font-family: "Outfit", sans-serif; font-size: 1.5rem; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.range { width: 100%; height: 32px; accent-color: var(--navy); cursor: pointer; }
.range-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: .88rem; margin-top: -6px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: var(--r-input); border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: border-color .2s, background-color .2s; }
.check:hover { border-color: var(--navy); }
.check:has(input:checked) { border-color: var(--navy); background: var(--tint); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.check strong { display: block; line-height: 1.3; color: var(--navy-ink); }
.check small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.35; margin-top: 3px; }
.result-list { display: grid; gap: 4px; }
.result-list li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid rgba(0, 65, 135, .14); }
.result-list li:last-child { border-bottom: 0; }
.result-list b { font-family: "Outfit", sans-serif; font-size: 1.45rem; font-weight: 600; color: var(--navy); text-align: right; font-variant-numeric: tabular-nums; }
.result-list span { color: var(--navy-ink); font-weight: 500; }
.result-list small { display: block; color: var(--muted); font-weight: 400; font-size: .88rem; }
.result-note { margin-top: 18px; color: var(--muted); font-size: .9rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { color: #b42318; font-weight: 500; }
.form-status:empty { display: none; }
.form-legal { margin-top: 14px; color: var(--muted); font-size: .88rem; }
[data-submit][aria-busy="true"] { opacity: .7; pointer-events: none; }
.etude-done { grid-column: 1 / -1; display: grid; justify-items: center; gap: 12px; text-align: center; padding: 48px 24px; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); }
.etude-done[hidden] { display: none; }
.etude-done > .ico { color: var(--green); }
.etude-grid.is-done > :not(.etude-done) { display: none; }

/* faq */
.faq-wrap { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq { display: grid; gap: 10px; }
.faq-item { border-radius: var(--r-card); border: 1px solid var(--line); background: var(--card); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; font-family: "Outfit", sans-serif; font-weight: 600; font-size: 1.1rem; color: var(--navy-ink); cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ico { color: var(--navy); transition: transform .3s var(--ease); }
.faq-item[open] summary .ico { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 22px; color: var(--muted); max-width: 70ch; }

/* cta band */
.cta-band { background: var(--tint); }
.cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* inner pages */
.page-hero { padding-block: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 48px); background: radial-gradient(circle at 98% -30%, transparent 0 200px, rgba(42, 143, 208, .10) 201px 262px, transparent 263px 316px, rgba(0, 65, 135, .07) 317px 392px, transparent 393px), linear-gradient(180deg, var(--tint), var(--bg)); }
.crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: .92rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumb-sep { transform: rotate(-90deg); }
.sol-grid { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.sol-nav { position: sticky; top: calc(var(--head-h) + 24px); }
.sol-nav ul { display: grid; gap: 2px; }
.sol-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; color: var(--navy-ink); font-weight: 500; text-decoration: none; }
.sol-nav a:hover, .sol-nav a.is-on { background: var(--tint-2); color: var(--navy); }
.sol-body { display: grid; gap: clamp(40px, 6vw, 72px); }
.mod { display: grid; grid-template-columns: 300px 1fr; gap: clamp(22px, 4vw, 44px); align-items: start; }
.mod-plain { grid-template-columns: 1fr; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-card); background: var(--tint); }
.mod-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-card); }
.mod-role { font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.mod-tag { font-family: "Outfit", sans-serif; font-size: 1.15rem; font-weight: 500; color: #1a6aa5; margin: 6px 0 12px; }
.mod-text > p:not(.mod-role):not(.mod-tag) { color: var(--muted); max-width: 64ch; }
.ticks { display: grid; gap: 8px; margin-top: 18px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.ticks .ico { color: var(--green); margin-top: 4px; }
.ticks-sm { font-size: .95rem; gap: 6px; margin-top: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li { padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 500; color: var(--navy-ink); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-weight: 600; color: var(--navy-ink); transition: background-color .2s, color .2s, border-color .2s; }
.filter span { font-weight: 500; color: var(--muted); font-size: .88rem; }
.filter:hover { border-color: var(--navy); }
.filter.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter.is-on span { color: #cfe4f7; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.prod { display: grid; grid-template-rows: 190px 1fr; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--card); overflow: hidden; }
.prod[hidden] { display: none; }
.prod-img { display: flex; align-items: center; justify-content: center; padding: 22px; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); }
.prod-img img { max-height: 146px; max-width: 70%; width: auto; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .35)); }
.prod-body { padding: 22px 24px 24px; }
.prod-cat { font-size: .86rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.prod-sum { color: var(--muted); margin-top: 8px; }
.prod-ref { margin-top: 14px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .8rem; color: var(--muted); }
.catalog-note { margin-top: 32px; color: var(--muted); max-width: 70ch; }
.contact-cards { padding-block: 8px 0; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { display: grid; gap: 4px; padding: 24px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--card); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sky); }
.contact-card .ico { color: var(--navy); margin-bottom: 8px; }
.contact-k { color: var(--muted); font-size: .92rem; }
.contact-v { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 1.15rem; color: var(--navy-ink); overflow-wrap: anywhere; }
.prose { max-width: 760px; }
.prose h2 { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 1.4rem; color: var(--navy-ink); margin: 34px 0 10px; }
.prose p { margin-bottom: 12px; color: var(--muted); }
.todo { padding: 12px 16px; border-radius: var(--r-input); background: #fff7e0; border: 1px solid #f2c200; color: #5c4400 !important; }
.notfound { min-height: 60vh; display: grid; align-items: center; }

/* footer */
.site-footer { background: var(--navy-deep); color: #d6e6f5; padding-top: clamp(48px, 6vw, 80px); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr .9fr 1.1fr; gap: clamp(24px, 4vw, 56px); padding-bottom: 44px; }
.footer-brand img { width: 150px; margin-bottom: 18px; }
.footer-brand p { max-width: 38ch; }
.footer-tagline { margin-top: 14px; font-family: "Outfit", sans-serif; font-weight: 500; color: #9fc6ea; }
.footer-h { font-family: "Outfit", sans-serif; font-size: 1rem; font-weight: 600; color: #9fc6ea; margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 4px; }
.site-footer li a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .9rem; color: #b9d2ea; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 20; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 999px; background: #0f8a5f; color: #fff; box-shadow: 0 10px 24px -8px rgba(15, 138, 95, .8); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.06); }

/* reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1080px) {
  .nav-phone span { display: none; }
  .nav { gap: 14px; }
  .sim-stage { grid-template-columns: 1fr 1fr; }
  .sim-stage::before { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .nav { position: fixed; inset: var(--head-h) 0 0 0; z-index: 30; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 20px; padding: 24px 20px 32px; background: var(--bg); overflow: auto; opacity: 0; transform: translateY(-10px); visibility: hidden; transition: opacity .25s, transform .35s var(--ease), visibility .35s; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav-list { flex-direction: column; gap: 4px; }
  .nav-list a { padding: 14px 16px; font-size: 1.2rem; }
  .nav-cta { flex-direction: column; align-items: stretch; gap: 14px; }
  .nav-phone { justify-content: center; min-height: 46px; }
  .nav-phone span { display: inline; }
  .hero-grid, .room, .split, .refs, .norms, .attest, .faq-wrap, .sol-grid, .etude-grid { grid-template-columns: 1fr; }
  .etude-grid { grid-template-areas: "a" "r" "c"; }
  .etude-result { position: static; }
  .hero-visual { margin-left: 8%; }
  .hero-photo { aspect-ratio: 16 / 11; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .bento > .tile { grid-column: span 12; }
  .tile-report, .tile-design { grid-template-columns: 1fr; }
  .tile-report .tile-img, .tile-design .tile-img { height: 200px; min-height: 0; }
  .split-media img { max-height: 380px; }
  .norms-certs { min-height: 0; aspect-ratio: 5 / 4; max-width: 460px; }
  .sol-nav { position: static; }
  .sol-nav ul { display: flex; flex-wrap: wrap; }
  .sim-bottom { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .attest-img { max-height: 320px; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .proof-grid { gap: 20px 14px; }
  .stat { padding-left: 14px; }
  .sim-stage { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .sim-room, .sim-mobile { grid-column: span 3; }
  .sim-station { grid-column: span 2; }
  .sim-node { padding: 12px; }
  .sim-device { min-height: 112px; }
  .sim-device img { max-height: 104px; }
  .sim-device .sim-tirette { max-height: 60px; }
  .sim-mobile { grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; }
  .sim-mobile .sim-device { grid-row: span 2; min-height: 0; }
  .sim-mobile .sim-device img { max-height: 84px; }
  .sim-mobile .sim-state { min-height: 0; }
  .sim-state { font-size: .88rem; }
  .lcd { font-size: .8rem; padding: 8px 10px; }
  .sim-top { display: contents; }
  .sim-top-actions { margin-bottom: 14px; }
  .sim-hint { position: sticky; top: calc(var(--head-h) + 8px); z-index: 1; flex: none; min-height: 4.6em; margin-bottom: 10px; padding: 10px 12px; border-radius: 10px; background: var(--navy-deep); border: 1px solid rgba(255, 255, 255, .22); font-size: .98rem; }
  .sim-top-actions .btn { flex: 1 1 auto; }
  .devices, .checks, .field-row, .norm-list, .steps { grid-template-columns: 1fr; }
  .step::after { display: none !important; }
  .mod { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .map-label { font-size: 22px; }
  .form-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; padding-inline: 20px; }
  .marquee-track .marquee-item:nth-child(n+18) { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .hublot[data-hublot="rouge-flash"] .hublot-rouge, .hublot[data-hublot="bleu-flash"] .hublot-bleu { animation: none; opacity: 1; }
}
