/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* ===== HEADER ===== */
header {
  background: #0f172a;
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.logo {
  height: 38px;
  width: auto;
  display: block;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border-radius: 10px;
  padding: 6px 14px;
  transition: opacity 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.logo-link:hover {
  opacity: 0.85;
}

.logo-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: #ffffff;
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  max-width: 85%;
  height: 520px;
  background-image: url('../Logo.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.hero h1,
.hero-subtitle,
.hero-desc,
.hero .btn {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #94a3b8;
  margin-bottom: 8px;
}

.hero-desc {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 32px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-hero {
  background: #2563eb;
  color: white;
}

.btn-hero:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn-buy {
  background: #16a34a;
  color: white;
  padding: 14px 32px;
  font-size: 1.05rem;
  width: 100%;
}

.btn-buy:hover {
  background: #15803d;
}

/* ===== TRUST BAR ===== */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 20px 24px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #475569;
  font-weight: 500;
}

.trust-svg {
  width: 20px;
  height: 20px;
  color: #2563eb;
}

/* ===== PRODUCTS SECTION ===== */
.products {
  padding: 60px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.products h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #0f172a;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* ===== PRODUCT CARD (homepage) ===== */
.product-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  display: block;
  border: 1px solid #e2e8f0;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.product-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-svg {
  width: 64px;
  height: 64px;
  color: rgba(255, 255, 255, 0.3);
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: #0f172a;
  line-height: 1.4;
}

.product-desc {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 12px;
  line-height: 1.5;
}

.price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
}

/* ===== ABOUT ===== */
.about {
  padding: 60px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.about h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 24px;
  color: #0f172a;
}

.about-content p {
  font-size: 1.05rem;
  color: #475569;
  margin-bottom: 16px;
  line-height: 1.7;
}

/* ===== CONTACT ===== */
.contact {
  padding: 60px 24px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  color: #0f172a;
}

.contact p {
  color: #475569;
  margin-bottom: 16px;
}

.contact-email {
  font-size: 1.15rem;
  font-weight: 600;
  color: #2563eb;
}

/* ===== FOOTER ===== */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 24px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand strong {
  color: white;
  font-size: 1.2rem;
}

.footer-brand p {
  margin-top: 8px;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-legal {
  font-size: 0.85rem;
  text-align: right;
}

.footer-legal p {
  margin-bottom: 4px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.9rem;
  color: #64748b;
}

.breadcrumb a {
  color: #2563eb;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-img-large {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.product-svg-large {
  width: 120px;
  height: 120px;
  color: rgba(255, 255, 255, 0.25);
}

.product-img-text {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

.product-detail-info h1 {
  font-size: 1.8rem;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.3;
}

.product-badge {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.product-price-box {
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.product-detail-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
}

.product-price-ttc {
  font-size: 0.9rem;
  color: #64748b;
}

.product-detail-desc {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 24px;
}

.product-features {
  margin-bottom: 28px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.product-features h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #0f172a;
}

.product-features ul {
  list-style: none;
  padding: 0;
}

.product-features li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.95rem;
  color: #334155;
}

.product-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: bold;
}

/* ===== PRODUCT ACTIONS ===== */
.product-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn {
  width: 44px;
  height: 48px;
  background: #f1f5f9;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: #e2e8f0;
}

#qty {
  width: 50px;
  height: 48px;
  text-align: center;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  -moz-appearance: textfield;
}

#qty::-webkit-outer-spin-button,
#qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-trust {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.trust-small {
  font-size: 0.85rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-small svg {
  width: 16px;
  height: 16px;
  color: #16a34a;
}

/* ===== PRODUCT FULL DESCRIPTION ===== */
.product-description-full {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 24px;
  border-top: 1px solid #e2e8f0;
}

.product-description-full h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: #0f172a;
}

.product-description-full p {
  font-size: 1rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 800px;
}

/* ===== PAGES LÉGALES ===== */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 60px;
}

.legal-page h1 {
  font-size: 2rem;
  color: #0f172a;
  margin-bottom: 8px;
}

