/* =============================================================
   style_index.css — Page d'accueil créative
   Thème : dark + violet (#4f52ba / #8e2de2 / #4a00e0)
   Typographie audacieuse · animations fluides au scroll
   ============================================================= */

/* ───── Variables locales (extension de la palette globale) ───── */
.home {
  --c-bg: #0a0a0f;
  --c-bg-2: #11111a;
  --c-bg-3: #1a1a26;
  --c-text: #f4f4f5;
  --c-muted: #a1a1aa;
  --c-grad-1: #8e2de2;
  --c-grad-2: #4a00e0;
  --c-grad-3: #4f52ba;
  --c-pill: rgba(255, 255, 255, 0.06);
  --ease: cubic-bezier(0.32, 0.72, 0.24, 1);
}

/* ───── Reset local ───── */
.home {
  background: var(--c-bg);
  color: var(--c-text);
  font-family:
    "Poppins",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  overflow-x: clip;
  /* Fullscreen, aucun padding hérité (override du legacy `main { padding-left: 85px }`) */
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100dvh;
}
.home * {
  box-sizing: border-box;
}
.home img,
.home video {
  max-width: 100%;
}

/* Body de la home : sidebar masquée par défaut, révélée via une flèche toggle */
body.home-body {
  background: var(--c-bg, #0a0a0f);
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

/* Sidebar masquée par défaut sur la home (translate hors champ).
   Pas de padding sur main.home → la sidebar se superpose au contenu quand ouverte. */
body.home-body .sidebar {
  transform: translateX(-100%);
  transition: transform 0.3s ease, width 0.3s ease;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}
body.home-body.sidebar-open .sidebar {
  transform: translateX(0);
}

/* Flèche toggle discrète, collée au bord gauche de l'écran.
   Suit la sidebar quand elle s'ouvre. Cachée en mobile (la topbar prend le relais). */
.home-sidebar-toggle {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 22px;
  height: 60px;
  background: rgba(20, 20, 30, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: none;
  border-radius: 0 6px 6px 0;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  z-index: 1099;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: left 0.3s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.home-sidebar-toggle:hover {
  background: rgba(142, 45, 226, 0.25);
  color: #fff;
  border-color: rgba(142, 45, 226, 0.5);
}
.home-sidebar-toggle svg {
  display: block;
  transition: transform 0.3s ease;
}
body.home-body.sidebar-open .home-sidebar-toggle {
  left: 76px;
}
body.home-body.sidebar-open .home-sidebar-toggle svg {
  transform: rotate(180deg);
}
/* Sidebar expand au hover → la flèche n'a plus de raison d'être : fade-out */
@media (hover: hover) and (pointer: fine) {
  body.home-body.sidebar-open .sidebar:hover ~ .home-sidebar-toggle {
    opacity: 0;
    pointer-events: none;
  }
}

/* Quand la sidebar s'ouvre, le contenu se décale (et se rétrécit) pour ne pas
   être caché par la sidebar. La home reste ainsi lisible sur écrans moyens. */
body.home-body main.home {
  transition: padding-left 0.3s ease;
  box-sizing: border-box;
}
body.home-body.sidebar-open main.home {
  padding-left: 76px;
}
@media (hover: hover) and (pointer: fine) {
  body.home-body.sidebar-open .sidebar:hover ~ main.home {
    padding-left: 260px;
  }
}

@media (max-width: 768px) {
  .home-sidebar-toggle {
    display: none;
  }
  body.home-body main.home {
    padding-top: 56px;
  }
  body.home-body.sidebar-open main.home {
    padding-left: 0;
  }
}

/* ─────────────────────────────────────────────────────────────
   COMMUN (eyebrow, titres, link arrow, reveal)
   ───────────────────────────────────────────────────────────── */
.home .ch-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--c-muted);
  margin: 0 0 14px;
}
.home .ch-section-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--c-grad-3);
}

.home .ch-h2 {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  color: #fff;
}
.home .ch-h2--center {
  text-align: center;
}
.home .ch-h2__grad,
.home .ch-h1__grad {
  background: linear-gradient(120deg, var(--c-grad-1), var(--c-grad-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.home .ch-h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
}

.home .ch-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-grad-1);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s,
    gap 0.2s;
}
.home .ch-link-arrow:hover {
  color: #fff;
  gap: 12px;
  border-bottom-color: var(--c-grad-1);
}

