/* ============================================
   PRODUCT PAGE STYLES
   File: assets/css/product.css
   For: xtra-bucket.html
   ============================================ */

/* ============================================
   CSS VARIABLES (Product Page Specific)
   ============================================ */
.product-page {
  --product-bg: #0ebfc6;
  --product-bg-alt: #ffffff;
  --product-text: #1a1a1a;
  --product-text-muted: #666666;
  --product-primary: #ff5500;
  --product-primary-hover: #e64d00;
  --product-primary-light: #fff2e5;
  --product-success: #28a745;
  --product-border: #eeeeee;
  --product-shadow: 0 2px 8px rgb(0 0 0 / 6%);
  --product-shadow-hover: 0 8px 24px rgb(0 0 0 / 10%);
  --product-radius: 12px;
  --product-radius-sm: 8px;
}

/* ============================================
   BUTTONS (Same as index page)
   ============================================ */
.product-page .btn {
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  border-radius: var(--product-radius-sm);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  font-family: inherit;
  line-height: 1.5;
}

.product-page .btn--primary {
  background-color: var(--product-primary);
  color: white;
}

.product-page .btn--primary:hover {
  background-color: var(--product-primary-hover);
  transform: translateY(-2px);
  border: solid 2px #000000;
  box-shadow: 0 6px 20px rgb(0 0 0 / 40%);
}

.product-page .btn--outline {
  background-color: transparent;
  color: var(--product-text);
  border: 2px solid var(--product-primary);
}

.product-page .btn--outline:hover {
  background-color: var(--product-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgb(0 0 0 / 40%);
}

.product-page .btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.product-page .btn--xl {
  padding: 1.125rem 3rem;
  font-size: 1.25rem;
}

/* ============================================
   PRODUCT HEADER
   ============================================ */
.product-header {
  --header-bg: #001114;
  --header-text: #ffffff;
  --header-text-muted: #88c8ca;

  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  padding: 15px 0;
  transition: all 0.5s;
}

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

.product-header .back-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--header-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.product-header .back-link:hover {
  color: var(--header-text);
}

.product-header .logo img {
  max-height: 40px;
  width: auto;
}

.product-header .header-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--product-primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: var(--product-radius-sm);
  transition: background 0.2s;
}

.product-header .header-cta:hover {
  background: var(--product-primary-hover);
  color: #ffffff;
}

/* ============================================
   SECTION COMMON STYLES
   ============================================ */
.product-page .section__header {
  margin-bottom: 3rem;
}

.product-page .section__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--product-text);
  margin-bottom: 0.75rem;
}

