/* NARII.K — feuille de style unique. Mobile d'abord. Palette issue du logo : bleu, indigo, violet. */

:root {
  /* Thème sombre unique, palette issue du logo (bleu, indigo, violet) */
  --bg: #0a0a0f;
  --surface: #13131d;
  --surface-2: #1a1a2b;
  --text: #f2f2fa;
  --muted: #a9aac3;
  --link: #b5a4ff;
  --accent: #a78bfa;
  --cta: linear-gradient(135deg, #4f46e5, #9333ea);
  --cta-hover: linear-gradient(135deg, #5b51ec, #9a3fe8);
  --cta-text: #ffffff;
  --border: #2b2b44;
  --focus: #7dd3fc;
  --ok: #86efac;
  --ok-bg: #12351f;
  --err: #fda4af;
  --err-bg: #3b1519;
  --info-bg: #1a2442;
  --todo-bg: #3a3212;
  --radius: 0.75rem;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 6px 18px rgb(0 0 0 / 25%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.75rem; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

a { color: var(--link); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 0.5rem;
}
.skip-link:focus { top: 0.5rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container { width: 100%; max-width: 68rem; margin-inline: auto; padding-inline: 1rem; }
.section { padding-block: 2.5rem; }
.section-alt { background: var(--surface-2); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 42rem; }
.eyebrow { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; color: var(--link); margin-bottom: 0.5rem; }
.narrow { max-width: 46rem; }

/* En-tête */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding-block: 0.5rem; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { display: block; height: 34px; width: auto; }
.site-header .container { max-width: 80rem; }

.nav-toggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 1rem;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--accent); }
.js .nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; }

.site-nav { width: 100%; }
.js .site-nav { display: none; }
.js .site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0.5rem 0; display: flex; flex-direction: column; gap: 0.25rem; }
.site-nav a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0.75rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 500;
}
.site-nav a:not(.btn):hover { background: var(--surface-2); }
.site-nav a:not(.btn)[aria-current="page"] { font-weight: 700; box-shadow: inset 4px 0 0 var(--accent); background: var(--surface-2); }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.4rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn-cta { background: var(--cta); color: var(--cta-text); }
.btn-cta:hover { background: var(--cta-hover); box-shadow: 0 4px 18px rgb(147 51 234 / 35%); }
.btn-secondary { background: transparent; color: var(--link); border-color: var(--link); }
.btn-secondary:hover { background: var(--surface-2); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Accueil */
.hero { padding-block: 3rem 3.5rem; background: radial-gradient(60rem 30rem at 85% -10%, rgb(91 165 249 / 20%), transparent 60%), radial-gradient(40rem 22rem at 8% 95%, rgb(168 85 247 / 16%), transparent 70%), var(--bg); }
.hero h1 { max-width: 20ch; }

/* Cartes et grilles */
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-icon { width: 2.5rem; height: 2.5rem; color: var(--accent); margin-bottom: 0.75rem; }
.card-link { font-weight: 600; }

.tag {
  display: inline-block;
  padding: 0.15rem 0.7rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  border: 2px solid var(--accent);
  border-radius: 999px;
  color: var(--link);
}

/* Service détaillé */
.service { scroll-margin-top: 5rem; }
.service h2 { font-size: 1.5rem; }
.service dt { font-weight: 700; margin-top: 0.75rem; }
.service dd { margin: 0.15rem 0 0; }

/* Méthode */
.steps { list-style: none; counter-reset: etape; padding: 0; display: grid; gap: 1rem; }
.steps li {
  counter-increment: etape;
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.steps li::before {
  content: counter(etape);
  position: absolute;
  left: 1rem;
  top: 1rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-weight: 800;
}
.steps h3 { margin-bottom: 0.25rem; }
.steps p { margin: 0; }

/* Bande d'appel à l'action */
.cta-band { background: linear-gradient(135deg, #1b1e4d, #35176b); color: var(--text); text-align: center; }
.cta-band h2 { color: inherit; }
.cta-band p { max-width: 38rem; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* Contenu juridique et textes longs */
.prose h2 { margin-top: 2rem; font-size: 1.4rem; }
.prose h3 { margin-top: 1.25rem; }

/* Éléments à compléter (visibles volontairement) */
.todo {
  padding: 0.75rem 1rem;
  background: var(--todo-bg);
  border: 2px dashed var(--muted);
  border-radius: 0.5rem;
}
.todo::before { content: "À compléter : "; font-weight: 700; }

/* Formulaire */
.form { display: grid; gap: 1.25rem; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.req { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.hint { margin: 0 0 0.35rem; color: var(--muted); font-size: 0.95rem; }
input[type="text"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.8rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--muted);
  border-radius: 0.5rem;
}
textarea { min-height: 9rem; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--accent); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[aria-invalid="true"] { border-color: var(--err); border-width: 3px; }
.error { margin: 0.35rem 0 0; color: var(--err); font-weight: 600; }
.error::before { content: "Erreur : "; }
.check { display: flex; gap: 0.75rem; align-items: flex-start; }
.check input { flex: none; width: 1.5rem; height: 1.5rem; margin-top: 0.15rem; accent-color: var(--accent); }
.check label { font-weight: 400; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { margin-bottom: 1.25rem; padding: 1rem; border-radius: 0.5rem; border: 2px solid; font-weight: 500; }
.alert[hidden] { display: none; }
.alert-ok { background: var(--ok-bg); border-color: var(--ok); }
.alert-ok::before { content: "Message envoyé. "; font-weight: 800; color: var(--ok); }
.alert-err { background: var(--err-bg); border-color: var(--err); }
.alert-err::before { content: "Problème. "; font-weight: 800; color: var(--err); }
.alert-info { background: var(--info-bg); border-color: var(--link); }
.alert-info::before { content: "Information. "; font-weight: 800; }
.alert ul { margin: 0.5rem 0 0; }

/* Pied de page */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-block: 2rem; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 1.5rem; }
.footer-grid h2 { font-size: 1rem; margin-bottom: 0.5rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid a { display: inline-flex; align-items: center; min-height: 44px; }
.signature { font-weight: 700; margin-bottom: 0.25rem; }
.copyright { margin-top: 1.5rem; color: var(--muted); }

/* Écrans plus larges */
@media (min-width: 48em) {
  .section { padding-block: 4rem; }
  .hero { padding-block: 5rem 5.5rem; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .contact-layout { display: grid; grid-template-columns: 3fr 2fr; gap: 2.5rem; align-items: start; }

  .brand img { height: 40px; }
  .nav-toggle, .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav { display: block; width: auto; }
  .site-nav ul { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 0; gap: 0.15rem; }
  .site-nav a:not(.btn)[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); background: transparent; border-radius: 0; }
}

@media (min-width: 64em) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ===== Accueil dynamique : hero, confiance, cartes illustrées, FAQ ===== */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(30px); pointer-events: none; }
.hero::before { width: 34rem; height: 34rem; right: -8rem; top: -10rem; background: radial-gradient(circle, rgb(91 165 249 / 28%), transparent 65%); animation: drift 16s ease-in-out infinite alternate; }
.hero::after { width: 30rem; height: 30rem; left: -8rem; bottom: -12rem; background: radial-gradient(circle, rgb(168 85 247 / 24%), transparent 65%); animation: drift 20s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-3rem, 2rem, 0) scale(1.15); } }

.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-media { margin: 0 -1rem; }
.hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 934 / 701;
  -webkit-mask-image: radial-gradient(ellipse closest-side at center, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse closest-side at center, #000 58%, transparent 100%);
}
.hero-note { margin: 1rem 0 0; color: var(--muted); font-size: 0.95rem; }

/* Hero avec vidéo d'ondes lumineuses en fond (la vidéo est décorative, le texte reste lisible grâce au voile). */
.hero--video { display: flex; align-items: center; min-height: clamp(30rem, 72vh, 44rem); }
.hero--video .hero-grid { position: relative; width: 100%; grid-template-columns: 1fr; }
.hero--video .hero-grid > div { max-width: 38rem; }
.hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 80%; }
.hero--video::before { display: none; }
.hero--video::after { inset: 0; width: auto; height: auto; border-radius: 0; filter: none; animation: none; transform: none;
  background: linear-gradient(90deg, rgb(10 10 15 / 82%), rgb(10 10 15 / 50%) 55%, rgb(10 10 15 / 12%)); }
.hero-pause { position: absolute; right: 1rem; bottom: 1rem; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; padding: 0; color: var(--text); background: rgb(19 19 29 / 75%); border: 1px solid var(--border); border-radius: 50%; cursor: pointer; }
.hero-pause:hover { border-color: var(--accent); }
.hero-pause svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.hero-pause .icon-play { display: none; }
.hero-pause[aria-pressed="true"] .icon-play { display: block; }
.hero-pause[aria-pressed="true"] .icon-pause { display: none; }

.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.trust li { display: flex; gap: 0.75rem; align-items: center; padding: 0.75rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-weight: 600; }
.trust svg { flex: none; width: 1.5rem; height: 1.5rem; color: var(--accent); }

.card-lift { transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.card-lift:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 10px 30px rgb(99 102 241 / 22%); }
.card-media { margin: -1.25rem -1.25rem 1rem; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--surface-2); }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card-lift:hover .card-media img { transform: scale(1.05); }

.steps-row li { padding: 4.25rem 1rem 1rem; }
.steps-row li::before { left: 1rem; top: 1rem; }

.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 48px; padding: 0.75rem 1rem; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--accent); }
.faq[open] summary::after { content: "−"; }
.faq-body { padding: 0 1rem 1rem; color: var(--muted); }
.faq-body p:last-child { margin-bottom: 0; }

