/* ==========================================================================
   ClaudIn — Hero, wordmark, logos, footer, responsive
   ========================================================================== */

/* ---- Hero -------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(5rem, 12vh, 7rem) var(--pad-x) 2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 92%);
}
.hero__bg video,
.hero__bg .grid-canvas {
  width: 100%; height: 100%; object-fit: cover;
}
.hero > *:not(.hero__bg) { position: relative; z-index: 1; }

.hero { min-width: 0; }

/* main block, vertically centred to kill the dead space above the kicker */
.hero__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 62rem;
}
.hero__kicker { color: var(--accent); display: inline-block; margin-bottom: 1.75rem; }
.hero__title {
  font-size: var(--fs-hero);
  letter-spacing: -0.03em;
  max-width: 15ch;
}
.hero__sub {
  margin-top: 1.9rem;
  font-size: clamp(1.2rem, 1.7vw, 1.7rem);
  color: var(--fg);
  max-width: 38ch;
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.hero__sub .hl {
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
}
.hero__ctas {
  margin-top: 2.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
}

/* Scroll cue */
.hero__cue {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  color: var(--muted);
  margin: 1.5rem 0;
}
.hero__cue .mono { font-size: var(--fs-mono-sm); transition: color 0.3s var(--ease); }
.hero__cue:hover .mono { color: var(--fg); }
.hero__cue__track {
  width: 1px;
  height: 46px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.hero__cue__track::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 1px;
  height: 14px;
  background: var(--accent);
  animation: cueDrop 1.9s var(--ease) infinite;
}
@keyframes cueDrop {
  0%   { transform: translateY(-16px); opacity: 0; }
  25%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { transform: translateY(46px); opacity: 0; }
}

/* Logo wall */
.hero__logos { padding-top: 2.5rem; border-top: 1px solid var(--line); min-width: 0; }
.hero__logos .mono { color: var(--muted); display: block; margin-bottom: 1.5rem; }
.logo-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.logo-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  animation: logoMarquee 48s linear infinite;
  will-change: transform;
}
.logo-marquee:hover .logo-strip { animation-play-state: paused; }
.logo-strip li {
  display: inline-flex;
  align-items: center;
  margin-right: 3.25rem;
  transition: opacity 0.3s var(--ease);
  opacity: 0.6;
}
.logo-strip li:hover { opacity: 1; }
@keyframes logoMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-strip { animation: none; flex-wrap: wrap; width: auto; gap: 1.5rem 2.75rem; }
  .logo-strip li { margin-right: 0; }
  .logo-marquee { -webkit-mask-image: none; mask-image: none; }
}
.logo-img {
  height: 30px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  /* normalise des logos colorés/sombres en silhouette claire sur fond sombre */
  filter: brightness(0) invert(1);
}
:root[data-theme="light"] .logo-img { filter: brightness(0); }
.logo-text {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .hero__cue__track::after { animation: none; opacity: 1; transform: none; height: 46px; }
}

/* Wordmark géant filaire */
.wordmark {
  border-bottom: 1px solid var(--line);
  padding: clamp(2rem, 6vh, 5rem) var(--pad-x);
  overflow: hidden;
}
.wordmark svg { width: 100%; height: auto; }
.wordmark .wm-stroke {
  fill: none;
  stroke: var(--fg);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}
.wordmark .wm-hidden { stroke-dasharray: 5 5; opacity: 0.4; }
.wordmark .wm-dot { fill: var(--accent); stroke: none; }

/* ---- Footer ------------------------------------------------------------ */
.footer { padding-top: var(--pad-y); }
.foot-cta {
  padding: 0 var(--pad-x);
  display: grid;
  gap: 0;
}
.foot-cta__block {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}
.foot-cta__block:last-of-type { border-bottom: 1px solid var(--line); }
.foot-cta__line { font-size: var(--fs-h3); max-width: 24ch; margin-bottom: 1.25rem; }
.foot-cta__hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }
.foot-cta__block .link-arrow { float: right; }
.foot-cta__block::after { content: ""; display: block; clear: both; }

