/* ===========================================================
   BTSG — Biotech Service · feuille de styles partagée
   Converti depuis la maquette Claude Design (HTML/CSS standard).
   Palette : bleu #0F5CA8 · vert #4CA32F · texte #10233A
   =========================================================== */

:root {
  --blue: #0F5CA8;
  --blue-dark: #0A4885;
  --green: #4CA32F;
  --green-dark: #42912a;
  --green-ink: #357E22;   /* vert lisible (contraste AA 5:1 sur blanc) : textes + boutons */
  --green-ink-dark: #2B6A1B;
  --ink: #10233A;
  --muted: #5A6B7B;
  --muted-2: #4A5A6A;
  --border: #E2EAF2;
  --bg-soft: #F4F7FB;
  --tint-blue: #EAF3FB;
  --tint-green: #EDF6E8;
  --footer: #0B2136;
  --maxw: 1200px;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: 'Manrope', system-ui, sans-serif; margin: 0; }
p { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
::selection { background: #cfe0f2; }

/* Accessibilité : focus clavier visible + respect du reduced-motion */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .band-dark :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--tight { padding: clamp(44px, 5vw, 64px) 0; }
.bg-soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
/* Système de labels « instrument technique » — IBM Plex Mono (signature de la marque) */
.eyebrow { display: inline-flex; align-items: center; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 16px; height: 2px; background: currentColor; margin-right: 10px; opacity: 0.55; flex-shrink: 0; }
.eyebrow--blue { color: var(--blue); }
.eyebrow--green { color: var(--green-ink); }
.lead { font-size: clamp(17px, 1.8vw, 20px); line-height: 1.6; color: var(--muted-2); }
.section-head { max-width: 660px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 9px; font-size: 16.5px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green-ink); color: #fff; }
.btn--primary:hover { background: var(--green-ink-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(76,163,47,.28); }
.btn--ghost-light { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.42); font-weight: 600; }
.btn--ghost-light:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn--outline { background: #fff; color: var(--blue); border-color: var(--blue); font-weight: 600; }
.btn--outline:hover { background: var(--tint-blue); color: var(--blue); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 46px; width: 46px; object-fit: contain; }
.brand__name { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name b { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 19px; color: var(--blue); letter-spacing: -0.01em; }
.brand__name span { font-size: 10.5px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { font-size: 15px; font-weight: 500; color: #33475B; }
.nav a:not(.btn):hover { color: var(--blue); }
.nav a:not(.btn).is-active { color: var(--blue); font-weight: 600; }
.nav .btn { padding: 10px 18px; font-size: 15px; color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--blue); border-radius: 2px; display: block; }
.nav-mobile { display: none; flex-direction: column; padding: 8px 24px 20px; gap: 4px; border-top: 1px solid var(--border); background: #fff; }
.nav-mobile a:not(.btn) { padding: 12px 0; font-size: 16px; font-weight: 500; color: #33475B; border-bottom: 1px solid #F0F4F8; }
.nav-mobile .btn { margin-top: 10px; border-bottom: none; color: #fff; }
.nav-mobile.open { display: flex; }

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero { background: var(--blue); background-image: linear-gradient(160deg, #12629F 0%, #0C4A85 100%); color: #fff; overflow: hidden; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 64px); padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.hero__col { flex: 1 1 420px; min-width: 300px; }
.hero__media { flex: 1 1 380px; min-width: 280px; }
.hero .eyebrow { color: #B9E0AA; margin-bottom: 22px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 20px; }
.hero p { font-size: clamp(17px, 1.8vw, 20px); line-height: 1.55; color: #DCE9F6; max-width: 560px; margin-bottom: 34px; }
.hero__note { display: flex; align-items: center; gap: 10px; margin-top: 34px; font-size: 14px; color: #BFD6EC; }
.hero__note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.hero__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 16px; border: 1px solid rgba(255,255,255,.28); }
.hero--compact .wrap { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.hero--compact h1 { font-size: clamp(30px, 4vw, 46px); }

/* ---------- Média / figures ---------- */
.media-figure { width: 100%; border-radius: 16px; border: 1px solid var(--border); object-fit: cover; background: var(--bg-soft); }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 64px); }
.split__col { flex: 1 1 420px; min-width: 300px; }
.split__media { flex: 1 1 380px; min-width: 280px; }
.split__col h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 18px; color: var(--ink); }
.split__col > p { font-size: 17px; line-height: 1.6; color: var(--muted-2); margin-bottom: 30px; max-width: 520px; }

/* ---------- Liste de bénéfices ---------- */
.benefits { display: flex; flex-direction: column; gap: 20px; }
.benefit { display: flex; gap: 16px; align-items: flex-start; }
.benefit__icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.benefit__icon--blue { background: var(--tint-blue); }
.benefit__icon--green { background: var(--tint-green); }
.benefit h3, .benefit h4 { font-size: 17px; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.benefit p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.glyph-sq { width: 14px; height: 14px; border-radius: 3px; background: var(--blue); }
.glyph-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--green); }
.glyph-di { width: 14px; height: 14px; background: var(--blue); transform: rotate(45deg); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; font-size: 16px; font-weight: 600; color: var(--blue); }

/* ---------- Cartes ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 30px; color: inherit; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--blue); box-shadow: 0 12px 30px rgba(15,92,168,.10); }
.card__ic { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.card__ic--blue { background: var(--tint-blue); }
.card__ic--green { background: var(--tint-green); }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.card p { font-size: 15px; line-height: 1.55; color: var(--muted); margin-bottom: 18px; }
.card__more { margin-top: auto; font-size: 15px; font-weight: 600; color: var(--blue); }
.card--plain:hover { border-color: var(--border); box-shadow: none; }

/* ---------- Piliers (bandes bordées) ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.pillar { padding: 34px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pillar__num { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.05em; color: var(--blue); }
.pillar h3 { font-size: 20px; font-weight: 700; margin: 12px 0 10px; color: var(--ink); }
.pillar p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Partenaires ---------- */
.partners .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 5vw, 64px); padding-top: 40px; padding-bottom: 40px; }
.partners__label { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #5E7084; }
.partners img { height: 30px; width: auto; object-fit: contain; opacity: .78; filter: grayscale(1); transition: opacity .15s, filter .15s; }
.partners img:hover { opacity: 1; filter: none; }
.partners__txt { font-family: 'Manrope', sans-serif; font-size: 22px; font-weight: 800; color: #4A5A6A; }

/* ---------- Bandeau chiffres / CTA foncé ---------- */
.band-dark { background: var(--blue); background-image: linear-gradient(160deg, #12629F 0%, #0C4A85 100%); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; text-align: center; }
.stat__num { font-family: 'Manrope', sans-serif; font-size: clamp(44px, 6vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.stat__num--sm { font-size: clamp(30px, 4vw, 44px); line-height: 1.05; padding-top: 8px; }
.stat p { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #CFE0F2; margin-top: 12px; }

/* ---------- CTA final ---------- */
.cta { text-align: center; max-width: 900px; margin: 0 auto; }
.cta h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 18px; }
.cta p { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 560px; margin: 0 auto 34px; }
.cta .btn-row { justify-content: center; }
.cta--dark h2 { color: #fff; }
.cta--dark p { color: #CFE0F2; }

/* ---------- Tableau ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
table.compare { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 15px; }
table.compare th, table.compare td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--border); }
table.compare thead th { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--bg-soft); }
table.compare td:first-child { font-weight: 600; color: var(--ink); }
table.compare tr:last-child td { border-bottom: none; }

/* ---------- Prose / listes ---------- */
.prose-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.prose-list li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.55; color: var(--muted-2); }
.prose-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--tint-green); border: 4px solid var(--green); box-sizing: border-box; }

/* ---------- Parcours / étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.step__n { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--tint-blue); color: var(--blue); font-family: var(--mono); font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.step h3, .step h4 { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.step p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* ---------- Vidéo embed ---------- */
.video { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Vidéo « clic pour charger » : aucune requête YouTube avant l'action du visiteur (RGPD) */
.video__facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.video__facade img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .15s; }
.video__facade:hover img, .video__facade:focus-visible img { opacity: 1; }
.video__play { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; margin: -27px 0 0 -38px; border-radius: 14px; background: var(--blue); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.video__play::after { content: ""; position: absolute; left: 31px; top: 16px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.video__note { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font: 500 12.5px/1.4 var(--mono); letter-spacing: .04em; text-align: left; }

/* ---------- Encart / callout ---------- */
.callout { border: 1px solid var(--border); border-left: 4px solid var(--green); background: var(--bg-soft); border-radius: 12px; padding: 26px 28px; }
.callout h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.callout p { font-size: 15px; line-height: 1.6; color: var(--muted-2); }

/* ---------- Produits (galerie) ---------- */
.product { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(28px, 5vw, 56px); }
.product:not(:last-child) { margin-bottom: clamp(48px, 6vw, 80px); }
.product--rev { flex-direction: row-reverse; }
.product__media { flex: 1 1 380px; min-width: 280px; }
.product__body { flex: 1 1 420px; min-width: 300px; }
.product__img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.product__body h2, .product__body h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 6px; }
.product__body .kicker { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--green-ink); }
.product__body p { font-size: 16px; line-height: 1.6; color: var(--muted-2); margin: 14px 0 0; }

/* ---------- Formulaire ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .req { color: var(--green-ink); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px; color: var(--ink); padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 9px; background: #fff; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(15,92,168,.12); }
.field textarea { resize: vertical; min-height: 120px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted-2); }
.check input { width: auto; }
.form__note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.form__note a { text-decoration: underline; text-underline-offset: 2px; }
.form-status { display: none; padding: 14px 16px; border-radius: 9px; font-size: 15px; line-height: 1.5; }
.form-status.ok { display: block; background: var(--tint-green); border: 1px solid #bfe0ac; color: #2b5e17; }
.form-status.err { display: block; background: #FCECEC; border: 1px solid #f2c4c4; color: #8a2b2b; }
.path-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 18px; border: 1px solid var(--border); border-left: 3px solid var(--green); border-radius: 10px; background: var(--bg-soft); font-size: 14.5px; line-height: 1.5; color: var(--muted-2); margin-bottom: 28px; }
.path-switch a { font-weight: 600; white-space: nowrap; }
.contact-aside { display: flex; flex-direction: column; gap: 22px; }
.contact-card--urgence { border-color: var(--green); border-left: 4px solid var(--green); background: var(--tint-green); }
.contact-card--urgence a.tel-strong { font-family: var(--mono); font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.contact-card { border: 1px solid var(--border); border-radius: 14px; padding: 26px; }
.contact-card h2, .contact-card h3 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.contact-card a, .contact-card p { font-size: 16px; line-height: 1.7; color: var(--ink); }

@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #B7C4D2; }
.site-footer__top { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; padding-top: clamp(48px, 6vw, 72px); padding-bottom: 40px; }
.site-footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.site-footer__brand .flogo { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: #fff; border-radius: 10px; padding: 6px; flex-shrink: 0; }
.site-footer__brand .flogo img { width: 100%; height: 100%; object-fit: contain; }
.site-footer__brand b { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 20px; color: #fff; }
.site-footer p.desc { font-size: 14.5px; line-height: 1.6; color: #8FA0B2; max-width: 280px; }
.site-footer h2, .site-footer h4 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer .fcol { display: flex; flex-direction: column; gap: 10px; }
.site-footer .fcol a, .site-footer .fcol span { font-size: 14.5px; color: #B7C4D2; line-height: 1.5; }
.site-footer .fcol a:hover { color: #fff; }
.site-footer .muted { color: #8FA0B2; }
.site-footer__bar { border-top: 1px solid #1C3A54; }
.site-footer__bar .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; font-size: 13px; color: #7788A0; }

/* Page mentions légales */
.legal { max-width: 780px; }
.legal h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; letter-spacing: -0.01em; color: var(--ink); margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p { font-size: 16px; line-height: 1.65; color: var(--muted-2); margin: 0 0 12px; }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.legal .prose-list { margin: 14px 0 0; }
.legal .legal__date { margin-top: 40px; font-size: 14px; color: var(--muted); }
.site-footer__bar a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.site-footer__bar a:hover { color: #fff; }
