/* ==========================================================================
   style.css : portfolio de Daniel Kikimba, version 3 « Control Room »
   Esthétique salle de contrôle énergétique : fond nuit, grille technique,
   cyan électrique (signal) + ambre (énergie), libellés monospace façon HUD.
   Polices : Space Grotesk (titres), Inter (texte), JetBrains Mono (détails).
   Thème sombre par défaut ; thème clair via le bouton ou la préférence système.
   ========================================================================== */

/* ---------- Variables : thème sombre ---------- */
:root {
  --bg: #04080F;
  --bg-2: #070E19;
  --surface: #0A1322;
  --surface-2: #0F1B30;
  --border: #16263F;
  --border-2: #22385A;
  --ink: #E8F0FB;
  --ink-2: #8FA3BF;
  --ink-3: #5E7392;
  --primary: #22D3EE;
  --primary-ink: #5BE0F5;
  --primary-deep: #0891B2;
  --amber: #FBB724;
  --green: #34E3A0;
  --red: #FF6B6B;
  --grad: linear-gradient(135deg, #0891B2 0%, #22D3EE 100%);
  --grad-text: linear-gradient(90deg, #22D3EE 0%, #7DE9FF 55%, #FBB724 130%);
  --glow: rgba(34, 211, 238, .22);
  --shadow: 0 20px 60px rgba(0, 0, 0, .5);
  --grid-line: rgba(143, 163, 191, .07);

  --font-head: "Space Grotesk", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 72px;

  color-scheme: dark;
}

/* ---------- Thème clair ---------- */
:root[data-theme="light"] {
  --bg: #F4F7FB;
  --bg-2: #EAF0F7;
  --surface: #FFFFFF;
  --surface-2: #F1F5FA;
  --border: #D5DFEB;
  --border-2: #B9C8DC;
  --ink: #0A1626;
  --ink-2: #475C77;
  --ink-3: #7288A4;
  --primary: #0891B2;
  --primary-ink: #0E7490;
  --primary-deep: #155E75;
  --amber: #B45309;
  --green: #059669;
  --red: #DC2626;
  --grad: linear-gradient(135deg, #0E7490 0%, #0891B2 100%);
  --grad-text: linear-gradient(90deg, #0E7490 0%, #0891B2 60%, #B45309 130%);
  --glow: rgba(8, 145, 178, .16);
  --shadow: 0 18px 44px rgba(20, 45, 85, .13);
  --grid-line: rgba(10, 22, 38, .06);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--primary-ink); }
button { font: inherit; color: inherit; }
::selection { background: var(--primary); color: #04202A; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.ic { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.skip { position: absolute; left: -999px; top: 0; z-index: 100; padding: .6rem 1rem; background: var(--primary); color: #04202A; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }
.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .72rem 1.25rem; border: 1px solid transparent; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .2s, border-color .15s, background-color .15s;
}
.btn-primary { background: var(--grad); color: #03222B; box-shadow: 0 8px 26px var(--glow); }
:root[data-theme="light"] .btn-primary { color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px var(--glow); }
.btn-primary:disabled { opacity: .65; cursor: progress; transform: none; }
.btn-ghost { background: var(--surface); border-color: var(--border-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-ink); }
.btn-lg { padding: .95rem 1.55rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-in { display: flex; align-items: center; gap: 1.4rem; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: .75rem; margin-right: auto; color: var(--ink); text-decoration: none; }
.logo-mark {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px;
  background: var(--grad); color: #03222B; font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  box-shadow: 0 6px 22px var(--glow);
}
:root[data-theme="light"] .logo-mark { color: #fff; }
.logo-text { display: grid; line-height: 1.15; }
.logo-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.logo-sub { font-family: var(--font-mono); font-size: .40rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

.nav { display: flex; gap: 1.2rem; }
.nav a {
  position: relative; white-space: nowrap; padding: .3rem 0; color: var(--ink-2);
  text-decoration: none; font-size: .8rem; font-weight: 600; transition: color .15s;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }

.header-tools { display: flex; align-items: center; gap: .55rem; }
.seg { display: inline-flex; overflow: hidden; border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface); }
.seg button { padding: .42rem .7rem; border: 0; background: transparent; color: var(--ink-2); font-family: var(--font-mono); font-size: .76rem; font-weight: 700; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--grad); color: #03222B; }
:root[data-theme="light"] .seg button[aria-pressed="true"] { color: #fff; }
.icon-btn {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid var(--border-2);
  border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none;
  transition: border-color .15s, color .15s;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary-ink); }
.btn-header { padding: .6rem 1rem; white-space: nowrap; }
.menu-btn { display: none; }
@media (max-width: 1280px) { .btn-header { display: none; } }
@media (max-width: 1100px) {
  .menu-btn { display: inline-grid; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; gap: 0;
    padding: .5rem clamp(1rem, 4vw, 2rem) 1rem; background: var(--bg); border-bottom: 1px solid var(--border);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a { padding: .95rem 0; border-bottom: 1px solid var(--border); }
  .nav a::after { display: none; }
}
@media (max-width: 520px) { .logo-sub { display: none; } .seg button { padding: .42rem .55rem; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: clip; padding-top: clamp(3rem, 7vw, 5.5rem); }
.grid-canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: .9; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 44% at 82% 14%, var(--glow), transparent 70%),
    radial-gradient(40% 40% at 4% 68%, color-mix(in srgb, var(--amber) 9%, transparent), transparent 72%),
    linear-gradient(to bottom, transparent 70%, var(--bg));
}
.hero-noise {
  position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000 5%, transparent 80%); mask-image: linear-gradient(to bottom, #000 5%, transparent 80%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.4rem; padding: .45rem 1rem;
  border: 1px solid var(--border-2); border-radius: 999px; background: color-mix(in srgb, var(--surface) 85%, transparent);
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500; color: var(--ink);
}
.pill-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 25%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 30%, transparent); } 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--green) 0%, transparent); } }

