/* Transfolabs — direction « Le parcours », palette B (bleu) */
:root {
  --bg: #F4F7FC;
  --ink: #0B1F4B;
  --pale: #D9E6FF;
  --accent: #1F4FD8;
  --text: #445068;
  --muted: #6B7280;
  --white: #FFFFFF;
  --line: #DCE3F0;
  --radius: 24px;
  --font: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
h1, h2, h3, .display { font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 0; }
h1 em, h2 em { font-style: italic; }
p { margin: 0; }
.wrap { width: min(1248px, 100% - 48px); margin-inline: auto; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--accent); }
.muted { color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 58px; padding: 0 30px; border-radius: 999px; font-family: var(--font); font-size: 16px; font-weight: 700; cursor: pointer; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--accent); color: var(--white); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--white); }
.btn-small { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-pale { background: var(--pale); color: var(--ink); }
.btn-pale:hover { background: var(--white); color: var(--ink); }
.tag { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 500; transition: background .2s, color .2s; }
.tag:hover { background: var(--ink); color: var(--white); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 100; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244,247,252,0.92); backdrop-filter: blur(10px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 88px; }
.brand img { height: 40px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.lang { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.lang svg, .lang-footer svg { display: block; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle svg { display: block; margin: auto; }

/* Hero */
.hero { padding: 88px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(38px, 5vw, 72px); line-height: 1.02; text-wrap: pretty; }
.hero-copy .lead { font-size: 21px; max-width: 640px; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 440px; height: auto; }

/* Logos */
.logos { padding: 32px 0 72px; }
.logos .eyebrow { display: block; text-align: center; color: var(--text); margin-bottom: 28px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 40px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: 0.65; flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 104px 0; }
.band { background: var(--pale); border-radius: 120px 0 0 0; }
.band-inner { will-change: transform; }
.section-head { display: grid; grid-template-columns: 6fr 6fr; gap: 48px; align-items: end; margin-bottom: 40px; }
.section-head .title { display: flex; flex-direction: column; gap: 14px; }
.section-head h2, .centered h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.05; text-wrap: pretty; }
.section-head p, .centered p { font-size: 17px; line-height: 1.55; color: var(--text); }
.centered { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; margin-bottom: 48px; }
.centered h2 { max-width: 820px; }
.centered p { max-width: 680px; font-size: 18px; }
.centered .eyebrow { color: var(--ink); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.step { display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; background: var(--white); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s; }
.step:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(11,31,75,0.08); }
.step h3 { font-size: 22px; line-height: 1.25; }
.step p { font-size: 15px; line-height: 1.55; color: var(--text); }
.step .kw { font-size: 13px; color: var(--accent); font-weight: 500; }
.step svg { display: block; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }

/* Réalisations */
.cases { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; align-items: start; }
.case-main { position: sticky; top: 112px; }
.case-main { display: flex; flex-direction: column; gap: 20px; padding: 40px; background: var(--ink); color: var(--white); border-radius: var(--radius); }
.case-main .eyebrow { color: var(--pale); font-size: 13px; }
.case-main h3 { font-size: 32px; line-height: 1.12; color: var(--white); }
.case-main p { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,0.8); }
.case-main .tag { border-color: rgba(255,255,255,0.4); color: var(--white); }
.case-main .tag:hover { background: var(--white); color: var(--ink); }
.case-main .more { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--pale); }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.case { display: flex; flex-direction: column; gap: 12px; padding: 32px; background: var(--white); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s; }
.case:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(11,31,75,0.08); }
.case .eyebrow { font-size: 13px; }
.case h3 { font-size: 21px; line-height: 1.25; }
.case p { font-size: 14px; line-height: 1.5; color: var(--text); }
.case .tags { gap: 6px; margin-top: auto; }
.case .tag { height: 28px; font-size: 12px; }

/* Témoignages */
.quote { display: flex; flex-direction: column; gap: 20px; padding: 32px; background: var(--white); border-radius: var(--radius); margin: 0; }
.quote.featured { background: var(--pale); }
.quote blockquote { margin: 0; font-size: 16px; line-height: 1.6; }
.quote figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.quote figcaption strong { font-size: 15px; font-weight: 700; }
.quote figcaption span { font-size: 14px; color: var(--muted); }
.press { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 20px; padding: 20px 28px; background: var(--white); border-radius: 18px; font-size: 15px; color: var(--text); }
.press a { margin-left: auto; font-weight: 700; color: var(--accent); }

/* Cabinet */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.split .title { display: flex; flex-direction: column; gap: 20px; }
.split h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; text-wrap: pretty; }
.split .links { display: flex; flex-wrap: wrap; gap: 24px; font-weight: 700; }
.split .links a { color: var(--accent); }
.certs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cert { display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; background: var(--white); border-radius: var(--radius); }
.cert .display { font-size: 28px; }
.cert p { font-size: 14px; line-height: 1.5; color: var(--text); }

