/* ==========================================================================
   Sedes Vulcain — CSS de marque (thème enfant TT5)
   « Forge nocturne » : atmosphère sombre + prose de lecture calquée sur le site.
   Les couleurs/typos de base viennent de theme.json ; ici on affine.
   ========================================================================== */

:root {
  --sv-copper: #c0692e;
  --sv-copper-300: #d98a4f;
  --sv-copper-200: #e8a668;
  --sv-cream: #f6f3ee;
  --sv-mist: #c3cddd;
  --sv-navy-900: #0a1d38;
  --sv-navy-950: #071527;
}

/* Atmosphère fixe : lueurs de forge (cuivre bas-gauche, bleu haut-droite) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
  background:
    radial-gradient(55rem 40rem at -5% 105%, rgba(192, 105, 46, 0.18), transparent 60%),
    radial-gradient(45rem 38rem at 105% -5%, rgba(46, 127, 209, 0.13), transparent 55%),
    linear-gradient(180deg, #0a1d38 0%, #071527 70%);
}

/* Sélection cuivre */
::selection {
  background-color: rgba(192, 105, 46, 0.35);
  color: var(--sv-cream);
}

/* Focus visible cuivre */
:focus-visible {
  outline: 2px solid var(--sv-copper);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Corps d'article — reprend .article-body du site Astro
   Cible le contenu de post (HTML issu de la migration Markdown).
   -------------------------------------------------------------------------- */
.wp-block-post-content,
.entry-content {
  color: var(--sv-mist);
  font-size: 1.075rem;
  line-height: 1.8;
}

.wp-block-post-content > * + *,
.entry-content > * + * { margin-top: 1.25rem; }

.wp-block-post-content h2,
.entry-content h2 { font-size: 1.75rem; margin-top: 2.75rem; color: var(--sv-cream); }

.wp-block-post-content h3,
.entry-content h3 { font-size: 1.35rem; margin-top: 2rem; color: var(--sv-cream); }

.wp-block-post-content strong,
.entry-content strong { color: var(--sv-cream); }

.wp-block-post-content a,
.entry-content a {
  color: var(--sv-copper-300);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.wp-block-post-content a:hover,
.entry-content a:hover { color: var(--sv-copper-200); }

/* Listes : puces « › » cuivre */
.wp-block-post-content ul,
.entry-content ul { list-style: none; padding-left: 1.4rem; }
.wp-block-post-content ul > li,
.entry-content ul > li { position: relative; padding-left: 1.1rem; }
.wp-block-post-content ul > li::before,
.entry-content ul > li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--sv-copper-300);
}
.wp-block-post-content ol,
.entry-content ol { padding-left: 1.4rem; list-style: decimal; }
.wp-block-post-content li + li,
.entry-content li + li { margin-top: 0.5rem; }

/* Citations (blockquote HTML issu du Markdown) */
.wp-block-post-content blockquote,
.entry-content blockquote {
  border-left: 2px solid var(--sv-copper);
  padding-left: 1.25rem;
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--sv-cream);
}

/* Code inline */
.wp-block-post-content code,
.entry-content code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 0.3rem;
}

/* Filet cuivre sous les titres de section principaux */
.wp-block-post-title { color: var(--sv-cream); }
.wp-block-post-title::after {
  content: "";
  display: block;
  height: 2px;
  width: 3.5rem;
  margin-top: 0.9rem;
  background: linear-gradient(90deg, var(--sv-copper), var(--sv-copper-300));
  border-radius: 999px;
}

/* Séparateur horizontal discret */
.wp-block-post-content hr,
.entry-content hr {
  border: 0;
  height: 1px;
  background: rgba(246, 243, 238, 0.12);
  margin: 2.5rem 0;
}

/* Cartes d'articles (liste du blog) : léger panneau translucide */
.wp-block-post-template .wp-block-post {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(246, 243, 238, 0.1);
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s;
}
.wp-block-post-template .wp-block-post:hover {
  transform: translateY(-4px);
  border-color: rgba(192, 105, 46, 0.5);
}

