/* ==========================================================================
   CLEMTECH — HÉROS « ÉCRAN UNIQUE » DE L'ACCUEIL
   Mécanique visuelle : fond animé plein écran, police rétro à points,
   nav en pilule, statistiques comptées. Palette et contenu 100 % ClemTech.
   Toutes les classes sont préfixées .vh- (video-hero) pour ne jamais entrer
   en collision avec style.css, chargé juste après sur la même page pour le
   reste du contenu (services, FAQ, zones, pied de page…).
   ========================================================================== */

@font-face {
  font-family: 'Silkscreen';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/silkscreen-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Silkscreen';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/silkscreen-700.woff2') format('woff2');
}

:root {
  --vh-bg: #0b0704;
  --vh-text: #f7f0e2;
  --vh-muted: #ab9a80;
  --vh-trust-bg: #1c140a;
  --vh-trust-border: rgba(240, 193, 75, 0.4);
  --vh-trust-text: #cbbfa8;
  --vh-gold: #f0c14b;
  --vh-gold-light: #ffe19a;
  --vh-amber: #e8952f;
  --vh-font-display: "Silkscreen", "Space Grotesk", monospace;
  --vh-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* En-tête : aucune règle ici — cette page réutilise .site-header /
   .mobile-menu de style.css, identique sur les 8 pages du site. */

/* --------------------------------------------------------------------------
   Bloc héros — un seul écran (100vh), fond animé contenu à l'intérieur.
   -------------------------------------------------------------------------- */
.vh-block {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + clamp(10px, 2vh, 22px)) clamp(14px, 3vw, 32px) clamp(18px, 3vh, 30px);
  overflow: hidden;
  background: var(--vh-bg);
}

.vh-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.vh-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, transparent 0%, rgba(11, 7, 4, 0.5) 72%, var(--vh-bg) 100%),
    linear-gradient(180deg, rgba(11, 7, 4, 0.3) 0%, transparent 16%, transparent 80%, rgba(11, 7, 4, 0.55) 100%);
}

.vh-hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.vh-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* Rangée de confiance : zones desservies réelles, pas de faux badges */
.vh-trust {
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
  opacity: 0;
  animation: vh-reveal 0.85s var(--vh-ease) 0.05s both;
}

.vh-trust-avatar {
  --s: clamp(32px, 4.1vw, 38px);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: var(--vh-trust-bg);
  border: 1px solid var(--vh-trust-border);
  padding: 5px;
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--vh-ease);
}

.vh-trust-avatar + .vh-trust-avatar {
  margin-left: calc(-1 * var(--s) * 0.42);
}

.vh-trust-avatar:nth-child(1) { z-index: 1; }
.vh-trust-avatar:nth-child(2) { z-index: 2; }
.vh-trust-avatar:nth-child(3) { z-index: 3; }

.vh-trust-avatar:hover { transform: translateY(-2px); }

.vh-trust-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
}

.vh-trust-avatar-inner svg {
  width: 48%;
  height: 48%;
  stroke: #15100a;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vh-trust-pill {
  display: inline-flex;
  align-items: center;
  height: clamp(32px, 4.1vw, 38px);
  margin-left: calc(-1 * clamp(32px, 4.1vw, 38px) * 0.42);
  padding-left: calc(clamp(32px, 4.1vw, 38px) * 0.58);
  padding-right: 15px;
  border-radius: 999px;
  background: var(--vh-trust-bg);
  border: 1px solid var(--vh-trust-border);
  color: var(--vh-trust-text);
  font-weight: 500;
  font-size: clamp(11px, 1.25vw, 12.5px);
  white-space: nowrap;
}

/* Titre */
.vh-headline {
  margin: 0 0 clamp(14px, 2vh, 20px);
}

.vh-headline .vh-line {
  display: block;
  overflow: hidden;
}

.vh-headline .vh-word {
  display: inline-block;
  font-family: var(--vh-font-display);
  font-weight: 700;
  color: var(--vh-text);
  font-size: clamp(25px, 4.6vw, 62px);
  letter-spacing: -0.01em;
  line-height: 1.22;
  white-space: normal;
  opacity: 0;
  transform: translateY(14px);
  animation: vh-headlineFade 0.85s var(--vh-ease) forwards;
}