.legal-date {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 40px;
  font-style: italic;
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section h2 {
  font-size: 1.15rem;
  color: #0f172a;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.legal-section p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 10px;
}

.legal-section ul {
  margin: 10px 0 10px 20px;
}

.legal-section li {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 4px;
}

.legal-section a {
  color: #2563eb;
  text-decoration: underline;
}

.placeholder {
  background: #fef3c7;
  color: #92400e;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-style: italic;
}

/* Liens légaux dans le footer */
.footer-legal a {
  display: block;
  color: #64748b;
  font-size: 0.8rem;
  margin-top: 4px;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: #94a3b8;
}

/* ===== PAGE CATALOGUE ===== */
.catalogue-header {
  text-align: center;
  padding: 48px 24px 32px;
}

.catalogue-header h1 {
  font-size: 2.2rem;
  color: #0f172a;
  margin-bottom: 8px;
}

.catalogue-header p {
  color: #64748b;
  font-size: 1.05rem;
}

.catalogue-section {
  padding: 0 24px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.catalogue-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

.badge-disponible {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.badge-stock-low {
  display: inline-block;
  background: #ffedd5;
  color: #c2410c;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.badge-rupture {
  display: inline-block;
  background: #fee2e2;
  color: #b91c1c;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Bouton "voir tout le catalogue" sur la homepage */
.catalogue-cta {
  text-align: center;
  padding: 8px 0 48px;
}

.btn-outline {
  display: inline-block;
  padding: 11px 28px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid #2563eb;
  color: #2563eb;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: #2563eb;
  color: white;
}

/* ===== CONCEPTION EN COURS ===== */
.product-card--soon {
  cursor: default;
  position: relative;
  opacity: 0.75;
  filter: grayscale(30%);
}

.product-card--soon:hover {
  transform: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.product-img--soon {
  position: relative;
}

.soon-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.75);
  color: #fbbf24;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px;
}

.badge-soon {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.price--soon {
  font-size: 0.95rem;
  font-weight: 600;
  color: #94a3b8;
}

/* Bannière conception en cours sur la page produit */
.banner-soon {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #78350f;
}

.banner-soon svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #f59e0b;
}

/* ===== PANIER — ICÔNE HEADER ===== */
.cart-icon-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.cart-icon-btn:hover {
  color: white;
}

.cart-icon-btn svg {
  width: 24px;
  height: 24px;
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #2563eb;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0f172a;
}

/* ===== PANIER — OVERLAY ===== */
#cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

#cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ===== PANIER — DRAWER ===== */
#cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: white;
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
}

#cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: #0f172a;
  color: white;
  flex-shrink: 0;
}

.cart-drawer-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-drawer-header h3 svg {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

.cart-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
  transition: all 0.2s;
}

.cart-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* Panier vide */
.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  color: #94a3b8;
}

.cart-empty svg {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.cart-empty p {
  font-size: 1rem;
  margin-bottom: 4px;
}

.cart-empty small {
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* Liste des articles */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 6px 12px;
  padding: 16px 24px;
  border-bottom: 1px solid #f1f5f9;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}

.cart-item-price-unit {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 2px;
}

.cart-item-subtotal {
  grid-column: 2;
  grid-row: 1 / 3;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  align-self: center;
  white-space: nowrap;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  transition: background 0.15s;
  padding: 0;
  line-height: 1;
}

.cart-qty-btn:hover {
  background: #e2e8f0;
}

.cart-qty-value {
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 22px;
  text-align: center;
  color: #0f172a;
}

.cart-remove-btn {
  background: none;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 4px 6px;
  margin-left: 2px;
  border-radius: 4px;
  transition: all 0.15s;
  line-height: 1;
}

.cart-remove-btn:hover {
  color: #dc2626;
  background: #fef2f2;
}

/* Pied du panier */
.cart-footer {
  padding: 20px 24px;
  border-top: 2px solid #e2e8f0;
  background: #f8fafc;
  flex-shrink: 0;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.cart-total-note {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 18px;
}

.cart-checkout-btn {
  width: 100%;
  margin-bottom: 10px;
  padding: 14px;
  font-size: 1rem;
}

.cart-continue-btn {
  width: 100%;
  text-align: center;
  padding: 10px;
  font-size: 0.88rem;
  display: block;
}

/* ===== MODAL CHECKOUT ===== */
#checkout-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
#checkout-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

#checkout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.97);
  z-index: 1101;
  background: #fff;
  border-radius: 14px;
  width: min(560px, 96vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  overflow: hidden;
}
#checkout-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

/* Header */
.co-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: #0f172a;
  color: #fff;
  flex-shrink: 0;
}
.co-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #fff;
}
.co-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}
.co-close-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Corps scrollable */
.co-body {
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Sections */
.co-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748b;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

/* Récapitulatif */
.co-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #334155;
  padding: 5px 0;
}
.co-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  padding: 10px 0 4px;
  border-top: 2px solid #0f172a;
  margin-top: 6px;
}