/* CTA buttons */
.home .ch-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition:
    transform 0.2s var(--ease),
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s;
  will-change: transform;
}
.home .ch-cta--primary {
  background: linear-gradient(120deg, var(--c-grad-1), var(--c-grad-2));
  color: #fff;
  box-shadow: 0 12px 32px -8px rgba(142, 45, 226, 0.55);
  position: relative;
  overflow: hidden;
}
.home .ch-cta--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  animation: ctaShimmer 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ctaShimmer {
  0%   { left: -75%; }
  55%  { left: 125%; }
  100% { left: 125%; }
}
.home .ch-cta--primary:hover {
  box-shadow: 0 16px 40px -8px rgba(142, 45, 226, 0.7);
}
.home .ch-cta--ghost {
  color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}
.home .ch-cta--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Reveal au scroll : opacity only — pas de translate pour éviter le CLS
   (un transform qui bouge pendant que l'opacity > 0 compte comme layout shift). */
.home [data-reveal] {
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
.home [data-reveal].is-visible {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .home [data-reveal] {
    opacity: 1;
    transition: none;
  }
  .home .ch-cta--primary::before,
  .home .ch-hero__scroll::before,
  .home .ch-hero__scroll svg,
  .home .ch-hero__glow {
    animation: none;
  }
  .home .ch-hero__line--accent {
    filter: none;
  }
}

/* ─────────────────────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────────────────────── */
.home .ch-hero {
  position: relative;
  /* 100svh (small viewport height) au lieu de 100dvh : ne se recalcule pas
     quand la barre d'adresse mobile apparait/disparait → pas de CLS sur le noise
     ni sur les éléments positionnés absolument à l'intérieur. */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 24px 120px;
  overflow: hidden;
  isolation: isolate;
}

/* Grille de points en fond */
.home .ch-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: -1;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 40%, black 20%, transparent 100%);
}

/* Glows colorés en arrière-plan */
.home .ch-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
  will-change: transform;
}
.home .ch-hero__glow--a {
  width: 60vmax;
  height: 60vmax;
  background: radial-gradient(circle, var(--c-grad-1), transparent 65%);
  top: -10vmax;
  left: -15vmax;
  animation: chFloat 18s ease-in-out infinite;
}
.home .ch-hero__glow--b {
  width: 50vmax;
  height: 50vmax;
  background: radial-gradient(circle, var(--c-grad-2), transparent 60%);
  bottom: -15vmax;
  right: -10vmax;
  animation: chFloat 22s ease-in-out infinite reverse;
}
.home .ch-hero__glow--c {
  width: 35vmax;
  height: 35vmax;
  background: radial-gradient(circle, var(--c-grad-3), transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.18;
}
@keyframes chFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(40px, -30px) scale(1.05);
  }
}

/* Texture noise (optionnelle, pure CSS) */
.home .ch-hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  z-index: -1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
}

.home .ch-hero__inner {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: center;
  text-align: left;
}

/* ── Colonne photo ── */
.home .ch-hero__visual {
  /* Animation sans opacity:0 → Lighthouse peut mesurer le LCP au rendu initial */
  animation: chSlideUpVisible 0.9s var(--ease) 0.2s both;
}

.home .ch-hero__photo-frame {
  position: relative;
  width: 380px;
}

.home .ch-hero__photo {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px 56px 14px 56px;
  display: block;
  position: relative;
  z-index: 2;
  box-shadow:
    0 0 0 1px rgba(142, 45, 226, 0.4),
    0 48px 80px -20px rgba(0, 0, 0, 0.7);
}

/* Halo gradient derrière la photo */
.home .ch-hero__photo-glow {
  position: absolute;
  inset: -24px;
  border-radius: 28px 64px 28px 64px;
  background: linear-gradient(135deg, var(--c-grad-1), var(--c-grad-2));
  filter: blur(56px);
  opacity: 0.38;
  z-index: 0;
}

