/* Page d'accueil */

.home { position: relative; z-index: 0; }
.section { padding-top: 104px; padding-bottom: 104px; }
.section-head { max-width: 680px; }

/* ---------- Fond scientifique animé ---------- */
.sci-layer {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; opacity: .55;
  background-image: linear-gradient(rgba(11,92,122,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(11,92,122,.045) 1px, transparent 1px);
  background-size: 32px 32px;
}
.sci { position: absolute; display: block; }
@keyframes floatA { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(18px,-26px) rotate(14deg); } }
@keyframes floatB { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(-22px,20px) rotate(-12deg); } }
@keyframes rise { 0% { transform: translateY(40px); opacity: 0; } 20%, 80% { opacity: 1; } 100% { transform: translateY(-120px); opacity: 0; } }
.fA { animation: floatA 14s ease-in-out infinite; }
.fB { animation: floatB 17s ease-in-out infinite; }
.rise { animation: rise 12s ease-in-out infinite; font-family: var(--font-display); font-weight: 700; color: rgba(11,92,122,.22); font-size: 22px; white-space: nowrap; }

/* ---------- Barre de progression, en-tête, bouton flottant ---------- */
.scrollbar { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 50; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  display: flex; align-items: center; gap: 10px; border-radius: 999px; padding: 15px 22px;
  box-shadow: 0 10px 30px rgba(11,92,122,.35);
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes shade { from { box-shadow: none; } to { box-shadow: 0 8px 28px rgba(14,36,51,.12); } }
@keyframes fabIn { from { opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none; } to { opacity: 1; transform: none; } }
@supports (animation-timeline: scroll()) {
  .scrollbar { animation: grow linear both; animation-timeline: scroll(root); }
  .home .site-header { animation: shade linear both; animation-timeline: scroll(root); animation-range: 0 160px; }
  .fab { animation: fabIn linear both; animation-timeline: scroll(root); animation-range: 500px 700px; }
}
@keyframes up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  .reveal { animation: up linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
}

/* ---------- Bandeau d'information ---------- */
.notice { background: var(--warn-bg); border-bottom: 1px solid var(--warn-line); color: var(--warn-text); }
.notice .wrap { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.notice p { margin: 0; flex: 1; font-size: 15px; line-height: 1.45; }
.notice strong { font-family: var(--font-display); }
.notice a { color: var(--warn-text); font-weight: 600; }
.notice-close { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: transparent; border: 0; border-radius: 10px; cursor: pointer; }
/* 9 liens + logo pleine taille : barre un peu plus large et liens un peu plus serrés */
.home .site-header .wrap { max-width: 1280px; }
.home .site-header .navlinks { gap: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--white); }
.hero .wrap { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 96px; padding-bottom: 150px; }
.hero-copy { flex: 1 1 520px; min-width: 0; }
.hero-kicker { margin: 0 0 18px; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--sky); }
.hero h1 { font-size: 56px; line-height: 1.08; letter-spacing: -1.2px; }
/* Les trois mots sont empilés dans la même case : la case prend la taille du plus long,
   donc le titre ne change jamais de taille quand le mot change. */
