/* DigitalFlow – Main Stylesheet */
/* Palette : Beige Warm + Terracotta + Slate + Sand */

:root {
  /* Beige & Warm neutrals */
  --beige:       #ffffff;
  --beige-light: #fafafa;
  --beige-dark:  #fff8cc;
  --sand:        #ffe566;
  --sand-dark:   #d4a800;

  /* Accent terracotta */
  --terra:       #f5c200;
  --terra-light: #ffd633;
  --terra-dark:  #d4a800;
  --terra-pale:  #fffbe6;

  /* Slate (texte & dark elements) */
  --slate:       #2d3748;
  --slate-2:     #1a202c;
  --slate-light: #718096;
  --slate-pale:  #edf2f7;

  /* Olive accent secondaire */
  --olive:       #6b7c4e;
  --olive-light: #8a9e63;
  --olive-pale:  #f0f4eb;

  /* Neutres */
  --white:       #ffffff;
  --text:        #2d3748;
  --text-muted:  #718096;
  --border:      #ffe066;
  --border-light:#fff3b0;
  --bg:          #ffffff;

  --radius:      14px;
  --radius-sm:   8px;
  --radius-lg:   22px;
  --shadow:      0 2px 20px rgba(45,55,72,0.07);
  --shadow-hover:0 12px 40px rgba(45,55,72,0.14);

  --font-display:'Cormorant Garamond', 'Georgia', serif;
  --font-body:   'Inter', 'Segoe UI', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.65; font-size: 16px; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== TOPBAR ===== */
.topbar {
  background: var(--slate-2);
  color: var(--sand);
  text-align: center;
  padding: 9px 20px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* ===== HEADER ===== */
.header {
  background: var(--beige-light);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--slate-2);
  white-space: nowrap;
  letter-spacing: -0.3px;
}
.logo strong { color: var(--terra); }
.logo-mark {
  width: 36px; height: 36px;
  background: var(--terra);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -1px;
  flex-shrink: 0;
}

.nav-links {
  display: flex; gap: 2px; align-items: center; flex-wrap: wrap;
}
.nav-links a {
  padding: 7px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
  letter-spacing: 0.1px;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--beige-dark);
  color: var(--slate);
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.search-form {
  display: flex; align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  padding: 5px 5px 5px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-form:focus-within {
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(245,194,0,0.1);
}
.search-form input {
  border: none; background: transparent; outline: none;
  font-family: var(--font-body); font-size: 14px; width: 170px; color: var(--text);
}
.search-form button {
  background: var(--terra); border: none; color: white;
  padding: 7px 13px; border-radius: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.search-form button:hover { background: var(--terra-dark); }

.btn-admin {
  display: flex; align-items: center; gap: 6px;
  background: var(--slate-2); color: var(--sand);
  padding: 9px 18px; border-radius: 30px;
  font-size: 13px; font-weight: 600;
  transition: all 0.2s; white-space: nowrap;
  letter-spacing: 0.2px;
}
.btn-admin:hover { background: var(--terra); color: white; }

/* ===== HERO ===== */
.hero {
  background: var(--slate-2);
  color: white;
  padding: 100px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(245,194,0,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(107,124,78,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.hero-texture {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 700px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--terra-light);
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--terra-light);
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}
.hero-content h1 em {
  font-style: italic;
  color: var(--terra-light);
}

.hero-content p {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.75;
  font-weight: 300;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.btn-primary-hero {
  background: var(--terra);
  color: white;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(245,194,0,0.35);
  letter-spacing: 0.2px;
}
.btn-primary-hero:hover {
  background: var(--terra-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(245,194,0,0.45);
}

.btn-secondary-hero {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s;
}
.btn-secondary-hero:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }

.hero-stats {
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.h-stat strong { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: white; line-height: 1; }
.h-stat span { font-size: 12px; color: #64748b; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; display: block; }

/* ===== TRUST STRIP ===== */
.trust-strip {
  background: var(--beige-light);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-pill {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
}
.trust-pill span:first-child { font-size: 1.2rem; }

/* ===== HOW IT WORKS ===== */
.how-section {
  padding: 80px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}
.section-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2.5px; color: var(--terra);
  margin-bottom: 10px;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--slate-2);
  margin-bottom: 48px;
  letter-spacing: -0.3px;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.steps-row::before {
  content: '';
  position: absolute;
  top: 28px; left: 20%; right: 20%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.step-item {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-bubble {
  width: 56px; height: 56px;
  background: var(--terra-pale);
  border: 2px solid var(--terra-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.3rem;
  transition: all 0.3s;
}
.step-item:hover .step-bubble {
  background: var(--terra);
  border-color: var(--terra);
}
.step-item h3 {
  font-weight: 600; font-size: 15px;
  color: var(--slate); margin-bottom: 8px;
}
.step-item p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

/* ===== PRODUCTS ===== */
.main { padding: 64px 24px 80px; }

.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 36px; flex-wrap: wrap; gap: 12px;
}
.product-count {
  font-size: 13px; color: var(--text-muted);
  background: var(--beige-dark);
  padding: 5px 14px; border-radius: 20px; font-weight: 500;
}

/* ===== GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .products-grid { grid-template-columns: 1fr; } }

/* ===== CARD ===== */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--terra-light);
}

.badge-featured {
  position: absolute; top: 12px; left: 12px;
  background: var(--terra); color: white;
  padding: 4px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 600; z-index: 2;
  letter-spacing: 0.3px;
}

.card-image {
  position: relative; aspect-ratio: 4/3;
  overflow: hidden; background: var(--beige-dark);
}
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .card-image img { transform: scale(1.05); }

.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,32,44,0.65) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 14px;
  opacity: 0; transition: opacity 0.3s;
}
.product-card:hover .card-overlay { opacity: 1; }
.card-overlay span { color: white; font-size: 13px; font-weight: 600; letter-spacing: 0.3px; }

.card-body { padding: 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }

.card-category {
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--terra);
}
.card-title {
  font-weight: 600; font-size: 15px; color: var(--slate-2); line-height: 1.35;
}
.card-short { font-size: 13px; color: var(--text-muted); line-height: 1.45; flex: 1; }

.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.card-price { font-weight: 700; font-size: 1.1rem; color: var(--slate-2); }
.btn-details {
  background: var(--beige-dark); color: var(--slate);
  border: 1px solid var(--border);
  padding: 7px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  transition: all 0.2s;
}
.btn-details:hover { background: var(--terra); color: white; border-color: var(--terra); }

/* ===== EMPTY ===== */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }
.btn-primary {
  display: inline-block; background: var(--terra); color: white;
  padding: 12px 28px; border-radius: 30px;
  font-weight: 600; transition: all 0.2s;
}
.btn-primary:hover { background: var(--terra-dark); }

/* ===== FOOTER ===== */
.footer { background: var(--slate-2); color: #64748b; margin-top: 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding: 60px 24px 48px;
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-brand .logo { color: white; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; line-height: 1.75; max-width: 260px; font-weight: 300; }
.footer-socials { display: flex; gap: 8px; margin-top: 20px; }
.footer-socials a {
  background: rgba(255,255,255,0.06); color: #94a3b8;
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; transition: all 0.2s;
}
.footer-socials a:hover { background: var(--terra); color: white; }

.footer-col h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: #94a3b8;
  margin-bottom: 16px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; transition: color 0.2s; font-weight: 300; }
.footer-col a:hover { color: var(--terra-light); }
.footer-col p { font-size: 14px; font-weight: 300; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center; padding: 18px 24px;
  font-size: 12.5px; color: #334155; letter-spacing: 0.3px;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail { padding: 36px 24px 80px; }

.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 40px; flex-wrap: wrap; font-weight: 500;
}
.breadcrumb a:hover { color: var(--terra); }
.breadcrumb > svg { color: var(--border); }

.detail-hero {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; margin-bottom: 60px; align-items: start;
}
@media (max-width: 768px) { .detail-hero { grid-template-columns: 1fr; } }

.main-image-wrap {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3; background: var(--beige-dark);
}
.main-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.main-image-wrap:hover img { transform: scale(1.03); }

.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb {
  width: 68px; height: 68px; object-fit: cover;
  border-radius: var(--radius-sm); border: 2px solid var(--border);
  cursor: pointer; transition: border-color 0.2s;
}
.thumb.active, .thumb:hover { border-color: var(--terra); }

.detail-category { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--terra); margin-bottom: 10px; }
.detail-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; color: var(--slate-2); line-height: 1.2; margin-bottom: 14px; letter-spacing: -0.3px; }
.detail-short-desc { color: var(--text-muted); font-size: 15px; margin-bottom: 28px; line-height: 1.7; font-weight: 300; }

.detail-price-block {
  background: var(--beige-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 20px;
}
.detail-price { font-size: 2.4rem; font-weight: 700; color: var(--slate-2); }
.price-note { font-size: 13px; color: var(--text-muted); margin-top: 5px; font-weight: 300; }

.detail-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.detail-badges span {
  background: var(--white); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 500;
}

.snap-container { background: var(--slate-2); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.snap-title { font-size: 15px; font-weight: 600; color: var(--sand); margin-bottom: 14px; }
.snap-placeholder p { color: #475569; font-size: 14px; }

.how-it-works { background: var(--beige-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.how-it-works h4 { font-weight: 600; margin-bottom: 12px; color: var(--slate); }
.how-it-works ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.how-it-works li { font-size: 14px; color: var(--text-muted); }
.how-it-works strong { color: var(--terra); }

/* TABS */
.detail-tabs { margin-bottom: 60px; }
.tabs-header { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.tab-btn {
  padding: 13px 26px; background: none; border: none;
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all 0.2s; letter-spacing: 0.2px;
}
.tab-btn.active { color: var(--terra); border-bottom-color: var(--terra); }
.tab-btn:hover { color: var(--slate); }
.tab-content { display: none; }
.tab-content.active { display: block; }

.rich-description { font-size: 16px; line-height: 1.8; color: var(--text); font-weight: 300; }
.rich-description img { max-width: 100%; border-radius: var(--radius); margin: 22px 0; border: 1px solid var(--border); }
.rich-description h1,.rich-description h2,.rich-description h3 { font-family: var(--font-display); margin: 26px 0 12px; color: var(--slate-2); font-weight: 600; }
.rich-description ul,.rich-description ol { margin: 12px 0 12px 24px; }
.rich-description li { margin-bottom: 7px; }
.rich-description strong { color: var(--slate-2); font-weight: 600; }
.rich-description p { margin-bottom: 16px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item.open { border-color: var(--terra); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 18px 22px;
  background: none; border: none; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--slate);
  text-align: left; gap: 12px; transition: background 0.2s;
}
.faq-question:hover { background: var(--beige-light); }
.faq-item.open .faq-question { background: var(--beige-light); color: var(--terra-dark); }
.faq-icon { flex-shrink: 0; transition: transform 0.3s; color: var(--text-muted); }
.faq-item.open .faq-icon { transform: rotate(180deg); color: var(--terra); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner { padding: 0 22px 20px; font-size: 14px; color: var(--text-muted); line-height: 1.75; font-weight: 300; }

.related-section { margin-top: 60px; }
.related-section h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; margin-bottom: 28px; color: var(--slate-2); }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .header-inner { padding: 12px 16px; }
  .nav-links { display: none; }
  .search-form input { width: 120px; }
  .trust-strip-inner { gap: 20px; }
  .steps-row { grid-template-columns: 1fr; }
  .steps-row::before { display: none; }
  .hero { padding: 70px 0 50px; }
  .hero-stats { gap: 24px; }
}
