/* ============================================
   EloySolutions - Main styles
   ============================================ */

:root {
  --bg-primary: #070A12;
  --bg-secondary: #0B0F1C;
  --accent: #57e0f0;
  --text-primary: #F4F7FF;
  --text-secondary: #A7B1C8;
  --secondary: #098ed5e1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 500;
}

.bg-primary {
  background-color: var(--bg-primary);
}

.bg-secondary {
  background-color: var(--bg-secondary);
}

.text-accent {
  color: var(--accent);
}

.text-text-primary {
  color: var(--text-primary);
}

.text-text-secondary {
  color: var(--text-secondary);
}

.border-accent\/20 {
  border-color: rgba(0, 240, 255, 0.2);
}

.border-accent\/40 {
  border-color: rgba(0, 240, 255, 0.4);
}

.bg-accent\/10 {
  background-color: rgba(0, 240, 255, 0.1);
}

.bg-accent\/20 {
  background-color: rgba(0, 240, 255, 0.2);
}

.bg-secondary\/50 {
  background-color: rgba(11, 15, 28, 0.5);
}

.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  z-index: 10;
}

.vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 0%, transparent 50%, rgba(7, 10, 18, 0.4) 100%);
  z-index: 10;
}

.glow-line {
  background: var(--accent);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.35), 0 0 60px rgba(0, 240, 255, 0.15);
  /*animation: glowBreath 2.6s ease-in-out infinite;*/
}

.btn-accent {
  background: var(--accent);
  color: var(--bg-primary);
  padding: 14px 28px;
  border-radius: 6px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-accent:hover {
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.4), 0 0 60px rgba(0, 240, 255, 0.2);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--secondary);
  color: #ececec;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-secondary:hover {
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.4), 0 0 60px rgba(0, 240, 255, 0.2);
  transform: translateY(-2px);
}

.hero-realisations-cta {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  visibility: hidden;
}

.hero-portrait {
  display: flex;
  justify-content: center;
  width: 100%;
  /* margin-left: 10%; */ /* Retiré pour maximiser l'espace */
}

.hero-logo-shell {
  width: 100%;
  max-width: 48rem; /* Équilibre entre 44 et 52 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.hero-logo-frame,
.hero-logo-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-shell #vect-main-logo-animation {
  display: block;
  width: 100%;
  height: auto;
}

.hero-realisations-inline {
  white-space: nowrap;
}

.hero-realisations-cta.is-visible {
  opacity: 1;
  transform: translateY(-50px);
  pointer-events: auto;
  visibility: visible;
  z-index: 50;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); /* Retour au ratio équilibré */
    align-items: center;
  }

  .hero-portrait {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .hero-portrait {
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .hero-realisations-cta.is-visible {
    transform: translateY(0px);
  }
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  padding: 14px 28px;
  border-radius: 6px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(244, 247, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.text-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  position: relative;
}

.text-link:hover {
  color: var(--accent);
}

.text-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.text-link:hover::after {
  width: 100%;
}

.pinned-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
}

input,
textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(244, 247, 255, 0.1);
  border-radius: 6px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
  width: 100%;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15), 0 0 30px rgba(0, 240, 255, 0.05);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.5);
}

::selection {
  background: rgba(0, 240, 255, 0.3);
  color: var(--text-primary);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.nav-link:hover::after {
  width: 100%;
}

.watermark {
  position: absolute;
  font-family: 'Sora', sans-serif;
  font-size: 40vw;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 247, 255, 0.03);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.electric-transition {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  /*animation: electricPulse 2.1s ease-in-out infinite;*/
}

.electric-transition::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -20%;
  width: 20%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 240, 255, 0.95) 55%, transparent 100%);
  filter: blur(0.6px);
  animation: dividerSpark 2.4s linear infinite;
}

.hero-circuit-logo,
.nav-circuit-logo {
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.35));
}

.hero-circuit-logo .circuit-path-soft {
  opacity: 0.6;
}

.hero-circuit-logo .circuit-node-soft {
  opacity: 0.8;
}

@keyframes electricPulse {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 34px rgba(0, 240, 255, 0.52);
  }
}

@keyframes nodePulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.circuit-node {
  animation: nodePulse 2s ease-in-out infinite;
}

@keyframes scanline {
  0% {
    transform: translateY(-100vh);
  }

  100% {
    transform: translateY(100vh);
  }
}

.scanline {
  animation: scanline 10s linear infinite;
}

@keyframes glowBreath {

  0%,
  100% {
    box-shadow: 0 0 22px rgba(0, 240, 255, 0.24), 0 0 46px rgba(0, 240, 255, 0.08);
  }

  50% {
    box-shadow: 0 0 34px rgba(0, 240, 255, 0.42), 0 0 68px rgba(0, 240, 255, 0.16);
  }
}

@keyframes dividerSpark {
  0% {
    transform: translateX(0);
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  86% {
    opacity: 1;
  }

  100% {
    transform: translateX(620%);
    opacity: 0;
  }
}

#services {
  background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.01) 0%, transparent 70%);
}

