/* ===========================================================
   VOLTFASE.FR — Design system éditorial énergie / électricité
   Direction artistique : circuit éditorial, grille solaire,
   cadrans de mesure, lueur ambrée sur fond graphite.
   =========================================================== */

:root {
  --color-primary: #C97B0F;
  --color-primary-dark: #9C5C08;
  --color-secondary: #0F6E5C;
  --color-secondary-dark: #0B4F42;
  --color-accent: #F0A800;
  --color-dark: #1B2330;
  --color-dark-soft: #283244;
  --color-light: #FBF7EE;
  --color-muted: #6B7280;
  --color-border: #E6DECB;
  --color-card: #FFFFFF;

  --font-title: "Fraunces", Georgia, serif;
  --font-main: "Inter", "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 26px;

  --shadow-sm: 0 2px 8px rgba(27, 35, 48, 0.06);
  --shadow-md: 0 10px 28px rgba(27, 35, 48, 0.10);
  --shadow-lg: 0 24px 60px rgba(27, 35, 48, 0.16);

  --transition: 0.25s ease;
  --container-pad: 1.5rem;
}

/* ===== Reset léger ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--color-primary-dark); text-decoration: none; }
ul, ol { padding-left: 1.2rem; }

body {
  font-family: var(--font-main);
  color: var(--color-dark);
  background: var(--color-light);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-dark);
}

.site-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===== Header / Navigation ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 247, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-dark);
}

.site-logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--color-accent), var(--color-secondary), var(--color-accent));
  box-shadow: 0 0 0 3px rgba(240, 168, 0, 0.18);
}

.site-logo-dot { color: var(--color-secondary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-dark-soft);
  position: relative;
  white-space: nowrap;
  padding: 0.3rem 0;
  transition: color var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-link:hover { color: var(--color-primary-dark); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-card);
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--color-dark);
  transition: transform var(--transition), opacity var(--transition);
}

@media (max-width: 1100px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: var(--container-pad);
    right: var(--container-pad);
    z-index: 999;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.nav-open { display: flex; }

  .nav-link {
    display: block;
    width: 100%;
    white-space: normal;
    line-height: 1.4;
    padding: 0.7rem 0.4rem;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-link:last-child { border-bottom: none; }
}

@media (min-width: 1101px) {
  .nav-links { display: flex; flex-wrap: nowrap; }
  .nav-link { white-space: nowrap; }
  .nav-hamburger { display: none; }
}

/* ===== Page hero (générique, toutes pages) ===== */
.site-page-hero {
  position: relative;
  background: var(--color-dark);
  color: #fff;
  padding: 3.2rem 0;
  overflow: hidden;
}

.site-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(240,168,0,0.06) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(240,168,0,0.06) 0 1px, transparent 1px 64px);
  pointer-events: none;
}

.site-page-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.site-page-hero.is-home {
  padding: 6.5rem 0 5.5rem;
  min-height: 480px;
  display: flex;
  align-items: center;
}

.hero-bg-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-bg-slide.is-active { opacity: 0.32;z-index:9; }

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(240,168,0,0.30), transparent 55%),
    radial-gradient(circle at 85% 75%, rgba(15,110,92,0.35), transparent 55%),
    linear-gradient(160deg, rgba(27,35,48,0.96), rgba(27,35,48,0.88));
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  max-width: 820px;
}

.hero-intro {
  margin-top: 1.1rem;
  max-width: 640px;
  color: rgba(255,255,255,0.86);
  font-size: 1.08rem;
}

/* ===== Boutons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-dark);
  color: var(--color-dark);
}

.btn-outline:hover { background: var(--color-dark); color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .premium-shine { position: relative; overflow: hidden; }
  .premium-shine::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-120%);
    background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.35) 45%, transparent 70%);
    transition: transform .75s ease;
  }
  .premium-shine:hover::after { transform: translateX(120%); }
}

/* ===== Sections génériques de contenu ===== */
.section {
  padding: 4.2rem 0;
}

.section-alt { background: #F3EEDF; }

.section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}

.section-title-row h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary-dark);
  margin-bottom: 0.6rem;
}

.circuit-divider {
  position: relative;
  height: 24px;
  margin: 0.5rem 0 2rem;
  background-image: repeating-linear-gradient(90deg, var(--color-border) 0 10px, transparent 10px 22px);
  background-position: center;
  background-size: 100% 1px;
  background-repeat: no-repeat;
}

.circuit-divider::before,
.circuit-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  transform: translateY(-50%);
}

.circuit-divider::before { left: 0; }
.circuit-divider::after { right: 0; background: var(--color-secondary); }

/* ===== Cards / grilles ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.panel-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

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

.panel-card::before {
  content: "";
  position: absolute;
  top: 0; left: 1.8rem; right: 1.8rem;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
}

.panel-card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(240,168,0,0.16), rgba(15,110,92,0.14));
  margin-bottom: 1rem;
}

.panel-card h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.panel-card p { color: var(--color-muted); font-size: 0.96rem; }
.panel-card a.panel-card-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary-dark);
}

/* ===== Stat dials (cadrans) ===== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin: 2rem 0;
}

.stat-dial {
  text-align: center;
}

.stat-dial-circle {
  width: 78px; height: 78px;
  margin: 0 auto 0.7rem;
  border-radius: 50%;
  background: conic-gradient(var(--color-accent) 0deg, var(--color-secondary) 220deg, var(--color-border) 220deg);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

.stat-dial-circle::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--color-light);
}

.stat-dial-circle span {
  position: relative;
  z-index: 2;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
}

.stat-dial p {
  font-size: 0.86rem;
  color: var(--color-muted);
}

/* ===== Bloc méthode / numérotation ===== */
.method-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  list-style: none;
  padding-left: 0;
}

.method-item {
  display: flex;
  gap: 1rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.3rem;
}

.method-num {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-secondary);
  flex-shrink: 0;
}

/* ===== Layout contenu + sidebar ===== */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.6rem;
  align-items: start;
}

@media (max-width: 980px) {
  .content-layout { grid-template-columns: 1fr; }
}

.content-body { max-width: 100%; }

.content-body h2 {
  font-size: 1.5rem;
  margin-top: 2.4rem;
  margin-bottom: 0.9rem;
  scroll-margin-top: 100px;
}

.content-body h3 {
  font-size: 1.18rem;
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
  scroll-margin-top: 100px;
}

.content-body p { margin-bottom: 1rem; }
.content-body ul, .content-body ol { margin-bottom: 1.1rem; }
.content-body li { margin-bottom: 0.4rem; }

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: 0.92rem;
}

.content-body table th, .content-body table td {
  border: 1px solid var(--color-border);
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.content-body table th {
  background: #F3EEDF;
  font-family: var(--font-title);
}

.content-body a { text-decoration: underline; text-decoration-color: var(--color-border); }
.content-body a:hover { text-decoration-color: var(--color-primary-dark); }

/* ===== Sommaire ===== */
.toc-box {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.5rem;
  margin: 1.6rem 0 2rem;
}

.toc-box p.toc-title {
  font-family: var(--font-title);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.toc-box ol { padding-left: 1.1rem; margin: 0; }
.toc-box li { margin-bottom: 0.35rem; font-size: 0.94rem; }

/* ===== Sidebar widgets ===== */
.page-sidebar { display: flex; flex-direction: column; gap: 1.4rem; }

.sidebar-widget {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}

.sidebar-widget-meter {
  background: linear-gradient(160deg, var(--color-dark), var(--color-dark-soft));
  color: #fff;
  border: none;
}

.sidebar-widget-meter .sidebar-widget-title { color: #fff; }
.sidebar-widget-meter a { color: #fff; }
.sidebar-widget-meter .art-date { color: rgba(255,255,255,0.6); }

.sidebar-widget-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--color-accent);
}

.sidebar-articles, .sidebar-links { list-style: none; padding-left: 0; }
.sidebar-articles li { margin-bottom: 0.9rem; }
.sidebar-articles a, .sidebar-links a { font-weight: 500; font-size: 0.93rem; display: block; }
.sidebar-links li { margin-bottom: 0.6rem; }
.art-date { display: block; font-size: 0.78rem; color: var(--color-muted); margin-top: 0.15rem; }
.sidebar-note { font-size: 0.88rem; color: var(--color-muted); }

/* ===== Homepage spécifique ===== */
.home-intro p { font-size: 1.08rem; max-width: 760px; }

.home-rubriques .card-grid { grid-template-columns: repeat(3, 1fr); }

.rubrique-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.home-latest .card-grid { grid-template-columns: repeat(3, 1fr); }

.latest-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 0.9rem;
}

.latest-card .art-date { margin-bottom: 0.4rem; }

@media (max-width: 980px) {
  .card-grid, .home-rubriques .card-grid, .home-latest .card-grid, .method-list, .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .card-grid, .home-rubriques .card-grid, .home-latest .card-grid, .method-list, .stat-row {
    grid-template-columns: 1fr;
  }
}

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 0.8rem; }

.faq-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.3rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-title);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--color-accent);
  transition: transform var(--transition);
}

.faq-item[open] summary::after { content: "–"; }

.faq-item p { margin-top: 0.7rem; color: var(--color-muted); }

/* ===== Blog ===== */
.blog-list { display: flex; flex-direction: column; gap: 1.4rem; }

.blog-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.4rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.blog-card:hover { box-shadow: var(--shadow-md); }

.blog-card img { width: 100%; height: 100%; object-fit: cover; min-height: 150px; }
.blog-card-body { padding: 1.3rem 1.4rem 1.3rem 0; display: flex; flex-direction: column; }
.blog-card h2 { font-size: 1.22rem; margin-bottom: 0.4rem; }
.blog-card p { color: var(--color-muted); font-size: 0.95rem; }
.blog-card .art-date { margin-bottom: 0.3rem; }
.blog-card-link { margin-top: auto; font-weight: 600; font-size: 0.9rem; align-self: flex-start; }

