/* ============================================================
   mtc-portfolio — Styles spécifiques à l'accueil (index.html)
   ============================================================ */

/* ── Fond coloré (blobs vifs animés) — révèle le Liquid Glass ───
   Recouvre le fond global clair ; le verre du hero réfracte ces couleurs.
   (Mêmes valeurs que la page Parcours, pour cohérence ; à factoriser plus tard.) */
/* Fond de base sombre sur tout le document (évite toute bande claire au scroll) */
html:has(.cv-bg) { background: #0c0820; }
.cv-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, #2a1457 0%, #160a2e 45%, #0c0820 100%);
}
.cv-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.85;
  will-change: transform;
}
.cv-blob-1 { width: 42vw; height: 42vw; left: -6vw;  top: 4vh;
  background: radial-gradient(circle at 35% 35%, #ff7a3c, #d6224e 70%);
  animation: cv-blob-a 26s ease-in-out infinite alternate; }
.cv-blob-2 { width: 40vw; height: 40vw; right: -8vw; top: -6vh;
  background: radial-gradient(circle at 50% 50%, #c026d3, #7c3aed 72%);
  animation: cv-blob-b 30s ease-in-out infinite alternate; }
.cv-blob-3 { width: 38vw; height: 38vw; left: 14vw;  bottom: -10vh;
  background: radial-gradient(circle at 50% 50%, #2563eb, #1e3a8a 72%);
  animation: cv-blob-c 28s ease-in-out infinite alternate; }
.cv-blob-4 { width: 34vw; height: 34vw; right: 4vw;  bottom: -6vh;
  background: radial-gradient(circle at 50% 50%, #06b6d4, #0e7490 72%);
  animation: cv-blob-a 32s ease-in-out infinite alternate-reverse; }
.cv-blob-5 { width: 30vw; height: 30vw; left: 38vw;  top: 30vh;
  background: radial-gradient(circle at 50% 50%, #f59e0b, #ec4899 72%);
  animation: cv-blob-b 24s ease-in-out infinite alternate-reverse; }
@keyframes cv-blob-a { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(8vw,6vh) scale(1.15)} }
@keyframes cv-blob-b { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(-7vw,8vh) scale(1.1)} }
@keyframes cv-blob-c { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(6vw,-7vh) scale(1.12)} }
@media (prefers-reduced-motion: reduce) { .cv-blob { animation: none; } }

/* ── Hero ───────────────────────────────────────────────────── */
.home-hero {
  padding: 5.5rem 0 4rem;
  position: relative;
}
.home-hero-inner {
  display: flex;
  align-items: center;
  gap: 2.75rem;
}
.hero-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}
/* Zone plein écran dans le hero — accent vert néon, bouton à gauche + texte à droite */
.hero-fs {
  --neon: #2BFFB0;
  position: absolute;
  /* Ancrée dans .hero-content : juste à droite du titre H1 (max-width 620px),
     centrée verticalement sur les 2 lignes du titre */
  left: 638px;
  top: 88px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
/* Texte d'incitation (à droite de la flèche) */
.hero-fs .fs-hint-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.84rem;
  line-height: 1.15;
  text-align: left;
  color: var(--dark);
  white-space: nowrap;
}
/* Flèche : tracé noir transparent + halo vert qui le parcourt (droite → gauche) */
.hero-fs .fs-arrow { width: 56px; height: 34px; }
.hero-fs .fs-arrow .arrow-rail { stroke: rgba(27,4,66,0.45); }
.hero-fs .fs-arrow .arrow-glow {
  stroke: var(--neon);
  stroke-width: 2.8;
  filter: drop-shadow(0 0 3px var(--neon)) drop-shadow(0 0 7px rgba(43,255,176,0.8));
  stroke-dasharray: 20 80;
}
/* Bouton plein écran — capsule dégradée colorée + accent néon */
.hero-fs .fs-btn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,58,237,0.92) 0%, rgba(37,99,235,0.92) 55%, rgba(0,216,162,0.92) 100%);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  box-shadow: 0 8px 22px -8px rgba(88,24,255,0.6), inset 0 0 12px rgba(255,255,255,0.12);
}
.hero-fs .fs-btn svg { stroke: #fff; width: 21px; height: 21px; }
.hero-fs .fs-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.12) saturate(1.15);
  box-shadow: 0 12px 28px -8px rgba(88,24,255,0.75), 0 0 16px -2px rgba(43,255,176,0.6), inset 0 0 14px rgba(255,255,255,0.18);
}
/* Lueur pulsante d'appel */
.hero-fs .fs-btn.nudge { animation: fs-neon-pulse 2.2s ease-in-out infinite; }
@keyframes fs-neon-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(43,255,176,0), inset 0 0 12px rgba(43,255,176,0.12); }
  50%      { box-shadow: 0 0 16px -1px rgba(43,255,176,0.55), inset 0 0 14px rgba(43,255,176,0.2); }
}
.hero-fs .fs-arrow .arrow-glow { animation: fs-arrow-run-rev 1.8s linear infinite; }
@keyframes fs-arrow-run-rev {
  0%   { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}
@media (max-width: 820px) {
  .hero-fs { position: static; margin-bottom: 1rem; align-self: flex-end; top: auto; right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-fs .fs-btn.nudge, .hero-fs .fs-arrow .arrow-glow { animation: none; }
}
/* Photo ronde */
.hero-photo {
  flex-shrink: 0;
  width: 230px;
  height: 230px;
  position: relative;
}
.hero-photo::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88,24,255,0.35) 0%, rgba(0,216,162,0.18) 55%, transparent 72%);
  filter: blur(6px);
  z-index: -1;
  animation: photo-halo 6s ease-in-out infinite alternate;
}
@keyframes photo-halo {
  0%   { transform: scale(1);    opacity: 0.85; }
  100% { transform: scale(1.06); opacity: 1; }
}
.hero-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  filter: drop-shadow(0 12px 30px rgba(27,4,66,0.30));
}
/* Colonne photo + lien LinkedIn (le wrap remplace .hero-photo dans le flex) */
.hero-photo-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
/* Bouton LinkedIn sous la photo (couche fonctionnelle : reste du verre) */
.hero-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem 0.4rem 0.45rem;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.28);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  box-shadow: 0 10px 26px -14px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform 0.2s var(--ease-out, cubic-bezier(.22,1,.36,1)), box-shadow 0.2s ease, background 0.2s ease;
}
.hero-linkedin img { width: 22px; height: 22px; border-radius: 6px; display: block; }
.hero-linkedin:hover {
  --fx-lift: -2px;   /* lift via variable → compose avec le magnétique */
  background: rgba(255,255,255,0.16);
  box-shadow: 0 16px 34px -14px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.55);
}
.hero-linkedin:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 820px) {
  .home-hero-inner { flex-direction: column; align-items: flex-start; gap: 1.75rem; }
  .hero-photo-wrap { align-items: flex-start; }
  .hero-photo { width: 150px; height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo::before { animation: none; }
  .hero-linkedin { transition: none; }
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  /* Badge clair translucide d'origine (labelling, pas une carte de contenu) */
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
/* Grand cadre Liquid Glass autour de l'énoncé du hero (titre + sous-titre),
   même matériau transparent que les cadres Parcours / piliers. */
.hero-statement {
  position: relative;
  background: rgba(255,255,255,0.06);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 26px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 18px 44px -22px rgba(0,0,0,0.5);
  padding: 1.1rem 1.8rem 1.2rem;
  margin-bottom: 2rem;
  max-width: 680px;
}
@supports (backdrop-filter: url(#liquid-glass)) {
  .hero-statement {
    -webkit-backdrop-filter: blur(10px) url(#liquid-glass) saturate(150%);
    backdrop-filter: blur(10px) url(#liquid-glass) saturate(150%);
  }
}
@media (max-width: 600px) {
  .hero-statement { padding: 0.95rem 1.25rem 1.05rem; border-radius: 22px; }
}
.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
  max-width: 620px;
}
.hero-title .grad {
  background: linear-gradient(120deg, var(--primary) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 0;   /* dans le cadre .hero-statement : le padding gère l'espace bas */
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  padding: 0.3rem 0 0.5rem;   /* laisse respirer le halo flou sous les boutons */
}
.hero-cta + .hero-cta { padding-top: 0; margin-top: 0.35rem; }  /* 2e ligne de boutons */

/* ── Boutons CTA en LIQUID GLASS (accueil) ──────────────────────
   Surcharge le .btn-cta plein (style.css) seulement dans le hero : verre
   translucide qui réfracte le fond coloré, texte clair. Le balayage lumineux
   (::before) et le halo (::after) du .btn-cta commun sont conservés. */
.home-hero .btn-cta {
  background: rgba(255,255,255,0.12);
  -webkit-backdrop-filter: blur(12px) saturate(160%) brightness(1.05);
  backdrop-filter: blur(12px) saturate(160%) brightness(1.05);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow:
    0 14px 36px -16px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.6);
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
@supports (backdrop-filter: url(#liquid-glass)) {
  .home-hero .btn-cta {
    -webkit-backdrop-filter: blur(7px) url(#liquid-glass) saturate(160%) brightness(1.05);
    backdrop-filter: blur(7px) url(#liquid-glass) saturate(160%) brightness(1.05);
  }
}
.home-hero .btn-cta:hover, .home-hero .btn-cta:focus-visible {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.6);
  box-shadow:
    0 22px 48px -16px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.8);
}
@media (max-width: 540px) {
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
}

/* Accroche "terminal" qui s'écrit + mots-clés en dégradé animé */
.hero-term {
  margin-top: 1.9rem;
  width: 100%;
  max-width: 600px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(16, 6, 40, 0.72);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 20px 50px -22px rgba(27,4,66,0.6);
  font-family: ui-monospace, 'SF Mono', 'JetBrains Mono', 'Menlo', 'Courier New', monospace;
}
.hero-term-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.ht-dot { width: 11px; height: 11px; border-radius: 50%; }
.ht-dot:nth-child(1) { background: #FF5F56; }
.ht-dot:nth-child(2) { background: #FFBD2E; }
.ht-dot:nth-child(3) { background: #27C93F; }
.hero-term-name {
  margin-left: 0.5rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
}
.hero-term-body {
  display: flex;
  align-items: flex-start;        /* le texte démarre en haut et grandit vers le bas */
  padding: 1rem 1.1rem 1.15rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  /* Hauteur RÉSERVÉE dès le départ pour les 4 lignes finales (texte + 2e ligne +
     "Bienvenue…" + curseur) → le panneau ne grandit plus pendant la frappe, donc
     le reste de la page ne descend pas / ne saccade pas. */
  min-height: 8.8em;   /* couvre les 4 lignes finales + padding (≈129px) → taille figée */
}
.ht-prompt { color: var(--teal); font-weight: 700; flex-shrink: 0; }
.ht-type { white-space: pre-wrap; word-break: break-word; }
/* Mots-clés en dégradé animé */
.ht-type .kw {
  font-weight: 700;
  background: linear-gradient(90deg, #5EEAD4, #A78BFA, #5818FF, #5EEAD4);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: kw-flow 4s linear infinite;
}
@keyframes kw-flow { to { background-position: 300% 0; } }
/* Curseur clignotant */
.ht-cursor {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 1px;
  transform: translateY(2px);
  background: var(--teal);
  animation: ht-blink 1s steps(1) infinite;
}
@keyframes ht-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ht-type .kw { animation: none; }
  .ht-cursor { animation: none; }
}

/* ── Piliers ────────────────────────────────────────────────── */
.home-pillars {
  padding: 2rem 0 1rem;
}
/* Sur fond coloré sombre : titres de section en clair */
.home-pillars .section-label { color: rgba(255,255,255,0.7); }
.home-pillars .section-title { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,0.3); }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  /* Grand cadre Liquid Glass transparent autour des 3 piliers (même matériau
     que le cadre de la timeline Parcours). On voit le fond coloré à travers. */
  background: rgba(255,255,255,0.06);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 18px 44px -22px rgba(0,0,0,0.5);
  padding: 1.5rem;
}
@supports (backdrop-filter: url(#liquid-glass)) {
  .pillars-grid {
    -webkit-backdrop-filter: blur(10px) url(#liquid-glass) saturate(150%);
    backdrop-filter: blur(10px) url(#liquid-glass) saturate(150%);
  }
}
@media (max-width: 760px) {
  .pillars-grid { grid-template-columns: 1fr; padding: 1.1rem; border-radius: 22px; }
}
/* ── Cartes piliers — MATERIAU OPAQUE (contenu) ─────────────── */
.pillar {
  --c1: #7C3AED;
  --c2: #5818FF;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 1.75rem 1.6rem;
  /* Verre semi-opaque clair teinté de la couleur de la carte (même rendu que
     les pastilles claires du Parcours). Texte blanc lisible conservé. */
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--c1) 18%, rgba(255,255,255,0.16)) 0%,
      rgba(255,255,255,0.12) 55%,
      color-mix(in srgb, var(--c2) 14%, rgba(255,255,255,0.10)) 100%);
  border: 1px solid rgba(255,255,255,0.30);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    0 18px 44px -22px color-mix(in srgb, var(--c1) 50%, transparent),
    0 2px 10px -4px rgba(0,0,0,0.22);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  backdrop-filter: blur(18px) saturate(155%);
}
@supports (backdrop-filter: url(#liquid-glass)) {
  .pillar {
    -webkit-backdrop-filter: blur(12px) url(#liquid-glass) saturate(155%);
    backdrop-filter: blur(12px) url(#liquid-glass) saturate(155%);
  }
}
/* Liseré supérieur dégradé */
.pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
}
/* Halo diffus en coin (effet waouh) */
.pillar::after {
  content: '';
  position: absolute;
  top: -30%; right: -20%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c1) 40%, transparent) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.4s ease;
}
.pillar:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 30px 60px -20px color-mix(in srgb, var(--c1) 60%, transparent),
    0 3px 12px -4px rgba(0,0,0,0.28);
}
.pillar:hover::after { opacity: 0.85; transform: scale(1.15); }

.pillar.p-ia-card      { --c1: #7C3AED; --c2: #5818FF; }
.pillar.p-product-card { --c1: #2563EB; --c2: #5818FF; }
.pillar.p-build-card   { --c1: #00D8A2; --c2: #2563EB; }

.pillar h3 {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0,0,0,0.3);
  margin: 1.05rem 0 0.5rem;
}
.pillar p {
  position: relative;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
}
.pillar-icon {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--c1) 70%, transparent);
}

/* Cascade légère sur les piliers */
.pillars-grid .pillar:nth-child(2) { transition-delay: 0.08s; }
.pillars-grid .pillar:nth-child(3) { transition-delay: 0.16s; }
