/* ================================
   MATVILLA - Components
   Composants réutilisables
   ================================ */

/* === BOUTONS === */
.btn {
    display: inline-flex;
    align-items: center;
  justify-content: center;
    gap: var(--spacing-xs);
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    cursor: pointer;
    text-align: center;
}

/* Bouton primaire (orange) */
.btn-primary {
    background: var(--orange-primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--orange-dark);
    color: var(--white); /* Garde le texte blanc au hover */
}

/* Bouton secondaire (gris) */
.btn-secondary {
    background: var(--gray-light);
    color: var(--gray-dark);
    border: 1px solid var(--gray-primary);
}

.btn-secondary:hover {
    background: var(--gray-primary);
    color: var(--gray-dark); /* Garde le texte gris foncé au hover */
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--dark);
}

.btn-outline:hover {
    background: var(--dark);
    color: var(--white);
}

/* Boutons outline dans les cards produits - texte sombre pour lisibilité */
.card-product .btn-outline,
.product-content .btn-outline {
    color: var(--gray-dark);
    border: 2px solid var(--gray-dark);
}

.card-product .btn-outline:hover,
.product-content .btn-outline:hover {
    background: var(--gray-dark);
    color: var(--white);
}

/* Boutons outline dans les sections services - texte sombre pour lisibilité */
.service-detail .btn-outline,
.service-detail-content .btn-outline,
.cta-section .btn-outline,
section:not(.section-gray) .btn-outline {
    color: var(--gray-dark);
    border: 2px solid var(--gray-dark);
}

.service-detail .btn-outline:hover,
.service-detail-content .btn-outline:hover,
.cta-section .btn-outline:hover,
section:not(.section-gray) .btn-outline:hover {
    background: var(--gray-dark);
    color: var(--white);
}

/* Boutons outline dans les cards distributeur - texte sombre pour lisibilité */
.store-card .btn-outline {
    color: var(--gray-dark);
    border: 2px solid var(--gray-dark);
}

.store-card .btn-outline:hover {
    background: var(--gray-dark);
    color: var(--white);
}

.btn-large {
    padding: 18px 40px;
    font-size: var(--font-size-md);
}

/* === CARDS === */
/* === CARD PRODUIT (Aperçu page d'accueil) === */
.card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    height: 100%;
    overflow: hidden;
}

.card img {
  width: 100%;
  height: 240px;
  /* ← Hauteur fixe uniforme */
  object-fit: cover;
  /* ← Recadre intelligemment */
  object-position: center;
  /* ← Centre le seau */
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  transition: transform var(--transition-base);
}

.card:hover img {
  transform: scale(1.05);
  /* ← Petit zoom au survol */
}

.card:hover {
    border-color: var(--orange-primary);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange-primary);
    background: var(--orange-lighter);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    font-size: 32px;
}

.card-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--dark);
}

.card-description {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--orange-primary);
    font-weight: var(--font-weight-semibold);
}

.card-link:hover {
    gap: 12px;
}

/* === CARD CATÉGORIE (avec overlay) === */
.card-category {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    height: 280px;
}

.card-category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.card-category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-md);
    transition: var(--transition-base);
}

.card-category:hover .card-category-image {
    transform: scale(1.1);
}

.card-category:hover .card-category-overlay {
    background: linear-gradient(180deg, rgba(255, 107, 53, 0.8), rgba(255, 107, 53, 0.95));
}

.card-category-title {
    color: var(--white);
    font-size: var(--font-size-lg);
    margin-bottom: 8px;
}

.card-category-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-xs);
}

/* === CARD PRODUIT LUMINA === */
.card-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    padding: var(--spacing-xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.card-product.reverse {
    grid-template-columns: 1fr 1fr;
}

.card-product.reverse .product-image {
    order: 2;
}

.product-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.product-badge {
    display: inline-block;
    background: var(--orange-primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
}

.product-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
}

.product-features {
    margin: var(--spacing-md) 0;
}

.product-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.product-feature-icon {
    color: var(--orange-primary);
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* === BADGES === */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 12px 24px;
    background: var(--white);
    color: var(--gray-dark);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    font-weight: var(--font-weight-semibold);
}

.badge-icon {
    font-size: 24px;
    color: var(--orange-primary);
}

/* === FORMULAIRES === */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-xs);
    color: var(--dark);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 16px;
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

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

