/* ============================================================
   LUMIÈRE — FastCMS Professional Theme
   A refined editorial showcase theme
   ============================================================ */

@import url('fonts.css'); /* polices hébergées en local (CSP-friendly) */

/* ── Variables ────────────────────────────────────────────── */
:root {
  --bg:          #0a0c10;
  --bg2:         #0f1117;
  --bg3:         #151820;
  --surface:     #1c2030;
  --border:      rgba(255,255,255,0.07);
  --border2:     rgba(255,255,255,0.12);
  --text:        #e8e4dc;
  --text-muted:  #8a8a9a;
  --text-light:  #c4c0b8;
  --accent:      #d4a843;
  --accent2:     color-mix(in srgb, var(--accent) 70%, #ffffff);
  --accent-rgb:  212, 168, 67;
  --danger:      #e05252;
  --success:     #52b788;
  --radius:      8px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --shadow-xl:   0 20px 60px rgba(0,0,0,0.6);
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Outfit', system-ui, sans-serif;
  --nav-h:       72px;
  --max-w:       1200px;
  --content-w:   780px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent2); }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Skip link ────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -99px;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  border-radius: var(--radius);
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 2.5rem;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}

.site-nav.scrolled {
  background: rgba(10, 12, 16, 0.97);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}

.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-logo .logo-dot {
  display: none; /* remplacé par logo-bolt */
}

/* ── Lightning bolt animé ── */
.nav-logo .logo-bolt {
  display: inline-block;
  color: var(--accent);
  animation: bolt-flicker 2.8s ease-in-out infinite;
  transform-origin: center bottom;
  text-shadow:
    0 0 6px  rgba(212,168,67,0.7),
    0 0 14px rgba(212,168,67,0.35);
}

@keyframes bolt-flicker {
  0%   { color: var(--accent);  text-shadow: 0 0 6px rgba(212,168,67,.7), 0 0 14px rgba(212,168,67,.35); transform: scale(1)    rotate(0deg);   }
  15%  { color: #fff8d6;        text-shadow: 0 0 12px rgba(255,248,214,.9), 0 0 28px rgba(212,168,67,.8); transform: scale(1.18) rotate(-4deg);  }
  20%  { color: var(--accent);  text-shadow: 0 0 4px rgba(212,168,67,.5);                                 transform: scale(0.95) rotate(2deg);   }
  30%  { color: #ffe080;        text-shadow: 0 0 16px rgba(255,224,128,.95), 0 0 32px rgba(212,168,67,.6); transform: scale(1.22) rotate(-2deg);  }
  38%  { color: var(--accent);  text-shadow: 0 0 5px rgba(212,168,67,.6);                                 transform: scale(0.98) rotate(0deg);   }
  100% { color: var(--accent);  text-shadow: 0 0 6px rgba(212,168,67,.7), 0 0 14px rgba(212,168,67,.35); transform: scale(1)    rotate(0deg);   }
}

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

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  letter-spacing: 0.03em;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.current {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.nav-links a.current {
  color: var(--accent);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-admin-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted) !important;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border2);
  border-radius: 100px;
  transition: all 0.2s !important;
}

.nav-admin-link:hover {
  color: var(--text) !important;
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
}

/* Burger menu */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
  animation: slideDown 0.25s ease;
}

.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 1rem;
  color: var(--text-muted);
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  display: block;
  transition: all 0.2s;
}
.nav-mobile a:hover, .nav-mobile a.current {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.nav-mobile a.current { color: var(--accent); }

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

/* ── Main layout ──────────────────────────────────────────── */
main {
  flex: 1;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 5rem;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.content-container {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Hero Section ─────────────────────────────────────────── */
.page-hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 6%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.page-hero-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.page-hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.page-hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.75;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); margin-bottom: 1.25rem; }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); margin-bottom: 1rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1.25rem; color: var(--text-light); }
p:last-child { margin-bottom: 0; }

strong { color: var(--text); font-weight: 600; }
em { font-style: italic; }

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
ul li, ol li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: color-mix(in srgb, var(--accent) 4%, transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

blockquote p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-light);
  margin: 0;
}

pre {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.88em;
  background: rgba(255,255,255,0.07);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--accent2);
}

