/* ==========================================================================
   PORTFOLIO BTS SIO SLAM — NEME
   Thème : Hatsune Miku & Design inspiration.html
   Couleurs : Teal (#39c5bb), Teal Deep (#1c6b66), Paper (#f4fdfb), Ink (#062826)
   Typographie : 'Unbounded', 'Inter', 'JetBrains Mono'
   Architecture Multi-Pages
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Unbounded:wght@400;600;700;800&display=swap');

:root {
  --teal: #39c5bb;
  --teal-deep: #1c6b66;
  --teal-glow: #7fe8de;
  --ink: #062826;
  --paper: #f4fdfb;
  --paper-dim: #dff5f1;
  --line: rgba(6, 40, 38, 0.12);
  --bg: var(--paper);
  --fg: var(--ink);
  --card: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-pill: 100px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #06141a;
    --fg: #d9fbf5;
    --card: #0c2229;
    --line: rgba(217, 251, 245, 0.12);
    --paper-dim: #0c2229;
  }
}

:root[data-theme="dark"] {
  --bg: #06141a;
  --fg: #d9fbf5;
  --card: #0c2229;
  --line: rgba(217, 251, 245, 0.12);
  --paper-dim: #0c2229;
}

:root[data-theme="light"] {
  --bg: var(--paper);
  --fg: var(--ink);
  --card: #ffffff;
  --line: rgba(6, 40, 38, 0.12);
  --paper-dim: #dff5f1;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1,
h2,
h3,
h4,
.display {
  font-family: 'Unbounded', sans-serif;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 80px 0;
}

@media (max-width: 640px) {
  section {
    padding: 50px 0;
  }

  .wrap {
    padding: 0 20px;
  }
}

/* ==========================================================================
   TOPBAR & NAVBAR
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: #04231f;
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1;
}

.brand-name {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.brand-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal-deep);
  background: var(--paper-dim);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 4px;
}

:root[data-theme="dark"] .brand-sub {
  color: var(--teal-glow);
}

@media (max-width: 680px) {
  .brand-sub {
    display: none;
  }
}

/* Navigation Links */
.navlinks {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
  font-weight: 500;
}

.navlinks a {
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.navlinks a:hover,
.navlinks a.active {
  opacity: 1;
  color: var(--teal);
}

.navlinks a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--teal);
  border-radius: 2px;
}

/* Topbar Actions & Theme Toggle */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.theme-toggle-btn {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  color: var(--fg);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  outline: none;
}

.theme-toggle-btn:hover {
  border-color: var(--teal);
  background: var(--card);
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(57, 197, 187, 0.25);
}

.theme-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  display: block;
  transition: transform 0.3s ease;
}

.theme-toggle-btn:hover .theme-icon {
  transform: rotate(15deg);
}

/* Mode toggles for Sun/Moon SVGs */
:root[data-theme="light"] .theme-toggle-btn .sun-icon {
  display: none;
}

:root[data-theme="light"] .theme-toggle-btn .moon-icon {
  display: block;
  color: var(--teal-deep);
}

:root[data-theme="dark"] .theme-toggle-btn .sun-icon {
  display: block;
  color: var(--teal-glow);
}

:root[data-theme="dark"] .theme-toggle-btn .moon-icon {
  display: none;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 960px) {
  .navlinks {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .navlinks.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 24px 32px;
    gap: 16px;
    box-shadow: 0 12px 32px rgba(6, 40, 38, 0.12);
  }
}

/* ==========================================================================
   PAGE HERO / SUB-PAGE HEADERS
   ========================================================================== */
.page-header {
  padding: 70px 0 40px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-dim);
  transition: background-color 0.3s ease;
}

:root[data-theme="dark"] .page-header {
  background: var(--card);
}

.page-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.page-title .accent {
  color: var(--teal);
}

.page-desc {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 680px;
  line-height: 1.6;
}

/* ==========================================================================
   BUTTONS & KICKER
   ========================================================================== */
.kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-deep);
  background: var(--paper-dim);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

:root[data-theme="dark"] .kicker,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .kicker {
    color: var(--teal-glow);
  }
}

.cta-row {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1.5px solid var(--teal);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  text-decoration: none;
}

.btn.solid {
  background: var(--teal);
  color: #04231f;
}

.btn.solid:hover {
  background: var(--teal-glow);
  border-color: var(--teal-glow);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(57, 197, 187, 0.35);
}

.btn.ghost {
  background: transparent;
  color: var(--fg);
}

.btn.ghost:hover {
  background: var(--paper-dim);
  border-color: var(--teal);
  transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTION (INDEX.HTML)
   ========================================================================== */
.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 840px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}

.hero h1,
.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: 26px;
}

.hero h1 .accent,
.hero-title .accent {
  color: var(--teal);
}

.hero p.lede,
.hero p.hero-lead,
.hero-lead {
  margin-top: 26px;
  margin-bottom: 0;
  max-width: 560px;
  font-size: 1.05rem;
  opacity: 0.85;
  line-height: 1.75;
}

.hero-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px -8px rgba(6, 40, 38, 0.12);
  transition: var(--transition);
}