@media (max-width: 640px) {
  .blog-card { grid-template-columns: 1fr; }
  .blog-card-body { padding: 1.2rem; }
  .blog-card img { height: 180px; }
}

/* ===== Pagination ===== */
.pagination-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--color-card);
}

.pagination-link.is-current {
  background: var(--color-dark);
  color: #fff;
  border-color: var(--color-dark);
}

/* ===== Article ===== */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1.4rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--color-muted); text-decoration: underline; }

.article-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--color-muted);
  margin-bottom: 1.6rem;
}

.article-hero-image {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 1.6rem;
}

/* ===== Author block ===== */
.author-block {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2.6rem 0;
}

.author-avatar-img { border-radius: 50%; object-fit: cover; }

.author-avatar-fallback {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
}

.author-block-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-muted); }
.author-block-name { font-family: var(--font-title); font-weight: 700; font-size: 1.05rem; }
.author-block-role { color: var(--color-secondary-dark); font-size: 0.9rem; margin-bottom: 0.5rem; }
.author-block-bio { font-size: 0.92rem; color: var(--color-muted); margin-bottom: 0.5rem; }
.author-block-link { font-weight: 600; font-size: 0.88rem; }

/* ===== Page auteur ===== */
.author-page-hero { display: flex; gap: 1.8rem; align-items: center; flex-wrap: wrap; margin-bottom: 2rem; }
.author-page-avatar { border-radius: 50%; object-fit: cover; }
.author-page-meta h2 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.author-page-meta p { color: var(--color-secondary-dark); }

/* ===== Contact ===== */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2.4rem;
}

@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-form {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-row { margin-bottom: 1.2rem; }
.form-row label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; }

.form-row input, .form-row textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.96rem;
  background: var(--color-light);
}

.form-row textarea { min-height: 150px; resize: vertical; }
.form-honeypot { position: absolute; left: -9999px; top: -9999px; opacity: 0; }

.form-alert {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.4rem;
  font-size: 0.92rem;
}

.form-alert-success { background: rgba(15,110,92,0.12); color: var(--color-secondary-dark); border: 1px solid rgba(15,110,92,0.3); }
.form-alert-error { background: rgba(197,48,48,0.1); color: #9B2C2C; border: 1px solid rgba(197,48,48,0.3); }

.contact-side {
  background: var(--color-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-side h2 { color: #fff; font-size: 1.2rem; margin-bottom: 0.8rem; }
.contact-side p { color: rgba(255,255,255,0.8); font-size: 0.92rem; }

/* ===== Erreur ===== */
.error-page { text-align: center; padding: 2rem 0 4rem; }

.error-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.6rem 2rem;
  box-shadow: var(--shadow-sm);
}

.error-code {
  font-family: var(--font-title);
  font-size: 3.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-actions { display: flex; gap: 0.8rem; justify-content: center; margin-top: 1.6rem; flex-wrap: wrap; }

/* ===== Pages légales ===== */
.legal-page .content-body, .privacy-page .content-body { max-width: 760px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.78);
  padding: 3.4rem 0 1.6rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand .site-logo-text { color: #fff; font-size: 1.25rem; }
.footer-tagline { margin-top: 0.8rem; font-size: 0.92rem; max-width: 420px; color: rgba(255,255,255,0.65); }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  justify-content: center;
}

.footer-links a { color: rgba(255,255,255,0.85); font-size: 0.92rem; }
.footer-links a:hover { color: var(--color-accent); }

.footer-bottom { padding-top: 1.4rem; font-size: 0.82rem; color: rgba(255,255,255,0.55); }

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Responsive global ===== */
@media (max-width: 900px) {
  .home-rubriques .card-grid, .home-latest .card-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-page-hero.is-home { padding: 4.5rem 0 3.5rem; }
  .home-rubriques .card-grid, .home-latest .card-grid { grid-template-columns: 1fr; }
  .section { padding: 2.8rem 0; }
}



/* ===========================================================
   VOLTFASE.FR — Premium reference layer V2
   Objectif : renforcer l'effet "site de référence" sans modifier
   la structure HTML ni les templates PHP.
   =========================================================== */

/* ===== Tokens premium étendus ===== */
:root {
  --vf-ink: #101722;
  --vf-ink-2: #172033;
  --vf-ink-3: #25314a;
  --vf-night: #0b1020;
  --vf-night-2: #11192c;
  --vf-copper: #c87812;
  --vf-copper-2: #e89a24;
  --vf-solar: #ffbd32;
  --vf-solar-soft: #fff0c2;
  --vf-emerald: #0c7a62;
  --vf-emerald-2: #12a17f;
  --vf-aqua: #6ddfc7;
  --vf-cream: #fffaf0;
  --vf-paper: #fbf4e5;
  --vf-paper-2: #f4ead4;
  --vf-line: rgba(27,35,48,.12);
  --vf-line-strong: rgba(27,35,48,.22);
  --vf-white-glass: rgba(255,255,255,.78);
  --vf-dark-glass: rgba(11,16,32,.72);
  --vf-glow-solar: 0 0 34px rgba(255,189,50,.32);
  --vf-glow-green: 0 0 34px rgba(18,161,127,.28);
  --vf-shadow-deep: 0 32px 90px rgba(13, 18, 31, .22);
  --vf-shadow-float: 0 18px 50px rgba(13, 18, 31, .16);
  --vf-shadow-card: 0 12px 28px rgba(13, 18, 31, .10), 0 2px 7px rgba(13, 18, 31, .05);
  --vf-radius-xl: 34px;
  --vf-radius-xxl: 46px;
  --vf-ease-elastic: cubic-bezier(.18,.89,.32,1.28);
  --vf-ease-smooth: cubic-bezier(.19,1,.22,1);
  --vf-section-gap: clamp(3.4rem, 7vw, 7rem);
  --vf-container-wide: 1240px;
}

/* ===== Fond global premium : grille énergétique + halos ===== */
html {
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 189, 50, .18), transparent 34rem),
    radial-gradient(circle at 88% 18%, rgba(18, 161, 127, .14), transparent 32rem),
    radial-gradient(circle at 44% 100%, rgba(201, 123, 15, .12), transparent 32rem),
    linear-gradient(180deg, #fff9eb 0%, #fbf4e5 46%, #f2ead8 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(rgba(27,35,48,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,35,48,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 18%, rgba(0,0,0,.8), transparent 70%);
}

body::after {
  content: "";
  position: fixed;
  inset: -40vh -20vw auto -20vw;
  height: 70vh;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,189,50,.20), transparent 32%),
    radial-gradient(circle at 76% 42%, rgba(18,161,127,.16), transparent 34%);
  filter: blur(28px);
  opacity: .9;
}

.site-main {
  position: relative;
  z-index: 1;
}

.site-container {
  max-width: var(--vf-container-wide);
}

/* ===== Sélection / typographie raffinée ===== */
::selection {
  color: #111827;
  background: rgba(255, 189, 50, .46);
}

h1, h2, h3, h4 {
  letter-spacing: -.025em;
}

p {
  text-wrap: pretty;
}

.content-body p,
.home-intro p,
.section .site-container > p {
  max-width: 78ch;
}

.content-body strong,
.section strong {
  color: var(--vf-ink);
  background: linear-gradient(180deg, transparent 58%, rgba(255,189,50,.24) 58%);
  padding: 0 .05em;
}

/* ===== Header : glass premium + énergie subtile ===== */
.site-header {
  background:
    linear-gradient(90deg, rgba(255,250,240,.86), rgba(255,250,240,.74)),
    radial-gradient(circle at 8% 0%, rgba(255,189,50,.22), transparent 26rem);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.62);
  box-shadow: 0 12px 44px rgba(20, 28, 44, .06);
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,189,50,.8), rgba(18,161,127,.55), transparent);
}

.site-nav {
  height: 82px;
  position: relative;
}

.site-logo {
  position: relative;
  isolation: isolate;
  gap: .78rem;
  letter-spacing: -.02em;
}

.site-logo::before {
  content: "";
  position: absolute;
  inset: -10px -16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,189,50,.16), rgba(18,161,127,.10));
  opacity: 0;
  transform: scale(.92);
  transition: opacity .35s var(--vf-ease-smooth), transform .35s var(--vf-ease-smooth);
  z-index: -1;
}

.site-logo:hover::before {
  opacity: 1;
  transform: scale(1);
}

.site-logo-mark {
  position: relative;
  width: 38px;
  height: 38px;
  background:
    radial-gradient(circle at 50% 50%, #fff8da 0 18%, transparent 19%),
    conic-gradient(from 210deg, var(--vf-solar), var(--vf-emerald-2), var(--vf-copper-2), var(--vf-solar));
  box-shadow:
    0 0 0 1px rgba(255,255,255,.75) inset,
    0 0 0 6px rgba(255,189,50,.14),
    0 10px 28px rgba(201,123,15,.22),
    var(--vf-glow-solar);
  animation: vfLogoPulse 5.5s ease-in-out infinite;
}

.site-logo-mark::before,
.site-logo-mark::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px solid rgba(255,189,50,.34);
  opacity: .7;
}

.site-logo-mark::after {
  inset: 8px;
  border-color: rgba(15,110,92,.45);
  animation: vfSpin 12s linear infinite;
}

.site-logo-text {
  text-shadow: 0 1px 0 rgba(255,255,255,.65);
}

.nav-links {
  gap: clamp(.65rem, 1.5vw, 1.65rem);
}

.nav-link {
  padding: .58rem .72rem;
  border-radius: 999px;
  transition:
    color .25s ease,
    background .25s ease,
    transform .25s var(--vf-ease-smooth),
    box-shadow .25s ease;
}

.nav-link::after {
  display: none;
}

