/* styles.css - Styles personnalisés du portfolio */

@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap");

/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  font-family: "Poppins", sans-serif;
  background-color: #0a0a12;
  color: #f1f1f3;
}

.tech-font {
  font-family: "Orbitron", sans-serif;
}

/* ========== LANGUAGE TOGGLE ========== */
.lang-toggle {
  position: fixed;
  bottom: 40px;
  right: 20px;
  z-index: 40;
  display: flex;
  gap: 8px;
  background: rgba(10, 10, 18, 0.9);
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid rgba(87, 115, 255, 0.3);
}

.lang-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  background: transparent;
  color: #9ca3af;
}

.lang-btn.active {
  background: linear-gradient(90deg, #00f0ff, #5773ff);
  color: #fff;
}

.lang-btn:hover {
  color: #00f0ff;
}

@media (max-width: 768px) {
  .lang-toggle {
    bottom: 20px;
    right: 10px;
    padding: 6px 10px;
  }
  .lang-btn {
    padding: 4px 10px;
    font-size: 11px;
  }
}

/* ========== HERO SECTION ========== */
.hero-section {
  height: 100vh;
  position: relative;
}

.particle-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* ========== GRADIENTS & EFFECTS ========== */
.gradient-text {
  background: linear-gradient(90deg, #00f0ff, #5773ff, #ff007a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-text-dev {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(90deg, #00f0ff, #5773ff, #ff007a);
  border-radius: inherit;
  padding: 2px;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* ========== ANIMATIONS ========== */
.floating {
  animation: floating 8s ease-in-out infinite;
}

.floating-2 {
  animation: floating 6s ease-in-out infinite 2s;
}

.floating-3 {
  animation: floating 7s ease-in-out infinite 1s;
}

@keyframes floating {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.floating-cube {
  animation:
    floating 8s ease-in-out infinite,
    rotate-x 20s infinite linear;
  transform-style: preserve-3d;
}

.floating-pyramid {
  animation:
    floating 7s ease-in-out infinite 1s,
    rotate-y 25s infinite linear reverse;
  transform-style: preserve-3d;
}

.floating-torus {
  animation:
    floating 9s ease-in-out infinite 2s,
    rotate-x 30s infinite linear reverse;
  transform-style: preserve-3d;
}

@keyframes rotate-x {
  0% {
    transform: rotateX(0deg);
  }
  100% {
    transform: rotateX(360deg);
  }
}

@keyframes rotate-y {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 240, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
  }
}

/* ========== HOLOGRAPHIC EFFECTS ========== */
.holographic {
  background: linear-gradient(
    135deg,
    rgba(0, 240, 255, 0.1) 0%,
    rgba(87, 115, 255, 0.1) 50%,
    rgba(255, 0, 122, 0.1) 100%
  );
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.neon-glow {
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}

.space-helmet {
  perspective: 1000px;
}

.helmet-visor {
  background: linear-gradient(
    45deg,
    rgba(0, 240, 255, 0.2),
    rgba(87, 115, 255, 0.4)
  );
  box-shadow: inset 0 0 50px rgba(0, 240, 255, 0.5);
  border-radius: 50%;
  filter: blur(0.5px);
}

/* ========== NAVIGATION ========== */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #00f0ff, #5773ff, #ff007a);
  transition: width 0.3s ease;
}

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

/* ========== SCROLL INDICATORS ========== */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

/* ========== FEATURE PANELS ========== */
.feature-panel {
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.6s ease-out;
}

.feature-panel.visible {
  transform: translateY(0);
  opacity: 1;
}

.hologram-effect {
  position: relative;
}

.hologram-effect::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, rgba(0, 240, 255, 0.3), transparent);
  transform: perspective(500px) rotateX(60deg) scaleY(0.8);
  filter: blur(15px);
  z-index: -1;
}

/* ========== SCANLINE EFFECT ========== */
.scanline {
  position: relative;
  overflow: hidden;
}

.scanline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 240, 255, 0.03) 50%,
    transparent 100%
  );
  animation: scanline 5s linear infinite;
  pointer-events: none;
}

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

/* ========== NOISE EFFECT ========== */
.noise::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  z-index: -1;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: 100vh;
  }
}

/* ========== TRUST MARQUEE (Ils nous font confiance) ========== */
.trust-wrap {
  box-sizing: border-box;
}

.trust-marquee {
  overflow: hidden;
  width: 100%;
  min-width: 0;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 4%,
    #000 96%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 4%,
    #000 96%,
    transparent
  );
}

.trust-marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  animation: trust-marquee-scroll var(--trust-duration, 28s) linear infinite;
}

@media (hover: hover) and (pointer: fine) {
  .trust-marquee:hover .trust-marquee__track {
    animation-play-state: paused;
  }
}

