/*
Theme Name: SMPlus Child
Theme URI:  https://smplus.fr
Author:     iDS WEB
Author URI: https://ids-web.fr
Template:   blocksy
Version:    1.0
License:    GNU General Public License v2 or later
*/

/*
 * SMPlus — Blog Single Post — Blocksy Child Theme
 * Version 2 — Sélecteurs extraits du HTML source réel
 * À coller dans : style.css du thème enfant (après le bloc /*Theme Name...)
 */

/* ── POLICES ──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

/* ── VARIABLES ────────────────────────────────────────────── */
:root {
  --smp-deep:   #000d1a;
  --smp-nuit:   #001428;
  --smp-marine: #052e66;
  --smp-or:     #c8941e;
  --smp-or2:    #f2d478;
  --smp-texte:  #001934;
}

/* ══════════════════════════════════════════════════════════
   HERO — EN-TÊTE ARTICLE (fond bleu)
   Sélecteur réel : .single-post article .hero-section
   ══════════════════════════════════════════════════════════ */

.single-post article .hero-section {
  background: linear-gradient(135deg, var(--smp-deep) 0%, var(--smp-nuit) 60%, var(--smp-marine) 100%) !important;
  padding-top: 80px !important;
  padding-bottom: 48px !important;
  position: relative;
  overflow: hidden;
}

/* Grille décorative */
.single-post article .hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,148,30,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,148,30,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Halo doré décoratif */
.single-post article .hero-section::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,148,30,0.08) 0%, transparent 70%);
  top: -150px;
  right: -80px;
  pointer-events: none;
  z-index: 0;
}

/* Contenu hero au-dessus du pseudo-élément */
.single-post article .hero-section .entry-header {
  position: relative;
  z-index: 1;
}

/* ── TITRE H1 en blanc ──────────────────────────────────── */
.single-post article .hero-section h1.page-title {
  font-family: 'DM Serif Display', serif !important;
  font-weight: 400 !important;
  color: #ffffff !important;
  font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
  line-height: 1.18 !important;
}

