/* BSCI 2026 — page d'accueil */
:root {
  --ink: #0C1B33;
  --ink-deep: #081326;
  --cobalt: #1F4E8C;
  --sky: #9DBCE6;
  --signal: #C8363A;
  --graphite: #303236;
  --porcelain: #F3F5F8;
  --paper: #FFFFFF;
  --text: #14202F;
  --muted: #56657A;
  --line: #D7DEE7;
  --line-dark: rgba(255, 255, 255, .14);
  --wrap: 1280px;
  --gut: clamp(20px, 4vw, 56px);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--display); font-variation-settings: "wdth" 100; font-size: 17px; line-height: 1.6; color: var(--text); background: var(--porcelain); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 6px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* Typographie : la largeur d'Archivo porte la hiérarchie */
.display, h1, h2, h3 { font-family: var(--display); margin: 0; }
h1 { font-variation-settings: "wdth" 110; font-weight: 800; font-size: clamp(30px, 3.4vw, 54px); line-height: 1.04; letter-spacing: -.018em; }
h2 { font-variation-settings: "wdth" 112; font-weight: 800; font-size: clamp(34px, 4.2vw, 64px); line-height: 1; letter-spacing: -.02em; }
h3 { font-variation-settings: "wdth" 108; font-weight: 700; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }
.lead { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.on-dark .lead, .on-dark p { color: #B9C7DA; }
.kicker { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 600; color: var(--signal); margin-bottom: 22px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.on-dark .kicker { color: #F08B8E; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.btn-red { background: var(--signal); color: #fff; }
.btn-red:hover { background: #AE2C30; }
.btn-line { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-line:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--cobalt); }
.btn:active { transform: scale(.98); }

/* En-tête */
.site-head { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; transition: background-color .35s ease, box-shadow .35s ease, color .35s ease; }
.site-head.is-solid { background: rgba(255, 255, 255, .97); color: var(--text); box-shadow: 0 1px 0 var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.brand { display: flex; align-items: center; }
.brand img { height: 46px; width: auto; }
.brand .logo-light { display: none; }
.site-head:not(.is-solid) .brand .logo-dark { display: none; }
.site-head:not(.is-solid) .brand .logo-light { display: block; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; opacity: .86; transition: opacity .2s ease; }
.nav a:hover { opacity: 1; }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid currentColor; border-color: rgba(127, 140, 160, .45); font-size: 13px; font-weight: 700; }
.lang a { padding: 5px 10px; border-radius: 999px; text-decoration: none; opacity: .75; }
.lang a[aria-current] { background: var(--signal); color: #fff; opacity: 1; }
.head-cta { min-height: 44px; padding: 0 20px; font-size: 15px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(127, 140, 160, .45); background: transparent; color: inherit; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; transition: transform .25s ease, opacity .25s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Bandeau d'accueil */
.hero { position: relative; min-height: 100svh; background: var(--ink); color: #fff; overflow: hidden; display: flex; flex-direction: column; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(50% 70% at 26% 50%, rgba(31, 78, 140, .6), transparent 70%),
  radial-gradient(26% 36% at 18% 32%, rgba(200, 54, 58, .18), transparent 70%),
  linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .5; background-image: url(../images/fond-tissage.jpg); background-size: cover; background-position: center; mix-blend-mode: soft-light; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 32px; padding-top: 120px; padding-bottom: 48px; }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; max-width: 560px; justify-self: center; grid-column: 2; grid-row: 1; }
.hero-copy .lead { max-width: 46ch; font-size: clamp(16px, 1.15vw, 18px); }
.hero-actions { justify-content: center; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: block; }
.hero .lead { color: #B9C7DA; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.mark3d { position: relative; z-index: 1; grid-column: 1; grid-row: 1; height: min(74vh, 680px); min-height: 380px; margin-left: -6%; }
.mark3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 1.2s ease .2s; }
.mark3d.is-ready canvas { opacity: 1; }
.mark3d .mark-fallback { position: absolute; inset: 18%; width: 64%; height: auto; margin: auto; opacity: 0; transition: opacity .6s ease; }
.mark3d.is-fallback .mark-fallback { opacity: 1; }
.hero-foot { position: relative; z-index: 1; border-top: 1px solid var(--line-dark); }
.hero-foot ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero-foot li + li { border-left: 1px solid var(--line-dark); }
.hero-foot a { display: flex; flex-direction: column; gap: 2px; padding: 22px 24px 26px 0; text-decoration: none; transition: color .2s ease; }
.hero-foot li + li a { padding-left: 24px; }
.hero-foot strong { font-variation-settings: "wdth" 112; font-size: 18px; font-weight: 700; }
.hero-foot span { font-size: 14px; color: #8EA2BD; }
.hero-foot a:hover strong { color: #F08B8E; }

/* Sections */
.section { padding: clamp(88px, 10vw, 148px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .lead { justify-self: end; }
.on-dark { background: var(--ink); color: #fff; }

/* Services : cartes séparées en carrousel */
.services { background: var(--porcelain); overflow: hidden; }
.svc-slider { position: relative; }
.svc-track { list-style: none; margin: 0 calc(var(--gut) * -1); padding: 8px var(--gut) 24px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); scrollbar-width: none; overscroll-behavior-x: contain; }
.svc-track::-webkit-scrollbar { display: none; }
.svc, .prj { position: relative; flex: 0 0 calc((100% - 2 * var(--gut) - 48px) / 4); scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; min-height: 330px; padding: 22px 20px 20px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s ease, transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease; }
.svc::before, .prj::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--cobalt); transform: scaleX(.18); transform-origin: 0 50%; transition: transform .5s cubic-bezier(.2, .7, .2, 1), background-color .3s ease; }
.svc:nth-child(3)::before, .svc:nth-child(6)::before { background: var(--signal); }
.svc:hover, .prj:hover { border-color: #C3CEDC; box-shadow: 0 24px 48px -24px rgba(12, 27, 51, .28); }
/* Cartes 3D : profondeur au défilement et inclinaison sous le pointeur */
.svc-track { perspective: 1400px; }
.svc, .prj { transform-style: preserve-3d; transform: perspective(1100px) rotateY(calc(var(--ry, 0deg) + var(--ty, 0deg))) rotateX(var(--tx, 0deg)) translateZ(var(--tz, 0px)) translateY(var(--lift, 0px)); will-change: transform; background: linear-gradient(160deg, #FFFFFF 0%, #FFFFFF 55%, #EEF2F8 100%); box-shadow: 0 1px 0 rgba(12, 27, 51, .04), 0 18px 40px -28px rgba(12, 27, 51, .35); }
.svc.is-tilting, .prj.is-tilting { transition: border-color .3s ease, box-shadow .4s ease; }
.svc:hover, .prj:hover { --lift: -6px; }
.svc > *, .prj > * { transform: translateZ(0); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.svc:hover .svc-ico { transform: translateZ(60px); }
.svc:hover h3 { transform: translateZ(40px); }
.svc:hover p { transform: translateZ(20px); }
.svc:hover .svc-logos, .svc:hover .svc-tags { transform: translateZ(30px); }
.svc::after, .prj::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .75), rgba(157, 188, 230, .12) 40%, transparent 65%); mix-blend-mode: soft-light; }
.svc:hover::after, .prj:hover::after { opacity: 1; }
.svc-ico { box-shadow: 0 10px 24px -12px rgba(31, 78, 140, .5); background: linear-gradient(145deg, #FFFFFF, #E6EEF8); }
.svc:hover::before, .prj:hover::before { transform: scaleX(1); }
.svc-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--porcelain); color: var(--cobalt); flex: none; }
.svc h3, .prj h3 { font-size: clamp(17px, 1.35vw, 20px); }
.svc p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.svc-logos, .svc-tags { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.svc-logos img { height: 34px; width: auto; max-width: 64px; object-fit: contain; padding: 6px 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.svc-tags span, .prj-tags span { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--porcelain); color: var(--cobalt); }
.svc-bar { display: flex; align-items: center; gap: 24px; margin-top: 16px; }
.svc-count { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 48px; }
.svc-count b { color: var(--text); }
.svc-progress { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.svc-progress span { display: block; height: 100%; width: 0; background: var(--text); transition: width .3s ease; }
.svc-nav { display: flex; gap: 10px; }
.svc-btn { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--text); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background-color .2s ease, color .2s ease, opacity .2s ease; }
.svc-btn:hover:not(:disabled) { background: var(--text); color: #fff; }
.svc-btn:disabled { opacity: .3; cursor: default; }

/* Cartes projets : logos en noir et blanc, en couleur à l'activation */
.prj-slider { margin-top: 8px; }
.prj { border-radius: 24px; background: linear-gradient(160deg, #FFFFFF 0%, #FFFFFF 55%, #EEF2F8 100%); border: 1px solid var(--line); overflow: hidden; min-height: 0; gap: 18px; cursor: default; }
.prj:nth-child(4n+2)::before { background: var(--signal); }
.prj:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.prj-logo { height: 150px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; padding: 20px; }
.prj-logo img { max-height: 96px; max-width: 100%; object-fit: contain; }
.prj-mono { font-variation-settings: "wdth" 120; font-weight: 800; font-size: 44px; letter-spacing: -.02em; color: var(--cobalt); }
.prj-std { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.prj-std img { height: 38px; width: auto; max-width: 72px; object-fit: contain; padding: 4px 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.prj-logo img, .prj-mono, .prj-std img { filter: grayscale(1) contrast(1.05); opacity: .7; transition: filter .45s ease, opacity .45s ease, transform .4s cubic-bezier(.2, .7, .2, 1); }
.prj:hover .prj-logo img, .prj:hover .prj-mono, .prj:hover .prj-std img,
.prj:focus-within .prj-logo img, .prj:focus-within .prj-mono, .prj:focus-within .prj-std img,
.prj.is-active .prj-logo img, .prj.is-active .prj-mono, .prj.is-active .prj-std img { filter: none; opacity: 1; }
.prj:hover .prj-logo, .prj.is-active .prj-logo { transform: translateZ(50px); }
.prj:hover .prj-std, .prj.is-active .prj-std { transform: translateZ(26px); }

/* Carrousels Approche et Secteurs : 3 cartes visibles */
.approche, .secteurs { overflow: hidden; }
.stp, .sec { position: relative; flex: 0 0 calc((100% - 2 * var(--gut) - 32px) / 3); scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; border-radius: 24px; overflow: hidden; transform-style: preserve-3d; transform: perspective(1100px) rotateY(calc(var(--ry, 0deg) + var(--ty, 0deg))) rotateX(var(--tx, 0deg)) translateZ(var(--tz, 0px)) translateY(var(--lift, 0px)); will-change: transform; transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease; }
.stp.is-tilting, .sec.is-tilting { transition: box-shadow .4s ease; }
.stp:hover, .sec:hover { --lift: -6px; }
.stp > *, .sec > * { transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.stp::after, .sec::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .55), transparent 60%); mix-blend-mode: soft-light; }
.stp:hover::after, .sec:hover::after { opacity: 1; }
.stp { min-height: 320px; padding: 28px 26px; background: linear-gradient(160deg, #FFFFFF 0%, #FFFFFF 55%, #EEF2F8 100%); border: 1px solid var(--line); box-shadow: 0 18px 40px -28px rgba(12, 27, 51, .35); }
.stp-num { font-variation-settings: "wdth" 125; font-weight: 800; font-size: clamp(56px, 5.4vw, 84px); line-height: 1; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.5px var(--cobalt); margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.stp:last-child .stp-num { -webkit-text-stroke: 0; color: var(--signal); }
.stp p { color: var(--muted); font-size: 15px; }
.stp:hover .stp-num { transform: translateZ(50px); }
.stp:hover h3 { transform: translateZ(30px); }
.sec { height: clamp(320px, 32vw, 420px); color: #fff; padding: 26px; justify-content: flex-end; isolation: isolate; box-shadow: 0 24px 48px -28px rgba(8, 19, 38, .6); }
.sec .art { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center top; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.sec:hover .art { transform: scale(1.06); }
.sec h3 { font-size: 23px; }
.sec p { font-size: 15px; color: rgba(255, 255, 255, .85); }
.sec:hover h3 { transform: translateZ(40px); }
.sec:hover p { transform: translateZ(24px); }
.trio + .note { margin-top: 48px; }

/* Partenaires */
.partenaires { background: var(--paper); overflow: hidden; }
.ptn { gap: 14px; }
.ptn .prj-logo { height: 140px; }
.ptn .prj-logo img { max-height: 92px; }
.ptn-type { font-size: 14px; font-weight: 600; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); }
.ptn:hover .ptn-type, .ptn.is-active .ptn-type { color: var(--cobalt); }

/* Carte BSCI Écoute */
.svc-feature { background: linear-gradient(160deg, #13284A 0%, var(--ink) 60%, var(--ink-deep) 100%) !important; border-color: var(--ink) !important; color: #fff; }
.svc-feature::before { background: var(--signal) !important; }
.svc-feature .svc-ico { background: linear-gradient(145deg, #C8363A, #9E2329); color: #fff; box-shadow: 0 10px 24px -10px rgba(200, 54, 58, .7); }
.svc-feature p { color: #B9C7DA; }
.svc-feature .svc-tags { border-top-color: var(--line-dark); }
.svc-feature .svc-tags span { background: rgba(255, 255, 255, .08); color: #fff; }
.svc-new { position: absolute; top: 24px; right: 22px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--signal); color: #fff; }
.svc-link { font-size: 15px; font-weight: 700; color: #F08B8E; text-decoration: none; }
.svc-link:hover { color: #fff; text-decoration: underline; }
.svc-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* (ancien bloc BSCI Écoute, non utilisé) */
.ecoute { margin-top: clamp(56px, 7vw, 96px); position: relative; overflow: hidden; border-radius: 28px; background: var(--ink); color: #fff; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.ecoute-copy { padding: clamp(36px, 5vw, 72px); display: flex; flex-direction: column; gap: 22px; }
.ecoute-copy .tag { align-self: flex-start; font-size: 14px; font-weight: 700; padding: 6px 14px; border-radius: 999px; background: var(--signal); }
.ecoute-copy h3 { font-size: clamp(30px, 3.2vw, 46px); font-variation-settings: "wdth" 115; font-weight: 800; line-height: 1.02; }
.ecoute-copy p { color: #B9C7DA; max-width: 50ch; }
.ecoute-goals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 1px solid var(--line-dark); }
.ecoute-goals div { padding: clamp(28px, 3vw, 44px); border-bottom: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 8px; }
.ecoute-goals div:nth-child(odd) { border-right: 1px solid var(--line-dark); }
.ecoute-goals div:nth-child(n+3) { border-bottom: 0; }
.ecoute-goals strong { font-variation-settings: "wdth" 112; font-size: 22px; }
.ecoute-goals span { font-size: 15px; color: #9FB1C9; }

/* Approche : une vraie séquence */
.approche { background: var(--paper); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 32px 0 0; counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-variation-settings: "wdth" 125; font-weight: 800; font-size: clamp(64px, 7vw, 104px); line-height: 1; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.5px var(--cobalt); margin-bottom: 28px; }
.step::after { content: ""; position: absolute; left: 0; right: 0; top: calc(clamp(64px, 7vw, 104px) + 12px); height: 1px; background: var(--line); }
.step h3 { padding-top: 24px; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 16px; }
.step:last-child::before { -webkit-text-stroke: 0; color: var(--signal); }
.note { margin-top: 64px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 24px; align-items: start; padding: 28px 32px; border-radius: 20px; background: var(--porcelain); max-width: 880px; }
.note strong { display: block; font-variation-settings: "wdth" 110; font-size: 19px; margin-bottom: 4px; }
.note p { color: var(--muted); }

/* Secteurs */
.secteurs { background: var(--porcelain); }
.sectors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sector { position: relative; height: clamp(320px, 34vw, 460px); border-radius: 22px; overflow: hidden; color: #fff; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; isolation: isolate; }
.sector .art { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center top; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.sector:hover .art { transform: scale(1.06); }
.sector h3 { font-size: 24px; }
.sector p { font-size: 15px; color: rgba(255, 255, 255, .82); }
.art-textile { background-color: #1F4E8C; background-image: linear-gradient(180deg, rgba(8, 19, 38, 0) 30%, rgba(8, 19, 38, .9) 100%), url(../images/sect-textile.svg); }
.art-agro { background-color: #2C6A55; background-image: linear-gradient(180deg, rgba(8, 19, 38, 0) 30%, rgba(8, 19, 38, .9) 100%), url(../images/sect-agro.svg); }
.art-agri { background-color: #6B6A2A; background-image: linear-gradient(180deg, rgba(8, 19, 38, 0) 30%, rgba(8, 19, 38, .9) 100%), url(../images/sect-agri.svg); }
.art-energie { background-color: #8A4B1F; background-image: linear-gradient(180deg, rgba(8, 19, 38, 0) 30%, rgba(8, 19, 38, .9) 100%), url(../images/sect-energie.svg); }

/* Équipe et chiffres */
.equipe .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: end; }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.figures div { padding: 28px 24px 0 0; }
.figures div + div { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.figures b { display: block; font-variation-settings: "wdth" 116; font-weight: 800; font-size: clamp(56px, 6.4vw, 100px); line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.figures b sup { font-size: .4em; vertical-align: top; color: #F08B8E; margin-left: 4px; }
.figures span { display: block; margin-top: 14px; font-size: 16px; color: #9FB1C9; }

/* Références */
.references { background: var(--porcelain); overflow: hidden; }
.logo-wall { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo-wall figure { margin: 0; height: 132px; display: grid; place-items: center; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-wall img { max-height: 76px; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .3s ease, opacity .3s ease; }
.logo-wall figure:hover img { filter: none; opacity: 1; }
.logo-wall .more { background: var(--ink); color: #fff; place-items: start; align-content: space-between; display: grid; }
.logo-wall .more b { font-variation-settings: "wdth" 120; font-size: 40px; line-height: 1; }
.logo-wall .more span { font-size: 14px; color: #B9C7DA; }
.ref-table { margin-top: 40px; }
.ref-table summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; padding: 14px 22px; border-radius: 999px; border: 1.5px solid var(--text); }
.ref-table summary::-webkit-details-marker { display: none; }
.ref-table summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .25s ease; }
.ref-table[open] summary::after { transform: rotate(-135deg) translateX(-2px); }
.ref-table table { width: 100%; margin-top: 28px; border-collapse: collapse; font-size: 16px; }
.ref-table th { text-align: left; font-size: 14px; font-weight: 600; color: var(--muted); padding: 0 0 12px; border-bottom: 1px solid var(--text); }
.ref-table td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ref-table td:first-child { font-weight: 700; width: 40%; padding-right: 24px; }
.ref-table td span { display: inline-block; margin: 0 6px 6px 0; padding: 3px 10px; border-radius: 999px; background: var(--porcelain); font-size: 14px; font-weight: 600; color: var(--cobalt); }

/* Pourquoi */
.pourquoi { background: var(--porcelain); }
.pourquoi blockquote { margin: 0 0 clamp(56px, 7vw, 96px); font-variation-settings: "wdth" 110; font-weight: 700; font-size: clamp(28px, 3.4vw, 52px); line-height: 1.12; letter-spacing: -.015em; max-width: 24ch; }
.pourquoi blockquote cite { display: block; margin-top: 22px; font-style: normal; font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.reasons div { border-top: 2px solid var(--text); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.reasons p { color: var(--muted); }

/* FAQ */
.faq { background: var(--paper); }
.faq .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.faq-head { position: sticky; top: 120px; }
.faq-head .lead { margin-top: 20px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--text); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-variation-settings: "wdth" 106; font-weight: 700; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; position: relative; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); transition: background-color .25s ease, border-color .25s ease; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--text); transition: transform .25s ease; }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { background: var(--signal); border-color: var(--signal); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: #fff; }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq details p { padding: 0 56px 26px 0; color: var(--muted); max-width: 68ch; }

/* Contact */
.contact { background: var(--ink); color: #fff; }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.coords { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line-dark); }
.coords li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); font-size: 16px; }
.coords span { color: #8EA2BD; }
.coords a { text-decoration: none; font-weight: 600; }
.coords a:hover { color: #F08B8E; }
.vcard { margin-top: 32px; display: flex; gap: 20px; align-items: center; }
.vcard img { width: 112px; height: 112px; border-radius: 14px; background: #fff; padding: 8px; }
.vcard p { font-size: 15px; color: #B9C7DA; }
.vcard a { display: inline-block; margin-top: 8px; font-weight: 700; color: #fff; }
.form { background: var(--paper); color: var(--text); border-radius: 28px; padding: clamp(28px, 4vw, 52px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 600; }
.contact .wrap > * { min-width: 0; }
.form input, .form select, .form textarea { width: 100%; min-width: 0; font: inherit; font-size: 16px; font-weight: 400; color: var(--text); min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 1px solid #C3CEDC; background: var(--porcelain); transition: border-color .2s ease, background-color .2s ease; }
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--cobalt); background: #fff; box-shadow: 0 0 0 3px rgba(31, 78, 140, .18); }
.form .btn { justify-self: start; }
#form-status { font-weight: 600; min-height: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Pied de page */
.site-foot { background: var(--ink-deep); color: #B9C7DA; padding: 72px 0 40px; font-size: 15px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.foot-top img { height: 48px; width: auto; margin-bottom: 20px; }
.foot-top h4 { margin: 0 0 14px; font-size: 15px; color: #fff; }
.foot-top ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-top a { text-decoration: none; }
.foot-top a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; font-size: 14px; color: #7F93AE; }

/* WhatsApp */
.wa { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px 0 14px; border-radius: 999px; background: #25D366; color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 10px 30px rgba(8, 19, 38, .3); transition: transform .2s ease; }
.wa:hover { transform: translateY(-2px); }

/* Séquence d'ouverture : un seul moment orchestré */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 .line > span { transform: translateY(105%); animation: rise 1s cubic-bezier(.2, .75, .2, 1) forwards; }
  .js .hero h1 .line:nth-child(2) > span { animation-delay: .09s; }
  .js .hero h1 .line:nth-child(3) > span { animation-delay: .18s; }
  .js .hero h1 .line:nth-child(4) > span { animation-delay: .27s; }
  .js .hero .lead, .js .hero-actions, .js .hero-foot { opacity: 0; animation: fade .9s ease .55s forwards; }
  .js .hero-actions { animation-delay: .7s; }
  .js .hero-foot { animation-delay: .9s; }
  @keyframes rise { to { transform: none; } }
  @keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .svc, .prj, .stp, .sec { transform: none !important; }
  .svc > *, .prj > *, .stp > *, .sec > * { transform: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Adaptation écrans */
@media (max-width: 1100px) {
  .nav > a { display: none; }
  .menu-btn { display: block; }
  .nav.is-open { position: fixed; inset: 84px 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: #fff; color: var(--text); padding: 8px var(--gut) 24px; box-shadow: 0 20px 40px rgba(8, 19, 38, .18); }
  .nav.is-open > a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav.is-open .lang { margin-top: 16px; align-self: flex-start; }
  .nav.is-open .head-cta { margin-top: 16px; }
  .svc, .prj { flex-basis: calc((100% - 2 * var(--gut) - 32px) / 3); }
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; padding-top: 88px; }
  .hero-copy { grid-column: 1; grid-row: 2; max-width: none; }
  .mark3d { grid-column: 1; grid-row: 1; height: 38vh; min-height: 260px; margin: 0 0 -8px; }
  .hero-foot ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-foot li:nth-child(3) { border-left: 0; }
  .hero-foot li:nth-child(3) a { padding-left: 0; }
  .hero-foot li:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .section-head, .equipe .wrap, .faq .wrap, .contact .wrap, .ecoute { grid-template-columns: 1fr; }
  .svc, .prj, .stp, .sec { flex-basis: calc((100% - 2 * var(--gut) - 16px) / 2); }
  .section-head .lead { justify-self: start; }
  .ecoute-goals { border-left: 0; border-top: 1px solid var(--line-dark); }
  .reasons { grid-template-columns: 1fr; gap: 32px; }
  .faq-head { position: static; }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-top > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-head .wrap { height: 72px; }
  .nav.is-open { inset: 72px 0 auto; }
  .brand img { height: 38px; }
  .head-cta { display: none; }
  .nav.is-open .head-cta { display: inline-flex; }
  .svc, .prj { flex-basis: 76%; min-height: 320px; }
  .stp, .sec { flex-basis: 80%; }
  .svc-bar { gap: 16px; }
  .sectors { grid-template-columns: 1fr; }
  .sector { height: 280px; }
  .steps { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures { grid-template-columns: 1fr; }
  .figures div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-dark); }
  .figures div { padding-bottom: 24px; }
  .ecoute-goals { grid-template-columns: 1fr; }
  .ecoute-goals div:nth-child(odd) { border-right: 0; }
  .ecoute-goals div:nth-child(n+3) { border-bottom: 1px solid var(--line-dark); }
  .ecoute-goals div:last-child { border-bottom: 0; }
  .form { grid-template-columns: 1fr; border-radius: 20px; }
  .coords li { grid-template-columns: 1fr; gap: 2px; }
  .wa span { display: none; }
  .wa { width: 56px; padding: 0; justify-content: center; right: 14px; bottom: 14px; }
  .faq details p { padding-right: 0; }
  .ref-table td:first-child { width: 45%; }
  .foot-top { grid-template-columns: 1fr; }
}