@keyframes trust-marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Une seule ligne : les deux séries de logos ont le même espacement (gap), boucle invisible */
.trust-marquee__strip {
  display: flex;
  flex-shrink: 0;
  align-items: stretch;
  gap: 1.25rem;
  width: max-content;
}

.trust-marquee__card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .trust-marquee__card:hover .trust-marquee__card-inner {
    border-color: rgba(96, 165, 250, 0.45);
  }
}

.trust-marquee__card-inner {
  box-sizing: border-box;
  min-width: 7.5rem;
  max-width: 11rem;
  padding: 0.5rem 0.65rem;
}

@media (min-width: 400px) {
  .trust-marquee__card-inner {
    min-width: 8.5rem;
    max-width: 12rem;
    padding: 0.65rem 0.85rem;
  }
}

@media (min-width: 640px) {
  .trust-marquee__card-inner {
    min-width: 9.5rem;
    max-width: 14rem;
    padding: 0.75rem 1rem;
  }
}

.trust-marquee__logo-wrap {
  width: 5.25rem;
  height: 2.625rem;
}

@media (min-width: 640px) {
  .trust-marquee__logo-wrap {
    width: 6.5rem;
    height: 3.25rem;
  }
}

@media (min-width: 1024px) {
  .trust-marquee__logo-wrap {
    width: 7rem;
    height: 3.5rem;
  }
}

.trust-marquee__logo {
  max-height: 2.625rem;
  max-width: 5.25rem;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(1.08) contrast(1.02);
}

@media (min-width: 640px) {
  .trust-marquee__logo {
    max-height: 3.25rem;
    max-width: 6.5rem;
  }
}

@media (min-width: 1024px) {
  .trust-marquee__logo {
    max-height: 3.5rem;
    max-width: 7rem;
  }
}

.trust-marquee__logo-fallback {
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 0.65rem;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.4),
    rgba(147, 51, 234, 0.35)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f3f4f6;
}

@media (min-width: 640px) {
  .trust-marquee__logo-fallback {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 0.8rem;
    border-radius: 0.75rem;
  }
}

@media (max-width: 639px) {
  .trust-marquee__strip {
    gap: 0.75rem;
  }

  .trust-marquee {
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent,
      #000 2%,
      #000 98%,
      transparent
    );
    mask-image: linear-gradient(
      90deg,
      transparent,
      #000 2%,
      #000 98%,
      transparent
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  .trust-marquee__track {
    animation: none;
    width: 100%;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
  }

  .trust-marquee__strip {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    row-gap: 1rem;
  }

  .trust-marquee__card--dup {
    display: none !important;
  }

  .trust-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ========== MODAL ÉTUDE DE CAS ========== */
.case-study-dialog {
  background: transparent;
  border: none;
  padding: 1rem;
  max-width: calc(100vw - 2rem);
  margin: auto;
}

.case-study-dialog::backdrop {
  background: rgba(5, 5, 12, 0.82);
  backdrop-filter: blur(6px);
}

.case-study-dialog__close:hover {
  color: #fff;
}

/* ========== CARROUSEL TÉMOIGNAGES ========== */
.testimonials-carousel__dot--active {
  background: linear-gradient(90deg, #00f0ff, #5773ff) !important;
  transform: scale(1.15);
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-carousel__track {
    transition: none !important;
  }
}

/* ========== BLOG (Markdown → HTML) ========== */
.blog-prose {
  color: #d1d5db;
  line-height: 1.75;
  font-size: 1.05rem;
}

.blog-prose h2 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #00f0ff, #5773ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-prose h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.blog-prose p {
  margin-bottom: 1rem;
}

.blog-prose ul,
.blog-prose ol {
  margin: 1rem 0 1rem 1.25rem;
}

.blog-prose li {
  margin-bottom: 0.5rem;
}

.blog-prose a {
  color: #60a5fa;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-prose a:hover {
  color: #93c5fd;
}

.blog-prose strong {
  color: #f3f4f6;
  font-weight: 600;
}

.blog-prose code {
  font-size: 0.9em;
  background: rgba(55, 65, 81, 0.6);
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
}

.blog-prose pre {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(55, 65, 81, 0.8);
  border-radius: 0.75rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
}

.blog-prose pre code {
  background: none;
  padding: 0;
}

.blog-prose blockquote {
  border-left: 3px solid rgba(87, 115, 255, 0.6);
  padding-left: 1rem;
  margin: 1.25rem 0;
  color: #9ca3af;
  font-style: italic;
}

.blog-prose hr {
  border: none;
  border-top: 1px solid rgba(55, 65, 81, 0.8);
  margin: 2rem 0;
}