.product-page .section__subtitle {
  font-size: 1.1rem;
  color: var(--product-primary-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   HERO SECTION
   ============================================ */
.product-hero {
  padding: 80px 20px 60px;
  background:
    linear-gradient(180deg, rgb(14 191 198 / 55%) 0%, rgb(255 255 255 / 100%) 100%),
    url("../img/solution-bg-2.webp") center center / cover no-repeat;
}

.product-hero__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.product-hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--product-primary-light);
  color: var(--product-primary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.product-hero__title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  color: var(--product-text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.product-hero__subtitle {
  font-size: 1.25rem;
  color: var(--product-primary-light);
  margin-bottom: 0.25rem;
}

.product-hero__tagline {
  font-size: 0.95rem;
  color: var(--product-text);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.product-hero__description {
  font-size: 1.1rem;
  color: var(--product-text);
  line-height: 1.7;
}

/* ============================================
   USP SECTION (Point Différenciateur)
   ============================================ */
.product-usp {
  padding: 3rem 2rem;
  background: var(--product-bg-alt);
}

.product-mobility .section__subtitle,
.product-story .section__subtitle,
.product-usp .section__subtitle {
  color: var(--product-bg);
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.usp-card {
  background: var(--product-bg);
  border-radius: var(--product-radius);
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--product-border);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

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

.usp-card__icon {
  width: 64px;
  height: 64px;
  background: var(--product-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
  color: var(--product-primary);
}

.usp-card--swish .usp-card__icon {
  background: #e8f5e9;
  color: #2e7d32;
}

.usp-card--standard .usp-card__icon {
  background: #e3f2fd;
  color: #1565c0;
}

.usp-card--amorti .usp-card__icon {
  background: var(--product-primary-light);
  color: var(--product-primary);
}

.usp-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--product-text);
  margin-bottom: 0.75rem;
}

.usp-card__text {
  font-size: 0.95rem;
  color: var(--product-bg-alt);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ============================================
   FEATURES SECTION (Conception & Sécurité)
   ============================================ */
.product-features {
  padding: 80px 20px;
  background: var(--product-bg);
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.features-grid .feature-card {
  flex: 1 1 calc(50% - 0.75rem);
  min-width: 280px;
}

.feature-card {
  background: var(--product-bg-alt);
  border-radius: var(--product-radius);
  padding: 1.75rem;
  border: 1px solid var(--product-border);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

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

.feature-card__icon {
  width: 48px;
  height: 48px;
  background: var(--product-primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--product-primary);
}

.feature-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--product-text);
  margin-bottom: 0.5rem;
}

.feature-card__text {
  font-size: 0.95rem;
  color: var(--product-text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ============================================
   MOBILITY SECTION
   ============================================ */
.product-mobility {
  padding: 80px 20px;
  background: var(--product-bg-alt);
}

.mobility-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.mobility-image {
  flex: 0 0 250px;
}

.mobility-image img {
  width: 100%;
  height: auto;
  border-radius: var(--product-radius);
}

.mobility-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
}

.mobility-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.mobility-step__number {
  width: 48px;
  height: 48px;
  background: var(--product-primary);
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobility-step__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--product-text);
  margin-bottom: 0.25rem;
}

.mobility-step__text {
  font-size: 0.95rem;
  color: var(--product-text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ============================================
   SPECS SECTION (Fiche Technique)
   ============================================ */
.product-specs {
  padding: 80px 20px;
  background: var(--product-bg);
}

.specs-table-wrapper {
  max-width: 800px;
  margin: 0 auto;
  overflow-x: auto;
  border-radius: var(--product-radius);
  box-shadow: var(--product-shadow);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--product-bg-alt);
}

.specs-table th,
.specs-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--product-border);
}

.specs-table th {
  width: 40%;
  font-weight: 600;
  color: var(--product-text);
  background: #0ebfc673;
}

.specs-table td {
  color: var(--product-text-muted);
}

.specs-table__price-row {
  background: var(--product-primary-light) !important;
}

.specs-table__price-row th,
.specs-table__price-row td {
  border-bottom: none;
}

.specs-table__price-row td {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.specs-table__price-row td strong {
  font-size: 1.5rem;
  color: var(--product-text);
}

.specs-table__old-price {
  font-size: 1rem;
  color: var(--product-text-muted);
  text-decoration: line-through;
}

.specs-table__badge {
  display: inline-flex;
  padding: 0.25rem 0.5rem;
  background: var(--product-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
}

/* ============================================
   TESTIMONIAL SECTION
   ============================================ */
.product-testimonial {
  padding: 80px 20px;
  background: linear-gradient(180deg, var(--product-bg-alt) 0%, var(--product-bg) 100%);
}

.testimonial-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--product-bg-alt);
  border-radius: var(--product-radius);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--product-shadow);
  border: 1px solid var(--product-border);
  position: relative;
}

.testimonial-card__icon {
  font-size: 3rem;
  color: var(--product-primary-light);
  margin-bottom: 1rem;
}

.testimonial-card__icon i {
  background: var(--product-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.3;
}

.testimonial-card__quote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--product-text);
  line-height: 1.8;
  margin: 0 0 1.5rem;
}

.testimonial-card__author {
  padding-top: 1rem;
  border-top: 1px solid var(--product-border);
}

.testimonial-card__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--product-primary);
}

/* ============================================
   STORY SECTION (Matériaux)
   ============================================ */
.product-story {
  padding: 80px 20px;
  background: var(--product-bg-alt);
}

.story-blocks {
  max-width: 800px;
  margin: 0 auto;
}

.story-block {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--product-border);
}

.story-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.story-block__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--product-text);
  margin-bottom: 1rem;
}

.story-block__text {
  font-size: 1rem;
  color: var(--product-text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.story-block__text:last-child {
  margin-bottom: 0;
}

/* Story block with image */
.story-block--with-image {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.story-block__image {
  flex: 0 0 200px;
}

.story-block__image img {
  width: 100%;
  height: auto;
  border-radius: var(--product-radius);
  box-shadow: var(--product-shadow-hover);
}

.story-block__content {
  flex: 1;
}

/* ============================================
   COMPARISON SECTION
   ============================================ */
.product-comparison {
  padding: 80px 20px;
  background: var(--product-bg);
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--product-radius);
  box-shadow: var(--product-shadow);
  max-width: 1200px;
  margin: 0 auto 1.5rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--product-bg-alt);
  font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid #dddddd;
  white-space: nowrap;
  color: var(--product-text);
}

.comparison-table th {
  background: #001114;
  font-weight: 600;
  color: #ffffff;
}

.comparison-table th.highlight {
  background: var(--product-primary);
  color: #ffffff;
}

.comparison-table td {
  background: var(--product-bg-alt);
  color: #333333;
}

.comparison-table td.highlight {
  background: var(--product-primary-light);
  font-weight: 500;
  color: var(--product-text);
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--product-text);
  background: #81e3ec;
  white-space: normal;
}