.nav-link:hover {
  background: rgba(255,255,255,.72);
  color: var(--vf-copper);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(13,18,31,.08);
}

.nav-link:active {
  transform: translateY(0);
}

.nav-hamburger {
  background: rgba(255,255,255,.78);
  border-color: rgba(27,35,48,.12);
  box-shadow: 0 12px 30px rgba(13,18,31,.08);
  transition: transform .28s var(--vf-ease-elastic), box-shadow .28s ease, background .28s ease;
}

.nav-hamburger:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(13,18,31,.14);
  background: #fff;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero premium : centrale solaire éditoriale ===== */
.site-page-hero {
  min-height: 320px;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3.5rem, 7vw, 6.4rem);
  background:
    radial-gradient(circle at 20% 22%, rgba(255,189,50,.28), transparent 32rem),
    radial-gradient(circle at 82% 72%, rgba(18,161,127,.28), transparent 34rem),
    linear-gradient(142deg, var(--vf-night), #182236 54%, #0e372f 120%);
  isolation: isolate;
}

.site-page-hero::before {
  opacity: .8;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px),
    radial-gradient(circle at 20% 20%, rgba(255,189,50,.18), transparent 34rem);
  background-size: 52px 52px, 52px 52px, auto;
  animation: vfGridMove 18s linear infinite;
}

.site-page-hero::after {
  content: "";
  position: absolute;
  right: clamp(1rem, 8vw, 8rem);
  top: 50%;
  width: clamp(210px, 28vw, 420px);
  height: clamp(210px, 28vw, 420px);
  transform: translateY(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 42%, rgba(255,255,255,.08) 42.4% 43.3%, transparent 43.7% 56%, rgba(255,189,50,.18) 56.4% 57.3%, transparent 57.7%),
    conic-gradient(from 90deg, rgba(255,189,50,.0), rgba(255,189,50,.24), rgba(18,161,127,.18), rgba(255,189,50,.0));
  opacity: .78;
  filter: drop-shadow(0 0 42px rgba(255,189,50,.14));
  animation: vfSlowRotate 28s linear infinite;
  z-index: 1;
  pointer-events: none;
}

.site-page-hero.is-home {
  min-height: clamp(520px, 72vh, 760px);
  padding: clamp(6rem, 12vw, 10rem) 0 clamp(5.5rem, 10vw, 8rem);
}

.hero-bg-slide {
  transform: scale(1.06);
  filter: saturate(1.06) contrast(1.03);
}

.hero-bg-slide.is-active {
  opacity: .34;
  animation: vfHeroZoom 8.5s ease-in-out forwards;
}

.hero-bg-overlay {
  background:
    linear-gradient(90deg, rgba(11,16,32,.97) 0%, rgba(11,16,32,.88) 42%, rgba(11,16,32,.62) 100%),
    radial-gradient(circle at 16% 22%, rgba(255,189,50,.42), transparent 35rem),
    radial-gradient(circle at 75% 75%, rgba(18,161,127,.34), transparent 38rem),
    linear-gradient(160deg, rgba(11,16,32,.96), rgba(17,25,44,.80));
}

.hero-content {
  max-width: 980px;
}

.hero-content::before {
  content: "⚡ réseau · solaire · kWh";
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-bottom: 1.1rem;
  padding: .48rem .82rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.82);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}

.hero-content h1 {
  max-width: 900px;
  font-size: clamp(2.55rem, 6vw, 5.9rem);
  line-height: .96;
  letter-spacing: -.065em;
  text-shadow: 0 18px 58px rgba(0,0,0,.32);
  animation: vfHeroTextIn .95s var(--vf-ease-smooth) both;
}

.hero-content h1::after {
  content: "";
  display: block;
  width: clamp(86px, 12vw, 160px);
  height: 5px;
  margin-top: clamp(1rem, 2vw, 1.55rem);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--vf-solar), var(--vf-emerald-2), transparent);
  box-shadow: var(--vf-glow-solar);
  animation: vfLineGrow 1.2s .15s var(--vf-ease-smooth) both;
}

.hero-intro {
  max-width: 790px;
  margin-top: 1.35rem;
  color: rgba(255,255,255,.88);
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  line-height: 1.72;
  text-shadow: 0 8px 28px rgba(0,0,0,.18);
  animation: vfFadeUp .9s .16s var(--vf-ease-smooth) both;
}

/* ===== Sections : rythme éditorial plus haut de gamme ===== */
.section {
  position: relative;
  padding: var(--vf-section-gap) 0;
}

.section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1140px, calc(100% - 2rem));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(201,123,15,.18), rgba(18,161,127,.18), transparent);
  pointer-events: none;
}

.section:first-of-type::before {
  display: none;
}

.section-alt {
  background:
    radial-gradient(circle at 12% 0%, rgba(255,189,50,.16), transparent 28rem),
    radial-gradient(circle at 90% 100%, rgba(18,161,127,.12), transparent 30rem),
    linear-gradient(180deg, rgba(255,255,255,.38), rgba(244,234,212,.72));
  position: relative;
}

.section-alt::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(27,35,48,.035) 1px, transparent 1px),
    linear-gradient(30deg, rgba(27,35,48,.025) 1px, transparent 1px);
  background-size: 84px 84px, 120px 120px;
  mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
  pointer-events: none;
}

.section > .site-container {
  position: relative;
  z-index: 1;
}

.section-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .72rem;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(27,35,48,.08);
  color: var(--vf-emerald);
  box-shadow: 0 10px 30px rgba(13,18,31,.05);
}

.section-kicker::before {
  content: "";
  width: .48rem;
  height: .48rem;
  border-radius: 50%;
  background: var(--vf-solar);
  box-shadow: 0 0 0 5px rgba(255,189,50,.16), 0 0 18px rgba(255,189,50,.5);
}

.section h2 {
  max-width: 860px;
  margin-bottom: 1rem;
  font-size: clamp(1.85rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -.055em;
  color: var(--vf-ink);
}

.section .site-container > p {
  color: rgba(27,35,48,.82);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
}

.section p + p {
  margin-top: .9rem;
}

.home-intro .site-container {
  position: relative;
}

.home-intro .site-container::after {
  content: "";
  position: absolute;
  right: var(--container-pad);
  top: 0;
  width: clamp(170px, 22vw, 310px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,.65) 0 28%, transparent 28.5%),
    conic-gradient(from 180deg, rgba(255,189,50,.18), rgba(18,161,127,.18), rgba(255,189,50,.18));
  opacity: .44;
  filter: blur(.2px);
  z-index: -1;
  animation: vfSlowRotate 34s linear infinite;
}

/* ===== Dividers : circuit animé ===== */
.circuit-divider {
  height: 48px;
  margin: 1.4rem 0 1rem;
  opacity: .95;
  background-image:
    linear-gradient(90deg, transparent 0, rgba(201,123,15,.28) 16%, rgba(18,161,127,.28) 50%, rgba(201,123,15,.28) 84%, transparent 100%),
    repeating-linear-gradient(90deg, rgba(27,35,48,.16) 0 12px, transparent 12px 25px);
  background-size: 100% 2px, 220px 1px;
  background-position: center, center;
}

.circuit-divider::before,
.circuit-divider::after {
  width: 13px;
  height: 13px;
  box-shadow:
    0 0 0 7px rgba(255,189,50,.13),
    0 0 30px rgba(255,189,50,.45);
  animation: vfNodePulse 2.8s ease-in-out infinite;
}

.circuit-divider::after {
  box-shadow:
    0 0 0 7px rgba(18,161,127,.12),
    0 0 30px rgba(18,161,127,.35);
  animation-delay: .9s;
}

/* ===== Cards : plus éditoriales, plus profondes ===== */
.card-grid {
  gap: clamp(1.05rem, 2vw, 2rem);
}

.panel-card {
  isolation: isolate;
  overflow: hidden;
  min-height: 100%;
  padding: clamp(1.45rem, 2.4vw, 2.2rem);
  border: 1px solid rgba(255,255,255,.72);
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.74)),
    radial-gradient(circle at 16% 0%, rgba(255,189,50,.20), transparent 18rem),
    radial-gradient(circle at 92% 100%, rgba(18,161,127,.16), transparent 18rem);
  box-shadow: var(--vf-shadow-card);
  transform: translateZ(0);
  transition:
    transform .42s var(--vf-ease-smooth),
    box-shadow .42s ease,
    border-color .42s ease,
    background .42s ease;
}

.panel-card::before {
  left: 1.4rem;
  right: auto;
  width: 52%;
  height: 4px;
  background: linear-gradient(90deg, var(--vf-solar), var(--vf-emerald-2), transparent);
  box-shadow: 0 0 18px rgba(255,189,50,.38);
}

.panel-card::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -52px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255,189,50,.20), transparent 62%),
    conic-gradient(from 180deg, rgba(255,189,50,.0), rgba(18,161,127,.12), rgba(255,189,50,.0));
  opacity: .74;
  z-index: -1;
  transition: transform .55s var(--vf-ease-smooth), opacity .45s ease;
}

.panel-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: var(--vf-shadow-deep);
  border-color: rgba(255,189,50,.42);
}

.panel-card:hover::after {
  transform: scale(1.25) rotate(28deg);
  opacity: 1;
}

.panel-card h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.42rem);
  letter-spacing: -.035em;
}

.panel-card p {
  color: rgba(27,35,48,.72);
}

.panel-card-link,
a.panel-card-link,
.blog-card-link,
.author-block-link {
  position: relative;
  width: max-content;
  max-width: 100%;
}

.panel-card-link::after,
.blog-card-link::after,
.author-block-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.18rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--vf-copper), var(--vf-emerald-2));
  transform: scaleX(.25);
  transform-origin: left;
  transition: transform .35s var(--vf-ease-smooth);
}

.panel-card:hover .panel-card-link::after,
.blog-card-link:hover::after,
.author-block-link:hover::after {
  transform: scaleX(1);
}

