/* ==========================================================================
   Revenu Silencieux — système de design (rs-*)
   --------------------------------------------------------------------------
   Source de vérité unique pour l'identité visuelle du site.

   Avant ce fichier, les variables `--rs-*` et les classes `.rs-*` utilisées par
   les 25 fragments Gutenberg n'existaient nulle part dans le dépôt : elles
   vivaient uniquement dans la « CSS additionnelle » du Customizer WordPress,
   donc non versionnée, non relisible et non récupérable.

   Conventions
   -----------
   - Tout est autonome : aucune dépendance au thème, aucune police externe.
   - Les règles d'éléments sont encapsulées sous `.rs-container` et utilisent
     `:where()` (spécificité 0) pour que les `style="..."` en ligne des
     fragments continuent de gagner sans bagarre de spécificité.
   - La palette suit le brief (README §11) : vert forêt profond, fond crème
     chaud, neutres sombres, une seule couleur d'accent.
   - Mobile first : les valeurs de base visent le petit écran, les media
     queries n'ajoutent que le confort du grand écran.

   Palette de référence (identique à tools/generate_pdf.py) :
     vert forêt #254d37 · vert clair #edf3ee · texte #181e24 · texte doux #525a55
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Jetons de design
   -------------------------------------------------------------------------- */

.rs-container,
.rs-adsense-scope {
  --rs-accent-green: #254d37;
  --rs-accent-green-dark: #1a3826;
  --rs-accent-soft: #edf3ee;

  --rs-bg: #f7f4ee;
  --rs-surface: #ffffff;

  --rs-text-primary: #181e24;
  --rs-text-secondary: #525a55;
  --rs-text-muted: #7d8580;

  --rs-border: #dde3df;
  --rs-border-light: #e9edea;

  --rs-font-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --rs-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --rs-radius: 10px;
  --rs-radius-lg: 14px;
  --rs-shadow: 0 1px 2px rgba(24, 30, 36, 0.04), 0 6px 18px rgba(24, 30, 36, 0.04);

  --rs-gap: 22px;
  --rs-section-space: 56px;
}

/* --------------------------------------------------------------------------
   2. Structure : conteneur, sections, en-têtes
   -------------------------------------------------------------------------- */

.rs-container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 20px;
  font-family: var(--rs-font-sans);
  color: var(--rs-text-primary);
}

.rs-container *,
.rs-container *::before,
.rs-container *::after {
  box-sizing: border-box;
}

.rs-container a {
  color: var(--rs-accent-green);
}

.rs-container :where(h1, h2, h3, h4) {
  font-family: var(--rs-font-serif);
  color: var(--rs-text-primary);
  line-height: 1.25;
  overflow-wrap: break-word;
}

.rs-container :where(p, li) {
  overflow-wrap: break-word;
}

.rs-container img {
  max-width: 100%;
  height: auto;
}

.rs-section {
  margin-block: var(--rs-section-space);
}

.rs-section-header {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 34px;
  text-align: center;
}

.rs-section-title {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.05rem);
  margin: 10px 0 0;
}