.hero-name { font-size: clamp(2.8rem, 7.4vw, 5.4rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hero-roles {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin-top: 1.3rem;
  font-family: var(--font-head); font-weight: 600; font-size: clamp(1.05rem, 2.2vw, 1.5rem); line-height: 1.3;
}
.hero-roles i { width: .4rem; height: .4rem; border-radius: 50%; background: var(--amber); flex: none; }
.hero-roles .hl { color: var(--primary-ink); }
.hero-type { margin-top: 1rem; min-height: 1.6em; font-family: var(--font-mono); font-size: clamp(.82rem, 1.6vw, .98rem); color: var(--ink-2); }
.hero-type .prompt { color: var(--amber); font-weight: 700; }
.caret { display: inline-block; width: .55ch; height: 1.1em; margin-left: 2px; vertical-align: -.15em; background: var(--primary); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-lead { margin-top: 1.2rem; max-width: 56ch; color: var(--ink-2); font-size: 1.1rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.social-row { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.1rem; margin-top: 2rem; }
.social-label { color: var(--ink-3); font-family: var(--font-mono); font-size: .74rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.social { display: flex; flex-wrap: wrap; gap: .55rem; }
.social a {
  display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border: 1px solid var(--border-2); border-radius: 12px;
  background: var(--surface); color: var(--ink); transition: border-color .15s, transform .15s, color .15s;
}
.social a:hover { border-color: var(--primary); color: var(--primary-ink); transform: translateY(-3px); }

.hero-visual { position: relative; width: 100%; max-width: 410px; justify-self: center; }
.photo-card { position: relative; padding: 10px; border-radius: 30px; background: linear-gradient(160deg, var(--border-2), var(--border)); box-shadow: var(--shadow); overflow: hidden; }
.photo-card::before { content: ""; position: absolute; inset: -40px; z-index: -1; background: radial-gradient(closest-side, var(--glow), transparent); }
.photo-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; border-radius: 22px; background: var(--surface-2); }
.scan {
  position: absolute; left: 10px; right: 10px; top: 10px; height: 90px; border-radius: 22px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--primary) 22%, transparent), transparent);
  animation: scan 5s ease-in-out infinite;
}
@keyframes scan { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(calc(100% * 4.2)); opacity: 0; } }