.rubrique-card img,
.latest-card img,
.blog-card img,
.article-hero-image {
  filter: saturate(1.06) contrast(1.02);
}

.rubrique-card img,
.latest-card img {
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 16px 36px rgba(13,18,31,.10);
  transition: transform .55s var(--vf-ease-smooth), filter .55s ease;
}

.rubrique-card:hover img,
.latest-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.18) contrast(1.05);
}

/* ===== Effet shiny plus premium ===== */
.premium-shine {
  overflow: hidden;
}

.premium-shine::after {
  background:
    linear-gradient(112deg,
      transparent 0%,
      rgba(255,255,255,0) 28%,
      rgba(255,255,255,.48) 45%,
      rgba(255,255,255,.18) 52%,
      transparent 72%);
  transition: transform .95s var(--vf-ease-smooth);
}

.btn::after,
.blog-card::after,
.sidebar-widget::after,
.author-block::after,
.contact-form::after,
.contact-side::after,
.toc-box::after,
.faq-item::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-130%);
  background: linear-gradient(112deg, transparent 0%, rgba(255,255,255,.20) 46%, transparent 70%);
  transition: transform .9s var(--vf-ease-smooth);
  pointer-events: none;
}

.btn:hover::after,
.blog-card:hover::after,
.sidebar-widget:hover::after,
.author-block:hover::after,
.contact-form:hover::after,
.contact-side:hover::after,
.toc-box:hover::after,
.faq-item:hover::after {
  transform: translateX(130%);
}

/* ===== Méthode : timeline énergétique ===== */
.method-list {
  position: relative;
  gap: clamp(1rem, 2vw, 1.75rem);
  counter-reset: method;
}

.method-list::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 1.4rem;
  bottom: 1.4rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(201,123,15,.30), rgba(18,161,127,.30), transparent);
  opacity: .75;
}

.method-item {
  position: relative;
  isolation: isolate;
  align-items: flex-start;
  border: 1px solid rgba(255,255,255,.72);
  background:
    linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,255,255,.62)),
    radial-gradient(circle at 0 0, rgba(255,189,50,.16), transparent 18rem);
  box-shadow: var(--vf-shadow-card);
  transition:
    transform .36s var(--vf-ease-smooth),
    box-shadow .36s ease,
    border-color .36s ease;
  overflow: hidden;
}

.method-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--vf-solar), var(--vf-emerald-2));
  opacity: .8;
}

.method-item::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,189,50,.22), transparent 70%);
  z-index: -1;
}

.method-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--vf-shadow-float);
  border-color: rgba(255,189,50,.36);
}

.method-num {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--vf-night);
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.75), transparent 45%),
    linear-gradient(135deg, var(--vf-solar), var(--vf-copper-2));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.58),
    0 14px 30px rgba(201,123,15,.20);
  letter-spacing: -.04em;
}

.method-item h3 {
  margin-top: .05rem;
  margin-bottom: .35rem;
}

.method-item p {
  color: rgba(27,35,48,.70);
  margin-bottom: 0;
}

/* ===== Stat dials : cadrans instrumentés ===== */
.stat-row {
  margin: clamp(2rem, 4vw, 3rem) 0 .5rem;
  gap: clamp(1rem, 2vw, 1.8rem);
}

.stat-dial {
  position: relative;
  padding: 1.45rem 1.05rem;
  border-radius: var(--vf-radius-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.44)),
    radial-gradient(circle at 50% 0%, rgba(255,189,50,.15), transparent 12rem);
  border: 1px solid rgba(255,255,255,.64);
  box-shadow: 0 14px 38px rgba(13,18,31,.08);
  transition: transform .35s var(--vf-ease-smooth), box-shadow .35s ease;
}

.stat-dial:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 60px rgba(13,18,31,.14);
}

.stat-dial-circle {
  width: 96px;
  height: 96px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.65) inset,
    0 16px 40px rgba(13,18,31,.12),
    0 0 34px rgba(255,189,50,.16);
  animation: vfDialBreathe 4.8s ease-in-out infinite;
}

.stat-dial:nth-child(2) .stat-dial-circle { animation-delay: .25s; }
.stat-dial:nth-child(3) .stat-dial-circle { animation-delay: .5s; }
.stat-dial:nth-child(4) .stat-dial-circle { animation-delay: .75s; }

.stat-dial-circle::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(255,189,50,.28), transparent, rgba(18,161,127,.22), transparent);
  z-index: -1;
  animation: vfSlowRotate 10s linear infinite;
}

.stat-dial-circle::after {
  background: radial-gradient(circle at 35% 25%, #fffdf5, var(--vf-paper));
  box-shadow: inset 0 0 22px rgba(27,35,48,.06);
}

.stat-dial-circle span {
  font-size: 1.08rem;
  color: var(--vf-ink);
}

.stat-dial p {
  margin: .8rem auto 0;
  max-width: 18ch;
  color: rgba(27,35,48,.66);
  font-weight: 600;
}

/* ===== Article / Pilier : lecture longue plus premium ===== */
.content-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(2rem, 4vw, 3.4rem);
}

.content-body {
  position: relative;
  min-width: 0;
}

.page-article .content-body,
.page-pilier .content-body,
.page-author .content-body,
.legal-page .content-body,
.privacy-page .content-body {
  background:
    linear-gradient(180deg, rgba(255,255,255,.74), rgba(255,255,255,.48)),
    radial-gradient(circle at 0 0, rgba(255,189,50,.11), transparent 18rem);
  border: 1px solid rgba(255,255,255,.66);
  border-radius: var(--vf-radius-xxl);
  box-shadow: var(--vf-shadow-card);
  padding: clamp(1.35rem, 3vw, 3.2rem);
}

.page-author .content-body {
  max-width: 920px;
}

.content-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(1.35rem, 3vw, 3.2rem);
  width: clamp(110px, 17vw, 220px);
  height: 5px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--vf-solar), var(--vf-emerald-2), transparent);
  box-shadow: 0 0 24px rgba(255,189,50,.30);
}

.content-body h2 {
  position: relative;
  margin-top: clamp(2.2rem, 5vw, 3.6rem);
  padding-top: .35rem;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  letter-spacing: -.045em;
}

.content-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: -.2rem;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--vf-copper), var(--vf-solar));
}

.content-body h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.52rem);
  color: var(--vf-ink-2);
}

.content-body p,
.content-body li {
  color: rgba(27,35,48,.82);
}

.content-body ul,
.content-body ol {
  padding-left: 0;
  list-style: none;
}

.content-body ul li,
.content-body ol li {
  position: relative;
  padding-left: 1.75rem;
}

.content-body ul li::before {
  content: "";
  position: absolute;
  left: .1rem;
  top: .72em;
  width: .54rem;
  height: .54rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--vf-solar), var(--vf-copper));
  box-shadow: 0 0 0 5px rgba(255,189,50,.12);
}

.content-body ol {
  counter-reset: article-steps;
}

.content-body ol li {
  counter-increment: article-steps;
}

.content-body ol li::before {
  content: counter(article-steps);
  position: absolute;
  left: 0;
  top: .25em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: .45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--vf-copper), var(--vf-emerald));
}

.content-body blockquote {
  position: relative;
  margin: 2rem 0;
  padding: 1.35rem 1.55rem 1.35rem 1.75rem;
  border-left: 0;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(17,25,44,.96), rgba(15,66,57,.92)),
    radial-gradient(circle at 100% 0, rgba(255,189,50,.18), transparent 18rem);
  color: rgba(255,255,255,.90);
  box-shadow: var(--vf-shadow-float);
}

.content-body blockquote::before {
  content: "“";
  position: absolute;
  left: .8rem;
  top: -.9rem;
  font-family: var(--font-title);
  font-size: 4.5rem;
  line-height: 1;
  color: rgba(255,189,50,.42);
}

.content-body blockquote p,
.content-body blockquote li {
  color: rgba(255,255,255,.88);
}

.content-body table {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 34px rgba(13,18,31,.07);
}

.content-body table th {
  background: linear-gradient(135deg, rgba(255,189,50,.18), rgba(18,161,127,.12));
  color: var(--vf-ink);
}

.content-body table tr:nth-child(even) td {
  background: rgba(255,255,255,.42);
}

.content-body table tr:hover td {
  background: rgba(255,189,50,.10);
}

.article-meta,
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
}

.breadcrumb {
  margin-bottom: 1.1rem;
  font-size: .86rem;
  color: rgba(27,35,48,.58);
}

.breadcrumb a {
  text-decoration: none;
  color: var(--vf-emerald);
  font-weight: 700;
}

.breadcrumb span[aria-hidden="true"] {
  color: rgba(27,35,48,.32);
}

.article-meta {
  margin: 1rem 0 1.25rem;
}

.article-meta span,
.art-date {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  width: fit-content;
  padding: .32rem .62rem;
  border-radius: 999px;
  background: rgba(255,255,255,.64);
  border: 1px solid rgba(27,35,48,.08);
  font-weight: 700;
  color: rgba(27,35,48,.58);
}

.article-meta span::before,
.art-date::before {
  content: "";
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--vf-emerald-2);
  box-shadow: 0 0 0 4px rgba(18,161,127,.12);
}

.article-hero-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--vf-radius-xl);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: var(--vf-shadow-float);
  margin: 1.35rem 0 2.1rem;
}

/* ===== Sommaire premium ===== */
.toc-box {
  position: relative;
  overflow: hidden;
  border-left: 0;
  border: 1px solid rgba(255,255,255,.72);
  background:
    linear-gradient(135deg, rgba(255,255,255,.90), rgba(255,255,255,.64)),
    radial-gradient(circle at 0 0, rgba(255,189,50,.20), transparent 18rem);
  box-shadow: var(--vf-shadow-card);
}