/* Contact */
.contact-info { display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--text); }
.form { display: flex; flex-direction: column; gap: 20px; padding: 40px; background: var(--white); border-radius: 28px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-family: var(--font); font-size: 15px; color: var(--ink); }
.field textarea { height: 140px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); background: var(--white); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-foot small { font-size: 13px; color: var(--muted); }
.form-foot small a { color: var(--accent); }
.form-status { font-size: 15px; font-weight: 700; color: var(--accent); min-height: 1.4em; }
.form-status.error { color: #B42318; }
.honeypot { position: absolute; left: -9999px; }

/* FAQ et pages internes */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.faq-list details { background: var(--white); border-radius: 18px; padding: 0 28px; }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-weight: 700; font-size: 18px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 24px; color: var(--accent); flex: none; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { padding: 0 0 22px; color: var(--text); }
.page-head { padding: 80px 0 48px; }
.page-head h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.04; }
.page-head p { margin-top: 20px; max-width: 760px; font-size: 19px; color: var(--text); }
.prose { max-width: 820px; color: var(--text); }
.prose h2 { font-size: 26px; margin: 40px 0 12px; }
.prose p, .prose li { margin-bottom: 12px; }

/* CTA */
.cta { background: var(--ink); color: var(--white); padding: 96px 0; }
.cta .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
.cta blockquote { margin: 0; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; font-weight: 500; color: var(--white); }
.cta blockquote span { display: block; margin-top: 20px; font-size: 15px; font-weight: 400; color: rgba(255,255,255,0.7); }
.cta .title { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.cta h2 { font-size: clamp(30px, 3vw, 40px); line-height: 1.1; color: var(--white); }
.cta.simple .wrap { grid-template-columns: 8fr 4fr; }
.cta.simple .actions { display: flex; justify-content: flex-end; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.72); padding: 56px 0; font-size: 14px; border-top: 1px solid rgba(255,255,255,0.12); }
.site-footer .wrap { display: grid; grid-template-columns: 5fr 2fr 3fr 2fr; gap: 32px; }
.site-footer .col { display: flex; flex-direction: column; gap: 8px; }
.site-footer strong { color: var(--white); font-weight: 700; }
.site-footer a { color: rgba(255,255,255,0.72); }
.site-footer a:hover { color: var(--white); }
.site-footer .brand-name { font-size: 18px; font-weight: 700; color: var(--white); }
.lang-footer { display: flex; gap: 8px; }
.lang-footer a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25); color: var(--white); font-weight: 700; font-size: 13px; }
.lang-footer a.current { background: rgba(255,255,255,0.14); border-color: transparent; }
.col.right { align-items: flex-end; }

/* Mouvement */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }
.hero-copy > * { opacity: 0; transform: translateY(14px); animation: rise .8s var(--ease) forwards; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .15s; }
.hero-copy > *:nth-child(3) { animation-delay: .3s; }
.hero-copy > *:nth-child(4) { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.path-line { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 1.6s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.node { opacity: 0; transform-origin: center; transform-box: fill-box; transform: scale(.6); animation: pop .5s var(--ease) forwards; }
.node:nth-of-type(1) { animation-delay: .4s; } .node:nth-of-type(2) { animation-delay: .8s; } .node:nth-of-type(3) { animation-delay: 1.2s; } .node:nth-of-type(4) { animation-delay: 1.6s; }
@keyframes pop { to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-copy > *, .node { opacity: 1; transform: none; animation: none; transition: none; }
  .path-line { stroke-dashoffset: 0; animation: none; }
  .marquee-track { animation: none; }
  .band-inner { transform: none !important; }
}

/* Responsive */
@media (max-width: 1024px) {
  .case-main { position: static; }
  .hero .wrap, .section-head, .split, .cta .wrap, .cta.simple .wrap, .cases { grid-template-columns: 1fr; }
  .cta.simple .actions { justify-content: flex-start; }
  .grid-4, .grid-3, .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .col.right { align-items: flex-start; }
  .band { border-radius: 64px 0 0 0; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 360px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header .wrap { height: 72px; }
  .brand img { height: 32px; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; display: none; }
  .nav.open { display: flex; }
  .nav a, .nav .lang { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .lang { border: 0; }
  .nav .btn { margin-top: 12px; }
  .nav-toggle { display: block; }
  .hero { padding: 40px 0 40px; }
  .hero-copy .lead { font-size: 18px; }
  .hero-art { display: none; }
  .section { padding: 64px 0; }
  .grid-4, .grid-3, .grid-2, .certs, .form-row, .case-grid { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .band { border-radius: 40px 0 0 0; }
  .case-main { padding: 28px; }
  .case-main h3 { font-size: 26px; }
}
