/* =============================================================
   Le Diplomate Café — Commandes spéciales page
   Requires base.css.
   ============================================================= */


/* ── Page layout ─────────────────────────────────────────────── */
.commandes-page {
  padding-top: var(--nav-height);
}


/* ── Intro section — food image background ───────────────────── */
.commandes-intro {
  position: relative;
  background-color: var(--color-bg-night);
  background-image:
    linear-gradient(
      105deg,
      rgba(0, 38, 58, 0.97) 0%,
      rgba(0, 38, 58, 0.82) 55%,
      rgba(0, 38, 58, 0.42) 100%
    ),
    url('../images/generated/21b-rfissa-groupe.jpg');
  background-size: cover;
  background-position: center;
  padding: calc(var(--nav-height) + 80px) 0 72px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.commandes-intro-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.commandes-intro-eyebrow {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-gold);
  margin-bottom: 20px;
  display: block;
}

.commandes-intro-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: 0.03em;
  color: var(--color-text-primary);
  line-height: 1.15;
  margin-bottom: 24px;
}

.commandes-intro-lead {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.commandes-constraint {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 15px;
  color: var(--color-text-muted);
  opacity: 0.85;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-subtle);
}

/* Inline phone number inside process steps */
.commandes-tel {
  color: var(--color-accent-gold);
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.commandes-tel:hover {
  opacity: 0.75;
}

.commandes-process {
  padding: 40px;
  background: var(--color-bg-night);
  border: 1px solid var(--color-border-subtle);
}

.commandes-process-title {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-sand);
  margin-bottom: 24px;
}

.commandes-process-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.commandes-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.commandes-step-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 24px;
  color: var(--color-accent-gold);
  opacity: 0.65;
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
}

.commandes-step-text {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.commandes-step-text strong {
  color: var(--color-text-primary);
  font-weight: 300;
}


/* ── Visual showcase — group dish images ─────────────────────── */
.commandes-showcase {
  padding: 0;
  background: var(--color-bg-base);
}

.commandes-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.commandes-showcase-item {
  position: relative;
  overflow: hidden;
}

.commandes-showcase-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
}

.commandes-showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.commandes-showcase-item:hover .commandes-showcase-image img {
  transform: scale(1.05);
}

.commandes-showcase-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 64px 28px 28px;
  background: linear-gradient(
    to top,
    rgba(16, 24, 32, 0.90) 0%,
    rgba(16, 24, 32, 0.45) 55%,
    transparent 100%
  );
  pointer-events: none;
}

.commandes-showcase-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: 0.06em;
  color: var(--color-text-primary);
  display: block;
}


/* ── Menu sections ────────────────────────────────────────────── */
.commandes-menu {
  padding: 80px 0;
}

.commandes-menu-header {
  margin-bottom: 64px;
}

.commandes-category {
  margin-bottom: 64px;
}

.commandes-category:last-child {
  margin-bottom: 0;
}

.commandes-category-title {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-sand);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.commandes-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.commandes-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 10px;
  margin: 0 -10px;
  border-bottom: 1px solid var(--color-border-subtle);
  transition:
    background  0.2s ease,
    box-shadow  0.2s ease;
}

.commandes-item:last-child {
  border-bottom: none;
}

.commandes-item:hover {
  background: var(--color-bg-surface);
  box-shadow: inset 2px 0 0 rgba(254, 203, 139, 0.4);
}

.commandes-item-body {
  flex: 1;
  min-width: 0;
}

.commandes-item-name {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.03em;
  color: var(--color-text-primary);
  display: block;
  margin-bottom: 4px;
}

.commandes-item-desc {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-muted);
  opacity: 0.88;
  font-style: italic;
}

.commandes-item-price {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--color-accent-gold);
  flex-shrink: 0;
  white-space: nowrap;
}

.commandes-price-tel {
  color: inherit;
  text-decoration: none;
  font-style: italic;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
.commandes-price-tel:hover {
  opacity: 1;
}


/* ── CTA strip ────────────────────────────────────────────────── */
.commandes-cta {
  padding: 64px 0;
  background: var(--color-bg-night);
  border-top: 1px solid var(--color-border-subtle);
}

.commandes-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.commandes-cta-text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(20px, 2.5vw, 30px);
  letter-spacing: 0.03em;
  color: var(--color-text-primary);
  max-width: 520px;
}


/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .commandes-showcase-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .commandes-showcase-image {
    aspect-ratio: 4 / 3;
  }

  .commandes-showcase-caption {
    padding: 48px 20px 20px;
  }

  .commandes-showcase-name {
    font-size: clamp(22px, 6vw, 28px);
  }

  .commandes-intro-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .commandes-intro {
    padding: calc(var(--nav-height) + 48px) 0 48px;
  }

  .commandes-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .commandes-item-price {
    width: 100%;
    white-space: normal;
    font-size: 14px;
  }

  .commandes-menu {
    padding: 56px 0;
  }

  .commandes-process {
    padding: 28px 24px;
  }

  .commandes-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
