.hero {
  background: url('../images/index/SandyShores.png') center/cover no-repeat;
  color: white;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo img {
  max-width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
  animation: animationM 15s ease-in-out infinite;
  will-change: transform;
}

@keyframes animationM {
  0%    { transform: translate(0, 0); }
  16.67% { transform: translate(-16px, 0); }
  33.33% { transform: translate(-16px, -32px); }
  50%    { transform: translate(0, -16px); }
  66.67% { transform: translate(16px, -32px); }
  83.33% { transform: translate(16px, 0); }
  100%   { transform: translate(0, 0); }
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.2;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  opacity: 0.95;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-description {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 40px;
  opacity: 0.9;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Bouton secondaire personnalisé */
.btn-secondary {
  background: var(--color-secondary) !important;
  color: white !important;
  border: none !important;
}

.btn-secondary:hover {
  background: #475569 !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-lg) !important;
}

/* ============================================= */
/*         SECTIONS PRINCIPALES                  */
/* ============================================= */

.features {
  padding: 80px 0;
  background: var(--color-bg-light);
}

.services-dev {
  padding: 80px 0;
  background: white;
}

.hosting-section {
  padding: 80px 0;
  background: var(--color-bg-light);
}

.projects-section {
  padding: 80px 0;
  background: white;
}

.cta {
  padding: 100px 0;
  background: var(--color-bg-light);
  text-align: center;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, #69abe8 100%);
  border-radius: var(--radius-lg);
  color: white;
}

.feature-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
}

.feature-card p {
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Services Développement & Hébergement */
.services-grid,
.hosting-grid {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
}

.hosting-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-card,
.hosting-card {
  background: white;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.service-card:hover,
.hosting-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}

/* Logos communs */
.service-logo,
.hosting-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.service-logo img,
.hosting-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.service-card:hover .service-logo,
.hosting-card:hover .hosting-logo {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Couleurs spécifiques pour les logos - alignées sur tab-button */
.service-card:nth-child(1) .service-logo {  /* Web */
  background: #e3f2fd;
  border: 2px solid #a5d8ff;
}

.service-card:nth-child(2) .service-logo {  /* FiveM */
  background: #fff8f0;
  border: 2px solid #ffdab9;
}

.service-card:nth-child(3) .service-logo {  /* Discord */
  background: #f9f5fd;
  border: 2px solid #d7bde2;
}

/* Hébergement - mêmes couleurs que les tab-button */
.hosting-card:nth-child(1) .hosting-logo {  /* FiveM */
  background: #fff8f0;
  border: 2px solid #ffdab9;
}

.hosting-card:nth-child(2) .hosting-logo {  /* alt:V */
  background: #f1f8f4;
  border: 2px solid #b2f2bb;
}

.hosting-card:nth-child(3) .hosting-logo {  /* Discord */
  background: #f9f5fd;
  border: 2px solid #d7bde2;
}

.hosting-card:nth-child(4) .hosting-logo {  /* Web */
  background: #e3f2fd;
  border: 2px solid #a5d8ff;
}

/* Titres et textes */
.service-card .service-name,
.hosting-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 20px 0 12px;
  color: var(--color-text);
}

.service-card p,
.hosting-card p {
  color: var(--color-text-light);
  line-height: 1.6;
  font-size: 15px;
  margin: 0;
  flex-grow: 1;
}

/* Projets récents */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.project-card {
  background: white;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}

.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: 24px;
}

.project-category {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.project-category.fivem {
  background: #ffdab9;
  color: #c35400;
}

.project-category.discord {
  background: #d7bde2;
  color: #6f42c1;
}

.project-category.web {
  background: #a5d8ff;
  color: #0c8599;
}

.project-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}

.project-content p {
  color: var(--color-text-light);
  line-height: 1.6;
  font-size: 14px;
  margin-bottom: 16px;
}

/* CTA */
.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 40px;
  margin-bottom: 16px;
}

.cta p {
  font-size: 20px;
  margin-bottom: 32px;
  color: var(--color-text-light);
}

.service-card.popular .popular-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #7289da 100%);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Optionnel mais fortement recommandé */
.service-card {
  position: relative;          /* ← SUPER IMPORTANT pour que le badge position: absolute fonctionne */
  overflow: hidden;           /* évite que le badge dépasse bizarrement sur mobile */
}
.services-grid .service-card {
    position: relative;       /* ← C'EST ÇA QUI MANQUE le plus souvent ! */
    overflow: visible;        /* ou hidden selon l'effet voulu */
    /* Les autres styles que tu avais déjà (padding, border-radius, etc.) */
}


/* ============================================= */
/*              RESPONSIVE                       */
/* ============================================= */

@media (max-width: 1024px) {
  .hosting-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid,
  .projects-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

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

  .services-dev,
  .hosting-section,
  .projects-section,
  .features {
    padding: 60px 0;
  }

  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    margin-top: calc(-1 * var(--header-height));
    padding-top: var(--header-height);
    padding-bottom: 40px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 16px;
  }

  .hero-logo img {
    max-height: 250px;
    animation: traceM 15s ease-in-out infinite;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .hero-description {
    font-size: 16px;
  }
}

@media (min-width: 769px) {
  .hero {
    min-height: 93.5vh;
    height: 92vh;
    margin-top: 0;
    padding-top: 0;
  }
}

@keyframes traceM {
  0%    { transform: translate(-1rem, 0); }
  20%   { transform: translate(-1rem, -2rem); }
  40%   { transform: translate(0, 0); }
  60%   { transform: translate(1rem, -2rem); }
  80%   { transform: translate(1rem, 0); }
  100%  { transform: translate(-1rem, 0); }
}