/* Formulaire */
.co-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.co-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.co-form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
}
.co-form-group input {
  padding: 10px 13px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.92rem;
  color: #111827;
  background: #f9fafb;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.co-form-group input:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.co-form-group small {
  font-size: 0.77rem;
  color: #6b7280;
}

/* Erreur / Succès */
.co-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.87rem;
  margin-bottom: 14px;
}
.co-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
  color: #166534;
}
.co-success-icon {
  font-size: 2.5rem;
  color: #16a34a;
  margin-bottom: 10px;
}
.co-success strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #15803d;
}
.co-success p {
  font-size: 0.9rem;
  margin: 4px 0;
  color: #166534;
}
.co-success-note {
  font-size: 0.8rem !important;
  color: #6b7280 !important;
  margin-top: 12px !important;
  font-style: italic;
}

/* Bouton valider */
.co-submit-btn {
  width: 100%;
  padding: 13px;
  font-size: 1rem;
  margin-top: 4px;
}
.co-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .co-form-row { grid-template-columns: 1fr; gap: 0; }
  .co-body { padding: 18px; }
}

/* ===== OFFRE GROUPÉE ===== */
.bundle-section {
  max-width: 900px;
  margin: 0 auto 48px;
  padding: 0 24px;
}
.bundle-card {
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  border: 1.5px solid #2563eb;
  border-radius: 16px;
  padding: 32px;
  color: white;
  position: relative;
  overflow: hidden;
}
.bundle-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(37,99,235,0.2), transparent 70%);
  pointer-events: none;
}
.bundle-badge {
  display: inline-block;
  background: #2563eb;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.bundle-card h2 {
  font-size: 1.4rem;
  font-weight: 900;
  color: white;
  margin-bottom: 6px;
}
.bundle-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 24px;
}
.bundle-items {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.bundle-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 12px 16px;
  flex: 1;
  min-width: 200px;
}
.bundle-item svg { color: #60a5fa; flex-shrink: 0; }
.bundle-item-name  { font-size: 0.88rem; font-weight: 600; color: #e2e8f0; }
.bundle-item-price { font-size: 0.8rem; color: #64748b; margin-top: 2px; }
.bundle-plus {
  font-size: 1.5rem; font-weight: 900; color: #2563eb;
  flex-shrink: 0;
}
.bundle-pricing {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.bundle-old-price {
  font-size: 1rem;
  color: #64748b;
  text-decoration: line-through;
}
.bundle-new-price {
  font-size: 2rem;
  font-weight: 900;
  color: #34d399;
}
.bundle-saving {
  background: rgba(52,211,153,0.15);
  color: #34d399;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}
.bundle-btn {
  width: 100%;
  max-width: 400px;
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== ENCART WIFI NOTICE ===== */
.product-wifi-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 0.88rem;
  color: #1e40af;
  line-height: 1.5;
}
.product-wifi-notice svg { flex-shrink: 0; margin-top: 2px; color: #2563eb; }
.product-wifi-notice a { color: #2563eb; font-weight: 700; text-decoration: underline; }

/* ===== RESSOURCES ===== */
.product-resources {
  max-width: 900px;
  margin: 0 auto 48px;
  padding: 0 24px;
}
.product-resources h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 20px;
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.resource-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.resource-card:hover { border-color: #2563eb; box-shadow: 0 4px 16px rgba(37,99,235,0.1); }
.resource-card--video { background: #fef9f0; border-color: #fde68a; }
.resource-card--video:hover { border-color: #f59e0b; }
.resource-card--pdf   { background: #fef2f2; border-color: #fecaca; }
.resource-card--pdf:hover { border-color: #ef4444; }
.resource-icon { flex-shrink: 0; }
.resource-card--video .resource-icon { color: #d97706; }
.resource-card--pdf   .resource-icon { color: #dc2626; }
.resource-title { font-size: 0.95rem; font-weight: 700; color: #0f172a; }
.resource-sub   { font-size: 0.8rem; color: #64748b; margin-top: 3px; }
.resource-soon  {
  position: absolute; top: 10px; right: 12px;
  font-size: 0.7rem; font-weight: 700; background: #e2e8f0;
  color: #64748b; padding: 2px 8px; border-radius: 10px;
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* ===== BADGE NOUVEAU ===== */
.badge-new {
  display: inline-block;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 6px;
  vertical-align: middle;
}

/* ===== STOCK INDICATOR ===== */
.stock-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.stock-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stock-dot--green  { background: #16a34a; box-shadow: 0 0 0 3px #dcfce7; }
.stock-dot--orange { background: #ea580c; box-shadow: 0 0 0 3px #ffedd5; }
.stock-dot--red    { background: #dc2626; box-shadow: 0 0 0 3px #fee2e2; }

.stock-text--green  { color: #16a34a; }
.stock-text--orange { color: #ea580c; }
.stock-text--red    { color: #dc2626; }

/* ===== FORMULAIRE DE CONTACT ===== */
.contact-form {
  max-width: 600px;
  margin: 24px auto 0;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 7px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0f172a;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

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

.form-submit {
  width: 100%;
  padding: 13px;
  font-size: 1rem;
  font-weight: 700;
}

.form-note {
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 10px;
}

.form-success {
  display: none;
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #15803d;
  border-radius: 8px;
  padding: 16px 20px;
  text-align: center;
  font-weight: 600;
  margin-top: 12px;
}

/* ===== TÉMOIGNAGES ===== */
.testimonials {
  background: #0f172a;
  padding: 60px 24px;
  color: white;
}

.testimonials h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: white;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: #1e293b;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #334155;
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
}

.testimonial-info {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2px;
}

/* ===== NEWSLETTER ===== */
.newsletter {
  background: linear-gradient(135deg, #1e3a5f, #2563eb);
  padding: 60px 24px;
  text-align: center;
  color: white;
}

.newsletter h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.newsletter p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
  font-size: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 7px;
  border: none;
  font-size: 0.95rem;
  outline: none;
  color: #0f172a;
}

.newsletter-btn {
  padding: 12px 24px;
  background: #0f172a;
  color: white;
  border: none;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: #1e293b;
}

.newsletter-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 12px;
}

/* ===== FAQ ===== */
.faq-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 60px;
}

.faq-page h1 {
  font-size: 2rem;
  color: #0f172a;
  margin-bottom: 8px;
}

.faq-subtitle {
  color: #64748b;
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.faq-category {
  margin-bottom: 36px;
}

.faq-category h2 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}

.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: #fff;
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
  font-family: inherit;
}

.faq-question:hover {
  background: #f8fafc;
}

.faq-chevron {
  font-size: 0.8rem;
  color: #94a3b8;
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

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

.faq-item.open .faq-answer {
  max-height: 600px;
}

.faq-answer-inner {
  padding: 0 20px 16px;
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.7;
  border-top: 1px solid #f1f5f9;
}

.faq-answer-inner a {
  color: #2563eb;
  text-decoration: underline;
}

/* ===== PAGE LIVRAISON ===== */
.livraison-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 60px;
}

.livraison-page h1 {
  font-size: 2rem;
  color: #0f172a;
  margin-bottom: 40px;
}

.livraison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.livraison-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.livraison-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: #2563eb;
}

.livraison-card h3 {
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 8px;
}

.livraison-card p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
}

.livraison-card .livraison-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin: 8px 0 4px;
}

.livraison-section {
  margin-bottom: 40px;
}

.livraison-section h2 {
  font-size: 1.3rem;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}

.livraison-section p,
.livraison-section li {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 8px;
}

.livraison-section ul {
  margin-left: 20px;
}

/* ===== BLOG ===== */
.blog-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 60px;
}

.blog-page h1 {
  font-size: 2rem;
  color: #0f172a;
  margin-bottom: 8px;
}

.blog-subtitle {
  color: #64748b;
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: all 0.3s;
  display: block;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.blog-card-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-img svg {
  width: 56px;
  height: 56px;
  color: rgba(255,255,255,0.3);
}

.blog-card-body {
  padding: 20px;
}

.blog-tag {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-card-body h3 {
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-card-body p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 12px;
}

.blog-card-meta {
  font-size: 0.78rem;
  color: #94a3b8;
}

.blog-coming-soon {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.blog-coming-soon::after {
  content: 'Bientôt';
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}

/* ===== VOUS AIMEREZ AUSSI ===== */
.related-products {
  padding: 40px 24px;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #e2e8f0;
}

.related-products h2 {
  font-size: 1.4rem;
  color: #0f172a;
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* ===== FILTRES CATALOGUE ===== */
.catalogue-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 24px 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  background: white;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.filter-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.filter-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

  /* ── Header ── */
  .header-container {
    padding: 0 16px;
    gap: 10px;
  }
  nav {
    gap: 12px;
  }
  nav a {
    font-size: 0.82rem;
  }
  .logo-name {
    font-size: 1rem;
  }

  /* ── Hero ── */
  .hero {
    padding: 60px 20px 48px;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hero-buttons .btn,
  .hero-buttons .btn-outline {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  /* ── Trust bar ── */
  .trust-bar {
    gap: 12px;
    padding: 14px 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .trust-item {
    font-size: 0.78rem;
  }

  /* ── Produits ── */
  .product-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 16px;
  }
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .product-detail-info h1 {
    font-size: 1.3rem;
  }
  .product-detail-price {
    font-size: 1.7rem;
  }
  .product-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .product-trust {
    flex-direction: column;
    gap: 10px;
  }
  .product-features ul {
    padding-left: 16px;
  }

  /* ── Sections générales ── */
  .products, .catalogue-section, .product-description-full,
  .product-resources, .bundle-section, .related-products {
    padding-left: 16px;
    padding-right: 16px;
  }
  .product-description-full p,
  .about-text p {
    font-size: 0.93rem;
  }

  /* ── FAQ ── */
  .faq-page {
    padding: 24px 16px;
  }
  .faq-question {
    font-size: 0.9rem;
    padding: 14px 16px;
  }
  .faq-answer-inner {
    font-size: 0.88rem;
    padding: 12px 16px;
  }
  .faq-category h2 {
    font-size: 1.1rem;
  }

  /* ── Bundle ── */
  .bundle-card {
    padding: 20px 16px;
  }
  .bundle-items {
    flex-direction: column;
  }
  .bundle-plus {
    text-align: center;
  }
  .bundle-new-price {
    font-size: 1.6rem;
  }

  /* ── Ressources ── */
  .resources-grid {
    grid-template-columns: 1fr;
  }

  /* ── Catalogue ── */
  .catalogue-filters {
    padding: 0 16px;
    gap: 6px;
  }
  .filter-btn {
    font-size: 0.8rem;
    padding: 7px 12px;
  }
  .catalogue-header {
    padding: 32px 16px 16px;
  }

  /* ── Contact / Newsletter ── */
  .contact-section, .newsletter {
    padding: 40px 16px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }

  /* ── Admin ── */
  .co-form-row {
    grid-template-columns: 1fr;
  }

  /* ── Footer ── */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
    padding: 32px 16px;
  }
  .footer-legal {
    text-align: center;
  }
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  /* ── Livraison ── */
  .livraison-grid {
    grid-template-columns: 1fr;
  }

  /* ── Panier drawer ── */
  #cart-drawer {
    width: 100vw !important;
  }
}
