/* ====== REFONTE 2026 - SECUREZONE STYLE ====== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #0d1117;
  --bg-soft: #161b22;
  --card: #1c2128;
  --surface: #13181f;
  --accent: #00e896;
  --accent-2: #58a6ff;
  --text: #e6edf3;
  --muted: #7d8590;
  --border: #30363d;
  --divider: #21262d;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  --radius: 14px;
  --radius-lg: 20px;
}

body[data-theme="light"] {
  --bg: #f3f7fc;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --surface: #eef3f9;
  --accent: #0ea5a0;
  --accent-2: #2563eb;
  --text: #0f172a;
  --muted: #475569;
  --border: #cbd5e1;
  --divider: #dbe4ee;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  background:
    radial-gradient(circle at 12% -8%, rgba(0, 232, 150, 0.16), transparent 38%),
    radial-gradient(circle at 88% 4%, rgba(88, 166, 255, 0.14), transparent 42%),
    var(--bg);
  color: var(--text);
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(var(--divider) 1px, transparent 1px),
    linear-gradient(90deg, var(--divider) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.32;
  animation: gridDrift 35s linear infinite;
}

body::after {
  background:
    radial-gradient(circle at 28% 24%, rgba(0, 232, 150, 0.15), transparent 52%),
    radial-gradient(circle at 70% 20%, rgba(88, 166, 255, 0.16), transparent 48%);
  opacity: 0.55;
  filter: blur(34px);
  animation: floatGlow 20s ease-in-out infinite;
}

@keyframes floatGlow {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(40px, -30px, 0) scale(1.08);
  }
}

@keyframes gridDrift {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: -220px 120px, -220px 120px;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(230, 237, 243, 0.12);
  z-index: 1000;
}

.scroll-progress #progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #14b8a6, var(--accent-2));
  border-radius: 999px;
  transition: width 0.2s ease;
}

.site-header {
  padding: 32px 16px 60px;
  background: linear-gradient(165deg, rgba(0, 232, 150, 0.08), rgba(88, 166, 255, 0.07));
  position: relative;
  overflow: hidden;
}

.site-header,
.main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(0, 232, 150, 0.3) 0%, rgba(0, 232, 150, 0) 70%);
  filter: blur(6px);
  z-index: 0;
}

.navbar {
  max-width: 1320px;
  margin: 0 auto 40px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: var(--radius);
  background: rgba(22, 27, 34, 0.82);
  border: 1px solid var(--divider);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 12px;
  z-index: 10;
  box-shadow: 0 1px 0 rgba(230, 237, 243, 0.03), var(--shadow);
}

.brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  font-size: 1.08rem;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(88, 166, 255, 0.12);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(88, 166, 255, 0.1);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  background: rgba(88, 166, 255, 0.18);
  border-color: var(--accent-2);
}

body[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.92);
}

body[data-theme="light"] .site-header {
  background: linear-gradient(165deg, rgba(14, 165, 160, 0.12), rgba(37, 99, 235, 0.1));
}

body[data-theme="light"]::before {
  opacity: 0.18;
}

body[data-theme="light"] .nav-links a:hover {
  background: rgba(37, 99, 235, 0.12);
}

body[data-theme="light"] .site-footer {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.95), rgba(226, 236, 248, 0.95));
  border-top-color: rgba(148, 163, 184, 0.4);
}

body[data-theme="light"] .footer-content {
  color: #1f2937;
}

body[data-theme="light"] .footer-content p {
  color: #334155;
}

body[data-theme="light"] .footer-content a {
  color: #1d4ed8;
  font-weight: 600;
}

body[data-theme="light"] .footer-content a:hover {
  color: #1e40af;
}

body[data-theme="light"] .panel {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(148, 163, 184, 0.4);
  color: #0f172a;
}

body[data-theme="light"] .company-grid .panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(241, 245, 249, 0.9));
}

body[data-theme="light"] .company-grid .panel p {
  color: #334155;
}

body[data-theme="light"] .tag {
  background: rgba(37, 99, 235, 0.14);
  color: #1e3a8a;
}

body[data-theme="light"] .company-stat {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(148, 163, 184, 0.4);
}

.hero {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text .eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 12px;
  font-family: 'Space Mono', 'Courier New', monospace;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-text p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-ghost,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #0d1117;
  box-shadow: 0 2px 14px rgba(0, 232, 150, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #00c47e;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(28, 33, 40, 0.9);
}

.btn-ghost:hover {
  border-color: var(--accent);
}

body[data-theme="light"] .btn-ghost {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.55);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

body[data-theme="light"] .btn-ghost:hover {
  background: #f8fbff;
  border-color: rgba(37, 99, 235, 0.5);
}

.btn-secondary {
  background: rgba(28, 33, 40, 0.92);
  color: var(--text);
  border-color: var(--border);
}

body[data-theme="light"] .btn-secondary {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.55);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

body[data-theme="light"] .btn-secondary:hover {
  border-color: rgba(37, 99, 235, 0.5);
  background: #f8fbff;
}

.hero-media {
  display: grid;
  gap: 20px;
  justify-items: center;
}

.hero-logos {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.hero-logos img {
  max-height: 140px;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.35));
}

.hero-related-links {
  width: max-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  justify-self: center;
  margin-top: 2px;
}

.hero-related-links__label {
  margin: 0 0 10px;
  font-size: 0.84rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
  font-family: 'Space Mono', 'Courier New', monospace;
}

.hero-related-links__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-related-links__download {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.hero-related-links__btn {
  padding: 9px 14px;
  font-size: 0.92rem;
}

.hero-related-links__btn--wide {
  min-width: 260px;
  justify-content: center;
}

.hero-related-links--stacked {
  margin-top: 10px;
}

body[data-theme="light"] .hero-related-links {
  background: transparent;
  border: 0;
  box-shadow: none;
}

body[data-theme="light"] .hero-related-links__label {
  color: #475569;
}

@media (max-width: 680px) {
  .hero-related-links {
    justify-self: center;
    max-width: 100%;
  }

  .hero-related-links__actions {
    width: 100%;
  }

  .hero-related-links__btn {
    width: 100%;
    justify-content: center;
  }

  .hero-related-links__btn--wide {
    min-width: 0;
  }
}

.main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 36px 16px 80px;
  flex: 1;
}

.section {
  margin-bottom: 60px;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 750px;
}

.panel {
  background: rgba(22, 27, 34, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  color: var(--text);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card-grid a {
  cursor: pointer;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.card {
  background: rgba(28, 33, 40, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 22px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  color: #f7f9ff;
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(88, 166, 255, 0.45);
}

.card img {
  border-radius: 16px;
  margin-top: 6px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(88, 166, 255, 0.14);
  color: #b7d8ff;
  font-size: 0.85rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  align-items: start;
}

.media-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.source-block {
  background: rgba(19, 24, 31, 0.96);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 20px;
}

.source-block h4 {
  margin-bottom: 12px;
  color: var(--accent);
}

.source-block a {
  color: var(--accent-2);
}

.veille-page .panel h3 {
  margin-top: 20px;
  margin-bottom: 12px;
  color: #d9e7ff;
}

.veille-page .panel p {
  color: #eaf1ff;
  line-height: 1.6;
}

.veille-focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 10px;
}

.focus-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.focus-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #ffffff;
}

.focus-card p {
  font-size: 0.95rem;
  color: var(--muted);
}

.pill-list,
.check-list,
.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.pill-list li,
.source-list li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.92rem;
  line-height: 1.35;
}

.check-list {
  flex-direction: column;
  gap: 8px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  line-height: 1.45;
  color: #ecf3ff;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.44rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.18);
}

.veille-page .source-block {
  background: rgba(13, 20, 35, 0.96);
}

.veille-page .source-block h4 {
  margin-bottom: 14px;
}

body[data-theme="light"] .veille-page .panel h3 {
  color: #1e3a8a;
}

body[data-theme="light"] .veille-page .panel p {
  color: #334155;
}

body[data-theme="light"] .focus-card {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.4);
}

body[data-theme="light"] .focus-card h4 {
  color: #0f172a;
}

body[data-theme="light"] .focus-card p {
  color: #475569;
}

body[data-theme="light"] .pill-list li,
body[data-theme="light"] .source-list li {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(148, 163, 184, 0.4);
  color: #334155;
}

body[data-theme="light"] .pill-list li a,
body[data-theme="light"] .source-list li a {
  color: #1d4ed8;
}

body[data-theme="light"] .check-list li {
  color: #334155;
}

body[data-theme="light"] .check-list li::before {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

body[data-theme="light"] .veille-page .source-block {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.45);
}

body[data-theme="light"] .veille-page .source-block h4 {
  color: #0f766e;
}

body[data-theme="light"] .thm-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(37, 99, 235, 0.12) 100%);
  border-color: rgba(37, 99, 235, 0.35);
}

body[data-theme="light"] .thm-card::before {
  background: radial-gradient(circle, rgba(14, 165, 160, 0.2) 0%, transparent 70%);
}

body[data-theme="light"] .thm-card-body h3 {
  color: #0f172a;
}

body[data-theme="light"] .thm-card-body p {
  color: #334155;
}

body[data-theme="light"] .yt-section-label {
  color: #475569;
}

body[data-theme="light"] .yt-card {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.45);
}

body[data-theme="light"] .yt-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
}

body[data-theme="light"] .yt-card-body h4 {
  color: #0f172a;
}

body[data-theme="light"] .yt-card-body p {
  color: #475569;
}

/* ── Section Veilles – index.html ── */
.index-veille-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-bottom: 24px;
}

