/*
Theme Name: Intimité Numérique
Template: generatepress
Description: Child theme pour untelephone.com — Design Cruip adapté (dark mode). Conseils relations, couple et intimité.
Version: 3.1.0
Author: Grégory
License: GNU General Public License v2 or later
Text Domain: untelephone
*/

/* ==========================================================================
   1. CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
  /* Palette — Feu (noir / orange / jaune, 07/10/2026) */
  --color-bg: #0A0A0A;
  --color-bg-alt: #141414;
  --color-surface: #1A1A1A;
  --color-text: #F5F5F5;
  --color-text-secondary: #A3A3A3;
  --color-accent: #F97316;
  --color-accent-hover: #FB923C;
  --color-accent-light: #FDBA74;
  --color-accent-glow: #FED7AA;
  --color-accent-dark: #EA580C;
  --color-teal: #FACC15;
  --color-teal-hover: #EAB308;
  --color-link: #FB923C;
  --color-link-hover: #F97316;
  --color-border: #262626;
  --color-border-strong: #404040;

  /* Typographie */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-base: 1.125rem;
  --line-height-base: 1.7;

  /* Layout */
  --max-width: 1152px;
  --content-width: 720px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Ombres — dark mode */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 8px 30px rgba(249, 115, 22, 0.12);
  --shadow-header: none;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Progress bar */
  --progress: 0%;
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */

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

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

a:hover {
  color: var(--color-link-hover);
}

/* Soulignement animé (Cruip-style) */
a.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-smooth);
}
a.link-underline:hover::after {
  width: 100%;
}

/* ==========================================================================
   4. Layout Containers (override GP)
   ========================================================================== */

.grid-container {
  max-width: var(--max-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.site-content {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.inside-article {
  max-width: 100%;
  background: transparent;
}

/* ==========================================================================
   5. Header — Glass morphism (Cruip-style)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 8px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  max-width: var(--max-width);
  margin: 8px auto 0;
  padding: 0 12px;
  height: 56px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-header);
}

.site-header .inside-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
}

.site-logo img {
  max-height: 50px;
  width: auto;
}

/* Navigation */
.main-navigation {
  background: transparent !important;
  flex-shrink: 0;
}

.main-navigation .main-nav ul li a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  padding: 0.5rem 0.75rem;
  line-height: 1.5;
  transition: color var(--transition-fast);
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a {
  color: var(--color-accent);
}

.main-navigation .menu-toggle {
  color: var(--color-text);
}

/* Hide search icon in nav (will be in footer) */
.main-navigation .menu-bar-items {
  display: none;
}

/* ==========================================================================
   6. Hero Section
   ========================================================================== */

.ute-hero {
  text-align: center;
  padding: 5rem 1rem 4rem;
}

.ute-hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  background: linear-gradient(to right, var(--color-text), var(--color-accent), var(--color-teal), var(--color-text));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-text 6s linear infinite;
  margin-bottom: 1.5rem;
}

.ute-hero p {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.ute-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   7. Buttons (Cruip-style rising gradient)
   ========================================================================== */

.ute-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.6875rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-smooth);
}

/* Primary — orange accent */
.ute-btn-primary {
  background: linear-gradient(to top, #EA580C, #F97316);
  background-size: 100% 100%;
  background-position: bottom;
  color: #1A1A1A;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.18);
}
.ute-btn-primary:hover {
  background-size: 100% 150%;
  color: #1A1A1A;
  transform: translateY(-1px);
}
.ute-btn-primary .btn-arrow {
  margin-left: 0.25rem;
  opacity: 0.7;
  transition: transform var(--transition-fast);
}
.ute-btn-primary:hover .btn-arrow {
  transform: translateX(2px);
}

/* Secondary — outline */
.ute-btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
}
.ute-btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: #FFF8F5;
}

/* ==========================================================================
   8. Section Headers
   ========================================================================== */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  background: linear-gradient(to right, var(--color-accent), var(--color-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 2rem;
  height: 1px;
}

.section-label::before {
  background: linear-gradient(to right, transparent, var(--color-accent));
}
.section-label::after {
  background: linear-gradient(to left, transparent, var(--color-teal));
}

.section-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  background: linear-gradient(to right, var(--color-text), var(--color-accent), #FDBA74, var(--color-text));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-text 6s linear infinite;
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* Section divider (gradient border top) */
.section-divider {
  border-top: 1px solid;
  border-image: linear-gradient(to right, transparent, var(--color-border-strong), transparent) 1;
}

/* ==========================================================================
   9. Journey Cards (Homepage — "Par où commencer ?")
   ========================================================================== */

.ute-journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.ute-journey-card {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 2rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  transition: border-color var(--transition-smooth),
              transform var(--transition-smooth),
              box-shadow var(--transition-smooth);
}

.ute-journey-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.ute-journey-card-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.ute-journey-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-text);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.ute-journey-card p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}

.ute-journey-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-top: auto;
}

.ute-journey-card:hover .ute-journey-card-arrow {
  color: var(--color-accent-hover);
}

@media (max-width: 768px) {
  .ute-journey-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ==========================================================================
   10. Article Grid (Cruip card style)
   ========================================================================== */

.ute-post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  width: 100%;
}

.ute-post-col {
  width: 100%;
}

/* Card */
.ute-post-grid .inside-article {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-smooth), transform var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ute-post-grid .inside-article:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

/* Card image */
.ute-post-grid .post-image {
  margin: 0;
  overflow: hidden;
}
.ute-post-grid .post-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}
.ute-post-grid .inside-article:hover .post-image img {
  transform: scale(1.03);
}