.toc-box::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--vf-solar), var(--vf-emerald-2));
}

.toc-box .toc-title,
.toc-box p.toc-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--vf-ink);
  font-size: 1.08rem;
}

.toc-box .toc-title::before,
.toc-box p.toc-title::before {
  content: "↯";
  width: 30px;
  height: 30px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--vf-night);
  background: linear-gradient(135deg, var(--vf-solar), var(--vf-copper-2));
  box-shadow: 0 10px 22px rgba(201,123,15,.16);
}

.toc-box li {
  padding-left: 0;
}

.toc-box li::before {
  display: none;
}

.toc-box a {
  display: inline-flex;
  padding: .16rem 0;
  text-decoration: none;
  font-weight: 600;
  color: rgba(27,35,48,.78);
  transition: color .25s ease, transform .25s var(--vf-ease-smooth);
}

.toc-box a:hover {
  color: var(--vf-copper);
  transform: translateX(4px);
}

/* ===== Sidebar : module instrumenté sticky ===== */
.page-sidebar {
  position: sticky;
  top: 104px;
  align-self: start;
}

.sidebar-widget {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.70);
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.62)),
    radial-gradient(circle at 100% 0%, rgba(255,189,50,.16), transparent 16rem);
  box-shadow: 0 14px 40px rgba(13,18,31,.08);
  transition: transform .34s var(--vf-ease-smooth), box-shadow .34s ease, border-color .34s ease;
}

.sidebar-widget:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(13,18,31,.14);
  border-color: rgba(255,189,50,.32);
}

.sidebar-widget-meter {
  background:
    radial-gradient(circle at 22% 12%, rgba(255,189,50,.25), transparent 18rem),
    radial-gradient(circle at 88% 100%, rgba(18,161,127,.22), transparent 18rem),
    linear-gradient(155deg, var(--vf-night), var(--vf-ink-2));
}

.sidebar-widget-meter::before {
  content: "";
  position: absolute;
  right: -44px;
  top: -44px;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 42%, rgba(255,255,255,.12) 42.5% 43.3%, transparent 44%),
    conic-gradient(from 120deg, rgba(255,189,50,.0), rgba(255,189,50,.28), rgba(18,161,127,.16), rgba(255,189,50,.0));
  animation: vfSlowRotate 18s linear infinite;
}

.sidebar-widget-title {
  position: relative;
  border-bottom: 0;
  padding-bottom: .7rem;
  letter-spacing: -.02em;
}

.sidebar-widget-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 68px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--vf-solar), var(--vf-emerald-2));
}

.sidebar-articles li,
.sidebar-links li {
  position: relative;
  padding-left: 0;
  margin-bottom: .85rem;
}

.sidebar-articles li::before,
.sidebar-links li::before {
  display: none;
}

.sidebar-articles a,
.sidebar-links a {
  position: relative;
  padding: .55rem .65rem;
  margin-left: -.65rem;
  margin-right: -.65rem;
  border-radius: 14px;
  text-decoration: none;
  transition: background .25s ease, transform .25s var(--vf-ease-smooth), color .25s ease;
}

.sidebar-articles a:hover,
.sidebar-links a:hover {
  background: rgba(255,189,50,.12);
  transform: translateX(4px);
  color: var(--vf-copper);
}

.sidebar-widget-meter .sidebar-articles a:hover {
  background: rgba(255,255,255,.10);
  color: #fff;
}

.sidebar-widget-note {
  background:
    linear-gradient(140deg, rgba(255,250,240,.94), rgba(255,250,240,.70)),
    radial-gradient(circle at 0% 0%, rgba(18,161,127,.14), transparent 16rem);
}

.sidebar-note a {
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255,189,50,.45);
  text-decoration-thickness: 2px;
}

/* ===== Blog list : cards magazine ===== */
.blog-list {
  gap: clamp(1.1rem, 2vw, 2rem);
}

.blog-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-template-columns: minmax(220px, 32%) minmax(0, 1fr);
  border: 1px solid rgba(255,255,255,.72);
  background:
    linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.62)),
    radial-gradient(circle at 0 0, rgba(255,189,50,.14), transparent 22rem);
  box-shadow: var(--vf-shadow-card);
  transition: transform .38s var(--vf-ease-smooth), box-shadow .38s ease, border-color .38s ease;
}

.blog-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--vf-solar), var(--vf-emerald-2));
  z-index: 2;
}

.blog-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255,189,50,.34);
  box-shadow: var(--vf-shadow-deep);
}

.blog-card img {
  min-height: 190px;
  transition: transform .55s var(--vf-ease-smooth), filter .55s ease;
}

.blog-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.16) contrast(1.05);
}

.blog-card-body {
  padding: clamp(1.25rem, 2vw, 1.8rem);
}

.blog-card h2 {
  margin-top: .35rem;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.1;
}

.blog-card h2 a {
  color: var(--vf-ink);
  text-decoration: none;
  background:
    linear-gradient(90deg, rgba(255,189,50,.35), rgba(18,161,127,.18)) 0 100% / 0% 32% no-repeat;
  transition: background-size .35s var(--vf-ease-smooth), color .25s ease;
}

.blog-card h2 a:hover {
  color: var(--vf-copper);
  background-size: 100% 32%;
}

.blog-card p {
  color: rgba(27,35,48,.72);
}

/* ===== Pagination premium ===== */
.pagination-list {
  justify-content: center;
  padding: 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.50);
  border: 1px solid rgba(255,255,255,.72);
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  box-shadow: 0 14px 36px rgba(13,18,31,.07);
}

.pagination-link {
  border: 0;
  background: rgba(255,255,255,.70);
  color: var(--vf-ink);
  box-shadow: inset 0 0 0 1px rgba(27,35,48,.08);
  transition: transform .25s var(--vf-ease-smooth), background .25s ease, color .25s ease, box-shadow .25s ease;
}

.pagination-link:hover {
  transform: translateY(-2px);
  background: #fff;
  color: var(--vf-copper);
  box-shadow: 0 10px 24px rgba(13,18,31,.10);
}

.pagination-link.is-current {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.36), transparent 45%),
    linear-gradient(135deg, var(--vf-copper), var(--vf-emerald));
  color: #fff;
  box-shadow: 0 12px 24px rgba(201,123,15,.22);
}

/* ===== FAQ accordéon premium ===== */
.faq-list {
  gap: 1rem;
}

.faq-item {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255,255,255,.72);
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.62)),
    radial-gradient(circle at 100% 0, rgba(255,189,50,.14), transparent 16rem);
  box-shadow: var(--vf-shadow-card);
  transition: transform .32s var(--vf-ease-smooth), box-shadow .32s ease, border-color .32s ease;
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--vf-shadow-float);
  border-color: rgba(255,189,50,.34);
}

.faq-item summary {
  padding: 1.1rem 1.35rem;
  gap: 1rem;
}

.faq-item summary::after {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--vf-night);
  background: linear-gradient(135deg, var(--vf-solar), var(--vf-copper-2));
  box-shadow: 0 10px 22px rgba(201,123,15,.18);
}

.faq-item[open] {
  border-color: rgba(18,161,127,.32);
}

.faq-item[open] summary {
  color: var(--vf-emerald);
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
  background: linear-gradient(135deg, var(--vf-emerald-2), var(--vf-aqua));
}

.faq-item p {
  margin: 0;
  padding: 0 1.35rem 1.25rem;
  color: rgba(27,35,48,.72);
  animation: vfFaqOpen .34s var(--vf-ease-smooth) both;
}

/* ===== Contact : formulaire plus premium ===== */
.contact-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  align-items: stretch;
}

.contact-form,
.contact-side {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: var(--vf-shadow-card);
}

.contact-form {
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.68)),
    radial-gradient(circle at 0 0, rgba(255,189,50,.12), transparent 20rem);
  padding: clamp(1.35rem, 3vw, 2.6rem);
}

.contact-form::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,189,50,.20), transparent 60%),
    conic-gradient(from 180deg, rgba(255,189,50,.0), rgba(18,161,127,.15), rgba(255,189,50,.0));
  animation: vfSlowRotate 24s linear infinite;
}

.form-row {
  position: relative;
  z-index: 1;
}

.form-row label {
  color: var(--vf-ink);
}

.form-row input,
.form-row textarea {
  border: 1px solid rgba(27,35,48,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,250,240,.74));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease, transform .25s var(--vf-ease-smooth);
}

.form-row input:hover,
.form-row textarea:hover {
  border-color: rgba(201,123,15,.30);
  background: #fff;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: rgba(18,161,127,.54);
  box-shadow:
    0 0 0 4px rgba(18,161,127,.12),
    0 10px 24px rgba(13,18,31,.06);
  background: #fff;
  transform: translateY(-1px);
}

.form-alert {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(13,18,31,.08);
}

.form-alert-success {
  background:
    linear-gradient(135deg, rgba(18,161,127,.16), rgba(255,255,255,.74));
}

.form-alert-error {
  background:
    linear-gradient(135deg, rgba(197,48,48,.12), rgba(255,255,255,.74));
}

.contact-side {
  background:
    radial-gradient(circle at 10% 5%, rgba(255,189,50,.24), transparent 20rem),
    radial-gradient(circle at 100% 100%, rgba(18,161,127,.26), transparent 20rem),
    linear-gradient(155deg, var(--vf-night), var(--vf-ink-2));
  box-shadow: var(--vf-shadow-deep);
}

.contact-side::before {
  content: "";
  position: absolute;
  right: -62px;
  top: -62px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 48%, rgba(255,255,255,.13) 48.5% 49.5%, transparent 50%),
    conic-gradient(from 90deg, rgba(255,189,50,.0), rgba(255,189,50,.35), rgba(18,161,127,.18), rgba(255,189,50,.0));
  animation: vfSlowRotate 18s linear infinite;
}

