/* DM Sans — SIL Open Font License 1.1, voir assets/fonts/OFL.txt */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/dm-sans-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =====================================================================
   POWCOMA v4 — blanc et epure, format inspire d'open-visions.com
   ===================================================================== */

:root {
  --bg:        #ffffff;
  --bg-2:      #f4f5f3;
  --bg-3:      #eaece9;
  --ink:       #141816;
  --ink-2:     #4a524c;
  --ink-3:     #858c87;
  --line:      #e2e5e1;
  --green:     #2e7d32;   /* charte POWCOMA — vert moyen */
  --green-d:   #1b5e20;   /* charte — vert fonce */
  --green-l:   #4caf50;   /* charte — vert accent */
  --green-s:   #e8f5e9;   /* charte — vert clair */
  --amber:     #b26a00;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --pill: 999px;

  --shadow-s: 0 1px 2px rgba(20, 24, 22, 0.05);
  --shadow:   0 1px 2px rgba(20, 24, 22, 0.04), 0 14px 36px rgba(20, 24, 22, 0.07);

  --header-h: 100px;
  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.02rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }
p { margin: 0; }
sub { font-size: 0.72em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* -- Accessibilite ---------------------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 300;
  background: var(--ink); color: #fff; padding: 12px 20px;
  border-radius: var(--pill); text-decoration: none; font-weight: 500;
}
.skip-link:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* -- Boutons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.8em 1.5em; border-radius: var(--pill);
  font: 500 0.96rem/1 var(--font); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--green-d); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-d); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--green-s); }
.btn-ghost-light { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--green-d); }
.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4em;
  color: var(--green); font-weight: 500; text-decoration: none;
}
.link-arrow:hover { color: var(--green-d); }
.link-arrow::after { content: '\2192'; transition: transform 0.25s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* -- En-tete ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-s); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; }
/* Logo et nom plus presents dans le bandeau (28/09) ; le pied de page garde la taille 40 px */
.site-header .brand { gap: 14px; }
.site-header .brand img { width: 60px; height: 60px; }
.site-header .wordmark { height: 20px; }
/* Logotype : lettres du logo vectorise, meme typo que le logo (28/09) */
.wordmark { display: block; height: 16px; width: auto; aspect-ratio: 521 / 48; }
.wm-a { fill: var(--ink); }
.wm-b { fill: var(--green); }

.pill-nav {
  display: flex; gap: 4px; padding: 5px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--pill);
}
.pill-nav a {
  padding: 0.62em 1.3em; border-radius: var(--pill);
  font-size: 1.02rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.pill-nav a:hover { color: var(--ink); background: #fff; }
.header-inner > .btn { font-size: 1.02rem; padding: 0.86em 1.65em; }
.pill-nav a[aria-current="page"], .pill-nav a.active { color: var(--green); background: #fff; box-shadow: var(--shadow-s); }

.menu-btn {
  display: none; width: 48px; height: 48px; border-radius: var(--pill);
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform 0.25s, opacity 0.25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: #fff; padding: 24px var(--gutter);
  flex-direction: column; gap: 6px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em;
  text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 18px; align-self: flex-start; font-size: 1rem; }

/* -- Sections ------------------------------------------------------------ */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--bg-2); }
.eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--green);
  margin-bottom: 18px;
}
.section-title { font-size: clamp(2.2rem, 4.6vw, 3.9rem); letter-spacing: -0.035em; }
.section-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2);
  max-width: 62ch; margin-top: 20px;
}
.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 64px);
}
.statement {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem); font-weight: 400;
  letter-spacing: -0.025em; line-height: 1.2; max-width: 26ch;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.statement strong { font-weight: 700; color: var(--green); }