.hud {
  position: absolute; left: 50%; bottom: -26px; z-index: 2; width: min(86%, 300px); transform: translateX(-50%);
  padding: .8rem 1rem; border: 1px solid var(--border-2); border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--shadow); font-family: var(--font-mono); font-size: .68rem;
}
.hud-row { display: flex; justify-content: space-between; gap: 1rem; line-height: 1.8; }
.hud-k { color: var(--ink-3); letter-spacing: .1em; }
.hud-v { color: var(--ink); text-align: right; }
.hud-v.ok { color: var(--green); font-weight: 700; }
.hud-wave { width: 100%; height: 26px; margin-top: .35rem; }
.hud-wave polyline { fill: none; stroke: var(--primary); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 3.2s linear infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.float {
  position: absolute; display: flex; align-items: center; gap: .75rem; padding: .65rem 1rem .65rem .7rem;
  border: 1px solid var(--border-2); border-radius: 16px; background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow); animation: bob 6s ease-in-out infinite;
}
.float-ic { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 11px; background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary-ink); }
.float small { display: block; color: var(--ink-3); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; }
.float strong { display: block; font-family: var(--font-head); font-size: .88rem; font-weight: 600; line-height: 1.3; }
.f1 { top: 6%; right: -14%; }
.f2 { top: 22%; left: -22%; animation-delay: -1.5s; }
.f3 { bottom: 20%; right: -12%; animation-delay: -3s; }
.f3 .float-ic { background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--amber); }
.f4 { bottom: 34%; left: -18%; animation-delay: -4.5s; }
.f4 .float-ic { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(3.5rem, 8vw, 5rem);
  border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 76%, transparent); overflow: hidden;
}
.stats > div { display: flex; flex-direction: column-reverse; gap: .1rem; padding: 1.4rem 1.6rem; }
.stats > div + div { border-left: 1px solid var(--border); }
.stats dt { color: var(--ink-2); font-size: .88rem; font-weight: 500; }
.stats dd { font-family: var(--font-head); font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

.marquee { margin-top: clamp(2.5rem, 6vw, 3.5rem); overflow: hidden; border-block: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee-track span { padding: .9rem 1.6rem; font-family: var(--font-mono); font-size: .8rem; color: var(--ink-2); white-space: nowrap; }
.marquee-track span::before { content: "//"; margin-right: 1.6rem; color: var(--primary); opacity: .7; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 340px; margin-top: .5rem; margin-bottom: 1.5rem; }
  .f1 { right: -6px; } .f2 { left: -6px; } .f3 { right: -6px; } .f4 { left: -6px; }
  .float { padding: .5rem .8rem .5rem .55rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 520px) { .f2, .f4 { display: none; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; margin-bottom: .9rem; color: var(--primary-ink); font-family: var(--font-mono); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-no { padding: .12rem .5rem; border: 1px solid var(--border-2); border-radius: 6px; color: var(--amber); font-size: .7rem; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); font-weight: 700; }
.section-head { margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head.center { max-width: 780px; margin-inline: auto; text-align: center; }
.section-lead { margin-top: 1rem; color: var(--ink-2); font-size: 1.08rem; }
.bar { display: block; width: 80px; height: 4px; margin: 1.6rem auto 0; border-radius: 4px; background: var(--grad); }
.sub-title { margin: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; font-size: 1.35rem; text-align: center; }
.sub-title.left { text-align: left; margin-top: clamp(2.2rem, 5vw, 3.2rem); display: flex; align-items: center; gap: 1rem; }
.sub-title.left::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.sub-title.left:first-of-type { margin-top: 0; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* À propos */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-grid h2 { max-width: 20ch; }
.about-p { margin-top: 1.2rem; max-width: 64ch; color: var(--ink-2); font-size: 1.04rem; }
.about-p.lead-p { color: var(--ink); font-size: 1.12rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-top: 1.8rem; }
.facts li { display: flex; align-items: center; gap: .65rem; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-size: .9rem; font-weight: 600; }
.facts .ic { color: var(--primary-ink); }
.about-side { display: grid; gap: 1.2rem; }
.panel { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.panel h3 { margin-bottom: 1rem; font-size: 1.02rem; }
.panel-accent { border-color: color-mix(in srgb, var(--amber) 40%, var(--border)); background: linear-gradient(160deg, color-mix(in srgb, var(--amber) 8%, var(--surface)), var(--surface)); }
.checks { display: grid; gap: .65rem; }
.checks li { display: flex; align-items: center; gap: .75rem; font-weight: 600; font-size: .95rem; }
.checks .ic { width: 1.55rem; height: 1.55rem; padding: .3rem; border-radius: 50%; background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary-ink); stroke-width: 2.2; }
.now { display: grid; gap: .7rem; }
.now li { display: flex; align-items: flex-start; gap: .7rem; font-size: .93rem; color: var(--ink-2); }
.dot { flex: none; width: .55rem; height: .55rem; margin-top: .5em; border-radius: 50%; background: var(--ink-3); }
.dot.live { background: var(--amber); box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 22%, transparent); }
@media (max-width: 860px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
.svc {
  position: relative; display: flex; flex-direction: column; gap: .8rem; padding: 1.7rem; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  transition: border-color .2s, transform .2s, box-shadow .25s;
}
.svc::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.svc:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 18px 44px var(--glow); }
.svc:hover::before { transform: scaleX(1); }
.svc-ic { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary-ink); }
.svc-ic .ic { width: 1.5rem; height: 1.5rem; }
.svc h3 { font-size: 1.15rem; }
.svc p { color: var(--ink-2); font-size: .94rem; flex: 1; }
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.2rem; padding: 1.8rem 2rem;
  border: 1px solid var(--border-2); border-radius: var(--radius); background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 12%, var(--surface)), var(--surface));
}
.cta-band h3 { font-size: 1.35rem; }
.cta-band p { margin-top: .3rem; color: var(--ink-2); }
@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: minmax(0, 1fr); } }