.rs-section-eyebrow,
.rs-eyebrow,
.rs-eyebrow-accent {
  display: inline-block;
  font-family: var(--rs-font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.rs-section-eyebrow,
.rs-eyebrow {
  color: var(--rs-text-muted);
}

.rs-eyebrow-accent {
  color: var(--rs-accent-soft);
}

.rs-page-header {
  text-align: center;
}

.rs-page-title {
  font-size: clamp(1.75rem, 1.4rem + 1.8vw, 2.4rem);
  margin: 10px 0 16px;
}

.rs-page-intro {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--rs-text-secondary);
}

.rs-microtext {
  font-size: 0.82rem;
  color: var(--rs-text-muted);
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   3. Cartes
   -------------------------------------------------------------------------- */

.rs-card {
  background: var(--rs-surface);
  border: 1px solid var(--rs-border-light);
  border-radius: var(--rs-radius);
  box-shadow: var(--rs-shadow);
  padding: 24px;
}

.rs-card-title {
  font-size: 1.1rem;
  margin: 0 0 10px;
}

.rs-card-desc {
  margin: 0;
  color: var(--rs-text-secondary);
  line-height: 1.65;
}

.rs-card-tag,
.rs-card-num {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rs-accent-green);
  background: var(--rs-accent-soft);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 12px;
}

.rs-card-num {
  font-family: var(--rs-font-serif);
  font-size: 0.95rem;
  letter-spacing: 0;
  background: transparent;
  padding-inline: 0;
  color: var(--rs-text-muted);
}

.rs-transition-box {
  max-width: 720px;
  margin: 36px auto 0;
  padding: 18px 24px;
  text-align: center;
  border-left: 3px solid var(--rs-accent-green);
  background: var(--rs-accent-soft);
  border-radius: 0 var(--rs-radius) var(--rs-radius) 0;
  color: var(--rs-text-secondary);
}

.rs-transition-box p {
  margin: 0;
}

.rs-link-action {
  display: inline-block;
  font-weight: 600;
  color: var(--rs-accent-green);
  text-decoration: none;
  margin-top: 4px;
}

.rs-link-action:hover,
.rs-link-action:focus-visible {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   4. Boutons
   -------------------------------------------------------------------------- */

.rs-btn {
  display: inline-block;
  font-family: var(--rs-font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease;
}

.rs-btn-primary {
  background: var(--rs-accent-green);
  border-color: var(--rs-accent-green);
  color: #ffffff;
}

.rs-btn-primary:hover,
.rs-btn-primary:focus-visible {
  background: var(--rs-accent-green-dark);
  border-color: var(--rs-accent-green-dark);
  color: #ffffff;
}

.rs-btn-secondary {
  background: transparent;
  border-color: var(--rs-accent-green);
  color: var(--rs-accent-green);
}

.rs-btn-secondary:hover,
.rs-btn-secondary:focus-visible {
  background: var(--rs-accent-soft);
  color: var(--rs-accent-green-dark);
}

.rs-btn-submit {
  width: 100%;
}

.rs-container :where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--rs-accent-green);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .rs-container * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   5. Accueil — héros
   -------------------------------------------------------------------------- */

.rs-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: center;
  padding-block: 40px;
}

.rs-hero-title {
  font-size: clamp(1.85rem, 1.4rem + 2.4vw, 2.75rem);
  margin: 14px 0 16px;
}

.rs-hero-subtitle {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--rs-text-secondary);
  margin: 0 0 24px;
}

.rs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rs-hero-visual {
  order: -1;
}

.rs-hero-frame {
  position: relative;
  border-radius: var(--rs-radius-lg);
  overflow: hidden;
  border: 1px solid var(--rs-border);
  background: var(--rs-surface);
}

.rs-hero-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.rs-hero-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(24, 30, 36, 0.72);
  color: #ffffff;
  font-size: 0.8rem;
}

.rs-caption-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rs-accent-soft);
}

/* --------------------------------------------------------------------------
   6. Grilles de cartes
   -------------------------------------------------------------------------- */

.rs-problem-grid,
.rs-resources-grid,
.rs-diagnostic-grid,
.rs-mistakes-grid,
.rs-trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--rs-gap);
}

.rs-resource-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.rs-card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--rs-accent-soft);
}

.rs-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rs-resource-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--rs-surface);
  color: var(--rs-accent-green);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
}

.rs-card-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.rs-resource-title {
  font-size: 1.15rem;
  margin: 0 0 10px;
}

.rs-resource-title a {
  color: var(--rs-text-primary);
  text-decoration: none;
}

.rs-resource-title a:hover,
.rs-resource-title a:focus-visible {
  color: var(--rs-accent-green);
  text-decoration: underline;
}

.rs-resource-benefit {
  color: var(--rs-text-secondary);
  line-height: 1.6;
  margin: 0 0 16px;
}

.rs-resource-meta {
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--rs-text-muted);
}

/* --------------------------------------------------------------------------
   7. Parcours — frise verticale
   -------------------------------------------------------------------------- */

.rs-timeline {
  display: grid;
  gap: 26px;
  max-width: 780px;
  margin-inline: auto;
}

.rs-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
}

.rs-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rs-step-number {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rs-accent-green);
  color: #ffffff;
  font-family: var(--rs-font-serif);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rs-step-line {
  flex: 1;
  width: 2px;
  margin-top: 8px;
  background: var(--rs-border);
}

.rs-step:last-child .rs-step-line {
  display: none;
}