pre code {
  background: none;
  padding: 0;
  color: var(--text-light);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* ── Page Content ─────────────────────────────────────────── */
.prose {
  font-size: 1.05rem;
  line-height: 1.8;
}

.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose img {
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

/* ── Tags ─────────────────────────────────────────────────── */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  transition: all 0.2s;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.tag:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  color: var(--accent2);
}

/* ── Cards ────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

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

.card:hover .card-image img {
  transform: scale(1.04);
}

.card-body {
  padding: 1.5rem;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.card-meta .separator::before {
  content: '·';
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.card-title a:hover {
  color: var(--accent);
}

.card-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.4rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent2);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding-left: 0;
  padding-right: 0;
}

.btn-ghost:hover {
  color: var(--accent2);
}

.btn-arrow::after {
  content: '→';
  transition: transform 0.2s;
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* Legacy "button" class */
a.button, button.button, .button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.4rem;
  border-radius: 100px;
  background: transparent;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}

a.button:hover, button.button:hover, .button:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-color: var(--accent);
  color: var(--accent2);
}

/* ── Blog ─────────────────────────────────────────────────── */
.blog-header {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
  position: relative;
}

.blog-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--accent);
}

.blog-post {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
  animation: fadeUp 0.5s ease both;
}

.blog-post:nth-child(2) { animation-delay: 0.05s; }
.blog-post:nth-child(3) { animation-delay: 0.1s; }
.blog-post:nth-child(4) { animation-delay: 0.15s; }
.blog-post:nth-child(5) { animation-delay: 0.2s; }

.blog-post:last-child { border-bottom: none; }

.blog-post-content {}

.blog-post-image {
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  order: 1;
}

.blog-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-post:hover .blog-post-image img {
  transform: scale(1.03);
}

