/* css/pages.css */

/* ============ FORMULES PAGE ============ */
.formules-nav { display: flex; justify-content: center; gap: var(--space-md); margin-bottom: var(--space-2xl); flex-wrap: wrap; }
.formules-nav button { padding: 0.6rem 1.5rem; background: transparent; border: 1px solid rgba(212,175,55,0.3); color: var(--text-secondary); border-radius: 30px; font-family: var(--font-body); font-size: 0.85rem; cursor: pointer; transition: all var(--transition-fast); }
.formules-nav button.active, .formules-nav button:hover { background: var(--gold); color: var(--bg-primary); border-color: var(--gold); }
.formule-section { margin-bottom: var(--space-2xl); }
.formule-section-title { font-family: var(--font-heading); font-size: 1.6rem; color: var(--gold); margin-bottom: var(--space-lg); padding-bottom: var(--space-sm); border-bottom: 1px solid rgba(212,175,55,0.2); }

/* ============ DEVIS WIZARD ============ */
.wizard { max-width: 800px; margin: 0 auto; padding-top: calc(var(--nav-height) + var(--space-2xl)); }
.wizard-progress { display: flex; justify-content: space-between; margin-bottom: var(--space-2xl); position: relative; }
.wizard-progress::before { content: ''; position: absolute; top: 16px; left: 0; right: 0; height: 2px; background: rgba(212,175,55,0.2); }
.wizard-progress-fill { position: absolute; top: 16px; left: 0; height: 2px; background: var(--gold); transition: width var(--transition-base); }
.wizard-step-indicator { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); z-index: 1; }
.wizard-step-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-secondary); border: 2px solid rgba(212,175,55,0.3); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); transition: all var(--transition-base); }
.wizard-step-indicator.active .wizard-step-dot { background: var(--gold); border-color: var(--gold); color: var(--bg-primary); }
.wizard-step-indicator.done .wizard-step-dot { background: var(--gold-dark); border-color: var(--gold); color: var(--bg-primary); }
.wizard-step-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.wizard-step-indicator.active .wizard-step-label { color: var(--gold); }
.wizard-panel { display: none; animation: fadeIn 0.3s ease; }
.wizard-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.wizard-title { text-align: center; margin-bottom: var(--space-lg); }
.wizard-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: var(--space-xl); }
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.event-card { background: var(--bg-secondary); border: 2px solid rgba(212,175,55,0.1); border-radius: 8px; padding: var(--space-xl) var(--space-lg); text-align: center; cursor: pointer; transition: all var(--transition-base); }
.event-card:hover { border-color: rgba(212,175,55,0.4); }
.event-card.selected { border-color: var(--gold); background: rgba(212,175,55,0.05); }
.event-card-icon { font-size: 2rem; margin-bottom: var(--space-sm); }
.event-card-label { font-weight: 600; color: var(--cream); }
.menu-item { display: flex; align-items: center; gap: var(--space-lg); background: var(--bg-secondary); border: 1px solid rgba(212,175,55,0.1); border-radius: 8px; padding: var(--space-md); margin-bottom: var(--space-md); transition: all var(--transition-fast); }
.menu-item:hover { border-color: rgba(212,175,55,0.3); }
.menu-item.selected { border-color: var(--gold); background: rgba(212,175,55,0.05); }
.menu-item-img { width: 80px; height: 80px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.menu-item-info { flex: 1; }
.menu-item-name { font-weight: 600; color: var(--cream); margin-bottom: 2px; }
.menu-item-desc { font-size: 0.85rem; color: var(--text-secondary); }
.menu-item-price { color: var(--gold); font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; flex-shrink: 0; }
.menu-item-qty { display: flex; align-items: center; gap: var(--space-sm); flex-shrink: 0; }
.menu-item-qty button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--gold); background: transparent; color: var(--gold); font-size: 1.1rem; cursor: pointer; transition: all var(--transition-fast); }
.menu-item-qty button:hover { background: var(--gold); color: var(--bg-primary); }
.menu-item-qty span { min-width: 24px; text-align: center; font-weight: 600; }
.option-checkbox { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md) var(--space-lg); background: var(--bg-secondary); border: 1px solid rgba(212,175,55,0.1); border-radius: 8px; margin-bottom: var(--space-md); cursor: pointer; transition: all var(--transition-fast); }
.option-checkbox:hover { border-color: rgba(212,175,55,0.3); }
.option-checkbox.checked { border-color: var(--gold); background: rgba(212,175,55,0.05); }
.option-checkbox input { display: none; }
.option-checkmark { width: 24px; height: 24px; border: 2px solid rgba(212,175,55,0.4); border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all var(--transition-fast); }
.option-checkbox.checked .option-checkmark { background: var(--gold); border-color: var(--gold); }
.range-slider { margin: var(--space-lg) 0; }
.range-slider input[type="range"] { width: 100%; -webkit-appearance: none; height: 4px; background: rgba(212,175,55,0.2); border-radius: 2px; outline: none; }
.range-slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); cursor: pointer; box-shadow: var(--shadow-gold); }
.range-value { text-align: center; font-family: var(--font-heading); font-size: 2.5rem; color: var(--gold); margin-bottom: var(--space-sm); }
.recap-section { background: var(--bg-secondary); border-radius: 8px; padding: var(--space-xl); margin-bottom: var(--space-lg); border: 1px solid rgba(212,175,55,0.15); }
.recap-row { display: flex; justify-content: space-between; padding: var(--space-sm) 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.recap-row:last-child { border-bottom: none; }
.recap-label { color: var(--text-secondary); }
.recap-value { color: var(--cream); font-weight: 600; }
.recap-total { display: flex; justify-content: space-between; padding: var(--space-lg); background: rgba(212,175,55,0.1); border-radius: 8px; margin-top: var(--space-lg); border: 1px solid rgba(212,175,55,0.3); }
.recap-total-label { font-family: var(--font-heading); font-size: 1.3rem; color: var(--cream); }
.recap-total-amount { font-family: var(--font-heading); font-size: 1.8rem; color: var(--gold); font-weight: 700; }
.wizard-nav { display: flex; justify-content: space-between; margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid rgba(255,255,255,0.05); }
.live-price { position: sticky; bottom: 0; background: rgba(26, 26, 46, 0.95); backdrop-filter: blur(10px); padding: var(--space-md) var(--space-lg); border-top: 1px solid rgba(212,175,55,0.3); display: flex; justify-content: space-between; align-items: center; z-index: 50; }
.live-price-label { color: var(--text-secondary); font-size: 0.9rem; }
.live-price-amount { font-family: var(--font-heading); font-size: 1.5rem; color: var(--gold); font-weight: 700; }
@media (max-width: 768px) { .event-grid { grid-template-columns: repeat(2, 1fr); } .wizard-step-label { display: none; } .menu-item { flex-wrap: wrap; } .menu-item-img { width: 60px; height: 60px; } }

/* ============ GALERIE PAGE ============ */
.galerie-filters { display: flex; justify-content: center; gap: var(--space-sm); margin-bottom: var(--space-xl); flex-wrap: wrap; }
.galerie-filters button { padding: 0.5rem 1.2rem; background: transparent; border: 1px solid rgba(212,175,55,0.3); color: var(--text-secondary); border-radius: 30px; font-family: var(--font-body); font-size: 0.8rem; cursor: pointer; transition: all var(--transition-fast); }
.galerie-filters button.active, .galerie-filters button:hover { background: var(--gold); color: var(--bg-primary); border-color: var(--gold); }
.galerie-grid { columns: 3; column-gap: var(--space-md); }
.galerie-item { break-inside: avoid; margin-bottom: var(--space-md); border-radius: 8px; overflow: hidden; cursor: pointer; position: relative; }
.galerie-item img { width: 100%; transition: transform var(--transition-slow); }
.galerie-item:hover img { transform: scale(1.05); }
.galerie-item-overlay { position: absolute; inset: 0; background: rgba(26,26,46,0.6); opacity: 0; display: flex; align-items: center; justify-content: center; transition: opacity var(--transition-base); }
.galerie-item:hover .galerie-item-overlay { opacity: 1; }
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 2000; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; }
.lightbox-close { position: absolute; top: 20px; right: 24px; font-size: 2rem; color: var(--cream); cursor: pointer; background: none; border: none; }
@media (max-width: 1024px) { .galerie-grid { columns: 2; } }
@media (max-width: 768px) { .galerie-grid { columns: 1; } }

