/* ============================================
   SERVICES-SPECIFIC CSS
   Styles spécifiques à la page Services.html
   ============================================ */

/* ============================================
   LIQUID GLASS EFFECT
   ============================================ */

.liquid-glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

.liquid-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
  transition: left 0.6s ease;
}

.liquid-glass-card:hover::before {
  left: 100%;
}

.liquid-glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(180, 138, 60, 0.3);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(180, 138, 60, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

/* Light theme adjustments */
body:not(.dark-mode) .liquid-glass-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(180, 138, 60, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

body:not(.dark-mode) .liquid-glass-card:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(180, 138, 60, 0.25);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(180, 138, 60, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

/* Animation de brillance au survol */
@keyframes liquid-shine {
  0% {
    transform: translateX(-100%) translateY(-100%);
  }

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

.liquid-glass-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 30%,
      rgba(255, 255, 255, 0.1) 50%,
      transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.liquid-glass-card:hover::after {
  opacity: 1;
  animation: liquid-shine 1.5s ease-in-out;
}

.container-wide {
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1400px) {
  .container-wide {
    max-width: 1600px;
  }
}

@media (min-width: 1800px) {
  .container-wide {
    max-width: 1800px;
  }
}

.serif-text {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
}

.highlight-text {
  background-image: linear-gradient(120deg, var(--accent) 0%, var(--accent) 100%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: 0 85%;
  -webkit-background-clip: text;
  background-clip: text;
  color: rgba(0, 0, 0, 0.2);
  transition: background-size 1s cubic-bezier(0.22, 1, 0.36, 1), color 0.5s ease;
}

.underline-highlight {
  position: relative;
  display: inline-block;
}

.underline-highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 0%;
  height: 0.4em;
  background-color: var(--accent);
  opacity: 0.3;
  z-index: -1;
  transition: width 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}

.underline-highlight.is-visible::after {
  width: 100%;
}

.underline-highlight-delayed::after {
  transition-delay: 0.2s;
}

.logo-evolution-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.logo-sketch {
  position: absolute;
  inset: 0;
  filter: grayscale(100%) contrast(1.2) brightness(1.1);
  opacity: 1;
  overflow: hidden;
}

.logo-sketch::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(180, 138, 60, 0.1) 0%, transparent 70%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
  mix-blend-mode: overlay;
}

.logo-final {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  z-index: 2;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

.scan-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--accent);
  z-index: 3;
  box-shadow: 0 0 15px var(--accent);
  opacity: 0;
}

.tech-grid-bg {
  background-image: linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(circle at center, black 50%, transparent 100%);
  mask-image: radial-gradient(circle at center, black 50%, transparent 100%);
}

.code-layer {
  font-family: var(--font-mono);
  position: absolute;
  inset: 0;
  padding: 2rem;
  z-index: 10;
  transition: opacity 0.5s ease;
}

.ui-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  opacity: 0;
  filter: blur(10px);
  transform: scale(0.95);
  background: #0f172a;
}

.code-line {
  display: block;
  margin-bottom: 0.5rem;
  white-space: pre;
  opacity: 0.8;
}

.token-const {
  color: #c084fc;
}

.token-func {
  color: #60a5fa;
}

.token-tag {
  color: #f472b6;
}

.token-attr {
  color: #fbbf24;
}

.token-str {
  color: #a3e635;
}

.token-comment {
  color: #64748b;
  font-style: italic;
}

.swiss-grid-item {
  border-top: 1px solid var(--border-color);
  padding-top: 3rem;
  transition: border-color 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.swiss-grid-item:hover {
  border-color: var(--accent);
}

/* ============================================
   RESPONSIVE FIXES - Services Page
   ============================================ */

/* Images hauteur adaptative */
@media (max-width: 1023px) {

  .h-\[600px\],
  .h-\[800px\],
  .lg\:h-\[600px\],
  .lg\:h-\[800px\] {
    height: clamp(300px, 50vw, 450px) !important;
  }
}

@media (max-width: 768px) {

  .h-\[600px\],
  .h-\[800px\] {
    height: clamp(250px, 60vw, 350px) !important;
  }

  /* Grilles services */
  .grid.lg\:grid-cols-2 {
    gap: 2rem !important;
  }

  /* Texte services */
  .text-6xl,
  .text-7xl {
    font-size: clamp(2rem, 8vw, 3rem) !important;
  }
}

@media (max-width: 480px) {

  .h-\[600px\],
  .h-\[800px\] {
    height: clamp(200px, 55vw, 280px) !important;
  }

  /* Container padding */
  .container-wide {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}