.index-veille-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(28, 33, 40, 0.96);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  color: var(--text);
  text-decoration: none;
}

.index-veille-card:hover {
  transform: translateY(-6px);
  border-color: rgba(88, 166, 255, 0.45);
  box-shadow: 0 16px 40px rgba(4, 10, 22, 0.5);
}

.index-veille-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.index-veille-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.04);
}

.index-veille-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-2);
  margin-bottom: 4px;
}

.index-veille-card-header h3 {
  font-size: 1.15rem;
  color: #fff;
  margin: 0;
}

.index-veille-card > p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.index-veille-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.index-veille-channels img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
}

.index-veille-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}

/* ── Bande outils ── */
.index-veille-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: rgba(19, 24, 31, 0.94);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
}

.index-veille-tools-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  white-space: nowrap;
}

.index-veille-tools ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.index-veille-tools li {
  background: rgba(88, 166, 255, 0.1);
  border: 1px solid rgba(88, 166, 255, 0.25);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.85rem;
  color: var(--text);
}

.index-veille-tools li a {
  color: var(--accent-2);
}

body[data-theme="light"] .index-veille-card {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.45);
  color: #0f172a;
}

body[data-theme="light"] .index-veille-card:hover {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.14);
}

body[data-theme="light"] .index-veille-logo {
  background: rgba(15, 23, 42, 0.05);
}