.form-error {
    color: #E74C3C;
    font-size: var(--font-size-xs);
    margin-top: 4px;
}

/* === STATS / COMPTEURS === */
.stats {
    display: flex;
    gap: var(--spacing-xl);
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 150px;
}

.stat-number {
    font-size: var(--font-size-xxl);
    font-weight: var(--font-weight-bold);
    color: var(--orange-primary);
    font-family: var(--font-primary);
}

.stat-label {
    color: var(--gray);
    font-size: var(--font-size-sm);
    margin-top: 4px;
}

/* === SECTION CLUB MAÎTRE LUMINA === */
.club-section {
    background: var(--gradient-primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.club-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.club-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    backdrop-filter: blur(10px);
}

.club-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    text-align: left;
}

.club-benefit {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.club-benefit-icon {
    color: var(--orange-primary);
    font-size: 24px;
    flex-shrink: 0;
}

.club-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-top: var(--spacing-lg);
}

.club-form .form-input {
    background: rgba(255, 255, 255, 0.95);
    border-color: transparent;
}



/* ================================
   MATVILLA - Components (SUITE)
   Classes pour pages multi-pages
   ================================ */

/* === PAGE HEADER (pages internes) === */
/* Hero avec dégradé orange */
.hero, .page-header {
  background: var(--gradient-hero);
  color: var(--white);
}

.page-header {
  position: relative;
  padding: calc(var(--header-height) + var(--spacing-xl)) 0 var(--spacing-xl);
  text-align: center;
  overflow: visible;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="40" fill="white" opacity="0.1">🔨</text></svg>'),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="35" fill="white" opacity="0.1">🎨</text></svg>'),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="30" fill="white" opacity="0.1">🧱</text></svg>'),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="45" fill="white" opacity="0.1">🏗️</text></svg>'),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="25" fill="white" opacity="0.1">🪣</text></svg>');
  background-position: 
    10% 20%,
    80% 30%,
    30% 70%,
    70% 60%,
    50% 40%;
  background-repeat: no-repeat;
  background-size: 
    80px,
    70px,
    60px,
    90px,
    50px;
  pointer-events: none;
  z-index: 0;
}

.page-header > * {
  position: relative;
  z-index: 1;
}

.page-header-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-header-description {
  font-size: var(--font-size-md);
  color: var(--white);
  margin-top: var(--spacing-md);
}

.page-header .section-subtitle {
  color: var(--white);
}

/* Pattern icônes en blanc sur orange */
.hero-pattern i {
  color: rgba(255, 255, 255, 0.1);
}

/* === NAVIGATION SERVICES === */
.service-nav {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.service-nav-link {
  padding: 12px 24px;
  background: var(--white);
  color: var(--gray-dark);
  border-radius: var(--radius-sm);
  font-weight: var(--font-weight-medium);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.service-nav-link i {
  color: var(--orange-primary);
  transition: var(--transition-fast);
}

.service-nav-link:hover {
  background: var(--orange-primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.service-nav-link:hover i {
  color: var(--white);
}

/* === SERVICE DETAIL === */
.service-detail {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: var(--spacing-xl);
  align-items: start;
  margin-bottom: var(--spacing-xxl);
  padding: 0 var(--spacing-md);
}

.service-detail.reverse {
  grid-template-columns: 55% 45%;
}

.service-detail.reverse .service-detail-image {
  order: 2;
}

/* === Images à droite uniquement === */
.service-detail.reverse .service-detail-image {
  padding-right: var(--spacing-xl);
  /* ← Décale vers la gauche */
  width: 105%;
}

.service-detail-image {
  position: sticky;
  top: calc(var(--header-height) + var(--spacing-md));
  padding: 0 var(--spacing-mg);
}

.service-detail-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.img-crop-letterbox {
  object-fit: cover;
  object-position: center;
  height: 400px;
  /* ou la hauteur souhaitée */
}

.service-icon {
  display: inline-block;
  font-size: 48px;
  margin-bottom: var(--spacing-md);
}

.service-description {
  font-size: var(--font-size-md);
  color: var(--gray);
  margin-bottom: var(--spacing-lg);
  line-height: 1.8;
}

.service-detail-content h3 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.service-list {
  list-style: none;
  margin: var(--spacing-md) 0;
}

.service-list li {
  padding: 12px 0 12px 32px;
  position: relative;
  border-bottom: 1px solid var(--gray-light);
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange-primary);
  font-weight: bold;
  font-size: 18px;
}

.service-features {
  margin: var(--spacing-md) 0;
}

.service-feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  padding: 12px;
  background: var(--gray-light);
  border-radius: var(--radius-sm);
}

.feature-icon {
  color: var(--orange-primary);
  font-weight: bold;
  font-size: 18px;
  flex-shrink: 0;
}

/* === CLUB HERO === */
.club-hero {
  padding: calc(var(--header-height) + var(--spacing-xxl) + var(--spacing-lg)) 0 var(--spacing-xxl);
}

/* === STEPS (Comment ça marche) === */
.steps-container {
  display: flex;
  align-items: center;
  justify-content: center;
        gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
  flex-wrap: wrap;
    }

.step-item {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-light));
  color: var(--white);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
}