.post-date {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-link {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.post-link a {
  color: inherit;
  text-decoration: none;
}

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

.meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lead {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}

.read-more:hover { gap: 0.75rem; color: var(--accent2); }

/* ── Article / Single post ────────────────────────────────── */
.article-header {
  padding: 5rem 0 3rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.article-meta a {
  color: var(--text-muted);
}

.article-meta a:hover { color: var(--accent); }

.article-featured-image {
  width: 100%;
  border-radius: var(--radius-lg);
  margin: 2.5rem 0;
  overflow: hidden;
}

.article-featured-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ── Contact form ─────────────────────────────────────────── */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  padding: 5rem 0;
}

.contact-info h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1.25rem;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.form-control::placeholder { color: var(--text-muted); }

.form-control:focus {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.form-check-input {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border2);
  border-radius: 4px;
  background: var(--bg2);
  cursor: pointer;
  accent-color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

label.notice {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Alerts ───────────────────────────────────────────────── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.alert-success {
  background: rgba(82, 183, 136, 0.1);
  border: 1px solid rgba(82, 183, 136, 0.3);
  color: var(--success);
}

.alert-danger {
  background: rgba(224, 82, 82, 0.1);
  border: 1px solid rgba(224, 82, 82, 0.3);
  color: var(--danger);
}

/* ── Featured image ───────────────────────────────────────── */
.featured-image-wrap {
  margin: 2rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.featured-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Articles list ────────────────────────────────────────── */
.articles-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.article-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.article-item:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}

.article-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.article-item h3 a {
  color: var(--text);
  transition: color 0.2s;
}

.article-item h3 a:hover { color: var(--accent); }

.article-item small {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.article-item-meta {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-wrap: wrap;
}

.article-item img {
  border-radius: var(--radius);
  margin: 1rem 0;
}

.article-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ── Page not found ───────────────────────────────────────── */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem;
  min-height: 60vh;
}

.not-found-code {
  font-family: var(--font-serif);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 30%, transparent);
  margin-bottom: 1.5rem;
  letter-spacing: -0.05em;
}

.not-found h1 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.not-found p {
  max-width: 480px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
}

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

/* ── Tag page ─────────────────────────────────────────────── */
.tag-header {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.tag-page-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.tag-page-list li {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}

.tag-page-list li:hover {
  border-color: var(--border2);
  background: rgba(255,255,255,0.02);
}

.tag-page-list a {
  display: block;
  padding: 1rem 1.25rem;
  color: var(--text);
  font-size: 1rem;
  transition: color 0.2s;
}

.tag-page-list a:hover { color: var(--accent); }

.no-pages-found {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg2);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-copy a {
  color: var(--text-muted);
}

.footer-copy a:hover {
  color: var(--accent);
}

.footer-copy a.theme-credit-author {
  color: var(--accent);
}
.footer-copy a.theme-credit-author:hover {
  color: var(--accent2);
}

.footer-powered {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-powered a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-powered a:hover { color: var(--accent); }

/* Bloc réseaux sociaux (plugin SEO) — aligné sur le style du footer */
.footer-social {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-social .seo-social-links {
  align-items: center;
  gap: 0.5rem;
}
.footer-social .seo-social-links > span {
  color: var(--text-muted);
}
.footer-social .seo-social-links a {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  opacity: 0.8;
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}
.footer-social .seo-social-links a:hover {
  color: var(--accent);
  opacity: 1;
}
.footer-social .seo-social-links a svg,
.footer-social .seo-social-links a img {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.footer-social .seo-social-links a i {
  font-size: 17px;
  line-height: 1;
}

.footer-rss {
  display: flex;
  align-items: center;
}

.footer-rss .rss-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-rss .rss-link:hover { color: var(--accent); }

.footer-admin {
  font-size: 0.8rem;
}

/* ── Divider ──────────────────────────────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-divider::before, .section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Utilities ────────────────────────────────────────────── */
.text-muted  { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.mt-3  { margin-top: 1rem; }
.mt-4  { margin-top: 1.5rem; }
.mt-5  { margin-top: 2.5rem; }
.mb-3  { margin-bottom: 1rem; }
.mb-4  { margin-bottom: 1.5rem; }
.mb-5  { margin-bottom: 2.5rem; }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fadeUp { animation: fadeUp 0.6s ease both; }
.animate-fadeIn { animation: fadeIn 0.5s ease both; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-burger { display: flex; }

  .blog-post {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .blog-post-image {
    order: 0;
    max-height: 260px;  /* évite que l'image occupe toute la hauteur en colonne unique */
  }

  .contact-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 0;
  }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --nav-h: 60px; }

  main { padding-top: calc(var(--nav-h) + 2rem); }

  .container, .content-container { padding: 0 1.25rem; }

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

  .footer-inner { flex-direction: column; text-align: center; }

  .not-found { padding: 5rem 1.5rem; }
}

/* ── Utility: selection ───────────────────────────────────── */
::selection {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--text);
}

/* ============================================================
   PRICING CARDS — Lumière Theme
   ============================================================ */

/* ── Pricing grid wrapper ─────────────────────────────────── */
.pricing-grid,
.plans-grid,
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
  align-items: stretch;
}

/* Column wrapper: label above + card below */
.pricing-grid > div,
.plans-grid > div,
.price-grid > div {
  display: flex;
  flex-direction: column;
}

/* ── Base card ────────────────────────────────────────────── */
.pricing-card,
.plan-card,
.price-card {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.pricing-card::before,
.plan-card::before,
.price-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.pricing-card:hover,
.plan-card:hover,
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.18);
}

.pricing-card.featured:hover,
.price-card.featured:hover {
  box-shadow: 0 20px 56px color-mix(in srgb, var(--accent) 20%, transparent), 0 4px 16px rgba(0,0,0,0.5);
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
}

/* ── Plan label (sits above card) ────────────────────────── */
.pricing-card > *:first-child:not(.plan-badge):not(.price-amount):not(ul),
.plan-label,
.price-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: block;
}

/* Label outside the card (direct child of grid column) */
.pricing-grid > div > .plan-label,
.plans-grid > div > .plan-label {
  margin-bottom: 0.65rem;
  margin-top: 0;
}

/* ── Plan name / badge ────────────────────────────────────── */
.plan-name,
.plan-badge,
.pricing-card h2,
.pricing-card h3,
.price-card h2,
.price-card h3 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* ── Price amount ─────────────────────────────────────────── */
.price-amount,
.plan-price,
.pricing-price {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--text);
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
}

.price-amount .currency,
.price-amount .price-currency {
  font-size: 0.45em;
  font-weight: 400;
  vertical-align: super;
  margin-right: 0.1em;
  color: var(--text-muted);
}

.price-amount .period {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 0.25em;
}

.price-per {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.4rem;
  margin-bottom: 0;
}

/* ── Price divider ────────────────────────────────────────── */
.pricing-card hr,
.price-card hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.75rem 0;
}

/* ── Features list ────────────────────────────────────────── */
.pricing-card ul,
.plan-card ul,
.price-card ul,
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pricing-card ul li,
.plan-card ul li,
.price-card ul li,
.pricing-features li {
  font-size: 0.92rem;
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.5;
}

/* Feature check icon — replaces ✔️ emoji */
.pricing-card ul li::before,
.price-card ul li::before {
  content: '';
  display: inline-flex;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background-color: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='9' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M6.5 10.5l2.5 2.5 4.5-5' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='9' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M6.5 10.5l2.5 2.5 4.5-5' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Strip native emoji checkmarks if present */
.pricing-card ul li > *:first-child,
.price-card ul li > *:first-child {
  flex: 1;
}

/* ── CTA button ───────────────────────────────────────────── */
.pricing-card a[href],
.price-card a[href],
.plan-card a[href] {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  background: transparent;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, color 0.25s, gap 0.25s;
  margin-top: auto;
  align-self: flex-start;
}

.pricing-card a[href]::after,
.price-card a[href]::after,
.plan-card a[href]::after {
  content: '→';
  display: inline-block;
  transition: transform 0.25s ease;
}

.pricing-card a[href]:hover,
.price-card a[href]:hover,
.plan-card a[href]:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-color: var(--accent);
  color: var(--accent2);
  gap: 0.75rem;
}

.pricing-card a[href]:hover::after,
.price-card a[href]:hover::after,
.plan-card a[href]:hover::after {
  transform: translateX(4px);
}

/* ── FEATURED / highlighted card ─────────────────────────── */
.pricing-card.featured,
.pricing-card.popular,
.pricing-card.recommended,
.price-card.featured,
.plan-card.featured {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 6%, transparent) 0%, var(--bg2) 50%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 15%, transparent),
              0 24px 64px rgba(0,0,0,0.5);
}