.rs-step-title {
  font-size: 1.15rem;
  margin: 4px 0 8px;
}

.rs-step-desc {
  margin: 0;
  color: var(--rs-text-secondary);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   8. Atelier — encadré
   -------------------------------------------------------------------------- */

.rs-workshop-box {
  background: var(--rs-accent-soft);
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius-lg);
  padding: 34px 24px;
}

.rs-workshop-title {
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.85rem);
  margin: 10px 0 14px;
}

.rs-workshop-desc {
  color: var(--rs-text-secondary);
  line-height: 1.7;
  margin: 0 0 20px;
}

.rs-workshop-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.rs-workshop-list li {
  position: relative;
  padding-left: 26px;
  line-height: 1.6;
  color: var(--rs-text-secondary);
}

.rs-workshop-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--rs-accent-green);
  font-weight: 700;
}

.rs-workshop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   9. Transparence
   -------------------------------------------------------------------------- */

.rs-trust-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.rs-trust-icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--rs-accent-soft);
  color: var(--rs-accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.rs-trust-text strong {
  display: block;
  margin-bottom: 5px;
  color: var(--rs-text-primary);
}

.rs-trust-text p {
  margin: 0;
  color: var(--rs-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   10. Diagnostic et erreurs
   -------------------------------------------------------------------------- */

.rs-mistake-card {
  border-left: 3px solid var(--rs-border);
}

.rs-mistake-card h4 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.rs-mistake-card p {
  margin: 0;
  color: var(--rs-text-secondary);
  line-height: 1.6;
}

.rs-mistake-cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--rs-border-light);
  color: var(--rs-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.rs-card-tag.rs-mistake-cross {
  width: auto;
  height: auto;
  border-radius: 999px;
  padding: 4px 11px;
}

/* --------------------------------------------------------------------------
   11. Capture d'e-mail
   -------------------------------------------------------------------------- */

.rs-final-section {
  margin-block: var(--rs-section-space);
}

.rs-final-card {
  max-width: 720px;
  margin-inline: auto;
  padding: 38px 24px;
  text-align: center;
  background: var(--rs-surface);
  border: 2px solid var(--rs-accent-green);
  border-radius: var(--rs-radius-lg);
}

.rs-final-title {
  font-size: clamp(1.35rem, 1.15rem + 1vw, 1.75rem);
  margin: 12px 0 14px;
}

.rs-final-desc {
  color: var(--rs-text-secondary);
  line-height: 1.7;
  margin: 0 0 24px;
}

.rs-capture-form {
  display: grid;
  gap: 14px;
  text-align: left;
}

.rs-form-row {
  display: grid;
  gap: 12px;
}

.rs-input {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--rs-text-primary);
  background: var(--rs-surface);
  border: 1px solid var(--rs-border);
  border-radius: 6px;
}

.rs-input::placeholder {
  color: var(--rs-text-muted);
}

.rs-form-privacy {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--rs-text-muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   12. Articles
   -------------------------------------------------------------------------- */

.rs-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--rs-text-muted);
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--rs-border-light);
}

.rs-single-post {
  line-height: 1.8;
  font-size: 1.06rem;
}

.rs-single-post :where(h2) {
  font-size: clamp(1.35rem, 1.15rem + 1vw, 1.7rem);
  margin-top: 42px;
  margin-bottom: 16px;
}

.rs-single-post :where(h3) {
  font-size: 1.22rem;
  margin-top: 30px;
  margin-bottom: 12px;
}

.rs-single-post :where(p, ul, ol) {
  margin-block: 0 18px;
}

.rs-single-post :where(ul, ol) {
  padding-left: 22px;
}

.rs-single-post :where(li) {
  margin-bottom: 8px;
}

.rs-single-post :where(code) {
  font-size: 0.92em;
  background: var(--rs-accent-soft);
  color: var(--rs-accent-green-dark);
  padding: 2px 6px;
  border-radius: 4px;
}

.rs-single-post :where(table) {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
  text-align: left;
}

.rs-single-post :where(th, td) {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rs-border);
  vertical-align: top;
}

.rs-single-post :where(blockquote) {
  margin: 24px 0;
  padding: 16px 22px;
  border-left: 4px solid var(--rs-accent-green);
  background: var(--rs-accent-soft);
  border-radius: 0 var(--rs-radius) var(--rs-radius) 0;
}