/* ============ CONTACT PAGE ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 0.9rem 1.2rem; background: var(--bg-secondary); border: 1px solid rgba(212,175,55,0.2); border-radius: 6px; color: var(--cream); font-family: var(--font-body); font-size: 0.95rem; margin-bottom: var(--space-md); transition: border-color var(--transition-fast); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--gold); }
.contact-form textarea { height: 150px; resize: vertical; }
.contact-form label { display: block; color: var(--text-secondary); font-size: 0.85rem; margin-bottom: var(--space-xs); text-transform: uppercase; letter-spacing: 1px; }
.contact-info-item { display: flex; gap: var(--space-md); margin-bottom: var(--space-lg); }
.contact-info-icon { width: 48px; height: 48px; background: rgba(212,175,55,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gold); }
.contact-map { width: 100%; height: 250px; border-radius: 8px; border: 1px solid rgba(212,175,55,0.15); margin-top: var(--space-lg); }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

/* ============ ABOUT PAGE ============ */
.about-hero { padding-top: calc(var(--nav-height) + var(--space-2xl)); text-align: center; padding-bottom: var(--space-2xl); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.value-card { text-align: center; padding: var(--space-xl); }
.value-icon { font-size: 2.5rem; margin-bottom: var(--space-md); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); text-align: center; padding: var(--space-2xl) 0; }
.stat-number { font-family: var(--font-heading); font-size: 2.5rem; color: var(--gold); font-weight: 700; }
.stat-label { color: var(--text-secondary); margin-top: var(--space-sm); }
.team-card { text-align: center; }
.team-img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto var(--space-md); border: 3px solid rgba(212,175,55,0.3); }
@media (max-width: 768px) { .values-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: calc(var(--nav-height) + var(--space-lg)) 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.breadcrumb a:hover {
  color: var(--gold);
}
.breadcrumb span {
  color: var(--gold);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: var(--space-lg) 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--cream);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform var(--transition-base);
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item p {
  margin-top: var(--space-md);
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}

/* ============ DEVIS WIZARD V2 ============ */

/* --- Progress bar updates for 6 steps --- */
.wizard { max-width: 900px; }

/* --- Step 2: Persons --- */
.dv2-persons-display {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1;
}
.dv2-persons-controls {
  max-width: 500px;
  margin: 0 auto;
}
.dv2-persons-input-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  justify-content: center;
}
.dv2-persons-input-wrap .dv2-input {
  width: 100px;
  text-align: center;
}