/* --------------------------------------------------------------------------
   Liste du blog — grille de cartes (surcharge home/index)
   -------------------------------------------------------------------------- */
.sv-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sv-copper-300);
  margin-bottom: 0.4rem;
}

/* Cartes d'articles : date cuivre, titre serré, extrait brume */
.wp-block-post-template.is-layout-grid { gap: 1.25rem; }

.wp-block-post-template .wp-block-post .wp-block-post-date {
  color: var(--sv-copper-300);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.wp-block-post-template .wp-block-post .wp-block-post-title {
  margin: 0 0 0.6rem;
  line-height: 1.15;
}
/* Pas de filet cuivre sous les titres DANS les cartes (réservé à la page article) */
.wp-block-post-template .wp-block-post .wp-block-post-title::after { content: none; }
.wp-block-post-template .wp-block-post .wp-block-post-excerpt {
  color: var(--sv-mist);
  font-size: 1rem;
  line-height: 1.6;
}
.wp-block-post-template .wp-block-post .wp-block-post-excerpt__more-link {
  color: var(--sv-copper-300);
  text-decoration: none;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Badges de catégorie (Édito vs Veille auto) + ligne meta date · auteur
   -------------------------------------------------------------------------- */
.wp-block-post-terms.sv-badges { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.sv-cat {
  display: inline-block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.22em 0.65em;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(195, 205, 221, 0.35);
  color: var(--sv-mist);
  transition: filter 0.2s;
}
.sv-cat:hover { filter: brightness(1.18); }
/* Humain / éditorial → cuivre */
.sv-cat-edito {
  color: #e8a668;
  border-color: rgba(216, 138, 79, 0.55);
  background: rgba(192, 105, 46, 0.12);
}
/* Généré par agent → bleu */
.sv-cat-veille-auto {
  color: #8fc0f2;
  border-color: rgba(46, 127, 209, 0.55);
  background: rgba(46, 127, 209, 0.12);
}

/* Ligne meta : date · auteur, sur une seule ligne */
.sv-meta { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.sv-meta .wp-block-post-date { margin: 0; }
.sv-meta .sv-author {
  color: var(--sv-mist);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.02em;
  font-size: 0.8rem;
}
.sv-meta .sv-author::before { content: "·"; color: var(--sv-copper-300); margin-right: 0.55rem; font-weight: 700; }

/* --------------------------------------------------------------------------
   En-tête (wordmark + menu) et pied de page
   -------------------------------------------------------------------------- */
.sv-wordmark { margin: 0; font-family: "Arsenal SC", "Arsenal", serif; font-size: 1.35rem; letter-spacing: 0.04em; line-height: 1; }
.sv-wordmark a { color: var(--sv-cream); text-decoration: none; }
.sv-wordmark a:hover { color: var(--sv-copper-200); }

.sv-nav a,
.wp-block-navigation.sv-nav a {
  color: var(--sv-mist);
  text-decoration: none;
  font-family: "Jura", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
}
.sv-nav a:hover,
.wp-block-navigation.sv-nav a:hover { color: var(--sv-copper-300); }
.wp-block-navigation.sv-nav { --wp--style--block-gap: 1.35rem; }

/* Pied de page */
.sv-footer { color: var(--sv-mist); }
.sv-footer a { color: var(--sv-mist); text-decoration: none; }
.sv-footer a:hover { color: var(--sv-copper-300); }
.sv-footer-links a { white-space: nowrap; }

/* --------------------------------------------------------------------------
   Marque : médaillon + nom (header)
   -------------------------------------------------------------------------- */
.sv-brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.sv-brand__logo {
  width: 40px; height: 40px; border-radius: 50%;
  box-shadow: 0 0 22px -6px rgba(216, 138, 79, 0.55);
  flex: 0 0 auto;
}
.sv-brand__name {
  font-family: "Arsenal SC", "Arsenal", serif;
  font-size: 1.3rem; letter-spacing: 0.04em; color: var(--sv-cream); line-height: 1;
}
.sv-brand:hover .sv-brand__name { color: var(--sv-copper-200); }

/* --------------------------------------------------------------------------
   Zone commentaires — aux couleurs de la forge
   -------------------------------------------------------------------------- */
.wp-block-comments { margin-top: 3rem; }
.wp-block-comments-title,
.comment-reply-title {
  font-family: "Arsenal SC", "Arsenal", serif;
  color: var(--sv-cream);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.wp-block-comment-template li {
  list-style: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(246, 243, 238, 0.1);
  border-radius: 0.9rem;
  padding: 1.1rem 1.35rem;
  margin-bottom: 1rem;
}
.wp-block-comment-author-name a,
.wp-block-comment-author-name { color: var(--sv-cream); font-weight: 700; text-decoration: none; }
.wp-block-comment-date, .wp-block-comment-date a {
  color: var(--sv-copper-300);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem; text-decoration: none;
}
.wp-block-comment-content { color: var(--sv-mist); line-height: 1.7; }
.wp-block-comment-reply-link a, .comment-reply-link { color: var(--sv-copper-300); }

/* Formulaire de commentaire */
.comment-form label { color: var(--sv-mist); font-family: "Jura", system-ui, sans-serif; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.wp-block-post-comments-form textarea,
.wp-block-post-comments-form input:not([type="submit"]) {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(246, 243, 238, 0.18);
  border-radius: 0.5rem;
  color: var(--sv-cream);
  padding: 0.6rem 0.75rem;
  font-family: "Jura", system-ui, sans-serif;
}
.comment-form input:focus, .comment-form textarea:focus,
.wp-block-post-comments-form input:focus, .wp-block-post-comments-form textarea:focus {
  outline: 2px solid var(--sv-copper);
  outline-offset: 1px;
}
.comment-form .form-submit .submit,
.wp-block-post-comments-form .wp-block-button__link,
.wp-block-post-comments-form input[type="submit"] {
  background: var(--sv-copper); color: var(--sv-cream);
  border: 0; border-radius: 999px; padding: 0.55rem 1.4rem;
  font-family: "Jura", system-ui, sans-serif; font-weight: 700; cursor: pointer;
}
.must-log-in a, .logged-in-as a, .comment-notes a { color: var(--sv-copper-300); }
.comment-notes, .logged-in-as, .must-log-in { color: var(--sv-mist); font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Catégories de la veille auto (badges) + encart d'abonnement RSS
   -------------------------------------------------------------------------- */
.sv-cat-veille-ia            { color:#8fc0f2; border-color:rgba(46,127,209,.55); background:rgba(46,127,209,.12); }
.sv-cat-reglementation       { color:#e8b86a; border-color:rgba(216,138,79,.5);  background:rgba(240,160,90,.12); }
.sv-cat-financement-formation{ color:#8fce9e; border-color:rgba(90,180,120,.5);  background:rgba(90,180,120,.12); }

/* Encart « S'abonner à la veille » */
.sv-subscribe .sv-feeds { display:flex; flex-wrap:wrap; gap:.7rem; margin-top:1.4rem; }
.sv-feed {
  display:inline-flex; align-items:center; gap:.5rem;
  font-family:"Jura", system-ui, sans-serif; font-weight:700; font-size:.95rem;
  color:var(--sv-cream); text-decoration:none;
  padding:.55rem 1.1rem; border-radius:999px;
  border:1px solid rgba(246,243,238,.18); background:rgba(255,255,255,.03);
  transition:border-color .25s, transform .25s;
}
.sv-feed::before { content:"\1F4E1"; font-size:.9em; } /* 📡 */
.sv-feed:hover { transform:translateY(-2px); border-color:rgba(192,105,46,.55); }
.sv-feed-veille-ia:hover            { border-color:rgba(46,127,209,.6); }
.sv-feed-reglementation:hover       { border-color:rgba(216,138,79,.6); }
.sv-feed-financement-formation:hover{ border-color:rgba(90,180,120,.6); }
