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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #0a0a0a;
  color: #f2f2f2;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: rgba(0, 0, 0, 0.75);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .logo {
  height: 100px;
  max-width: 220px;
  transition: all 0.3s ease;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: #f2f2f2;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
  color: #f89f35;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
  background-color: #f89f35;
  color: #0a0a0a;
}

.btn-primary:hover {
  background-color: #ffa94d;
}

.btn-secondary {
  background-color: #1f1f1f;
  color: #f2f2f2;
  border: 1px solid #333;
}

.btn-secondary:hover {
  background-color: #333;
}

/* Mobile navigation styles */
nav.mobile-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
nav.mobile-nav .nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
nav.mobile-nav .menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #f2f2f2;
  cursor: pointer;
}
@media (max-width: 768px) {
  nav.mobile-nav .menu-toggle {
    display: block;
  }
  nav.mobile-nav .nav-links {
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    gap: 1rem;
    display: none;
  }
  nav.mobile-nav .nav-links.open {
    display: flex;
  }
  /* Hide CTA on mobile when menu is collapsed */
  .header-cta {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  background-image: url('../img/hero.png');
  background-size: cover;
  background-position: center;
  height: 80vh;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  max-width: 600px;
  margin-left: 8%;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #d0d0d0;
}

/* Stats */
.stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 2rem 0;
  background-color: #111;
}

.stat-item h2 {
  font-size: 2.5rem;
  color: #f89f35;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: #cccccc;
}

/* Categories */
.categories {
  padding: 3rem 2rem;
}

.categories h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background-color: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.category-card h3 {
  padding: 1rem;
  font-size: 1.1rem;
  text-align: center;
  color: #f2f2f2;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Services preview */
.services-preview {
  background-color: #111;
  padding: 3rem 2rem;
  text-align: center;
}

.services-preview h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.services-preview p {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #cccccc;
}

/* About preview */
.about-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 3rem 2rem;
  gap: 2rem;
  background-color: #0f0f0f;
}

.about-content {
  flex: 1 1 300px;
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-content p {
  margin-bottom: 1.5rem;
  color: #cccccc;
}

.about-image {
  flex: 1 1 300px;
}

.about-image img {
  border-radius: 8px;
}

/* CTA section */
.cta {
  background-color: #1a1a1a;
  text-align: center;
  padding: 3rem 2rem;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  background-color: #0f0f0f;
}

footer h3 {
  margin-bottom: 1rem;
}

footer a {
  color: #f89f35;
  text-decoration: none;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer .social li {
  display: inline-block;
  margin-right: 1rem;
}

.footer-bottom {
  background-color: #0a0a0a;
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: #777;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.3rem;
  }
  .stats {
    flex-direction: column;
    text-align: center;
  }
  footer {
    flex-direction: column;
    text-align: center;
  }
}

/* Product detail */
.product-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 3rem 2rem;
  background-color: #111;
}

.product-image {
  flex: 1 1 300px;
}

.product-image img {
  border-radius: 8px;
}

.product-info {
  flex: 1 1 300px;
}

.product-info h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.product-info p {
  margin-bottom: 1rem;
  color: #cccccc;
}

.product-info ul {
  margin-bottom: 1.5rem;
  list-style: disc inside;
  color: #cccccc;
}

@media (max-width: 768px) {
  .product-detail {
    flex-direction: column;
  }
}

/* Services page */
.page-header {
  padding: 3rem 2rem 1rem;
  text-align: center;
  background-color: #111;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: #cccccc;
  max-width: 600px;
  margin: 0 auto;
}

.service-list {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.service-item {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  background-color: #0f0f0f;
  padding: 2rem;
  border-radius: 8px;
}

.service-item:nth-child(even) {
  flex-direction: row-reverse;
}

.service-item .service-text {
  flex: 1 1 300px;
}

.service-item .service-text h2 {
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
}

.service-item .service-text p {
  margin-bottom: 1rem;
  color: #cccccc;
}

.service-item .service-text ul {
  list-style: disc inside;
  color: #cccccc;
}

.service-item .service-image {
  flex: 1 1 300px;
}

.service-item .service-image img {
  border-radius: 8px;
}

@media (max-width: 768px) {
  .service-item {
    flex-direction: column !important;
  }
}

/* About section (page) */
.about-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 3rem 2rem;
  background-color: #0f0f0f;
}

.about-section .about-text {
  flex: 1 1 300px;
}

.about-section .about-text h2 {
  font-size: 1.8rem;
  margin: 1rem 0;
}

.about-section .about-text p {
  margin-bottom: 1rem;
  color: #cccccc;
}

.about-section .about-pic {
  flex: 1 1 300px;
}

.about-section .about-pic img {
  border-radius: 8px;
}

@media (max-width: 768px) {
  .about-section {
    flex-direction: column;
  }
}
/* === Responsive Menu Mobile === */
nav.mobile-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
  max-width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #f2f2f2;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #111;
    padding: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }
}

body {
  overflow-x: hidden;
}
/* Correction pour rendre le logo bien visible */
.logo-container img.logo {
  height: 100px !important;
  max-width: unset !important;
  width: auto !important;
  opacity: 1 !important;
  filter: brightness(1.3) contrast(1.2) !important;
  transition: all 0.3s ease;
}

