
/* ============================================================
   PAGES INTÉRIEURES — même système, vocabulaire éditorial
   (page-hero, page-section, page-card, cta-banner, btn, …)
   ============================================================ */

.page-wrapper {
  padding-top: 4.6rem;
  counter-reset: psec;
}

.container {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* filet : plus aucune icône police */
i[class^="fa"],
i[class*=" fa"] {
  display: none;
}

/* ---------- fil d'ariane ---------- */

.page-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  color: var(--grey);
  margin-bottom: clamp(1.6rem, 3vw, 2.6rem);
}

.page-breadcrumb a {
  color: var(--paper-dim);
  transition: color 160ms ease;
}

.page-breadcrumb a:hover {
  color: var(--red);
}

.page-breadcrumb .current {
  color: var(--red);
}

/* ---------- hero de page ---------- */

.page-hero {
  padding: clamp(2.6rem, 5vw, 4.5rem) 0 clamp(2.6rem, 5vw, 4.5rem);
  border-bottom: 1px solid rgba(241, 237, 230, 0.16);
}

.page-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: 0.02em;
  color: var(--red);
  border: 1px solid rgba(255, 59, 31, 0.45);
  padding: 0.42rem 0.85rem;
  margin-bottom: 1.6rem;
}

.page-highlight::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2.6s ease-in-out infinite;
}

.page-hero h1 {
  font-size: clamp(1.85rem, 1.15rem + 3.1vw, 4.3rem);
  font-weight: 850;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.03;
  margin-bottom: 0.55em;
  max-width: 26ch;
}

.page-hero p {
  font-size: clamp(1rem, 0.93rem + 0.4vw, 1.22rem);
  line-height: 1.55;
  color: var(--paper-dim);
  max-width: 64ch;
}

.page-hero p strong,
.page-section p strong {
  color: var(--paper);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* ---------- boutons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.7rem;
  border: 2px solid transparent;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--ink);
}

.btn-primary:hover {
  background: transparent;
  color: var(--red);
}

.btn-secondary {
  border-color: rgba(241, 237, 230, 0.4);
  color: var(--paper);
}

.btn-secondary:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ---------- sections ---------- */

.page-section {
  padding: clamp(3.2rem, 6.5vw, 6.5rem) 0;
}

.page-section.alt {
  background: var(--ink-2);
  border-block: 1px solid rgba(241, 237, 230, 0.09);
}

.page-section .section-header {
  margin-bottom: clamp(1.8rem, 3.5vw, 3rem);
}

.page-section .section-header::before {
  counter-increment: psec;
  content: "● " counter(psec, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--red);
  margin-bottom: 1.1rem;
}

.page-section .section-header h2 {
  font-size: clamp(1.5rem, 1.05rem + 1.9vw, 2.75rem);
  font-weight: 830;
  font-stretch: 110%;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin-bottom: 0.55em;
  max-width: 30ch;
}

.page-section .section-header p,
.section-lead {
  color: var(--paper-dim);
  max-width: 64ch;
  line-height: 1.55;
}

.page-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  font-stretch: 108%;
}

/* ---------- grilles de cartes ---------- */

.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1px;
  background: rgba(241, 237, 230, 0.16);
  border: 1px solid rgba(241, 237, 230, 0.16);
  margin-top: 2rem;
}

.page-card {
  background: var(--ink);
  padding: 1.6rem 1.5rem 1.8rem;
  transition: background 240ms ease;
}

.page-section.alt .page-card {
  background: var(--ink-2);
}

.page-card:hover {
  background: #1c1815;
}

.page-card h3,
.page-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: 0.01em;
  margin-bottom: 0.6rem;
  transition: color 240ms ease;
}

.page-card:hover h3,
.page-card:hover h4 {
  color: var(--red);
}

.page-card p {
  color: var(--paper-dim);
  font-size: 0.95rem;
  line-height: 1.55;
}

.page-card ul,
.page-card ol {
  list-style: none;
  padding: 0;
  margin-top: 0.85rem;
}

.page-card li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.45rem;
  color: var(--paper-dim);
  font-size: 0.93rem;
  line-height: 1.5;
}

.page-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--red);
}

/* ---------- bandeau CTA ---------- */

.cta-banner {
  background: var(--red-deep);
  color: var(--ink);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  flex-wrap: wrap;
  margin-top: clamp(2.2rem, 4.5vw, 3.5rem);
}

.cta-banner h3 {
  font-size: clamp(1.35rem, 1rem + 1.5vw, 2.2rem);
  font-weight: 850;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin-bottom: 0.5rem;
}

.cta-banner p {
  max-width: 58ch;
  font-weight: 500;
  line-height: 1.5;
}

.cta-banner .btn-secondary {
  border-color: var(--ink);
  color: var(--ink);
  white-space: nowrap;
}

.cta-banner .btn-secondary:hover {
  background: var(--ink);
  color: var(--red);
}

.cta-banner :focus-visible {
  outline-color: var(--ink);
}

/* ---------- étapes ---------- */

.step-item {
  display: flex;
  gap: 1.3rem;
  padding: 1.3rem 0;
  border-top: 1px solid rgba(241, 237, 230, 0.16);
}

.step-item:last-child {
  border-bottom: 1px solid rgba(241, 237, 230, 0.16);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--red);
  min-width: 2.2rem;
}

.step-item h3,
.step-item h4 {
  margin-bottom: 0.4rem;
}

.step-item p {
  color: var(--paper-dim);
  font-size: 0.95rem;
}

/* ---------- vidéo ---------- */

.video-section .video-wrapper,
.video-container {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(241, 237, 230, 0.16);
  margin-top: 2rem;
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- slider captures ---------- */

.image-slider {
  margin-top: 2rem;
}

.slider-container {
  position: relative;
  border: 1px solid rgba(241, 237, 230, 0.16);
  background: var(--ink-2);
}

.slider-wrapper .slide {
  display: none;
}

.slider-wrapper .slide.active {
  display: block;
}

.slide img {
  display: block;
  width: 100%;
  height: auto;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid rgba(241, 237, 230, 0.3);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.slider-btn:hover {
  background: var(--red);
  color: var(--ink);
}

.slider-btn.prev { left: 0.8rem; }
.slider-btn.next { right: 0.8rem; }

.slider-btn::before {
  font-family: var(--font-mono);
}

.slider-btn.prev::before { content: "←"; }
.slider-btn.next::before { content: "→"; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 0 0.4rem;
}

.slider-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 0;
  background: rgba(241, 237, 230, 0.25);
  animation: none;
  cursor: pointer;
  transition: background 200ms ease;
}

.slider-dots .dot.active,
.slider-dots .dot:hover {
  background: var(--red);
}

/* ---------- téléchargement ---------- */

.download-wrapper {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.download-counter {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  color: var(--grey);
}

/* ---------- reveals doux (cartes) ---------- */

.js .reveal-soft {
  opacity: 0;
  transition: opacity 700ms ease;
}

.js .reveal-soft.is-in {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal-soft {
    opacity: 1;
    transition: none;
  }
}

/* ---------- responsive pages ---------- */

@media (max-width: 640px) {
  .page-wrapper {
    padding-top: 4rem;
  }

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

  .slider-btn.prev { left: 0.4rem; }
  .slider-btn.next { right: 0.4rem; }
}
