/* === Variables === */
:root {
  --primary: #0071e3;
  --primary-hover: #0077ed;
  --background: #d7d7d7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #86868b;
  --text-light: #6e6e73;
  --border: rgba(0, 0, 0, 0.1);
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

/* === Reset & Global styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}



body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.47059;
  letter-spacing: -0.022em;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* === Header === */
header {
  background: rgba(149, 222, 210, 0.8);
  padding: var(--spacing-sm) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 44px;
}

header h1 {
  margin: 0;
  font-size: 1.2rem;
}

header h1 a {
  text-decoration: none;
  color: #2c2c2c;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

header h1 a:hover {
  color: #666;
}

header nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

header nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

header nav a:hover {
  opacity: 1;
}

/* === Section Hero === */
.hero {
  text-align: center;
  padding: var(--spacing-xl) 0;
  margin-bottom: var(--spacing-xl);
  background: var(--background);
}

.hero h2 {
  font-size: 48px;
  line-height: 1.08349;
  font-weight: 600;
  letter-spacing: -0.003em;
  color: var(--text);
  margin-bottom: var(--spacing-sm);
}

.hero p {
  font-size: 21px;
  line-height: 1.381;
  font-weight: 400;
  letter-spacing: .011em;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: 980px;
  text-decoration: none;
  font-size: 17px;
  line-height: 1.17648;
  font-weight: 400;
  letter-spacing: -0.022em;
  min-width: 28px;
  transition: all 0.2s ease;
}

.cta-button:hover {
  background: var(--primary-hover);
}

/* === Section Produits === */
#products {
  padding: var(--spacing-xl) 0;
  background-color: var(--surface);
}

#products h2 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  font-size: 48px;
  line-height: 1.08349;
  font-weight: 600;
  letter-spacing: -0.003em;
  color: var(--text);
}

.product-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
}

@media (max-width: 734px) {
  .product-list {
    grid-template-columns: 1fr;
  }
}

.product {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.product-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.product-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f5f5f7;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-content {
  padding: var(--spacing-md);
}

.product h3 {
  font-size: 24px;
  line-height: 1.16667;
  font-weight: 600;
  letter-spacing: .009em;
  color: var(--text);
  margin-bottom: var(--spacing-xs);
}

.product .description {
  font-size: 14px;
  line-height: 1.42859;
  font-weight: 400;
  letter-spacing: -0.016em;
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product .price {
  font-size: 17px;
  line-height: 1.23536;
  font-weight: 600;
  letter-spacing: .012em;
  color: var(--text);
}

.add-to-cart {
  background: var(--primary);
  color: white;
  border: none;
  padding: 4px 11px;
  border-radius: 980px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.add-to-cart:hover {
  background: var(--primary-hover);
}

.product:hover {
  transform: translateY(-4px);
}

.product:hover img {
  transform: scale(1.02);
}

/* === Cart Page Styles === */
.cart-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  margin: 2rem 0;
}

.cart-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
}

@media (max-width: 768px) {
  .cart-content {
    grid-template-columns: 1fr;
  }
}

.cart-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 1rem;
}

