/* ============================================================
   Connexus.lu — Feuille de style principale
   Design : Dark professionnel, accents émeraude, typographie soignée
   ============================================================ */

/* ===== RESET & BASE ===== */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

:root {
  /* Couleurs */
  --bg-deep:        #050810;
  --bg-dark:        #0a0f1c;
  --bg-card:        #0f1729;
  --bg-elevated:    #131c33;
  --bg-soft:        #1a2540;

  --border:         #1f2a44;
  --border-soft:    #16203a;
  --border-strong:  #2a3a5e;

  --text-primary:   #e8edf7;
  --text-secondary: #a3b1cc;
  --text-muted:     #6b7a99;

  --accent:         #10b981;  /* émeraude — couleur principale */
  --accent-bright:  #34d399;
  --accent-dark:    #047857;
  --accent-glow:    rgba(16, 185, 129, 0.15);
  --accent-mint:    #68ff92;  /* vert menthe — accents identité uniquement */

  --gold:           #f59e0b;  /* réservé aux couleurs de catégories d'articles */
  --blue:           #3b82f6;
  --red:            #ef4444;

  --gradient-accent: linear-gradient(135deg, #10b981 0%, #047857 100%);
  --gradient-dark:   linear-gradient(180deg, #0a0f1c 0%, #050810 100%);
  --gradient-card:   linear-gradient(145deg, #0f1729 0%, #0a1020 100%);

  /* Typographie */
  --font-display: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Rayons */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  /* Ombres */
  --shadow-sm:  0 2px 8px rgba(0,0,0,.2);
  --shadow:     0 8px 24px rgba(0,0,0,.3);
  --shadow-lg:  0 20px 50px rgba(0,0,0,.4);
  --shadow-glow: 0 0 40px var(--accent-glow);

  /* Transitions */
  --t-fast:  150ms ease;
  --t:       250ms cubic-bezier(.4, 0, .2, 1);
  --t-slow:  500ms cubic-bezier(.4, 0, .2, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-deep);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Background subtil avec grille + halo */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(16,185,129,.10), transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(6,182,212,.06), transparent 70%),
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: -1;
}

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

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent-mint);
}

.lead { font-size: 1.15rem; color: var(--text-secondary); }

/* ===== LAYOUT ===== */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; position: relative; }
@media (max-width: 768px) { section { padding: 64px 0; } }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(5, 8, 16, 0.75);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-soft);
  transition: all var(--t);
}
.site-header.scrolled {
  background: rgba(5, 8, 16, 0.95);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--text-primary); }
.site-logo {
  display: block;
  height: 38px;
  width: auto;
  transition: opacity var(--t-fast);
}
.logo:hover .site-logo { opacity: 0.85; }
.footer-logo {
  display: block;
  height: 30px;
  width: auto;
  transition: opacity var(--t-fast);
}
.logo:hover .footer-logo { opacity: 0.85; }
.logo-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--gradient-accent);
  display: grid; place-items: center;
  color: #052e22;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 500;
  transition: all var(--t-fast);
}
.nav a:hover, .nav a.active {
  color: var(--accent-mint);
  background: var(--bg-soft);
}

.nav-cta {
  background: var(--accent) !important;
  color: #052e22 !important;
  font-weight: 600 !important;
  margin-left: 8px;
  padding: 10px 20px !important;
}
.nav-cta:hover {
  background: var(--accent-bright) !important;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--border);
  color: var(--text-primary);
  width: 44px; height: 44px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .site-logo { height: 32px; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 16px;
    gap: 4px;
  }
  .nav.is-open a { width: 100%; padding: 14px 16px; }
}

main { padding-top: 80px; }

/* ===== HERO ===== */
.hero {
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 24px;
  max-width: 16ch;
}
.hero h1 .accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  max-width: 60ch;
  font-size: 1.2rem;
  line-height: 1.65;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 60px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid var(--border-soft);
}
.metric { padding: 4px 0; }
.metric-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}
.metric-label {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.4;
}

/* ===== BOUTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #052e22;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-bright);
  color: #052e22;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16,185,129,.25);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: var(--accent-glow);
}
.btn-ghost {
  background: var(--bg-soft);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-elevated); border-color: var(--border-strong); }

.btn-arrow::after {
  content: '→';
  transition: transform var(--t);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.section-header.left { text-align: left; margin-left: 0; }
.section-header p {
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 1.08rem;
}

/* ===== CARDS ===== */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--accent-glow);
  display: grid; place-items: center;
  color: var(--accent-bright);
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-secondary); font-size: 0.97rem; }

