/* ==========================================================================
   product.css — styles propres à la page produit Cobalt Coach.
   Chargé UNIQUEMENT sur /products (via le bloc head_extra du template), donc
   sans impact sur les autres pages. Toutes les classes sont préfixées .pc- et
   la couleur d'accent produit (vert) est déclarée sur le conteneur .pc pour ne
   jamais fuiter dans le CSS global (aucune collision de sélecteurs).
   ========================================================================== */

.pc {
  --pc-green:      #22c55e;   /* accent produit Coach (distinct du bleu Cobalt) */
  --pc-green-soft: #4ade80;
  --pc-green-dim:  rgba(34, 197, 94, 0.12);
}

/* Surtitre (eyebrow) vert produit */
.pc .pc-eyebrow {
  display: inline-block;
  color: var(--pc-green-soft);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

/* Bouton primaire vert : réutilise la base .btn du site, change la couleur */
.pc-btn-primary { background: var(--pc-green); color: #06210f; }
.pc-btn-primary:hover { background: var(--pc-green-soft); }
.pc-btn-lg { padding: 0.9rem 1.7rem; font-size: 1rem; }
.pc-cta-form { display: inline-block; margin: 0; }

/* ------------------------------------------------------------------- Hero -- */
.pc-hero {
  position: relative;
  overflow: hidden;
  /* Plus d'image sous le hero : le bas est géré par l'espacement de la section
     suivante (le showcase programme), pour un enchaînement resserré. */
  padding-block: clamp(4rem, 12vw, 8rem) 0;
  text-align: center;
}
.pc-hero::before {
  content: "";
  position: absolute;
  top: -25%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 90vw);
  height: 600px;
  background: radial-gradient(closest-side, rgba(34, 197, 94, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.pc-hero-inner { position: relative; z-index: 1; max-width: 760px; margin-inline: auto; }
.pc-hero-title { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; }
.pc-hero-sub { margin-top: 1.4rem; font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--cobalt-text-dim); }
.pc-hero-note { margin-top: 1.1rem; font-size: 0.9rem; color: var(--cobalt-text-dim); }

/* Lueur d'accent discrète derrière les captures majeures (hero + programme).
   Halo bleu Cobalt + vert produit, fortement floutés, jamais criards. */
.pc-glow { position: relative; }
.pc-glow::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 88%;
  height: 78%;
  border-radius: 999px;
  background:
    radial-gradient(55% 55% at 32% 30%, rgba(26, 110, 245, 0.30), transparent 70%),
    radial-gradient(55% 55% at 72% 74%, rgba(34, 197, 94, 0.22), transparent 70%);
  filter: blur(64px);
  pointer-events: none;
}
.pc-glow > * { position: relative; z-index: 1; }

.pc-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  align-items: center;
}
.pc-actions--center { justify-content: center; }

/* ------------------------------------------------- Captures (avec fallback) -- */
.pc-shot {
  position: relative;
  border: 1px solid var(--cobalt-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cobalt-surface-2);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.65);
}
/* Capture servie à sa résolution native : ratio respecté, hauteur auto,
   aucun recadrage ni upscale, responsive (largeur max 100%). */
.pc-shot img {
  width: 100%;
  height: auto;
  display: block;
}
/* Fallback : n'apparaît QUE si la capture est absente (image en erreur). */
.pc-shot img.is-missing { display: none; }
.pc-shot-ph { display: none; }
.pc-shot:has(img.is-missing) .pc-shot-ph {
  display: grid;
  aspect-ratio: 2 / 1;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
  color: var(--cobalt-text-dim);
  font-size: 0.9rem;
  background: repeating-linear-gradient(45deg,
    var(--cobalt-surface), var(--cobalt-surface) 12px,
    var(--cobalt-surface-2) 12px, var(--cobalt-surface-2) 24px);
}

/* ------------------------------------------------------ Showcase (2 colonnes) -- */
.pc-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.pc-showcase--reverse .pc-showcase-text { order: 2; }
.pc-showcase-text .lead { margin-top: 1rem; }