/* -- Hero ------------------------------------------------------------------ */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 88px); }
.hero h1 {
  font-size: clamp(3rem, 8.4vw, 7.6rem); letter-spacing: -0.045em;
  line-height: 0.96; max-width: 14ch;
}
.hero h1 .accent { color: var(--green); }
.hero-row {
  display: grid; grid-template-columns: minmax(0, 1.25fr) auto;
  align-items: end; gap: 32px 48px; margin-top: clamp(28px, 4vw, 44px);
}
.hero-lead { font-size: clamp(1.08rem, 1.5vw, 1.28rem); color: var(--ink-2); max-width: 56ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  margin-top: clamp(40px, 6vw, 72px);
  background: var(--bg-2); border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 48px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 40px);
  position: relative; overflow: hidden;
}
.hero-visual::before {
  content: ''; position: absolute; inset: auto -10% -60% -10%; height: 90%;
  background: radial-gradient(ellipse at center, rgba(76,175,80,0.14), transparent 65%);
  pointer-events: none;
}
.hero-visual figure { margin: 0; position: relative; display: flex; flex-direction: column; }
.hero-visual img { width: 100%; height: auto; aspect-ratio: 1000 / 640; object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(20, 24, 22, 0.16)); }
.hero-visual figcaption {
  margin-top: 14px; font-size: 0.92rem; color: var(--ink-2);
  display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
}
.hero-visual figcaption strong { color: var(--ink); font-weight: 700; }
.hero-badges {
  position: absolute; top: 20px; left: 20px; z-index: 2;
  display: flex; gap: 8px; flex-wrap: wrap;
}