/* Sur mobile */
@media (max-width: 768px) {
  .logo-container img.logo {
    height: 80px !important;
  }
}

/* Section Ils nous font confiance - FORÇAGE PC */
.trust-section {
  padding: 2rem 1rem !important;
  background-color: #0f0f0f !important;
  text-align: center !important;
  overflow: hidden !important;
  border-top: 1px solid #222 !important;
  border-bottom: 1px solid #222 !important;
}

.trust-section h2 {
  margin-bottom: 1.5rem !important;
  color: #f2f2f2 !important;
  font-size: 1.4rem !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.trust-slider {
  position: relative !important;
  max-width: 800px !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  padding: 10px 0 !important;
  width: 100% !important;
  height: 70px !important;
}

.trust-logos {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  animation: scroll-horizontal 30s linear infinite !important;
  width: calc((70px + 1rem) * 10) !important;
  will-change: transform !important;
  height: 50px !important;
}

.trust-logo {
  flex: 0 0 70px !important;
  height: 50px !important;
  background: #1a1a1a !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px !important;
  transition: all 0.3s ease !important;
  opacity: 0.7 !important;
  border: 1px solid #333 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.trust-logo:hover {
  opacity: 1 !important;
  transform: scale(1.02) !important;
  background: #222 !important;
  border-color: #f89f35 !important;
  box-shadow: 0 3px 8px rgba(248, 159, 53, 0.15) !important;
}

.trust-logo img {
  max-height: 35px !important;
  max-width: 55px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  filter: brightness(1.0) contrast(1.0) !important;
  transition: all 0.3s ease !important;
}

.trust-logo:hover img {
  filter: brightness(1.2) contrast(1.1) !important;
}

/* Animation pour le défilement horizontal - FORÇAGE CROSS-BROWSER */
@keyframes scroll-horizontal {
  0% {
    transform: translateX(0) !important;
    -webkit-transform: translateX(0) !important;
    -ms-transform: translateX(0) !important;
  }
  100% {
    transform: translateX(calc(-1 * (70px + 1rem) * 5)) !important;
    -webkit-transform: translateX(calc(-1 * (70px + 1rem) * 5)) !important;
    -ms-transform: translateX(-355px) !important;
  }
}

@-webkit-keyframes scroll-horizontal {
  0% {
    -webkit-transform: translateX(0) !important;
  }
  100% {
    -webkit-transform: translateX(calc(-1 * (70px + 1rem) * 5)) !important;
  }
}

@-ms-keyframes scroll-horizontal {
  0% {
    -ms-transform: translateX(0) !important;
  }
  100% {
    -ms-transform: translateX(-355px) !important;
  }
}

/* Pause animation on hover */
.trust-slider:hover .trust-logos {
  animation-play-state: paused !important;
}

/* STYLES SPÉCIFIQUES PC - FORÇAGE DESKTOP */
@media (min-width: 769px) {
  .trust-section {
    padding: 2rem 1rem !important;
    max-width: 100% !important;
  }

  .trust-section h2 {
    font-size: 1.4rem !important;
    margin-bottom: 1.5rem !important;
  }

  .trust-slider {
    max-width: 800px !important;
    height: 70px !important;
    overflow: hidden !important;
    position: relative !important;
  }

  .trust-logos {
    display: flex !important;
    gap: 1rem !important;
    height: 50px !important;
    width: 710px !important;
    will-change: transform !important;
  }

  /* EDGE COMPATIBLE - PAS D'ANIMATION CSS */
  .trust-logos.edge-compatible {
    animation: none !important;
    -ms-animation: none !important;
    -webkit-animation: none !important;
  }

  /* AUTRES NAVIGATEURS - ANIMATION CSS */
  .trust-logos.css-animation {
    animation: scroll-horizontal 30s linear infinite !important;
    -webkit-animation: scroll-horizontal 30s linear infinite !important;
  }

  .trust-logo {
    flex: 0 0 70px !important;
    width: 70px !important;
    height: 50px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    background: #1a1a1a !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px !important;
    border: 1px solid #333 !important;
    opacity: 0.7 !important;
    -ms-flex: 0 0 70px !important;
    -webkit-flex: 0 0 70px !important;
    display: -ms-flexbox !important;
    display: -webkit-flex !important;
    -ms-flex-align: center !important;
    -webkit-align-items: center !important;
    -ms-flex-pack: center !important;
    -webkit-justify-content: center !important;
  }

  .trust-logo img {
    max-height: 35px !important;
    max-width: 55px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }
}

@media (max-width: 768px) {
  .trust-section {
    padding: 1.5rem 0.5rem;
  }

  .trust-section h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }

  .trust-slider {
    padding: 10px 0;
    max-width: 100%;
    cursor: grab;
  }

  .trust-slider:active {
    cursor: grabbing;
  }

  .trust-logos {
    gap: 1rem;
    animation: scroll-horizontal-mobile 35s linear infinite;
    width: calc((70px + 1rem) * 10);
  }

  .trust-logo {
    flex: 0 0 70px;
    height: 50px;
    padding: 6px;
    border-radius: 6px;
  }

  .trust-logo img {
    max-height: 30px;
    max-width: 55px;
  }

  @keyframes scroll-horizontal-mobile {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-1 * (70px + 1rem) * 5));
    }
  }
}