/* -------------------------------------------------------------- Checklists -- */
.pc-checklist { margin-top: 1.5rem; display: grid; gap: 0.75rem; }
.pc-checklist li { position: relative; padding-left: 1.9rem; color: var(--cobalt-text-dim); }
.pc-checklist li::before {
  content: "\2713";  /* ✓ */
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pc-green-soft);
  background: var(--pc-green-dim);
}
.pc-checklist--center { max-width: 320px; margin-inline: auto; text-align: left; }

/* --------------------------------- Programme « en grand » (sous le hero) -- */
.pc-feature-head { text-align: center; max-width: 62ch; margin-inline: auto; margin-bottom: clamp(2rem, 5vw, 3rem); }
.pc-feature-head .lead { margin-top: 1rem; }
.pc-feature-shot { max-width: 1000px; margin-inline: auto; }
.pc-feature-bullets {
  max-width: 820px;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 2.5rem;
}
@media (max-width: 640px) { .pc-feature-bullets { grid-template-columns: 1fr; } }

/* ------------------------------------------------------- Personnalisation -- */
.pc-perso-card {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4rem);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.06), transparent);
}
.pc-center { margin-inline: auto; }

/* ------------------------------------------------------------ Têtes de section -- */
.pc-section-head { text-align: center; max-width: 56ch; margin-inline: auto; margin-bottom: 2.5rem; }

/* ----------------------------------------------------------------- 4 piliers -- */
.pc-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.pc-icon { background: var(--pc-green-dim); color: var(--pc-green-soft); }

/* -------------------------------------------------------- « Pas un chatbot » -- */
.pc-quote .lead { margin-top: 1rem; }

/* ------------------------------------------------------------------- Prix -- */
.pc-price-card {
  text-align: center;
  max-width: 520px;
  margin-inline: auto;
  padding: clamp(2.25rem, 5vw, 3.25rem);
  background: var(--cobalt-surface);
  border: 1px solid var(--cobalt-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.pc-price { margin: 1.5rem 0; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.pc-price-amount { font-size: clamp(2.6rem, 7vw, 3.4rem); font-weight: 700; color: var(--cobalt-text); letter-spacing: -0.02em; }
.pc-price-label { color: var(--cobalt-text-dim); font-size: 0.95rem; }
.pc-price-card .pc-checklist { margin-bottom: 1.75rem; }
.pc-price-card .pc-cta-form { display: block; }
.pc-price-card .pc-btn-lg { width: 100%; }
.pc-price-note { margin-top: 1.1rem; font-size: 0.85rem; color: var(--cobalt-text-dim); }

/* -------------------------------------------------------------------- FAQ -- */
.pc-faq { margin-inline: auto; }

/* ------------------------------------------------- CTA final + disclaimer -- */
.pc-final {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4rem);
  border: 1px solid var(--cobalt-border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(34, 197, 94, 0.10), transparent 60%),
    var(--cobalt-surface);
}
.pc-final .lead { margin-top: 1rem; margin-bottom: 2rem; }
.pc-disclaimer {
  max-width: 720px;
  margin: 2rem auto 0;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--cobalt-text-dim);
  text-align: center;
}

/* ------------------------------------------------------------- Responsive -- */
@media (max-width: 900px) {
  .pc-showcase { grid-template-columns: 1fr; }
  .pc-showcase--reverse .pc-showcase-text { order: 0; }
  .pc-pillars { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pc-pillars { grid-template-columns: 1fr; }
  .pc-actions .btn,
  .pc-actions .pc-cta-form,
  .pc-actions .pc-cta-form .btn { width: 100%; }
}

/* ------------------------------------------- Offre de lancement (carte prix) */
/* Réutilise le composant .offer-* (components.css) ; ici on ne fait que le
   DIMENSIONNER dans la carte prix : « Gratuit » reprend la taille du grand
   montant, l'ancien prix barré passe en petit et discret. */
.pc-price-card .offer-badge { margin-bottom: 0.75rem; }
.pc-price--offer { gap: 0.15rem; }
.pc-price--offer .offer-strike { font-size: 1.4rem; }
.pc-price--offer .offer-free { font-size: clamp(2.6rem, 7vw, 3.4rem); }
.pc-price-card .offer-mention { margin-top: 0.6rem; }