/* ===== GRID ===== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ===== APPROCHE (3 piliers) ===== */
.pillars {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.pillar {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: all var(--t);
}
.pillar:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.pillar-number {
  position: absolute;
  top: 20px; right: 24px;
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--bg-elevated);
  line-height: 1;
  pointer-events: none;
}
.pillar h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
}
.pillar p { color: var(--text-secondary); position: relative; z-index: 1; }

/* ===== SERVICES ===== */
.service-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.service-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--t);
}
.service-item:hover {
  border-color: var(--accent);
  background: var(--bg-elevated);
}
.service-check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent-bright);
  display: grid; place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  margin-top: 2px;
}
.service-item h4 { font-size: 1rem; margin-bottom: 2px; }
.service-item p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ===== AIDES SME PACKAGES ===== */
.aides-section {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(16,185,129,.10), transparent 70%),
    var(--bg-deep);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.aides-banner {
  background: linear-gradient(135deg, rgba(16,185,129,.12), rgba(4,120,87,.06));
  border: 1px solid rgba(16,185,129,.25);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}
.aides-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(104,255,146,.10), transparent 50%);
  pointer-events: none;
}
.aides-amount {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 4.8rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin: 16px 0;
}
.aides-amount small {
  font-size: 0.35em;
  color: var(--text-secondary);
  -webkit-text-fill-color: var(--text-secondary);
  display: block;
  margin-top: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.aides-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.aide-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--t);
}
.aide-card:hover { border-color: var(--accent-mint); transform: translateY(-4px); }
.aide-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.3);
  color: var(--accent-bright);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.aide-card h3 { margin-bottom: 14px; }
.aide-card ul {
  list-style: none;
  margin-top: 16px;
}
.aide-card ul li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.aide-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 8px;
  color: var(--accent);
  font-weight: 800;
}

/* ===== PROCESS ===== */
.process-steps { display: grid; gap: 16px; }
.process-step {
  display: flex; gap: 24px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--t);
}
.process-step:hover { border-color: var(--accent); transform: translateX(4px); }
.process-number {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  color: var(--accent-bright);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.process-step h4 { margin-bottom: 4px; }
.process-step p { color: var(--text-secondary); font-size: 0.94rem; }

/* ===== ARTICLES ===== */
.article-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--t);
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}
.article-card a { color: inherit; display: contents; }
.article-image {
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  overflow: hidden;
  position: relative;
}
.article-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.article-card:hover .article-image img { transform: scale(1.05); }
.article-image-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-soft) 100%);
  display: grid; place-items: center;
  color: var(--text-muted);
}
.article-image-placeholder [data-lucide],
.article-image-placeholder svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
  opacity: 0.35;
}
/* Corps de carte article : scopé à .article-card pour ne PAS être
   écrasé par la règle ".article-body" de la page article (plus bas). */
.article-card .article-body,
.article-card .card-body {
  padding: 1.5rem 1.5rem 1.75rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
@media (max-width: 640px) {
  .article-card .article-body,
  .article-card .card-body {
    padding: 1.25rem;
  }
}
/* Image de couverture des cartes "À lire également" (article.php) :
   bord-à-bord en haut, jamais de padding latéral. */
.article-card .card-cover {
  display: block;
}
.article-card .card-cover img {
  width: 100%;
  height: auto;
  max-height: 360px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.article-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.category-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--accent-glow);
  color: var(--accent-bright);
  border: 1px solid rgba(16,185,129,.2);
}
.article-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  line-height: 1.35;
}
.article-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex: 1;
}
.article-link {
  margin-top: 20px;
  color: var(--accent-bright);
  font-weight: 600;
  font-size: 0.92rem;
}

