/* ELTEC — feuille unique. Navy, blanc, un accent cyan. Archivo 400/600. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/archivo-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/archivo-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #040f24;
  --surface: #0a1830;
  --cyan: #08a9e3;
  --white: #ffffff;
  --soft: rgba(255, 255, 255, 0.72);
  --dim: rgba(255, 255, 255, 0.5);
  --field: rgba(255, 255, 255, 0.08);
  --gutter: 40px;
  --section: clamp(48px, 4.5vw, 66px);
  --head: clamp(32px, 3.6vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (max-width: 760px) { :root { --gutter: 16px; --section: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--navy); color: var(--white);
  font-family: "Archivo", system-ui, sans-serif; font-weight: 400;
  font-size: clamp(17px, 1.2vw, 19px); line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--cyan); color: var(--navy); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

.skip { position: absolute; left: var(--gutter); top: -60px; padding: 12px 16px; background: var(--cyan); color: var(--navy); font-weight: 600; text-decoration: none; z-index: 20; }
.skip:focus { top: 16px; }

.wrap { width: min(100% - 2 * var(--gutter), 1360px); margin-inline: auto; }

/* Canvas unique, fixé derrière la page ; les vues 3D sont des zones vides du flux. */
.gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: none; }
html.webgl .gl { display: block; }
.view { position: relative; }
.view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
html.webgl .view img { display: none; }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 10; background: var(--navy); display: flex; align-items: center; gap: 40px; padding: 20px var(--gutter); }
.nav .wordmark { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; margin-right: auto; }
.nav .wordmark svg { width: 30px; height: 30px; }
.nav .links { display: flex; gap: 32px; }
.nav .links a { text-decoration: none; color: var(--soft); transition: color 0.3s; }
.nav .links a:hover { color: var(--white); }
@media (max-width: 760px) { .nav { gap: 16px; padding-block: 14px; } .nav .links { display: none; } }