body[data-theme="light"] .index-veille-badge {
  color: #1d4ed8;
}

body[data-theme="light"] .index-veille-card-header h3 {
  color: #0f172a;
}

body[data-theme="light"] .index-veille-card > p {
  color: #475569;
}

body[data-theme="light"] .index-veille-channels img {
  border-color: rgba(148, 163, 184, 0.35);
}

body[data-theme="light"] .index-veille-link {
  color: #0f766e;
}

body[data-theme="light"] .index-veille-tools {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.45);
}

body[data-theme="light"] .index-veille-tools-label {
  color: #475569;
}

body[data-theme="light"] .index-veille-tools li {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.28);
  color: #0f172a;
}

body[data-theme="light"] .index-veille-tools li a {
  color: #1d4ed8;
}

/* ── Titre de section avec icône logo ── */
.veille-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-title-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
}

.focus-card-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* ── Carte TryHackMe ── */
.veille-platform-highlight {
  margin: 24px 0 20px;
}

.thm-card {
  background: linear-gradient(135deg, rgba(19, 24, 31, 0.95) 0%, rgba(88, 166, 255, 0.14) 100%);
  border: 1px solid rgba(88, 166, 255, 0.35);
  border-radius: 18px;
  padding: 28px 30px;
  position: relative;
  overflow: hidden;
}

.thm-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 232, 150, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.thm-badge {
  display: inline-block;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b1220;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.thm-card-body h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #fff;
}

.thm-card-body p {
  color: var(--muted);
  line-height: 1.65;
  max-width: 700px;
  margin-bottom: 20px;
}

.thm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b1220;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 232, 150, 0.35);
}

/* ── Label avant grille YouTube ── */
.yt-section-label {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 28px 0 14px;
  padding-left: 4px;
}

/* ── Grille chaînes YouTube ── */
.yt-channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.yt-card {
  background: rgba(28, 33, 40, 0.96);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.yt-card:hover {
  transform: translateY(-5px);
  border-color: rgba(88, 166, 255, 0.4);
}

.yt-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.yt-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yt-card-body h4 {
  font-size: 0.97rem;
  color: #ffffff;
}

.yt-card-body p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 680px) {
  .pill-list li,
  .source-list li {
    width: 100%;
    border-radius: 12px;
  }

  .yt-channels-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .thm-card {
    padding: 20px 18px;
  }
}

