:root {
  --color-bg: #0e0e0e;
  --color-bg-alt: #1a1a1a;
  --color-surface: #1f1f1f;
  --color-border: #333333;
  --color-text: #f2f2f2;
  --color-muted: #aaaaaa;
  --color-accent: #f38b28;
  --color-accent-soft: rgba(255, 122, 0, 0.12);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.45);
  --radius-md: 20px;
  --radius-lg: 20px;
  --transition-fast: 0.2s ease;
  --max-width: 1120px;
  --topbar-height: 64px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

/* Reset minimal */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: radial-gradient(circle at top, #181818 0, var(--color-bg) 55%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(14, 14, 14, 0.29),
    rgba(14, 14, 14, 0.29)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.topbar-container {
  max-width: var(--max-width);
  margin: 0 auto;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.5rem;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.3rem;
  color: var(--color-text);
}

/* Nav */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-link {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  transition: background var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  transform: translateY(-1px);
}

.nav-link.active {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

/* Nav button */
.btn-nav {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-nav.active,
.btn-nav:hover {
  border-color: var(--color-accent);
}

/* Hamburger */
.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(20, 20, 20, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle .bar {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-text);
}

/* Layout */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.section {
  margin-top: 3rem;
}

.section-header {
  margin-bottom: 1.75rem;
}

.section-header h2 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
}

.section-header p {
  margin: 0;
  color: var(--color-muted);
}

/* Hero : on prépare le container */
.hero {
  position: relative;              /* pour placer le slider derrière */
  overflow: hidden;                /* couper ce qui dépasse */
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
  isolation: isolate;              /* évite que le bg interfère avec le reste */
}

/* Calque du slider de background */
.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: -1;                     /* derrière le contenu */
  perspective: 1200px;             /* profondeur pour l’effet 3D */
}

/* Chaque slide */
.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0;
  transform: translateZ(-180px) scale(1.08) rotateY(0deg);
  filter: blur(1px);
  transition:
    opacity 0.9s ease-in-out,
    transform 1.1s ease-in-out,
    filter 0.9s ease-in-out;
}

/* Slide active, en avant avec effet 3D */
.hero-bg-slide.is-active {
  opacity: 1;
  transform: translateZ(0) scale(1.02) rotateY(0deg);
  filter: blur(0);
}

/* Slide en sortie à gauche (rotation) */
.hero-bg-slide.is-leaving-left {
  opacity: 0;
  transform: translateZ(-250px) rotateY(-18deg) scale(1.05) translateX(-4%);
}

/* Slide en sortie à droite (si tu veux) */
.hero-bg-slide.is-leaving-right {
  opacity: 0;
  transform: translateZ(-250px) rotateY(18deg) scale(1.05) translateX(4%);
}

/* Option : overlay sombre pour garder la lisibilité du texte */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(11, 11, 11, 0.65), rgba(0,0,0,0.92));
  z-index: -1;
}

/* Le reste de ton CSS hero-content / hero-visual reste tel quel */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 14, 0.9);
  pointer-events: none;
  z-index: -1;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
  padding: 3.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.04); 
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  
}

.hero-content h1 {
  font-size: clamp(1.9rem, 2.4vw + 1.4rem, 2.6rem);
  margin-bottom: 0.75rem;
 
}

.hero-content p {
  color: var(--color-muted);
  max-width: 36rem;
  line-height: 1.5;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  background: radial-gradient(
      circle at top left,
      rgba(255, 122, 0, 0.08),
      transparent 55%
    ),
    var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  min-width: 250px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Grids & cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.02),
    rgba(0, 0, 0, 0.6)
  );
  border-radius: var(--radius-md);
  padding: 1.25rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.card h3,
.card h2 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.card p {
  margin-top: 0;
  color: var(--color-muted);
}

.card.small {
  padding: 1rem;
}

.card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.02),
    rgba(0, 0, 0, 0.6)
  );
  border-radius: var(--radius-md);
  padding: 1.25rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);

  /* Ajout important pour l’animation */
  transform: translateY(0);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
}

.card:hover {
  transform: translateY(-6px);              /* légère translation vers le haut */
  border-color: var(--color-accent);        /* bordure en primary color */
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  background: linear-gradient(
    145deg,
    rgba(243, 139, 40, 0.08),               /* léger glow accent */
    rgba(0, 0, 0, 0.7)
  );
}
/* Bannière produits */
.products-hero-banner {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin: 1.5rem auto 2rem;
  padding: 0 1.25rem;
}

.products-hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

