/* === UPSELL STEP === */

.upsell-section {
  background: var(--bg);
  padding: 5rem 2rem 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.upsell-header {
  text-align: center;
  margin-bottom: 3rem;
}

.upsell-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--green-light);
  color: var(--green);
  border-radius: 50%;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.upsell-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.upsell-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.upsell-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Model summary card */
.upsell-model-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.upsell-your-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.upsell-model-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.upsell-model-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.upsell-model-price {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green);
}

/* Seeds addon card */
.upsell-seeds-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.upsell-seeds-card.selected {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(45,90,39,0.08);
}

.upsell-seeds-top {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.upsell-seeds-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.upsell-exclusive-badge {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  width: fit-content;
}

.upsell-install-badge {
  background: #e8f0fe;
  color: #1a56db;
}

.upsell-install-card.selected {
  border-color: #1a56db;
  box-shadow: 0 0 0 4px rgba(26,86,219,0.08);
}

.upsell-seeds-info h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.upsell-seeds-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.upsell-seeds-price-tag {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.upsell-seeds-price-tag span:first-child {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.upsell-first-free {
  font-size: 0.8rem !important;
  color: var(--green) !important;
  font-weight: 500 !important;
}

/* Toggle switch */
.seeds-toggle-label {
  position: relative;
  display: inline-block;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.seeds-toggle-label input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.seeds-toggle-track {
  display: block;
  width: 50px;
  height: 26px;
  background: var(--border);
  border-radius: 100px;
  transition: background 0.2s;
  position: relative;
}

.seeds-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.seeds-toggle-label input:checked + .seeds-toggle-track {
  background: var(--green);
}

.seeds-toggle-label input:checked + .seeds-toggle-track::after {
  transform: translateX(24px);
}

/* Total + CTA block */
.upsell-cta-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.upsell-total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--text-muted);
}

.upsell-total-line strong {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.upsell-skip-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-family: var(--font-body);
  cursor: pointer;
  text-align: center;
  padding: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.upsell-skip-btn:hover {
  color: var(--text);
}

@media (max-width: 768px) {
  .upsell-section { padding: 4rem 1.25rem 3rem; }
  .upsell-seeds-top { flex-wrap: wrap; }
}

/* === ACHETER PAGE === */

/* Out of stock hero */
.oos-hero {
  background: var(--white);
  text-align: center;
  padding: 5rem 2rem 3rem;
}

.oos-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff3f3;
  color: #c0392b;
  border: 1px solid #f5c6c6;
  border-radius: 100px;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.oos-dot {
  width: 8px;
  height: 8px;
  background: #e74c3c;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

.oos-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto 1.25rem;
}
.oos-hero h1 em { color: #c0392b; font-style: italic; }

.oos-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.75;
}

/* Model display */
.oos-model-display {
  padding: 3rem 0 2rem;
  background: var(--bg);
}

.oos-model-card {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
}

.oos-model-img {
  position: relative;
  height: 340px;
  background: var(--green-light);
}
.oos-model-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%);
}
.oos-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.oos-overlay span {
  background: #e74c3c;
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
}

.oos-model-info {
  padding: 2rem 2.5rem 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.oos-label {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.oos-model-info h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
}
.oos-model-info p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.oos-notice {
  background: #fffbf0;
  border: 1px solid #f0d58c;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.85rem !important;
  color: #856404 !important;
}

/* Model selector */
.model-selector {
  padding: 1.5rem 0 2.5rem;
  background: var(--bg);
}
.selector-label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.selector-btns {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.selector-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.selector-btn:hover { border-color: var(--green); color: var(--green); }
.selector-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

/* Reservation form */
.reserve-section {
  padding: 4rem 0 5rem;
  background: var(--white);
}
.reserve-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}
.reserve-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 1rem;
}
.reserve-text p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.reserve-perks {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.reserve-perks li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.6rem 0.9rem;
  background: var(--green-light);
  border-radius: var(--radius-sm);
}

.reserve-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.reserve-form h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.reserve-form input,
.reserve-form select,
.reserve-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.reserve-form input:focus,
.reserve-form select:focus,
.reserve-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,90,39,0.1);
}
.reserve-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7c69' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.reserve-form textarea { resize: vertical; min-height: 90px; }

/* Confirmation overlay */
.confirm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.confirm-overlay.show { display: flex; }
.confirm-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 440px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: popIn 0.3s ease;
}
@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.confirm-icon {
  width: 56px;
  height: 56px;
  background: var(--green-light);
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}
.confirm-box h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
}
.confirm-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* CTA finale */
.cta-finale {
  background: var(--green);
  padding: 4rem 2rem;
}
.cta-finale-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.cta-finale h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: white;
}
.cta-finale p {
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  max-width: 500px;
  line-height: 1.7;
}
.btn-white {
  background: white;
  color: var(--green);
  border-color: white;
  font-weight: 500;
}
.btn-white:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Responsive */
@media (max-width: 768px) {
  .oos-model-card {
    grid-template-columns: 1fr;
  }
  .oos-model-img { height: 260px; }
  .oos-model-info { padding: 1.5rem; }
  .reserve-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