/* --- Step 3: Style cards --- */
.dv2-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.dv2-style-card {
  background: var(--bg-secondary);
  border: 2px solid rgba(212,175,55,0.1);
  border-radius: 8px;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
}
.dv2-style-card:hover {
  border-color: rgba(212,175,55,0.4);
}
.dv2-style-card.selected {
  border-color: var(--gold);
  background: rgba(212,175,55,0.05);
  box-shadow: var(--shadow-gold);
}
.dv2-style-icon {
  font-size: 2.2rem;
  margin-bottom: var(--space-sm);
}
.dv2-style-label {
  font-weight: 600;
  color: var(--cream);
  margin-bottom: var(--space-xs);
}
.dv2-style-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* --- Step 4A: Formula cards --- */
.dv2-formula-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.dv2-formula-card {
  background: var(--bg-secondary);
  border: 2px solid rgba(212,175,55,0.15);
  border-radius: 12px;
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dv2-formula-card:hover {
  border-color: rgba(212,175,55,0.5);
  transform: translateY(-4px);
}
.dv2-formula-card.selected {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  background: rgba(212,175,55,0.05);
}
.dv2-formula-badge {
  position: absolute;
  top: -12px;
  right: -8px;
  background: var(--gold);
  color: var(--bg-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dv2-formula-size {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}
.dv2-formula-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--cream);
  margin-bottom: var(--space-md);
}
.dv2-formula-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: var(--space-md);
}
.dv2-formula-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
}
.dv2-formula-details {
  list-style: none;
  text-align: left;
  width: 100%;
  margin-bottom: var(--space-lg);
}
.dv2-formula-details li {
  padding: var(--space-xs) 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dv2-formula-details li::before {
  content: '\2713';
  color: var(--gold);
  margin-right: var(--space-sm);
  font-weight: 700;
}
.dv2-formula-btn {
  margin-top: auto;
  width: 100%;
}

/* --- Step 4B: Diet filters --- */
.dv2-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-xl);
}
.dv2-filter-pill {
  padding: 0.5rem 1.2rem;
  background: transparent;
  border: 1px solid rgba(212,175,55,0.3);
  color: var(--text-secondary);
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.dv2-filter-pill:hover {
  border-color: var(--gold);
  color: var(--cream);
}
.dv2-filter-pill.active {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
  font-weight: 600;
}

/* --- Step 4B: Category blocks --- */
.dv2-category {
  margin-bottom: var(--space-xl);
}
.dv2-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}
.dv2-category-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--gold);
}
.dv2-category-counter {
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(212,175,55,0.2);
}
.dv2-category-counter.full {
  background: rgba(212,175,55,0.15);
  border-color: var(--gold);
  color: var(--gold);
}
.dv2-category-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