/* Approche */
.flow { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.4rem; }
.flow::before, .flow::after { content: ""; position: absolute; top: 28px; left: 28px; right: 28px; height: 2px; }
.flow::before { background: var(--border-2); }
.flow::after { background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.4, 0, .2, 1); }
.flow.in::after { transform: scaleX(1); }
.stage { position: relative; z-index: 1; }
.stage-mark { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1.2rem; border: 2px solid var(--primary); border-radius: 50%; background: var(--bg); color: var(--primary-ink); box-shadow: 0 0 24px var(--glow); }
.stage-mark .ic { width: 1.5rem; height: 1.5rem; }
.stage-no { display: block; margin-bottom: .3rem; color: var(--amber); font-family: var(--font-mono); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.stage h3 { font-size: 1.08rem; }
.stage p { margin-top: .55rem; color: var(--ink-2); font-size: .92rem; }
.layer { display: flex; gap: 1.1rem; margin-top: 2.75rem; padding: 1.5rem; border: 1px solid var(--border); border-left: 4px solid var(--amber); border-radius: var(--radius); background: var(--surface); }
.layer .ic { width: 1.75rem; height: 1.75rem; margin-top: .15rem; color: var(--amber); }
.layer h3 { font-size: 1.1rem; }
.layer p { margin-top: .4rem; max-width: 76ch; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 1000px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .flow::before, .flow::after { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; }
  .flow::after { transform: scaleY(0); transform-origin: top; }
  .flow.in::after { transform: scaleY(1); }
  .stage { padding-left: 4.75rem; }
  .stage-mark { position: absolute; left: 0; top: 0; margin: 0; }
}

/* Compétences */
.stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.stack-card { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.stack-card.wide { grid-column: 1 / -1; }
.stack-card h3 { display: flex; align-items: center; gap: .7rem; font-size: 1.02rem; }
.stack-ic { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 12px; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary-ink); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; }
.chips li {
  padding: .3rem .8rem; border: 1px solid var(--border-2); border-radius: 999px; background: var(--surface-2);
  font-size: .85rem; font-weight: 600; transition: border-color .15s, color .15s, transform .15s;
}
.chips li:hover { border-color: var(--primary); color: var(--primary-ink); transform: translateY(-2px); }
.chips li.core { border-color: color-mix(in srgb, var(--primary) 55%, var(--border-2)); background: color-mix(in srgb, var(--primary) 12%, var(--surface-2)); color: var(--primary-ink); }
@media (max-width: 960px) { .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .stack { grid-template-columns: minmax(0, 1fr); } }

.soft-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.soft-grid li { display: flex; gap: .9rem; padding: 1.2rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.soft-grid .ic { width: 1.6rem; height: 1.6rem; margin-top: .15rem; color: var(--amber); }
.soft-grid strong { display: block; font-family: var(--font-head); font-size: .98rem; }
.soft-grid span { display: block; margin-top: .25rem; color: var(--ink-2); font-size: .86rem; line-height: 1.5; }
@media (max-width: 1000px) { .soft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .soft-grid { grid-template-columns: minmax(0, 1fr); } }

/* Logiciels */
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.tool {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .9rem; align-items: center; padding: 1rem 1.1rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .15s, transform .15s;
}
.tool:hover { border-color: var(--primary); transform: translateY(-3px); }
.tool-ic { grid-row: span 2; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: color-mix(in srgb, var(--primary) 13%, transparent); color: var(--primary-ink); }
.tool strong { font-family: var(--font-head); font-size: .95rem; line-height: 1.25; }
.tool small { color: var(--ink-3); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .02em; }
@media (max-width: 1000px) { .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .tools { grid-template-columns: minmax(0, 1fr); } }

/* Réalisations */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2.25rem; }
.chip {
  padding: .6rem 1.1rem; border: 1px solid var(--border-2); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-2);
  font-size: .92rem; font-weight: 700; cursor: pointer; transition: border-color .15s, color .15s;
}
.chip:hover { border-color: var(--primary); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: #03222B; box-shadow: 0 8px 22px var(--glow); }
:root[data-theme="light"] .chip[aria-pressed="true"] { color: #fff; }
.chip small { margin-left: .45rem; opacity: .75; font-family: var(--font-mono); font-size: .8em; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.card {
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: var(--surface);
  transition: border-color .2s, transform .25s, box-shadow .25s, opacity .3s; will-change: transform;
}
.card:hover { border-color: var(--primary); box-shadow: 0 18px 46px var(--glow); }
.card.hide { display: none; }
.card.featured { grid-column: 1 / -1; flex-direction: row; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 1.4rem 1.5rem 1.5rem; }
.card.featured .card-body { justify-content: center; padding: 2rem 2.25rem; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .7rem; }
.card-type { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-2); font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.card-type::before { content: ""; width: .55rem; height: .55rem; border-radius: 3px; background: var(--amber); }
.live {
  display: inline-flex; align-items: center; gap: .4rem; padding: .16rem .65rem; border: 1px solid color-mix(in srgb, var(--green) 40%, transparent);
  border-radius: 999px; background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green); font-size: .72rem; font-weight: 700;
}
.live::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; }
.live.amber { border-color: color-mix(in srgb, var(--amber) 45%, transparent); background: color-mix(in srgb, var(--amber) 13%, transparent); color: var(--amber); }
.card h3 { font-size: 1.28rem; }
.card.featured h3 { font-size: 1.65rem; }
.card-org { margin-top: .25rem; color: var(--primary-ink); font-size: .9rem; font-weight: 600; }
.card-desc { margin-top: .8rem; color: var(--ink-2); font-size: .95rem; }
.card-role { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--border); color: var(--ink-2); font-size: .88rem; }
.card-role strong { color: var(--ink); }
.card .tags { margin-top: auto; padding-top: 1rem; }
.card-link { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.1rem; color: var(--primary-ink); font-weight: 700; font-size: .92rem; text-decoration: none; }
.card-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.card-link .ic { width: 1rem; height: 1rem; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.tags li { padding: .18rem .65rem; border: 1px solid var(--border-2); border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-family: var(--font-mono); font-size: .72rem; }
.svc .tags { margin-top: .3rem; }

/* Aperçus : interface abstraite */
.media {
  position: relative; display: flex; flex: none; align-items: flex-end; justify-content: center; aspect-ratio: 16 / 10; overflow: hidden; padding: 1.1rem 1.1rem 0;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(80% 80% at 20% 0%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 70%), var(--surface-2);
}
.card.featured .media { flex: 0 0 48%; aspect-ratio: auto; min-height: 330px; padding: 1.75rem 1.75rem 0; border-bottom: 0; border-right: 1px solid var(--border); }
.mock { display: grid; flex: 1; min-width: 0; grid-template-columns: 26px minmax(0, 1fr); align-self: stretch; overflow: hidden; border: 1px solid var(--border-2); border-bottom: 0; border-radius: 14px 14px 0 0; background: var(--surface); box-shadow: var(--shadow); }
.mock.mock-phone { flex: none; width: 46%; min-width: 130px; max-width: 190px; grid-template-columns: minmax(0, 1fr); border-radius: 22px 22px 0 0; border-width: 2px; }
.mock-side { display: flex; flex-direction: column; gap: 9px; padding: 12px 7px; border-right: 1px solid var(--border); }
.mock-side i { height: 8px; border-radius: 3px; background: var(--border-2); }
.mock-side i:first-child { background: var(--primary); }
.mock-main { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 12px; }
.mock-top { display: flex; align-items: center; justify-content: space-between; }
.mock-top b { width: 38%; height: 8px; border-radius: 4px; background: var(--ink-2); opacity: .45; }
.mock-top span { width: 18px; height: 18px; border-radius: 50%; background: var(--primary); opacity: .85; }
.mock-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mock-tiles i { height: 26px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
.mock-tiles i:nth-child(1) { border-top: 3px solid var(--primary); }
.mock-tiles i:nth-child(2) { border-top: 3px solid var(--amber); }
.mock-tiles i:nth-child(3) { border-top: 3px solid var(--green); }
.mock-body { flex: 1; min-height: 0; overflow: hidden; }
.mrow { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.mrow span { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); }
.mrow em { flex: 1; height: 6px; border-radius: 3px; background: var(--border-2); }
.mrow u { width: 34px; height: 9px; border-radius: 5px; background: color-mix(in srgb, var(--amber) 70%, transparent); }
.mrow:nth-child(2) u { background: color-mix(in srgb, var(--green) 70%, transparent); }
.mrow:nth-child(3) u { background: color-mix(in srgb, var(--primary) 70%, transparent); }
.mrow:nth-child(2) em { flex: .8; }
.mrow:nth-child(4) em { flex: .6; }
.mrow:nth-child(5) u { background: color-mix(in srgb, var(--green) 70%, transparent); }
.mrow:nth-child(5) em { flex: .9; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 100%; min-height: 60px; }
.bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(var(--primary), color-mix(in srgb, var(--primary) 25%, transparent)); transform-origin: bottom; animation: grow 3s ease-in-out infinite alternate; }
.bars i:nth-child(1) { height: 38%; } .bars i:nth-child(2) { height: 62%; animation-delay: -.4s; } .bars i:nth-child(3) { height: 48%; animation-delay: -.8s; }
.bars i:nth-child(4) { height: 80%; animation-delay: -1.2s; } .bars i:nth-child(5) { height: 58%; animation-delay: -1.6s; } .bars i:nth-child(6) { height: 92%; animation-delay: -2s; } .bars i:nth-child(7) { height: 70%; animation-delay: -2.4s; }
@keyframes grow { from { transform: scaleY(.82); } to { transform: scaleY(1); } }
.mock-body svg { display: block; width: 100%; height: 100%; min-height: 60px; }
.mock-body polyline { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mock-body .l1 { stroke: var(--primary); }
.mock-body .l2 { stroke: var(--amber); opacity: .85; }

/* Aperçus : illustrations SVG (maison, IA, G3-PLC) */
.media .art { align-self: center; width: min(100%, 360px); height: auto; margin-bottom: 1rem; }
.art .a-line { fill: none; stroke: var(--primary); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.art .a-fill { fill: color-mix(in srgb, var(--primary) 10%, var(--surface)); stroke: var(--border-2); stroke-width: 1.5; }
.art .a-box { fill: none; stroke: var(--amber); stroke-width: 2; stroke-dasharray: 5 4; animation: dash 6s linear infinite; }
.art .a-wave { fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; opacity: .8; }
.art .a-dot { fill: var(--green); animation: blinkdot 2.4s ease-in-out infinite; }
.art .a-dot.p2 { animation-delay: -.8s; } .art .a-dot.p3 { animation-delay: -1.6s; }
@keyframes blinkdot { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes dash { to { stroke-dashoffset: -90; } }

/* Aperçus : sites web */
.browser { display: flex; flex-direction: column; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.browser-bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .8rem; border-bottom: 1px solid var(--border); }
.browser-bar i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--border-2); }
.browser-url { flex: 1; min-width: 0; margin-left: .5rem; padding: .14rem .65rem; overflow: hidden; border-radius: 6px; background: var(--bg); color: var(--ink-2); font-family: var(--font-mono); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.browser-view { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(80% 80% at 20% 0%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%), var(--surface-2); }
.browser-view img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.browser-view .mono { font-family: var(--font-head); font-size: 2.7rem; font-weight: 700; letter-spacing: .04em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card.featured { flex-direction: column; }
  .card.featured .media { flex: none; aspect-ratio: 16 / 8; min-height: 0; border-right: 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 680px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card.featured .media { aspect-ratio: 16 / 10; }
}

/* Parcours : frise centrale alternée */
.tl { position: relative; display: grid; gap: 2rem; }
.tl::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: linear-gradient(to bottom, var(--primary), var(--border-2) 70%, transparent); }
.tl-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: start; }
.tl-node { grid-column: 2; grid-row: 1; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; justify-self: center; border: 2px solid var(--primary); border-radius: 50%; background: var(--bg); color: var(--primary-ink); }
.tl-item.current .tl-node { border-color: var(--amber); color: var(--amber); box-shadow: 0 0 28px color-mix(in srgb, var(--amber) 38%, transparent); }
.tl-card { grid-row: 1; padding: 1.6rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .2s, transform .2s; }
.tl-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.tl-item:nth-child(odd) .tl-card { grid-column: 1; margin-right: 1.5rem; }
.tl-item:nth-child(even) .tl-card { grid-column: 3; margin-left: 1.5rem; }
.tl-when { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; color: var(--primary-ink); font-family: var(--font-mono); font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.badge { padding: .12rem .6rem; border-radius: 999px; background: color-mix(in srgb, var(--amber) 20%, transparent); color: var(--amber); font-size: .68rem; }
.tl-card h3 { margin-top: .5rem; font-size: 1.2rem; }
.tl-org { margin-top: .3rem; color: var(--ink-2); font-weight: 600; font-size: .94rem; }
.points { display: grid; gap: .5rem; margin-top: 1rem; }
.points li { position: relative; padding-left: 1.15rem; color: var(--ink-2); font-size: .93rem; }
.points li::before { content: ""; position: absolute; left: 0; top: .72em; width: .5rem; height: 2px; background: var(--primary); }
@media (max-width: 900px) {
  .tl::before { left: 26px; }
  .tl-item { grid-template-columns: 52px minmax(0, 1fr); }
  .tl-node { grid-column: 1; justify-self: start; }
  .tl-item:nth-child(odd) .tl-card, .tl-item:nth-child(even) .tl-card { grid-column: 2; margin: 0 0 0 1rem; }
}

/* Formations */
.train-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.train { display: flex; gap: 1.1rem; padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, transform .15s; }
.train:hover { border-color: var(--primary); transform: translateY(-3px); }
.train-ic { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary-ink); }
.train h4 { margin-top: .5rem; font-size: 1.08rem; }
.train p { margin-top: .4rem; color: var(--ink-2); font-size: .92rem; }
.status { display: inline-block; padding: .12rem .65rem; border-radius: 999px; font-family: var(--font-mono); font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.status.done { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.status.going { background: color-mix(in srgb, var(--amber) 16%, transparent); color: var(--amber); }
.edu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.edu-grid li { display: flex; flex-direction: column; gap: .3rem; padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.edu-grid .ic { width: 2.8rem; height: 2.8rem; padding: .75rem; margin-bottom: .6rem; border-radius: 14px; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary-ink); }
.edu-year { color: var(--primary-ink); font-family: var(--font-mono); font-size: .76rem; font-weight: 700; letter-spacing: .05em; }
.edu-grid h4 { font-size: 1.08rem; }
.edu-grid p { color: var(--ink-2); font-size: .9rem; }
.langs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.langs li { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.langs .ic { width: 2.6rem; height: 2.6rem; padding: .6rem; border-radius: 12px; background: color-mix(in srgb, var(--amber) 15%, transparent); color: var(--amber); }
.langs strong { display: block; font-family: var(--font-head); font-size: 1.02rem; }
.langs span { color: var(--ink-2); font-size: .9rem; }
@media (max-width: 900px) { .train-grid, .edu-grid, .langs { grid-template-columns: minmax(0, 1fr); } }

/* Méthode */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.1rem; counter-reset: s; }
.steps li { position: relative; padding: 1.5rem 1.3rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, transform .15s; }
.steps li:hover { border-color: var(--primary); transform: translateY(-4px); }
.step-no { display: block; margin-bottom: .8rem; font-family: var(--font-mono); font-size: 2rem; font-weight: 700; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.steps h3 { font-size: 1.05rem; }
.steps p { margin-top: .45rem; color: var(--ink-2); font-size: .88rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: .8rem; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .15s; }
.faq details[open] { border-color: var(--primary); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--primary-ink); transition: transform .25s; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq p { padding: 0 1.3rem 1.2rem; color: var(--ink-2); font-size: .96rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-lead { max-width: 52ch; margin-bottom: 1.75rem; color: var(--ink-2); font-size: 1.06rem; }
.ccards { display: grid; gap: .9rem; margin-bottom: 2rem; }
.ccard { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); transition: border-color .15s; }
.ccard:hover { border-color: var(--primary); }
.ccard-ic { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary-ink); }
.ccard small { display: block; color: var(--ink-3); font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5; }
.ccard a:not(.icon-btn), .ccard .val { display: block; overflow-wrap: anywhere; color: var(--ink); font-weight: 700; text-decoration: none; }
.ccard a:not(.icon-btn):hover { color: var(--primary-ink); }
.ccard-actions { display: flex; gap: .4rem; }
.contact .social-label { display: block; margin-bottom: .8rem; }

.form { display: grid; gap: 1.1rem; padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--border-2); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.form h3 { display: flex; align-items: center; gap: .7rem; font-size: 1.25rem; }
.form h3 .ic { color: var(--primary-ink); }
.form label { display: grid; gap: .45rem; color: var(--ink-2); font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.form input, .form textarea, .form select {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--border-2); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink);
  font: inherit; font-size: 1rem; font-weight: 500; letter-spacing: 0; text-transform: none;
}
.form input::placeholder, .form textarea::placeholder { color: color-mix(in srgb, var(--ink-2) 65%, transparent); }
.form textarea { min-height: 9.5rem; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.form .invalid { border-color: var(--red); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; font-size: .92rem; font-weight: 600; text-align: center; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }
.form-note { color: var(--ink-3); font-size: .82rem; text-align: center; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .form-row { grid-template-columns: minmax(0, 1fr); } }

/* Notification et bouton flottant */
.toast { position: fixed; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); z-index: 90; padding: .8rem 1.3rem; border: 1px solid var(--border-2); border-radius: 12px; background: var(--surface-2); color: var(--ink); font-weight: 700; font-size: .92rem; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.fab { position: fixed; right: 1.2rem; bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); z-index: 55; display: grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid var(--border-2); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s, transform .25s, border-color .15s; }
.fab.show { opacity: 1; pointer-events: auto; transform: none; }
.fab:hover { border-color: var(--primary); color: var(--primary-ink); }

/* Pied de page */
.footer { padding-block: 3rem 1.75rem; border-top: 1px solid var(--border); background: var(--bg-2); color: var(--ink-2); font-size: .9rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.footer-brand { max-width: 340px; display: grid; gap: 1rem; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: .5rem 2.5rem; align-content: start; }
.footer-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--primary-ink); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; }
.to-top { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 700; text-decoration: none; }
.to-top:hover { color: var(--primary-ink); }
.privacy { margin-top: 1.2rem; color: var(--ink-3); font-size: .78rem; line-height: 1.55; max-width: 90ch; }
.visitor-stats { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 30px; background: var(--surface); font-size: .85em; }
.stat-item { display: flex; align-items: center; gap: 6px; opacity: .85; }
.stat-item span { font-family: var(--font-mono); font-weight: 700; font-size: 1.05em; color: var(--ink); }
.stat-item small { color: var(--ink-3); }
.stat-item .ic { width: 16px; height: 16px; color: var(--primary-ink); }
.stat-divider { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); opacity: .5; }
@media (max-width: 768px) {
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-top { flex-direction: column; }
}

/* ---------- Mouvement réduit et 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; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
@media print {
  :root, :root[data-theme] { --bg: #fff; --bg-2: #fff; --surface: #fff; --surface-2: #f4f6f9; --ink: #000; --ink-2: #333; --ink-3: #555; --border: #ccc; --border-2: #bbb; }
  .header, .progress, .filters, .form, .hero-cta, .to-top, .toast, .float, .menu-btn, .fab, .marquee, .grid-canvas, .hud, .hero-noise { display: none !important; }
  .hero::before { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .section { padding-block: 1.5rem; }
  .card, .tl-card, .stack-card, .svc, .train { break-inside: avoid; }
}