/* ===== ARTICLE SOLO ===== */
.article-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 60px;
}
.article-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text-primary);
}
.article-content h2 {
  margin: 48px 0 18px;
  font-size: 1.7rem;
}
.article-content h3 { margin: 36px 0 14px; font-size: 1.35rem; }
.article-content p { margin-bottom: 20px; color: var(--text-secondary); }
.article-content ul, .article-content ol { margin: 0 0 20px 24px; }
.article-content li { color: var(--text-secondary); margin-bottom: 8px; }
.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--accent-glow);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
.article-content strong { color: var(--text-primary); font-weight: 600; }
.article-content code {
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--accent-bright);
}
.article-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 20px 0;
}
.article-content img {
  border-radius: var(--radius);
  margin: 24px 0;
}
.article-content a {
  text-decoration: underline;
  text-decoration-color: rgba(16,185,129,.3);
  text-underline-offset: 3px;
}

/* ===== FILTRES CATÉGORIES ===== */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}
.category-filter a {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--t-fast);
}
.category-filter a:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}
.category-filter a.active {
  background: var(--accent);
  color: #052e22;
  border-color: var(--accent);
}

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info h2 { margin-bottom: 18px; }
.contact-info p { color: var(--text-secondary); margin-bottom: 32px; }
.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}
.contact-detail:last-child { border-bottom: none; }
.contact-detail-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-glow);
  color: var(--accent-bright);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-detail strong { display: block; font-size: 0.85rem; color: var(--text-muted); font-weight: 500; margin-bottom: 2px; }
.contact-detail a, .contact-detail span { color: var(--text-primary); font-weight: 500; }

.contact-form {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-group { margin-bottom: 20px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-group label.required::after { content: ' *'; color: var(--red); }
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.96rem;
  transition: all var(--t-fast);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }

.flash {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.94rem;
}
.flash-success { background: var(--accent-glow); border: 1px solid var(--accent); color: var(--accent-bright); }
.flash-error   { background: rgba(239,68,68,.1); border: 1px solid var(--red); color: #fca5a5; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 80px 0 30px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 60px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { color: var(--text-secondary); font-size: 0.94rem; margin-top: 16px; max-width: 30ch; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-secondary); font-size: 0.94rem; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--accent-bright); }

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: var(--text-muted); }
.footer-legal a:hover { color: var(--accent-bright); }

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(135deg, rgba(16,185,129,.08) 0%, rgba(6,182,212,.05) 100%);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: var(--radius-xl);
  padding: 60px;
  text-align: center;
  margin: 80px 0 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(16,185,129,.1), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(6,182,212,.08), transparent 60%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { color: var(--text-secondary); margin-bottom: 28px; font-size: 1.08rem; max-width: 50ch; margin-inline: auto; }
@media (max-width: 700px) { .cta-band { padding: 40px 24px; } }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 60px;
}
.pagination a, .pagination span {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.94rem;
  min-width: 44px;
  text-align: center;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent-bright); }
.pagination .current {
  background: var(--accent);
  color: #052e22;
  border-color: var(--accent);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 800ms cubic-bezier(.4, 0, .2, 1) both; }
.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 300ms; }
.delay-4 { animation-delay: 400ms; }

/* ===== UTILITAIRES ===== */
.text-center { text-align: center; }
.text-accent  { color: var(--accent-bright); }
.text-muted   { color: var(--text-muted); }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }

/* ===== ARTICLE PAGE ===== */
.article-page { padding-top: 40px; }
.article-header { padding: 40px 0 32px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent-bright); }
.breadcrumb .sep { color: var(--text-muted); }
.article-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin: 18px 0 20px;
  letter-spacing: -0.02em;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.article-meta .dot { color: var(--border); }
.article-cover {
  margin: 24px 0 32px;
}
.article-cover img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.article-body { padding: 0 0 60px; }
.article-share {
  margin-top: 50px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.share-label {
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: 8px;
}
.article-share a {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all .2s;
}
.article-share a:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: rgba(16,185,129,.06);
}