/* ── Description / excerpt en blanc atténué ─────────────── */
.single-post article .hero-section .page-description,
.single-post article .hero-section .page-description p {
  color: rgba(255, 255, 255, 0.55) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

/* ── Méta (auteur, date) ─────────────────────────────────── */
.single-post article .hero-section ul.entry-meta {
  color: rgba(255, 255, 255, 0.40) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important;
}

.single-post article .hero-section ul.entry-meta a {
  color: rgba(255, 255, 255, 0.60) !important;
  text-decoration: none !important;
}

/* ── Badge catégorie ─────────────────────────────────────── */
.single-post article .hero-section .meta-categories a {
  background: rgba(200, 148, 30, 0.12) !important;
  border: 1px solid rgba(200, 148, 30, 0.30) !important;
  color: var(--smp-or) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  padding: 3px 10px !important;
  border-radius: 2px !important;
  text-decoration: none !important;
}

/* ══════════════════════════════════════════════════════════
   CONTENU DE L'ARTICLE
   Sélecteur réel : .single-post .entry-content
   ══════════════════════════════════════════════════════════ */

.single-post .entry-content {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
}

/* H2 avec bordure or */
.single-post .entry-content h2.wp-block-heading {
  font-family: 'DM Serif Display', serif !important;
  font-weight: 400 !important;
  font-size: 1.75rem !important;
  color: var(--smp-texte) !important;
  margin-top: 2.5rem !important;
  margin-bottom: 0.9rem !important;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(200, 148, 30, 0.22);
}

/* H3 */
.single-post .entry-content h3.wp-block-heading {
  font-family: 'DM Serif Display', serif !important;
  font-weight: 400 !important;
  font-size: 1.3rem !important;
  color: var(--smp-texte) !important;
}

/* Listes — puce or */
.single-post .entry-content ul.wp-block-list li::marker {
  color: var(--smp-or);
}

.single-post .entry-content ul.wp-block-list li,
.single-post .entry-content ol li {
  margin-bottom: 8px;
}

/* Strong en bleu marine */
.single-post .entry-content strong {
  color: var(--smp-marine);
  font-weight: 600;
}

/* Liens */
.single-post .entry-content a {
  color: var(--smp-or);
  text-decoration: underline;
  text-decoration-color: rgba(200, 148, 30, 0.35);
  transition: color 0.2s, text-decoration-color 0.2s;
}
.single-post .entry-content a:hover {
  color: var(--smp-or2);
  text-decoration-color: var(--smp-or);
}

/* ══════════════════════════════════════════════════════════
   SIDEBAR / WIDGETS BLOG
   (une fois la sidebar activée dans Blocksy)
   ══════════════════════════════════════════════════════════ */

.single-post aside.primary-sidebar {
  position: sticky;
  top: 90px;
  align-self: flex-start;
}

/* Fond sombre sur les widgets */
.single-post aside.primary-sidebar .widget {
  background: var(--smp-deep);
  border: 1px solid rgba(200, 148, 30, 0.20);
  border-radius: 6px;
  padding: 22px 20px;
  margin-bottom: 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

/* Titre widget */
.single-post aside.primary-sidebar .widget .widget-title {
  font-family: 'DM Serif Display', serif !important;
  font-weight: 400 !important;
  font-size: 1.1rem !important;
  color: #ffffff !important;
  margin-bottom: 14px !important;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(200, 148, 30, 0.20);
}

/* Liens sidebar */
.single-post aside.primary-sidebar .widget a {
  color: rgba(255, 255, 255, 0.65) !important;
  text-decoration: none !important;
  transition: color 0.2s;
}
.single-post aside.primary-sidebar .widget a:hover {
  color: var(--smp-or) !important;
}

/* Bouton CTA dans sidebar (classe custom à mettre sur les liens) */
.smp-cta-btn {
  display: block !important;
  width: 100%;
  background: var(--smp-or) !important;
  color: #001934 !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-align: center !important;
  padding: 13px 18px !important;
  border-radius: 3px !important;
  text-decoration: none !important;
  transition: all 0.22s ease !important;
  margin-top: 12px;
}
.smp-cta-btn:hover {
  background: #e0ab32 !important;
  color: #001934 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 148, 30, 0.40) !important;
}

/* Widget urgence custom (classe sur div HTML) */
.smp-urgence-widget {
  background: var(--smp-deep);
  border: 1px solid rgba(200, 148, 30, 0.22);
  border-left: 3px solid var(--smp-or);
  border-radius: 6px;
  padding: 20px 18px;
  font-family: 'DM Sans', sans-serif;
}

.smp-urgence-widget .smp-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--smp-or);
  animation: smp-blink 2s ease-in-out infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes smp-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

.smp-urgence-widget .smp-tel {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: #ffffff;
  display: block;
  margin: 8px 0 4px;
  text-decoration: none;
}
.smp-urgence-widget .smp-tel:hover { color: var(--smp-or2); }

/* ══════════════════════════════════════════════════════════
   PAGE ARCHIVE BLOG
   ══════════════════════════════════════════════════════════ */

/* En-tête de la page blog */
.blog .hero-section,
.archive .hero-section {
  background: linear-gradient(135deg, var(--smp-deep), var(--smp-nuit)) !important;
  padding-top: 60px !important;
  padding-bottom: 40px !important;
}

.blog .hero-section h1,
.archive .hero-section h1 {
  font-family: 'DM Serif Display', serif !important;
  font-weight: 400 !important;
  color: #ffffff !important;
}

/* Cards d'articles sur l'archive */
.blog article,
.archive article {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.blog article:hover,
.archive article:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(5, 46, 102, 0.10);
}

/* Titres des cards */
.blog .entry-title a,
.archive .entry-title a {
  font-family: 'DM Serif Display', serif !important;
  font-weight: 400 !important;
  color: var(--smp-texte) !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}
.blog .entry-title a:hover,
.archive .entry-title a:hover {
  color: var(--smp-or) !important;
}

/* Lien "Lire la suite" */
.blog .more-link,
.archive .more-link,
.blog .ct-more-link,
.archive .ct-more-link {
  color: var(--smp-or) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}

/* ══════════════════════════════════════════════════════════
   NAVIGATION ENTRE ARTICLES
   ══════════════════════════════════════════════════════════ */

.single-post .post-navigation {
  border-top: 1px solid #e5e7eb;
  margin-top: 48px;
  padding-top: 28px;
}

.single-post .post-navigation a {
  font-family: 'DM Serif Display', serif;
  color: var(--smp-texte);
  text-decoration: none;
  transition: color 0.2s;
}
.single-post .post-navigation a:hover {
  color: var(--smp-or);
}

/* ══════════════════════════════════════════════════════════
   TYPOGRAPHIE GLOBALE (headlines)
   ══════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6,
.page-title,
.entry-title,
.widget-title {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
}

body,
p, li, td, th, label, input, textarea, button {
  font-family: 'DM Sans', sans-serif;
}

/* ══════════════════════════════════════════════════════════
   META CATÉGORIES BLOG — Style tags SMPlus
   Sélecteur réel : .meta-categories a.ct-term-{n}
   ══════════════════════════════════════════════════════════ */

/* Tag catégorie — sur les cards d'archive et en single post */
.meta-categories a,
.entry-meta .meta-categories a,
ul.entry-meta .meta-categories a,
.ct-meta-element-categories a {
  display: inline-block !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: #052e66 !important;
  background: rgba(5, 46, 102, 0.06) !important;
  border: 1px solid rgba(5, 46, 102, 0.20) !important;
  border-radius: 3px !important;
  padding: 4px 10px !important;
  text-decoration: none !important;
  line-height: 1 !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
  margin-right: 4px !important;
  margin-bottom: 4px !important;
}

.meta-categories a:hover,
.entry-meta .meta-categories a:hover,
ul.entry-meta .meta-categories a:hover {
  background: rgba(200, 148, 30, 0.10) !important;
  border-color: rgba(200, 148, 30, 0.35) !important;
  color: #c8941e !important;
}

/* Sur fond sombre (dans le hero de l'article single) */
.single-post article .hero-section .meta-categories a {
  background: rgba(200, 148, 30, 0.10) !important;
  border: 1px solid rgba(200, 148, 30, 0.28) !important;
  color: #c8941e !important;
}

.single-post article .hero-section .meta-categories a:hover {
  background: rgba(200, 148, 30, 0.20) !important;
  border-color: rgba(200, 148, 30, 0.55) !important;
  color: #f2d478 !important;
}

/* Masquer les puces de liste par défaut sur entry-meta */
ul.entry-meta,
ul.entry-meta li {
  list-style: none !important;
  padding-left: 0 !important;
}