.foot-meta {
  padding: 2.5rem var(--pad-x) 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}
.foot-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.foot-nav a { color: var(--muted); }
.foot-nav a:hover { color: var(--fg); }
.foot-legal { color: var(--muted); max-width: 40ch; }
.foot-legal p + p { margin-top: 0.4rem; }

/* ---- Mobile top bar (hidden on desktop) -------------------------------- */
.topbar { display: none; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  .content { grid-column: 1; }
  .topcta { display: none; }

  .topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--pad-x);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .topbar__brand { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
  .topbar__brand .dot { color: var(--accent); }
  .burger { display: flex; flex-direction: column; gap: 5px; padding: 0.5rem; }
  .burger span { width: 22px; height: 1.5px; background: var(--fg); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
  .nav-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-open .burger span:nth-child(2) { opacity: 0; }
  .nav-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 49;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: var(--pad-x);
    transform: translateY(-100%);
    transition: transform 0.4s var(--ease);
  }
  .nav-open .mobile-menu { transform: none; }
  .mobile-menu a {
    font-size: 1.5rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .mobile-menu a.accent { color: var(--accent); }

  .hero { padding-top: 6rem; min-height: auto; padding-bottom: 3rem; }
  .bento { grid-template-columns: 1fr; }
  .cell { border-right: 0 !important; min-height: auto; }
  .cols3 { grid-template-columns: 1fr; }
  .col { padding: 2rem 0 !important; border-right: 0; border-bottom: 1px solid var(--line); }
  .cols3 .col:last-child { border-bottom: 0; }
  .problem { grid-template-columns: 3rem 1fr; gap: 1rem; }
  .tl-step { grid-template-columns: 1fr; gap: 0.75rem; }
  .foot-meta { flex-direction: column; }
}

@media (min-width: 901px) {
  .topbar, .mobile-menu { display: none; }
}

/* ---- Cas d'usage par métier -------------------------------------------- */
.usecases {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.usecase a {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 100%;
  padding: 1.75rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s var(--ease);
}
.usecase a:hover { background: var(--bg-elev); }
.usecase__metier { font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 600; letter-spacing: -0.015em; }
.usecase__ex { color: var(--muted); font-size: 0.95rem; flex: 1; }
.usecase__go { color: var(--accent); margin-top: 0.5rem; }
.usecase__go .arrow { display: inline-block; transition: transform 0.3s var(--ease); }
.usecase a:hover .usecase__go .arrow { transform: translateX(4px); }

/* ---- FAQ (accordéon natif) --------------------------------------------- */
.faq { margin-top: 3rem; border-top: 1px solid var(--line); max-width: 82ch; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 1.4rem 2.75rem 1.4rem 0;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.25s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--accent);
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item summary:hover { color: var(--accent); }
.faq-item__a { padding: 0 0 1.6rem; }
.faq-item__a p { color: var(--muted); max-width: 72ch; }

@media (max-width: 900px) {
  .usecases { grid-template-columns: 1fr; border-left: 0; }
  .usecase a { border-right: 0; }
}

/* ---- L'équipe ------------------------------------------------------------ */
.team {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
}
.member__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(1);
  margin-bottom: 1.25rem;
  border: 1px solid var(--line);
}
.member__num { color: var(--accent); display: block; margin-bottom: 0.5rem; }
.member__name { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }
.member__role { color: var(--muted); display: block; margin: 0.4rem 0 0.85rem; }
.member__bio { color: var(--muted); font-size: 0.95rem; }
.member__li { margin-top: 0.85rem; display: inline-flex; }

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

/* ---- Glyphes des colonnes valeur ---------------------------------------- */
.col__fig { max-width: 250px; margin-bottom: 1.5rem; }
