
/* ========================================
   WiSec.be - Styles CSS Corrigés
   Expert IT & Téléphonie Professionnelle
   ======================================== */

/* Variables CSS (thème sombre) */
:root {
  /* Couleurs */
  --background: hsl(210, 20%, 6%);
  --foreground: hsl(210, 20%, 95%);
  --card: hsl(210, 18%, 10%);
  --card-foreground: hsl(210, 20%, 95%);
  --primary: hsl(199, 89%, 48%);
  --primary-foreground: hsl(210, 20%, 6%);
  --secondary: hsl(210, 15%, 15%);
  --secondary-foreground: hsl(210, 20%, 90%);
  --muted: hsl(210, 15%, 15%);
  --muted-foreground: hsl(210, 10%, 55%);
  --accent: hsl(150, 60%, 45%);
  --accent-foreground: hsl(210, 20%, 6%);
  --destructive: hsl(0, 84.2%, 60.2%);
  --destructive-foreground: hsl(0, 0%, 98%);
  --border: hsl(210, 15%, 18%);
  --input: hsl(210, 15%, 18%);
  --ring: hsl(199, 89%, 48%);
  
  /* Spacing & Sizing */
  --radius: 0.5rem;
  --max-width: 1280px;
  
  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p {
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* Header - CORRIGÉ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(15, 18, 26, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  transition: opacity 0.2s;
}

.logo svg {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.logo:hover {
  opacity: 0.9;
}

.logo:hover svg {
  transform: scale(1.05);
}

.logo-primary {
  color: var(--primary);
}

.logo-foreground {
  color: var(--foreground);
}

/* Navigation */
.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav { display: flex; }
}

.nav-link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover {
  color: var(--foreground);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* Buttons - CORRIGÉ RESPONSIVE */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

/* Boutons responsive sur mobile */
@media (max-width: 767px) {
  .btn {
    font-size: 0.8rem;
    padding: 0.65rem 1.25rem;
  }
  
  .btn .icon {
    width: 1rem;
    height: 1rem;
  }
}

@media (min-width: 1024px) {
  .btn {
    padding: 0.75rem 2rem;
  }
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: hsl(199, 89%, 43%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 172, 238, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--secondary);
  border-color: var(--primary);
}

.cta-buttons {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .cta-buttons { display: flex; }
}

/* Mobile Menu - CORRIGÉ */
.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s;
}

.mobile-menu-toggle:hover {
  color: var(--primary);
}

@media (min-width: 768px) {
  .mobile-menu-toggle { display: none; }
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background-color: rgba(15, 18, 26, 0.98);
  backdrop-filter: blur(12px);
  padding: 1rem;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu-link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
}

.mobile-menu-link:hover {
  color: var(--foreground);
  border-bottom-color: var(--primary);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 18, 26, 0.85) 0%,
    rgba(15, 18, 26, 0.7) 50%,
    rgba(15, 18, 26, 0.85) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 8rem 1rem 4rem;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 8rem 2rem 4rem;
  }
}

.hero-badge {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease-out;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-description {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
  color: var(--muted-foreground);
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 5rem;
  animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.hero-scroll {
  animation: bounce 2s infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Section */
.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section { padding: 6rem 0; }
}

@media (min-width: 1024px) {
  .section { padding: 8rem 0; }
}

.section-alt {
  background-color: rgba(255, 255, 255, 0.02);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 4rem;
  }
}

.section-badge {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-description {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

/* Grid - CORRIGÉ */
.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid {
    gap: 2rem;
  }
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 640px) {
  .grid-cols-sm-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid-cols-md-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-cols-lg-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-lg-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Cards - CORRIGÉ HOVER */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(0, 172, 238, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 172, 238, 0.15);
}

.card-image {
  position: relative;
  height: 16rem;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.1);
}

.card-content {
  padding: 1.5rem;
}

.card-badge {
  display: inline-block;
  background-color: rgba(66, 184, 131, 0.2);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--card-foreground);
}

.card-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Service Card */
.service-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  overflow: hidden;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: rgba(0, 172, 238, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 172, 238, 0.15);
}

.service-image {
  position: relative;
  height: 12rem;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-image-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 18, 26, 0.4);
}

.service-icon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 172, 238, 0.9);
  border-radius: var(--radius);
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary-foreground);
}

.service-content {
  padding: 1.5rem;
}

.service-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.service-region {
  color: var(--muted-foreground);
  font-weight: 400;
}

.service-description {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.service-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.service-feature::before {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  background-color: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  transition: gap 0.2s;
}

.service-card:hover .service-link {
  gap: 0.5rem;
}

/* Feature Box */
.feature-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--card);
  transition: all 0.3s ease;
}

.feature-box:hover {
  border-color: var(--primary);
  background-color: rgba(0, 172, 238, 0.05);
}

.feature-icon{
  stroke: var(--accent); 
  fill:var(--card);
  margin-top: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  
}
.feature-text {
  font-size: 0.875rem;
  line-height: 1.7;
}

/* Benefits List */
.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.benefit-icon {
  margin-top: 0.125rem;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(66, 184, 131, 0.1);
  border-radius: 50%;
}

.benefit-icon svg {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
}

.benefit-text {
  line-height: 1.7;
}

/* Zone Card */
.zone-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  background-color: var(--card);
  transition: all 0.3s ease;
}

.zone-card:hover {
  border-color: rgba(0, 172, 238, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 172, 238, 0.15);
}

.zone-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.zone-icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: var(--primary);
  fill: var(--card);
}

.zone-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.zone-description {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}


/* CTA Section - CORRIGÉ RESPONSIVE */
.cta-box {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background-color: var(--card);
}

@media (min-width: 768px) {
  .cta-box { padding: 3rem; }
}

@media (min-width: 1024px) {
  .cta-box { padding: 4rem; }
}

.cta-title {
  margin-bottom: 1rem;
}

.cta-description {
  max-width: 36rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-content { grid-template-columns: repeat(4, 1fr); }
}

.footer-section-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--foreground);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-tagline {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Lightbox - CORRIGÉ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(15, 18, 26, 0.95);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.2s;
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.lightbox-close:hover {
  color: var(--primary);
  background-color: rgba(255, 255, 255, 0.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(30, 35, 48, 0.5);
  backdrop-filter: blur(8px);
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 1rem;
  border-radius: 50%;
  transition: all 0.2s;
  z-index: 10;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  color: var(--primary);
  background-color: rgba(30, 35, 48, 0.8);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

@media (max-width: 767px) {
  .lightbox-nav {
    padding: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}

.lightbox-content {
  position: relative;
  width: 100%;
  max-width: 64rem;
  height: 80vh;
  margin: 0 1rem;
}

.lightbox-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-caption {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(30, 35, 48, 0.8);
  backdrop-filter: blur(8px);
  color: var(--foreground);
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  white-space: nowrap;
}

@media (max-width: 767px) {
  .lightbox-caption {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    bottom: 0.5rem;
  }
}

/* Utilities */
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Icons (Lucide icons as inline SVG) */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.icon-lg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Animations supplémentaires */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Smooth scroll offset pour header fixe */
html {
  scroll-padding-top: 5rem;
}