/* --- Item rows --- */
.dv2-items-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.dv2-item-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-secondary);
  border: 1px solid rgba(212,175,55,0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.dv2-item-row:hover {
  border-color: rgba(212,175,55,0.3);
}
.dv2-item-row.selected {
  border-color: var(--gold);
  background: rgba(212,175,55,0.05);
}
.dv2-item-row.disabled {
  opacity: 0.3;
  pointer-events: none;
}
.dv2-item-check {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(212,175,55,0.4);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--bg-primary);
  transition: all var(--transition-fast);
}
.dv2-item-row.selected .dv2-item-check {
  background: var(--gold);
  border-color: var(--gold);
}
.dv2-item-info {
  flex: 1;
  min-width: 0;
}
.dv2-item-name {
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 2px;
}
.dv2-item-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.dv2-item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.dv2-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}
.dv2-item-tag {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

/* --- Sticky Price Bar --- */
.dv2-price-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gold);
  color: var(--bg-primary);
  z-index: 100;
  padding: var(--space-md) 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.dv2-price-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.dv2-price-bar-detail {
  font-size: 0.95rem;
}
.dv2-price-bar-detail strong {
  font-size: 1.1rem;
}
.dv2-price-bar-total {
  font-family: var(--font-heading);
  font-size: 1.1rem;
}
.dv2-price-bar-total strong {
  font-size: 1.4rem;
}

/* --- Forms in recap --- */
.dv2-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.dv2-form-group {
  display: flex;
  flex-direction: column;
}
.dv2-label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.dv2-input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: var(--bg-primary);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 6px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color var(--transition-fast);
}
.dv2-input:focus {
  outline: none;
  border-color: var(--gold);
}
.dv2-textarea {
  height: 100px;
  resize: vertical;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .dv2-formula-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .dv2-style-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dv2-form-grid {
    grid-template-columns: 1fr;
  }
  .dv2-price-bar-inner {
    justify-content: center;
    text-align: center;
  }
  .dv2-item-row {
    padding: var(--space-sm) var(--space-md);
  }
  .wizard-nav {
    flex-direction: column;
    gap: var(--space-md);
  }
  .wizard-nav > div {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
  }
  .wizard-nav .btn {
    width: 100%;
    justify-content: center;
  }
  /* Add bottom padding when price bar is visible */
  .wizard {
    padding-bottom: 80px;
  }
}

@media (max-width: 480px) {
  .dv2-style-grid {
    grid-template-columns: 1fr;
  }
  .dv2-persons-display {
    font-size: 3rem;
  }
}
