/* Aperçu avant paiement : reprend la palette du site (indigo #6366f1, ardoise, coins 12px). */
.preview-teaser {
  margin: 0 0 28px;
  color: #0f172a;
}
.preview-teaser[hidden] {
  display: none;
}
.pt-header {
  margin-bottom: 20px;
}
.pt-title {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.pt-subtitle {
  margin: 0;
  max-width: 68ch;
  color: #475569;
  font-size: 15px;
  line-height: 1.55;
}
.pt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.pt-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid #e2eaf4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  animation: ptRise 0.45s ease both;
}
.pt-card:nth-child(2) {
  animation-delay: 0.08s;
}
.pt-card:nth-child(3) {
  animation-delay: 0.16s;
}
/* Trois cartes distinctes par leur liseré, sans changer de palette. */
.pt-card-venue {
  border-top: 3px solid #6366f1;
}
.pt-card-animation {
  border-top: 3px solid #0ea5e9;
}
.pt-card-concept {
  border-top: 3px solid #312e81;
  background: linear-gradient(180deg, #eef2ff 0%, #fff 42%);
}
.pt-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6366f1;
}
.pt-card-animation .pt-eyebrow {
  color: #0369a1;
}
.pt-card-concept .pt-eyebrow {
  color: #312e81;
}
.pt-heading {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
}
.pt-reco {
  padding: 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2eaf4;
}
.pt-card-concept .pt-reco {
  background: #fff;
}
.pt-reco-name,
.pt-concept-name {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.pt-concept-name {
  font-size: 20px;
  color: #312e81;
}
.pt-concept-signature {
  margin: 0 0 10px;
  font-style: italic;
  font-size: 15px;
  color: #334155;
}
.pt-reco-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0 0 10px;
  font-size: 13px;
  color: #475569;
}
.pt-reco-text {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
  color: #1e293b;
}
.pt-reco-why {
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
}
.pt-args {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.55;
  color: #1e293b;
}
.pt-args li + li {
  margin-top: 6px;
}
.pt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}
.pt-chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 12px;
  font-weight: 600;
}
.pt-tease {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
}
.pt-locked {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 8px;
  margin-top: auto;
}
.pt-locked-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
}
.pt-lock {
  font-size: 13px;
  line-height: 1;
}
.pt-locked-line {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: #e2e8f0;
}
.pt-locked-line.short {
  width: 60%;
}
.pt-empty {
  padding: 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
}
.pt-empty p {
  margin: 0;
}
.pt-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-style: solid;
  border-color: #fecaca;
  background: #fef2f2;
  color: #7f1d1d;
}
.pt-retry {
  padding: 8px 14px;
  border: 1px solid #7f1d1d;
  border-radius: 8px;
  background: #fff;
  color: #7f1d1d;
  font-weight: 600;
  cursor: pointer;
}
.pt-skeleton {
  min-height: 190px;
  justify-content: center;
}
.pt-skeleton .pt-locked-line {
  animation: ptPulse 1.4s ease-in-out infinite;
}
.pt-status {
  margin: 12px 0 0;
  font-size: 13px;
  color: #64748b;
}
.pt-reassurance {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid #e2eaf4;
  border-radius: 14px;
  background: #f8fafc;
}
.pt-section-title {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
}
.pt-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: #1e293b;
}
.pt-modules li::before {
  content: '✓';
  margin-right: 8px;
  font-weight: 700;
  color: #6366f1;
}
.pt-proofs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.pt-proof {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2eaf4;
}
.pt-proof strong {
  font-size: 13px;
  color: #312e81;
}
.pt-proof p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
}
.pt-cta {
  margin-top: 16px;
  padding: 28px 24px;
  border-radius: 14px;
  background: #312e81;
  color: #fff;
  text-align: center;
}
.pt-cta-title {
  margin: 0 0 8px;
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}
.pt-cta-text {
  margin: 0 auto 18px;
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.55;
  color: #e0e7ff;
}
.pt-cta-button {
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  background: #fff;
  color: #312e81;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.pt-cta-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.35);
}
.pt-cta-button:disabled {
  opacity: 0.7;
  cursor: progress;
}
.pt-cta-button:focus-visible,
.pt-retry:focus-visible {
  outline: 3px solid #a5b4fc;
  outline-offset: 2px;
}
.pt-offers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: #e0e7ff;
}
.pt-offers li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pt-offers strong {
  font-size: 14px;
  color: #fff;
}
.pt-cta-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: #c7d2fe;
}
@keyframes ptRise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes ptPulse {
  50% {
    opacity: 0.45;
  }
}
@media (max-width: 900px) {
  .pt-grid,
  .pt-proofs {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .pt-modules {
    grid-template-columns: 1fr;
  }
  .pt-card,
  .pt-reassurance {
    padding: 16px;
  }
  .pt-cta {
    padding: 22px 16px;
  }
  .pt-cta-button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pt-card,
  .pt-skeleton .pt-locked-line {
    animation: none;
  }
  .pt-cta-button {
    transition: none;
  }
}

/* La page impose couleur et bordures à ses titres et listes : l'aperçu garde les siennes. */
#previewTeaser h2,
#previewTeaser h3,
#previewTeaser h4 {
  border: 0 !important;
  background: none !important;
  padding: 0 !important;
  font-family: inherit;
}
#previewTeaser .pt-cta-title {
  color: #fff !important;
}
#previewTeaser .pt-concept-name {
  color: #312e81 !important;
}
#previewTeaser .pt-args {
  list-style: disc;
}
#previewTeaser .pt-offers span,
#previewTeaser .pt-cta-note {
  color: #e0e7ff !important;
}
#cahierOverlay.pt-active .download-button[disabled] {
  display: none;
}
.pt-photo {
  margin: -14px -14px 12px;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  background: #e2e8f0;
}
.pt-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.pt-photo figcaption {
  padding: 4px 10px;
  font-size: 11px;
  color: #64748b;
  background: #f1f5f9;
}
.pt-open .pt-locked-tile {
  border-style: solid;
  border-color: #c7d2fe;
  background: #eef2ff;
}
.pt-open .pt-lock {
  color: #6366f1;
  font-weight: 700;
}
#previewTeaser .pt-cta-note a {
  color: #e0e7ff !important;
  text-decoration: underline;
}