.rs-single-post :where(blockquote p:last-child) {
  margin-bottom: 0;
}

/* Le plugin AdSense cible `#checklist` pour placer l'annonce du bas. */
#checklist {
  scroll-margin-top: 90px;
}

.rs-single-post :where([id]) {
  scroll-margin-top: 90px;
}

/* --------------------------------------------------------------------------
   13. Pages légales, confidentialité, cookies
   -------------------------------------------------------------------------- */

.rs-legal-content :where(h2),
.rs-privacy-content :where(h2),
.rs-cookies-content :where(h2) {
  font-size: 1.28rem;
  margin: 0 0 12px;
}

.rs-legal-content :where(p, li),
.rs-privacy-content :where(p, li),
.rs-cookies-content :where(p, li) {
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   14. Page de confirmation
   -------------------------------------------------------------------------- */

.rs-thankyou-page {
  text-align: center;
}

/* --------------------------------------------------------------------------
   15. Colonnes de grille et crochets de mise en page
   -------------------------------------------------------------------------- */

/* `min-width: 0` : sans cela, une colonne de grille refuse de rétrécir sous la
   largeur de son contenu le plus large (tableaux, `code`, URLs) et déborde. */
.rs-hero-content,
.rs-hero-visual,
.rs-step-content,
.rs-workshop-content,
.rs-card-inner,
.rs-trust-text,
.rs-diagnostic-card,
.rs-problem-card {
  min-width: 0;
}

/* Largeurs de lecture confortables, alignées sur les gabarits du brief. */
.rs-about-content,
.rs-contact-layout,
.rs-waitlist-content,
.rs-legal-content,
.rs-privacy-content,
.rs-cookies-content {
  max-width: 760px;
  margin-inline: auto;
}

/* Crochets sans style propre — présents volontairement dans le balisage pour
   cibler une page ou une section depuis une surcharge future, un script ou une
   règle conditionnelle. Ne pas les supprimer du HTML : ils servent de point
   d'ancrage.
     Pages    : .rs-home .rs-commencer-page .rs-contact-page .rs-cookies-page
                .rs-privacy-page .rs-legal-page .rs-about-page .rs-waitlist-page
                .rs-guide-landing .rs-thankyou-page
     Sections : .rs-problem-section .rs-method-section .rs-resources-section
                .rs-workshop-section .rs-trust-section .rs-diagnostic-section
                .rs-parcours-section .rs-mistakes-section .rs-final-section
     Blocs    : .rs-diagnostic-card .rs-problem-card .rs-single-post
*/

/* --------------------------------------------------------------------------
   16. Adaptations grand écran
   -------------------------------------------------------------------------- */

@media (min-width: 700px) {
  .rs-container {
    padding-inline: 28px;
  }

  .rs-problem-grid,
  .rs-diagnostic-grid,
  .rs-mistakes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rs-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 32px;
  }

  .rs-resources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rs-form-row {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .rs-form-row .rs-btn-submit {
    grid-column: 1 / -1;
    width: auto;
    justify-self: start;
  }

  .rs-final-card {
    padding: 46px 40px;
  }

  .rs-workshop-box {
    padding: 44px 40px;
  }
}

@media (min-width: 1000px) {
  .rs-container {
    --rs-section-space: 72px;
  }

  .rs-problem-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .rs-resources-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rs-diagnostic-grid,
  .rs-mistakes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rs-hero {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 46px;
    padding-block: 56px;
  }

  .rs-hero-visual {
    order: 0;
  }
}

/* Le formulaire Guide (Fluent Forms) est injecté dans une grille 2 colonnes
   définie en ligne sur la page d'atterrissage. Sans media query, la colonne du
   formulaire tombait à ~45 % de largeur sur téléphone : on empile. */
@media (max-width: 860px) {
  .rs-guide-landing [style*="grid-template-columns"] {
    display: block !important;
  }
}

/* --------------------------------------------------------------------------
   17. Impression
   -------------------------------------------------------------------------- */

@media print {
  .rs-hero-actions,
  .rs-workshop-actions,
  .rs-final-card,
  .rs-ad-wrapper {
    display: none !important;
  }

  .rs-container {
    max-width: none;
    color: #000000;
  }
}