.cart-table th {
  text-align: left;
  padding: 1rem;
  color: var(--text-light);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.cart-table td {
  padding: 1rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cart-table tr td:first-child {
  border-left: 1px solid var(--border);
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}

.cart-table tr td:last-child {
  border-right: 1px solid var(--border);
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.cart-summary-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.summary-line.total {
  border-bottom: none;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}

.checkout-form {
  margin-top: 2rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #2563eb20;
}

.checkout-button {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkout-button:hover {
  background: var(--primary-dark);
}

.checkout-button:disabled {
  background: var(--text-light);
  cursor: not-allowed;
}

.cart-table-wrapper {
  overflow-x: auto;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.cart-table th,
.cart-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.cart-table th {
  font-weight: 600;
  color: #2d3436;
  background-color: #f8f9fa;
}

.product-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.product-name {
  font-weight: 500;
  color: #2d3436;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-controls button {
  background: #f8f9fa;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.quantity-controls button:hover {
  background: #e9ecef;
}

.remove-btn {
  background: none;
  border: none;
  color: #e84393;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 50%;
}

.remove-btn:hover {
  background-color: #fff0f6;
  transform: scale(1.1);
}

.cart-summary-section {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 15px;
  position: sticky;
  top: 2rem;
}

#cart-total-section {
  margin-bottom: 2rem;
}

#cart-total-section h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: #2d3436;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: #636e72;
}

.summary-line.total {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d3436;
  border-top: 2px solid #dee2e6;
  padding-top: 1rem;
  margin-top: 1rem;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-group input,
.form-group textarea {
  padding: 0.8rem 1rem;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #00b894;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
}

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

.checkout-button {
  background: linear-gradient(135deg, #00b894, #00cec9);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.checkout-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.checkout-button:disabled {
  background: #dee2e6;
  cursor: not-allowed;
}

/* Responsive Design for Cart Page */
@media (max-width: 992px) {
  .cart-content {
    grid-template-columns: 1fr;
  }
  
  .cart-summary-section {
    position: static;
  }
}

@media (max-width: 768px) {
  .cart-section {
    padding: 1rem;
  }
  
  .cart-table th,
  .cart-table td {
    padding: 0.8rem;
  }
  
  .quantity-controls button {
    width: 25px;
    height: 25px;
  }
}

/* === Footer === */
footer {
  padding: 2rem 0;
  background: linear-gradient(135deg, #aed5cd, #a7e8e7);
  color: white;
  text-align: center;
  margin-top: 3rem;
}

footer p {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* === Responsive Design === */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.6rem;
  }
  
  .hero h2 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  .product-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .product-details {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .product-section {
    padding: var(--spacing-md);
  }

  .product-info h1 {
    font-size: 1.6rem;
  }
}

/* Styles pour les liens produits */
.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-link:hover {
    opacity: 0.9;
}

/* Styles pour la page de détail produit */
.product-section {
    max-width: 980px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.product-images {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface);
    padding: var(--spacing-md);
}

.product-images img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
    object-fit: contain;
    aspect-ratio: 4/3;
}

.product-content {
  padding: var(--spacing-md);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.product-info h1 {
    font-size: 1.6rem;
    margin: 0;
    line-height: 1.3;
    color: var(--text);
}

.product-info .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: var(--spacing-sm) 0;
}

.product-description {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-light);
}

.product-description h2 {
    font-size: 1.4rem;
    margin: var(--spacing-lg) 0 var(--spacing-md) 0;
    line-height: 1.2;
}

.product-description ul {
    list-style: disc;
    padding-left: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.product-description li {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
}

/* Responsive design pour les pages de détail */
@media (max-width: 768px) {
    .product-details {
        grid-template-columns: 1fr;
    }
}

/* Styles pour les sections de produits */
.product-description, .product-features, .technical-specs, 
.kit-contents, .usage-tips, .process, .materials, .contact-info {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.product-description,
.product-features,
.technical-specs {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-height: 200px;
    width: 100%;
}

/* Titres des sections */
.product-description h2,
.product-features h2,
.technical-specs h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border);
    text-align: left;
}

/* Paragraphes */
.product-description p,
.product-features p,
.technical-specs p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: var(--spacing-md);
}

/* Listes */
.product-description ul,
.product-features ul,
.technical-specs ul {
    list-style: disc;
    padding-left: var(--spacing-xl);
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.product-description li,
.product-features li,
.technical-specs li {
    margin-bottom: var(--spacing-sm);
    color: var(--text);
    line-height: 1.5;
}

/* Espacement entre les sections */
.product-section > * + * {
    margin-top: var(--spacing-xl);
}

/* === Réalignement global des sections produit === */
.product-description,
.kit-contents,
.additional-info,
.process,
.specs-section,
.feature-section {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    padding: var(--spacing-lg);
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    box-sizing: border-box;
}

/* Harmonisation des titres */
.product-description h2,
.kit-contents h2,
.additional-info h2,
.process h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border);
    padding-bottom: var(--spacing-xs);
    color: var(--text);
    text-align: left;
}

.technical-specs {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

/* Style pour le processus numéroté */
.process ol {
    list-style: none;
    padding: 0;
    counter-reset: process-counter;
}

.process li {
    position: relative;
    padding: 1rem 1rem 1rem 3rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-light);
}

.process li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.process li:before {
    counter-increment: process-counter;
    content: counter(process-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.process h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text);
    font-size: 1.1rem;
}

.process p {
    margin: 0;
    color: var(--color-text-light);
}

/* Style pour la liste des matériaux */
.materials-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.material {
    background: var(--surface);
    padding: 1rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-primary);
}

.material h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text);
    font-size: 1.1rem;
}

.material p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Style pour le bouton d'ajout au panier */
.add-to-cart-btn {
    background-color: #2c2c2c;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    width: 100%;
    font-weight: 500;
}

.add-to-cart-btn:hover {
    background-color: #444;
}

.clear-cart-btn {
    display: block;
    width: 100%;
    padding: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.3s;
}

.clear-cart-btn:hover {
    background-color: #c0392b;
}

.paypal-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    background-color: #ffc439;
    color: #253b80;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
    gap: var(--spacing-sm);
}

.paypal-button:hover {
    background-color: #ffb700;
}

.paypal-button img {
    height: 26px;
    width: auto;
}

.add-to-cart-btn.animate,
.add-to-cart.animate {
    animation: addToCart 0.5s ease;
}

@keyframes addToCart {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cart-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.cart-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive design */
@media (max-width: 768px) {
    .materials-list {
        grid-template-columns: 1fr;
    }
    
    .process li {
        padding-left: 2.5rem;
    }
    
    .process li:before {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.9rem;
    }
}
/* --- PAGE PRODUIT : Refonte alignement & style --- */

.product-section {
  max-width: 980px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.product-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
  .product-details {
    grid-template-columns: 1fr;
  }
}

/* Styles communs pour toutes les sections produit */
.product-description,
.product-features,
.technical-specs {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* Titres des sections */
.product-description h2,
.product-features h2,
.technical-specs h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border);
}

/* Paragraphes */
.product-description p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: var(--spacing-md);
}

/* Listes */
.product-description ul,
.product-features ul,
.technical-specs ul {
    list-style: disc;
    padding-left: var(--spacing-xl);
    margin-top: var(--spacing-sm);
}

.product-description li,
.product-features li,
.technical-specs li {
    margin-bottom: var(--spacing-sm);
    color: var(--text);
    line-height: 1.5;
}

/* Espacement entre les sections */
.product-section > * + * {
    margin-top: var(--spacing-lg);
}

/* === Réalignement global des sections produit === */
.product-description,
.kit-contents,
.additional-info,
.process,
.specs-section,
.feature-section {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
  box-sizing: border-box;
}


/* Harmonisation des titres */
.product-description h2,
.kit-contents h2,
.additional-info h2,
.process h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--spacing-xs);
  color: var(--text);
  text-align: left;
}
.technical-specs {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}