/* ============================================
   VaCooL Shop — Charte graphique vacool.fr
   ============================================ */

:root {
  --white: #FFFFFF;
  --navy: #1A3A5C;
  --navy-light: #234b73;
  --orange: #E8821A;
  --orange-hover: #d4740f;
  --text-dark: #1C1C1C;
  --text-light: #FFFFFF;
  --text-muted: #6b7280;
  --bg-light: #f8f9fa;
  --border: #e5e7eb;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,.15);
  --radius: 12px;
  --radius-pill: 30px;
  --transition: all .25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Header ── */
.shop-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 20px;
  background: rgba(26, 58, 92, .95);
  backdrop-filter: blur(10px);
}

.shop-header-left {
  justify-self: start;
}

.shop-header-center {
  justify-self: center;
}

.shop-header-right {
  justify-self: end;
}

.shop-header-logo {
  height: 40px;
}

.shop-header-link {
  color: rgba(255,255,255,.8);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.shop-header-link:hover {
  color: var(--orange);
}

/* ── Hero (index) ── */
.shop-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.shop-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(232,130,26,.1) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(26,58,92,.3) 0%, transparent 60%);
  pointer-events: none;
}

.shop-hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
}

.shop-hero h1 {
  color: var(--text-light);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 12px;
}

.shop-hero .subtitle {
  color: rgba(255,255,255,.7);
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 400;
  margin-bottom: 48px;
}

/* ── Cards bifurcation ── */
.shop-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 720px;
  width: 100%;
  position: relative;
}

.shop-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  box-shadow: var(--shadow);
}

.shop-card:hover:not(.disabled) {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--orange);
}

.shop-card.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(100%);
}

.shop-card-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.shop-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.shop-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Footer mini ── */
.shop-footer {
  text-align: center;
  padding: 24px;
  color: rgba(255,255,255,.4);
  font-size: 13px;
  position: relative;
}

.shop-footer a {
  color: rgba(255,255,255,.6);
  transition: var(--transition);
}

.shop-footer a:hover {
  color: var(--orange);
}

/* ── Layout tunnel (proprietaire) ── */
.shop-tunnel {
  min-height: 100vh;
  padding-top: 80px;
}

.shop-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px;
}

/* ── Steps indicator ── */
.steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  padding: 0 20px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.step-item.active {
  color: var(--orange);
}

.step-item.done {
  color: var(--navy);
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  background: var(--bg-light);
  color: var(--text-muted);
  border: 2px solid var(--border);
  transition: var(--transition);
  flex-shrink: 0;
}

.step-item.active .step-circle {
  background: var(--orange);
  color: var(--text-light);
  border-color: var(--orange);
}

.step-item.done .step-circle {
  background: var(--navy);
  color: var(--text-light);
  border-color: var(--navy);
}

.step-line {
  width: 40px;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
  flex-shrink: 0;
}

.step-line.done {
  background: var(--navy);
}

/* ── Adherent banner ── */
.adherent-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #93c5fd;
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--navy);
  line-height: 1.5;
}

.adherent-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.adherent-link {
  display: block;
  margin-top: 2px;
}

.adherent-link a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: underline;
}

/* ── Service cards ── */
.service-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.service-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.service-card:hover {
  border-color: var(--navy);
}

.service-card.selected {
  border-color: #E8821A;
  background: #FFF8F0;
}

.service-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  font-size: 14px;
  color: transparent;
}

.service-card.selected .service-checkbox {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--text-light);
}

.service-info {
  flex: 1;
}

.service-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.service-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.service-price {
  text-align: right;
  flex-shrink: 0;
}

.service-price .current {
  font-size: 1.2rem;
  font-weight: 700;
  color: #E8821A;
}

.service-price .original {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.service-price .included {
  font-size: 13px;
  font-weight: 600;
  color: #16a34a;
}

.service-price .member-price {
  display: block;
  font-size: 11px;
  color: var(--orange);
  font-weight: 600;
  margin-top: 2px;
}

.service-unit {
  display: inline-block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  font-style: italic;
}

.service-img-wrap {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-price-wrap {
  text-align: right;
  flex-shrink: 0;
}

.service-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--navy);
  line-height: 1;
}

.qty-btn:hover {
  background: var(--navy);
  color: var(--text-light);
  border-color: var(--navy);
}

.qty-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  min-width: 20px;
  text-align: center;
}

/* ── Flash messages ── */
.flash-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #991b1b;
}