.pdf-container {
  max-width: 1100px;
  margin: 2rem auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.pdf-container embed,
.pdf-container iframe {
  width: 100%;
  min-height: 520px;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.bts-synthesis {
  max-width: 1100px;
  margin: 2rem auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(12, 18, 32, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.bts-synthesis__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.bts-synthesis__header h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.2px;
}

.bts-synthesis__header p {
  margin: 4px 0 0;
  color: var(--muted);
}

.bts-synthesis__session {
  margin: 0;
  font-weight: 700;
  color: var(--accent-2);
  white-space: nowrap;
}

.bts-synthesis__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.bts-synthesis__meta p {
  margin: 0;
  padding: 10px 14px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.bts-synthesis__meta p:nth-child(2n) {
  border-right: none;
}

.bts-synthesis__meta .bts-synthesis__url {
  grid-column: 1 / -1;
  border-right: none;
}

.bts-synthesis__table-wrap {
  overflow-x: auto;
}

.bts-synthesis__table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

.bts-synthesis__table th,
.bts-synthesis__table td {
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 10px 8px;
  vertical-align: middle;
}

.bts-synthesis__table thead th {
  background: #1f2937;
  color: #f8fafc;
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: center;
}

.bts-synthesis__table .bts-synthesis__skills-row th {
  background: #111827;
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 600;
}

.bts-col-real {
  min-width: 380px;
  text-align: left;
}

.bts-col-period {
  width: 88px;
}

.bts-synthesis__table tbody td:first-child {
  text-align: left;
}

.bts-synthesis__table tbody td:nth-child(2) {
  text-align: center;
  white-space: nowrap;
}

.bts-synthesis__table tbody td:not(:first-child):not(:nth-child(2)) {
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
}

.bts-synthesis__table .is-checked {
  background: rgba(132, 204, 22, 0.75);
  color: #0b1220;
}

.bts-section-row th {
  text-align: left;
  background: rgba(88, 166, 255, 0.13);
  color: #dbeafe;
  font-size: 0.86rem;
  letter-spacing: 0.2px;
}

.bts-synthesis__legend {
  padding: 14px 16px 18px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 8px 16px;
}

.bts-synthesis__legend p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

body[data-theme="light"] .bts-synthesis {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.45);
}

body[data-theme="light"] .bts-synthesis__header,
body[data-theme="light"] .bts-synthesis__meta,
body[data-theme="light"] .bts-synthesis__legend {
  border-color: rgba(148, 163, 184, 0.45);
}

body[data-theme="light"] .bts-synthesis__header h2 {
  color: #0f172a;
}

body[data-theme="light"] .bts-synthesis__header p,
body[data-theme="light"] .bts-synthesis__legend p {
  color: #334155;
}

body[data-theme="light"] .bts-synthesis__table thead th {
  background: #e2e8f0;
  color: #0f172a;
}

body[data-theme="light"] .bts-synthesis__table .bts-synthesis__skills-row th {
  background: #f1f5f9;
  color: #334155;
}

body[data-theme="light"] .bts-synthesis__table td,
body[data-theme="light"] .bts-synthesis__table th {
  border-color: rgba(148, 163, 184, 0.45);
}

body[data-theme="light"] .bts-section-row th {
  background: rgba(37, 99, 235, 0.1);
  color: #1e3a8a;
}

body[data-theme="light"] .bts-synthesis__table .is-checked {
  background: rgba(132, 204, 22, 0.9);
  color: #0b1220;
}

@media (max-width: 900px) {
  .bts-synthesis__header {
    flex-direction: column;
  }

  .bts-synthesis__meta {
    grid-template-columns: 1fr;
  }

  .bts-synthesis__meta p,
  .bts-synthesis__meta p:nth-child(2n),
  .bts-synthesis__meta .bts-synthesis__url {
    border-right: none;
  }

  .bts-synthesis__legend {
    grid-template-columns: 1fr;
  }
}

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.terminal {
  width: 100%;
  max-width: 520px;
  background: #0d1117;
  border-radius: 20px;
  border: 1px solid #30363d;
  box-shadow: var(--shadow), 0 0 60px rgba(88, 166, 255, 0.16);
  overflow: hidden;
  font-family: Consolas, 'Courier New', monospace;
}

.terminal--full {
  max-width: 100%;
}

.terminal__line--hidden {
  display: none;
}

.terminal__expand-btn {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: rgba(88, 166, 255, 0.08);
  border: none;
  border-top: 1px solid #21262d;
  color: #58a6ff;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.88rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
}

.terminal__expand-btn:hover {
  background: rgba(88, 166, 255, 0.16);
}

.annexe-card--hidden {
  display: none;
}

.annexe-grid__expand-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px 16px;
  background: rgba(88, 166, 255, 0.08);
  border: 1px solid rgba(88, 166, 255, 0.25);
  border-radius: 10px;
  color: #58a6ff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.annexe-grid__expand-btn:hover {
  background: rgba(88, 166, 255, 0.16);
  border-color: rgba(88, 166, 255, 0.5);
}

body[data-theme="light"] .annexe-grid__expand-btn {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.3);
  color: #1d4ed8;
}

body[data-theme="light"] .annexe-grid__expand-btn:hover {
  background: rgba(37, 99, 235, 0.15);
}


.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #161b22;
  border-bottom: 1px solid #21262d;
}

.terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal__dot--red {
  background: #ff5f57;
}

.terminal__dot--yellow {
  background: #febc2e;
}

.terminal__dot--green {
  background: #28c840;
}

.terminal__title {
  margin-left: auto;
  font-size: 11px;
  color: #7d8590;
}

.terminal__body {
  padding: 18px 20px;
}

.terminal__line {
  font-size: 19px;
  line-height: 1.8;
  color: #e6edf3;
}

.terminal__prompt {
  color: #00e896;
  margin-right: 10px;
}

.terminal__cmd {
  color: #79c0ff;
}

.terminal__output {
  color: #9aa7b8;
}

.terminal__success {
  color: #3fb950;
}

.terminal__warn {
  color: #e3b341;
}

.terminal__cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #00e896;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

.annexe-page .section-title {
  margin-bottom: 10px;
}

.annexe-intro {
  color: var(--muted);
  max-width: 760px;
  line-height: 1.6;
}

.annexe-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
  margin-bottom: 12px;
}

.annexe-category-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 74px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(88, 166, 255, 0.44);
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.2), rgba(0, 232, 150, 0.15));
  color: #f2f6ff;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.4;
  letter-spacing: 0.2px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.annexe-category-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(230, 237, 243, 0.45);
  box-shadow: 0 8px 20px rgba(88, 166, 255, 0.24);
}

.annexe-category-btn.is-active {
  border-color: rgba(230, 237, 243, 0.8);
  box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.5), 0 10px 22px rgba(88, 166, 255, 0.26);
}

.annexe-category-panel {
  scroll-margin-top: 96px;
}

.annexe-sequence {
  display: grid;
  gap: 20px;
}

.annexe-item {
  border: 1px solid rgba(230, 237, 243, 0.1);
  background: rgba(230, 237, 243, 0.02);
  border-radius: 14px;
  padding: 16px;
}

.annexe-item h3 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 1.03rem;
}

.annexe-category-content[hidden] {
  display: none;
}

.annexe-category-content.is-open .annexe-item {
  animation: annexFadeIn 0.35s ease both;
}

.annexe-category-content.is-open .annexe-item:nth-child(2) {
  animation-delay: 0.08s;
}

.annexe-category-content.is-open .annexe-item:nth-child(3) {
  animation-delay: 0.16s;
}

@keyframes annexFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.annexe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 20px;
  place-items: center;
}

.annexe-grid--full {
  grid-template-columns: 1fr;
}

.annexe-grid--pair {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  align-items: start;
}

.annexe-grid--snmp {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: start;
  place-items: stretch;
}

.annexe-snmp-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.annexe-snmp-media .annexe-card {
  max-width: none;
  margin: 0;
}

.annexe-snmp-text {
  display: grid;
  gap: 14px;
  align-content: start;
}

.annexe-snmp-text .terminal {
  margin-top: 0;
}

.annexe-grid img {
  max-width: 100%;
  height: auto;
}

.annexe-card {
  background: rgba(28, 33, 40, 0.96);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
}

.annexe-card--large {
  max-width: 1000px;
  margin: 0 auto;
}

.annexe-card--capture {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px;
  background: rgba(18, 24, 36, 0.96);
}

.annexe-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.annexe-card--capture img {
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 10px;
}

.annexe-card-body {
  padding: 14px 16px 16px;
}

.annexe-card-body h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.annexe-card-body p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

.annexe-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(88, 166, 255, 0.12);
  border: 1px dashed rgba(88, 166, 255, 0.4);
  color: #e6edf3;
  font-size: 0.92rem;
}

body[data-theme="light"] .annexe-category-btn {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(14, 165, 160, 0.16));
  border-color: rgba(37, 99, 235, 0.35);
  color: #0f172a;
}

body[data-theme="light"] .annexe-category-btn:hover {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
}

body[data-theme="light"] .annexe-category-btn.is-active {
  border-color: rgba(14, 165, 160, 0.65);
  box-shadow: 0 0 0 1px rgba(14, 165, 160, 0.4), 0 10px 22px rgba(14, 165, 160, 0.2);
}

body[data-theme="light"] .annexe-note {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.35);
  color: #334155;
}

body[data-theme="light"] .annexe-item {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(148, 163, 184, 0.35);
}

body[data-theme="light"] .annexe-item h3 {
  color: #0f172a;
}

body[data-theme="light"] .annexe-monitoring-heading {
  color: #0f172a;
}

body[data-theme="light"] .annexe-monitoring-subtitle {
  color: #334155;
}

body[data-theme="light"] .annexe-monitoring-table-wrap {
  border-color: rgba(148, 163, 184, 0.4);
  background: #f8fafc;
}