.hero-word { display: inline-grid; max-width: 100%; vertical-align: top; color: var(--sky); }
.hero-word > span { grid-area: 1 / 1; visibility: hidden; }
.hero-word > span.is-on { visibility: visible; }
.hero-word .comma { color: var(--white); }
.hero-lead { margin: 24px 0 0; font-size: 20px; color: var(--on-dark); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-visual {
  flex: 1 1 380px; min-width: 0; height: 420px; border-radius: 24px; overflow: hidden; position: relative;
  background: #17384C; box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.hero-visual svg { position: absolute; inset: 0; display: block; }
.hero-visual .caption { position: absolute; left: 14px; bottom: 14px; background: rgba(14,36,51,.82); color: var(--on-dark); font-size: 12px; padding: 6px 10px; border-radius: 8px; }
.waves { position: absolute; left: 0; right: 0; bottom: -2px; height: 90px; overflow: hidden; pointer-events: none; }
.waves svg { position: absolute; left: 0; bottom: 0; }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.wave { animation: wave 14s linear infinite; }
.wave2 { animation: wave 22s linear infinite reverse; opacity: .35; }
.hero-in { animation: up .9s cubic-bezier(.2,.7,.2,1) both; }
.d1 { animation-delay: .12s; } .d2 { animation-delay: .24s; } .d3 { animation-delay: .36s; }
@keyframes swap { from { opacity: 0; transform: translateY(.35em); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.swap { animation: swap .6s cubic-bezier(.2,.7,.2,1) both; }

/* ---------- Chiffres ---------- */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.stat { text-align: center; }
.stat-value { font-family: var(--font-display); font-weight: 800; font-size: 44px; color: var(--primary); letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 15px; color: var(--muted); }
.stats-note { margin: -28px auto 0; padding-bottom: 28px; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- Analyses (onglets) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.tabpanel { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 40px; border-radius: 24px; padding: 44px; }
.tabpanel-copy { flex: 1 1 420px; min-width: 0; }
.tabpanel h3 { font-size: 28px; letter-spacing: -.4px; }
.tabpanel-copy p { margin: 14px 0 0; color: var(--text-2); }
.tabpanel-copy .btn { margin-top: 26px; }
.checklist { flex: 1 1 300px; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; background: var(--bg); border-radius: 14px; padding: 14px 16px; }
.checklist svg { flex: none; margin-top: 2px; }

/* ---------- Legiolab ---------- */
.legiolab { background: var(--red-bg); }
.legiolab .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.legiolab-copy { flex: 1 1 460px; min-width: 0; }
.legiolab .kicker { margin: 0 0 10px; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--red); }
.legiolab-copy > p { margin: 18px 0 0; color: var(--red-text); }
.legio-steps { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.legio-step { display: flex; gap: 14px; align-items: flex-start; }
.legio-step p { margin: 3px 0 0; color: var(--red-text); }
.legio-step strong { color: var(--ink); }
.num {
  flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 15px;
}
.num-outline { background: var(--white); border: 2px solid var(--red); color: var(--red); }
.legio-cards { flex: 1 1 380px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.legio-card { background: var(--white); border-radius: 18px; padding: 24px; color: var(--red-text); }
.legio-card .big { font-family: var(--font-display); font-weight: 800; font-size: 36px; color: var(--red); }
.legio-card .mid { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); }
.legio-card.wide { grid-column: span 2; }

/* ---------- Parcours ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 40px; }
.step {
  text-align: left; cursor: pointer; border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
  border-radius: 18px; padding: 22px;
}
.step .n { display: block; font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--primary); }
.step .t { display: block; font-family: var(--font-display); font-weight: 800; font-size: 20px; margin-top: 6px; }
.step[aria-pressed="true"] { border-color: var(--primary); background: var(--primary); color: var(--white); transform: none; box-shadow: none; }
.step[aria-pressed="true"] .n { color: #A9DCEC; }
.progress { margin-top: 16px; height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; }
.progress > div { height: 100%; background: var(--primary); transition: width .4s ease; }
/* Les 4 textes sont empilés dans la même case : elle prend la hauteur du plus long,
   donc la page ne bouge pas quand l'étape change. */
.step-text { display: grid; margin: 22px 0 0; max-width: 760px; font-size: 19px; }
.step-text > p { grid-area: 1 / 1; margin: 0; visibility: hidden; }
.step-text > p.is-on { visibility: visible; }

/* ---------- Prélèvement ---------- */
.sampling { padding-top: 24px; }
.two-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 40px; }
.offer { border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.offer h3 { font-size: 24px; }
.offer > p { margin: 0; color: var(--text-2); }
.offer > .btn { margin-top: auto; align-self: flex-start; padding: 13px 20px; }
.offer-dark { background: var(--primary); color: var(--white); }
.offer-dark > p, .offer-dark ul { color: var(--on-primary); }
.offer-dark ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.offer-dark li { display: flex; gap: 10px; }
.offer-dark li svg { flex: none; margin-top: 3px; }
.offer-dark strong { color: var(--white); }
.offer-dark .btn { background: var(--white); color: var(--primary); }
.kit-lines { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.kit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--bg); border-radius: 16px; padding: 14px 16px; }
.kit-row.red { background: var(--red-bg); }
.kit-row .what { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; }
.stepper { flex: none; }
@media (max-width: 480px) { .kit-row { flex-wrap: wrap; } }
.kit-row .what svg { flex: none; }
.kit-row .name { font-weight: 600; }
.kit-row .desc { font-size: 14px; color: var(--muted); }
.kit-row.red .desc { color: var(--red-text); }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button {
  width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--white);
  color: var(--primary); font-size: 22px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.stepper input {
  width: 64px; height: 44px; text-align: center; border: 1.5px solid var(--border); border-radius: 12px;
  font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--ink); background: var(--white);
}
.kit-note { margin: 0; font-size: 15px; color: var(--text-2); }
.kit-summary { background: #E9F4F7; border-radius: 14px; padding: 14px 16px; }
.kit-summary p { margin: 0; }
.kit-summary .line { margin-top: 4px; color: var(--text-2); font-size: 15px; }
.kit-return { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.kit-return svg { flex: none; margin-top: 2px; }

/* ---------- Accréditations ---------- */
.accred-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 36px; }
.accred { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.accred .logo-ph { height: 72px; border-radius: 12px; border: 1.5px dashed var(--border); background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
.accred .name { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.accred a { margin-top: auto; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* ---------- Références ---------- */
.clients { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; overflow: hidden; }
.clients-title { margin: 0 auto 28px; text-align: center; font-family: var(--font-display); font-weight: 700; color: var(--muted); }
.marquee-box { overflow: hidden; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee { display: flex; gap: 20px; width: max-content; animation: drift 60s linear infinite; margin: 0; padding: 0; list-style: none; }
.marquee:hover { animation-play-state: paused; }
.logo-tile {
  width: 200px; height: 84px; border-radius: 14px; background: var(--white); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; padding: 6px; opacity: .75;
  transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease;
}
.logo-tile:hover { opacity: 1; transform: translateY(-3px); box-shadow: 0 10px 24px rgba(14,36,51,.10); }
.logo-tile img { width: 180px; height: 72px; object-fit: contain; display: block; }

/* ---------- Publications ---------- */
.pubs-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.pubs-head > div { max-width: 640px; }
.pub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 40px; }
.pub-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); overflow: hidden; }
.pub-card:hover { color: var(--ink); }
.pub-card .placeholder-img { height: 170px; }
.pub-card .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pub-card .tag { align-self: flex-start; font-size: 13px; padding: 5px 10px; }
.pub-card .title { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1.3; }
.pub-card .meta { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; font-size: 14px; color: var(--muted); }
.pub-card .meta strong { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { background: var(--white); border-top: 1px solid var(--line); }
.faq .wrap { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 96px; padding-bottom: 96px; }
.faq-head { flex: 1 1 300px; min-width: 0; }
.faq-list { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.faq-item h3 { font-size: inherit; font-weight: inherit; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left;
  background: transparent; border: 0; padding: 20px 22px; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink);
}
.faq-q .icon { font-size: 26px; color: var(--primary); line-height: 1; }
.faq-a { margin: 0; padding: 0 22px 22px; color: var(--text-2); }

/* ---------- Nous trouver ---------- */
.find { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 40px; }
.map { flex: 3 1 460px; min-width: 0; position: relative; min-height: 400px; border-radius: 24px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
.map svg.bg { position: absolute; inset: 0; }
.map .pin { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; }
.map .pin-label { background: var(--ink); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 10px; white-space: nowrap; margin-bottom: 8px; }
.map .pin-shadow { width: 14px; height: 6px; border-radius: 50%; background: rgba(11,92,122,.4); margin-top: -2px; }
.map .map-note { position: absolute; left: 16px; bottom: 12px; margin: 0; font-size: 13px; color: var(--muted); }
.info-cards { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.info-card { padding: 24px; display: flex; gap: 16px; }
.info-card svg { flex: none; margin-top: 2px; }
.info-card .label { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.info-card .text { color: var(--text-2); }
.hours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; margin-top: 6px; color: var(--text-2); font-size: 16px; }

/* ---------- Devis ---------- */
.quote { background: var(--primary); color: var(--white); }
.quote .wrap { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 96px; padding-bottom: 96px; }
.quote-copy { flex: 1 1 360px; min-width: 0; }
.quote-copy > p { margin: 18px 0 0; color: var(--on-primary); }
.quote-contacts { margin-top: 32px; display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.quote-contacts a { color: var(--white); }
.quote-contacts span { color: var(--on-primary); }
.quote-box { flex: 1 1 440px; min-width: 0; background: var(--white); color: var(--ink); border-radius: 24px; padding: 36px; }
.quote-form { display: flex; flex-direction: column; gap: 16px; }
.quote-form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.quote-form .btn { padding: 16px; font-size: 16px; }
.quote-thanks { text-align: center; padding: 40px 0; }
.quote-thanks .title { font-family: var(--font-display); font-weight: 800; font-size: 26px; }
.quote-thanks p { margin: 10px 0 0; color: var(--muted); }
.quote-thanks .btn { margin-top: 20px; padding: 12px 20px; }

/* La navigation de l'accueil a plus de liens : bascule plus tôt vers le menu burger */
@media (max-width: 1240px) {
  .home .navlinks { display: none; }
  .home .burger { display: flex; }
  .home .mobile-menu:not([hidden]) { display: flex !important; }
}

@media (max-width: 820px) {
  .sci-hide-sm { display: none; }
  .hero h1 { font-size: 38px; }
  .tabpanel, .quote-box { padding: 24px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
}