.contact-side h2,
.contact-side p {
  position: relative;
  z-index: 1;
}

/* ===== Author : carte crédible premium ===== */
.author-block {
  position: relative;
  overflow: hidden;
  align-items: center;
  background:
    radial-gradient(circle at 0 0, rgba(255,189,50,.18), transparent 18rem),
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,255,255,.64));
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: var(--vf-shadow-card);
  transition: transform .35s var(--vf-ease-smooth), box-shadow .35s ease;
}

.author-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--vf-shadow-float);
}

.author-avatar-img,
.author-page-avatar,
.author-avatar-fallback {
  box-shadow:
    0 0 0 4px rgba(255,255,255,.88),
    0 0 0 7px rgba(255,189,50,.20),
    0 18px 42px rgba(13,18,31,.12);
}

.author-avatar-fallback {
  color: var(--vf-night);
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.48), transparent 44%),
    linear-gradient(135deg, var(--vf-solar), var(--vf-emerald-2));
}

.author-block-label {
  font-weight: 800;
  letter-spacing: .12em;
}

.author-block-name {
  font-size: 1.2rem;
}

.author-page-hero {
  position: relative;
  padding: clamp(1rem, 2vw, 1.6rem);
  border-radius: var(--vf-radius-xl);
  background:
    linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.42)),
    radial-gradient(circle at 0 0, rgba(255,189,50,.14), transparent 16rem);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 16px 42px rgba(13,18,31,.08);
}

.author-page-meta h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

/* ===== Footer : vraie signature de site référence ===== */
.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(255,189,50,.18), transparent 28rem),
    radial-gradient(circle at 88% 92%, rgba(18,161,127,.22), transparent 32rem),
    linear-gradient(155deg, var(--vf-night), #142033 58%, #082d27 130%);
  margin-top: 0;
  padding-top: clamp(3.5rem, 7vw, 6rem);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, #000, transparent 92%);
}

.site-footer::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1080px, 88%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255,189,50,.72), rgba(18,161,127,.52), transparent);
}

.footer-grid,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-grid {
  border-bottom-color: rgba(255,255,255,.16);
}

.footer-brand .site-logo-text {
  font-size: 1.55rem;
  letter-spacing: -.035em;
}

.footer-tagline {
  max-width: 560px;
  line-height: 1.75;
}

.footer-links {
  gap: .75rem;
}

.footer-links a {
  position: relative;
  width: fit-content;
  padding: .25rem 0;
  text-decoration: none;
  transition: color .25s ease, transform .25s var(--vf-ease-smooth);
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.1rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--vf-solar), var(--vf-emerald-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--vf-ease-smooth);
}

.footer-links a:hover {
  transform: translateX(4px);
}

.footer-links a:hover::after {
  transform: scaleX(1);
}

/* ===== Erreur / légales ===== */
.error-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.72);
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.68)),
    radial-gradient(circle at 0 0, rgba(255,189,50,.16), transparent 20rem);
  box-shadow: var(--vf-shadow-deep);
}

.error-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--vf-solar), var(--vf-emerald-2));
}

.error-code {
  text-shadow: 0 14px 30px rgba(201,123,15,.16);
}

/* ===== Micro-interactions sur images et liens ===== */
a {
  transition: color .25s ease, text-decoration-color .25s ease;
}

.content-body a:not(.btn):not(.blog-card-link) {
  text-decoration-thickness: 2px;
  text-underline-offset: .18em;
  text-decoration-color: rgba(255,189,50,.52);
  background: linear-gradient(90deg, rgba(255,189,50,.16), rgba(18,161,127,.10)) 0 100% / 0% 40% no-repeat;
  transition: background-size .32s var(--vf-ease-smooth), color .25s ease, text-decoration-color .25s ease;
}

.content-body a:not(.btn):not(.blog-card-link):hover {
  background-size: 100% 40%;
  color: var(--vf-copper);
  text-decoration-color: rgba(18,161,127,.55);
}

img {
  background: linear-gradient(135deg, rgba(255,189,50,.14), rgba(18,161,127,.10));
}

/* ===== Entrées animées progressives ===== */
@media (prefers-reduced-motion: no-preference) {
  .section-kicker,
  .section h2,
  .section .site-container > p,
  .method-item,
  .stat-dial,
  .panel-card,
  .blog-card,
  .faq-item,
  .sidebar-widget,
  .toc-box,
  .author-block,
  .contact-form,
  .contact-side {
    animation: vfFadeUp .72s var(--vf-ease-smooth) both;
  }

  .section .site-container > p:nth-of-type(1) { animation-delay: .04s; }
  .section .site-container > p:nth-of-type(2) { animation-delay: .08s; }
  .section .site-container > p:nth-of-type(3) { animation-delay: .12s; }
  .section .site-container > p:nth-of-type(4) { animation-delay: .16s; }

  .method-item:nth-child(1),
  .panel-card:nth-child(1),
  .blog-card:nth-child(1),
  .faq-item:nth-child(1),
  .stat-dial:nth-child(1),
  .sidebar-widget:nth-child(1) { animation-delay: .03s; }

  .method-item:nth-child(2),
  .panel-card:nth-child(2),
  .blog-card:nth-child(2),
  .faq-item:nth-child(2),
  .stat-dial:nth-child(2),
  .sidebar-widget:nth-child(2) { animation-delay: .10s; }

  .method-item:nth-child(3),
  .panel-card:nth-child(3),
  .blog-card:nth-child(3),
  .faq-item:nth-child(3),
  .stat-dial:nth-child(3),
  .sidebar-widget:nth-child(3) { animation-delay: .17s; }

  .method-item:nth-child(4),
  .panel-card:nth-child(4),
  .blog-card:nth-child(4),
  .faq-item:nth-child(4),
  .stat-dial:nth-child(4),
  .sidebar-widget:nth-child(4) { animation-delay: .24s; }

  .nav-links.nav-open {
    animation: vfMenuOpen .34s var(--vf-ease-smooth) both;
  }
}

/* ===== Animations spécifiques ===== */
@keyframes vfFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes vfHeroTextIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.985);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes vfLineGrow {
  from {
    transform: scaleX(0);
    transform-origin: left;
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    transform-origin: left;
    opacity: 1;
  }
}

@keyframes vfHeroZoom {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1.13);
  }
}

@keyframes vfLogoPulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255,255,255,.75) inset,
      0 0 0 6px rgba(255,189,50,.14),
      0 10px 28px rgba(201,123,15,.22),
      0 0 24px rgba(255,189,50,.24);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255,255,255,.75) inset,
      0 0 0 9px rgba(255,189,50,.18),
      0 16px 36px rgba(201,123,15,.28),
      0 0 42px rgba(255,189,50,.38);
  }
}

@keyframes vfSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes vfSlowRotate {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

@keyframes vfGridMove {
  from {
    background-position: 0 0, 0 0, 0 0;
  }
  to {
    background-position: 52px 52px, -52px 52px, 0 0;
  }
}

@keyframes vfNodePulse {
  0%, 100% {
    transform: translateY(-50%) scale(1);
    opacity: .78;
  }
  50% {
    transform: translateY(-50%) scale(1.28);
    opacity: 1;
  }
}

@keyframes vfDialBreathe {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-3px) rotate(1deg);
  }
}