body[data-theme="light"] .annexe-monitoring-table th,
body[data-theme="light"] .annexe-monitoring-table td {
  border-color: rgba(148, 163, 184, 0.35);
}

body[data-theme="light"] .annexe-monitoring-table th {
  background: #e2e8f0;
  color: #0f172a;
}

body[data-theme="light"] .annexe-monitoring-table td {
  background: #ffffff;
  color: #1e293b;
}

.annexe-monitoring-table-block {
  margin-top: 8px;
}

.annexe-monitoring-heading {
  margin: 0;
  color: #f2f6ff;
  font-size: 2rem;
  letter-spacing: 0.3px;
}

.annexe-monitoring-subtitle {
  margin: 10px 0 16px;
  color: #dbe5f2;
  font-size: 1.65rem;
  font-weight: 600;
}

.annexe-monitoring-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(230, 237, 243, 0.12);
  background: #12161f;
}

.annexe-monitoring-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.annexe-monitoring-table th,
.annexe-monitoring-table td {
  padding: 14px 12px;
  border: 1px solid rgba(230, 237, 243, 0.1);
  text-align: left;
  vertical-align: top;
  line-height: 1.35;
}

.annexe-monitoring-table th {
  background: #1d2129;
  color: #f6f9ff;
  font-size: 1.22rem;
  font-weight: 700;
}

.annexe-monitoring-table td {
  background: #151922;
  color: #ecf1f9;
  font-size: 1.07rem;
}

.annexe-monitoring-table td:first-child,
.annexe-monitoring-table th:first-child {
  width: 50px;
  text-align: center;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@media (max-width: 920px) {
  .terminal__line {
    font-size: 14px;
  }

  .annexe-grid--snmp {
    grid-template-columns: 1fr;
  }

  .annexe-snmp-media {
    grid-template-columns: 1fr;
  }

  .terminal__body {
    padding: 14px;
  }

  .annexe-monitoring-heading {
    font-size: 1.45rem;
  }

  .annexe-monitoring-subtitle {
    font-size: 1.18rem;
  }

  .annexe-monitoring-table {
    min-width: 760px;
  }

  .annexe-monitoring-table th,
  .annexe-monitoring-table td {
    padding: 11px 10px;
    font-size: 0.94rem;
  }
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.company-stats {
  display: grid;
  gap: 14px;
}

.company-stat {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.site-footer {
  padding: 28px 16px 32px;
  background: #0a101c;
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
  text-align: center;
  font-size: 0.95rem;
}

.footer-content a {
  color: var(--accent-2);
}

.image-banner {
  margin-top: 20px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.error-card {
  max-width: 520px;
  text-align: center;
  background: rgba(18, 26, 44, 0.92);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.error-card h1 {
  margin-top: 20px;
  font-size: 2.2rem;
}

/* ====== CARTES COMPÉTENCES (sans carrousel) ====== */
.carousel {
  width: min(calc(100% - 2rem), 1100px);
  list-style: none;
  margin: 0 auto;
  padding: 1rem 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 360px));
  justify-content: center;
  gap: 12px;
}

.carousel > div {
  position: relative;
  display: grid;
  grid-template-areas: 'img' 'title' 'desc';
  text-align: center;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(18, 26, 44, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f7f9ff;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.carousel > div:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.carousel > div.is-active {
  border-color: rgba(88, 166, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.35), var(--shadow);
}

.carousel > div > h2 {
  grid-area: title;
  margin: 1rem 0 0 0;
  font-size: 1.2rem;
  white-space: nowrap;
  transition: all 300ms ease-in-out;
}

.carousel > div > p {
  grid-area: desc;
  margin: 0;
  white-space: nowrap;
  color: var(--muted);
  transition: all 300ms ease-in-out;
}

.carousel > div > .img {
  grid-area: img;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: 20px;
  transition: all 300ms ease-in-out;
  transform-origin: center center;
}

.carousel > div > .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0 0 0 / 0.25);
}

.carousel > div > .img .comp-category-logo {
  width: min(62%, 150px);
  height: auto;
  max-height: 130px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  background: transparent;

}

@media (max-width: 920px) {
  .carousel {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

.subcards-container {
  width: 100%;
  max-width: 1100px;
  margin: 30px auto;
  padding: 10px;
  display: none;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.subcards-container.active {
  display: flex;
  opacity: 1;
}

.comp-next-link-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 10px auto 28px;
  display: flex;
  justify-content: center;
}

.comp-next-link {
  min-width: 280px;
  justify-content: center;
  text-align: center;
}

.subcard {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  min-height: 96px;
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.2), rgba(0, 232, 150, 0.15));
  border-radius: 14px;
  padding: 14px 16px;
  width: 260px;
  border: 1px solid rgba(88, 166, 255, 0.44);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  color: #f2f6ff;
}

.subcard:hover {
  transform: translateY(-2px);
  border-color: rgba(230, 237, 243, 0.45);
  box-shadow: 0 8px 20px rgba(88, 166, 255, 0.24);
}

.subcard h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

.subcard p {
  margin: 6px 0 0;
  font-size: 0.84rem;
  color: #dbe5f2;
}

.detail-block {
  width: 100%;
  max-width: 1100px;
  margin: 24px auto;
  background: rgba(12, 18, 32, 0.95);
  border-radius: 18px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow);
  display: none;
  position: relative;
}

.detail-block.active {
  display: block;
  animation: detailFadeIn 0.28s ease forwards;
}

@keyframes detailFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.detail-block h2 {
  margin-bottom: 8px;
}

.detail-context {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(88, 166, 255, 0.07);
  border-radius: 0 10px 10px 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted, var(--text));
  font-style: italic;
}

.detail-block h3 {
  margin-top: 20px;
  color: var(--accent);
}

.detail-block img {
  border-radius: 14px;
  border: 1px solid var(--border);
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--accent-2);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .comp-next-link {
    min-width: 0;
    width: 100%;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    background: rgba(15, 22, 38, 0.95);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    flex-direction: column;
    gap: 12px;
    min-width: 220px;
  }

  body[data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.96);
  }

  body.nav-open .nav-links {
    display: flex;
  }
}