.comparison-note {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  background: var(--product-primary-light);
  border-radius: var(--product-radius-sm);
  font-size: 0.9rem;
  color: var(--product-text);
}

.comparison-note p {
  margin: 0;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.product-faq {
  padding: 80px 20px;
  background: var(--product-bg-alt);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.product-faq .faq-item {
  background: var(--product-bg);
  border-radius: var(--product-radius-sm);
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--product-border);
}

.product-faq .faq-item__question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--product-text);
  text-align: left;
  transition: background 0.2s;
}

.product-faq .faq-item__question:hover {
  background: rgb(0 0 0 / 2%);
}

.product-faq .faq-item__icon {
  font-size: 1.5rem;
  color: var(--product-primary);
  transition: transform 0.2s;
}

.product-faq .faq-item.active .faq-item__icon {
  transform: rotate(45deg);
}

.product-faq .faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.product-faq .faq-item.active .faq-item__answer {
  max-height: 500px;
}

.product-faq .faq-item__answer p {
  padding: 0 1.5rem 1.5rem;
  margin: 0;
  font-size: 0.95rem;
  color: var(--product-bg-alt);
  line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */
.product-cta {
  padding: 80px 20px;
  background: linear-gradient(180deg, var(--product-bg) 0%, #e8f4f4 100%);
}

.cta-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--product-bg-alt);
  border-radius: var(--product-radius);
  padding: 3rem;
  text-align: center;
  box-shadow: 0 4px 20px rgb(0 0 0 / 10%);
}

.cta-card__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--product-text);
  margin-bottom: 1.5rem;
}

.cta-card__price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.cta-card__price-new {
  font-size: 3rem;
  font-weight: 800;
  color: var(--product-text);
}

.cta-card__price-old {
  font-size: 1.5rem;
  color: var(--product-text-muted);
  text-decoration: line-through;
}

.cta-card__price-badge {
  display: inline-flex;
  padding: 0.5rem 1rem;
  background: var(--product-primary);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 4px;
}

.cta-card__installment {
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--product-text-muted);
}

.cta-card__installment strong {
  color: var(--product-primary);
  font-weight: 700;
}

.cta-card__reassurance {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--product-text-muted);
}

.cta-card__reassurance span {
  display: flex;
  align-items: center;
}

.cta-card__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (width <= 768px) {
  .product-hero {
    padding: 60px 16px 40px;
  }

  .product-hero__title {
    font-size: 2rem;
  }

  .product-usp,
  .product-features,
  .product-mobility,
  .product-specs,
  .product-testimonial,
  .product-story,
  .product-comparison,
  .product-faq,
  .product-cta {
    padding: 60px 16px;
  }

  .testimonial-card {
    padding: 2rem 1.5rem;
  }

  .testimonial-card__quote {
    font-size: 1rem;
  }

  /* Story block with image - mobile */
  .story-block--with-image {
    flex-direction: column;
    align-items: center;
  }

  .story-block__image {
    flex: 0 0 auto;
    max-width: 250px;
    margin-bottom: 1.5rem;
  }

  .story-block__content {
    text-align: center;
  }

  .cta-card {
    padding: 2rem 1.5rem;
  }

  .cta-card__price-new {
    font-size: 2.5rem;
  }

  .comparison-table {
    font-size: 0.8rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
  }

  .mobility-content {
    flex-direction: column;
    gap: 2rem;
  }

  .mobility-image {
    flex: 0 0 auto;
    max-width: 200px;
  }

  .mobility-steps {
    align-items: stretch;
  }

  .mobility-step {
    max-width: 100%;
  }

  .specs-table th,
  .specs-table td {
    padding: 0.75rem 1rem;
  }

  .specs-table th {
    width: 45%;
  }
}

@media (width <= 480px) {
  .product-header .back-link span {
    display: none;
  }

  .cta-card__reassurance {
    flex-direction: column;
    gap: 0.75rem;
  }

  .cta-card__buttons {
    flex-direction: column;
  }

  .product-page .cta-card__buttons .btn {
    width: 100%;
  }
}
