/* ============================================================
   GrammaLab — prose-pages.css
   Styles pour les pages de contenu textuel : privacy, voorwaarden,
   cookies, contact, over-grammalab, voor-docenten.
   
   À placer dans : grammalab/static/css/prose-pages.css
   À charger depuis base.html ou directement depuis chaque template
   prose via {% block extra_css %}.
   ============================================================ */

.prose-page {
  /* Largeur de lecture confortable — entre 65 et 75 caractères */
  max-width: 760px;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;

  /* Typographie */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif;
  font-size: 1.0625rem;
  /* 17px */
  line-height: 1.7;
  color: #1f2937;
  /* slate-800 */
}

/* ----- Titres ----- */
.prose-page h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.5rem;
  color: #0f172a;
  /* slate-900 */
  letter-spacing: -0.01em;
}

.prose-page h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 2.5rem 0 1rem;
  color: #0f172a;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  /* gray-200 */
}

.prose-page h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
  color: #1e293b;
  /* slate-800 */
}

/* ----- Paragraphes ----- */
.prose-page p {
  margin: 0 0 1.1rem;
}

.prose-page .lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #334155;
  /* slate-700 */
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  background: #f1f5f9;
  /* slate-100 */
  border-left: 4px solid #2563eb;
  /* blue-600 — adapte à ta couleur de marque */
  border-radius: 0.375rem;
}

.prose-page em {
  color: #64748b;
  /* slate-500 */
  font-style: italic;
}

/* ----- Liens ----- */
.prose-page a {
  color: #2563eb;
  /* blue-600 — adapte si ta marque utilise une autre couleur */
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}

.prose-page a:hover {
  color: #1d4ed8;
  /* blue-700 */
  text-decoration-thickness: 2px;
}

/* ----- Listes ----- */
.prose-page ul,
.prose-page ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.prose-page li {
  margin-bottom: 0.5rem;
}

.prose-page li>strong:first-child {
  color: #0f172a;
}

/* ----- Tableaux ----- */
.prose-page table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose-page th,
.prose-page td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.prose-page th {
  background: #f8fafc;
  /* slate-50 */
  font-weight: 600;
  color: #0f172a;
}

.prose-page tr:last-child td {
  border-bottom: none;
}

.prose-page tr:hover td {
  background: #f8fafc;
}

/* ----- Code inline ----- */
.prose-page code {
  font-family: "SF Mono", Monaco, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: #f1f5f9;
  border-radius: 0.25rem;
  color: #be185d;
  /* pink-700 */
}

/* ----- Bannière démo (utilisée dans grammar_rule.html) ----- */
.demo-banner {
  background: #fef3c7;
  /* amber-100 */
  border: 1px solid #fcd34d;
  /* amber-300 */
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.demo-banner p {
  margin: 0;
  color: #78350f;
  /* amber-900 */
}

.demo-banner a {
  color: #b45309;
  /* amber-700 */
  font-weight: 600;
}

/* ----- Responsive ----- */
@media (max-width: 640px) {
  .prose-page {
    font-size: 1rem;
    padding: 0 1rem;
    margin: 1rem auto 3rem;
  }

  .prose-page h1 {
    font-size: 1.75rem;
  }

  .prose-page h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
  }

  .prose-page .lead {
    font-size: 1.0625rem;
    padding: 1rem;
  }

  .prose-page table {
    font-size: 0.875rem;
  }

  .prose-page th,
  .prose-page td {
    padding: 0.5rem 0.75rem;
  }
}

/* ============================================================
   GrammaLab — prose-pages-images.css
   Styles pour les images dans les pages prose (Over GrammaLab,
   Voor docenten).
   
   À AJOUTER à la fin de prose-pages.css existant.
   ============================================================ */

/* ----- Photo portrait ronde (Over GrammaLab) ----- */
.author-portrait {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
  flex-wrap: wrap;
}

.author-portrait img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #f1f5f9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.author-portrait .author-text {
  flex: 1;
  min-width: 280px;
}

.author-portrait .author-text p {
  margin-top: 0;
}

/* ----- Screenshots produit (Voor docenten) ----- */
.product-screenshot {
  margin: 1.5rem 0 2rem;
}

.product-screenshot figure {
  margin: 0;
  padding: 0;
}

.product-screenshot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  background: #fff;
}

.product-screenshot figcaption {
  font-size: 0.875rem;
  color: #64748b;
  font-style: italic;
  margin-top: 0.75rem;
  text-align: center;
  padding: 0 1rem;
}

/* ----- Galerie 2 colonnes pour écran large (optionnel) ----- */
@media (min-width: 900px) {
  .product-screenshot.screenshot-portrait {
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ----- Mobile : portrait empilé proprement ----- */
@media (max-width: 640px) {
  .author-portrait {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-portrait img {
    width: 110px;
    height: 110px;
  }

  .author-portrait .author-text {
    text-align: left;
  }
}