/* Teonia v2 — maquette */
:root {
  --black: #080400;        /* Pantone Black C, charte */
  --white: #ffffff;
  --surface: #f2f2f0;      /* fond des appareils et des tuiles */
  --surface-2: #e8e8e5;
  --ink: #080400;
  --muted: #6b6a66;
  --line: #deddd9;
  --radius-xl: 28px;
  --radius-l: 20px;
  --radius-m: 12px;
  --wrap: 1180px;
  --font: "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { font-family: var(--font); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; font-size: 19px; line-height: 1.47; letter-spacing: -0.01em; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #2f6fed; outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* Type scale */
.display { font-size: clamp(44px, 6.4vw, 88px); line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; }
.h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; }
.h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; }
.lead { font-size: clamp(20px, 1.9vw, 25px); line-height: 1.35; color: var(--muted); font-weight: 400; letter-spacing: -0.015em; }
.small { font-size: 15px; line-height: 1.45; color: var(--muted); }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 26px; border-radius: 999px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s; }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #2a2622; }
.btn-ghost { border-color: var(--black); color: var(--black); }
.btn-ghost:hover { background: var(--black); color: var(--white); }
.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { background: var(--surface); }
.btn-sm { height: 38px; padding: 0 18px; font-size: 15px; }
.link { font-weight: 500; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid rgba(0,0,0,.06); }
.nav .wrap { display: flex; align-items: center; gap: 32px; height: 64px; }
.nav .logo img { height: 18px; width: auto; }
.nav ul { display: flex; gap: 28px; list-style: none; margin-left: 12px; font-size: 15px; }
.nav ul a { color: #3b3935; }
.nav ul a:hover { color: var(--black); }
.nav .right { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 15px; }
.nav .lang { color: var(--muted); }
.nav .lang b { color: var(--black); font-weight: 500; }
@media (max-width: 900px) { .nav ul, .nav .tel { display: none; } }

/* Sections */
section { padding-block: clamp(80px, 11vw, 150px); }
.center { text-align: center; }
.center .lead { margin-inline: auto; max-width: 720px; }
.stack > * + * { margin-top: 20px; }

/* Footer */
.footer { background: var(--surface); padding: 64px 0 40px; font-size: 14px; color: var(--muted); }
.footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer h4 { font-size: 14px; font-weight: 600; color: var(--black); margin-bottom: 12px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a:hover { color: var(--black); }
.footer .base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Home ---------- */
.hero { padding-top: clamp(64px, 9vw, 120px); padding-bottom: 0; }
.hero .display { max-width: 980px; margin-inline: auto; }
.hero .lead { margin-top: 24px; }
.hero .ctas { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.hero-media { margin-top: clamp(48px, 6vw, 80px); border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 16 / 7.6; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 28px; }
.hero-facts div { padding: 4px 24px; border-left: 1px solid var(--line); }
.hero-facts div:first-child { border-left: 0; padding-left: 0; }
.hero-facts b { display: block; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.hero-facts span { font-size: 15px; color: var(--muted); }
@media (max-width: 760px) { .hero-facts { grid-template-columns: 1fr 1fr; row-gap: 20px; } .hero-facts div:nth-child(3) { border-left: 0; padding-left: 0; } }

/* Bento */
.bento-head { max-width: 760px; margin-bottom: 48px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 210px; gap: 16px; }
.tile { position: relative; border-radius: var(--radius-l); overflow: hidden; background: var(--surface); padding: 30px; display: flex; flex-direction: column; }
.tile h3 { font-size: 26px; line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; max-width: 18ch; }
.tile p { margin-top: 10px; font-size: 16px; line-height: 1.45; color: var(--muted); max-width: 36ch; }
.tile .foot { margin-top: auto; font-size: 15px; font-weight: 500; }
.tile.photo { color: var(--white); padding: 0; }
.tile.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile.photo .txt { position: relative; margin-top: auto; padding: 30px; background: linear-gradient(180deg, rgba(8,4,0,0) 0%, rgba(8,4,0,.72) 100%); }
.tile.photo p { color: rgba(255,255,255,.82); }
.tile.dark { background: var(--black); color: var(--white); }
.tile.dark p { color: rgba(255,255,255,.7); }
.tile .big { font-size: clamp(56px, 6vw, 84px); font-weight: 600; letter-spacing: -0.045em; line-height: .95; }
.t-devices { grid-column: span 4; grid-row: span 2; }
.t-sav { grid-column: span 2; grid-row: span 2; }
.t-eaot { grid-column: span 2; grid-row: span 2; }
.t-occ { grid-column: span 2; }
.t-prod { grid-column: span 2; grid-row: span 2; }
.t-years { grid-column: span 2; }
.t-sav .route { margin-top: auto; }
.tile.dark .zones { color: var(--white); margin-top: auto; font-size: clamp(30px, 2.8vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.t-sav .zones + .route { margin-top: 18px; color: rgba(255,255,255,.6); font-weight: 400; }
.t-prod .prod-img { margin: 10px -10px -30px auto; width: 78%; mix-blend-mode: multiply; }
.t-occ .tag { align-self: flex-start; font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--white); margin-bottom: 14px; }
@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .tile { min-height: 220px; }
  .t-devices, .t-sav, .t-eaot, .t-occ, .t-prod, .t-years { grid-column: span 2; grid-row: auto; }
  .t-devices { min-height: 420px; }
  .t-eaot { min-height: 360px; }
}

/* Device rail */
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1060px) { .rail { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -24px; padding-inline: 24px; } .rail::-webkit-scrollbar { display: none; } }
.card { scroll-snap-align: start; background: var(--surface); border-radius: var(--radius-l); padding: 22px 22px 26px; display: flex; flex-direction: column; min-height: 400px; }
.card .img { aspect-ratio: 4/3.2; display: grid; place-items: center; margin-bottom: 18px; }
.card .img img { max-height: 100%; width: auto; mix-blend-mode: multiply; }
.card .kind { font-size: 14px; color: var(--muted); }
.card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-top: 2px; }
.card p { font-size: 15px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.card .foot { margin-top: auto; padding-top: 18px; display: flex; gap: 18px; font-size: 15px; font-weight: 500; }
.card.new { position: relative; }
.card.new::after { content: "Nouveau"; position: absolute; top: 18px; left: 18px; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--black); color: var(--white); }

/* Steps (vraie séquence) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; counter-reset: s; }
.step { padding: 0 28px 0 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); display: block; font-size: 64px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: #c4c2bc; margin-bottom: 18px; }
.step h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.step p { font-size: 16px; color: var(--muted); margin-top: 8px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } .step:nth-child(3) { border-left: 0; padding-left: 0; } }

/* Brands */
.brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.brand { border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; }
.brand h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.brand .role { font-size: 15px; color: var(--muted); margin-top: 4px; }
.brand p { font-size: 15px; margin-top: 16px; color: #3b3935; }
@media (max-width: 900px) { .brands { grid-template-columns: 1fr 1fr; } }

/* CTA band */
.cta-band { background: var(--black); color: var(--white); border-radius: var(--radius-xl); padding: clamp(48px, 7vw, 96px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.cta-band .lead { color: rgba(255,255,255,.72); margin-top: 18px; }
.cta-band .actions { display: grid; gap: 14px; justify-items: start; }
.cta-band .actions .small { color: rgba(255,255,255,.6); }
.cta-band .actions a.tel { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Fiche machine ---------- */
.pbar { position: sticky; top: 84px; z-index: 40; background: rgba(255,255,255,.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.pbar .wrap { display: flex; align-items: center; height: 54px; gap: 28px; }
.pbar strong { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.pbar nav { display: flex; gap: 22px; font-size: 14px; color: var(--muted); margin-left: auto; }
.pbar nav a:hover { color: var(--black); }
@media (max-width: 760px) { .pbar nav { display: none; } .pbar .btn { margin-left: auto; } }

.p-hero { padding-top: clamp(56px, 7vw, 96px); padding-bottom: 0; text-align: center; }
.p-hero .brandline { font-size: 17px; color: var(--muted); }
.p-hero .display { margin-top: 10px; }
.p-hero .lead { margin-top: 18px; }
.p-hero .ctas { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.p-hero .stage { position: relative; margin-top: 56px; background: var(--surface); border-radius: var(--radius-xl); height: clamp(420px, 52vw, 640px); overflow: hidden; }
.p-hero .stage img { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; transform: scale(1.35); transform-origin: 50% 100%; mix-blend-mode: multiply; }

.hl-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 48px; }
.hl { background: var(--surface); border-radius: var(--radius-l); padding: 32px; min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; }
.hl .num { font-size: clamp(52px, 5.4vw, 76px); font-weight: 600; letter-spacing: -0.045em; line-height: .95; }
.hl .num small { font-size: .42em; letter-spacing: -0.02em; margin-left: 4px; }
.hl p { font-size: 17px; color: #3b3935; max-width: 30ch; }
.hl.dark { background: var(--black); color: var(--white); }
.hl.dark p { color: rgba(255,255,255,.75); }
.hl-a { grid-column: span 3; } .hl-b { grid-column: span 3; }
.hl-c, .hl-d, .hl-e { grid-column: span 2; }
.hl.photo { padding: 0; position: relative; overflow: hidden; }
.hl.photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .hl-grid { grid-template-columns: 1fr 1fr; } .hl-a, .hl-b, .hl-c, .hl-d, .hl-e { grid-column: span 2; } }

/* Spectre des longueurs d'onde */
.spectrum { margin-top: 64px; }
.scale { position: relative; height: 150px; }
.scale .axis { position: absolute; left: 0; right: 0; top: 74px; height: 2px; background: var(--line); }
.scale .tick { position: absolute; top: 84px; font-size: 13px; color: var(--muted); transform: translateX(-50%); white-space: nowrap; }
.scale .tick:first-of-type { transform: none; }
.scale .tick.last { transform: translateX(-100%); }
.scale .mark { position: absolute; top: 0; transform: translateX(-50%); text-align: center; }
.scale .mark .nm { font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.scale .mark .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--black); margin: 22px auto 0; box-shadow: 0 0 0 6px var(--white); }
.wl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.wl div { padding-top: 16px; border-top: 2px solid var(--black); }
.wl h3 { font-size: 19px; font-weight: 600; }
.wl p { font-size: 16px; color: var(--muted); margin-top: 6px; }
@media (max-width: 760px) { .wl { grid-template-columns: 1fr 1fr; } .scale .tick { display: none; } }

/* Galerie */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 300px 300px; gap: 16px; margin-top: 48px; }
.gallery figure { border-radius: var(--radius-l); overflow: hidden; background: var(--surface); }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g1 { grid-row: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 340px 200px 200px; } .gallery .g1 { grid-column: span 2; grid-row: auto; } }

/* Fiche technique */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 56px; }
.specs h3 { font-size: 19px; font-weight: 600; padding-bottom: 14px; border-bottom: 2px solid var(--black); }
.specs dl { display: grid; }
.specs .row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.specs dt { color: var(--muted); }
.specs dd { text-align: right; font-weight: 500; }
.specs .tbc { font-weight: 400; color: #b0492c; font-size: 13px; display: block; }
@media (max-width: 860px) { .specs { grid-template-columns: 1fr; gap: 32px; } }

/* Inclus */
.incl { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.incl ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.incl li { padding: 22px 0; border-top: 1px solid var(--line); }
.incl li b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.incl li span { font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .incl { grid-template-columns: 1fr; gap: 32px; } .incl ul { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; margin: 48px auto 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-size: 21px; font-weight: 600; letter-spacing: -0.015em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 30px; font-weight: 300; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 26px 0; color: #3b3935; font-size: 17px; }

/* Formulaire démo */
.demo-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.demo-form input, .demo-form select { height: 50px; border-radius: var(--radius-m); border: 0; padding: 0 16px; font: inherit; font-size: 16px; background: #1c1814; color: var(--white); }
.demo-form input::placeholder { color: rgba(255,255,255,.5); }
.demo-form .full { grid-column: span 2; }
.demo-form .btn { grid-column: span 2; justify-self: start; }