/* ── Aperçu court (v2) : faits compris, cartes bornées, exemple de livrable ── */
.pt-grid {
  align-items: start;
}
.pt-understood {
  margin: 0 0 18px;
  padding: 14px 18px;
  border: 1px solid #c7d2fe;
  border-radius: 14px;
  background: #eef2ff;
}
.pt-understood-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #312e81;
}
.pt-understood-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
}
.pt-fact {
  display: flex;
  gap: 6px;
  align-items: baseline;
  font-size: 14px;
}
.pt-fact dt {
  color: #475569;
}
.pt-fact dt::after {
  content: ' :';
}
.pt-fact dd {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
}
.pt-confirm {
  margin: 8px 0 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-size: 12.5px;
  line-height: 1.45;
  color: #92400e;
}
.pt-more {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 9px 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 13px;
  color: #334155;
}
.pt-more.pt-open {
  border-style: solid;
  border-color: #c7d2fe;
  background: #eef2ff;
}
.pt-example {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #e2eaf4;
  border-radius: 14px;
  background: #f8fafc;
}
.pt-example-note {
  margin: 0 0 14px;
  font-size: 13px;
  color: #64748b;
}
.pt-example-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.pt-example-visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid #e2eaf4;
  border-radius: 10px;
  background: #fff;
}
.pt-example-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.pt-example-visual figcaption,
.pt-example-label {
  margin: 0;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
}
.pt-example-label {
  padding: 0 0 8px;
}
.pt-example-budget {
  padding: 14px;
  border: 1px solid #e2eaf4;
  border-radius: 10px;
  background: #fff;
}
.pt-example-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.pt-example-table td {
  padding: 7px 0;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}
.pt-example-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pt-example-total td {
  border-bottom: none;
  font-weight: 700;
  color: #0f172a;
}
.pt-cta {
  margin-top: 18px;
}
@media (max-width: 900px) {
  .pt-example-grid {
    grid-template-columns: 1fr;
  }
}
#previewTeaser .pt-understood-title,
#previewTeaser .pt-understood-list {
  border: 0 !important;
}
#previewTeaser .pt-understood-title {
  color: #312e81 !important;
}
/* Cahier complet replié sous l'aperçu (tableau de bord). */
.cahier-toggle {
  display: block;
  width: 100%;
  margin: 8px 0 12px;
  padding: 12px 16px;
  border: 1px solid #e2eaf4;
  border-radius: 12px;
  background: #fff;
  color: #312e81;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.cahier-toggle:hover {
  background: #f8fafc;
}
.cahier-toggle:focus-visible {
  outline: 3px solid #a5b4fc;
  outline-offset: 2px;
}
.cahier-content.pt-collapsed {
  display: none;
}
/* Carte Lieu plus compacte : photo en bandeau. */
.pt-card-venue .pt-photo img {
  aspect-ratio: 2 / 1;
}
