/* Page-specific styles — Cours de dessin @ Le Braz. Header/nav, hero, trust
   strip, concept grid, checklist, gallery, CTA banner and footer all live in
   /shared/css/layout.css; only this page's own content patterns live here. */

/* ---------- Partenariat ---------- */

.partner-card {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8);
}

.partner-logo {
  flex: none;
  width: 8rem;
  height: 8rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
}

.partner-card h2 { margin-bottom: var(--space-3); }
.partner-card p { color: var(--color-text-secondary); max-width: 38rem; }
.partner-card .btn { margin-top: var(--space-5); }

/* ---------- Élèves / artwork gallery ---------- */

.artwork-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7) var(--space-5);
}

.artwork-card {
  background: #f4ecdf;
  padding: var(--space-2) var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.artwork-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 1px;
}
.artwork-card:nth-child(3n+1) { transform: rotate(-1.6deg); }
.artwork-card:nth-child(3n+2) { transform: rotate(1.2deg); }
.artwork-card:nth-child(3n+3) { transform: rotate(-0.8deg); }
.artwork-card:hover { transform: rotate(0deg) translateY(-6px); box-shadow: var(--shadow-lg); }

.artwork-credit { margin-top: var(--space-7); font-size: var(--text-xs); color: var(--color-text-tertiary); }
.artwork-credit a { color: var(--color-text-secondary); text-decoration: underline; text-underline-offset: 2px; }
.artwork-credit a:hover { color: var(--color-brand-light); }

/* ---------- Pricing ---------- */

.pricing-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-10);
  align-items: start;
}

.compare-list { display: flex; flex-direction: column; gap: var(--space-5); }

.compare-row .compare-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
}
.compare-row .compare-top strong { font-size: var(--text-base); }

.compare-track {
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.compare-fill {
  height: 100%;
  border-radius: var(--radius-full);
  width: 0;
  transition: width 1.1s var(--ease-out);
  background: linear-gradient(90deg, var(--color-brand-hover), var(--color-brand-light));
}
.compare-row.is-muted .compare-fill { background: var(--color-border-strong); }
.is-visible .compare-fill[data-width] { width: var(--w); }

.compare-note { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--color-text-secondary); }

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

.plan-card { display: flex; flex-direction: column; gap: var(--space-4); position: relative; }

.plan-card.is-featured {
  border-color: rgb(218 149 2 / 0.45);
  background: linear-gradient(165deg, var(--color-surface-raised), var(--color-surface));
  box-shadow: var(--shadow-glow);
}

.plan-badge { align-self: flex-start; }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  margin-top: var(--space-1);
  flex-wrap: wrap;
}
.plan-price .amount { font-size: var(--text-2xl); font-weight: var(--fw-bold); white-space: nowrap; }
.plan-price .period { color: var(--color-text-tertiary); font-size: var(--text-sm); white-space: nowrap; }

.plan-rate { margin: 0; color: var(--color-text-tertiary); font-size: var(--text-xs); }

.plan-cta { margin-top: auto; align-self: stretch; text-align: center; }

.plan-card ul { display: flex; flex-direction: column; gap: var(--space-2); }
.plan-card li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}
.plan-card li svg { flex: none; margin-top: 3px; color: var(--color-brand-light); }

.plan-foot-note { font-size: var(--text-xs); color: var(--color-text-tertiary); text-align: center; margin-top: var(--space-7); }

/* ---------- Fallback link (header + sticky bar) ---------- */
/* For anyone who doesn't want to book a single séance directly — reopens
   the same lead modal as the final CTA banner, styled as a plain
   bold/underlined link rather than another button, so it doesn't compete
   with the primary "Réserver ma séance" action next to it. */

/* Grouped with a tighter gap than .main-nav's own var(--space-7) between
   its top-level items (nav links vs. this group) — at typical desktop
   widths the header has no room to give this pair the same wide spacing
   as everything else without wrapping "LE BRAZ" and the nav links. */
.nav-cta-group { display: flex; align-items: center; gap: var(--space-3); }

.link-fallback {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  cursor: pointer;
  white-space: nowrap;
}
.link-fallback:hover { color: var(--color-brand-light); }

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

@media (max-width: 960px) {
  .pricing-layout { grid-template-columns: 1fr; }
  .artwork-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-card { flex-direction: column; text-align: center; gap: var(--space-5); padding: var(--space-7) var(--space-6); }
}

@media (max-width: 640px) {
  .plan-cards { grid-template-columns: 1fr; }
  .artwork-grid { grid-template-columns: 1fr 1fr; }

  /* Shared base.css makes .sticky-cta a single-row `display: block` bar;
     this page stacks the fallback link centered underneath the button
     instead, so override the layout plus the reserved bottom padding it
     needs (base.css's own padding-bottom only accounts for one row). */
  .sticky-cta { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
  body:has(.sticky-cta) { padding-bottom: 7.25rem; }

  /* Full-screen mobile nav overlay stacks everything vertically (see
     .main-nav in shared/css/layout.css) — match that rhythm instead of
     the row layout .nav-cta-group uses at desktop widths. */
  .nav-cta-group { flex-direction: column; gap: var(--space-3); margin-top: var(--space-8); }
  .main-nav .nav-cta-group .btn { margin-top: 0; }
}