.pricing-card.featured::after,
.price-card.featured::after {
  content: 'Populaire';
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

.pricing-card.featured a[href],
.price-card.featured a[href] {
  background: var(--accent);
  color: var(--bg);
  border-color: transparent;
  font-weight: 600;
}

.pricing-card.featured a[href]:hover,
.price-card.featured a[href]:hover {
  background: var(--accent2);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent);
}

/* ── FALLBACK — style the raw HTML from CMS content ──────── */
/*
  FastCMS price cards rendered inline in page content
  target: div with border containing h2/h3 price + ul + a
*/

.prose > div,
.company-intro > div {
  /* don't override globally, only target price-like wrappers below */
}

/* Target the label sitting outside/above the card */
.prose > p + div > p:first-child,
.company-intro > p + div > p:first-child {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Inline price card detection (border wrapper style) ───── */
/*
  The CMS may output a wrapping div with inline border style.
  We target divs that contain a large heading + ul inside .prose / .company-intro
*/

.prose div[style*="border"],
.company-intro div[style*="border"],
.content-container div[style*="border"] {
  position: relative;
  background: var(--bg2) !important;
  border: 1px solid var(--border2) !important;
  border-radius: 20px !important;
  padding: 2.25rem 2rem !important;
  margin-bottom: 1.5rem !important;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.prose div[style*="border"]::before,
.company-intro div[style*="border"]::before,
.content-container div[style*="border"]::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.025) 0%, transparent 60%);
  pointer-events: none;
}

.prose div[style*="border"]:hover,
.company-intro div[style*="border"]:hover,
.content-container div[style*="border"]:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.18) !important;
}

/* Price heading inside card */
.prose div[style*="border"] h2,
.prose div[style*="border"] h3,
.company-intro div[style*="border"] h2,
.company-intro div[style*="border"] h3,
.content-container div[style*="border"] h2,
.content-container div[style*="border"] h3 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 4.2rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

/* Feature list inside card */
.prose div[style*="border"] ul,
.company-intro div[style*="border"] ul,
.content-container div[style*="border"] ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.prose div[style*="border"] ul li,
.company-intro div[style*="border"] ul li,
.content-container div[style*="border"] ul li {
  font-size: 0.93rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.5;
  padding: 0.15rem 0;
}

.prose div[style*="border"] ul li::before,
.company-intro div[style*="border"] ul li::before,
.content-container div[style*="border"] ul li::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-color: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='9' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M6.5 10.5l2.5 2.5 4.5-5' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='9' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M6.5 10.5l2.5 2.5 4.5-5' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Buy link inside card */
.prose div[style*="border"] a,
.company-intro div[style*="border"] a,
.content-container div[style*="border"] a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.6rem;
  border-radius: 100px;
  background: transparent;
  color: var(--accent) !important;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  text-decoration: none !important;
  transition: all 0.25s;
  margin-top: 0.5rem;
}

.prose div[style*="border"] a:hover,
.company-intro div[style*="border"] a:hover,
.content-container div[style*="border"] a:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-color: var(--accent);
  color: var(--accent2) !important;
  gap: 0.85rem;
}

/* Label sitting just before the card (outside) */
.prose > p:has(+ div[style*="border"]),
.company-intro > p:has(+ div[style*="border"]) {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .pricing-grid,
  .plans-grid,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card,
  .price-card {
    padding: 1.75rem 1.5rem;
  }
}

/* ── Page title ─────────────────────────────────────────────── */
.page-title {
  color: var(--accent);
}

/* ── Blog sort ──────────────────────────────────────────────── */
.blog-sort {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.blog-sort-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.blog-sort-buttons {
  display: flex;
  gap: 4px;
}

.sort-btn {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: transparent;
  transition: all 0.2s;
}

.sort-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.sort-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1a1a;
}