.hero-visual-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 18px 48px -8px rgba(57, 197, 187, 0.25);
}

.hero-miku-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.waveform-box {
  margin-top: 18px;
  background: var(--paper-dim);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  border: 1px solid var(--line);
}

.waveform {
  width: 100%;
  height: 54px;
  display: block;
}

.bar {
  fill: var(--teal);
  transform-origin: bottom;
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scaleY(0.35);
  }

  50% {
    transform: scaleY(1);
  }
}

/* ==========================================================================
   HOMEPAGE OVERVIEW CARDS (NAV TEASERS)
   ========================================================================== */
.overview-section {
  border-top: 1px solid var(--line);
  background: var(--paper-dim);
  transition: background-color 0.3s ease;
}

:root[data-theme="dark"] .overview-section {
  background: var(--card);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.overview-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

:root[data-theme="dark"] .overview-card {
  background: var(--bg);
}

.overview-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 10px 28px rgba(57, 197, 187, 0.18);
}

.overview-card .card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.overview-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.overview-card p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.5;
  margin-bottom: 18px;
  flex-grow: 1;
}

.overview-card .card-link {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.overview-card .card-link:hover {
  color: var(--teal-deep);
}

:root[data-theme="dark"] .overview-card .card-link:hover {
  color: var(--teal-glow);
}

/* ==========================================================================
   ABOUT & TABS SECTION (ABOUT.HTML)
   ========================================================================== */
.about {
  background: var(--bg);
}

.about .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 840px) {
  .about .wrap {
    grid-template-columns: 1fr;
  }
}

.portrait-slot {
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--teal);
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 28px rgba(6, 40, 38, 0.15);
  background: var(--card);
}

.portrait-img {
  width: 100%;
  height: 100%;
  background-color: #39c5bb;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portrait-slot:hover .portrait-img {
  transform: scale(1.04);
}

.portrait-overlay-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  padding: 8px 14px;
  background: rgba(6, 20, 26, 0.88);
  backdrop-filter: blur(8px);
  color: #d9fbf5;
  border-radius: var(--radius-sm);
  font-family: 'Unbounded', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Tabs Navigation */
.tabs-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: 'Unbounded', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.tab-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #04231f;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.timeline-date {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--teal-deep);
  font-size: 0.85rem;
}

:root[data-theme="dark"] .timeline-date {
  color: var(--teal-glow);
}

.timeline-desc {
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ==========================================================================
   COMPETENCES (SKILLS.HTML)
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(6, 40, 38, 0.04);
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  box-shadow: 0 8px 24px rgba(57, 197, 187, 0.15);
}

.skill-card h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--paper-dim);
  border: 1px solid var(--line);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   PROJECTS (PROJECTS.HTML)
   ========================================================================== */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.filter-pill {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-family: 'Unbounded', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.filter-pill.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #04231f;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.project-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.project-item:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 10px 30px rgba(57, 197, 187, 0.18);
}

.project-item.featured {
  border: 1.5px solid var(--teal);
  background: color-mix(in srgb, var(--teal) 5%, var(--card));
  grid-column: 1 / -1;
}

.project-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  color: var(--teal-deep);
  margin-bottom: 12px;
  width: fit-content;
}

:root[data-theme="dark"] .project-badge {
  color: var(--teal-glow);
}

.project-item h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.project-item p {
  font-size: 0.92rem;
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.project-link-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--paper-dim);
  border: 1px solid var(--line);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.project-link-btn:hover {
  background: var(--teal);
  color: #04231f;
  border-color: var(--teal);
}

/* ==========================================================================
   VEILLE TECHNOLOGIQUE (VEILLE.HTML)
   ========================================================================== */
.veille-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.veille-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.veille-card:hover {
  border-color: var(--teal);
  box-shadow: 0 6px 20px rgba(57, 197, 187, 0.08);
}

.veille-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--teal-deep);
}

:root[data-theme="dark"] .veille-card h3 {
  color: var(--teal-glow);
}

.veille-card p {
  font-size: 0.92rem;
  opacity: 0.85;
  line-height: 1.6;
}

.veille-sources-list {
  list-style: none;
  margin-top: 16px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.92rem;
  line-height: 1.65;
}

.veille-sources-list li {
  position: relative;
  padding-left: 20px;
  display: block;
}

.veille-sources-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--teal);
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1.4;
}

/* Quick Anchor Chips */
.veille-nav-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.veille-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: 'Unbounded', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fg);
  transition: var(--transition);
}