.vh-headline .vh-line:nth-child(1) .vh-word { animation-delay: 0.12s; }
.vh-headline .vh-line:nth-child(2) .vh-word { animation-delay: 0.3s; }

.vh-headline .vh-accent {
  background: linear-gradient(110deg, var(--vh-gold-light), var(--vh-gold) 55%, var(--vh-amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Sous-titre */
.vh-sub {
  max-width: min(520px, 92%);
  margin: 0 0 clamp(24px, 3.6vh, 34px);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(14.5px, 1.5vw, 17.5px);
  line-height: 1.55;
  color: var(--vh-muted);
  opacity: 0;
  animation: vh-reveal 0.85s var(--vh-ease) 0.28s both;
}

/* Bouton d'action */
.vh-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: clamp(13px, 1.8vh, 15px) clamp(26px, 3.4vw, 32px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--vh-gold) 0%, var(--vh-amber) 100%);
  color: #1f1203;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(14px, 1.5vw, 15px);
  box-shadow:
    0 0 0 1px rgba(240, 193, 75, 0.2),
    0 0 22px rgba(240, 193, 75, 0.35),
    0 0 44px rgba(232, 149, 47, 0.15);
  transition: transform 0.25s var(--vh-ease), box-shadow 0.25s ease;
  opacity: 0;
  animation: vh-revealPulse 0.85s var(--vh-ease) 0.4s both;
}

.vh-cta svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s var(--vh-ease);
}

.vh-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(240, 193, 75, 0.3),
    0 0 30px rgba(240, 193, 75, 0.48),
    0 0 56px rgba(232, 149, 47, 0.22);
}

.vh-cta:hover svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Statistiques (bas du premier écran) — mêmes 4 faits déjà honnêtes du
   site (aucune métrique inventée), juste présentés dans ce nouveau style.
   -------------------------------------------------------------------------- */
.vh-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
  flex-shrink: 0;
}

.vh-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  opacity: 0;
  animation: vh-reveal 0.85s var(--vh-ease) both;
}

.vh-stat:nth-child(1) { animation-delay: 0.5s; }
.vh-stat:nth-child(2) { animation-delay: 0.58s; }
.vh-stat:nth-child(3) { animation-delay: 0.66s; }
.vh-stat:nth-child(4) { animation-delay: 0.74s; }

.vh-stat-glyph {
  font-family: var(--vh-font-display);
  font-weight: 700;
  color: var(--vh-gold);
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1;
}

.vh-stat-value {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  color: var(--vh-text);
  font-size: clamp(15px, 1.9vw, 21px);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.vh-stat-label {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--vh-muted);
  font-size: clamp(10px, 1.05vw, 11.5px);
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes vh-headlineFade {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes vh-reveal {
  from { opacity: 0; transform: translateY(18px) scale(0.98); filter: blur(5px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes vh-revealPulse {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .vh-trust, .vh-headline .vh-word, .vh-sub, .vh-cta, .vh-stat {
    animation-duration: 0.01ms !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .vh-headline .vh-word {
    letter-spacing: -0.015em;
    line-height: 1.14;
  }

  .vh-stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 20px;
  }
}

@media (max-width: 480px) {
  /* Le français est plus long que l'anglais du gabarit d'origine : à cette
     largeur, aucune taille ne garantit qu'une ligne de 20+ caractères tienne
     sans jamais déborder. On autorise donc le retour à la ligne plutôt que
     de risquer un titre coupé. */
  .vh-headline .vh-word {
    font-size: clamp(19px, 8.2vw, 30px);
    white-space: normal;
    line-height: 1.2;
  }

  .vh-trust-pill {
    font-size: 10.5px;
    white-space: normal;
    text-align: left;
  }
}

@media (max-height: 760px) {
  .vh-trust { margin-bottom: 10px; }
  .vh-headline { margin-bottom: 8px; }
  .vh-sub { margin-bottom: 18px; }
}
