/* ============================================
   PAGE LOCATION
   ============================================ */

/* --- Hero Location --- */

.hero-location {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-location__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 30% 20%, var(--color-accent-subtle) 0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 70% 70%, rgba(201, 168, 76, 0.06) 0%, transparent 50%),
    var(--color-bg);
  z-index: 0;
}

/* Hero split layout */

.hero-location__split {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3xl);
  padding-top: var(--header-height);
  padding-bottom: var(--space-2xl);
}

.hero-location__content {
  text-align: left;
  flex: 1 1 0;
  min-width: 0;
}

.hero-location__content h1 {
  margin-bottom: var(--space-lg);
}

.hero-location__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 0 var(--space-xl);
  line-height: 1.7;
}

.hero-location__cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-location__image {
  flex: 0 0 auto;
}

.hero-location__image img {
  display: block;
  width: 420px;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* --- Section alt --- */

.section--alt {
  background: var(--color-bg-alt);
}

/* --- Inclus cards --- */

.inclus-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.inclus-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.inclus-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-subtle);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  color: var(--color-accent);
}

.inclus-card__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-sm);
}

.inclus-card__text {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* --- Tarif wrapper --- */

.tarif-wrapper {
  max-width: 480px;
  margin: 0 auto;
}

/* --- Tarif calculator --- */

.tarif-calculator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
}

.tarif-calculator .form-label {
  margin-bottom: 0;
}

.tarif-total {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tarif-total__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tarif-total__price {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-accent);
}

.tarif-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-md);
}

/* --- Types d'evenements --- */

.event-type {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.event-type:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-2px);
}

.event-type__emoji {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
}

.event-type__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-sm);
}

.event-type__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* --- Forfaits impression --- */

.print-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.print-toggle {
  display: inline-flex;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
  margin: 0 auto var(--space-xl);
  display: flex;
  justify-content: center;
}

.print-toggle .tax-toggle__btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.print-toggle .tax-toggle__btn:hover {
  color: var(--color-text);
}

.print-toggle .tax-toggle__btn--active {
  background: var(--color-surface);
  color: var(--color-text);
}

.print-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.print-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
}

.print-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.print-card--popular {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow);
}

.print-card__badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.print-card__qty {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  line-height: 1;
}

.print-card__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.print-card__price {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-accent);
}

.print-card__unit {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

.print-note {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-xl);
}

/* --- Print card selected state --- */

.print-card--selected {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow);
}

.print-card--selected .print-card__select {
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  border-color: var(--color-accent);
}

.print-card__select {
  margin-top: var(--space-md);
}

/* --- Order recap --- */

.order-recap {
  max-width: 600px;
  margin: var(--space-2xl) auto 0;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.order-recap__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.order-recap__lines {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

.order-recap__line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.order-recap__line--option {
  color: var(--color-accent);
}

.order-recap__line--remove {
  justify-content: flex-end;
}

.btn--ghost-sm {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
  background: none;
  border: none;
  text-decoration: underline;
}

.btn--ghost-sm:hover {
  color: var(--color-error);
}

.order-recap__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-xl);
}

.order-recap__total span:last-child {
  color: var(--color-accent);
  font-size: var(--text-2xl);
}

/* --- Formulaire devis --- */

.devis-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.devis-form {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.devis-form__note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-md);
}

/* --- Photo gallery --- */

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.photo-gallery__item {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.photo-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.photo-gallery__item:hover img {
  transform: scale(1.03);
}

/* --- CTA block (reuse home styles) --- */

.section--cta {
  padding: var(--space-5xl) 0;
}

.cta-block {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.cta-block h2 {
  margin-top: var(--space-md);
}

.cta-block__text {
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  max-width: 500px;
  margin: var(--space-lg) auto var(--space-xl);
  line-height: 1.7;
}

.cta-block__buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Responsive location --- */

@media (max-width: 991px) {
  .hero-location__image img {
    width: 340px;
    height: 340px;
  }
}

@media (max-width: 767px) {
  .hero-location__split {
    flex-direction: column;
    text-align: center;
    gap: var(--space-xl);
  }

  .hero-location__content {
    text-align: center;
  }

  .hero-location__image {
    order: -1;
  }

  .hero-location__image img {
    width: 280px;
    height: 280px;
  }

  .hero-location__subtitle {
    font-size: var(--text-base);
    margin: 0 auto var(--space-xl);
  }

  .hero-location__cta {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero-location__cta .btn {
    width: 100%;
  }

  .photo-gallery {
    grid-template-columns: 1fr;
  }

  .tarif-calculator {
    padding: var(--space-lg);
  }

  .events-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .print-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-md);
  }

  .devis-form {
    padding: var(--space-xl);
  }

  .devis-form .grid--2 {
    grid-template-columns: 1fr;
  }

  .cta-block {
    padding: var(--space-2xl) var(--space-lg);
  }

  .cta-block__buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-block__buttons .btn {
    width: 100%;
  }
}
