/* ------------------------------------------------------ Désactive le scroll quand le menu mobile est ouvert ------------------------------------------------------ */
body.no-scroll {
  overflow: hidden;
  height: 100vh; /* empêche le scroll même sur mobile */
}

/* ------------------------------------------------------ Général ------------------------------------------------------ */
* {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --main-color: #2c3e50;
  --black-color: #222831;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --red-color: #e74c3c;
  --red-hover: #c0392b;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --border-color: #ecf0f1;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
  --gradient-header: linear-gradient(90deg, #202020 0%, #272727 100%);
  --gradient-menu: linear-gradient(90deg, #2c3e50 0%, #e74c3c 100%);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  font-size: 16px;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ------------------------------------------------------ Utilitaires ------------------------------------------------------ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

a,
ul,
li {
  text-decoration: none;
  list-style: none;
}

/* ------------------------------------------------------ Header ------------------------------------------------------ */
.site-header {
  width: 100%;
  background: var(--gradient-header);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  z-index: 999;
  position: fixed; /* navbar fixe en haut */
  top: 0;
  left: 0;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  height: 100px;
  padding: 0 40px;
  position: relative;
}

.logo img {
  height: 80px;
  width: auto;
}

.nav-menu.menu {
  display: flex;
  gap: 2em;
  font-size: 16px;
  text-transform: uppercase;
}

.nav-menu a,
.cta-buy {
  color: var(--white);
  font-weight: bold;
}

.nav-menu a:hover {
  color: #c41313;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.08);
  transform: scale(1.07);
  transition: color 0.22s, box-shadow 0.22s, transform 0.22s;
}

.cta-buy {
  font-size: 18px;
  text-transform: uppercase;
  white-space: nowrap;
  order: 2;
  background: linear-gradient(90deg, #a82323 60%, #7a1818 100%);
  padding: 15px 30px;
  border-radius: 40px;
  box-shadow: 0 4px 24px rgba(168, 35, 35, 0.18),
    0 1.5px 6px rgba(44, 62, 80, 0.12);
  border: none;
  letter-spacing: 1px;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-buy:hover {
  background: linear-gradient(90deg, #7a1818 60%, #a82323 100%);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.48);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  z-index: 1001; /* au-dessus du menu */
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@keyframes fadeInMenu {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ------------------------------------------------------ HERO SECTION ------------------------------------------------------ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: url("https://media.istockphoto.com/id/1181195701/fr/photo/homme-attendant-dans-le-stationnement-avec-son-e-scooter.jpg?s=612x612&w=0&k=20&c=SU6tGHRbP1yMXRyT0V3lQ6p8IOIw2RjDReBhIl9p0e0=")
    center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 32, 38, 0.5);
  box-shadow: inset 0 8px 32px rgba(144, 158, 172, 0.2);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 10px 20px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(44, 62, 80, 0.32),
    0 1.5px 6px rgba(44, 62, 80, 0.12);
}

.hero-intro {
  font-size: 1.25rem;
  color: var(--light-gray);
  font-weight: 500;
}

.trott-red {
  color: #ce210d;
}

.hero-cta {
  align-self: center;
  background: linear-gradient(90deg, #a82323 60%, #7a1818 100%);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: bold;
  padding: 20px;
  border-radius: 40px;
  box-shadow: 0 4px 24px rgba(168, 35, 35, 0.18),
    0 1.5px 6px rgba(44, 62, 80, 0.12);
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  animation: pulse 1.2s infinite;
  transition: all 0.3s;
}

.hero-cta:hover {
  background: linear-gradient(90deg, #7a1818 60%, #a82323 100%);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(168, 35, 35, 0.12);
  }
  70% {
    transform: scale(1.03);
    box-shadow: 0 0 0 6px rgba(168, 35, 35, 0.05);
  }
  100% {
    transform: scale(1);
  }
}

/* ------------------------------------------------------ Product Section ------------------------------------------------------ */

.product-section {
  width: 100%;
  padding: 6rem 4rem;
  background: #f9fafb;
}

.product-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 5rem;
  align-items: flex-start;
}

/* Galerie */
.product-gallery {
  flex: 1;
}

.product-main-figure {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.product-main-figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
}

.product-thumbnails {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.product-thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}

.product-thumbnails img:hover {
  transform: scale(1.08);
}

/* Contenu */
.product-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.product-title {
  font-size: 2.4rem;
  font-weight: 900;
}

.product-subtitle {
  color: var(--text-light);
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 1.05rem;
}

.product-specs h3 {
  margin-bottom: 1rem;
}

.specs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
}

.specs-list div {
  min-width: 200px;
}

.specs-list span {
  display: block;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Footer produit */
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.product-price strong {
  font-size: 2rem;
  color: var(--red-color);
}

.product-price span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
}

.product-actions {
  display: flex;
  gap: 1rem;
}

.cta-secondary {
  padding: 0.8em 2em;
  border-radius: 40px;
  border: 2px solid var(--red-color);
  color: var(--red-color);
  font-weight: bold;
}

/* ------------------------------------------------------ Trust Section ------------------------------------------------------ */

.trust-section {
  width: 100%;
  padding: 6rem 4rem;
  background: #ffffff;
}

.trust-wrapper {
  max-width: 1300px;
  margin: 0 auto;
}

.trust-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.trust-header h2 {
  font-size: 2.4rem;
  font-weight: 900;
}

.trust-header p {
  margin-top: 1rem;
  color: var(--text-light);
}

.trust-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
}

.trust-item {
  flex: 1 1 calc(33.333% - 3rem);
  max-width: calc(33.333% - 3rem);
  background: #f9fafb;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.trust-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.trust-icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 1rem;
}

.trust-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.trust-item p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ------------------------------------------------------ Reviews Section ------------------------------------------------------ */

.reviews-section {
  width: 100%;
  padding: 6rem 4rem;
  background: #f9fafb;
}

.reviews-wrapper {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 900;
}

.section-header p {
  color: var(--text-light);
  margin-top: 0.5rem;
}

.reviews-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.review-card {
  flex: 1 1 calc(33.333% - 3rem);
  max-width: calc(33.333% - 3rem);
  background: #f9fafb;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.review-rating {
  color: #f1c40f;
  font-size: 1.2rem;
}

.review-text {
  font-style: italic;
  color: var(--text-dark);
}

.review-author span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ------------------------------------------------------ Contact Section ------------------------------------------------------ */

.contact-section {
  width: 100%;
  padding: 6rem 4rem;
  background: #ffffff;
}

.contact-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 5rem;
  align-items: flex-start;
}

.contact-info {
  flex: 1;
}

.contact-info h2 {
  font-size: 2.4rem;
  font-weight: 900;
}

.contact-info p {
  margin: 1rem 0 2rem;
  color: var(--text-light);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-form {
  flex: 1;
  background: #ffffff;
  padding: 3rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--text-light);
}

.form-group input,
.form-group textarea {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  font-size: 1rem;
  font-family: inherit;
}

.contact-cta {
  margin-top: 1rem;
  background: linear-gradient(90deg, #a82323 60%, #7a1818 100%);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.9em 2.4em;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 24px rgba(168, 35, 35, 0.25),
    0 1.5px 6px rgba(44, 62, 80, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    background 0.25s ease;
}

.contact-cta:hover {
  background: linear-gradient(90deg, #7a1818 60%, #a82323 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(168, 35, 35, 0.35),
    0 4px 12px rgba(44, 62, 80, 0.18);
}

.contact-cta:active {
  transform: scale(0.97);
}

.contact-cta:focus-visible {
  outline: 3px solid rgba(168, 35, 35, 0.45);
  outline-offset: 3px;
}

/* ------------------------------------------------------ Footer ------------------------------------------------------ */

.site-footer {
  width: 100%;
  background: linear-gradient(180deg, #1f1f1f 0%, #151515 100%);
  color: #d1d1d1;
  padding: 5rem 4rem 2rem;
}

.footer-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  align-items: flex-start;
}

/* Brand */
.footer-brand {
  max-width: 420px;
}

.footer-logo {
  height: 56px;
  margin-bottom: 1.2rem;
}

.footer-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #b8b8b8;
}

.footer-description strong {
  color: #ffffff;
}

.footer-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #8e8e8e;
}

/* Nav */
.footer-nav {
  min-width: 180px;
}

.footer-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  color: #ffffff;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-nav a {
  color: #cfcfcf;
  font-size: 0.95rem;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-nav a:hover {
  color: var(--red-color);
  transform: translateX(4px);
}

/* Bottom */
.footer-bottom {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #9e9e9e;
}

.footer-bottom strong {
  color: #ffffff;
}

/* ------------------------------------------------------ Responsive ------------------------------------------------------ */
@media (max-width: 1024px) {
  .product-actions {
    flex-direction: column;
  }
  .review-card {
    flex: 1 1 calc(50% - 2rem);
    max-width: calc(50% - 2rem);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: fixed; /* fixe par rapport à l'écran */
    top: 100px; /* juste en dessous de la navbar */
    left: 0;
    width: 100%;
    height: calc(100vh - 100px);
    background: linear-gradient(180deg, #2e3135 0%, #2a2a2b 100%);
    opacity: 0;
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2em;
    padding: 0;
    pointer-events: none; /* empêche les interactions quand fermé */
  }

  .nav-menu.open {
    display: flex;
    opacity: 1;
    animation: fadeInMenu 0.4s ease;
    pointer-events: auto; /* permet les interactions quand ouvert */
  }

  .nav-menu.menu {
    font-size: 22px;
  }

  .nav-menu.open .menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  .nav-menu.open .menu li a {
    font-size: 36px; /* plus grande font pour mobile */
    color: var(--white);
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .cta-buy {
    display: none;
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    width: calc(100vw - 40px);
    max-width: 320px;
    padding: 1em 0;
    border-radius: 40px;
    text-align: center;
    z-index: 1001;
    font-size: 18px;
  }

  .nav-menu.open ~ .cta-buy {
    display: block;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-intro {
    font-size: 1rem;
  }
  .product-section {
    padding: 4rem 1.5rem;
  }

  .product-wrapper {
    flex-direction: column;
    gap: 3rem;
  }

  .product-thumbnails {
    justify-content: center;
    flex-wrap: wrap;
  }

  .product-content {
    text-align: center;
  }

  .product-features {
    align-items: center;
  }

  .specs-list {
    justify-content: center;
  }

  .product-footer {
    flex-direction: column;
  }

  .product-actions {
    flex-direction: column;
    width: 100%;
  }

  .product-actions a {
    width: 100%;
    text-align: center;
  }
  .trust-section {
    padding: 4rem 1.5rem;
  }

  .trust-header h2 {
    font-size: 2rem;
  }

  .trust-grid {
    gap: 2rem;
  }

  .trust-item {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .reviews-section {
    padding: 4rem 1.5rem;
  }

  .review-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .contact-section {
    padding: 4rem 1.5rem;
  }

  .contact-wrapper {
    flex-direction: column;
    gap: 3rem;
    align-items: center;
  }

  .contact-info {
    text-align: center;
  }

  .contact-details {
    align-items: center;
  }

  .contact-form {
    padding: 2rem;
  }

  .contact-cta {
    width: 100%;
    text-align: center;
  }

  .site-footer {
    padding: 3.5rem 1.5rem 2rem;
  }

  .footer-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
  }

  .footer-nav ul {
    align-items: center;
  }

  .footer-nav a:hover {
    transform: none;
  }

  .footer-logo {
    margin: 0 auto 1rem;
  }
}