.step-arrow {
  font-size: 32px;
  color: var(--orange-primary);
  flex-shrink: 0;
}

/* === TESTIMONIALS === */
.testimonial-card {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-quote {
  font-size: 64px;
  color: var(--orange-primary);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: var(--spacing-sm);
}

.testimonial-text {
  font-size: var(--font-size-md);
  font-style: italic;
  color: var(--gray);
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-author strong {
  color: var(--dark);
  font-size: var(--font-size-sm);
}

.testimonial-author span {
  color: var(--gray);
  font-size: var(--font-size-xs);
}

/* === FORMULAIRE CLUB === */
.form-container {
  max-width: 800px;
  margin: 0 auto;
    }

.club-inscription-form {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* === FAQ === */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.faq-item h3 {
  color: var(--dark);
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-md);
}

.faq-item p {
  color: var(--gray);
  line-height: 1.7;
  margin: 0;
}

/* === CONTACT QUICK CARDS === */
.contact-quick-card {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-quick-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-light));
  color: var(--white);
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
    }

.contact-quick-card h3 {
  margin-bottom: 8px;
}

.contact-quick-card p {
  color: var(--gray);
  margin-bottom: var(--spacing-md);
}

/* === CONTACT INFO CARDS === */
.contact-info-card {
  display: flex;
        gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  border-left: 4px solid var(--orange-primary);
  box-shadow: var(--shadow-sm);
    }

.contact-info-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gray-light);
  color: var(--orange-primary);
  font-size: 24px;
  display: flex;
  align-items: center;
        justify-content: center;
  flex-shrink: 0;
}

.contact-info-card h3 {
  font-size: var(--font-size-md);
  margin-bottom: 4px;
}

.contact-info-card p {
  color: var(--gray);
  margin: 0;
  line-height: 1.6;
}

.social-link {
  display: inline-block;
  padding: 8px 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--orange-primary);
  color: var(--white);
}

/* === MAP CONTAINER === */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* === STORE CARDS === */
.store-card {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

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

.store-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--orange-primary);
  color: var(--white);
  border-radius: 20px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-md);
}

.store-card h3 {
  margin-bottom: var(--spacing-md);
}

.store-info {
  margin-bottom: var(--spacing-lg);
}

.store-info p {
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--gray-light);
  color: var(--gray);
  line-height: 1.6;
}

.store-info p:last-child {
  border-bottom: none;
}

.store-info strong {
  color: var(--dark);
  display: block;
  margin-bottom: 4px;
}

/* === CTA SECTION === */
.cta-section {
  text-align: center;
  padding: var(--spacing-xl);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.cta-section h2 {
  margin-bottom: var(--spacing-md);
}

.cta-section p {
  color: var(--gray);
  font-size: var(--font-size-md);
  margin-bottom: 0;
}

/* === MENU MOBILE === */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* === Highlight champ pré-rempli === */
.highlight-field {
  animation: highlightPulse 2s ease-out;
}

@keyframes highlightPulse {
  0% {
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.3);
  }

  100% {
    border-color: var(--gray-light);
    box-shadow: none;
    }
}