/* Apparition au défilement (activée par main.js, jamais sans JavaScript ni en mouvement réduit) */
.reveal-on .reveal:not(.in) { opacity: 0; transform: translateY(18px); }
.reveal { transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-on .grid > .reveal:nth-child(2), .reveal-on .trust > .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-on .grid > .reveal:nth-child(3), .reveal-on .trust > .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-on .grid > .reveal:nth-child(4), .reveal-on .trust > .reveal:nth-child(4) { transition-delay: 0.24s; }

/* Barre d'appel à l'action collée en bas (mobile) */
.sticky-cta { position: fixed; left: 1rem; right: 1rem; bottom: max(0.75rem, env(safe-area-inset-bottom, 0px)); z-index: 60; box-shadow: 0 6px 24px rgb(0 0 0 / 50%); }
.has-sticky { padding-bottom: 5rem; }

/* ===== Assistant ===== */
.chat-launcher {
  position: fixed; right: 1rem; bottom: 5rem; z-index: 70;
  min-height: 48px; padding: 0.6rem 1.2rem; font: inherit; font-weight: 700;
  color: var(--text); background: var(--surface-2); border: 2px solid var(--accent); border-radius: 999px;
  box-shadow: 0 6px 24px rgb(0 0 0 / 50%); cursor: pointer;
}
.chat-launcher:hover { background: var(--surface); }
.chat-launcher[hidden] { display: none; }
.chat-panel {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 80;
  display: flex; flex-direction: column;
  width: min(24rem, calc(100vw - 2rem)); height: min(34rem, calc(100dvh - 2rem));
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgb(0 0 0 / 60%);
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.chat-title { margin: 0; font-size: 1.05rem; }
.chat-close { min-height: 44px; padding: 0 0.9rem; font: inherit; color: var(--text); background: transparent; border: 2px solid var(--border); border-radius: 999px; cursor: pointer; }
.chat-close:hover { border-color: var(--accent); }
.chat-note { margin: 0; padding: 0.5rem 1rem; font-size: 0.85rem; color: var(--muted); background: var(--surface-2); }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.chat-msg { max-width: 88%; padding: 0.6rem 0.9rem; border-radius: var(--radius); }
.chat-msg p { margin: 0; }
.chat-bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); }
.chat-user { align-self: flex-end; background: var(--cta); color: var(--cta-text); }
.chat-links { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.chat-links a { font-weight: 600; }
.chat-chips { display: flex; flex-wrap: nowrap; gap: 0.5rem; padding: 0 1rem 0.75rem; overflow-x: auto; }
.chat-chip { flex: none; white-space: nowrap; min-height: 40px; padding: 0.3rem 0.8rem; font: inherit; font-size: 0.9rem; color: var(--link); background: transparent; border: 1px solid var(--accent); border-radius: 999px; cursor: pointer; }
.chat-chip:hover { background: var(--surface-2); }
.chat-form { display: flex; gap: 0.5rem; padding: 0.75rem 1rem; border-top: 1px solid var(--border); }
.chat-input { flex: 1; min-width: 0; min-height: 48px; padding: 0.5rem 0.8rem; font: inherit; color: var(--text); background: var(--bg); border: 2px solid var(--muted); border-radius: 0.5rem; }
.chat-send { min-height: 48px; padding: 0 1rem; font: inherit; font-weight: 700; color: var(--cta-text); background: var(--cta); border: 0; border-radius: 0.5rem; cursor: pointer; }
.chat-send[disabled] { opacity: 0.7; cursor: progress; }

@media (min-width: 48em) {
  .trust { grid-template-columns: repeat(4, 1fr); }
  .sticky-cta { display: none; }
  .has-sticky { padding-bottom: 0; }
  .chat-launcher { bottom: 1rem; }
  .steps-row { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 64em) {
  .hero-grid { grid-template-columns: 0.85fr 1.3fr; gap: 2rem; }
  .hero-media { margin: 0 -3rem 0 0; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 47.99em) {
  /* Le bouton de l'assistant ne doit pas recouvrir la dernière ligne du pied de page */
  .copyright { margin-bottom: 4.5rem; }
  body:not(.has-sticky) .chat-launcher { bottom: 1rem; }
  .chat-panel { bottom: 0.5rem; right: 0.5rem; width: calc(100vw - 1rem); height: min(34rem, calc(100dvh - 1rem)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { animation: none !important; }
  .card-lift:hover { transform: none; }
  .card-lift:hover .card-media img { transform: none; }
}

/* Page sans barre d'appel à l'action collée (Contact) : le bouton de l'assistant reste en bas à droite. */
body:not(.has-sticky) .chat-launcher { bottom: 1rem; }

/* Page Contact : espacement entre le formulaire et la carte d'information sur mobile. */
.contact-layout { display: grid; gap: 2rem; }

/* ===== Réalisations ===== */
.project { display: grid; gap: 1.5rem; }
.project-media img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 0.5rem; }
.project-thumbs { display: grid; grid-template-columns: 1.7fr 1fr; gap: 0.75rem; margin-top: 0.75rem; align-items: start; }
.project-thumbs .thumb-mobile { aspect-ratio: 390 / 460; object-fit: cover; object-position: top; }
.project-body h2 { margin-top: 0.25rem; }
.project-body dt { font-weight: 700; margin-top: 0.75rem; }
.project-body dd { margin: 0.15rem 0 0; color: var(--muted); }
@media (min-width: 64em) {
  .project { grid-template-columns: 1.15fr 1fr; align-items: start; }
}
.project + .project { margin-top: 1.5rem; }
.project-strip { margin-top: 0.75rem; }

/* ===== Animations de lecture : compétences du hero, barre de progression, frise de la Méthode, « Pour continuer » ===== */
.skills { margin-top: 1.75rem; }
.skills-title { margin: 0 0 0.6rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.skills-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-chip { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.5rem; padding: 0 0.9rem; font-size: 0.9rem; font-weight: 600; color: var(--text); text-decoration: none;
  background: rgb(19 19 29 / 72%); border: 1px solid var(--border); border-radius: 999px; transition: border-color 0.3s, background-color 0.3s, transform 0.3s; }
.skill-chip svg { flex: none; width: 1.1rem; height: 1.1rem; color: var(--accent); }
.skill-chip:hover { border-color: var(--accent); background: var(--surface-2); }
.skill-chip.is-active { border-color: #7dd3fc; background: #1d2a4a; transform: translateY(-2px); }
.skill-chip.is-active svg { color: #7dd3fc; }

.read-progress { position: fixed; top: 0; left: 0; z-index: 60; width: 100%; height: 3px; background: var(--cta); transform: scaleX(0); transform-origin: left; pointer-events: none; }

.steps:not(.steps-row) { position: relative; }
.steps:not(.steps-row)::before { content: ""; position: absolute; left: 2.2rem; top: 1.5rem; bottom: 1.5rem; width: 3px; border-radius: 2px;
  background: linear-gradient(#5ba5f9, #a855f7); transform: scaleY(var(--steps-p, 0)); transform-origin: top; opacity: 0.8; }
.steps li { transition: border-color 0.4s, box-shadow 0.4s; }
.steps li::before { transition: box-shadow 0.4s, transform 0.4s; }
.steps li.reached { border-color: var(--accent); }
.steps li.reached::before { box-shadow: 0 0 0 5px rgb(167 139 250 / 25%); transform: scale(1.06); }
.steps:not(.steps-row) li { position: relative; z-index: 1; }

.card:hover .card-icon { transform: translateY(-3px) scale(1.08); }
.card-icon { transition: transform 0.3s; }
.reveal-on .grid > .reveal:nth-child(6) { transition-delay: 0.08s; }
.reveal-on .grid > .reveal:nth-child(7) { transition-delay: 0.16s; }
.reveal-on .grid > .reveal:nth-child(8) { transition-delay: 0.24s; }

.next-grid { margin-top: 1rem; }
.next-card { display: grid; gap: 0.35rem; padding: 1.25rem 3.25rem 1.25rem 1.25rem; position: relative; color: var(--text); text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.next-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 10px 30px rgb(99 102 241 / 22%); }
.next-label { font-size: 1.15rem; font-weight: 800; }
.next-text { color: var(--muted); }
.next-arrow { position: absolute; right: 1.25rem; top: 50%; translate: 0 -50%; font-size: 1.5rem; color: var(--accent); transition: transform 0.2s; }
.next-card:hover .next-arrow { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .skill-chip.is-active, .card:hover .card-icon, .next-card:hover, .next-card:hover .next-arrow { transform: none; }
  .steps li.reached::before { transform: none; }
}

/* Mention du partenaire dans le pied de page */
.footer-partner { display: flex; align-items: center; gap: 0.6rem; }
.footer-partner img { border-radius: 50%; flex: none; }