/* Label éditorial rotatif */
.home .ch-hero__photo-label {
  position: absolute;
  right: -46px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.18);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.home .ch-hero__title {
  font-size: clamp(2.8rem, 9.5vw, 7.5rem);
  font-weight: 800;
  line-height: 0.93;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
  color: #fff;
}
.home .ch-hero__line {
  display: block;
  /* Animation sans opacity:0 → le h1 (LCP candidate sur mobile) reste visible dès le départ */
  animation: chSlideUpVisible 0.9s var(--ease) both;
}
.home .ch-hero__line:nth-child(1) {
  animation-delay: 0.2s;
  opacity: 0.75;
}
.home .ch-hero__line:nth-child(2) {
  animation-delay: 0.35s;
}
.home .ch-hero__line:nth-child(3) {
  animation-delay: 0.5s;
}
.home .ch-hero__line--accent {
  background: linear-gradient(
    120deg,
    var(--c-grad-1),
    var(--c-grad-2) 60%,
    var(--c-grad-3)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 45px rgba(142, 45, 226, 0.45));
}
.home .ch-hero__line--small {
  font-size: 0.45em;
  font-weight: 500;
  color: var(--c-muted);
  letter-spacing: 0;
  margin-top: 16px;
}

.home .ch-hero__tagline {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--c-muted);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 0 40px;
  animation: chFadeUp 0.9s var(--ease) 0.65s both;
}

.home .ch-hero__cta {
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  flex-wrap: wrap;
  animation: chFadeUp 0.9s var(--ease) 0.75s both;
}

.home .ch-hero__stats {
  display: flex;
  gap: 48px;
  justify-content: flex-start;
  list-style: none;
  padding: 0;
  margin: 52px 0 0;
  animation: chFadeUp 0.9s var(--ease) 0.88s both;
}
.home .ch-hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.home .ch-hero__stats strong {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(120deg, var(--c-grad-1), var(--c-grad-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home .ch-hero__stats span {
  font-size: 0.78rem;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.home .ch-hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--c-muted);
  text-decoration: none;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  padding: 4px 8px;
}
.home .ch-hero__scroll:hover {
  color: #fff;
}
.home .ch-hero__scroll::before {
  content: '';
  display: block;
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.35));
  margin: 0 auto 2px;
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  40%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
  70%  { opacity: 1; transform: scaleY(1); transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}
.home .ch-hero__scroll svg {
  animation: chBounce 2.4s ease-in-out infinite;
}
@keyframes chBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

@keyframes chFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/*
 * Variante "visible dès le départ" pour les éléments candidats LCP (titre + photo hero).
 * Pas d'opacity:0, juste le translate. Cela permet à Lighthouse de mesurer le LCP
 * dès le rendu initial au lieu d'attendre la fin de l'animation (qui peut dépasser
 * le budget LCP sur mobile lent et provoquer "NO_LCP").
 */
@keyframes chSlideUpVisible {
  from {
    transform: translateY(12px);
  }
  to {
    transform: none;
  }
}

/* ─────────────────────────────────────────────────────────────
   ABOUT (split asymétrique)
   ───────────────────────────────────────────────────────────── */
.home .ch-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
}
.home .ch-about__media {
  position: relative;
}
.home .ch-about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}
.home .ch-about__deco {
  position: absolute;
  top: -28px;
  right: -28px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-grad-1), var(--c-grad-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 20px 40px -10px rgba(142, 45, 226, 0.5);
  animation: chSpin 12s linear infinite;
}
@keyframes chSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.home .ch-about__text p {
  font-size: 1.05rem;
  color: #d4d4d8;
  line-height: 1.75;
  margin: 0 0 1.25rem;
  max-width: 540px;
}
.home .ch-about__text p strong {
  color: #fff;
}
.home .ch-about__text p em {
  color: var(--c-grad-1);
  font-style: normal;
}

/* ─────────────────────────────────────────────────────────────
   STACK / MARQUEE infini
   ───────────────────────────────────────────────────────────── */
.home .ch-stack {
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}
.home .ch-stack__heading {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 0 24px;
}
.home .ch-marquee {
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
}
.home .ch-marquee__track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: chMarquee 30s linear infinite;
}
.home .ch-marquee__track--reverse {
  animation-name: chMarqueeReverse;
  animation-duration: 35s;
}
@keyframes chMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes chMarqueeReverse {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}
.home .ch-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--c-bg-3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  color: #e4e4e7;
  font-weight: 500;
  white-space: nowrap;
}
.home .ch-marquee__item img {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 8px rgba(142, 45, 226, 0.4));
}
.home .ch-marquee:hover .ch-marquee__track,
.home .ch-marquee:focus-within .ch-marquee__track {
  animation-play-state: paused;
}