.service-img,
.hero-img,
.positioning-img,
.about-img {
  filter: grayscale(100%) brightness(0.85) contrast(1.1);
  transition: filter 0.5s ease, transform 0.5s ease, box-shadow 0.35s ease;
}

.service-image:hover .service-img,
.hero-portrait:hover .hero-img,
.positioning-image:hover .positioning-img,
.about-portrait:hover .about-img {
  filter: grayscale(0%) brightness(1) contrast(1.1);
  transform: scale(1.05);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.2);
}

.service-item:nth-child(even) .service-img {
  transform: rotate(-1deg);
}

.service-item:nth-child(odd) .service-img {
  transform: rotate(1deg);
}

.service-item:hover .service-img {
  transform: rotate(0deg) scale(1.05);
}

.service-features li {
  transition: transform 0.3s ease, color 0.3s ease;
}

.service-features li:hover {
  transform: translateX(5px);
  color: var(--text-primary);
}

.service-content,
.service-image {
  opacity: 0;
  transform: translateY(30px);
}

.service-content.animate-in,
.service-image.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-image.animate-in {
  transition-delay: 0.2s;
}

#about {
  background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.01) 0%, transparent 70%);
}

.about-education {
  backdrop-filter: blur(10px);
}

.skill-tag {
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background-color: rgba(0, 240, 255, 0.2);
  transform: translateY(-1px);
}

#contact {
  background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.02) 0%, transparent 70%);
}

#contact-form .contact-input:focus,
#contact-form textarea:focus {
  box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.3), 0 0 20px rgba(0, 240, 255, 0.1);
}

#form-feedback.success {
  color: var(--accent);
}

#form-feedback.error {
  color: #f87171;
}

/* --- Card electric border --- */
@property --card-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.card-electric {
  position: relative;
  border: none !important;
}

.card-electric::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--card-angle),
    rgba(0, 240, 255, 0.12) 0deg,
    rgba(0, 240, 255, 0.12) 305deg,
    rgba(87, 224, 240, 0.9) 328deg,
    rgba(210, 250, 255, 0.7) 340deg,
    rgba(87, 224, 240, 0.9) 352deg,
    rgba(0, 240, 255, 0.12) 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: cardSparkRotate 15s linear infinite;
}

.card-electric:hover::before {
  filter: drop-shadow(20px 3px 12px rgba(0, 240, 255, 0.5));
}

@keyframes cardSparkRotate {
  to { --card-angle: 360deg; }
}

.card-electric:nth-child(2)::before { animation-delay: -1.2s; }
.card-electric:nth-child(3)::before { animation-delay: -2.5s; }
.card-electric:nth-child(4)::before { animation-delay: -3.8s; }
.card-electric:nth-child(5)::before { animation-delay: -0.7s; }
.card-electric:nth-child(6)::before { animation-delay: -4.1s; }
/* --- End card electric border --- */

@media (max-width: 768px) {
  .pinned-section {
    height: auto;
    min-height: 100vh;
    padding: 5.5rem 0 3rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .btn-accent {
    padding: 12px 20px;
    font-size: 13px;
    width: 100%;
    justify-content: center;
  }

  .watermark {
    font-size: 50vw;
  }

  .nav-link::after {
    display: none;
  }

  #navigation .container {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .hero-content .hero-title {
    font-size: 1.875rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 1rem;
  }

  .contact-form-wrapper h2 {
    font-size: 1.875rem;
  }

  .contact-details .space-y-4>div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .about-education,
  .about-skills {
    padding: 1rem;
  }

  .skill-tag {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }

  .electric-transition {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .services-grid .service-item {
    gap: 2rem;
  }

  .service-header h3 {
    font-size: 1.25rem;
  }

  .glow-line {
    display: none;
  }
}

@media (max-width: 480px) {
  .pinned-section {
    padding-top: 5rem;
    padding-bottom: 2rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}


/* Logo circuit - base */
.circuit-logo {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.circuit-logo path,
.circuit-logo circle {
  transform-box: fill-box;
  transform-origin: center;
}

/* État initial - lettres visibles mais discrètes */
.circuit-logo .path-e-1,
.circuit-logo .path-e-2,
.circuit-logo .path-e-3,
.circuit-logo .path-e-4,
.circuit-logo .path-s-1,
.circuit-logo .path-s-2,
.circuit-logo .path-s-3,
.circuit-logo .path-s-4,
.circuit-logo .path-s-5 {
  opacity: 0.3;
}

/* Glow actif */
.circuit-logo .logo-ring-active {
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.8));
}

.hero-circuit-logo .logo-ring,
.nav-circuit-logo .logo-ring {
  filter: drop-shadow(0 0 6px rgba(79, 220, 255, 0.7));
}

.circuit-logo .path-e-1,
.circuit-logo .path-e-2,
.circuit-logo .path-e-3,
.circuit-logo .path-e-4,
.circuit-logo .path-s-1,
.circuit-logo .path-s-2,
.circuit-logo .path-s-3,
.circuit-logo .path-s-4,
.circuit-logo .path-s-5 {
  filter: drop-shadow(0 0 3px rgba(91, 234, 255, 0.65));
}


.note-card {
    opacity: 0.9;
}