.veille-chip:hover {
  border-color: var(--teal);
  background: var(--paper-dim);
  color: var(--teal-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(57, 197, 187, 0.15);
}

:root[data-theme="dark"] .veille-chip:hover {
  color: var(--teal-glow);
}

/* Major Thematic Sections */
.veille-theme-section {
  margin-top: 56px;
}

.theme-card-main {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 36px;
  box-shadow: 0 6px 24px rgba(6, 40, 38, 0.05);
  transition: var(--transition);
}

.theme-card-main.featured-ia {
  border-left: 6px solid var(--teal);
}

.theme-card-main.featured-secu {
  border-left: 6px solid #e76f51;
}

:root[data-theme="dark"] .theme-card-main.featured-secu {
  border-left: 6px solid #f4a261;
}

.theme-card-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.theme-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(57, 197, 187, 0.15);
  color: var(--teal-deep);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

:root[data-theme="dark"] .theme-badge-pill {
  background: rgba(57, 197, 187, 0.22);
  color: var(--teal-glow);
}

.theme-badge-pill.badge-secu {
  background: rgba(231, 111, 81, 0.14);
  color: #c84b31;
}

:root[data-theme="dark"] .theme-badge-pill.badge-secu {
  background: rgba(244, 162, 97, 0.22);
  color: #f4a261;
}

.theme-card-header .theme-title {
  font-size: 1.45rem;
  margin-top: 4px;
  color: var(--fg);
}

.veille-subheading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--teal-deep);
  margin: 28px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

:root[data-theme="dark"] .veille-subheading {
  color: var(--teal-glow);
}

.veille-body-text {
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--fg);
  opacity: 0.9;
  margin-bottom: 14px;
}

/* Callout blocks */
.veille-callout {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 22px;
  margin: 22px 0;
}

.veille-callout.callout-alert {
  border-left-color: #e76f51;
}

:root[data-theme="dark"] .veille-callout.callout-alert {
  border-left-color: #f4a261;
}

.veille-callout-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

:root[data-theme="dark"] .veille-callout-title {
  color: var(--teal-glow);
}

.callout-alert .veille-callout-title {
  color: #c84b31;
}

:root[data-theme="dark"] .callout-alert .veille-callout-title {
  color: #f4a261;
}

/* Roles comparison (White Hat vs Bug Bounty) */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 22px 0;
}

.role-box {
  background: var(--paper-dim);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: var(--transition);
}

.role-box:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.role-box-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  gap: 8px;
}

:root[data-theme="dark"] .role-box-title {
  color: var(--teal-glow);
}

/* Tool Highlight (Have I Been Pwned) */
.pwned-tool-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--paper-dim);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 22px 0;
}

.pwned-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--teal);
  color: #04231f !important;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  text-decoration: none;
}

.pwned-tool-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(57, 197, 187, 0.35);
}

/* Articles Section & Grid */
.articles-section {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.articles-heading {
  font-size: 1.15rem;
  font-family: 'Unbounded', sans-serif;
  color: var(--fg);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.articles-intro {
  font-size: 0.92rem;
  opacity: 0.85;
  margin-bottom: 20px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.article-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--paper-dim);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  text-decoration: none;
  color: var(--fg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.article-card:hover {
  border-color: var(--teal);
  background: var(--card);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(57, 197, 187, 0.15);
}

.article-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.article-source {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(57, 197, 187, 0.18);
  color: var(--teal-deep);
  text-transform: uppercase;
}

:root[data-theme="dark"] .article-source {
  background: rgba(57, 197, 187, 0.22);
  color: var(--teal-glow);
}

.article-card.secu-card .article-source {
  background: rgba(231, 111, 81, 0.15);
  color: #c84b31;
}

:root[data-theme="dark"] .article-card.secu-card .article-source {
  background: rgba(244, 162, 97, 0.22);
  color: #f4a261;
}

.article-icon {
  font-size: 1.1rem;
  color: var(--teal);
  transition: transform 0.2s ease;
}

.article-card:hover .article-icon {
  transform: translate(3px, -3px);
}

.article-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--fg);
}

.article-card:hover .article-title {
  color: var(--teal-deep);
}

:root[data-theme="dark"] .article-card:hover .article-title {
  color: var(--teal-glow);
}

.article-desc {
  font-size: 0.86rem;
  opacity: 0.85;
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

@media (max-width: 768px) {
  .theme-card-main {
    padding: 24px 18px;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   CONTACT (CONTACT.HTML)
   ========================================================================== */
.contact-section {
  padding: 60px 0 100px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

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

.contact-card-info {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.contact-socials {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-weight: 600;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--teal);
  color: #04231f;
  border-color: var(--teal);
  transform: translateX(4px);
}

.contact-form {
  background: var(--card);
  border: 1.5px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 8px 24px rgba(57, 197, 187, 0.12);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-family: 'Unbounded', sans-serif;
  color: var(--teal-deep);
  margin-bottom: 6px;
}

:root[data-theme="dark"] .form-label {
  color: var(--teal-glow);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--teal);
  background: var(--card);
}

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

.form-feedback {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.55;
  display: none;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-feedback.success {
  display: block;
  background: rgba(78, 250, 144, 0.18);
  border: 1.5px solid #4efa90;
  color: #126333;
}

:root[data-theme="dark"] .form-feedback.success {
  color: #4efa90;
}

.form-feedback.error {
  display: block;
  background: rgba(231, 111, 81, 0.18);
  border: 1.5px solid #e76f51;
  color: #c84b31;
}

:root[data-theme="dark"] .form-feedback.error {
  color: #f4a261;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  padding: 26px 32px;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.7;
  border-top: 1px solid var(--line);
  background: var(--bg);
  margin-top: auto;
}