/* ===== PROSE (contenu article + pages légales) ===== */
.prose {
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.75;
}
.prose h2 {
  font-size: 1.65rem;
  margin: 2.2em 0 0.8em;
  letter-spacing: -0.01em;
  color: #fff;
}
.prose h3 {
  font-size: 1.3rem;
  margin: 1.8em 0 0.6em;
  color: #fff;
}
.prose p { margin: 0 0 1.2em; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.5em; }
.prose li { margin-bottom: 0.5em; }
.prose a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-decoration-color: rgba(16,185,129,.4);
  text-underline-offset: 3px;
}
.prose a:hover { text-decoration-color: var(--accent-bright); }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 22px;
  margin: 1.6em 0;
  color: var(--text-secondary);
  font-style: italic;
}
.prose code {
  background: rgba(16,185,129,.08);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  color: var(--accent-bright);
}
.prose pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 1.5em 0;
}
.prose pre code {
  background: transparent;
  padding: 0;
  color: var(--text-primary);
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.5em 0;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}
.prose strong { color: #fff; font-weight: 600; }
.prose .muted, .muted { color: var(--text-muted); }

/* ===== CATEGORY CHIPS ===== */
.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--cat-color, var(--accent)) 12%, transparent);
  color: var(--cat-color, var(--accent-bright));
  border: 1px solid color-mix(in srgb, var(--cat-color, var(--accent)) 40%, transparent);
}
.category-chip.small { padding: 4px 10px; font-size: 0.76rem; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-field { margin-bottom: 18px; display: flex; flex-direction: column; }
.form-field label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.96rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16,185,129,.15);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.field-error {
  display: block;
  color: #fca5a5;
  font-size: 0.84rem;
  margin-top: 5px;
}
.form-legal {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 14px 0 20px;
}
.form-legal a { color: var(--accent-bright); text-decoration: underline; }

.contact-aside { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
}
.contact-card h3 {
  font-size: 1.05rem;
  margin: 0 0 14px;
  color: #fff;
}
.contact-card.highlight {
  background: linear-gradient(135deg, rgba(16,185,129,.10), rgba(16,185,129,.02));
  border-color: rgba(16,185,129,.3);
}
.contact-card.highlight h3 { color: var(--accent-bright); }
.contact-info { list-style: none; margin: 0; padding: 0; }
.contact-info li { margin-bottom: 14px; }
.info-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.contact-info a { color: var(--accent-bright); }
.contact-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}
.contact-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 36px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 0.94rem;
}
.contact-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  background: var(--accent);
  color: #052e22;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
}

/* ===== ALERTS ===== */
.alert {
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 24px;
  border: 1px solid;
}
.alert strong { display: block; margin-bottom: 4px; font-size: 1.02rem; }
.alert p { margin: 0; font-size: 0.94rem; }
.alert-success {
  background: rgba(16,185,129,.08);
  border-color: rgba(16,185,129,.4);
  color: #6ee7b7;
}
.alert-error {
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.4);
  color: #fca5a5;
}
.alert-info {
  background: rgba(6,182,212,.08);
  border-color: rgba(6,182,212,.4);
  color: #67e8f9;
}
.alert-warning {
  background: rgba(245,158,11,.08);
  border-color: rgba(245,158,11,.4);
  color: #fbbf24;
}

/* ===== 404 ===== */
.error-page {
  padding: 100px 0 120px;
  text-align: center;
}
.error-code {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}
.error-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ===== ADMIN (basic, le reste dans admin.css) ===== */
.btn-sm { padding: 8px 14px; font-size: 0.86rem; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }

/* ===== FILTRES CATÉGORIES (actualites) ===== */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.category-filters a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all .2s;
}
.category-filters a:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}
.category-filters a.active {
  background: var(--accent);
  color: #052e22;
  border-color: var(--accent);
}
.category-filters a.active.colored {
  background: var(--cat-color);
  border-color: var(--cat-color);
  color: #fff;
}

/* ===== CROSS-BRAND (Transform-IT) ===== */
.cross-brand {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 1.5rem;
  padding-top: 1rem;
  text-align: center;
}
.cross-brand p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.cross-brand strong {
  color: var(--text-primary);
  font-weight: 500;
}
.cross-brand a {
  color: var(--accent-mint);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.cross-brand a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.contact-cross-brand {
  padding: 3rem 0;
  background: linear-gradient(135deg,
    rgba(16, 185, 129, 0.04) 0%,
    rgba(104, 255, 146, 0.04) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.cross-brand-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}
.cross-brand-card h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.cross-brand-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.cross-brand-card strong {
  color: var(--accent-mint);
  font-weight: 600;
}
.cross-brand-card .btn {
  margin-top: 1rem;
}

/* ===== CATEGORY ICONS (Lucide) ===== */
.category-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  width: 1em;
  height: 1em;
  stroke-width: 2;
}
/* Chips/badges où l'icône suit la couleur de la catégorie */
.category-chip .category-icon,
.badge .category-icon {
  margin-right: 0.4em;
  stroke: currentColor;
}