/* Card content */
.inside-article-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Category badge */
.card-badge {
  display: inline-block;
  background: linear-gradient(to right, var(--color-accent), var(--color-accent-hover));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

/* Card title */
.inside-article-content .card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.inside-article-content .card-title a {
  color: var(--color-text);
  transition: color var(--transition-fast);
}
.inside-article-content .card-title a:hover {
  color: var(--color-accent);
}

/* Card excerpt */
.card-excerpt {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 0.75rem;
}

/* Card meta */
.card-meta {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

/* ==========================================================================
   10. Pagination (Cruip-style)
   ========================================================================== */

.paging-navigation {
  text-align: center;
  margin-top: 3rem;
}
.paging-navigation .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  margin: 0 4px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.paging-navigation .page-numbers.current {
  background: var(--color-accent);
  color: #FFFFFF;
  border-color: var(--color-accent);
}
.paging-navigation .page-numbers:hover:not(.current) {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ==========================================================================
   11. Single Post — Fix images + no sidebar
   ========================================================================== */

/* Supprime la sidebar sur les articles */
.single .sidebar,
.single .widget-area,
.single-post .sidebar,
.single-post .widget-area {
  display: none !important;
}
.single .content-area,
.single-post .content-area,
.single .site-main,
.single-post .site-main {
  width: 100% !important;
  max-width: 100% !important;
}

/* Progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--color-accent), var(--color-teal));
  width: var(--progress);
  z-index: 1001;
  transition: width 0.1s linear;
}

/* Single post content */
.single .site-content {
  max-width: var(--content-width);
  padding: 2rem 1rem;
}

/* Force les images d'article à être full-width */
.single-post .post-image img,
.single-post .featured-image img,
.single-post .wp-post-image,
.single .inside-article > .post-image img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  display: block;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

/* Empêche les images align-left/align-right héritées de casser le layout */
.post-image-aligned-left .post-image,
.post-image-aligned-right .post-image,
.post-image-aligned-center .post-image {
  float: none !important;
  text-align: center;
  margin: 0 0 2rem 0 !important;
  width: 100% !important;
}

.single .entry-header {
  text-align: center;
  margin-bottom: 2rem;
}

.single .entry-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--color-text);
}

/* H2 article — relief teal */
.single-post .entry-content h2,
.page .entry-content h2 {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  color: var(--color-text);
  margin: 2.5rem 0 1.2rem;
  padding: 0.5em 0 0.8em 16px;
  border-left: 4px solid var(--color-teal);
  background: linear-gradient(to right, rgba(250, 204, 21, 0.08), transparent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.single-post .entry-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--color-accent), var(--color-teal));
  border-radius: 2px;
}

/* H3 article — underline indigo */
.single-post .entry-content h3,
.page .entry-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem) !important;
  font-weight: 600;
  color: var(--color-text) !important;
  background: none !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  margin: 2rem 0 1.2rem;
  padding-bottom: 0.6em;
  position: relative;
}
.single-post .entry-content h3::after,
.page .entry-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(to right, var(--color-accent), var(--color-accent-hover));
  border-radius: 2px;
}

/* ==========================================================================
   12. Image Élégante dgedl-image (adapté indigo)
   ========================================================================== */

.dgedl-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.12);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.dgedl-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.18);
}

.dgedl-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid rgba(249, 115, 22, 0.35);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.dgedl-image:hover::after {
    opacity: 1;
}

.wp-caption:has(.dgedl-image),
p:has(> .dgedl-image) {
    margin: 2.5rem auto;
    max-width: 100%;
    text-align: center;
}

.wp-caption-text,
p:has(> .dgedl-image) + .wp-caption-text {
    margin-top: 1.2rem !important;
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    font-style: italic;
    text-align: center;
    line-height: 1.5;
}

.wp-caption-text::before {
    content: '';
    display: block;
    width: 50px;
    height: 1.5px;
    background: var(--color-accent);
    margin: 0.9rem auto 0.7rem;
}

@media (max-width: 640px) {
    .dgedl-image {
        border-radius: 12px;
    }
    .dgedl-image:hover {
        transform: translateY(-2px);
    }
    .wp-caption-text {
        font-size: 0.98rem;
        margin-top: 1rem !important;
    }
}

/* ==========================================================================
   13. NordVPN Privacy Box
   ========================================================================== */

.nordvpn-privacy-box {
  background: linear-gradient(135deg, #1A1A1A 0%, #431407 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-card);
}

.nordvpn-privacy-box h3 {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 1.25rem;
}

.nordvpn-privacy-box ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}
.nordvpn-privacy-box ul li {
  padding: 0.25rem 0;
  color: var(--color-text);
}

.btn-nordvpn {
  display: inline-block;
  background: linear-gradient(to top, var(--color-accent-hover), var(--color-accent));
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.18);
  transition: all var(--transition-smooth);
}
.btn-nordvpn:hover {
  background-size: 100% 150%;
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn-protonvpn {
  display: inline-block;
  background: linear-gradient(to top, #EA580C, #F97316);
  color: #1A1A1A !important;
  -webkit-text-fill-color: #1A1A1A !important;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.18);
  transition: all var(--transition-smooth);
}
.btn-protonvpn:hover {
  background-size: 100% 150%;
  transform: translateY(-2px);
  color: #1A1A1A !important;
  -webkit-text-fill-color: #1A1A1A !important;
}

/* ==========================================================================
   13. Footer
   ========================================================================== */

.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 0.5rem;
}
.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}
.footer-col ul li a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  text-align: center;
  padding: 2rem 2rem 0;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Dark mode toggle */
