/* ==========================================
   1. POLICES ET CONFIGURATIONS GLOBALES
   ========================================== */
@font-face {
  font-family: tabler-icons;
  font-style: normal;
  font-weight: 400;
  src: url("https://www.blascogaming.fr/_static/media/tabler-icons.woff2?v3.31.0") format("woff2");
  font-display: swap;
}

.ti {
  font-family: tabler-icons !important;
  speak: none;
  font-style: normal;
  font-weight: 400;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 1.5rem;
}

.ti-phone-calling:before { content: "\ec43"; }
.ti-brand-whatsapp:before { content: "\ec74"; }
.ti-map-pin:before { content: "\eae8"; }
.ti-mail:before { content: "\eae5"; }
.ti-brand-facebook:before { content: "\ec1a"; }
.ti-brand-instagram:before { content: "\ec20"; }
.ti-menu-2:before { content: "\ec42"; }

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #1f2937;
  --accent: #f59e0b;
  --light: #f3f4f6;
  --dark: #111827;
  --gray: #9ca3af;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a, button, input, textarea {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  transition: background-color .2s;
}

.btn, .copyright a, .whatsapp-btn, nav ul li a {
  text-decoration: none;
}

.fade-in, .product-card {
  transform: translateY(20px);
  opacity: 0;
  transition: opacity .6s, transform .6s;
}

.fade-in.visible, .product-card.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================
   2. HEADER & NAVIGATION
   ========================================== */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #6a0dad, #3a00ff);
  color: #fff;
  padding: 10px 20px;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 80px;
  width: auto;
}

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

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: #fff;
  font-weight: 500;
  padding: .5rem;
  transition: color .3s;
}

nav ul li a:hover {
  color: var(--accent);
}

.hamburger-btn {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  z-index: 1001;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
}


/* ==========================================
   3. SECTIONS & HERO
   ========================================== */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--secondary);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary);
}

.hero {
  background: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)) center/cover, url("../../images/hero.jpg") center/cover;
  padding: 8rem 2rem;
  margin: 70px auto 2rem auto;
  width: 90%;
  border-radius: 15px;
  text-align: center;
  color: var(--white);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem auto;
}


/* ==========================================
   4. BOUTONS ET COMPOSANTS GÉNÉRAUX
   ========================================== */
.btn {
  display: inline-block;
  background-color: #3a00ff;
  color: var(--white);
  padding: .8rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color .3s, transform .3s;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}


/* ==========================================
   5. SECTION À PROPOS
   ========================================== */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .5s;
}

.about-image img:hover {
  transform: scale(1.03);
}

.about-content h2 {
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

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


/* ==========================================
   6. PRODUITS & CATALOGUE (CONSOLES / ACCESSOIRES)
   ========================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 cartes par ligne sur PC */
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,.1);
  transition: transform .3s, box-shadow .3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0,0,0,.15);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: contain; /* Empêche les images d'être coupées ou zoomées */
  background-color: #ffffff; /* Fond propre pour uniformiser */
  transition: transform .3s;
}

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

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.2rem;
  margin-bottom: .5rem;
  color: var(--secondary);
}

.product-description {
  color: var(--gray);
  margin-bottom: 1rem;
  font-size: .9rem;
}

.product-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.whatsapp-btn {
  display: block;
  width: 100%;
  background-color: #25d366;
  color: #fff;
  padding: .7rem;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  transition: background-color .3s;
}

.whatsapp-btn:hover {
  background-color: #128c7e;
}


/* ==========================================
   7. SERVICES & IMAGES VERTICALES
   ========================================== */
#services {
  padding: 40px 20px;
  text-align: center;
}

.images-verticales {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  justify-content: center;
}

.images-verticales img {
  width: 100%;
  max-width: 500px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
  transition: transform .3s;
}

.images-verticales img:hover {
  transform: scale(1.05);
}


/* ==========================================
   8. CONTACT & CARTE
   ========================================== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: .5rem;
  font-weight: 500;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: .8rem;
  border: 1px solid var(--gray);
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color .3s;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}


/* ==========================================
   9. FOOTER & COPYRIGHT
   ========================================== */
footer {
  background: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)) center/cover, url("../../images/pro.jpg") center/cover;
  padding: 3rem 2rem;
  margin-top: 3rem;
  color: var(--white);
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: left;
}

.footer-section h3 {
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-section p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.footer-section i {
  margin-right: 10px;
  color: var(--accent);
}

.footer-section a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-links a {
  color: var(--white);
  font-size: 1.5rem;
  transition: color .3s, transform .3s;
}

.social-links a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.copyright {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
}

.copyright a {
  color: var(--accent);
}


/* ==========================================
   10. OPTIMISATIONS & EFFETS SPÉCIAUX
   ========================================== */
img[data-src] {
  opacity: 0;
  transition: opacity .3s;
}

img.lazy-loaded {
  opacity: 1;
}


/* ==========================================
   11. RESPONSIVE DESIGN (MOBILES & TABLETTES)
   ========================================== */
@media screen and (max-width: 768px) {
  .hamburger-btn {
    display: block;
  }

  nav ul {
    position: fixed;
    top: 40px;
    right: -100%;
    width: 220px;
    height: 400px;
    border-radius: 20%;
    background: url("../../images/menu.jpg");
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    transition: right .4s;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0,0,0,.2);
  }

  nav ul.nav-active {
    right: 0;
  }

  nav ul li {
    margin: 0;
  }

  nav ul li a {
    font-weight: 700;
    line-height: 1.4em;
    font-size: 16px;
  }

  body {
    padding-top: 80px;
  }

  .about-container, 
  .contact-container, 
  .images-verticales {
    grid-template-columns: 1fr;
  }

  .images-verticales {
    gap: 1rem;
  }

  .hero {
    padding: 6rem 1.5rem;
    width: 95%;
    border-radius: 10px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  /* Force exactement 2 cartes par ligne sur téléphone */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  section {
    padding: 3rem 1rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}