/* ── Upsell bar ── */
.upsell-bar {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #92400e;
  transition: var(--transition);
}

.upsell-bar.hidden {
  display: none;
}

.upsell-icon {
  font-size: 20px;
}

/* ── Total bar ── */
.total-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  bottom: 0;
  margin-top: 8px;
}

.total-amount {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  display: inline;
}

.total-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  display: inline;
  margin-right: 6px;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--orange);
  color: var(--text-light);
  border: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(232,130,26,.35);
}

.btn-primary:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary.full-width {
  width: 100%;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: transparent;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.btn-back:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* ── Form fields ── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  color: var(--text-dark);
  transition: var(--transition);
  background: var(--white);
}

.form-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,130,26,.15);
}

.form-input::placeholder {
  color: #9ca3af;
}

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

/* ── Recap ── */
.recap-box {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.recap-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.recap-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.recap-line:last-child {
  border-bottom: none;
}

.recap-line .label {
  color: var(--text-dark);
}

.recap-line .value {
  font-weight: 600;
  color: var(--navy);
}

.recap-total {
  display: flex;
  justify-content: space-between;
  padding: 14px 0 0;
  margin-top: 8px;
  border-top: 2px solid var(--navy);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

/* ── Payment mock ── */
.payment-fields {
  display: grid;
  gap: 16px;
}

/* ── Form row (date + heure) ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Access options ── */
.access-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.access-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.access-option input[type="radio"] {
  display: none;
}

.access-option:hover {
  border-color: var(--navy);
}

.access-option.selected {
  border-color: var(--orange);
  background: #fef7f0;
}

.access-icon {
  font-size: 20px;
}

/* ── Form sections ── */
.form-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.form-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.form-section-icon {
  font-size: 22px;
}

.form-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

/* ── Date chips ── */
.date-chips-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -24px;
  padding: 0 24px;
  scrollbar-width: none;
}

.date-chips-wrap::-webkit-scrollbar {
  display: none;
}

.date-chips {
  display: flex;
  gap: 8px;
  padding: 10px 0 4px;
}

.date-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 10px 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  position: relative;
}

.date-chip:hover {
  border-color: var(--navy);
}

.date-chip.selected {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--text-light);
}

.date-chip-day {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.date-chip.selected .date-chip-day {
  color: rgba(255,255,255,.8);
}

.date-chip-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.date-chip.selected .date-chip-num {
  color: var(--text-light);
}

.date-chip-month {
  font-size: 11px;
  color: var(--text-muted);
}

.date-chip.selected .date-chip-month {
  color: rgba(255,255,255,.8);
}

.date-chip-badge {
  position: absolute;
  top: -8px;
  right: -4px;
  background: var(--navy);
  color: var(--text-light);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  text-transform: uppercase;
}

.date-chip.selected .date-chip-badge {
  background: var(--text-light);
  color: var(--orange);
}

/* ── Time slots ── */
.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.time-slot {
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}

.time-slot:hover {
  border-color: var(--navy);
  background: var(--bg-light);
}

.time-slot.selected {
  border-color: var(--orange);
  background: #fef7f0;
  color: var(--orange);
}

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

/* ── Success ── */
.success-screen {
  text-align: center;
  padding: 60px 24px;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
  color: #16a34a;
}

.success-screen h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.success-screen p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto;
}

.order-number {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  background: #fef7f0;
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

/* ── Step visibility ── */
.step-panel { display: none; }
.step-panel.active { display: block; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .shop-header { padding: 12px 16px; }
  .shop-header-logo { height: 32px; }
  .shop-header-nav { gap: 16px; }
  .shop-header-nav a { font-size: 12px; }

  .shop-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .shop-card { padding: 28px 24px; }

  .shop-container { padding: 16px; }

  .steps-bar { gap: 0; }
  .step-item span:not(.step-circle) { display: none; }
  .step-line { width: 24px; }

  .service-card { padding: 14px 16px; gap: 12px; }
  .service-name { font-size: 14px; }
  .service-price .current { font-size: 16px; }

  .form-row { grid-template-columns: 1fr; }
  .access-options { grid-template-columns: 1fr; }
  .payment-row { grid-template-columns: 1fr; }

  .total-bar { gap: 8px; }
  .btn-primary.full-width { font-size: 15px; padding: 12px 24px; }
}

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-panel.active {
  animation: fadeIn .3s ease;
}
