/* ==========================================================================
   Portfolio — Abdelali Morad  ·  interface v2
   Papier ivoire, encre, vert profond, laiton ; héros sombre avec scène 3D.
   Tout est lisible sans JavaScript ; le JavaScript n'ajoute que du confort.
   ========================================================================== */

@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-var.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107.4%; ascent-override: 90.2%; descent-override: 22.5%; line-gap-override: 0%; }
@font-face { font-family: "Serif Fallback"; src: local("Georgia"); size-adjust: 92%; ascent-override: 98%; descent-override: 28%; line-gap-override: 0%; }

:root {
  --paper: #f6f2e9; --paper-2: #eee8da; --card: #fbf9f3;
  --ink: #15140f; --ink-2: #3c3930; --mute: #665e4f;
  --line: rgba(21, 20, 15, .14); --line-2: rgba(21, 20, 15, .28);
  --green: #1b5a44; --green-ink: #123e2f; --green-soft: #e1ebe4;
  --brass: #a07c26; --brass-ink: #6f5412;
  --night: #0a120e; --night-2: #111f19; --dark: #14130f;
  --mint: #8fd1b3; --mint-2: #bfe6d2;
  --on-dark: #f3eee2; --on-dark-mute: #b9b2a1;
  --serif: "Instrument Serif", "Serif Fallback", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --radius: 2px; --r: 12px;
  --gutter: clamp(16px, 4vw, 32px); --max: 1180px; --hdr: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink-2); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--green-ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 3px; }