/* ─────────────────────────────────────────────────────────────
   SERVICES
   ───────────────────────────────────────────────────────────── */
.home .ch-services {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}
.home .ch-services__heading {
  margin-bottom: 48px;
}
.home .ch-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.home .ch-service-card {
  background: var(--c-bg-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: left;
  transition:
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease),
    box-shadow 0.3s;
}
.home .ch-service-card:hover {
  border-color: var(--c-grad-3);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -16px rgba(79, 82, 186, 0.3);
}
.home .ch-service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(142, 45, 226, 0.2),
    rgba(74, 0, 224, 0.15)
  );
  border: 1px solid rgba(142, 45, 226, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-grad-1);
  margin-bottom: 20px;
}
.home .ch-service-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.home .ch-service-card p {
  margin: 0;
  color: var(--c-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .home .ch-services__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

/* ─────────────────────────────────────────────────────────────
   TIMELINE
   ───────────────────────────────────────────────────────────── */
.home .ch-timeline {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 24px;
}
.home .ch-timeline__list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.home .ch-timeline__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: start;
  position: relative;
}
.home .ch-timeline__year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-grad-1);
  line-height: 1.4;
  padding-top: 22px;
  text-align: right;
  letter-spacing: 0.04em;
}
.home .ch-timeline__card {
  background: var(--c-bg-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 22px 26px;
  position: relative;
  transition:
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.home .ch-timeline__card::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 32px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c-grad-1);
  box-shadow:
    0 0 0 4px var(--c-bg),
    0 0 20px var(--c-grad-1);
}
.home .ch-timeline__item:hover .ch-timeline__card {
  border-color: var(--c-grad-3);
  transform: translateX(4px);
}
.home .ch-timeline__card h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
}
.home .ch-timeline__sub {
  font-size: 0.85rem;
  color: var(--c-grad-1);
  margin: 0 0 12px;
  font-weight: 500;
}
.home .ch-timeline__card p {
  margin: 0;
  color: #d4d4d8;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ─────────────────────────────────────────────────────────────
   PROJECTS
   ───────────────────────────────────────────────────────────── */
.home .ch-projects {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 100px;
}
.home .ch-projects__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 48px;
}
.home .ch-projects__head .ch-h2 {
  margin: 0;
}

.home .ch-projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* Première carte : pleine largeur, layout vertical */
.home .ch-project-card--featured {
  grid-column: 1 / -1;
}
.home .ch-project-card--featured .ch-project-card__media {
  max-height: 380px;
}
.home .ch-project-card--featured .ch-project-card__body h3 {
  font-size: 1.3rem;
}
.home .ch-project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-bg-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition:
    transform 0.4s var(--ease),
    border-color 0.3s,
    box-shadow 0.3s;
  will-change: transform;
}
.home .ch-project-card:hover {
  transform: translateY(-6px);
  border-color: var(--c-grad-3);
  box-shadow: 0 30px 60px -20px rgba(79, 82, 186, 0.4);
}
.home .ch-project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-bg-3);
}
.home .ch-project-card__media img,
.home .ch-project-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.home .ch-project-card:hover .ch-project-card__media img,
.home .ch-project-card:hover .ch-project-card__media video {
  transform: scale(1.06);
}
.home .ch-project-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  background: var(--c-grad-3);
  backdrop-filter: blur(10px);
  border: 1px solid var(--c-grad-3);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.home .ch-project-card__body {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.home .ch-project-card__body h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}
