/* Styles for blocks that only exist on the Technique / Partenaires pages. Base tokens come from style.css. */
.pins { list-style: none; padding: 0; margin: 32px 0; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line, rgba(20,26,51,.1)); }
.pins li { padding: 20px 16px 0 0; display: grid; gap: 6px; }
.pins b { font: 700 22px/1 "Barlow Condensed", sans-serif; letter-spacing: .04em; color: var(--blue, #5b6ee1); }
.pins span { font-size: 14px; line-height: 1.45; color: var(--muted, #5a6178); }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 32px; }
.cols2 article { border-top: 1px solid var(--line, rgba(20,26,51,.1)); padding-top: 20px; }
.cols2 h3 { margin: 0 0 8px; font-size: 22px; }
.faq { margin-top: 32px; border-top: 1px solid var(--line, rgba(20,26,51,.1)); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line, rgba(20,26,51,.1)); }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue, #5b6ee1); font-weight: 700; transition: transform .2s cubic-bezier(.23,1,.32,1); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; max-width: 620px; }
.seek { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; margin: 32px 0 0; }
.seek div { border-top: 1px solid var(--line, rgba(20,26,51,.1)); padding: 20px 0 28px; }
.seek dt { font-weight: 600; font-size: 18px; margin-bottom: 6px; }
.seek dd { margin: 0; color: var(--muted, #5a6178); font-size: 15.5px; line-height: 1.55; }
@media (max-width: 900px) { .pins { grid-template-columns: repeat(3, 1fr); row-gap: 20px; } .seek { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pins, .cols2, .seek { grid-template-columns: 1fr; } .cols2 { gap: 8px; } }
.side-card h1 { font-size: clamp(32px, 3vw, 48px); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 16px; }
.panel h1 { font-size: clamp(40px, 5.5vw, 80px); font-weight: 600; letter-spacing: -.035em; line-height: .98; margin: 0 0 20px; }
.side-card h1 { font-size: clamp(32px, 3vw, 48px); }
/* full-bleed photo band (Accueil, before the problem) */
.photo-band { position: relative; z-index: 2; margin: 0; background: #10142b; overflow: hidden; }
.photo-band img { display: block; width: 100%; height: clamp(360px, 70vh, 760px); object-fit: cover; object-position: 50% 78%; }
.photo-band p { position: absolute; left: max(24px, calc((100vw - 1200px) / 2)); right: max(24px, calc((100vw - 1200px) / 2)); bottom: clamp(28px, 6vh, 64px); margin: 0; color: #fff; font: 600 clamp(22px, 2.6vw, 36px)/1.2 Barlow, "Barlow Fallback", sans-serif; letter-spacing: -.02em; text-shadow: 0 2px 24px rgba(16,20,43,.45); }
.photo-band p em { font-style: normal; color: rgba(255,255,255,.92); }
.photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(16,20,43,.78)); pointer-events: none; }
.photo-band p { z-index: 1; }
body[data-page="/partenaires/"] .contact, body[data-page="/en/partners/"] .contact { min-height: auto; }
.onward { margin-top: 64px; }
.dark .btn.ghost.light { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); background: transparent; }

/* ===== Round 3: the brand tile system (from the team's animated presentation) =====
   One tile = a front face + an extruded edge (box-shadow). KO = master (navy), modules = blue tiles with a pictogram. */
.tl { --s: 1; --c1: #6b87f0; --c2: #4a66d9; --bot: #2d44a3; position: relative; flex: none; display: grid; place-items: center;
  width: calc(118px * var(--s)); height: calc(150px * var(--s)); border-radius: calc(14px * var(--s)); color: #fff;
  background: radial-gradient(120% 90% at 22% 0%, rgba(255,255,255,.22), transparent 55%), linear-gradient(170deg, var(--c1), var(--c2));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.28), inset 0 -3px 0 rgba(0,0,0,.14), 0 calc(10px * var(--s)) 0 var(--bot), 0 calc(24px * var(--s)) calc(28px * var(--s)) calc(-16px * var(--s)) rgba(21,27,59,.45); }
.tl svg { width: calc(46px * var(--s)); height: auto; display: block; }
.tl .led { position: absolute; right: calc(14px * var(--s)); top: calc(14px * var(--s)); width: max(4px, calc(9px * var(--s))); aspect-ratio: 1; border-radius: 50%; background: var(--led); box-shadow: 0 0 6px var(--led); }
.tl .gr { position: absolute; left: 50%; bottom: 11%; width: max(2px, calc(3px * var(--s))); aspect-ratio: 1; margin-left: calc(-1.5px * var(--s)); border-radius: 50%; background: rgba(0,0,0,.28);
  box-shadow: calc(7px * var(--s)) 0 0 rgba(0,0,0,.28), calc(-7px * var(--s)) 0 0 rgba(0,0,0,.28); }
.tl.ko { --c1: #3a4d9b; --c2: #25336f; --bot: #151e46; width: calc(182px * var(--s)); }
.tl.ko b { font: 700 calc(84px * var(--s))/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; text-indent: .14em; text-shadow: 0 -1px 0 rgba(0,0,0,.25); }
.tl.ko .led { right: auto; left: calc(18px * var(--s)); top: calc(18px * var(--s)); }
.tl.pale { --c1: #c3cef8; --c2: #a6b5f0; --bot: #7686cb; color: #2e3f86; }
.tl.blanc { --c1: #fff; --c2: #eef0f6; --bot: #bfc6d8; color: #2e3f86; }
.tl.off { --c1: #e6e8f0; --c2: #d6dae6; --bot: #b9bfd0; color: #8b91a8; }
.tl.off .led { background: #b4b9cb; box-shadow: none; }
.tl-row { display: flex; align-items: center; gap: calc(7px * var(--s, 1)); }
.tl-row .tl { --s: inherit; }

/* module grid + composer use the tiles */
.grid-spec .tl { --s: .4; margin-bottom: 4px; }
.grid-spec .tl.ko { --s: .4; }
.toggles .tl { --s: .22; box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 2px 0 var(--bot); }
.toggles .tl svg { width: 15px; }
.toggles .tl .led { width: 4px; top: 3px; right: 3px; }
.toggles button[aria-pressed="false"] .tl { --c1: #e6e8f0; --c2: #d6dae6; --bot: #b9bfd0; color: #8b91a8; }
.toggles button[aria-pressed="false"] .tl .led { background: #b4b9cb; box-shadow: none; }
.cfg-row { --s: .34; justify-content: center; min-height: 72px; padding: 6px 0 18px; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) {
  .grid-spec .tl { grid-row: span 2; align-self: start; }
  .cfg-row { display: none; }
}


/* ===== Accueil: Partout dans la maison + Pourquoi OIKON ===== */
.band { background: var(--bg); position: relative; z-index: 2; }
.center-head { text-align: center; max-width: 760px; margin: 0 auto; }
.center-head h2 { font-size: clamp(36px, 4.2vw, 60px); letter-spacing: -.03em; line-height: 1.02; margin: 0 0 14px; }
.center-head p:not(.eyebrow) { margin: 0 auto; color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); max-width: 52ch; }
.center-head .eyebrow { justify-content: center; }
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 72px; }
.room .tl-row { --s: .62; justify-content: center; height: 170px; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
.room h3 { font-size: 22px; margin: 22px 0 6px; letter-spacing: -.01em; }
.room p { margin: 0; color: var(--muted); max-width: 30ch; }
.tl .clock { position: absolute; left: 10%; right: 10%; top: 27%; height: 40%; border-radius: 6px; display: grid; place-items: center; white-space: nowrap;
  background: linear-gradient(170deg, #1c2550, #121838); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 2px 0 rgba(255,255,255,.35);
  color: #cfe9ff; font: 700 calc(30px * var(--s))/1 Barlow, "Barlow Fallback", sans-serif; font-variant-numeric: tabular-nums; text-shadow: 0 0 8px rgba(159,200,255,.6); }
.room .fob { position: absolute; left: 50%; top: 50%; width: 48%; aspect-ratio: 1; transform: translate(-50%, -42%); border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.7), transparent 38%), #ffd25e; box-shadow: 0 6px 12px -2px rgba(21,27,59,.38), inset 0 -3px 0 rgba(0,0,0,.13); }
.atouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.atout { background: var(--surface); border-radius: 22px; padding: 26px 26px 24px; box-shadow: 0 22px 44px -30px rgba(21,27,59,.45), var(--hair); display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.atout > i { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(160deg, #5775e8, #2e3f86); display: grid; place-items: center; box-shadow: 0 4px 0 #1e2a5e; }
.atout > i svg { width: 28px; height: 28px; }
.atout b { display: block; font-size: 20px; margin: 2px 0 6px; letter-spacing: -.01em; }
.atout span { font-size: 16px; line-height: 1.45; color: var(--muted); }
.manifesto { margin-top: 32px; border-radius: 24px; padding: 32px 36px; text-align: center; color: #fff; background: radial-gradient(80% 160% at 85% 0%, #3a4d9b, #1c2550 70%); }
.manifesto p { margin: 0 auto; font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.manifesto p + p { margin-top: 8px; font-weight: 400; color: #c9d1f2; }
@media (max-width: 1000px) { .rooms { grid-template-columns: 1fr; gap: 40px; max-width: 460px; margin-left: auto; margin-right: auto; } .atouts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .atouts { grid-template-columns: 1fr; gap: 14px; } .atout { padding: 20px; grid-template-columns: 44px 1fr; gap: 14px; } .atout > i { width: 44px; height: 44px; border-radius: 12px; } .atout > i svg { width: 24px; height: 24px; }
  .room .tl-row { --s: .56; } .manifesto { padding: 24px 20px; } .rooms { margin-top: 48px; } }


/* ===== Technique / Partenaires fixes ===== */
#mesures .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
@media (max-width: 760px) { #mesures .stats { grid-template-columns: 1fr; gap: 28px; } #mesures .stats b { font-size: 72px; } }
.more-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; font-weight: 600; font-size: 15px; color: var(--blue-ink); text-decoration: none; }
.more-link::after { content: "↓"; }
@media (max-width: 760px) { .spec li.xtra { display: none; } }
.pitch-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 64px; align-items: center; }
.pitch-grid p { max-width: 60ch; }
.pitch-grid .lead { max-width: 60ch; }
.pitch-grid figure { margin: 0; }
.pitch-grid img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(21,27,59,.45); }
.pitch-grid figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; }
#recherche .yes { list-style: none; padding: 0; margin: 0; max-width: 60ch; }
#recherche .yes li { display: flex; gap: 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .pitch-grid { grid-template-columns: 1fr; gap: 32px; } .pitch-grid figure { max-width: 360px; } }
#scene:focus-visible { outline: none; } /* full-screen decoration, never tabbed to: a ring here would frame the whole screen */

/* ===== Composer: reorderable configuration list ===== */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#configList { flex-direction: column; flex-wrap: nowrap; gap: 6px; margin-bottom: 8px; }
#configList li { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 6px 4px 14px; border-radius: 12px; }
#configList li.master-row { padding-left: 14px; }
#configList li.mod { padding-left: 4px; background: var(--surface); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
#configList li.nfc { padding: 4px 6px 4px 4px; }
#configList .name { flex: 1; min-width: 0; }
#configList .grip { flex: none; display: grid; place-items: center; width: 32px; height: 36px; border-radius: 8px; color: #8b91a8; cursor: grab; touch-action: none; }
#configList .grip svg { width: 10px; height: 16px; }
#configList .grip:hover { color: var(--ink); background: var(--bg); }
#configList .mv { display: flex; gap: 2px; margin-left: 2px; }
.mv-btn { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: 600 15px/1 Barlow, "Barlow Fallback", sans-serif; cursor: pointer; transition: background-color .15s ease, transform .16s var(--ease-out); }
.mv-btn:hover:not(:disabled) { background: var(--bg); color: var(--ink); }
.mv-btn:active:not(:disabled) { transform: scale(.9); }
.mv-btn:disabled { opacity: .3; cursor: default; }
.mv-btn:focus-visible, .step:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
#configList.sorting li.mod:not(.lifted) { transition: transform .2s cubic-bezier(.23,1,.32,1); }
#configList li.lifted { position: relative; z-index: 2; cursor: grabbing; box-shadow: 0 14px 28px -12px rgba(21,27,59,.45), var(--hair); }
#configList li.lifted .grip { cursor: grabbing; color: var(--ink); }
.cfg-hint { margin: 0 0 18px; }
.build .tiny.cfg-hint { display: block; } .cfg-hint[hidden] { display: none !important; }
#pourquoi .manifesto p { color: #fff; } #pourquoi .manifesto p + p { color: #c9d1f2; }

/* ===== Round 4 ===== */
/* hero: benefit first, the three boxes in one line each, modular tagline as signature */
.trio-cap { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, auto); gap: 6px 22px; justify-content: start; font-size: 14px; color: var(--muted); }
.trio-cap li { display: grid; gap: 2px; padding-left: 12px; border-left: 2px solid var(--blue); }
.trio-cap b { color: var(--ink); font-size: 15px; }
.hero .trio-cap { opacity: 0; animation: fade .6s .8s var(--ease-out) forwards; }
@media (prefers-reduced-motion: reduce) { .hero .trio-cap { opacity: 1; animation: none; } }
@media (max-width: 760px) { .trio-cap { grid-template-columns: 1fr; gap: 8px; } }
/* status tags */
.st { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.3; background: rgba(18,152,90,.1); color: var(--ok-ink); }
.st.prov { background: rgba(91,110,225,.14); color: var(--info-ink); }
/* module mini-sheets */
.grid-spec .sheet { margin: 14px 0 0; display: grid; gap: 8px; font-size: 13.5px; }
.grid-spec .sheet div { display: grid; gap: 3px; }
.grid-spec .sheet dt { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.grid-spec .sheet dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; color: var(--ink); }
.compat a.inline { color: var(--blue-ink, #2e3f86); font-weight: 600; text-underline-offset: 3px; padding: 12px 0; } /* inline padding: taller tap area, same line height */
.more-link.out::after { content: "→"; }
#configList li.nfc { flex-wrap: wrap; }
#configList .qty { order: 3; flex: 1 0 100%; display: flex; align-items: center; gap: 2px; padding-left: 36px; font-weight: 500; font-size: 13px; color: var(--muted); }
#configList .qty-l { margin-right: 4px; }
#configList .qty-n { min-width: 18px; text-align: center; color: var(--ink); }
#configList .step { width: 44px; height: 44px; background: none; box-shadow: none; isolation: isolate; }
#configList .step::after { display: none; }
#configList .step::before { content: ""; position: absolute; inset: 8px; z-index: -1; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); }
#configList .mv { order: 2; }
.mv-btn { width: 44px; height: 44px; }
.lp-note { margin: -4px 0 12px; padding: 10px 12px; border-radius: 12px; background: rgba(91,110,225,.12); color: var(--info-ink); font-size: 13.5px; line-height: 1.4; }
.toggles button[aria-disabled="true"] { box-shadow: inset 0 0 0 2px var(--blue); }
/* projet: caption under the annotated photo */
.photo-pst .cap { position: absolute; left: 0; right: 0; top: 100%; margin-top: 12px; font-size: 13.5px; color: #a9b0cc; }
.pst { margin-bottom: 40px; }
/* technique: shown vs targeted */
.target { list-style: none; padding: 0; margin: 0; }
.target li, .shown-vs-target .yes li { padding: 10px 0; border-top: 1px solid var(--line); }
.target li { display: flex; gap: 12px; align-items: baseline; }
.target li::before { content: ""; flex: none; width: 9px; height: 9px; border: 2px solid var(--blue); border-radius: 50%; transform: translateY(-1px); } /* open ring: planned, not yet validated */
.shown-vs-target h3 { margin-bottom: 14px; }
.shown-vs-target .st { font-size: 14px; }
/* partenaires: forwardable summary */
#resume { padding-top: 0; }
.brief-box { max-width: 880px; border-radius: 24px; padding: clamp(22px, 3vw, 40px); background: var(--surface); box-shadow: 0 22px 44px -30px rgba(21,27,59,.45), var(--hair); }
.brief-box h2 { margin: 0 0 18px; font-size: clamp(28px, 3vw, 40px); }
.brief-box dl { margin: 0; display: grid; }
.brief-box dl div { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.brief-box dt { font-weight: 600; }
.brief-box dd { margin: 0; color: var(--muted); }
.brief-box a { color: var(--blue-ink); }
.seek dd + dd { margin-top: 6px; }
@media (max-width: 640px) { .brief-box dl div { grid-template-columns: 1fr; gap: 4px; } }
/* phones: shorter decorative sections */
@media (max-width: 760px) {
  .photo-band img { height: 52vh; }
  .photo-band::after { background: linear-gradient(180deg, transparent 20%, rgba(16,20,43,.86) 70%); } /* the caption covers more of a short band */
  #couleurs { min-height: 70vh; }
  .contact { min-height: auto; padding: 96px 0; }
}
@media (min-width: 761px) and (max-width: 1023px) { .contact { min-height: auto; padding: 96px 0; } } /* no contact model beside the text on tablets: no empty screen around it */
.shown-vs-target .yes { list-style: none; padding: 0; margin: 0; }
@media (max-width: 560px) { .photo-pst .co { font-size: 11.5px; padding: 5px 10px; } .photo-pst .co:nth-of-type(3) { left: auto !important; right: 2%; } }

/* ===== Round 5 ===== */
#configList .sub { margin: 0; }
.cfg-row { flex-wrap: nowrap; overflow: hidden; }
@media (max-width: 760px) { .grid-spec article .sheet { grid-column: 2 / -1; } .grid-spec article > .tl { grid-row: span 2; } }
.hero .fallback { aspect-ratio: 16 / 9; }
.fallback-3d { display: none; width: 100%; height: auto; border-radius: 16px; margin: 4px 0 16px; }
.no-webgl .fallback-3d, .no-3d .fallback-3d { display: block; }

/* ===== Composer: the left column ends in a window onto the live 3D (#composerStage) =====
   The card's white is a masked layer with a hole cut at the stage's rect (vars set by app.js), so the canvas behind shows through. */
.composer .card.build { background: transparent; isolation: isolate; }
.composer .card.build::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--surface);
  -webkit-mask: linear-gradient(#000 0 0), linear-gradient(#000 0 0) var(--hx, 0) var(--hy, 0) / var(--hw, 0) var(--hh, 0) no-repeat;
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) exclude, linear-gradient(#000 0 0) var(--hx, 0) var(--hy, 0) / var(--hw, 0) var(--hh, 0) no-repeat; }
.build-main { display: flex; flex-direction: column; }
.stage3d { flex: 1 1 auto; min-height: 380px; margin-top: 16px; }
@media (max-width: 760px) { .stage3d { min-height: 260px; margin-top: 12px; } }

/* ===== Dark theme details ===== */
:root[data-theme="dark"] .tl.ko, :root[data-theme="dark"] .tiles i.ko { --c1: #5266bd; --c2: #3a4b98; --bot: #24306a; }
:root[data-theme="dark"] .tiles i.ko { background: linear-gradient(180deg, #5266bd, #3a4b98); }
:root[data-theme="dark"] .compat a.inline { color: var(--blue-ink); }
:root[data-theme="dark"] .atout, :root[data-theme="dark"] .brief-box { box-shadow: var(--hair); }
:root[data-theme="dark"] .yes li::before { color: #5fe0a0; }
/* header tools: theme */
.nav { gap: 8px; }
.nav .brand { margin-right: auto; }
.nav nav { order: 1; }
.nav-tools { order: 2; display: flex; gap: 4px; margin-left: 10px; }
.menu-btn { order: 3; }
.tool-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background-color .15s ease, transform .16s var(--ease-out); }
.tool-btn:hover { background: var(--line); }
.tool-btn:active { transform: scale(.92); }
.tool-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.tool-btn svg { width: 20px; height: 20px; }
.tool-btn .moon, :root[data-theme="dark"] .tool-btn .sun { display: none; }
:root[data-theme="dark"] .tool-btn .moon { display: block; }
@media (max-width: 1240px) { .nav-tools { margin-left: 0; } }
/* always-white illustration labels keep dark text in both themes */
.photo-pst .co, .noeud, .noeud h4 { color: #141a33; }
.noeud p { color: #5a6178 !important; }
.shown-vs-target .yes li::before { margin-right: 10px; }


/* ===== Round 6 ===== */
/* type scale: one set of sizes for the whole site */
:root { --fs-h1: clamp(44px, 5.6vw, 84px); --fs-h2: clamp(34px, 4vw, 56px); --fs-h2s: clamp(28px, 2.6vw, 40px); --fs-h3: 20px; --fs-body: 17px; --fs-small: 14px; }
h1, .panel h1 { font-size: var(--fs-h1); }
h2, .split h2, .contact h2, .center-head h2 { font-size: var(--fs-h2); }
.side-card h1, .side-card h2, .build h2, .brief-box h2, .pst h3 { font-size: var(--fs-h2s); }
h3, .room h3, .cols2 h3, .noeud h4 { font-size: var(--fs-h3); }
main p { max-width: 65ch; }
.tiny, figcaption, .note { font-size: var(--fs-small); }
@media (max-width: 760px) { :root { --fs-h1: 40px; --fs-h2: 32px; --fs-h2s: 26px; --fs-h3: 18px; } }
/* hero: "Ne repartez plus" never breaks */
.intro > span > span { white-space: nowrap; }

/* composer chips: rounded square, 32 px square tile with 6 px inset everywhere, concentric radii, fixed status slot */
.composer .toggles button { min-height: 44px; padding: 6px 14px 6px 6px; gap: 10px; border-radius: 14px; }
.composer .toggles .tl { --s: 1; width: 32px; height: 32px; border-radius: 8px; box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -2px 0 rgba(0,0,0,.14); }
.composer .toggles .tl svg { width: 16px; }
.composer .toggles .tl .led { width: 4px; top: 4px; right: 4px; }
.composer .toggles .tl .gr { display: none; }
.composer .toggles button::after { content: "+"; width: 16px; height: 16px; flex: none; display: grid; place-items: center; border-radius: 50%; font: 700 13px/1 Barlow, "Barlow Fallback", sans-serif; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--edge); }
.composer .toggles button[aria-pressed="true"]::after { content: "✓"; color: #fff; background: var(--led); box-shadow: none; font-size: 11px; }
/* summary rows: position label, remove button */
#configList .pos { flex: none; margin-left: auto; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--info-ink); background: rgba(91,110,225,.12); white-space: nowrap; }
#configList .rm { width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: 500 22px/1 Barlow, "Barlow Fallback", sans-serif; cursor: pointer; }
#configList .rm:hover { background: var(--bg); color: var(--alert); }
#configList .rm:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
#configList li.mod:hover, #configList li.mod:focus-within { box-shadow: inset 0 0 0 1.5px var(--blue); }
@media (max-width: 420px) { #configList .pos { font-size: 11px; padding: 2px 6px; } .mv-btn, #configList .rm { width: 40px; } }
/* finish inside the composer */
.finish { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.finish-l { margin: 0; font-size: 13px; color: var(--muted); }
.finish-l .swname { display: block; color: var(--ink); font-size: 15px; }
.finish .swatches { margin: 0; gap: 12px; }
.finish .swatches button { width: 36px; height: 36px; }
.no-webgl .stage3d, .no-3d .stage3d { background: url(/assets/lineup.jpg) center / contain no-repeat; }
/* phones: preview directly above the chips, chips scroll with an edge fade */
@media (max-width: 760px) {
  .build-main .eyebrow, .build-main h2 { order: 0; }
  .build-main .stage3d { order: 1; min-height: 180px; height: 180px; flex: none; margin: 0 0 12px; }
  /* stays in view while the settings below scroll under it (the model is drawn above the page here, see #scene.over) */
  .build-main .stage3d { position: sticky; top: 64px; z-index: 2; background: var(--surface); box-shadow: 0 14px 14px -14px rgba(0,0,0,.35); }
  /* sticky needs the whole card as its range: the left column's parts join the card's own grid, settings after them */
  .composer .build { row-gap: 0; }
  .build-main { display: contents; }
  .composer .build > .config { order: 4; margin-top: 14px; }
  .build-main .toggles { order: 2; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); padding-right: 56px; }
  .build-main .tiny { order: 3; }
}
/* calmer surfaces: supporting blocks lose their cards, only controls and the stage keep depth */
.atout { background: none; box-shadow: none; border-radius: 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
:root[data-theme="dark"] .atout { box-shadow: none; }
.grid-spec { background: none; border: 0; border-radius: 0; gap: 0 32px; overflow: visible; }
.grid-spec article { background: none; padding: 28px 0; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .grid-spec { gap: 0; } .grid-spec article { grid-template-columns: 56px 1fr; padding: 22px 0; } }
/* reveals: hidden by class only while waiting for the scene to enter view */
.rv-wait { opacity: 0; }

/* ===== Critic: dark mode + pages ===== */
:root[data-theme="dark"] .tl.pale { --c1: #7d8fd8; --c2: #6276c6; --bot: #3e4d93; color: #fff; }
:root[data-theme="dark"] .tl.off { --c1: #3a4266; --c2: #2f3657; --bot: #1f2440; color: #c4cae0; }
.sig { color: var(--blue-ink); }
.st { color: #0a6b3f; }
:root[data-theme="dark"] .st { color: var(--ok-ink); }
:root[data-theme="dark"] .card, :root[data-theme="dark"] .brief-box { box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 20px 40px -24px rgba(0,0,0,.6); }
:root[data-theme="dark"] { --surface: #1b2140; }
/* phone hero: headline higher in the first screen */
@media (max-width: 760px) {
  .hero { padding-bottom: 28px; }
  .trio-cap { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; font-size: 12px; }
  .trio-cap b { font-size: 13px; }
  .trio-cap li { padding-left: 8px; }
  .hero .lead { font-size: 16px; }
}
/* one nav: in-page shortcuts, then the pages (compact) */
@media (min-width: 1241px) {
  body[data-page="/"] .nav nav { gap: 16px; }
  body[data-page="/"] .nav nav a { font-size: 14px; }
  body[data-page="/"] .nav nav a[href="/technique/"] { margin-left: 10px; padding-left: 16px; border-left: 1px solid var(--line); }
}
/* dead space */
body[data-page="/technique/"] .panel:not(.tall):not(.dark) { padding: clamp(64px, 9vh, 112px) 0; }
.brief-box { max-width: none; }
/* projet: stats and status share one 12-column grid */
.stats.three, .status-list { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; max-width: none; }
.stats.three > div { grid-column: span 4; }
.status-list > div { grid-column: span 3; }
@media (max-width: 760px) { .stats.three > div { grid-column: span 12; } .status-list > div { grid-column: span 6; } }
.sub { margin-top: 88px; }
.sub + .pst { margin-top: 0; }
.sub { line-height: 1.15; }
.pst > div > h3 { margin-top: 0; }
@media (max-width: 760px) { .hero { min-height: 92svh; } } /* room above the headline for a model ~3/4 of the width */

/* ===== #modules: scroll-linked magnetic assembly, captions on the left half ===== */
.mod-stage { position: relative; height: 210vh; }
/* the nav link lands on the story's start, pinned (its captions already clear the nav): the model is framed for that */
#modules { scroll-margin-top: 0; }
.panel.mod-list { padding-top: var(--sp-5); }
/* captions pinned just below the fixed nav, never under it */
.mod-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: flex-start; padding: calc(var(--nav-h) + var(--sp-5)) max(16px, calc((100vw - 1180px) / 2)) 0; pointer-events: none; }
.mod-caps { list-style: none; margin: 0; padding: 0; position: relative; width: min(44%, 480px); height: 180px; }
.mod-caps li { position: absolute; inset: 0 auto auto 0; display: grid; gap: 10px; font: 600 var(--fs-h2s)/1.08 Barlow, "Barlow Fallback", sans-serif; letter-spacing: -.02em; color: var(--ink);
  opacity: 0; transform: translateY(8px); transition: opacity .12s ease, transform .12s ease; }
/* the outgoing caption is gone (.12 s) before the next one starts: never two on top of each other */
.mod-caps li.on { opacity: 1; transform: none; transition: opacity .3s ease .12s, transform .4s var(--ease-out) .12s; }
.mod-caps.snap li { transition: none !important; } /* app.js: set at once after a jump, no stale caption fading out */
.mod-caps b { font: 600 13px/1 Barlow, "Barlow Fallback", sans-serif; letter-spacing: .1em; color: var(--blue); }
.mod-caps span { font: 400 var(--fs-body)/1.5 Barlow, "Barlow Fallback", sans-serif; letter-spacing: 0; color: var(--muted); }
.mod-still { display: none; }
@media (max-width: 760px) {
  .mod-stage { height: 220vh; }
  .mod-sticky { align-items: flex-end; padding-top: 0; padding-bottom: var(--sp-6); }
  .mod-caps { width: 100%; height: 120px; }
}
/* no WebGL / 3D failed: a still image and all three captions (reduced motion keeps the scroll story) */
.no-webgl .mod-stage, .no-3d .mod-stage { height: auto; padding: var(--pad) 0 0; }
.no-webgl .mod-sticky, .no-3d .mod-sticky { position: static; height: auto; flex-direction: column; align-items: stretch; gap: 24px; padding-top: 0; }
.no-webgl .mod-caps, .no-3d .mod-caps { width: 100%; height: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.no-webgl .mod-caps li, .no-3d .mod-caps li { position: static; opacity: 1; transform: none; font-size: 22px; }
.no-webgl .mod-still, .no-3d .mod-still { display: block; width: min(100%, 720px); height: auto; margin: 0 auto; border-radius: 18px; }
@media (max-width: 760px) { .no-webgl .mod-caps, .no-3d .mod-caps { grid-template-columns: 1fr; } }
.no-webgl .mod-stage, .no-3d .mod-stage { position: relative; z-index: 2; background: var(--bg); }
/* « En mouvement » without the 3D: the render film (poster first) in a normal-height section */
.film-still { display: none; }
.no-webgl .film-still, .no-3d .film-still { display: block; max-width: 960px; margin: 32px auto 0; }
.film-still video { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; border-radius: 18px; background: #8e97ae; }
.no-webgl #film, .no-3d #film { min-height: 0; padding-bottom: var(--pad); }

/* ===== Round 8 ===== */
/* composer: long NFC label wraps inside its own column, controls stay on one row */
#configList li.nfc .name { flex: 1 1 0; min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
#configList li.nfc::after { content: ""; order: 3; flex: 0 0 100%; height: 0; }
#configList li.nfc .qty { order: 4; flex: 1 1 auto; }
#configList li.nfc .pos { order: 5; align-self: center; }
/* module sheets: breathing room between tile and text on phones */
@media (max-width: 760px) { .grid-spec article { column-gap: 14px; } }
/* no-WebGL phones: one caption per row */
@media (max-width: 760px) { .no-webgl .mod-caps, .no-3d .mod-caps { grid-template-columns: 1fr; } }
/* no widows in headings */
h1, h2, h3 { text-wrap: balance; }
/* caption numerals: >= 4.5:1 in both themes */
.mod-caps b { color: var(--blue-ink); }
/* 44 px hit areas: colour swatches (visual stays 36 px) and footer links */
.finish .swatches button { position: relative; }
.finish .swatches button::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; }
.foot-col a { min-height: 44px; }

/* ===== Spacing system (tokens in style.css :root): one rhythm for every page ===== */
/* sections: one vertical padding everywhere */
.dark { padding: var(--pad) 0; }
@media (max-width: 760px) { .contact { padding: var(--pad) 0; } }
/* eyebrow -> title -> text */
.eyebrow, .center-head .eyebrow { margin-bottom: var(--gap-eyebrow); }
@media (max-width: 760px) { .side-card .eyebrow, .build .eyebrow { margin-bottom: var(--gap-eyebrow); } }
h2 { margin-bottom: var(--gap-head); }
.panel h1 { margin-bottom: var(--gap-head); }
.center-head h2, .side-card h1, .side-card h2, .build h2, .brief-box h2, .pst h3 { margin-bottom: var(--gap-head-s); }
@media (max-width: 760px) { .side-card h2, .build h2 { margin-bottom: var(--sp-2); } }
.grid-spec h3 { margin-bottom: var(--sp-2); }
.noeud p { margin-top: var(--sp-2); }
@media (max-width: 900px) { .noeud { row-gap: var(--sp-2); } .noeud p { margin-top: 0; } }
/* label -> value pairs */
.grid-spec .sheet div { gap: var(--gap-label); }
.grid-spec .sheet dd { gap: var(--sp-2); }
@media (max-width: 640px) { .brief-box dl div { gap: var(--gap-label); } }
/* module sheets: the "soon" card has no fill of its own */
.grid-spec .soon { background: none; }
/* blocks that followed each other with no space */
.flow { margin-bottom: var(--sp-8); }
@media (max-width: 900px) { .flow { margin-bottom: var(--sp-7); } }
.fallback-3d { margin: var(--sp-3) 0 var(--sp-4); }
/* projet: two columns on phones (the 12-column grid overflowed at 360 px) */
@media (max-width: 760px) {
  .stats.three, .status-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-5); }
  .stats.three > div { grid-column: 1 / -1; }
  .status-list > div { grid-column: auto; }
}
/* button and chip groups */
.toggles { gap: var(--sp-2); }
/* module sheets on phones: the wide KO tile fits its 56 px column instead of running into the title */
@media (max-width: 760px) { .grid-spec .tl.ko { --s: .3; } .grid-spec article { column-gap: var(--sp-4); } }
/* column grids: one gap on the scale (48 desktop, 24 phone) */
.split { gap: var(--sp-8); }
.steps, .does, .road, .stats, .status-list { gap: var(--sp-7); }
.team { column-gap: var(--sp-7); }
.side-card { padding: var(--card-pad); }
@media (max-width: 900px) { .split { gap: var(--sp-6); } }
@media (max-width: 760px) { .steps, .does, .road, .stats, .status-list { gap: var(--sp-5); } .team { column-gap: var(--sp-5); } .side-card { padding: var(--sp-4) var(--sp-5); } }
/* partenaires: "what we give back" uses the full width (3 columns, like the list above), the closing call is centred */
@media (min-width: 901px) { #recherche .yes { max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--sp-7); } }
body[data-page="/partenaires/"] #contact .wrap, body[data-page="/en/partners/"] #contact .wrap { text-align: center; }
body[data-page="/partenaires/"] #contact .wrap > *, body[data-page="/en/partners/"] #contact .wrap > * { max-width: 720px; margin-left: auto; margin-right: auto; }
body[data-page="/partenaires/"] #contact .eyebrow, body[data-page="/partenaires/"] #contact .ctas, body[data-page="/en/partners/"] #contact .eyebrow, body[data-page="/en/partners/"] #contact .ctas { justify-content: center; }
/* footer: same rhythm as the sections, groups clearly apart on phones */
.foot { gap: var(--sp-6); padding-top: var(--sp-8); padding-bottom: var(--sp-6); }
.foot-brand p { margin-top: var(--sp-2); }
.foot-col b { margin-bottom: var(--sp-1); }
.copy { padding-top: var(--sp-4); }
@media (max-width: 760px) { .foot { gap: var(--sp-5); padding-top: var(--sp-7); } }

/* ===== Composer summary: every row is the same family =====
   [32 px slot: grip or mini tile] 8 px [title / badge / keyring line] [actions], 8 px between rows, text aligned on one left edge */
.config-head { margin-bottom: var(--sp-4); }
.master { margin-bottom: var(--sp-4); gap: var(--sp-2); }
.master legend { margin-bottom: var(--sp-2); }
.master label > span { padding: var(--sp-2) var(--sp-3); }
.finish { margin-bottom: var(--sp-4); }
.lp-note { margin: 0 0 var(--sp-4); padding: var(--sp-3) var(--sp-4); }
#configList { gap: var(--gap-list); margin: 0 0 var(--sp-3); }
#configList li, #configList li.master-row, #configList li.mod, #configList li.nfc {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; column-gap: var(--sp-2); row-gap: var(--sp-1); align-items: center;
  min-height: 56px; padding: 6px var(--sp-1); border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: var(--hair); font-size: 14px; font-weight: 600; }
#configList li.nfc::after { display: none; }
@media (max-width: 760px) { #configList li.master-row { display: none; } } /* phones: the master is the radio choice just above */
/* fixed row: a mini navy tile in the grip slot for the master */
#configList li.master-row::before { content: ""; grid-column: 1; grid-row: 1 / span 2; justify-self: center; width: 16px; height: 20px; border-radius: 4px; }
#configList li.master-row::before { background: linear-gradient(170deg, #3a4d9b, #25336f); box-shadow: 0 2px 0 #151e46; }
#configList .grip { grid-column: 1; grid-row: 1 / -1; justify-self: center; }
#configList .name { grid-column: 2; grid-row: 1; line-height: 1.25; }
#configList .pos { grid-column: 2; grid-row: 2; justify-self: start; margin: 0; }
#configList .mv { grid-column: 3; grid-row: 1 / span 2; margin: 0; gap: 0; }
/* NFC: title + actions on top, then the badge and the keyring count under the title */
#configList li.nfc .name { grid-row: 1; }
#configList li.nfc .mv { grid-row: 1; }
#configList li.nfc .pos { grid-column: 2 / -1; grid-row: 2; align-self: start; }
#configList li.nfc .qty { grid-column: 2 / -1; grid-row: 3; padding: 0; margin: 0; }
#configList .qty-l { margin-right: var(--sp-1); }
.cfg-hint { margin: 0; }
.cfg-actions { padding-top: var(--sp-5); gap: var(--sp-3); }
@media (min-width: 1001px) { .cfg-actions { position: sticky; bottom: 0; z-index: 1; background: var(--surface); padding-bottom: var(--sp-4); } } /* a long module list never pushes "Ajouter au panier" off screen */
@media (max-width: 420px) { #configList .mv-btn, #configList .rm { width: 40px; } }
/* single-line master row: its mini tile and title share one centred line */
#configList li.master-row::before { grid-row: 1; }
/* module rows: the grip is centred on the row, like the move / remove buttons (NFC keeps it on the title line) */
#configList li.mod:not(.nfc) .grip { grid-row: 1 / span 2; }
/* the 3D window keeps a sane shape instead of stretching to the summary's height */
@media (min-width: 761px) { .build-main .stage3d { flex: 1 1 auto; min-height: 380px; max-height: min(calc(100vh - var(--nav-h) - 32px), max(380px, calc(100vh - 340px)), 620px); } } /* fills the column, but never taller than what shows on screen beside the settings: the sticky window then stays whole in view and the model sits in its middle */
/* the 3D window stays in view while the configuration list beside it scrolls (scene.js follows its live position) */
@media (min-width: 761px) { .build-main .stage3d { position: sticky; top: calc(var(--nav-h) + 16px); } }
/* the nav link lands with the card just under the nav (the section's top padding scrolled away), so the whole preview shows */
@media (min-width: 761px) { #composer { scroll-margin-top: calc(var(--nav-h) + 16px - var(--pad)); } }
/* phones: the chips wrap inside the card padding (no edge bleed, nothing hidden behind a fade) */
@media (max-width: 760px) {
  .build-main .toggles { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; gap: var(--sp-2); -webkit-mask-image: none; mask-image: none; }
}
/* colour swatches: room for the selected ring */
.finish .swatches { padding: var(--sp-1); }

/* ===== Cart drawer + quote form ===== */
.cart-in { padding: max(var(--sp-4), env(safe-area-inset-top, 0px)) var(--sp-5) 0; }
@media (max-width: 480px) { .cart-in { padding-left: var(--sp-4); padding-right: var(--sp-4); } }
.cart-head { margin-bottom: var(--sp-4); }
.cart-lines { gap: var(--sp-3); }
.cart-line { padding: var(--sp-4); }
.cart-line h3 { margin-bottom: var(--sp-2); }
.cl-mods { margin-bottom: var(--sp-4); }
.cl-mods li + li { margin-top: var(--sp-1); }
.cart-foot { padding-top: var(--sp-5); }
.cart-note { margin-bottom: var(--sp-4); }
.cart-form { margin-top: var(--sp-5); }
.cart-form h3, .cart-done h3 { margin: 0 0 var(--sp-2); }
.cf-field { gap: var(--gap-label); margin-bottom: var(--sp-4); }
.cf-actions { gap: var(--sp-3); }
.cart-empty p { margin-bottom: var(--sp-4); }

/* ===== Round 9 ===== */
/* composer, two columns: a long configuration list scrolls inside, so "Ajouter au panier" stays near the viewer */
@media (min-width: 1001px) {
  #configList { max-height: 50vh; overflow-y: auto; overscroll-behavior: contain; }
  #configList > li { flex-shrink: 0; }
}
/* demo request: a secondary text link under "Ajouter au panier" */
.cfg-demo { justify-self: center; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--blue-ink); font-weight: 600; font-size: 15px; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.cfg-demo:hover { text-decoration-thickness: 2px; }
/* headings with a forced line break: balance leaves a one-word last line ("faut."), pretty avoids it */
h1:has(br), h2:has(br) { text-wrap: pretty; }

/* ===== Modules: one large card at a time (app.js adds .is-tabs and the chip row; without JS the cards stay stacked) ===== */
.mod-nav { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.mod-chips { flex: 1 1 auto; min-width: 0; display: flex; gap: var(--sp-2); overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px; scroll-padding-inline: 4px; }
.mod-chips::-webkit-scrollbar { display: none; }
.mod-chips button, .mod-arrow { cursor: pointer; border: 0; min-height: 44px; font: 600 15px Barlow, "Barlow Fallback", sans-serif; color: var(--ink); background: var(--surface); border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--edge); transition: background .2s ease, color .2s ease, transform .16s var(--ease-out); white-space: nowrap; }
.mod-chips button { flex: none; padding: 6px 18px; }
.mod-chips button[aria-selected="true"] { background: var(--solid); color: var(--on-solid); box-shadow: none; }
.mod-arrow { flex: none; width: 44px; padding: 0; display: grid; place-items: center; }
.mod-arrow svg { width: 18px; height: 18px; }
.mod-chips button:focus-visible, .mod-arrow:focus-visible { outline-offset: 2px; border-radius: 999px; }
.mod-chips button:active, .mod-arrow:active { transform: scale(.97); }
@media (hover: hover) { .mod-chips button:not([aria-selected="true"]):hover, .mod-arrow:hover { box-shadow: inset 0 0 0 1px var(--ink); } }
.grid-spec.mod-tabs.is-tabs { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); --dir: 1; touch-action: pan-y; background: none; border: 0; overflow: visible; }
.grid-spec.mod-tabs.is-tabs > article[role="tabpanel"] { grid-area: 1 / 1; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--sp-8); align-content: start;
  background: var(--surface); border: 0; border-radius: var(--r); box-shadow: var(--hair); padding: var(--sp-8); min-height: 100%;
  visibility: hidden; transition: visibility 0s .35s; } /* the outgoing card stays under the incoming one, then goes */
/* the incoming card's solid background covers the outgoing one at once; only its content fades in, so two texts never mix */
.grid-spec.mod-tabs.is-tabs > article[role="tabpanel"] > * { opacity: 0; transform: translateX(calc(var(--dir) * 24px)); transition: opacity 0s .35s, transform 0s .35s; }
.grid-spec.mod-tabs.is-tabs > article[role="tabpanel"].on { z-index: 1; visibility: visible; transition: visibility 0s; }
.grid-spec.mod-tabs.is-tabs > article[role="tabpanel"].on > * { opacity: 1; transform: none; transition: opacity .3s ease .05s, transform .45s var(--ease-out) .05s; }
.grid-spec.mod-tabs.is-tabs > article[role="tabpanel"]:focus-visible { outline-offset: 4px; border-radius: var(--r); }
.grid-spec.mod-tabs.is-tabs > article[role="tabpanel"] > .tl { --s: .8; grid-row: 1 / span 3; align-self: start; margin: 0; }
.grid-spec.mod-tabs.is-tabs > article[role="tabpanel"] > .tl.ko { --s: .6; }
.grid-spec.mod-tabs.is-tabs > article[role="tabpanel"] h3 { font-size: var(--fs-h2s); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 var(--sp-4); }
.grid-spec.mod-tabs.is-tabs > article[role="tabpanel"] > p { font-size: 20px; line-height: 1.5; max-width: 40ch; }
.grid-spec.mod-tabs.is-tabs > article[role="tabpanel"] .sheet { grid-column: 2; margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); font-size: 17px; }
.grid-spec.mod-tabs.is-tabs > article[role="tabpanel"] .sheet dt { font-size: 12px; }
.grid-spec.mod-tabs.is-tabs > article[role="tabpanel"] .st { font-size: 14px; padding: 4px 12px; }
/* "Et ensuite": a short line under the card, not a tab */
.grid-spec.mod-tabs.is-tabs > .soon { grid-area: 2 / 1; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--sp-4); align-items: center; padding: 0; border: 0; background: none; }
.grid-spec.mod-tabs.is-tabs > .soon .tl { --s: .3; grid-row: span 2; margin: 0; }
.grid-spec.mod-tabs.is-tabs > .soon h3 { margin: 0; font-size: var(--fs-h3); }
.grid-spec.mod-tabs.is-tabs > .soon p { color: var(--muted); }
/* wide screens: the spec sheet stands in its own column on the right, so the card has no empty half */
@media (min-width: 901px) {
  .grid-spec.mod-tabs.is-tabs > article[role="tabpanel"] { grid-template-columns: auto minmax(0, 1fr) minmax(220px, 300px); }
  .grid-spec.mod-tabs.is-tabs > article[role="tabpanel"] .sheet { grid-column: 3; grid-row: 1 / span 3; align-self: stretch; align-content: center; margin: 0;
    padding: 0 0 0 var(--sp-7); border-top: 0; border-left: 1px solid var(--line); grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
}
@media (max-width: 900px) {
  .grid-spec.mod-tabs.is-tabs > article[role="tabpanel"] { column-gap: var(--sp-6); padding: var(--sp-7) var(--sp-6); }
  .grid-spec.mod-tabs.is-tabs > article[role="tabpanel"] > .tl { --s: .6; }
  .grid-spec.mod-tabs.is-tabs > article[role="tabpanel"] > .tl.ko { --s: .45; }
}
@media (max-width: 760px) {
  .mod-nav { margin-left: calc(-1 * var(--sp-4)); margin-right: calc(-1 * var(--sp-4)); padding: 0 var(--sp-4); gap: var(--sp-2); }
  .grid-spec.mod-tabs.is-tabs > article[role="tabpanel"] { grid-template-columns: minmax(0, 1fr); padding: var(--sp-6) var(--sp-5); }
  .grid-spec.mod-tabs.is-tabs > article[role="tabpanel"] > .tl { --s: .5; grid-row: auto; margin-bottom: var(--sp-5); }
  .grid-spec.mod-tabs.is-tabs > article[role="tabpanel"] > .tl.ko { --s: .38; }
  .grid-spec.mod-tabs.is-tabs > article[role="tabpanel"] > p { font-size: 18px; }
  .grid-spec.mod-tabs.is-tabs > article[role="tabpanel"] .sheet { grid-column: auto; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); font-size: 16px; }
  .grid-spec.mod-tabs.is-tabs > .soon { align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  .grid-spec.mod-tabs.is-tabs > article[role="tabpanel"] > *, .grid-spec.mod-tabs.is-tabs > article[role="tabpanel"].on > * { transform: none; transition: none; }
}

/* ===== Short screens (laptops, small windows): the composer lands whole, preview and "Ajouter au panier" on screen ===== */
@media (min-width: 1001px) and (max-height: 800px) {
  .composer .card.build { padding-top: 24px; padding-bottom: 24px; }
  .cfg-row { display: none; } /* the small tile row repeats the 3D preview beside it */
  .build-main .stage3d { min-height: 300px; }
}
/* one column (narrow, short window): the preview shrinks to fit under the chips */
@media (min-width: 761px) and (max-width: 1000px) and (max-height: 800px) {
  .build-main .stage3d { min-height: 220px; height: max(220px, calc(100vh - 360px)); max-height: none; flex: none; }
}

/* home FAQ: one centred column, like the sections around it */
#faq > .wrap { max-width: 760px; margin-inline: auto; }
/* phone chip strip: the last visible chip fades out instead of being cut */
.mod-chips { padding-right: 28px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
/* the Partenaires one-pager e-mail link: taller tap area, same line */
.brief-box dd a { padding: 12px 0; }
/* partenaires: PDF download under the summary, team grid */
.brief-dl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin: 20px 0 0; }
.brief-dl .more-link { margin-top: 0; }
.seek.team { grid-template-columns: repeat(4, 1fr); }
.seek.team div { padding-bottom: 20px; }
@media (max-width: 900px) { .seek.team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .seek.team { grid-template-columns: 1fr; } }
.brief-box .brief-dl .btn { color: #fff; } /* the summary colours its links blue: keep the button label white */