.on-dark :focus-visible, .section--dark :focus-visible, .hero3d :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible { outline-color: var(--mint); }
h1, h2, h3, h4 { overflow-wrap: break-word; margin: 0; color: var(--ink); font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6.2vw, 5.2rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.06; }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); line-height: 1.15; }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
em { font-style: italic; color: var(--green); }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
strong { color: var(--ink); font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.kicker { font: 500 .75rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brass-ink); margin: 0 0 18px; }
.section--dark .kicker, .hero3d .kicker { color: #d6b564; }

/* ---------- Barre de progression et barre mobile ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; background: linear-gradient(90deg, var(--mint), var(--brass)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }
.dock { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 90; display: flex; gap: 8px; transform: translateY(160%); transition: transform .4s var(--ease); }
.dock.is-on { transform: none; }
.dock a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 14px; background: var(--ink); color: #fff; font: 600 .95rem/1 var(--sans); text-decoration: none; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .55); }
.dock a + a { background: var(--green); }
@media (min-width: 900px) { .dock { display: none; } }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(246, 242, 233, .9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); transition: background .3s, border-color .3s; }
.bar { display: flex; align-items: center; gap: 28px; min-height: var(--hdr); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand__mark { display: grid; place-items: center; width: 38px; height: 38px; background: var(--green); color: #f6f2e9; font: italic 400 1.25rem/1 var(--serif); border-radius: var(--radius); letter-spacing: .02em; }
.brand__txt { display: grid; line-height: 1.15; }
.brand__txt strong { font: 600 .98rem/1.15 var(--sans); letter-spacing: -.005em; color: inherit; }
.brand__txt small { font: 500 .68rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.nav { display: none; gap: 24px; }
.nav a { position: relative; color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 500; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--green); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.bar .btn { display: none; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 12px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary i, .menu summary i::before, .menu summary i::after { display: block; width: 18px; height: 1.5px; background: var(--ink); content: ""; position: relative; transition: transform .25s, background .25s; }
.menu summary i::before { position: absolute; top: -6px; }
.menu summary i::after { position: absolute; top: 6px; }
.menu[open] summary i { background: transparent; }
.menu[open] summary i::before { top: 0; transform: rotate(45deg); }
.menu[open] summary i::after { top: 0; transform: rotate(-45deg); }
.menu nav { position: absolute; right: 0; top: calc(100% + 10px); width: min(320px, 88vw); background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 24px 50px rgba(21, 20, 15, .22); padding: 8px; animation: pop .25s var(--ease); }
.menu nav a { display: block; padding: 15px 14px; text-decoration: none; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.menu nav a:last-child { border-bottom: 0; background: var(--green); color: #fff; border-radius: 10px; margin-top: 8px; text-align: center; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (min-width: 980px) { .nav { display: flex; } .bar .btn { display: inline-flex; } .menu { display: none; } }

/* En-tête transparent au-dessus du héros sombre (JavaScript actif seulement) */
.js .home .site-header { position: fixed; left: 0; right: 0; top: 0; }
.js .home .site-header:not(.is-scrolled) { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.js .home .site-header:not(.is-scrolled) .brand, .js .home .site-header:not(.is-scrolled) .nav a { color: #fff; }
.js .home .site-header:not(.is-scrolled) .brand__txt small { color: #a9bdb1; }
.js .home .site-header:not(.is-scrolled) .nav a::after { background: var(--mint); }
.js .home .site-header:not(.is-scrolled) .menu summary { border-color: rgba(255, 255, 255, .35); }
.js .home .site-header:not(.is-scrolled) .menu summary i, .js .home .site-header:not(.is-scrolled) .menu summary i::before, .js .home .site-header:not(.is-scrolled) .menu summary i::after { background: #fff; }
.js .home .site-header:not(.is-scrolled) .menu[open] summary i { background: transparent; }

/* ---------- Boutons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 26px; max-width: 100%; text-align: center; white-space: normal; overflow-wrap: anywhere; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: 600 .95rem/1.25 var(--sans); text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.btn:hover { background: var(--green-ink); border-color: var(--green-ink); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(21, 20, 15, .55); }
.btn:active { transform: translateY(0); }
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(4px); }
.btn--sm { min-height: 42px; padding: 9px 20px; font-size: .88rem; }
.btn--green { background: var(--green); border-color: var(--green); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--mint { background: var(--mint); border-color: var(--mint); color: #07130d; }
.btn--mint:hover { background: #fff; border-color: #fff; color: #07130d; }
.btn--ghost-light { background: rgba(255, 255, 255, .04); color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn--ghost-light:hover { background: #fff; color: #07130d; border-color: #fff; }
.btn--light { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Apparition au défilement ---------- */
@media (scripting: enabled) {
  .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .rv.in { opacity: 1; transform: none; }
  html:not([data-rv]) .rv { animation: rvfs 0s 3s forwards; }
}
@keyframes rvfs { to { opacity: 1; transform: none; } }
.rv-1 { transition-delay: .08s; } .rv-2 { transition-delay: .16s; } .rv-3 { transition-delay: .24s; } .rv-4 { transition-delay: .32s; }

/* ---------- Héros 3D ---------- */
.hero3d { position: relative; isolation: isolate; overflow: hidden; color: #c9d8cf; background:
  radial-gradient(1100px 620px at 80% 14%, rgba(143, 209, 179, .17), transparent 62%),
  radial-gradient(760px 520px at 6% 96%, rgba(214, 181, 100, .11), transparent 60%),
  linear-gradient(180deg, #08110d 0%, #0f1d17 100%);
  padding: calc(var(--hdr) + clamp(34px, 7vw, 86px)) 0 clamp(70px, 9vw, 120px); }
.hero3d__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; pointer-events: none; }
.hero3d__canvas.is-on { opacity: 1; }
.hero3d__grid { display: grid; gap: clamp(40px, 5vw, 70px); align-items: center; }
.hero3d h1 { color: #fff; font-size: clamp(2.6rem, 5.3vw, 4.8rem); margin: 0 0 24px; }
.hero3d h1 em { color: var(--mint); }
.hero3d .lede { font-size: clamp(1.06rem, 1.45vw, 1.22rem); line-height: 1.62; max-width: 38em; margin-bottom: 32px; color: #c0d0c6; }
.hero3d .cta-row { margin-bottom: 8px; }
.hero3d__note { margin: 22px 0 0; font: 500 .78rem/1.5 var(--mono); letter-spacing: .02em; color: #86a091; }
.me { display: inline-flex; align-items: center; gap: 13px; padding: 6px 20px 6px 6px; margin-bottom: 28px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); border-radius: 999px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; text-decoration: none; transition: border-color .3s, background .3s; }
.me:hover { border-color: rgba(143, 209, 179, .7); background: rgba(255, 255, 255, .09); color: #fff; }
.me img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(143, 209, 179, .65); }
.me strong { display: block; color: #fff; font: 600 .94rem/1.15 var(--sans); }
.me small { display: block; font: 500 .68rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #9db4a6; }
.cue { display: none; position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); flex-direction: column; align-items: center; gap: 8px; color: #86a091; font: 500 .66rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.cue::after { content: ""; width: 1px; height: 38px; background: linear-gradient(var(--mint), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 40% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (min-width: 1000px) { .hero3d__grid { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); } .cue { display: flex; } }

/* Scène 3D : cartes empilées dans l'espace, inclinées par le pointeur */
.stage { position: relative; perspective: 1700px; min-height: clamp(340px, 47vw, 590px); }
.stage__in { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(7deg - var(--my, 0) * 5deg)) rotateY(calc(-16deg + var(--mx, 0) * 10deg)); transition: transform .35s var(--ease); }
.s-card { position: absolute; width: 78%; transform-style: preserve-3d; }
.s-card > div { animation: floaty 8s ease-in-out infinite; }
.s-card .frame { box-shadow: 0 56px 100px -36px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .08); background: #0c1511; border-color: rgba(255, 255, 255, .1); }
.s-card .frame__bar { background: #17241d; border-bottom-color: rgba(255, 255, 255, .08); }
.s-card .frame__url { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .1); color: #8fa89a; }
.s-card .frame__dots i { background: rgba(255, 255, 255, .22); }
.s-card--1 { left: 0; top: 0; width: 72%; transform: translateZ(0); }
.s-card--2 { right: -2%; top: 33%; transform: translateZ(110px); width: 64%; }
.s-card--3 { left: 4%; bottom: 0; transform: translateZ(210px); width: 54%; }
.s-card--2 > div { animation-delay: -2.7s; } .s-card--3 > div { animation-delay: -5.3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
.stage .glow { position: absolute; inset: 8% 6% 6%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(143, 209, 179, .22), transparent); filter: blur(30px); }
@media (max-width: 999px) {
  .stage { perspective: none; min-height: 0; }
  .stage__in { position: relative; inset: auto; transform: none; }
  .s-card { position: relative; width: 100%; transform: none; left: auto; right: auto; top: auto; bottom: auto; }
  .s-card--2, .s-card--3 { display: none; }
}

/* ---------- Bande de chiffres ---------- */
.facts { position: relative; background: var(--night-2); color: var(--on-dark); border-top: 1px solid rgba(255, 255, 255, .06); }
.facts__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fact { padding: 32px clamp(14px, 2.2vw, 28px); border-left: 1px solid rgba(243, 238, 226, .12); border-top: 1px solid rgba(243, 238, 226, .12); }
.fact:nth-child(odd) { border-left: 0; padding-left: 0; }
.fact:nth-child(-n+2) { border-top: 0; }
.fact__n { font: 400 clamp(2.6rem, 4.8vw, 3.8rem)/1 var(--serif); color: #fff; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.fact__n sup { font-size: .5em; color: var(--mint); }
.fact__l { margin: 12px 0 0; font-size: .92rem; line-height: 1.45; color: var(--on-dark-mute); }
.fact__l strong { color: var(--on-dark); font-weight: 600; display: block; }
@media (min-width: 860px) {
  .facts__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fact { border-top: 0; padding-block: 40px; }
  .fact:nth-child(odd) { border-left: 1px solid rgba(243, 238, 226, .12); padding-left: clamp(14px, 2.2vw, 28px); }
  .fact:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(68px, 9vw, 124px) 0; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--night); color: #c2d1c8; position: relative; isolation: isolate; overflow: hidden; }
.section--dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(900px 480px at 85% 0%, rgba(143, 209, 179, .12), transparent 60%), radial-gradient(700px 420px at 0% 100%, rgba(214, 181, 100, .08), transparent 60%); }
.section--dark h2, .section--dark h3, .section--dark strong { color: #fff; }
.section--dark em { color: var(--mint); }
.section--dark p { color: #a9bdb1; }
.section__head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head h2 { margin-bottom: 18px; }
.section__head p:not(.kicker) { font-size: 1.1rem; margin: 0; }
.section__head .kicker { margin-bottom: 18px; }
.section__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(30px, 4vw, 48px); }
.section__row .section__head { margin: 0; }

/* Piliers : quatre cartes */
.pillars { list-style: none; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pillar { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px 28px 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.pillar:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -32px rgba(21, 20, 15, .5); border-color: var(--green); }
.pillar__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--green-soft); color: var(--green); font-size: 1.55rem; transition: background .3s, color .3s; }
.pillar:hover .pillar__ic { background: var(--green); color: #fff; }
.pillar__n { position: absolute; top: 24px; right: 26px; font: 500 .75rem/1 var(--mono); color: var(--brass-ink); letter-spacing: .08em; }
.pillar p { margin: 0; font-size: .98rem; }
.pillar .more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .94rem; text-decoration: none; }
.pillar .more .ic { transition: transform .25s var(--ease); }
.pillar:hover .more .ic { transform: translateX(5px); }

/* ---------- Cadres navigateur / téléphone ---------- */
.frame { background: var(--card); border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 0 rgba(21, 20, 15, .04), 0 24px 48px -20px rgba(21, 20, 15, .35); }
.frame__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #ebe5d6; border-bottom: 1px solid var(--line); }
.frame__dots { display: flex; gap: 6px; flex: none; }
.frame__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(21, 20, 15, .22); }
.frame__url { flex: 1; min-width: 0; padding: 4px 12px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); border-radius: 999px; font: 500 .72rem/1.5 var(--mono); color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame img { width: 100%; background: var(--dark); }
a.frame { display: block; text-decoration: none; }
.phone { border: 5px solid #1b1a15; border-radius: 22px; overflow: hidden; background: #1b1a15; }
.phone img { width: 100%; }
figure { margin: 0; }
figcaption { margin-top: 12px; font: 500 .78rem/1.5 var(--mono); color: var(--mute); }

/* ---------- Carrousel (défilement natif + boutons) ---------- */
.slider { position: relative; }
.slider__vp { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); outline-offset: -2px; }
.js .slider__vp { scrollbar-width: none; }
.slider__vp::-webkit-scrollbar { display: none; }
.slider__track { display: flex; gap: 20px; padding-block: 10px 30px; list-style: none; }
.slide { flex: 0 0 min(86%, 560px); scroll-snap-align: start; display: flex; }
.slide > * { flex: 1; }
.slider__ctl { display: none; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.js .slider__ctl { display: flex; }
.sbtn { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; font-size: 1.15rem; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.sbtn:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); transform: scale(1.06); }
.sbtn:disabled { opacity: .3; cursor: default; }
.sdots { display: flex; gap: 8px; align-items: center; margin-left: 8px; }
.sdot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line-2); cursor: pointer; transition: width .3s var(--ease), background .3s; }
.sdot.is-on { width: 28px; background: var(--green); }
.section--dark .sbtn { border-color: rgba(255, 255, 255, .25); color: #fff; }
.section--dark .sbtn:hover:not(:disabled) { background: var(--mint); color: #07130d; border-color: var(--mint); }
.section--dark .sdot { background: rgba(255, 255, 255, .25); }
.section--dark .sdot.is-on { background: var(--mint); }
.slider__count { margin-left: auto; font: 500 .8rem/1 var(--mono); color: var(--mute); }
.section--dark .slider__count { color: #86a091; }

/* Carte projet */
.pcard { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; transform-style: preserve-3d; will-change: transform; }
.pcard:hover { box-shadow: 0 36px 70px -34px rgba(21, 20, 15, .55); border-color: var(--line-2); }
.pcard__media { position: relative; background: var(--night); aspect-ratio: 16 / 10; overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__kind { position: absolute; left: 14px; top: 14px; padding: 5px 11px; border-radius: 999px; background: rgba(10, 18, 14, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #d9e7de; font: 500 .68rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.pcard__body { display: grid; gap: 12px; align-content: start; flex: 1; padding: 24px 26px 28px; }
.pcard__body h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.pcard__body p { margin: 0; font-size: .98rem; }
.pcard__links { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; margin-top: 4px; }
.pcard__links a, .refcard__links a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-weight: 600; font-size: .92rem; }
.plain { color: inherit; text-decoration: none; }
.plain:hover { color: var(--green); }
.plain::after { content: ""; position: absolute; inset: 0; }
.pcard { position: relative; }
.pcard__links a, .pcard__body .tags { position: relative; z-index: 2; }

/* Carte agent */
.acard { display: flex; flex-direction: column; gap: 16px; height: 100%; padding: 28px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #c2d1c8; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.acard:hover { transform: translateY(-6px); border-color: rgba(143, 209, 179, .55); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.acard__top { display: flex; align-items: center; gap: 16px; }
.acard h3 { font-size: 1.9rem; line-height: 1; }
.acard__role { display: block; margin-top: 6px; font: 500 .7rem/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #d6b564; }
.acard p { margin: 0; font-size: .96rem; color: #b2c4b9; }
.acard ul { list-style: none; display: grid; gap: 8px; }
.acard li { position: relative; padding-left: 22px; font-size: .92rem; line-height: 1.5; color: #c2d1c8; }
.acard li::before { content: ""; position: absolute; left: 0; top: .42em; width: 12px; height: 12px; border-radius: 50%; background: var(--mint); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.acard .no li::before { background: #e08a78; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.acard h4 { font: 600 .7rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #86a091; margin: 4px 0 -4px; }
.acard__canaux { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.acard__canaux span { padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); font: 500 .7rem/1.3 var(--mono); color: #9fb5a8; }
.med { --ac: #2e8b6c; flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; font: italic 400 1.9rem/1 var(--serif); color: #fff; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .45), var(--ac) 52%, rgba(0, 0, 0, .55) 130%); box-shadow: 0 0 0 2px rgba(255, 255, 255, .14), 0 12px 26px -8px var(--ac); }
.ag-1 { --ac: #2e8b6c; } .ag-2 { --ac: #c0963a; } .ag-3 { --ac: #2f8a94; } .ag-4 { --ac: #bf5a38; } .ag-5 { --ac: #8a4f7d; } .ag-6 { --ac: #4f6aa0; }
.agrid { list-style: none; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.agrid > li { display: flex; }
.agrid > li > * { flex: 1; }
.agrid > li[hidden] { display: none; }
.filters { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.js .filters { display: flex; }
.chip { border: 1px solid rgba(255, 255, 255, .22); background: transparent; color: #dbe6df; padding: 10px 18px; border-radius: 999px; font: 500 .86rem/1 var(--sans); cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.chip:hover { border-color: var(--mint); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--mint); border-color: var(--mint); color: #07130d; }
.fn { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 44px; }
@media (min-width: 760px) { .fn { grid-template-columns: 1fr 1fr; } }
.fn > div { padding: 24px 26px; border: 1px dashed rgba(255, 255, 255, .22); border-radius: 14px; }
.fn h3 { font-size: 1.6rem; margin-bottom: 4px; }
.fn .acard__role { margin: 0 0 10px; }
.fn p { margin: 0; font-size: .95rem; }

/* ---------- Références SEO et publicité ---------- */
.refgrid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .refgrid { grid-template-columns: 1fr 1fr; } }
.refcard { display: flex; flex-direction: column; gap: 16px; padding: 32px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.refcard:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -34px rgba(21, 20, 15, .5); border-color: var(--green); }
.refcard h3 { font-size: 2rem; }
.refcard > p { margin: 0; }
.refcard ul { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.refcard li { position: relative; padding: 13px 0 13px 28px; border-bottom: 1px solid var(--line); font-size: .96rem; }
.refcard li::before, .adcard li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 16px; height: 16px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.refcard__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: auto; padding-top: 4px; font-weight: 600; font-size: .93rem; }
.adgrid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .adgrid { grid-template-columns: 1fr 1fr; } }
.adcard { display: flex; flex-direction: column; gap: 16px; padding: 34px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.adcard__ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--green); color: #fff; font-size: 1.6rem; }
.adcard h3 { font-size: 2.1rem; }
.adcard > p { margin: 0; font-size: 1.02rem; }
.adcard ul { list-style: none; border-top: 1px solid var(--line); }
.adcard li { position: relative; padding: 13px 0 13px 28px; border-bottom: 1px solid var(--line); font-size: .96rem; }
.strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: 26px; padding: 22px 28px; border: 1px dashed var(--line-2); border-radius: var(--r); background: rgba(255, 255, 255, .5); }
.strip p { margin: 0; max-width: 40em; font-size: .98rem; }

/* ---------- À propos ---------- */
.about { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 860px) { .about { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); } }
.portrait { position: relative; width: min(320px, 74vw); aspect-ratio: 1; margin-inline: auto; }
.portrait::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; background: conic-gradient(from 0deg, var(--green), var(--brass), var(--mint), var(--green)); animation: spin 14s linear infinite; opacity: .9; }
.portrait::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: var(--paper); }
.portrait img { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(21, 20, 15, .6); }
@keyframes spin { to { transform: rotate(360deg); } }
.about h2 { margin-bottom: 20px; }
.about p { max-width: 38em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 24px; }
.chips li { padding: 8px 16px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); font: 500 .8rem/1 var(--mono); letter-spacing: .02em; }

/* ---------- Méthode (étapes) ---------- */
.steps { list-style: none; counter-reset: s; display: grid; gap: 0; border-top: 1px solid rgba(243, 238, 226, .22); }
.step { counter-increment: s; padding: 26px 0; border-bottom: 1px solid rgba(243, 238, 226, .14); display: grid; gap: 8px; transition: background .3s; }
.step::before { content: counter(s, decimal-leading-zero); font: 500 .78rem/1 var(--mono); letter-spacing: .08em; color: #d6b564; }
.step h3 { font-size: 1.5rem; }
.step p { margin: 0; font-size: .98rem; }
.step small { display: block; margin-top: 4px; font: 500 .74rem/1.5 var(--mono); color: var(--mint); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid rgba(243, 238, 226, .22); }
  .step { padding: 30px 22px 34px; border-bottom: 0; border-left: 1px solid rgba(243, 238, 226, .14); align-content: start; }
  .step:first-child { border-left: 0; padding-left: 0; }
  .step:hover { background: rgba(143, 209, 179, .05); }
}
.steps--light { border-top-color: var(--line-2); }
.steps--light .step { border-color: var(--line); }
.steps--light .step::before { color: var(--brass-ink); }
.steps--light .step small { color: var(--green); }
.steps--4 { grid-template-columns: 1fr; }
@media (min-width: 900px) { .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .steps--light { border-bottom-color: var(--line); } .steps--light .step { border-left-color: var(--line); } }
.section--tint .steps--light .step:hover, .steps--light .step:hover { background: rgba(27, 90, 68, .05); }

/* Points vérifiables */
.checks { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.checks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.checks h3 { font: 600 1.05rem/1.35 var(--sans); letter-spacing: 0; margin-bottom: 4px; }
.checks p { margin: 0; font-size: .98rem; }
@media (min-width: 900px) { .checks--2 { grid-template-columns: 1fr 1fr; column-gap: 56px; } }

/* Pile technique */
.stack { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.stack__row { display: grid; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.stack__row h3 { font: 600 .78rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brass-ink); }
@media (min-width: 760px) { .stack__row { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: baseline; } }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.tag { display: inline-block; padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 .73rem/1.4 var(--mono); color: var(--ink-2); transition: background .25s, color .25s, border-color .25s; }
.tag:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* FAQ */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 48px 24px 0; position: relative; font: 400 1.45rem/1.25 var(--serif); color: var(--ink); transition: color .25s; }
.faq summary:hover { color: var(--green); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 300 2rem/1 var(--sans); color: var(--green); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 26px; max-width: 46rem; animation: pop .35s var(--ease); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Bandeau contact */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--green); color: #eaf3ee; padding: clamp(60px, 8vw, 100px) 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 360px at 90% 0%, rgba(143, 209, 179, .28), transparent 60%), radial-gradient(600px 300px at 0% 100%, rgba(0, 0, 0, .25), transparent 60%); }
.cta-band h2 { color: #fff; max-width: 18em; margin-bottom: 18px; }
.cta-band h2 em { color: var(--mint-2); }
.cta-band p { max-width: 38em; font-size: 1.1rem; color: #d3e6dc; }
.cta-band .btn { background: #fff; color: var(--green-ink); border-color: #fff; }
.cta-band .btn:hover { background: var(--paper); transform: translateY(-2px); }
.cta-band .btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta-band .btn--ghost-light:hover { background: #fff; color: var(--green-ink); }

/* ---------- Pages intérieures ---------- */
.crumbs { padding-top: 22px; font: 500 .78rem/1.4 var(--mono); color: var(--mute); }
#meta { margin-top: 36px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line-2); }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-head { padding: clamp(28px, 5vw, 56px) 0 clamp(32px, 5vw, 56px); }
.page-head h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); margin: 0 0 22px; max-width: 16em; }
.page-head .lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); max-width: 42em; margin-bottom: 28px; }
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, #08110d, #0f1d17); color: #c0d0c6; padding: calc(var(--hdr) * 0 + clamp(40px, 6vw, 80px)) 0 clamp(54px, 7vw, 96px); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(900px 480px at 85% 0%, rgba(143, 209, 179, .18), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(214, 181, 100, .1), transparent 60%); }
.page-hero h1 { color: #fff; font-size: clamp(2.5rem, 5.4vw, 4.6rem); margin: 0 0 22px; max-width: 16em; }
.page-hero h1 em { color: var(--mint); }
.page-hero .lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); max-width: 42em; margin-bottom: 28px; color: #c0d0c6; }
.page-hero .crumbs { padding-top: 0; margin-bottom: 26px; color: #86a091; }
.page-hero .crumbs a { color: #86a091; }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero .crumbs li + li::before { color: rgba(255, 255, 255, .25); }
.page-hero .kicker { color: #d6b564; }
.meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); margin: 0; }
.meta div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.meta dt { font: 500 .72rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brass-ink); margin-bottom: 6px; }
.meta dd { margin: 0; font-size: .96rem; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
@media (min-width: 860px) { .meta { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.case-grid { display: grid; gap: 40px; }
@media (min-width: 980px) { .case-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; align-items: start; } .aside { position: sticky; top: 100px; } }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 56px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.4em; }
.prose li { position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line); }
.prose li::before { content: ""; position: absolute; left: 2px; top: 1.28em; width: 10px; height: 1.5px; background: var(--green); }
.prose li:first-child { border-top: 1px solid var(--line); }
.prose p { max-width: 44em; }
.note { border-left: 3px solid var(--brass); background: var(--card); padding: 18px 22px; margin: 0 0 1.4em; }
.note p { margin: 0; font-size: .98rem; }
.box { border: 1px solid var(--line-2); background: var(--card); padding: 24px; border-radius: var(--r); }
.box h2 { font: 600 .78rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brass-ink); margin: 0 0 14px; }
.box ul { list-style: none; }
.box li { padding: 10px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.box li:first-child { border-top: 0; padding-top: 0; }
.box li a { font-weight: 600; word-break: break-word; }
.box li span { display: block; color: var(--mute); font-size: .84rem; }
.aside .box + .box { margin-top: 24px; }
.box p { font-size: .95rem; }
.box p:last-child { margin-bottom: 0; }
.box .mini-facts { margin-top: 0; border-top: 0; }
.mini-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); margin: 4px 0 0; }
.mini-facts div { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line); }
.mini-facts dt { font: 400 1.9rem/1 var(--serif); color: var(--ink); }
.mini-facts dd { margin: 6px 0 0; font-size: .86rem; line-height: 1.4; color: var(--mute); }
.gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin: 8px 0 0; }
.gallery > * { min-width: 0; }
@media (min-width: 760px) { .gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery--wide > figure:first-child { grid-column: 1 / -1; } }
.phone-fig .phone { max-width: 220px; }
.pn { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.pn a { display: grid; gap: 4px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pn a small { font: 500 .72rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brass-ink); }
.pn a span { font: 400 1.7rem/1.2 var(--serif); transition: color .25s; }
.pn a:hover span { color: var(--green); }
@media (min-width: 760px) { .pn { grid-template-columns: 1fr 1fr; } .pn a + a { padding-left: 32px; border-left: 1px solid var(--line); text-align: right; } .pn a:only-child { grid-column: 1 / -1; } }
.other { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.other li { display: grid; gap: 6px; padding: 26px 0; border-bottom: 1px solid var(--line); align-content: start; }
.other .frame { margin-bottom: 14px; }
.other strong { font: 400 1.7rem/1.15 var(--serif); color: var(--ink); }
.other .mono { color: var(--brass-ink); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.other p { margin: 0; }
.other .frame__url { font-style: italic; }
@media (min-width: 860px) { .other { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; } }
.guards { list-style: none; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .guards { grid-template-columns: 1fr 1fr; } }
.guards li { display: grid; gap: 6px; padding: 24px 26px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; background: rgba(255, 255, 255, .04); }
.guards h3 { font: 600 1.02rem/1.35 var(--sans); letter-spacing: 0; color: #fff; }
.guards p { margin: 0; font-size: .95rem; }

/* Tableau */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 500 .72rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brass-ink); background: var(--paper-2); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; color: var(--ink); width: 34%; }
code, .mono { font: 500 .88em/1.4 var(--mono); }
td code { background: var(--paper-2); padding: 2px 6px; border-radius: 2px; }

/* Contact */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } }
.contact-list { list-style: none; border-top: 1px solid var(--line-2); }
.contact-list li { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list small { font: 500 .72rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brass-ink); }
.contact-list a { font: 400 clamp(1.5rem, 3vw, 2.1rem)/1.2 var(--serif); color: var(--ink); text-decoration: none; word-break: break-word; transition: color .25s; }
.contact-list a:hover { color: var(--green); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-mute); padding: 60px 0 40px; font-size: .94rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot { display: grid; gap: 36px; }
.foot h2 { font: 500 .72rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #d6b564; margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 8px; }
.foot__brand strong { display: block; font: 400 1.9rem/1.1 var(--serif); color: #fff; margin-bottom: 8px; }
.foot__brand p { margin: 0 0 6px; max-width: 24em; }
.foot__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(243, 238, 226, .14); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font: 500 .76rem/1.5 var(--mono); }
@media (min-width: 860px) { .foot { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; } }
@media (max-width: 899px) { .site-footer { padding-bottom: 96px; } }

/* ---------- Mouvement réduit, impression ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rv { opacity: 1 !important; transform: none !important; }
  .stage__in { transform: rotateX(7deg) rotateY(-16deg) !important; }
}
@media print {
  .site-header, .menu, .cta-band, .dock, .progress, .cue, .hero3d__canvas, .slider__ctl, .filters, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section, .hero3d, .page-hero { padding: 18pt 0; background: #fff !important; color: #000 !important; }
  .section--dark, .facts { background: #fff !important; color: #000 !important; }
  .hero3d h1, .section--dark h2, .section--dark h3, .page-hero h1, .fact__n, .fact__l, .fact__l strong, .acard, .acard * { color: #000 !important; }
  .rv { opacity: 1 !important; transform: none !important; }
  .slider__vp { overflow: visible; } .slider__track { flex-wrap: wrap; } .slide { flex: 1 1 45%; }
  .frame { box-shadow: none; break-inside: avoid; }
  .stage { display: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8.5pt; color: #444; word-break: break-all; }
  .proj, .pcard, .acard { break-inside: avoid; }
}

/* Espacements et détails ajoutés après essais visuels */
.refgrid + .cta-row { margin-top: 30px; }
.chips + .cta-row { margin-top: 28px; }
.slider__vp.drag { cursor: grabbing; user-select: none; }
@media (hover: hover) and (pointer: fine) { .slider__vp { cursor: grab; } .slider__vp img { -webkit-user-drag: none; user-select: none; } }

/* Petits écrans : cartes plus compactes, points de carrousel masqués (le compteur suffit) */
@media (max-width: 559px) {
  .sdots { display: none; }
  .refcard, .adcard, .pillar, .acard { padding: 24px 20px; }
  .refcard h3 { font-size: 1.7rem; }
  .adcard h3 { font-size: 1.8rem; }
  .guards li, .fn > div { padding: 20px; }
  .pcard__body { padding: 20px; }
  .cta-row .btn { flex: 1 1 100%; }
  .me { padding-right: 16px; }
}

.meta > div { min-width: 0; }
