/* Aide à l'exploitation – site de présentation (Aurel-Tech) */
@font-face { font-family: Barlow; font-weight: 400; src: url(fonts/barlow-latin-400-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: Barlow; font-weight: 600; src: url(fonts/barlow-latin-600-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; src: url(fonts/barlow-condensed-latin-700-normal.woff2) format('woff2'); font-display: swap; }

:root {
  --night: #0c1d2b; --night-2: #132b3e; --night-line: #23415a;
  --cyan: #12c6ea; --cyan-ink: #0a7f98; --signal: #e3412f; --signal-soft: #fde9e6;
  --paper: #eef3f6; --white: #fbfdfe; --ink: #0f1c26; --muted: #546675; --line: #d3dde4;
  --head: 'Barlow Condensed', 'Arial Narrow', Barlow, sans-serif;
  --body: Barlow, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-ink); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin: 0 auto; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.02; letter-spacing: .005em; margin: 0; }
h1 { font-size: clamp(42px, 5.6vw, 74px); }
h2 { font-size: clamp(34px, 4.4vw, 54px); }
h3 { font-size: 26px; line-height: 1.1; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 12px; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 20; background: rgba(12, 29, 43, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--night-line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand span { font-family: var(--head); font-size: 21px; line-height: 1; padding-left: 12px; border-left: 1px solid var(--night-line); }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { color: #c9d6df; text-decoration: none; font-weight: 600; font-size: 15.5px; }
.nav a:hover, .nav a[aria-current=page] { color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 8px; font: 600 16px var(--body); text-decoration: none; cursor: pointer; border: 0; }
.btn-main { background: var(--cyan); color: #04202a; }
.btn-main:hover { background: #3fd3f0; }
.btn-line { color: #fff; border: 1px solid #3b5a73; }
.btn-line:hover { border-color: var(--cyan); }
.nav .btn { min-height: 40px; padding: 0 16px; color: #04202a; font-size: 15px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--night-line); color: #fff; border-radius: 8px; height: 40px; padding: 0 12px; font: 600 15px var(--body); }

/* Ouverture : le plan d'un niveau, une alarme, l'itinéraire depuis le SSI */
.hero { background: var(--night); color: #fff; overflow: hidden; position: relative; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(18, 198, 234, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 198, 234, .06) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 48px; align-items: center; padding: 64px 0 96px; }
.hero h1 { max-width: 13ch; }
.hero .lead { font-size: 20px; color: #c9d6df; max-width: 34ch; margin: 22px 0 32px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { margin-top: 22px; font-size: 14.5px; color: #8fa6b6; }
.plan { position: relative; }
.plan svg { width: 100%; height: auto; display: block; }
.plan .wall { stroke: #6f8ea6; stroke-width: 3; fill: none; }
.plan .thin { stroke: #3b5a73; stroke-width: 1.5; fill: none; }
.plan .room { fill: #8fa6b6; font: 600 13px var(--body); }
.plan .det { fill: #12c6ea; }
.plan .alarm { fill: var(--signal); }
.plan .pulse { fill: none; stroke: var(--signal); stroke-width: 2; transform-origin: center; transform-box: fill-box; animation: pulse 1.6s ease-out infinite; }
.plan .route { fill: none; stroke: var(--signal); stroke-width: 3.5; stroke-dasharray: 9 7; stroke-linecap: round; }
.plan .route-draw { stroke-dashoffset: 0; animation: draw 2.4s .6s ease-out both; }
.plan .ssi rect { fill: #fff; } .plan .ssi text { fill: var(--night); font: 700 12px var(--body); }
.plan .tag rect { fill: #2f6fd0; } .plan .tag text { fill: #fff; font: 600 11.5px var(--body); }
.sheet { position: absolute; right: 2%; bottom: -16%; width: min(300px, 62%); background: var(--white); color: var(--ink); border-radius: 12px; padding: 14px 16px 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); border-top: 4px solid var(--signal); animation: rise .6s 1.9s ease-out both; }
.sheet b { font-family: var(--head); font-size: 30px; line-height: 1; }
.sheet .sub { font-size: 13.5px; color: var(--muted); margin: 4px 0 10px; }
.sheet .acts { display: flex; gap: 6px; }
.sheet .acts span { flex: 1; text-align: center; font-size: 12.5px; font-weight: 600; padding: 7px 4px; border-radius: 6px; background: #e6edf2; }
.sheet .acts span:first-child { background: var(--cyan-ink); color: #fff; } .sheet .acts span:last-child { background: var(--signal); color: #fff; }
@keyframes pulse { from { opacity: .9; transform: scale(.6); } to { opacity: 0; transform: scale(2.2); } }
@keyframes draw { from { stroke-dashoffset: 520; opacity: 0; } 10% { opacity: 1; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .plan .pulse, .plan .route-draw, .sheet { animation: none; } html { scroll-behavior: auto; } }

/* Sections */
.band { padding: 96px 0; }
.band-white { background: var(--white); }
.band-night { background: var(--night); color: #fff; }
.band-night p, .band-night li { color: #c9d6df; }
.intro { max-width: 680px; margin-bottom: 52px; }
.intro p { font-size: 19px; color: var(--muted); margin-top: 18px; }
.band-night .intro p { color: #c9d6df; }

/* Trois questions */
.questions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.questions div { padding: 26px 28px 8px 0; }
.questions div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.questions h3 { font-size: 34px; margin-bottom: 10px; }
.questions p { color: var(--muted); }

/* Déroulé d'une alarme (vraie séquence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; }
.steps ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 18px; padding: 22px 0; border-top: 1px solid var(--night-line); }
.steps li::before { content: counter(s); font-family: var(--head); font-size: 44px; line-height: .9; color: var(--cyan); grid-row: span 2; }
.steps li h3 { color: #fff; }
.steps li p { margin: 0; }
.phone { border-radius: 30px; padding: 10px; background: #1d3549; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.phone img { border-radius: 22px; }
.steps .phone { position: sticky; top: 100px; }

/* Fonctions */
.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.feat { padding: 28px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 18px; }
.feat svg { width: 32px; height: 32px; stroke: var(--cyan-ink); grid-row: span 2; margin-top: 2px; }
.feat h3 { font-size: 25px; }
.feat p { margin: 4px 0 0; color: var(--muted); }

/* Pour qui */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role { background: var(--white); border-radius: 14px; padding: 28px; border: 1px solid var(--line); }
.role h3 { margin-bottom: 12px; }
.role ul { margin: 0; padding-left: 18px; color: var(--muted); }
.role li { margin-bottom: 6px; }

/* Données */
.trust { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.trust dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.trust dt { font-weight: 600; color: #fff; font-size: 18px; margin-bottom: 4px; }
.trust dd { margin: 0; color: #c9d6df; font-size: 15.5px; }

/* Questions fréquentes */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 14px; font-size: 28px; font-weight: 400; color: var(--cyan-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-right: 40px; }

/* Appel à l'action */
.cta { background: var(--night-2); color: #fff; border-radius: 18px; padding: 52px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.cta p { color: #c9d6df; margin: 12px 0 0; font-size: 18px; }

/* Page de fonctionnalités */
.pagehead { background: var(--night); color: #fff; padding: 72px 0 64px; }
.pagehead p { font-size: 20px; color: #c9d6df; max-width: 60ch; margin-top: 18px; }
.crumb { font-size: 14px; margin-bottom: 18px; color: #8fa6b6; } .crumb a { color: #8fa6b6; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: center; padding: 72px 0; border-bottom: 1px solid var(--line); }
.split.rev { grid-template-columns: 320px minmax(0, 1fr); } .split.rev .phone { order: -1; }
.split.wide { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } .split.wide img { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(15, 28, 38, .12); }
.split h2 { font-size: clamp(32px, 3.6vw, 44px); margin-bottom: 18px; }
.split ul { padding-left: 20px; color: var(--muted); } .split li { margin-bottom: 8px; }
.split .phone { max-width: 320px; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; padding: 72px 0 96px; align-items: start; }
form.form { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.form label { display: block; font-weight: 600; font-size: 15px; margin: 18px 0 6px; }
.form label:first-of-type { margin-top: 0; }
.form .opt { font-weight: 400; color: var(--muted); }
.form input, .form textarea, .form select { width: 100%; font: 17px var(--body); padding: 12px 14px; border: 1px solid #b9c7d2; border-radius: 9px; background: #fff; color: var(--ink); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--cyan-ink); box-shadow: 0 0 0 3px rgba(18, 198, 234, .25); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form .hp { position: absolute; left: -5000px; }
.form .btn { margin-top: 24px; width: 100%; }
.form .legal { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }
.msg { padding: 12px 14px; border-radius: 9px; margin-bottom: 16px; font-size: 15.5px; }
.msg.err { background: var(--signal-soft); color: #8a1d14; } .msg.ok { background: #e3f4ec; color: #1d5e40; }
.side h2 { font-size: 34px; margin-bottom: 14px; }
.side ul { padding-left: 20px; color: var(--muted); }
.hidden { display: none !important; }

/* Pages de texte */
.legal-page { max-width: 760px; padding: 64px 0 96px; }
.legal-page h2 { font-size: 32px; margin: 40px 0 12px; }
.legal-page p, .legal-page li { color: #304250; }

/* Pied de page */
.foot { background: var(--night); color: #8fa6b6; padding: 52px 0 36px; font-size: 15px; }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 36px; }
.foot img { height: 28px; width: auto; margin-bottom: 14px; }
.foot h2 { font-family: var(--body); font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; } .foot li { margin-bottom: 6px; }
.foot a { color: #c9d6df; text-decoration: none; } .foot a:hover { color: #fff; text-decoration: underline; }
.foot .bottom { grid-column: 1 / -1; border-top: 1px solid var(--night-line); padding-top: 22px; font-size: 13.5px; }

/* Petits écrans */
@media (max-width: 960px) {
  .hero .wrap, .steps, .trust, .split, .split.rev, .split.wide, .contact, .cta { grid-template-columns: 1fr; }
  .hero .wrap { padding: 48px 0 96px; gap: 36px; }
  .steps .phone { position: static; max-width: 320px; }
  .split.rev .phone { order: 0; }
  .roles { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr; }
  .cta { padding: 36px 28px; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--night); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--night-line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 17px; }
  .nav .btn { margin-top: 10px; min-height: 48px; }
  .brand span { display: none; }
  .band { padding: 68px 0; }
  .questions { grid-template-columns: 1fr; }
  .questions div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .trust dl { grid-template-columns: 1fr; }
  .sheet { right: 2%; bottom: -14%; width: 72%; }
  .form .row { grid-template-columns: 1fr; }
  form.form { padding: 24px 18px; }
  .foot .wrap { grid-template-columns: 1fr; }
  .split { padding: 52px 0; gap: 36px; }
}