@keyframes vfFaqOpen {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes vfMenuOpen {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(.98);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Correction d'animation pour pseudo-éléments non centrés */
.site-logo-mark::after,
.stat-dial-circle::before,
.contact-form::before,
.contact-side::before,
.sidebar-widget-meter::before,
.home-intro .site-container::after {
  transform-origin: center;
}

.site-logo-mark::after,
.stat-dial-circle::before,
.contact-form::before,
.contact-side::before,
.sidebar-widget-meter::before,
.home-intro .site-container::after {
  animation-name: vfSpin;
}

/* ===== Responsive premium tablette ===== */
@media (max-width: 1100px) {
  .site-nav {
    height: 76px;
  }

  .nav-links {
    top: 82px;
    padding: .8rem;
    border: 1px solid rgba(255,255,255,.74);
    background:
      linear-gradient(180deg, rgba(255,250,240,.96), rgba(255,250,240,.86)),
      radial-gradient(circle at 0 0, rgba(255,189,50,.16), transparent 16rem);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .nav-link {
    padding: .92rem .95rem;
    border-bottom: 1px solid rgba(27,35,48,.08);
    border-radius: 14px;
  }

  .nav-link + .nav-link {
    margin-top: .15rem;
  }

  .site-page-hero::after {
    opacity: .34;
    right: -8rem;
  }

  .hero-content h1 {
    max-width: 780px;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .page-sidebar {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-widget-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  :root {
    --container-pad: 1.2rem;
  }

  .site-page-hero.is-home {
    min-height: 560px;
  }

  .hero-content h1 {
    font-size: clamp(2.35rem, 8vw, 4.6rem);
  }

  .method-list::before {
    display: none;
  }

  .home-intro .site-container::after {
    opacity: .22;
    right: -3rem;
  }

  .page-article .content-body,
  .page-pilier .content-body,
  .page-author .content-body,
  .legal-page .content-body,
  .privacy-page .content-body {
    border-radius: 30px;
  }

  .blog-card {
    grid-template-columns: 210px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
  }

  .site-logo-text {
    font-size: 1.18rem;
  }

  .site-logo-mark {
    width: 34px;
    height: 34px;
  }

  .site-page-hero {
    min-height: 300px;
    padding: 4.3rem 0 3.2rem;
  }

  .site-page-hero.is-home {
    min-height: 520px;
    padding: 5rem 0 4rem;
  }

  .site-page-hero::after {
    display: none;
  }

  .hero-content::before {
    width: fit-content;
    font-size: .68rem;
    letter-spacing: .08em;
    white-space: normal;
  }

  .hero-content h1 {
    font-size: clamp(2.05rem, 11vw, 3.55rem);
    letter-spacing: -.052em;
  }

  .hero-intro {
    font-size: 1.02rem;
  }

  .section {
    padding: clamp(3rem, 12vw, 4.6rem) 0;
  }

  .section h2 {
    font-size: clamp(1.75rem, 9vw, 2.55rem);
  }

  .section-kicker {
    font-size: .70rem;
    white-space: normal;
  }

  .method-list,
  .stat-row,
  .card-grid,
  .home-rubriques .card-grid,
  .home-latest .card-grid {
    grid-template-columns: 1fr;
  }

  .method-item {
    padding: 1.15rem;
  }

  .stat-dial {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    text-align: left;
  }

  .stat-dial-circle {
    width: 78px;
    height: 78px;
    margin: 0;
  }

  .stat-dial p {
    max-width: none;
    margin: 0;
  }

  .page-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar-widget-note {
    grid-column: auto;
  }

  .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-card img {
    height: 210px;
    min-height: 210px;
  }

  .content-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .footer-grid {
    gap: 1.45rem;
  }
}

@media (max-width: 520px) {
  :root {
    --container-pad: .95rem;
  }

  body {
    font-size: 15.5px;
  }

  .site-nav {
    height: 70px;
  }

  .nav-links {
    top: 76px;
    left: .9rem;
    right: .9rem;
  }

  .site-page-hero.is-home {
    min-height: 500px;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 13vw, 3.05rem);
  }

  .hero-intro {
    font-size: .98rem;
  }

  .home-intro p,
  .section .site-container > p,
  .content-body p {
    font-size: 1rem;
  }

  .panel-card,
  .contact-form,
  .contact-side,
  .sidebar-widget,
  .faq-item,
  .toc-box,
  .author-block {
    border-radius: 22px;
  }

  .page-article .content-body,
  .page-pilier .content-body,
  .page-author .content-body,
  .legal-page .content-body,
  .privacy-page .content-body {
    padding: 1.1rem;
    border-radius: 24px;
  }

  .author-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .pagination-list {
    border-radius: 22px;
    justify-content: flex-start;
  }

  .footer-links {
    align-items: flex-start;
  }
}

/* ===== Mode réduit : site premium sans mal de mer ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

/* ===== Print propre ===== */
@media print {
  body {
    background: #fff !important;
    color: #111 !important;
  }

  .site-header,
  .site-footer,
  .page-sidebar,
  .nav-hamburger,
  .hero-bg-slides,
  .hero-bg-overlay,
  .circuit-divider,
  .btn {
    display: none !important;
  }

  .site-page-hero {
    background: #fff !important;
    color: #111 !important;
    padding: 1rem 0 !important;
    min-height: 0 !important;
  }

  .site-page-hero h1,
  .hero-content h1 {
    color: #111 !important;
    text-shadow: none !important;
    font-size: 28pt !important;
  }

  .content-layout {
    display: block !important;
  }

  .content-body,
  .panel-card,
  .blog-card,
  .toc-box,
  .faq-item {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
  }

  a {
    color: #111 !important;
    text-decoration: underline !important;
  }
}

/* ===== Sécurité anti-scroll horizontal ===== */
html,
body,
.site-main,
.site-container,
.section,
.content-body,
.content-layout,
.card-grid,
.blog-list,
.footer-grid,
.contact-layout {
  max-width: 100%;
}

body,
.site-main {
  overflow-x: clip;
}

@supports not (overflow: clip) {
  body,
  .site-main {
    overflow-x: hidden;
  }
}

/* ===== Petits raffinements finaux ===== */
.page-home .home-intro {
  padding-top: clamp(4rem, 7vw, 6.5rem);
}

.page-home .home-rubriques {
  background:
    radial-gradient(circle at 18% 10%, rgba(255,189,50,.16), transparent 28rem),
    radial-gradient(circle at 84% 80%, rgba(18,161,127,.12), transparent 32rem),
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.0));
}

.page-home .home-latest {
  border-top: 1px solid rgba(255,255,255,.48);
  border-bottom: 1px solid rgba(255,255,255,.48);
}

.section-title-row .btn {
  margin-top: .25rem;
}

.btn-outline {
  border-color: rgba(27,35,48,.18);
  background: rgba(255,255,255,.54);
  box-shadow: 0 12px 32px rgba(13,18,31,.07);
}

.btn-outline:hover {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.30), transparent 44%),
    linear-gradient(135deg, var(--vf-ink), var(--vf-emerald));
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
}

.btn-primary {
  box-shadow:
    0 16px 34px rgba(201,123,15,.22),
    0 0 0 1px rgba(255,255,255,.35) inset;
}

.btn-primary:hover {
  transform: translateY(-4px);
}

/* ===== Animation décorative des sections au survol léger ===== */
.section:hover .section-kicker::before {
  animation: vfNodePulse 1.9s ease-in-out infinite;
}

.panel-card:hover h3,
.blog-card:hover h2,
.sidebar-widget:hover .sidebar-widget-title,
.faq-item:hover summary {
  text-shadow: 0 10px 24px rgba(201,123,15,.08);
}

/* ===== États actifs / détails tactiles ===== */
details[open] {
  scroll-margin-top: 110px;
}

summary {
  -webkit-tap-highlight-color: transparent;
}

button,
a,
summary {
  touch-action: manipulation;
}

/* ===== Compatibilité progressive color-mix ===== */
@supports (color: color-mix(in srgb, red, white)) {
  .section-kicker {
    background: color-mix(in srgb, white 72%, var(--vf-solar-soft));
  }

  .panel-card {
    border-color: color-mix(in srgb, white 70%, var(--vf-line));
  }

  .content-body a:not(.btn):hover {
    color: color-mix(in srgb, var(--vf-copper) 72%, var(--vf-emerald));
  }
}

/* ===== Fin Premium reference layer V2 ===== */



/* ===========================================================
   VOLTFASE.FR — Layer V3 : densité visuelle, cas extrêmes,
   finesse responsive, états hover/focus, longues pages.
   =========================================================== */

/* ===== Hiérarchie de lecture enrichie ===== */
.content-body > p:first-of-type {
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  color: rgba(27,35,48,.86);
}

.page-article .content-body > p:first-of-type,
.page-pilier .content-body > p:first-of-type {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255,189,50,.12), rgba(18,161,127,.08)),
    rgba(255,255,255,.52);
  border: 1px solid rgba(255,255,255,.72);
}

.article-content h2,
.pilier-content h2 {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.article-content h2::after,
.pilier-content h2::after {
  content: "";
  flex: 1;
  min-width: 42px;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,123,15,.35), transparent);
}

.article-content h3,
.pilier-content h3 {
  position: relative;
  padding-left: 1rem;
}

.article-content h3::before,
.pilier-content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .22em;
  bottom: .22em;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--vf-solar), var(--vf-emerald-2));
}

/* ===== Encadrements automatiques des éléments riches ===== */
.article-content figure,
.pilier-content figure {
  margin: 2rem 0;
  padding: .75rem;
  border-radius: var(--vf-radius-xl);
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: var(--vf-shadow-card);
}

.article-content figure img,
.pilier-content figure img {
  border-radius: calc(var(--vf-radius-xl) - 10px);
}

.article-content figcaption,
.pilier-content figcaption {
  margin-top: .65rem;
  color: rgba(27,35,48,.58);
  font-size: .88rem;
  text-align: center;
}

.article-content code,
.pilier-content code {
  padding: .16rem .38rem;
  border-radius: .45rem;
  background: rgba(27,35,48,.08);
  color: var(--vf-copper);
  font-size: .92em;
}

.article-content pre,
.pilier-content pre {
  overflow: auto;
  max-width: 100%;
  padding: 1.1rem;
  border-radius: 18px;
  background: var(--vf-night);
  color: rgba(255,255,255,.88);
  box-shadow: var(--vf-shadow-card);
}

/* ===== Tables responsive plus élégantes ===== */
.content-body table {
  background: rgba(255,255,255,.74);
}

.content-body table caption {
  caption-side: bottom;
  padding-top: .55rem;
  color: rgba(27,35,48,.58);
  font-size: .86rem;
}

.content-body table td:first-child,
.content-body table th:first-child {
  font-weight: 700;
}

.content-body table td:last-child {
  color: rgba(27,35,48,.76);
}

/* ===== Rubriques homepage : effet "dossier" ===== */
.home-rubriques .panel-card {
  padding-bottom: 2.4rem;
}

.home-rubriques .panel-card h3 {
  min-height: 2.4em;
}

.home-rubriques .panel-card .panel-card-link {
  position: absolute;
  left: clamp(1.45rem, 2.4vw, 2.2rem);
  bottom: 1.35rem;
}

.home-rubriques .card-grid,
.home-latest .card-grid {
  align-items: stretch;
}

/* ===== Derniers articles : aspect newsroom ===== */
.home-latest .latest-card {
  display: flex;
  flex-direction: column;
}

.home-latest .latest-card p {
  margin-bottom: 0;
}

.home-latest .latest-card .art-date {
  margin-top: .05rem;
}

/* ===== Contact amélioré sans toucher le HTML ===== */
.contact-form form {
  position: relative;
  z-index: 2;
}

.contact-form .btn,
.contact-form button[type="submit"] {
  margin-top: .3rem;
}

.contact-side ul {
  padding-left: 0;
  list-style: none;
  margin-top: 1rem;
}

.contact-side li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: .55rem;
}

.contact-side li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: .48rem;
  height: .48rem;
  border-radius: 50%;
  background: var(--vf-solar);
  box-shadow: 0 0 0 5px rgba(255,189,50,.12);
}

/* ===== Author page : rendu interview / signature ===== */
.page-author .content-body h3 {
  margin-top: 2rem;
}

.page-author .content-body h3::before {
  top: .28em;
}