/* Image de fond */
.products-hero-media img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 5; /* adapte si besoin */
  object-fit: cover;
  transform: scale(1.02);
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

/* Overlay sombre sur l'image */
.products-hero-overlay-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(14,14,14,0.78),
    rgba(14,14,14,0.35),
    rgba(14,14,14,0.9)
  );
}

/* Contenu texte devant l'image */
.products-hero-content {
  position: absolute;
  inset: 0;
  padding: 1.8rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
}

.products-hero-content h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.9rem, 2.3vw + 1.2rem, 2.6rem);
}

.products-hero-content p {
  margin: 0;
  max-width: 34rem;
  color: var(--color-muted);
}

/* Effet léger au survol de la bannière */
.products-hero-banner:hover .products-hero-media img {
  transform: scale(1.05);
  filter: saturate(1.08);
}

/* Ajustement mobile */
@media (max-width: 720px) {
  .products-hero-banner {
    margin-top: 1.1rem;
    padding: 0 1rem;
  }
  /* Image de fond */
  .products-hero-media img {
    width: 100%;
    display: block;
    aspect-ratio: 2.5 / 3; /* adapte si besoin */
    object-fit: cover;
    transform: scale(1.02);
    transition: transform var(--transition-fast), filter var(--transition-fast);
    }
  .products-hero-content {
    padding: 1.4rem 1.5rem;
  }
  .products-hero-content h1 {
    font-size: 1.7rem;
  }
}

/* Product cards */
.product-card {
  position: relative;
  border-radius: var(--radius-md);
}

.product-card {
  position: relative;
  transform: translateY(0);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
}

/* Effet hover carte + bordure accent */
.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}

/* Bloc image en haut de la carte */
.product-image {
  width: 100%;
  border-radius: calc(var(--radius-md) - 2px);
  overflow: hidden;
  margin-bottom: 0.9rem;
  background: #111111;
}

/* Image responsive avec ratio (ex: 4/3) */
.product-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

/* Zoom léger au survol de la carte */
.product-card:hover .product-image img {
  transform: scale(1.04);
}



.product-meta {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.product-meta li::before {
  content: "• ";
  color: var(--color-accent);
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn-primary {
  background: var(--color-accent);
  color: #1a1a1a;
  box-shadow: 0 10px 25px rgba(255, 122, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(255, 122, 0, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
}

/* Page header */
.page-header {
  margin-top: 2.5rem;
  margin-bottom: 2rem;
}

.page-header h1 {
  margin-bottom: 0.4rem;
}

/* Forms */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

label {
  font-size: 0.9rem;
  color: var(--color-muted);
}

input,
select,
textarea {
  background: rgba(15, 15, 15, 0.9);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.55rem 0.75rem;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px rgba(255, 122, 0, 0.3);
}

.form-status {
  font-size: 0.85rem;
  color: var(--color-muted);
  min-height: 1.2rem;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.25rem 0 1.75rem;
  background: rgba(8, 8, 8, 0.98);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-content: flex-start;
  }

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

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

@media (max-width: 720px) {
  .topbar-container {
    padding: 0 1rem;
  }

  .nav-menu {
    position: absolute;
    inset: var(--topbar-height) 0 auto 0;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem 1rem 0.9rem;
    gap: 0.25rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.2s ease, opacity 0.2s ease;
  }

  .nav-menu.open {
    max-height: 260px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    padding: 0.45rem 0.3rem;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    margin-top: 1.8rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}


/* Icônes Font Awesome intégrées au texte / titres / boutons */
.brand-name i,
.nav-link i,
.hero-content h1 i,
.hero-actions .btn-primary i,
.hero-actions .btn-secondary i,
.section-header h2 i,
.card h3 i {
  margin-right: 0.45rem;        /* espace entre l’icône et le texte */
  font-size: 0.95em;            /* légèrement ajusté à la taille du texte */
  vertical-align: middle;       /* meilleure alignement avec la première ligne */
}

/* Icônes dans la navbar un peu plus discrètes */
.nav-link i {
  opacity: 0.9;
}

/* Icônes dans les boutons : centrage et légère mise en avant */
.hero-actions .btn-primary i,
.hero-actions .btn-secondary i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Icône du logo dans le nom de marque */
.brand-name i {
  color: var(--color-accent);
}

/* Optionnel : effet léger au survol des liens avec icônes */
.nav-link:hover i,
.btn-primary:hover i,
.btn-secondary:hover i {
  transform: translateY(-1px);
  transition: transform var(--transition-fast);
}