/* -- Chips / tags ------------------------------------------------------ */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 0.38em 0.9em; border-radius: var(--pill);
  font-size: 0.8rem; font-weight: 500; line-height: 1.2;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
}
.chip-green { background: var(--green-s); border-color: transparent; color: var(--green-d); }
.chip-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green-l); }
.chip-dot.amber::before { background: var(--amber); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tags li {
  font-size: 0.78rem; padding: 0.3em 0.75em; border-radius: var(--pill);
  background: var(--bg-2); color: var(--ink-2);
}
.card .tags li { background: var(--bg-2); }

/* -- Cartes ------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-s); border: 1px solid var(--line);
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.section:not(.section-alt) .card { background: var(--bg-2); border-color: transparent; box-shadow: none; }
.section:not(.section-alt) .card:hover { box-shadow: var(--shadow); background: #fff; }
.card-media {
  aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden;
  margin: 10px 10px 0; border-radius: calc(var(--r-lg) - 8px);
}
.section:not(.section-alt) .card-media { background: #fff; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.card-media.contain img { object-fit: contain; padding: 14px; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-num { font-size: 0.82rem; color: var(--ink-3); font-weight: 500; letter-spacing: 0.06em; }
.card h3 { font-size: clamp(1.45rem, 2vw, 1.85rem); letter-spacing: -0.03em; }
.card-sub { color: var(--green); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }
.card-text { color: var(--ink-2); font-size: 0.97rem; }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 14px; }

/* Carte projet sans image : typographique */
.card-media.type {
  display: flex; align-items: flex-end; justify-content: flex-start;
  background: var(--green-s); padding: 22px 24px;
}
.card-media.type span {
  font-size: clamp(3.2rem, 6vw, 5rem); font-weight: 700; letter-spacing: -0.05em;
  color: var(--green-d); line-height: 0.85;
}

/* Carte produit (accueil) */
.product-card .card-media { aspect-ratio: 5 / 4; }
.product-card .card-media img { object-fit: contain; padding: 18px;
  filter: drop-shadow(0 16px 20px rgba(20, 24, 22, 0.14)); }
.product-card .card-media.photo img { padding: 18px 0; filter: none; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line);
      border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.kv div { background: #fff; padding: 10px 12px; }
.kv dt { font-size: 0.72rem; color: var(--ink-3); letter-spacing: 0.02em; }
.kv dd { margin: 2px 0 0; font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }
.section:not(.section-alt) .product-card .kv div { background: #fff; }

/* -- A propos -------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-text { font-size: clamp(1.15rem, 1.7vw, 1.42rem); line-height: 1.55; color: var(--ink-2); margin-top: 28px; }
.about-text mark { background: none; color: var(--green); font-weight: 700; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line);
         border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-top: 36px; }
.facts div { background: #fff; padding: 18px 20px; }
.facts dt { font-size: 0.8rem; color: var(--ink-3); }
.facts dd { margin: 4px 0 0; font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.about-media { margin: 0; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow);
               aspect-ratio: 4 / 3; background: var(--bg-2); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }

/* -- Publications --------------------------------------------------------- */
.pub-list { display: flex; flex-direction: column; gap: 20px; }
.pub {
  display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(24px, 3.4vw, 44px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px 32px 14px 14px; align-items: center;
}
.pub-fig { border-radius: calc(var(--r-lg) - 8px); overflow: hidden; background: var(--bg-2);
           aspect-ratio: 4 / 3; display: block; }
.pub-fig img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.pub-body { padding: 18px 0; display: flex; flex-direction: column; gap: 12px; }
.pub-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pub h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); letter-spacing: -0.025em; line-height: 1.2; }
.pub h3 a { text-decoration: none; }
.pub h3 a:hover { color: var(--green); }
.pub-authors { font-size: 0.94rem; color: var(--ink-2); }
.pub-authors .own { color: var(--green); font-weight: 700; }
.pub-authors .aff { color: var(--ink-3); }
.pub-abstract { font-size: 0.96rem; color: var(--ink-2); max-width: 78ch; }
.pub-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 4px; }

/* -- Clients -------------------------------------------------------------- */
.clients-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.client {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 30px 20px 22px; border-radius: var(--r-lg); background: var(--bg-2);
  text-decoration: none; transition: background 0.3s, transform 0.3s;
}
.client img { height: 58px; width: auto; max-width: 100%; object-fit: contain;
              filter: grayscale(1); opacity: 0.72; transition: filter 0.3s, opacity 0.3s; }
.client span { font-size: 0.84rem; color: var(--ink-3); transition: color 0.3s; }
.client:hover { background: #fff; transform: translateY(-3px); box-shadow: var(--shadow); }
.client:hover img { filter: none; opacity: 1; }
.client:hover span { color: var(--green); }

/* -- Appel a l'action ------------------------------------------------------ */
.cta {
  background: var(--green-d); color: #fff; border-radius: var(--r-xl);
  padding: clamp(56px, 8vw, 104px) clamp(28px, 6vw, 80px);
  text-align: center; position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; inset: -40% -20% auto -20%; height: 120%;
  background: radial-gradient(ellipse at center, rgba(76,175,80,0.35), transparent 60%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(2.4rem, 5.6vw, 4.8rem); letter-spacing: -0.04em; }
.cta p { margin: 20px auto 34px; max-width: 54ch; color: rgba(255,255,255,0.78); font-size: 1.1rem; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* -- Contact ---------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico {
  width: 40px; height: 40px; border-radius: 50%; background: var(--green-s); color: var(--green-d);
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.contact-list .ico svg { width: 18px; height: 18px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--green); }
.contact-list small { display: block; color: var(--ink-3); font-size: 0.82rem; }
.map { margin-top: 28px; border-radius: var(--r-lg); overflow: hidden; height: 220px; background: var(--bg-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(0.95); }

.form {
  background: var(--bg-2); border-radius: var(--r-xl); padding: clamp(24px, 3.4vw, 40px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.86rem; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: 400 1rem/1.4 var(--font); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 13px 15px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green); box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.12);
}
.form .btn { justify-self: start; }
.form-note { font-size: 0.84rem; color: var(--ink-3); align-self: center; }
.form-success { display: none; grid-column: 1 / -1; padding: 14px 18px; border-radius: var(--r-sm);
                background: var(--green-s); color: var(--green-d); font-weight: 500; }

/* Champ piege anti-spam : hors ecran, jamais visible ni atteignable au clavier */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note a { color: var(--green); }
.form-error { display: none; grid-column: 1 / -1; padding: 14px 18px; border-radius: var(--r-sm);
              background: #fdecea; color: #8a1c14; font-weight: 500; }
.form-error a { color: inherit; }

/* -- Pied de page ------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { font-size: 0.86rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0.04em;
                  text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { text-decoration: none; color: var(--ink-2); }
.footer-grid a:hover { color: var(--green); }
.footer-grid address { font-style: normal; color: var(--ink-2); line-height: 1.75; }
.footer-slogan { color: var(--green); font-weight: 700; margin-top: 16px; }
.footer-about { color: var(--ink-2); margin-top: 10px; max-width: 34ch; font-size: 0.95rem; }
.footer-bar {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 0.84rem; color: var(--ink-3);
}

/* =====================================================================
   PAGE PRODUCTS
   ===================================================================== */
.page-hero { background: var(--bg-2); padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(2.9rem, 7.2vw, 6.2rem); font-weight: 400; letter-spacing: -0.045em; line-height: 1; }
.page-hero h1 strong { font-weight: 700; color: var(--green); }
.page-hero .section-lead { margin-top: 24px; }
.cat-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 36px; }
.cat-pills a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0.7em 1.2em 0.7em 1.4em; border-radius: var(--pill);
  background: #fff; border: 1px solid var(--line); text-decoration: none;
  font-weight: 500; transition: border-color 0.2s, background 0.2s;
}
.cat-pills a:hover { border-color: var(--ink); }
.cat-pills .count {
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: var(--pill);
  background: var(--green-s); color: var(--green-d); font-size: 0.8rem;
  display: inline-flex; align-items: center; justify-content: center;
}

.cat { scroll-margin-top: calc(var(--header-h) + 16px); }
.cat-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px;
            align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.cat-head > p { color: var(--ink-2); font-size: 1.08rem; }

.chain-figure { margin: 0 0 clamp(56px, 7vw, 88px); background: var(--bg-2); border-radius: var(--r-xl);
                padding: clamp(20px, 3vw, 36px); }
.chain-figure .scroll { overflow-x: auto; }
.chain-figure svg { display: block; width: 100%; min-width: 720px; height: auto; }
.chain-figure figcaption { margin-top: 14px; font-size: 0.92rem; color: var(--ink-2); }
.chain-figure a:hover rect { fill: #d7ecd8; }

.product { scroll-margin-top: calc(var(--header-h) + 16px); padding-bottom: clamp(56px, 7vw, 96px); margin-bottom: clamp(56px, 7vw, 96px);
           border-bottom: 1px solid var(--line); }
.product:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.product-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.product-row.reverse .mosaic { order: 2; }

.mosaic { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px;
          aspect-ratio: 16 / 11; }
.mosaic.single { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 4 / 3.4; }
.mosaic .tile {
  position: relative; border: 0; padding: 0; margin: 0; cursor: zoom-in;
  background: var(--bg-2); border-radius: var(--r-md); overflow: hidden;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
}
.mosaic .tile:hover { transform: scale(0.985); }
.mosaic .tile.main { grid-row: 1 / 3; }
.mosaic.single .tile.main { grid-row: auto; }
.mosaic .tile img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.mosaic .tile.render img { filter: drop-shadow(0 14px 18px rgba(20, 24, 22, 0.16)); }
.mosaic .tile.drawing { background: #fff; border: 1px solid var(--line); }
.mosaic .tile.photo img { padding: 20px 0; }
.mosaic .tile .lbl {
  position: absolute; left: 12px; bottom: 12px; font-size: 0.74rem; font-weight: 500;
  padding: 0.3em 0.7em; border-radius: var(--pill); background: rgba(255,255,255,0.92); color: var(--ink-2);
}

.product-text h2 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); letter-spacing: -0.04em; margin-top: 16px; }
.product-sub { color: var(--green); font-weight: 700; font-size: clamp(1.08rem, 1.5vw, 1.28rem); margin-top: 10px; letter-spacing: -0.01em; }
.product-kind { color: var(--ink-3); font-size: 0.92rem; margin-top: 4px; }
.product-tagline { color: var(--ink-2); font-size: 1.06rem; margin-top: 18px; max-width: 58ch; }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
           border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin: 26px 0 0; }
.figures div { background: #fff; padding: 14px 14px; }
.figures dt { font-size: 0.74rem; color: var(--ink-3); }
.figures dd { margin: 3px 0 0; font-weight: 700; font-size: 1.12rem; letter-spacing: -0.015em; white-space: nowrap; }
.product-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; align-items: center; }

.product-details { margin-top: clamp(48px, 6vw, 72px); display: flex; flex-direction: column; gap: clamp(28px, 4vw, 44px); }
.panel { background: var(--bg-2); border-radius: var(--r-xl); padding: clamp(24px, 3.4vw, 44px); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 24px; }
.panel-head h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -0.03em; }
.panel-head p:not(.eyebrow) { color: var(--ink-2); max-width: 60ch; margin-top: 8px; }

.eff-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.eff-key { background: #fff; border-radius: var(--r-md); padding: 18px 20px; }
.eff-key .v { display: block; font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 700; letter-spacing: -0.04em; color: var(--green); line-height: 1; }
.eff-key .l { display: block; margin-top: 8px; font-size: 0.88rem; color: var(--ink-2); }
.eff-map { display: block; width: 100%; border: 0; padding: 0; cursor: zoom-in; background: #fff; border-radius: var(--r-md); overflow: hidden; }
.eff-map img { width: 100%; height: auto; padding: clamp(10px, 1.6vw, 20px); }
.eff-cap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 14px; font-size: 0.92rem; color: var(--ink-2); }

.curves { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.curve { margin: 0; background: #fff; border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; }
.curve button { border: 0; padding: 0; cursor: zoom-in; background: #fff; }
.curve img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 12px; }
.curve figcaption { padding: 4px 18px 18px; font-size: 0.9rem; color: var(--ink-2); }
.curve figcaption strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 2px; }

.spec-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.spec-grid h3 { font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 16px; }
.specs { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.specs th, .specs td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 500; color: var(--ink-3); width: 38%; padding-right: 16px; }
.specs tr:first-child th, .specs tr:first-child td { border-top: 1px solid var(--line); }
.checklist { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-direction: column; gap: 10px; }
.checklist li { position: relative; padding-left: 28px; color: var(--ink-2); }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 0.35em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-s) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%232e7d32' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.docs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.doc {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--line); text-decoration: none; transition: border-color 0.2s, transform 0.25s;
}
.doc:hover { border-color: var(--green); transform: translateY(-2px); }
.doc .k { font-size: 0.78rem; color: var(--green); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.doc .n { font-weight: 700; letter-spacing: -0.01em; }
.doc .m { font-size: 0.84rem; color: var(--ink-3); margin-top: auto; }
.doc.dl .n::after { content: ' \2193'; color: var(--green); }
.doc.go .n::after { content: ' \2192'; color: var(--green); }

.fine-print { font-size: 0.86rem; color: var(--ink-3); max-width: 90ch; }

/* -- Page mentions legales -------------------------------------------------- */
.legal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.legal-block { scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-block h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); letter-spacing: -0.035em; margin: 8px 0 8px; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-block h2:not(:first-of-type) { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.legal-block h3 { font-size: 1.08rem; letter-spacing: -0.01em; margin: 26px 0 8px; }
.legal-block p { color: var(--ink-2); font-size: 0.98rem; max-width: 68ch; }
.legal-block a { color: var(--green); }
.legal-note { font-size: 0.88rem !important; color: var(--ink-3) !important; font-style: italic; }
.legal-updated { margin-top: 36px; font-size: 0.86rem !important; color: var(--ink-3) !important; }
.footer-bar a { color: inherit; }
.footer-bar a:hover { color: var(--green); }
@media (max-width: 920px) { .legal-wrap { grid-template-columns: 1fr; } }

/* -- Lightbox ------------------------------------------------------------ */
.lightbox {
  position: fixed; inset: 0; z-index: 400; display: none;
  background: rgba(244, 245, 243, 0.97); padding: clamp(16px, 4vw, 56px);
  align-items: center; justify-content: center; flex-direction: column; gap: 14px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: calc(100% - 48px); object-fit: contain; background: #fff;
                border-radius: var(--r-md); box-shadow: var(--shadow); }
.lightbox p { color: var(--ink-2); font-size: 0.92rem; text-align: center; }
.lightbox-close {
  position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; font-size: 1.1rem; cursor: pointer;
}

/* -- Apparition au defilement ------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* -- Responsive -------------------------------------------------------------- */
@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .clients-row { grid-template-columns: repeat(2, 1fr); }
}
/* Bandeau compact : le logotype est large, le menu bascule avant que les elements se touchent */
@media (max-width: 1060px) {
  :root { --header-h: 84px; }
  .site-header .brand img { width: 48px; height: 48px; }
  .site-header .wordmark { height: 16px; }
  .pill-nav, .header-inner > .btn { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 920px) {
  .hero-row, .about-grid, .contact-grid, .cat-head, .product-row, .spec-grid { grid-template-columns: 1fr; }
  .product-row.reverse .mosaic { order: 0; }
  .pub { grid-template-columns: 1fr; padding: 14px; }
  .pub-body { padding: 4px 10px 12px; }
  .curves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .card-grid, .clients-row, .curves, .docs { grid-template-columns: 1fr; }
  .hero-visual { grid-template-columns: 1fr; }
  .eff-keys { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .mosaic { aspect-ratio: 1 / 1; }
}