.button {
  display: inline-block; padding: 16px 26px; background: var(--cyan); color: var(--navy);
  font-weight: 600; font-size: 18px; line-height: 1.2; text-decoration: none; border: 0; cursor: pointer; font-family: inherit;
  transition: background 0.3s;
}
.button:hover { background: #2fbdf0; }
.nav .button { padding: 12px 20px; font-size: 16px; }

/* Sections */
section { position: relative; z-index: 1; }
.section { padding-block: var(--section); }
.section h2, .h2 { font-size: var(--head); line-height: 1.02; letter-spacing: -0.03em; font-weight: 600; margin-bottom: clamp(32px, 3.6vw, 52px); }
.band { background: var(--surface); }
.muted { color: var(--soft); }
.small { font-size: 15px; color: var(--dim); }

/* Hero (accueil) : le plateau occupe la moitié droite et passe un peu sous le texte */
.hero { position: relative; z-index: 1; min-height: min(100svh, 980px); display: flex; flex-direction: column; justify-content: center; padding-top: 110px; padding-bottom: 48px; }
.hero__view { position: absolute; top: 72px; bottom: 120px; right: 0; width: 56%; }
.hero__text { position: relative; max-width: min(700px, 46%); }
.hero h1 { font-size: clamp(52px, 5.8vw, 108px); line-height: 0.98; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
.hero p { margin-top: 28px; max-width: 30em; color: var(--soft); font-size: clamp(18px, 1.45vw, 21px); }
.hero .button { margin-top: 34px; }
.stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 24px 64px; margin-top: clamp(48px, 7vh, 88px); position: relative; }
.stats b { display: block; font-size: clamp(28px, 2.8vw, 44px); line-height: 1; letter-spacing: -0.03em; font-weight: 600; white-space: nowrap; }
.stats span { display: block; margin-top: 8px; font-size: 15px; color: var(--dim); }
@media (max-width: 960px) {
  .hero { padding-top: 64px; min-height: 0; }
  .hero__view { position: relative; top: auto; bottom: auto; width: auto; height: 46svh; }
  .hero__text { max-width: none; }
  .hero h1 { font-size: clamp(44px, 12vw, 64px); }
  .stats { grid-template-columns: 1fr 1fr; gap: 24px 16px; margin-top: 40px; }
}

/* Nos essais : grille 2 × 2 serrée */
.tests { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 4vw, 64px) clamp(32px, 4vw, 64px); }
.test { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: center; }
.test .view { aspect-ratio: 4 / 5; }
.test h3 { font-size: clamp(24px, 2.1vw, 32px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; }
.test p { margin-top: 10px; color: var(--soft); }
.test .fig { color: var(--white); margin-top: 16px; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.test .kw { margin-top: 14px; font-size: 15px; color: var(--dim); line-height: 1.6; }
.more { display: inline-block; margin-top: 16px; color: var(--cyan); text-decoration: none; font-weight: 600; }
.more:hover { color: var(--white); }
.norms-line { margin-top: clamp(40px, 4vw, 64px); font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -0.01em; }
.norms-line span { color: var(--dim); margin-right: 16px; font-size: 15px; }
@media (max-width: 1100px) { .tests { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .test { grid-template-columns: 1fr; gap: 16px; } .test .view { aspect-ratio: 16 / 11; } }

/* Équipements testés */
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 40px; }
.sectors h3 { font-size: clamp(20px, 1.6vw, 24px); letter-spacing: -0.015em; font-weight: 600; }
.sectors p { margin-top: 6px; color: var(--soft); }
@media (max-width: 960px) { .sectors { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .sectors { grid-template-columns: 1fr; gap: 24px; } }

/* Le parc : rangée de machines (défilement horizontal au doigt sur mobile) */
.parc { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.machine .view { aspect-ratio: 1 / 1; }
.machine b { display: block; margin-top: 12px; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.machine span { display: block; margin-top: 2px; color: var(--soft); font-size: 16px; }
@media (max-width: 1100px) {
  .parc { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .parc::-webkit-scrollbar { display: none; }
  .machine { flex: 0 0 min(62vw, 300px); scroll-snap-align: start; }
}


/* Fil ELTEC : trace d'oscilloscope (seul élément décoratif) */
.trace { position: relative; z-index: 1; height: 44px; pointer-events: none; }
.trace svg { display: block; width: 100%; height: 100%; overflow: visible; }
.trace path { fill: none; stroke: var(--cyan); stroke-width: 1.5px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.trace--hero { margin-top: clamp(28px, 4vh, 48px); }
.trace--divider { width: min(100% - 2 * var(--gutter), 1360px); margin-inline: auto; opacity: 0.85; }

/* Petite structure. Adaptation maximale. — la seule section claire */
.ice { background: #eef8fc; color: var(--navy); }
.ice .motto { font-size: clamp(44px, 6.4vw, 108px); line-height: 0.98; letter-spacing: -0.035em; margin-bottom: 0; }
.ice__lead { margin-top: clamp(20px, 2.4vw, 32px); max-width: 36em; font-size: clamp(18px, 1.5vw, 22px); color: rgba(4, 15, 36, 0.78); }
.pledges { margin-top: clamp(36px, 4vw, 56px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pledges h3 { font-size: clamp(20px, 1.7vw, 26px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.pledges p { margin-top: 10px; color: rgba(4, 15, 36, 0.72); }
.ice ::selection { background: var(--navy); color: #fff; }
@media (max-width: 860px) { .pledges { grid-template-columns: 1fr; gap: 28px; } }

/* Comment ça se passe : la trace devient le trait de progression */
.timeline .trace--progress { height: 36px; clip-path: inset(0 calc(100% - var(--p, 0) * 100%) 0 0); }
.timeline ol { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.timeline b { display: block; font-size: clamp(32px, 3.2vw, 52px); line-height: 1; letter-spacing: -0.03em; font-weight: 600; }
.timeline p { margin-top: 14px; color: var(--soft); max-width: 18em; }
@media (max-width: 860px) { .timeline ol { grid-template-columns: 1fr 1fr; gap: 28px 16px; } }

/* Depuis 1996 : récit en trois temps + chiffres vécus */
.story { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.story b { display: block; font-size: clamp(52px, 6vw, 104px); line-height: 0.95; letter-spacing: -0.04em; font-weight: 600; white-space: nowrap; }
.story p { margin-top: 16px; color: var(--soft); max-width: 24em; }
.lived { margin-top: clamp(40px, 4.4vw, 64px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.lived b { display: block; font-size: clamp(28px, 2.8vw, 44px); line-height: 1; letter-spacing: -0.03em; font-weight: 600; white-space: nowrap; }
.lived span { display: block; margin-top: 8px; color: var(--soft); font-size: 16px; max-width: 14em; }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; gap: 28px; }
  .story b { font-size: clamp(44px, 13vw, 64px); }
  .lived { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
}

/* Laboratoire */
.lab-photo { margin-top: clamp(32px, 3.5vw, 52px); }
.lab-photo img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; filter: brightness(0.55) saturate(0.6) contrast(1.05); }
.lab-photo figcaption { margin-top: 18px; color: var(--soft); }
@media (max-width: 760px) { .lab-photo img { aspect-ratio: 4 / 3; } }

/* Questions fréquentes */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
.faq-grid h2 { margin-bottom: 0; }
.faq details { padding: 18px 0; }
.faq details + details { margin-top: 4px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: clamp(19px, 1.6vw, 24px); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); margin-left: 14px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--soft); max-width: 40em; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 16px; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact .big a { display: block; text-decoration: none; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; font-size: clamp(30px, 3.6vw, 58px); transition: color 0.3s; }
.contact .big a:hover { color: var(--cyan); }
.contact .big a + a { margin-top: 18px; }
.contact .big p { margin-top: 32px; color: var(--soft); max-width: 24em; }
.contact .info { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 6px 40px; margin-top: 32px; }
.contact .info dt { color: var(--dim); font-size: 15px; }
.contact .info dd { color: var(--white); }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 480px) { .contact .info { grid-template-columns: 1fr; gap: 2px; } .contact .info dd { margin-bottom: 12px; } }

form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field.full, .check, form .button { grid-column: 1 / -1; }
label { color: var(--soft); font-size: 16px; }
input, textarea { width: 100%; padding: 15px 18px; background: var(--field); color: var(--white); border: 0; border-radius: 0; font: inherit; font-size: 18px; }
textarea { min-height: 140px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline-offset: 0; }
.check { display: flex; gap: 14px; align-items: flex-start; color: var(--soft); font-size: 16px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; padding: 0; accent-color: var(--cyan); flex: none; }
form .button { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { form { grid-template-columns: 1fr; } }
.thanks h3, .fallback h3 { font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.02em; font-weight: 600; }
.thanks p, .fallback p { margin-top: 16px; color: var(--soft); }
.fallback textarea { margin-top: 24px; min-height: 220px; }
.fallback .row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.fallback .button--dark { background: var(--field); color: var(--white); }

/* Pied */
footer { position: relative; z-index: 1; padding: 64px 0 40px; color: var(--dim); font-size: 16px; }
footer a { color: var(--soft); text-decoration: none; }
footer a:hover { color: var(--white); }
.foot-essais { display: flex; flex-wrap: wrap; gap: 12px 40px; font-size: 20px; margin-bottom: 36px; }
.foot-essais a { color: var(--white); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; }
.foot-row nav { display: flex; gap: 24px; }

/* Pages métiers */
.page-hero { position: relative; z-index: 1; display: grid; grid-template-columns: 9fr 11fr; align-items: center; gap: 40px; padding-top: 104px; padding-bottom: 24px; min-height: min(86svh, 860px); }
.page-hero h1 { font-size: clamp(48px, 5.6vw, 92px); line-height: 1; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
.page-hero p { margin-top: 24px; max-width: 32em; color: var(--soft); font-size: clamp(18px, 1.4vw, 20px); }
.page-hero .button { margin-top: 32px; }
.page-hero .view { align-self: stretch; min-height: 62vh; }
.page-stats { padding-bottom: clamp(24px, 3vw, 40px); }
.page-stats .stats { margin-top: 0; justify-content: space-between; }
.crumb { display: block; margin-bottom: 24px; color: var(--dim); text-decoration: none; font-size: 16px; }
.crumb:hover { color: var(--white); }
@media (max-width: 960px) {
  .page-hero { grid-template-columns: 1fr; gap: 0; padding-top: 64px; min-height: 0; }
  .page-hero .view { order: -1; min-height: 0; height: 44svh; }
  .page-hero h1 { font-size: clamp(38px, 10.5vw, 56px); }
  .page-stats .stats { justify-content: start; }
}
.items { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 72px; }
.items div { display: grid; gap: 4px; }
.items dt { font-weight: 600; font-size: clamp(19px, 1.5vw, 22px); letter-spacing: -0.015em; }
.items dd { color: var(--soft); }
.means { display: grid; gap: 28px; }
.means div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: baseline; }
.means b { font-weight: 600; font-size: clamp(22px, 2.1vw, 32px); letter-spacing: -0.025em; line-height: 1.1; }
.means span { color: var(--soft); }
.norms { font-size: clamp(20px, 2vw, 30px); line-height: 1.35; letter-spacing: -0.015em; max-width: 34em; }
.others { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.others a { display: block; text-decoration: none; }
.others .view { aspect-ratio: 4 / 3; }
.others b { display: block; margin-top: 10px; font-size: clamp(19px, 1.5vw, 22px); font-weight: 600; letter-spacing: -0.015em; }
.others span { display: block; color: var(--cyan); font-weight: 600; margin-top: 4px; font-size: 16px; }
.cta-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-end p { font-size: clamp(30px, 3.6vw, 56px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; max-width: 14em; }
@media (max-width: 760px) {
  .items { grid-template-columns: 1fr; gap: 22px; }
  .means div { grid-template-columns: 1fr; gap: 4px; }
  .others { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .others b { font-size: 16px; }
  .others span { display: none; }
}

/* Liste complète des moyens */
.sub { margin-top: calc(-1 * clamp(20px, 2.4vw, 36px)); margin-bottom: clamp(28px, 3vw, 44px); color: var(--soft); font-size: clamp(18px, 1.5vw, 22px); }
.means-all { margin-top: clamp(40px, 4vw, 60px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 48px; align-items: start; }
.means-all summary { cursor: pointer; list-style: none; font-size: clamp(20px, 1.6vw, 24px); font-weight: 600; letter-spacing: -0.015em; padding-bottom: 12px; }
.means-all summary::-webkit-details-marker { display: none; }
.means-all summary::after { content: "−"; color: var(--cyan); margin-left: 12px; }
.means-all details:not([open]) summary::after { content: "+"; }
.means-all dl > div { padding: 8px 0; }
.means-all dt { font-weight: 600; }
.means-all dd { color: var(--soft); font-size: 16px; }
@media (max-width: 1100px) { .means-all { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .means-all { grid-template-columns: 1fr; gap: 12px; } }
.form-note { grid-column: 1 / -1; font-size: 14px; line-height: 1.5; color: var(--dim); max-width: 46em; }
.form-note a { color: var(--soft); }

/* Pages légales */
.prose { padding-top: calc(var(--section) + 60px); padding-bottom: var(--section); max-width: 760px; }
.prose h1 { font-size: clamp(40px, 5vw, 80px); line-height: 1; letter-spacing: -0.03em; font-weight: 600; margin-bottom: 48px; }
.prose h2 { font-size: clamp(24px, 2vw, 30px); letter-spacing: -0.02em; font-weight: 600; margin: 48px 0 14px; }
.prose p { color: var(--soft); }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 16px; }
.prose ul { color: var(--soft); padding-left: 1.2em; margin: 0; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--white); }
.prose .updated { color: var(--dim); font-size: 15px; margin-top: -32px; margin-bottom: 8px; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 32px; color: var(--soft); margin: 0; }
.prose dt { color: var(--white); }
@media (max-width: 560px) { .prose dl { grid-template-columns: 1fr; gap: 4px; } .prose dd { margin-bottom: 12px; } }

/* Bandeau de consentement (uniquement si GTM_ID est renseigné dans analytics.js) */
.consent { position: fixed; left: var(--gutter); right: var(--gutter); bottom: 24px; z-index: 30; max-width: 560px; padding: 24px; background: #0f2a55; color: var(--white); }
.consent p { margin: 0 0 16px; font-size: 16px; }
.consent .row { display: flex; gap: 12px; }
.consent .button--dark { background: var(--field); color: var(--white); }

/* Entrées : courtes, déclenchées dès que l'élément touche l'écran */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.is-in { opacity: 1; transform: none; }
html.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