.theme-toggle {
  background: var(--color-border);
  border: none;
  border-radius: 50px;
  padding: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  transition: background var(--transition-fast);
}
.theme-toggle:hover {
  background: var(--color-border-strong);
}

/* ==========================================================================
   14. Animations
   ========================================================================== */

@keyframes gradient-text {
  to {
    background-position: 200% center;
  }
}

/* AOS base — elements visible by default, hidden only when JS adds .aos-init */
[data-aos] {
  transition-property: opacity, transform;
  transition-duration: 600ms;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
[data-aos].aos-init {
  opacity: 0;
}
[data-aos].aos-animate {
  opacity: 1;
}

[data-aos="fade-up"].aos-init {
  transform: translateY(20px);
}
[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
}

/* ==========================================================================
   15. Dark Mode (prefers-color-scheme)
   ========================================================================== */

.dark-mode,
[data-theme="dark"] {
  --color-bg: #0A0A0A;
  --color-bg-alt: #141414;
  --color-surface: #1A1A1A;
  --color-text: #F5F5F5;
  --color-text-secondary: #A3A3A3;
  --color-border: #262626;
  --color-border-strong: #404040;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.2);
  --shadow-card-hover: 0 8px 30px rgba(249, 115, 22, 0.10);
}

/* ==========================================================================
   16. Responsive
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .ute-post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .ute-post-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ute-hero {
    padding: 3rem 1rem 2rem;
  }
  .ute-hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .ute-hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .ute-btn {
    width: 100%;
    max-width: 320px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .single .site-content {
    padding: 1.5rem 1rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .site-header {
    border-radius: 0;
    margin: 0;
    top: 0;
    height: 52px;
  }
}

/* ==========================================================================
   17. Utilities
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   18. WORKFLOW CONTENT CLASSES — DeepSeek pipeline (dark mode)
   ⚠️  Classes injectées par DeepSeek dans les articles générés.
   Sans ce bloc, .note-color, .custom-table2, .custom-button,
   .faq-accordion, .bibliography-container s'affichent sans style.
   ========================================================================== */

/* --- NOTE-COLOR : encarts de mise en relief --- */
.note-color {
    /* Aligné sur le CSS perso (mon-css-perso-wordpress.txt) : encart à fond CLAIR
       pour créer un effet « relief » sur le fond sombre du site. Le CSS perso
       écrasait déjà cette règle via `!important` ; on aligne la source pour
       supprimer la dépendance à l'ordre de chargement. */
    background: linear-gradient(135deg, #f5f8fa 0%, #eef2f7 100%);
    border-left: 4px solid #2c7da0;
    padding: 1.5em 2em;
    margin: 2.5em 0;
    border-radius: 0 8px 8px 0;
    color: #1e2f3e;
    line-height: 1.75;
    font-size: 1.05rem;
    box-shadow: 0 2px 6px rgba(44, 125, 160, 0.06);
}
.note-color p { margin: 0 0 1.2em 0; }
.note-color p:last-child { margin-bottom: 0; }
.note-color strong, .note-color b { color: #25637a; font-weight: 600; }
@media (max-width: 600px) {
    .note-color { padding: 1.2em 1.5em; margin: 2em 0; font-size: 1rem; }
}

/* --- READER-QUESTION : section "Question de nos lecteurs" --- */
/*   Fond chaud parchemin, bordure douce — distinct de note-color (sombre)
     et de faq-accordion (collapsible). Conversationnel, pas encyclopédique. */
/*   .community-block = forward compat (S10 2026-07-22), même style. */
body .entry-content .reader-question,
body .entry-content .community-block {
    background: #FAF7F2;
    border: 1px solid #E8D5C0;
    border-radius: 12px;
    padding: 1.8em 2em;
    margin: 2.5em 0;
    color: #3D3027;
    line-height: 1.8;
    font-size: 1.05rem;
}
body .entry-content .reader-question .q-label,
body .entry-content .community-block .q-label {
    font-weight: 700;
    color: #B87333;
    display: block;
    margin-bottom: 0.3em;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
body .entry-content .reader-question .q-text,
body .entry-content .community-block .q-text {
    font-style: italic;
    color: #5C4A3A;
    margin-bottom: 1.2em;
    font-size: 1.08rem;
    line-height: 1.7;
}
body .entry-content .reader-question .r-text,
body .entry-content .community-block .r-text {
    color: #3D3027;
    margin-bottom: 1em;
}
body .entry-content .reader-question .r-text:last-child,
body .entry-content .community-block .r-text:last-child { margin-bottom: 0; }
body .entry-content .reader-question .r-text p,
body .entry-content .community-block .r-text p { margin-bottom: 0.6em; }
body .entry-content .reader-question strong,
body .entry-content .reader-question b,
body .entry-content .community-block strong,
body .entry-content .community-block b {
    color: #B87333;
    font-weight: 600;
}
body .entry-content .reader-question a,
body .entry-content .community-block a {
    color: #8B6914;
    text-decoration: underline;
    text-underline-offset: 2px;
}
@media (max-width: 600px) {
    body .entry-content .reader-question,
    body .entry-content .community-block {
        padding: 1.2em 1.5em; margin: 2em 0; font-size: 1rem;
    }
}

/* --- GAP-PERSPECTIVE : bloc « angle éditorial » (P4.5, S10 2026-07-22) --- */
/*   Fond chaud crème, bordure gauche terracotta — distinct de note-color
     (bleu-gris) et community-block (parchemin). Éditorial, pas conversationnel. */
body .entry-content .gap-perspective {
    background: #FDF8F3;
    border-left: 4px solid #E8965B;
    border-radius: 0 8px 8px 0;
    padding: 1.5em 2em;
    margin: 2.5em 0;
    color: #3D3027;
    line-height: 1.8;
    font-size: 1.05rem;
}
body .entry-content .gap-perspective h2 {
    color: #C66B2A;
    margin-top: 0;
    font-size: 1.3rem;
    font-weight: 700;
}
body .entry-content .gap-perspective p { margin-bottom: 0.6em; }
body .entry-content .gap-perspective p:last-child { margin-bottom: 0; }
body .entry-content .gap-perspective strong,
body .entry-content .gap-perspective b {
    color: #C66B2A;
    font-weight: 600;
}
body .entry-content .gap-perspective a {
    color: #A0522D;
    text-decoration: underline;
    text-underline-offset: 2px;
}
@media (max-width: 600px) {
    body .entry-content .gap-perspective {
        padding: 1.2em 1.5em; margin: 2em 0; font-size: 1rem;
    }
}

/* --- CUSTOM-BUTTON : boutons CTA affiliés --- */
.custom-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.05em;
    font-weight: 600;
    color: #FFFFFF;
    background: #EA580C;
    padding: 13px 30px;
    border-radius: 50px;
    border: 1px solid #F97316;
    box-shadow: 0 3px 8px rgba(249, 115, 22, 0.15);
    transition: all 0.3s ease;
    text-decoration: none !important;
    margin: 30px auto;
    width: fit-content;
}
.custom-button:hover {
    background: #F97316;
    border-color: #FB923C;
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.25);
    transform: translateY(-3px);
    color: #FFFFFF;
}
.custom-button::before {
    content: "→";
    font-size: 1.25em;
    transition: transform 0.3s ease;
}
.custom-button:hover::before { transform: translateX(6px); }

/* --- CUSTOM-TABLE2 : tableaux comparatifs modernes --- */
.custom-table2 {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #111827;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    margin: 2em 0;
    font-size: 1rem;
}
.custom-table2 th {
    background: linear-gradient(135deg, #EA580C, #F97316);
    color: white;
    font-weight: 500;
    padding: 16px 12px;
    text-align: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}
.custom-table2 td {
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid #1F2937;
    color: #E5E7EB;
    transition: all 0.2s ease;
    line-height: 1.5;
}
.custom-table2 tbody tr:nth-child(even) td { background-color: #0F0F14; }
.custom-table2 tbody tr:nth-child(odd) td { background-color: #111827; }
.custom-table2 tbody tr:hover td { background-color: #1F2937 !important; }
.custom-table2 td:first-child {
    font-weight: 600;
    color: #F9FAFB;
    text-align: left;
    padding-left: 18px;
    border-right: 1px solid #374151;
}

/* --- CUSTOM-TABLE2 responsive (mobile → cards) --- */
@media (max-width: 700px) {
    .custom-table2,
    .custom-table2 thead,
    .custom-table2 tbody,
    .custom-table2 tr,
    .custom-table2 td { display: block; }
    .custom-table2 thead { display: none; }
    .custom-table2 tr {
        margin-bottom: 20px;
        border: 1px solid #1F2937;
        border-radius: 12px;
        overflow: hidden;
        background: #111827;
        box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    }
    .custom-table2 td {
        display: flex;
        align-items: flex-start; /* fix 17/09/2026 : top-align, le contenu peut être multi-lignes */
        flex-wrap: wrap;         /* fix 17/09/2026 : évite qu'un <a> devienne une colonne flex parasite */
        gap: 0 10px;             /* fix 17/09/2026 : espace label/contenu sans casser le flux */
        padding: 12px 15px;
        border: none;
        border-bottom: 1px solid #1F2937;
        text-align: left;
    }
    .custom-table2 td:last-child { border-bottom: none; }
    .custom-table2 td::before {
        content: attr(data-label);
        font-weight: 600;
        flex: 0 0 110px;   /* fix 17/09/2026 : largeur fixe, ne se dilate pas */
        width: auto;       /* fix 17/09/2026 : width fixe remplacé par flex-basis */
        min-width: 0;
        color: #9CA3AF;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    /* fix 17/09/2026 : le contenu (texte + liens) reste dans UN seul flux.
       Sans ça, un <a> dans un <td> devient un flex item séparé → « case en plus ». */
    .custom-table2 td > a,
    .custom-table2 td > strong,
    .custom-table2 td > em,
    .custom-table2 td > span {
        flex: 0 1 auto;
    }
    .custom-table2 td:first-child {
        background: linear-gradient(135deg, #EA580C, #F97316);
        color: white;
        font-weight: 600;
        font-size: 1.1rem;
        display: flex;
        justify-content: center;
        padding: 15px;
        border-right: none;
    }
    .custom-table2 td:first-child::before { display: none; }
}

/* ═══════════════════════════════════════════
   FAQ - Version moderne (sans émoji)
   Style bare details/summary pour balises
   non wrappées dans .faq-accordion
   ═══════════════════════════════════════════ */
details {
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff, #fcfdfd);
    border-left: 4px solid #1abc9c;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}
details:hover {
    border-left-width: 6px;
    box-shadow: 0 5px 15px rgba(26, 188, 156, 0.12);
}
summary {
    padding: 18px 25px;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.15rem;
    position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::marker { display: none; }
summary::before {
    content: "?";
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    background-color: #1abc9c;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1rem;
    margin-right: 8px;
    flex-shrink: 0;
}
summary::after {
    content: "＋";
    margin-left: auto;
    color: #1abc9c;
    font-size: 1.3rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
details[open] summary::after {
    content: "−";
}
details[open] {
    background: white;
}

/* --- FAQ-ACCORDION : accordéons questions/réponses --- */
.faq-accordion details {
    margin-bottom: 1.5rem;
    /* Aligné sur le CSS perso : accordéon à fond CLAIR (effet relief). */
    background: linear-gradient(to right, #ffffff, #f8f9fa);
    border-left: 4px solid #1abc9c;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
    overflow: hidden;
}
.faq-accordion details:hover {
    border-left-width: 6px;
    box-shadow: 0 6px 20px rgba(26, 188, 156, 0.15);
}
.faq-accordion summary {
    padding: 1.1rem 1.6rem;
    font-weight: 600;
    /* Texte foncé : l'accordéon est à fond clair (aligné CSS perso). */
    color: #2c3e50;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.15rem;
    user-select: none;
}
.faq-accordion summary::-webkit-details-marker,
.faq-accordion summary::marker { display: none; }
.faq-accordion summary::before {
    content: "?";
    inline-size: 28px;
    block-size: 28px;
    background: #1abc9c;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.1rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.faq-accordion summary::after {
    content: "＋";
    margin-left: auto;
    color: #1abc9c;
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.35s ease;
    transform-origin: center;
}
.faq-accordion details[open] summary::after {
    content: "−";
    transform: rotate(180deg);
}
.faq-accordion details > *:not(summary) {
    padding: 0 1.6rem 1.6rem 4.2rem;
    /* Texte foncé : l'accordéon est à fond clair (aligné CSS perso). */
    color: #4a5a6a;
    line-height: 1.7;
    border-top: 1px solid rgba(26, 188, 156, 0.12);
}
.faq-accordion details ul,
.faq-accordion details ol {
    padding-left: 2.5rem;
    margin: 1rem 0;
}
.faq-accordion details > *:nth-child(2) { padding-top: 1.25rem; }
.faq-accordion summary { cursor: pointer !important; }

/* --- BIBLIOGRAPHY: Legacy container (articles before auto_biblio.py v2) --- */
.bibliography-container {
    margin: 40px auto;
    width: 85%;
    max-width: 1100px;
    /* Aligné sur le CSS perso : biblio à fond CLAIR (effet relief). */
    background: linear-gradient(135deg, #fafbfc 0%, #f0f4f0 100%);
    border-radius: 10px;
    border: 1px solid #e0e6e0;
    box-shadow: 0 4px 20px rgba(124, 179, 66, 0.08);
    padding: 30px 35px;
    overflow-x: auto;
}
.bibliography-container h2 {
    text-align: left;
    font-size: 1.8rem;
    font-weight: 700;
    /* Texte foncé : la biblio est à fond clair (aligné CSS perso). */
    color: #2c3e50;
    letter-spacing: -0.5px;
    margin: 0 0 30px 0;
    padding: 0 0 15px 0;
    background: transparent;
    border: none;
    border-bottom: 3px solid #7CB342;
    position: relative;
}
.bibliography-container h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: #5C6BC0;
}

/* --- BIBLIOGRAPHY: Standalone sections (auto_biblio.py v2+, no container wrapper) --- */
.bibliography-section {
    margin: 50px 0 35px;
    padding-top: 25px;
    border-top: 1px solid var(--color-border-strong);
}
.bibliography-section:first-of-type {
    margin-top: 45px;
}
.bibliography-section + .bibliography-section { margin-top: 40px; }
.bibliography-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #FB923C;
    text-transform: none;
    letter-spacing: 0.3px;
    border-left: 4px solid #FACC15;
    padding-left: 15px;
    margin: 0 0 18px 0;
    background: none !important;
}

/* --- CUSTOM-TABLE : tableaux de bibliographie --- */
.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
    margin-top: 5px;
}
.custom-table td {
    padding: 10px 16px;
    background-color: #1F2937;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    border: 1px solid #374151;
    font-size: 1.2rem;
    line-height: 1.5;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.custom-table td:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(249, 115, 22, 0.1);
}
.custom-table td a {
    display: block;
    text-decoration: none;
    color: #E5E7EB;
    font-size: 1.15rem;
    padding: 4px 0;
    transition: color 0.2s ease;
}
.custom-table td a:hover { color: #FB923C; }

/* --- SEPARATEUR-UNTELEPHONE : frise signature entre sections --- */
.separateur-untelephone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 40px 0;
    font-size: 2.5rem;
    user-select: none;
}
.separateur-untelephone .symbole {
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 3px;
    line-height: 1;
    background: linear-gradient(135deg, #F97316, #FACC15);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.separateur-untelephone .point-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.separateur-untelephone .point-group.left .point {
    background: linear-gradient(135deg, #F97316, #FACC15);
}
.separateur-untelephone .point-group.right .point {
    background: linear-gradient(135deg, #FACC15, #F97316);
}
.separateur-untelephone .point {
    border-radius: 50%;
    width: 6px;
    height: 6px;
}
.separateur-untelephone .point.xsmall { width: 2px; height: 2px; }
.separateur-untelephone .point.small  { width: 4px; height: 4px; }
.separateur-untelephone .point.medium { width: 8px; height: 8px; }
.separateur-untelephone .point.large  { width: 12px; height: 12px; }
.separateur-untelephone .point.xlarge { width: 16px; height: 16px; }
@media (max-width: 600px) {
    .separateur-untelephone { gap: 6px; font-size: 2rem; }
    .separateur-untelephone .point-group { gap: 3px; }
    .separateur-untelephone .point.xsmall { width: 2px; height: 2px; }
    .separateur-untelephone .point.small  { width: 3px; height: 3px; }
    .separateur-untelephone .point.medium { width: 6px; height: 6px; }
    .separateur-untelephone .point.large  { width: 9px; height: 9px; }
    .separateur-untelephone .point.xlarge { width: 12px; height: 12px; }
}

/* --- CTA-NORDVPN-INLINE : encart promo dans les articles --- */
.cta-nordvpn-inline {
    background: linear-gradient(135deg, #431407 0%, #7C2D12 100%);
    border: 1px solid #F97316;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
    color: #F5F5F5;
}
.cta-nordvpn-inline .custom-button {
    display: inline-block;
    margin-top: 0.75rem;
}

/* ==========================================================================
   19. BLOG GRID — Pages blog + archives (indigo palette)
   ========================================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 2.5rem;
  max-width: 1050px;
  margin: 3rem auto;
}

.post-card {
  background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 1px solid #1F2937;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.12);
  border-color: #374151;
}

.post-card .post-thumbnail {
  position: relative;
  overflow: hidden;
}

.post-card .post-thumbnail img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.05);
}

.post-card .entry-title {
  font-size: 1.3rem;
  margin: 1.2rem 1.5rem 0.5rem;
  line-height: 1.4;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  color: #E5E7EB !important;
}

.post-card .entry-title a {
  color: #E5E7EB;
  text-decoration: none;
}

.post-card .entry-title a:hover {
  color: #FB923C;
}

.post-card .post-meta {
  margin: 0 1.5rem 1rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.post-card .post-excerpt {
  padding: 0 1.5rem 1.5rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.post-card .custom-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFFFFF;
  background: #EA580C;
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid #F97316;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
  text-decoration: none !important;
  margin: 0 1.5rem 1.5rem;
  width: auto;
}

.post-card .custom-button::before {
  content: "→";
  font-size: 1.1em;
  color: #FDBA74;
  transition: transform 0.3s ease;
}

.post-card .custom-button:hover {
  background: #F97316;
  border-color: #FB923C;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.2);
  transform: translateY(-2px);
}

.post-card .custom-button:hover::before {
  transform: translateX(4px);
}

/* Page header — blog */
.page-header {
  text-align: center;
  margin: 1.5rem 0 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 3px solid #F97316;
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 3px;
  background: #FB923C;
}

.page-title {
  font-size: 2.5rem;
  color: var(--color-text);
  margin: 0 0 0.8rem;
  font-weight: 800;
}

.page-description {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Pagination */
.generate-pagination {
  text-align: center;
  margin: 4rem 0;
}

.generate-pagination .page-numbers {
  display: inline-block;
  padding: 12px 18px;
  margin: 0 4px;
  background: #1F2937;
  border: 1px solid #374151;
  border-radius: 50px;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.generate-pagination .page-numbers:hover,
.generate-pagination .page-numbers.current {
  background: linear-gradient(135deg, #EA580C, #F97316);
  color: #FFFFFF;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(249, 115, 22, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .page-title {
    font-size: 2rem;
  }
  .post-card .post-thumbnail img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .blog-grid {
    gap: 1.5rem;
  }
  .post-card .entry-title {
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   13b. BLOG TOGGLE — Grille asymétrique ↔ Liste geek (inspiré scale.com)
   ========================================================================== */

/* --- Toggle Button Group --- */
.blog-view-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0 auto 2rem auto;
  max-width: 1050px;
}

.blog-view-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: transparent;
  border: 1px solid var(--color-border-strong);
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
}

.blog-view-toggle button:first-child {
  border-radius: 8px 0 0 8px;
}

.blog-view-toggle button:last-child {
  border-radius: 0 8px 8px 0;
}

.blog-view-toggle button.active {
  background: var(--color-accent);
  color: #030712;
  border-color: var(--color-accent);
  font-weight: 600;
}

.blog-view-toggle button:hover:not(.active) {
  background: var(--color-surface);
  color: var(--color-text);
}

.blog-view-toggle svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --- Asymmetric Grid (default) — scale.com style --- */
.blog-grid.asymmetric {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Featured card: span 2 cols every 5th position (zigzag, no row span to avoid holes) */
.blog-grid.asymmetric .post-card:nth-child(5n+1) {
  grid-column: span 2;
}

.blog-grid.asymmetric .post-card:nth-child(5n+1) .post-thumbnail img {
  height: 280px;
}

.blog-grid.asymmetric .post-card:nth-child(5n+1) .entry-title {
  font-size: 1.5rem;
}

.blog-grid.asymmetric .post-card:nth-child(5n+4) {
  grid-column: span 2;
}

.blog-grid.asymmetric .post-card:nth-child(5n+4) .post-thumbnail img {
  height: 180px;
}

/* Prevent list-view truncation leaking into grid mode */
.blog-grid.asymmetric .post-card .entry-title {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

/* --- Liste Geek horizontale — labs.scale.com style --- */
.blog-grid.list-view {
  grid-template-columns: 1fr;
  gap: 0;
}

.blog-grid.list-view .post-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  box-shadow: none;
  transition: background 0.2s ease;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.85rem;
}

.blog-grid.list-view .post-card:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: none;
  box-shadow: none;
  border-color: var(--color-border);
}

.blog-grid.list-view .post-card .post-thumbnail { display: none !important; }

.blog-grid.list-view .post-card .entry-title {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
  padding: 0;
  order: 2;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-text) !important;
}

.blog-grid.list-view .post-card .entry-title a {
  color: var(--color-text);
}

.blog-grid.list-view .post-card .entry-title a:hover {
  color: var(--color-accent);
}

.blog-grid.list-view .post-card .post-meta {
  font-family: inherit;
  font-size: 0.75rem;
  margin: 0;
  padding: 0;
  order: 1;
  width: 100px;
  flex-shrink: 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-text-secondary) !important;
}

.blog-grid.list-view .post-card .post-excerpt,
.blog-grid.list-view .post-card .custom-button { display: none !important; }

@media (max-width: 768px) {
  .blog-grid.asymmetric {
    grid-template-columns: 1fr;
  }
  .blog-grid.asymmetric .post-card:nth-child(5n+1),
  .blog-grid.asymmetric .post-card:nth-child(5n+4) {
    grid-column: span 1;
  }
  .blog-grid.asymmetric .post-card:nth-child(5n+1) .post-thumbnail img {
    height: 200px;
  }
  .blog-grid.asymmetric .post-card:nth-child(6n+1) .entry-title {
    font-size: 1.3rem;
  }

  .blog-grid.list-view .post-card {
    gap: 0.5rem;
    padding: 0.7rem 0.75rem;
  }
  .blog-grid.list-view .post-card .post-meta { width: 80px; }
}

@media (max-width: 480px) {
  .blog-view-toggle button {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
  .blog-view-toggle svg { display: none; }
}

/* ==========================================================================
    14. Encarts Affiliés — .affiliate-cta styles now in plugin (v4.0)
   ========================================================================== */

.affiliate-cta {
  margin: 1.75rem 0;
}

/* ==========================================================================
   21. PREMIUM TRANSITIONS — scale.com style (lentes, délibérées)
   ========================================================================== */

/* Désactiver la transition d'origine (all 0.3s) */
.post-card {
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.8s ease !important;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(249, 115, 22, 0.2), 0 0 0 1px rgba(249, 115, 22, 0.1);
  border-color: var(--color-accent);
}

.post-card .post-thumbnail img {
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.06);
}

.post-card .custom-button,
.custom-button {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.4s ease,
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}

.generate-pagination .page-numbers {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.4s ease,
              box-shadow 0.4s ease;
}

a {
  transition: color 0.3s ease;
}

.blog-view-toggle button {
  transition: all 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .post-card,
  .post-card .post-thumbnail img,
  .post-card .custom-button,
  .custom-button,
  .generate-pagination .page-numbers,
  .blog-view-toggle button,
  a {
    transition-duration: 0.01s !important;
  }
}

/* ==========================================================================
   20. Bridge CTA Blocks — Ponts vers les piliers sécurité
   ========================================================================== */

.ute-bridge-cta {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}

.ute-bridge-cta h3,
.ute-bridge-cta h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--color-text);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.ute-bridge-cta p {
  font-size: 0.975rem;
  color: var(--color-text-secondary);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.ute-bridge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.925rem;
  font-weight: 600;
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #F97316, #EA580C);
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.ute-bridge-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
  color: #FFFFFF !important;
}

.ute-bridge-warning {
  border-left-color: var(--color-accent);
  background: linear-gradient(to right, rgba(249, 115, 22, 0.06), var(--color-surface));
}

/* ==========================================================================
   35. Problem Cards (DGEDL-style, imported for UNTEL redesign 23/05/2026)
   ========================================================================== */

.dgedl-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.dgedl-problem-card {
  background: linear-gradient(135deg, #111827 0%, #1A2332 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: border-color var(--transition-smooth);
}

.dgedl-problem-card:hover {
  border-color: var(--color-accent);
}

.dgedl-problem-card .card-emoji {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.dgedl-problem-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.dgedl-problem-card p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   36. Testimonials Grid (DGEDL-style, imported for UNTEL redesign 23/05/2026)
   ========================================================================== */

.dgedl-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.dgedl-testimonial-card {
  background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  box-shadow: var(--shadow-card);
}

.dgedl-testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.dgedl-quote-icon {
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 3rem;
  line-height: 1;
  color: var(--color-border-strong);
  opacity: 0.4;
  font-family: Georgia, serif;
}

.dgedl-quote-text {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin: 1rem 0 1.25rem;
  position: relative;
  z-index: 1;
}

.dgedl-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

.dgedl-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.dgedl-avatar-purple  { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.dgedl-avatar-blue    { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.dgedl-avatar-green   { background: linear-gradient(135deg, #059669, #10b981); }
.dgedl-avatar-orange  { background: linear-gradient(135deg, #ea580c, #f97316); }
.dgedl-avatar-red     { background: linear-gradient(135deg, #dc2626, #ef4444); }
.dgedl-avatar-teal    { background: linear-gradient(135deg, #0d9488, #14b8a6); }

.dgedl-author-info {
  display: flex;
  flex-direction: column;
}

.dgedl-author-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}

.dgedl-author-role {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.dgedl-stars {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 2px;
}

/* ==========================================================================
   37. FAQ Section (DGEDL-style, imported for UNTEL redesign 23/05/2026)
   ========================================================================== */

.dgedl-faq-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==========================================================================
   38. Final CTA (DGEDL-style, imported for UNTEL redesign 23/05/2026)
   ========================================================================== */

.dgedl-cta-final {
  background: linear-gradient(135deg, #042F2E 0%, #EAB308 50%, var(--color-bg) 100%);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  max-width: var(--max-width);
  margin: 4rem auto 2rem;
}

.dgedl-cta-final h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: #FFFFFF !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #FFFFFF !important;
  margin-bottom: 1rem;
}

.dgedl-cta-final p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* ==========================================================================
   39. Responsive — dgedl grids (mobile fallback)
   ========================================================================== */

@media (max-width: 1023px) {
  .dgedl-testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }
  .dgedl-problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dgedl-testimonials-grid,
  .dgedl-problem-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ── CTA styling now handled by Affiliate CTA Inserter plugin v4.0 ── */


/* ══════════════════════════════════════════════════════════════════════════
 * DIVIDERS TIER 2 — mini-séparateurs CSS (S42, 2026-08-07)
 * Injectés via shortcode [divider type="xxx"]
 * Palette DARK (default) :
 *   #64748b (slate), #3b82f6 (blue accent)
 * Palette LIGHT (override — .community-block / .gap-perspective) :
 *   #B87333 (cuivre), #C66B2A (terracotta), #E8D5C0 (beige)
 * ══════════════════════════════════════════════════════════════════════════ */

/* ─── divider-terminal (séparateur majeur) ─── */
.divider-terminal {
  display: flex; align-items: center; justify-content: center;
  margin: 3rem 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  color: #64748b;
  opacity: 0.7;
}
.divider-terminal::before, .divider-terminal::after {
  content: ""; flex: 1; height: 1px;
  background: #334155; margin: 0 1rem;
  opacity: 0.4;
}

/* ─── divider-gradient (le plus discret) ─── */
.divider-gradient {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #64748b 20%, #3b82f6 80%, transparent 100%);
  margin: 2.5rem 0; border: none; opacity: 0.4;
}

/* ─── divider-pixels (rétro 5 pixels) ─── */
.divider-pixels {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; margin: 2rem 0;
}
.divider-pixels span {
  display: block; width: 8px; height: 8px;
  background-color: #64748b; opacity: 0.2;
  border-radius: 2px;
}
.divider-pixels span:nth-child(1) { opacity: 0.12; }
.divider-pixels span:nth-child(2) { opacity: 0.25; }
.divider-pixels span:nth-child(3) { opacity: 0.5; width: 12px; height: 12px; background-color: #3b82f6; }
.divider-pixels span:nth-child(4) { opacity: 0.25; }
.divider-pixels span:nth-child(5) { opacity: 0.12; }

/* ─── divider-signal (barres style WiFi) ─── */
.divider-signal {
  display: flex; justify-content: center; align-items: flex-end;
  gap: 4px; height: 24px; margin: 2rem 0;
}
.divider-signal span {
  display: block; width: 4px; background-color: #64748b; border-radius: 2px;
}
.divider-signal span:nth-child(1) { height: 8px;  opacity: 0.25; }
.divider-signal span:nth-child(2) { height: 14px; opacity: 0.4; }
.divider-signal span:nth-child(3) { height: 20px; opacity: 0.6; background-color: #3b82f6; }
.divider-signal span:nth-child(4) { height: 14px; opacity: 0.4; }
.divider-signal span:nth-child(5) { height: 8px;  opacity: 0.25; }

/* ─── divider-binary (séquence binaire) ─── */
.divider-binary {
  display: flex; justify-content: center; align-items: center;
  gap: 3px; font-family: 'Courier New', monospace;
  font-size: 0.75rem; color: #64748b; opacity: 0.5; margin: 2.5rem 0;
}
.divider-binary span { opacity: 0.3; }
.divider-binary span:nth-child(2n) { opacity: 0.6; color: #3b82f6; }

/* ══════════════════════════════════════════════════════════════════════════
 * OVERRIDE LIGHT : couleurs chaudes dans les blocs fond clair
 * .community-block (parchemin #FAF7F2) + .gap-perspective (crème #FDF8F3)
 * ══════════════════════════════════════════════════════════════════════════ */

body .entry-content .community-block .divider-terminal,
body .entry-content .gap-perspective .divider-terminal {
  color: #B87333; opacity: 0.65;
}
body .entry-content .community-block .divider-terminal::before,
body .entry-content .community-block .divider-terminal::after,
body .entry-content .gap-perspective .divider-terminal::before,
body .entry-content .gap-perspective .divider-terminal::after {
  background: #E8D5C0; opacity: 1;
}

body .entry-content .community-block .divider-gradient,
body .entry-content .gap-perspective .divider-gradient {
  background: linear-gradient(90deg, transparent 0%, #B87333 20%, #C66B2A 80%, transparent 100%);
  opacity: 0.5;
}

body .entry-content .community-block .divider-pixels span,
body .entry-content .gap-perspective .divider-pixels span {
  background-color: #B87333;
}
body .entry-content .community-block .divider-pixels span:nth-child(3),
body .entry-content .gap-perspective .divider-pixels span:nth-child(3) {
  background-color: #C66B2A; opacity: 0.6;
}

body .entry-content .community-block .divider-signal span,
body .entry-content .gap-perspective .divider-signal span {
  background-color: #B87333;
}
body .entry-content .community-block .divider-signal span:nth-child(3),
body .entry-content .gap-perspective .divider-signal span:nth-child(3) {
  background-color: #C66B2A; opacity: 0.7;
}

body .entry-content .community-block .divider-binary,
body .entry-content .gap-perspective .divider-binary {
  color: #B87333; opacity: 0.55;
}
body .entry-content .community-block .divider-binary span:nth-child(2n),
body .entry-content .gap-perspective .divider-binary span:nth-child(2n) {
  color: #C66B2A; opacity: 0.65;
}
