/* ===================================================================
   G7 Design Blog — styles propres au thème blog
   - Typographie long-format « .g7-prose » (vue lecture single/page)
   - Largeur de lecture ~720px, fort contraste sur fond anthracite
   Charte : titres blancs (Plus Jakarta Sans), corps gris clair (Inter),
   liens accent, blockquote bord accent.
   =================================================================== */

/* -------------------------------------------------------------------
   Conteneur de lecture
   ------------------------------------------------------------------- */
.g7-prose {
  max-width: 720px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.8;
  color: #d6dae2;            /* ~ text-gray-200/300 */
}

@media (min-width: 640px) {
  .g7-prose {
    font-size: 1.125rem;     /* 18px */
  }
}

/* Espacement vertical par défaut entre blocs */
.g7-prose > * + * {
  margin-top: 1.5em;
}

/* -------------------------------------------------------------------
   Titres
   ------------------------------------------------------------------- */
.g7-prose h2,
.g7-prose h3,
.g7-prose h4,
.g7-prose h5,
.g7-prose h6 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.g7-prose h2 {
  font-size: 1.75rem;
  margin-top: 2.5em;
  margin-bottom: 0.2em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid rgba(47, 53, 68, 0.6); /* anthracite-600/60 */
}

.g7-prose h3 {
  font-size: 1.375rem;
  margin-top: 2em;
  margin-bottom: 0.1em;
}

.g7-prose h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.75em;
}

/* -------------------------------------------------------------------
   Paragraphes & inline
   ------------------------------------------------------------------- */
.g7-prose p {
  color: #d6dae2;
}

.g7-prose strong,
.g7-prose b {
  color: #ffffff;
  font-weight: 600;
}

.g7-prose em,
.g7-prose i {
  color: #e5e8ee;
}

.g7-prose mark {
  background: rgba(91, 140, 184, 0.25);
  color: #ffffff;
  padding: 0.05em 0.25em;
  border-radius: 0.25rem;
}

.g7-prose small {
  font-size: 0.875em;
  color: #9aa3b2;
}

/* -------------------------------------------------------------------
   Liens
   ------------------------------------------------------------------- */
.g7-prose a {
  color: #7badd6;            /* accent.light */
  text-decoration: underline;
  text-decoration-color: rgba(123, 173, 214, 0.4);
  text-underline-offset: 0.2em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.g7-prose a:hover {
  color: #a3c8e8;            /* accent.lighter */
  text-decoration-color: rgba(163, 200, 232, 0.7);
}

/* -------------------------------------------------------------------
   Listes
   ------------------------------------------------------------------- */
.g7-prose ul,
.g7-prose ol {
  padding-left: 1.5em;
  color: #d6dae2;
}

.g7-prose ul {
  list-style: none;
}

.g7-prose ul > li {
  position: relative;
  padding-left: 1.4em;
}

.g7-prose ul > li::before {
  content: '';
  position: absolute;
  left: 0.1em;
  top: 0.72em;
  width: 0.4em;
  height: 0.4em;
  border-radius: 9999px;
  background: #5b8cb8;       /* accent */
}

.g7-prose ol {
  list-style: decimal;
}

.g7-prose ol > li::marker {
  color: #7badd6;
  font-weight: 600;
}

.g7-prose li + li {
  margin-top: 0.5em;
}

.g7-prose li > ul,
.g7-prose li > ol {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* -------------------------------------------------------------------
   Citations
   ------------------------------------------------------------------- */
.g7-prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 0.4em 0 0.4em 1.4em;
  border-left: 3px solid #5b8cb8;   /* accent */
  background: rgba(30, 34, 43, 0.4); /* anthracite-800/40 */
  border-radius: 0 0.5rem 0.5rem 0;
  color: #e5e8ee;
  font-style: italic;
}

.g7-prose blockquote p {
  color: #e5e8ee;
}

.g7-prose blockquote cite {
  display: block;
  margin-top: 0.6em;
  font-style: normal;
  font-size: 0.875em;
  color: #9aa3b2;
}

/* -------------------------------------------------------------------
   Images & figures
   ------------------------------------------------------------------- */
.g7-prose img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  border: 1px solid rgba(47, 53, 68, 0.5);
}

.g7-prose figure {
  margin-left: 0;
  margin-right: 0;
}

.g7-prose figure img {
  margin-left: auto;
  margin-right: auto;
}

.g7-prose figcaption,
.g7-prose .wp-caption-text {
  margin-top: 0.75em;
  text-align: center;
  font-size: 0.875em;
  color: #9aa3b2;
}

/* Alignements WP — bornés à la largeur de lecture, donc on neutralise */
.g7-prose .alignleft,
.g7-prose .alignright,
.g7-prose .aligncenter {
  float: none;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------------------------------------------
   Code
   ------------------------------------------------------------------- */
.g7-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(38, 43, 54, 0.7); /* anthracite-700 */
  color: #a3c8e8;
  padding: 0.15em 0.4em;
  border-radius: 0.35rem;
  border: 1px solid rgba(47, 53, 68, 0.5);
}

.g7-prose pre {
  background: #181b22;       /* anthracite-900 */
  border: 1px solid rgba(47, 53, 68, 0.5);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
}

.g7-prose pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: #d6dae2;
  font-size: inherit;
}

/* -------------------------------------------------------------------
   Tableaux
   ------------------------------------------------------------------- */
.g7-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
  display: block;
  overflow-x: auto;
}

.g7-prose th,
.g7-prose td {
  padding: 0.65em 0.9em;
  border: 1px solid rgba(47, 53, 68, 0.5);
  text-align: left;
}

.g7-prose th {
  background: rgba(30, 34, 43, 0.6);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 600;
}

.g7-prose tr:nth-child(even) td {
  background: rgba(30, 34, 43, 0.25);
}

/* -------------------------------------------------------------------
   Divers
   ------------------------------------------------------------------- */
.g7-prose hr {
  border: 0;
  height: 1px;
  margin: 2.5em auto;
  max-width: 200px;
  background: linear-gradient(90deg, transparent, rgba(91, 140, 184, 0.2), transparent);
}

.g7-prose .wp-block-button__link,
.g7-prose .wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  background: #5b8cb8;
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.3s ease;
}

.g7-prose .wp-block-button__link:hover,
.g7-prose .wp-element-button:hover {
  background: #3d6d99;
  color: #ffffff;
}

/* Embeds responsive */
.g7-prose iframe,
.g7-prose .wp-block-embed iframe {
  max-width: 100%;
  border-radius: 0.75rem;
}

/* wp_link_pages */
.g7-page-links {
  max-width: 720px;
  margin: 2.5em auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #9aa3b2;
}

.g7-page-links a,
.g7-page-links > span > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.6rem;
  border-radius: 0.5rem;
  background: rgba(30, 34, 43, 0.4);
  border: 1px solid rgba(47, 53, 68, 0.5);
  color: #d6dae2;
  text-decoration: none;
}

.g7-page-links a:hover {
  color: #7badd6;
  border-color: rgba(91, 140, 184, 0.4);
}

/* sr-only utilitaire (au cas où Tailwind ne couvre pas un contexte) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