/* ====== COMPÉTENCES – RESTRUCTURATION ====== */

/* Guide étapes */
.comp-steps-section {
  margin-bottom: 32px;
}

.comp-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.comp-step {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 26, 44, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 20px;
}

.comp-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b1220;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comp-step-label {
  font-size: 0.92rem;
  color: var(--text);
  white-space: nowrap;
}

.comp-step-arrow {
  color: var(--muted);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.comp-disclaimer {
  text-align: center;
  font-size: 0.87rem;
  color: var(--muted);
  background: rgba(255, 200, 100, 0.06);
  border: 1px solid rgba(255, 200, 100, 0.15);
  border-radius: 10px;
  padding: 10px 18px;
  max-width: 720px;
  margin: 0 auto;
}

/* Badge de catégorie dans les cartes carousel */
.comp-cat-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* Variantes couleur – cartes catégorie */
.carousel > div.comp-cat--school {
  border-top: 3px solid #58a6ff;
}
.carousel > div.comp-cat--school > .img {
  background: linear-gradient(180deg, rgba(88, 166, 255, 0.24), rgba(88, 166, 255, 0.09));
}
.carousel > div.comp-cat--school .comp-cat-badge {
  background: rgba(88, 166, 255, 0.16);
  color: #58a6ff;
}
.carousel > div.comp-cat--school.is-active {
  border-color: #58a6ff;
  box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.35), var(--shadow);
}

.carousel > div.comp-cat--work {
  border-top: 3px solid #00e896;
}
.carousel > div.comp-cat--work > .img {
  background: linear-gradient(180deg, rgba(0, 232, 150, 0.22), rgba(0, 232, 150, 0.08));
}
.carousel > div.comp-cat--work .comp-cat-badge {
  background: rgba(0, 232, 150, 0.16);
  color: #00e896;
}
.carousel > div.comp-cat--work.is-active {
  border-color: #00e896;
  box-shadow: 0 0 0 1px rgba(0, 232, 150, 0.34), var(--shadow);
}

.carousel > div.comp-cat--perso {
  border-top: 3px solid #14b8a6;
}
.carousel > div.comp-cat--perso > .img {
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.22), rgba(20, 184, 166, 0.08));
}
.carousel > div.comp-cat--perso .comp-cat-badge {
  background: rgba(20, 184, 166, 0.15);
  color: #14b8a6;
}
.carousel > div.comp-cat--perso.is-active {
  border-color: #14b8a6;
  box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.33), var(--shadow);
}

/* Variantes couleur – sous-cartes */
.comp-subcard--school {
  border-color: rgba(88, 166, 255, 0.48);
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.24), rgba(88, 166, 255, 0.1));
}
.comp-subcard--school:hover {
  border-color: rgba(88, 166, 255, 0.72);
  box-shadow: 0 8px 20px rgba(88, 166, 255, 0.26);
}

.comp-subcard--work {
  border-color: rgba(0, 232, 150, 0.48);
  background: linear-gradient(135deg, rgba(0, 232, 150, 0.22), rgba(0, 232, 150, 0.1));
}
.comp-subcard--work:hover {
  border-color: rgba(0, 232, 150, 0.7);
  box-shadow: 0 8px 20px rgba(0, 232, 150, 0.24);
}