.author-page-meta p {
  display: inline-flex;
  padding: .36rem .72rem;
  border-radius: 999px;
  background: rgba(18,161,127,.10);
  border: 1px solid rgba(18,161,127,.18);
  font-weight: 700;
}

/* ===== Sidebars longues ===== */
.sidebar-widget + .sidebar-widget {
  margin-top: .2rem;
}

.sidebar-articles .art-date {
  margin-left: -.05rem;
  margin-top: .38rem;
}

/* ===== Boutons / liens dans actions ===== */
.error-actions .btn,
.content-body > p > .btn {
  margin-right: .4rem;
  margin-bottom: .4rem;
}

/* ===== Hero sur pages internes ===== */
body:not(.page-home) .hero-content::before {
  content: "analyse · repères · usages";
}

body.page-blog .hero-content::before {
  content: "publications · usages · kWh";
}

body.page-contact .hero-content::before {
  content: "contact · correction · proposition";
}

body.page-author .hero-content::before {
  content: "auteur · méthode · transparence";
}

body.page-article .hero-content::before {
  content: "article · consommation · repères";
}

body.page-pilier .hero-content::before {
  content: "page repère · énergie locale";
}

/* ===== Amélioration des espacements blocs éditoriaux ===== */
.article-content > * + *,
.pilier-content > * + * {
  margin-top: 1rem;
}

.article-content > h2 + *,
.pilier-content > h2 + *,
.article-content > h3 + *,
.pilier-content > h3 + * {
  margin-top: .55rem;
}

.article-content > h2,
.pilier-content > h2 {
  margin-bottom: .75rem;
}

/* ===== Mode sombre implicite des gros blocs ===== */
.sidebar-widget-meter .sidebar-note,
.sidebar-widget-meter p,
.sidebar-widget-meter li {
  color: rgba(255,255,255,.72);
}

.sidebar-widget-meter .sidebar-widget-title::after {
  background: linear-gradient(90deg, var(--vf-solar), var(--vf-aqua));
}

/* ===== États clavier renforcés ===== */
.nav-link:focus-visible,
.panel-card:focus-visible,
.blog-card a:focus-visible,
.sidebar-widget a:focus-visible,
.footer-links a:focus-visible,
.pagination-link:focus-visible,
.faq-item summary:focus-visible {
  outline: 3px solid rgba(255,189,50,.86);
  outline-offset: 4px;
  box-shadow: 0 0 0 7px rgba(255,189,50,.16);
}

/* ===== Grille responsive très fine ===== */
@media (min-width: 1180px) {
  .page-home .home-intro .site-container,
  .page-home .section:not(.home-rubriques):not(.home-latest) .site-container {
    display: grid;
    grid-template-columns: minmax(180px, .28fr) minmax(0, 1fr);
    column-gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
  }

  .page-home .home-intro .section-kicker,
  .page-home .section:not(.home-rubriques):not(.home-latest) .section-kicker {
    grid-column: 1;
    grid-row: 1 / span 5;
    align-self: start;
    position: sticky;
    top: 116px;
    width: fit-content;
  }

  .page-home .home-intro h2,
  .page-home .section:not(.home-rubriques):not(.home-latest) h2,
  .page-home .home-intro p,
  .page-home .section:not(.home-rubriques):not(.home-latest) p,
  .page-home .section:not(.home-rubriques):not(.home-latest) .method-list,
  .page-home .section:not(.home-rubriques):not(.home-latest) .stat-row,
  .page-home .section:not(.home-rubriques):not(.home-latest) .faq-list,
  .page-home .section:not(.home-rubriques):not(.home-latest) .circuit-divider {
    grid-column: 2;
  }
}

@media (min-width: 981px) and (max-width: 1179px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .method-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 641px) and (max-width: 980px) {
  .card-grid,
  .method-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Petites améliorations mobile haute densité ===== */
@media (max-width: 640px) {
  .article-content h2,
  .pilier-content h2 {
    display: block;
  }

  .article-content h2::after,
  .pilier-content h2::after {
    display: none;
  }

  .method-num {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 1.05rem;
  }

  .faq-item summary {
    align-items: flex-start;
  }

  .faq-item summary::after {
    margin-top: -.2rem;
  }

  .article-meta span,
  .art-date {
    font-size: .76rem;
  }

  .article-hero-image {
    max-height: 330px;
  }

  .content-body ul li,
  .content-body ol li {
    padding-left: 1.45rem;
  }
}

@media (max-width: 380px) {
  .site-logo-text {
    font-size: 1rem;
  }

  .site-logo-mark {
    width: 30px;
    height: 30px;
  }

  .nav-hamburger {
    width: 38px;
    height: 38px;
  }

  .hero-content::before {
    display: none;
  }

  .hero-content h1 {
    font-size: clamp(1.85rem, 13vw, 2.65rem);
  }
}

/* ===== Animations additionnelles discrètes ===== */
@media (prefers-reduced-motion: no-preference) {
  .site-header {
    animation: vfHeaderDrop .55s var(--vf-ease-smooth) both;
  }

  .panel-card:nth-child(odd)::after {
    animation: vfCardOrb 7s ease-in-out infinite;
  }

  .panel-card:nth-child(even)::after {
    animation: vfCardOrb 8s 1s ease-in-out infinite reverse;
  }

  .hero-bg-overlay {
    animation: vfHeroLight 9s ease-in-out infinite alternate;
  }

  .section-alt::after {
    animation: vfPatternDrift 22s linear infinite;
  }
}

@keyframes vfHeaderDrop {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes vfCardOrb {
  0%, 100% {
    transform: translate3d(0,0,0) scale(1);
  }
  50% {
    transform: translate3d(-10px,-12px,0) scale(1.16);
  }
}

@keyframes vfHeroLight {
  0% {
    filter: saturate(1) brightness(1);
  }
  100% {
    filter: saturate(1.12) brightness(1.06);
  }
}

@keyframes vfPatternDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 84px 84px, -120px 120px;
  }
}

/* ===== Fin Layer V3 ===== */


/* ===========================================================
   PATCH LARGEUR DESKTOP — lecture contenue premium
   À placer tout en bas du fichier style.css
   =========================================================== */

@media (min-width: 1180px) {

  :root {
    --site-max-width: 1200px;
    --content-reading-width: 820px;
    --content-with-sidebar-width: 1200px;
  }

  .site-container {
    width: min(100% - 48px, var(--site-max-width)) !important;
    max-width: var(--site-max-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .site-nav.site-container,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 48px, var(--site-max-width)) !important;
    max-width: var(--site-max-width) !important;
  }

  .hero-content {
    max-width: var(--site-max-width) !important;
  }

  .site-page-hero .hero-content,
  .site-page-hero .site-container {
    width: min(100% - 48px, var(--site-max-width)) !important;
    max-width: var(--site-max-width) !important;
  }

  .section > .site-container {
    width: min(100% - 48px, var(--site-max-width)) !important;
    max-width: var(--site-max-width) !important;
  }

  .content-layout {
    width: min(100% - 48px, var(--content-with-sidebar-width)) !important;
    max-width: var(--content-with-sidebar-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    grid-template-columns: minmax(0, 820px) 320px !important;
    justify-content: center !important;
  }

  .content-layout .content-body {
    max-width: var(--content-reading-width) !important;
    width: 100% !important;
  }

  .content-body:not(.content-layout .content-body) {
    max-width: var(--content-reading-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .page-home .section:not(.home-rubriques):not(.home-latest) .site-container > p,
  .page-home .section:not(.home-rubriques):not(.home-latest) .site-container > h2,
  .page-home .section:not(.home-rubriques):not(.home-latest) .site-container > .section-kicker {
    max-width: 880px !important;
  }

  .page-home .section:not(.home-rubriques):not(.home-latest) .site-container > p {
    font-size: clamp(1rem, 0.45vw + 0.9rem, 1.12rem) !important;
  }

  .card-grid,
  .home-rubriques .card-grid,
  .home-latest .card-grid {
    max-width: var(--site-max-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .article-content,
  .pilier-content {
    max-width: var(--content-reading-width) !important;
  }

  .article-content p,
  .pilier-content p,
  .content-body p {
    max-width: 78ch !important;
  }

  .article-hero-image,
  .pilier-hero-image {
    max-width: 100% !important;
  }

  .toc-box {
    max-width: var(--content-reading-width) !important;
  }

  .page-sidebar {
    max-width: 320px !important;
  }
}

/* Très grands écrans : on garde le site luxueux mais jamais étalé */
@media (min-width: 1600px) {
  .site-container,
  .site-nav.site-container,
  .footer-grid,
  .footer-bottom,
  .section > .site-container,
  .site-page-hero .site-container {
    width: 1200px !important;
    max-width: 1200px !important;
  }

  .content-layout {
    width: 1200px !important;
    max-width: 1200px !important;
  }
}

/* PATCH MOBILE CONTACT VOLTFASE */
@media (max-width: 768px) {

  html,
  body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

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

  .contact-page,
  .contact-section,
  .contact-container,
  .contact-wrapper,
  .contact-layout,
  .contact-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .contact-wrapper,
  .contact-layout,
  .contact-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  .contact-card,
  .contact-form,
  .contact-form-card,
  .contact-info,
  .contact-panel,
  .contact-side,
  .contact-aside {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
  }

  .contact-card,
  .contact-form-card,
  .contact-info,
  .contact-panel {
    padding: 24px 18px !important;
    border-radius: 28px !important;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select,
  .contact-form button {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .contact-form textarea {
    min-height: 150px !important;
  }

  .contact-card h2,
  .contact-form-card h2,
  .contact-info h2,
  .contact-panel h2 {
    font-size: clamp(2rem, 10vw, 3.2rem) !important;
    line-height: .95 !important;
    word-break: normal !important;
  }

  .hero,
  .page-hero,
  .contact-hero {
    overflow: hidden !important;
  }
}