.home .ch-project-card__body p {
  margin: 0;
  color: var(--c-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
}
.home .ch-project-card__tags {
  display: flex;
  /* Ligne de tags forcée sur 1 seule ligne ; cf. note dans style_app.css .card-tags */
  flex-wrap: nowrap;
  gap: 5px;
  margin-top: 4px;
  overflow: hidden;
  align-items: center;
}
.home .ch-project-card__arrow {
  position: absolute;
  bottom: 22px;
  right: 22px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition:
    background 0.2s,
    transform 0.3s var(--ease);
  font-size: 1rem;
}
.home .ch-project-card:hover .ch-project-card__arrow {
  background: var(--c-grad-1);
  transform: translateX(4px);
}

/* ─────────────────────────────────────────────────────────────
   VALEURS / SOFT SKILLS
   ───────────────────────────────────────────────────────────── */
.home .ch-values {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}
.home .ch-values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.home .ch-value-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.home .ch-value-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(142, 45, 226, 0.12);
  border: 1px solid rgba(142, 45, 226, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-grad-1);
  flex-shrink: 0;
}
.home .ch-value-item h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.home .ch-value-item p {
  margin: 0;
  color: var(--c-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .home .ch-values__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─────────────────────────────────────────────────────────────
   CURSEUR PERSONNALISÉ
   ───────────────────────────────────────────────────────────── */
.ch-cursor {
  --x: -100px;
  --y: -100px;
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-grad-1, #8e2de2);
  pointer-events: none;
  z-index: 9999;
  transform: translate(var(--x), var(--y)) translate(-50%, -50%);
  will-change: transform;
  transition:
    width 0.18s ease,
    height 0.18s ease,
    background 0.18s ease,
    opacity 0.18s ease,
    border 0.18s ease;
  mix-blend-mode: screen;
}
.ch-cursor.is-active {
  width: 38px;
  height: 38px;
  background: rgba(142, 45, 226, 0.25);
  border: 1.5px solid var(--c-grad-1, #8e2de2);
}
.ch-cursor.is-hidden {
  opacity: 0;
}

/* Cache le curseur natif sur les devices avec souris */
@media (hover: hover) and (pointer: fine) {
  body.home-body,
  body.home-body a,
  body.home-body button {
    cursor: none;
  }
}

/* ─────────────────────────────────────────────────────────────
   CTA BAND
   ───────────────────────────────────────────────────────────── */
.home .ch-cta-band {
  position: relative;
  padding: 120px 24px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.home .ch-cta-band::before {
  content: "";
  position: absolute;
  inset: 20% 10% 20% 10%;
  background: radial-gradient(
    ellipse at center,
    rgba(142, 45, 226, 0.25),
    transparent 70%
  );
  filter: blur(80px);
  z-index: -1;
}
.home .ch-cta-band__inner {
  max-width: 800px;
  margin: 0 auto;
}
.home .ch-cta-band__text {
  color: var(--c-muted);
  font-size: 1.1rem;
  margin: 24px 0 36px;
}
.home .ch-cta-band__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .home .ch-hero__inner {
    grid-template-columns: 1fr 300px;
    gap: 52px;
  }
  .home .ch-hero__photo-frame { width: 300px; }
  .home .ch-hero__photo        { height: 420px; }
  .home .ch-hero__photo-label  { display: none; }
}

@media (max-width: 860px) {
  .home .ch-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 52px;
  }
  .home .ch-hero__visual { order: -1; display: flex; justify-content: center; }
  .home .ch-hero__photo-frame { width: 240px; }
  .home .ch-hero__photo { height: 300px; border-radius: 10px 36px 10px 36px; }
  .home .ch-hero__cta   { justify-content: center; }
  .home .ch-hero__stats { justify-content: center; }
}

@media (max-width: 900px) {
  .home .ch-about {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 60px 20px;
  }
  .home .ch-projects__grid {
    grid-template-columns: 1fr;
  }
  .home .ch-services__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: unset;
    margin: unset;
  }
  .home .ch-projects__head {
    grid-template-columns: 1fr;
  }
  .home .ch-hero__stats {
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .home .ch-hero {
    padding: 60px 18px 100px;
  }
  .home .ch-services__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .home .ch-values__grid {
    grid-template-columns: 1fr;
  }
  .home .ch-timeline__item {
    grid-template-columns: 70px 1fr;
    gap: 16px;
  }
  .home .ch-timeline__year {
    font-size: 0.75rem;
    padding-top: 18px;
  }
  .home .ch-hero__stats {
    flex-wrap: wrap;
    gap: 24px 40px;
  }
  .home .ch-marquee__item {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  .home .ch-about__deco {
    width: 70px;
    height: 70px;
    top: -20px;
    right: -10px;
    font-size: 1.4rem;
  }
}