.comp-subcard--perso {
  border-color: rgba(20, 184, 166, 0.48);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.24), rgba(20, 184, 166, 0.1));
}
.comp-subcard--perso:hover {
  border-color: rgba(20, 184, 166, 0.72);
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.24);
}

body[data-theme="light"] .subcard {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(14, 165, 160, 0.16));
  border-color: rgba(37, 99, 235, 0.35);
  color: #0f172a;
}

body[data-theme="light"] .subcard p {
  color: #334155;
}

body[data-theme="light"] .subcard:hover {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
}

body[data-theme="light"] .comp-subcard--school {
  border-color: rgba(37, 99, 235, 0.45);
}

body[data-theme="light"] .comp-subcard--work {
  border-color: rgba(5, 150, 105, 0.45);
}

body[data-theme="light"] .comp-subcard--perso {
  border-color: rgba(13, 148, 136, 0.45);
}

/* En-tête des blocs de détail */
.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.detail-header--school {
  background: rgba(88, 166, 255, 0.1);
  border: 1px solid rgba(88, 166, 255, 0.25);
}
.detail-header--work {
  background: rgba(0, 232, 150, 0.08);
  border: 1px solid rgba(0, 232, 150, 0.24);
}
.detail-header--perso {
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.22);
}

.detail-category {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Close btn dans l'en-tête (pas absolu) */
.detail-header .close-btn {
  position: static;
  font-size: 1.5rem;
  line-height: 1;
  padding-left: 12px;
}

/* Grilles d'images côte à côte */
.detail-img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}

.detail-img-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 12px 0;
}

.detail-img-pair img,
.detail-img-trio img {
  width: 100%;
}

img.zoomable-image {
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

img.zoomable-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.image-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 10, 20, 0.88);
  backdrop-filter: blur(4px);
}

.image-zoom-overlay.is-open {
  display: flex;
}

.image-zoom-content {
  max-width: min(1200px, 94vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
}

.image-zoom-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(11, 18, 32, 0.9);
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.image-zoom-close:hover {
  background: rgba(22, 34, 58, 0.95);
}

body.zoom-open {
  overflow: hidden;
}

body[data-theme="light"] .comp-step {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.4);
}

body[data-theme="light"] .comp-step-label {
  color: #0f172a;
}

body[data-theme="light"] .comp-step-arrow {
  color: #475569;
}

body[data-theme="light"] .comp-disclaimer {
  background: rgba(37, 99, 235, 0.07);
  border-color: rgba(37, 99, 235, 0.22);
  color: #334155;
}

body[data-theme="light"] .carousel > div {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.45);
  color: #0f172a;
}

body[data-theme="light"] .carousel > div:hover {
  border-color: rgba(37, 99, 235, 0.45);
}

body[data-theme="light"] .carousel > div > p {
  color: #475569;
}

body[data-theme="light"] .carousel > div.comp-cat--school > .img {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0.06));
}

body[data-theme="light"] .carousel > div.comp-cat--work > .img {
  background: linear-gradient(180deg, rgba(5, 150, 105, 0.16), rgba(5, 150, 105, 0.06));
}

body[data-theme="light"] .carousel > div.comp-cat--perso > .img {
  background: linear-gradient(180deg, rgba(13, 148, 136, 0.16), rgba(13, 148, 136, 0.06));
}

body[data-theme="light"] .detail-block {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.45);
  color: #0f172a;
}

body[data-theme="light"] .detail-block h2 {
  color: #0f172a;
}

body[data-theme="light"] .detail-block h3 {
  color: #0f766e;
}

body[data-theme="light"] .detail-block p,
body[data-theme="light"] .detail-block li {
  color: #334155;
}

body[data-theme="light"] .detail-block strong {
  color: #0f172a;
}

body[data-theme="light"] .detail-block .check-list li::before {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

body[data-theme="light"] .detail-category {
  color: #334155;
}

body[data-theme="light"] .detail-header--school {
  background: rgba(37, 99, 235, 0.09);
  border-color: rgba(37, 99, 235, 0.28);
}

body[data-theme="light"] .detail-header--work {
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.26);
}

body[data-theme="light"] .detail-header--perso {
  background: rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.24);
}

body[data-theme="light"] .detail-header .close-btn {
  color: #1d4ed8;
}

@media (max-width: 680px) {
  .comp-steps {
    gap: 8px;
  }
  .comp-step-label {
    white-space: normal;
  }
  .comp-step-arrow {
    display: none;
  }
  .detail-img-pair,
  .detail-img-trio {
    grid-template-columns: 1fr;
  }
}
